@fairmint/canton-node-sdk
Version:
Canton Node SDK
148 lines (147 loc) • 4.56 kB
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$defs": {
"synchronizer_active": {
"type": "object",
"required": [ "chainIdSuffix", "migrationId" ],
"additionalProperties": false,
"properties": {
"chainIdSuffix": { "type": "string", "minLength": 1 },
"migrationId": { "type": "integer", "minimum": 0, "maximum": 9 },
"version": { "type": "string", "minLength": 1 }
}
},
"synchronizer": {
"type": "object",
"required": [ "chainIdSuffix", "migrationId", "version" ],
"additionalProperties": false,
"properties": {
"chainIdSuffix": { "type": "string", "minLength": 1 },
"migrationId": { "type": "integer", "minimum": 0, "maximum": 9 },
"version": { "type": "string", "minLength": 1 }
}
},
"digest": {
"type": "object",
"required": [ "type", "value" ],
"additionalProperties": false,
"properties": {
"type": { "type": "string" },
"value": { "type": "string" }
},
"oneOf": [
{ "properties": { "type": { "const": "md5" }, "value": { "pattern": "^[a-fA-F0-9]{32}$" } } },
{ "properties": { "type": { "const": "sha1" }, "value": { "pattern": "^[a-fA-F0-9]{40}$" } } },
{ "properties": { "type": { "const": "sha256" }, "value": { "pattern": "^[a-fA-F0-9]{64}$" } } }
]
}
},
"type": "object",
"required": [ "resources", "nginxImage", "contentType" ],
"properties": {
"nginxImage": {
"type": "string",
"description": "The Docker image to use for Nginx. Defaults to 'nginx:latest' if not present."
},
"imagePullPolicy": {
"type": "string",
"enum": ["Always", "IfNotPresent", "Never"]
},
"contentType": {
"type": "string",
"description": "The content type for the Nginx server. Defaults to 'application/json' if not present."
},
"runtimeDetails": {
"type": "object",
"required": [ "scanUrl" ],
"additionalProperties": false,
"properties": {
"scanUrl": { "type": "string", "minLength": 1 },
"logToStderrAfterFailures": { "type": "integer", "minimum": 1 }
}
},
"deploymentDetails": {
"type": "object",
"required": [ "network", "configDigest", "synchronizer" ],
"additionalProperties": false,
"properties": {
"network": {
"type": "string",
"enum": ["localdev", "scratch", "dev", "test", "main"]
},
"configDigest": {
"type": "object",
"required": [ "allowedIpRanges", "approvedSvIdentities" ],
"additionalProperties": false,
"properties": {
"allowedIpRanges": { "$ref": "#/$defs/digest" },
"approvedSvIdentities": { "$ref": "#/$defs/digest" }
}
},
"sv": {
"type": "object",
"additionalProperties": false,
"properties": {
"version": { "type": "string", "minLength": 1 }
}
},
"synchronizer": {
"type": "object",
"required": ["active"],
"additionalProperties": false,
"properties": {
"active": {
"$ref": "#/$defs/synchronizer_active"
},
"legacy": {
"oneOf": [
{ "type": "null" },
{ "$ref": "#/$defs/synchronizer" }
]
},
"staging": {
"oneOf": [
{ "type": "null" },
{ "$ref": "#/$defs/synchronizer" }
]
}
}
}
}
},
"resources": {
"type": "object",
"required": [ "limits", "requests" ],
"properties": {
"limits": {
"type": "object",
"required": [ "cpu", "memory" ],
"properties": {
"cpu": {
"type": "string",
"description": "CPU limit (e.g., 500m)."
},
"memory": {
"type": "string",
"description": "Memory limit (e.g., 512Mi)."
}
}
},
"requests": {
"type": "object",
"required": [ "cpu", "memory" ],
"properties": {
"cpu": {
"type": "string",
"description": "CPU request (e.g., 250m)."
},
"memory": {
"type": "string",
"description": "Memory request (e.g., 256Mi)."
}
}
}
}
}
}
}