- scripts: `crosscode demo <church> --profile … [--admin-email …]`: backup, set-demo.js as the site's user, reload, wait for /health. - Contracts 1.7.0: the seed-demo job, DEMO_PROFILES, SEED_DEMO_MIN_AGENT. - Agent 1.2.0: seed-demo → crosscode demo. - Events 2.4.1: set-demo.js stops with a clear message when it can't read .env (was "client password must be a string", then a hang); keeps the oldest admin when the default one isn't on the site; --admin-email=. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1437 lines
42 KiB
JSON
1437 lines
42 KiB
JSON
{
|
|
"$id": "https://c-git.crosscode.co.za/joshua/crosscode-platform/raw/branch/main/packages/contracts/schemas/agent-job.json",
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"oneOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"schema": {
|
|
"type": "string",
|
|
"const": "crosscode.agent-job/1"
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^job_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"serverId": {
|
|
"type": "string",
|
|
"pattern": "^srv_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"config": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"alg": {
|
|
"type": "string",
|
|
"const": "x25519-hkdf-sha256-aes-256-gcm"
|
|
},
|
|
"epk": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{43}$"
|
|
},
|
|
"iv": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{16}$"
|
|
},
|
|
"ciphertext": {
|
|
"type": "string",
|
|
"maxLength": 200000,
|
|
"pattern": "^[A-Za-z0-9_-]+$"
|
|
}
|
|
},
|
|
"required": [
|
|
"alg",
|
|
"epk",
|
|
"iv",
|
|
"ciphertext"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"notBefore": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"expiresAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"signature": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{86}$"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "install"
|
|
},
|
|
"args": {
|
|
"type": "object",
|
|
"properties": {
|
|
"church": {
|
|
"type": "string",
|
|
"pattern": "^[a-z][a-z0-9-]{1,30}$"
|
|
},
|
|
"products": {
|
|
"minItems": 1,
|
|
"maxItems": 4,
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"events",
|
|
"website",
|
|
"app",
|
|
"accounts"
|
|
]
|
|
}
|
|
},
|
|
"versions": {
|
|
"type": "object",
|
|
"propertyNames": {
|
|
"type": "string",
|
|
"enum": [
|
|
"events",
|
|
"website",
|
|
"app",
|
|
"accounts"
|
|
]
|
|
},
|
|
"additionalProperties": {
|
|
"type": "string",
|
|
"pattern": "^(accounts|events|website|app)@\\d+\\.\\d+\\.\\d+$"
|
|
}
|
|
},
|
|
"domains": {
|
|
"type": "object",
|
|
"propertyNames": {
|
|
"type": "string",
|
|
"enum": [
|
|
"events",
|
|
"website",
|
|
"app",
|
|
"accounts"
|
|
]
|
|
},
|
|
"additionalProperties": {
|
|
"type": "string",
|
|
"maxLength": 253,
|
|
"pattern": "^(?=.{1,253}$)([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,}$"
|
|
}
|
|
},
|
|
"ports": {
|
|
"type": "object",
|
|
"propertyNames": {
|
|
"type": "string",
|
|
"enum": [
|
|
"events",
|
|
"website",
|
|
"app",
|
|
"accounts"
|
|
]
|
|
},
|
|
"additionalProperties": {
|
|
"type": "object",
|
|
"properties": {
|
|
"web": {
|
|
"type": "integer",
|
|
"minimum": 1024,
|
|
"maximum": 65535
|
|
},
|
|
"api": {
|
|
"type": "integer",
|
|
"minimum": 1024,
|
|
"maximum": 65535
|
|
}
|
|
},
|
|
"required": [
|
|
"web",
|
|
"api"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"church",
|
|
"products",
|
|
"domains",
|
|
"ports"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"schema",
|
|
"id",
|
|
"serverId",
|
|
"notBefore",
|
|
"expiresAt",
|
|
"signature",
|
|
"type",
|
|
"args"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"schema": {
|
|
"type": "string",
|
|
"const": "crosscode.agent-job/1"
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^job_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"serverId": {
|
|
"type": "string",
|
|
"pattern": "^srv_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"config": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"alg": {
|
|
"type": "string",
|
|
"const": "x25519-hkdf-sha256-aes-256-gcm"
|
|
},
|
|
"epk": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{43}$"
|
|
},
|
|
"iv": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{16}$"
|
|
},
|
|
"ciphertext": {
|
|
"type": "string",
|
|
"maxLength": 200000,
|
|
"pattern": "^[A-Za-z0-9_-]+$"
|
|
}
|
|
},
|
|
"required": [
|
|
"alg",
|
|
"epk",
|
|
"iv",
|
|
"ciphertext"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"notBefore": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"expiresAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"signature": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{86}$"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "add-product"
|
|
},
|
|
"args": {
|
|
"type": "object",
|
|
"properties": {
|
|
"church": {
|
|
"type": "string",
|
|
"pattern": "^[a-z][a-z0-9-]{1,30}$"
|
|
},
|
|
"product": {
|
|
"type": "string",
|
|
"enum": [
|
|
"events",
|
|
"website",
|
|
"app",
|
|
"accounts"
|
|
]
|
|
},
|
|
"version": {
|
|
"type": "string",
|
|
"pattern": "^(accounts|events|website|app)@\\d+\\.\\d+\\.\\d+$"
|
|
},
|
|
"domain": {
|
|
"type": "string",
|
|
"maxLength": 253,
|
|
"pattern": "^(?=.{1,253}$)([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,}$"
|
|
},
|
|
"ports": {
|
|
"type": "object",
|
|
"properties": {
|
|
"web": {
|
|
"type": "integer",
|
|
"minimum": 1024,
|
|
"maximum": 65535
|
|
},
|
|
"api": {
|
|
"type": "integer",
|
|
"minimum": 1024,
|
|
"maximum": 65535
|
|
}
|
|
},
|
|
"required": [
|
|
"web",
|
|
"api"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"church",
|
|
"product",
|
|
"domain",
|
|
"ports"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"schema",
|
|
"id",
|
|
"serverId",
|
|
"notBefore",
|
|
"expiresAt",
|
|
"signature",
|
|
"type",
|
|
"args"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"schema": {
|
|
"type": "string",
|
|
"const": "crosscode.agent-job/1"
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^job_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"serverId": {
|
|
"type": "string",
|
|
"pattern": "^srv_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"config": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"alg": {
|
|
"type": "string",
|
|
"const": "x25519-hkdf-sha256-aes-256-gcm"
|
|
},
|
|
"epk": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{43}$"
|
|
},
|
|
"iv": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{16}$"
|
|
},
|
|
"ciphertext": {
|
|
"type": "string",
|
|
"maxLength": 200000,
|
|
"pattern": "^[A-Za-z0-9_-]+$"
|
|
}
|
|
},
|
|
"required": [
|
|
"alg",
|
|
"epk",
|
|
"iv",
|
|
"ciphertext"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"notBefore": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"expiresAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"signature": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{86}$"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "deploy"
|
|
},
|
|
"args": {
|
|
"type": "object",
|
|
"properties": {
|
|
"church": {
|
|
"type": "string",
|
|
"pattern": "^[a-z][a-z0-9-]{1,30}$"
|
|
},
|
|
"products": {
|
|
"minItems": 1,
|
|
"maxItems": 4,
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"enum": [
|
|
"events",
|
|
"website",
|
|
"app",
|
|
"accounts"
|
|
]
|
|
}
|
|
},
|
|
"versions": {
|
|
"maxItems": 4,
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"pattern": "^(accounts|events|website|app)@\\d+\\.\\d+\\.\\d+$"
|
|
}
|
|
},
|
|
"check": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"church",
|
|
"products"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"schema",
|
|
"id",
|
|
"serverId",
|
|
"notBefore",
|
|
"expiresAt",
|
|
"signature",
|
|
"type",
|
|
"args"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"schema": {
|
|
"type": "string",
|
|
"const": "crosscode.agent-job/1"
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^job_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"serverId": {
|
|
"type": "string",
|
|
"pattern": "^srv_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"config": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"alg": {
|
|
"type": "string",
|
|
"const": "x25519-hkdf-sha256-aes-256-gcm"
|
|
},
|
|
"epk": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{43}$"
|
|
},
|
|
"iv": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{16}$"
|
|
},
|
|
"ciphertext": {
|
|
"type": "string",
|
|
"maxLength": 200000,
|
|
"pattern": "^[A-Za-z0-9_-]+$"
|
|
}
|
|
},
|
|
"required": [
|
|
"alg",
|
|
"epk",
|
|
"iv",
|
|
"ciphertext"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"notBefore": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"expiresAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"signature": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{86}$"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "adopt"
|
|
},
|
|
"args": {
|
|
"type": "object",
|
|
"properties": {
|
|
"church": {
|
|
"type": "string",
|
|
"pattern": "^[a-z][a-z0-9-]{1,30}$"
|
|
},
|
|
"eventsDir": {
|
|
"type": "string",
|
|
"maxLength": 255,
|
|
"pattern": "^\\/(?!.*\\/\\.\\.?(\\/|$))[A-Za-z0-9._/-]+$"
|
|
},
|
|
"version": {
|
|
"type": "string",
|
|
"pattern": "^(accounts|events|website|app)@\\d+\\.\\d+\\.\\d+$"
|
|
},
|
|
"address": {
|
|
"type": "string",
|
|
"maxLength": 253,
|
|
"pattern": "^(?=.{1,253}$)([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,}$"
|
|
}
|
|
},
|
|
"required": [
|
|
"church",
|
|
"eventsDir"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"schema",
|
|
"id",
|
|
"serverId",
|
|
"notBefore",
|
|
"expiresAt",
|
|
"signature",
|
|
"type",
|
|
"args"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"schema": {
|
|
"type": "string",
|
|
"const": "crosscode.agent-job/1"
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^job_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"serverId": {
|
|
"type": "string",
|
|
"pattern": "^srv_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"config": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"alg": {
|
|
"type": "string",
|
|
"const": "x25519-hkdf-sha256-aes-256-gcm"
|
|
},
|
|
"epk": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{43}$"
|
|
},
|
|
"iv": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{16}$"
|
|
},
|
|
"ciphertext": {
|
|
"type": "string",
|
|
"maxLength": 200000,
|
|
"pattern": "^[A-Za-z0-9_-]+$"
|
|
}
|
|
},
|
|
"required": [
|
|
"alg",
|
|
"epk",
|
|
"iv",
|
|
"ciphertext"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"notBefore": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"expiresAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"signature": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{86}$"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "adopt-undo"
|
|
},
|
|
"args": {
|
|
"type": "object",
|
|
"properties": {
|
|
"church": {
|
|
"type": "string",
|
|
"pattern": "^[a-z][a-z0-9-]{1,30}$"
|
|
}
|
|
},
|
|
"required": [
|
|
"church"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"schema",
|
|
"id",
|
|
"serverId",
|
|
"notBefore",
|
|
"expiresAt",
|
|
"signature",
|
|
"type",
|
|
"args"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"schema": {
|
|
"type": "string",
|
|
"const": "crosscode.agent-job/1"
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^job_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"serverId": {
|
|
"type": "string",
|
|
"pattern": "^srv_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"config": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"alg": {
|
|
"type": "string",
|
|
"const": "x25519-hkdf-sha256-aes-256-gcm"
|
|
},
|
|
"epk": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{43}$"
|
|
},
|
|
"iv": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{16}$"
|
|
},
|
|
"ciphertext": {
|
|
"type": "string",
|
|
"maxLength": 200000,
|
|
"pattern": "^[A-Za-z0-9_-]+$"
|
|
}
|
|
},
|
|
"required": [
|
|
"alg",
|
|
"epk",
|
|
"iv",
|
|
"ciphertext"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"notBefore": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"expiresAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"signature": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{86}$"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "restart"
|
|
},
|
|
"args": {
|
|
"type": "object",
|
|
"properties": {
|
|
"church": {
|
|
"type": "string",
|
|
"pattern": "^[a-z][a-z0-9-]{1,30}$"
|
|
},
|
|
"product": {
|
|
"type": "string",
|
|
"enum": [
|
|
"events",
|
|
"website",
|
|
"app",
|
|
"accounts"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"church"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"schema",
|
|
"id",
|
|
"serverId",
|
|
"notBefore",
|
|
"expiresAt",
|
|
"signature",
|
|
"type",
|
|
"args"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"schema": {
|
|
"type": "string",
|
|
"const": "crosscode.agent-job/1"
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^job_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"serverId": {
|
|
"type": "string",
|
|
"pattern": "^srv_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"config": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"alg": {
|
|
"type": "string",
|
|
"const": "x25519-hkdf-sha256-aes-256-gcm"
|
|
},
|
|
"epk": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{43}$"
|
|
},
|
|
"iv": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{16}$"
|
|
},
|
|
"ciphertext": {
|
|
"type": "string",
|
|
"maxLength": 200000,
|
|
"pattern": "^[A-Za-z0-9_-]+$"
|
|
}
|
|
},
|
|
"required": [
|
|
"alg",
|
|
"epk",
|
|
"iv",
|
|
"ciphertext"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"notBefore": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"expiresAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"signature": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{86}$"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "seed-demo"
|
|
},
|
|
"args": {
|
|
"type": "object",
|
|
"properties": {
|
|
"church": {
|
|
"type": "string",
|
|
"pattern": "^[a-z][a-z0-9-]{1,30}$"
|
|
},
|
|
"profile": {
|
|
"type": "string",
|
|
"enum": [
|
|
"small",
|
|
"events",
|
|
"ministry",
|
|
"multicampus"
|
|
]
|
|
},
|
|
"adminEmail": {
|
|
"type": "string",
|
|
"maxLength": 254,
|
|
"format": "email",
|
|
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
}
|
|
},
|
|
"required": [
|
|
"church",
|
|
"profile"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"schema",
|
|
"id",
|
|
"serverId",
|
|
"notBefore",
|
|
"expiresAt",
|
|
"signature",
|
|
"type",
|
|
"args"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"schema": {
|
|
"type": "string",
|
|
"const": "crosscode.agent-job/1"
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^job_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"serverId": {
|
|
"type": "string",
|
|
"pattern": "^srv_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"config": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"alg": {
|
|
"type": "string",
|
|
"const": "x25519-hkdf-sha256-aes-256-gcm"
|
|
},
|
|
"epk": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{43}$"
|
|
},
|
|
"iv": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{16}$"
|
|
},
|
|
"ciphertext": {
|
|
"type": "string",
|
|
"maxLength": 200000,
|
|
"pattern": "^[A-Za-z0-9_-]+$"
|
|
}
|
|
},
|
|
"required": [
|
|
"alg",
|
|
"epk",
|
|
"iv",
|
|
"ciphertext"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"notBefore": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"expiresAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"signature": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{86}$"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "export"
|
|
},
|
|
"args": {
|
|
"type": "object",
|
|
"properties": {
|
|
"church": {
|
|
"type": "string",
|
|
"pattern": "^[a-z][a-z0-9-]{1,30}$"
|
|
},
|
|
"exportId": {
|
|
"type": "string",
|
|
"pattern": "^exp_[A-Za-z0-9_-]{8,64}$"
|
|
}
|
|
},
|
|
"required": [
|
|
"church",
|
|
"exportId"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"schema",
|
|
"id",
|
|
"serverId",
|
|
"notBefore",
|
|
"expiresAt",
|
|
"signature",
|
|
"type",
|
|
"args"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"schema": {
|
|
"type": "string",
|
|
"const": "crosscode.agent-job/1"
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^job_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"serverId": {
|
|
"type": "string",
|
|
"pattern": "^srv_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"config": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"alg": {
|
|
"type": "string",
|
|
"const": "x25519-hkdf-sha256-aes-256-gcm"
|
|
},
|
|
"epk": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{43}$"
|
|
},
|
|
"iv": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{16}$"
|
|
},
|
|
"ciphertext": {
|
|
"type": "string",
|
|
"maxLength": 200000,
|
|
"pattern": "^[A-Za-z0-9_-]+$"
|
|
}
|
|
},
|
|
"required": [
|
|
"alg",
|
|
"epk",
|
|
"iv",
|
|
"ciphertext"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"notBefore": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"expiresAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"signature": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{86}$"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "uninstall"
|
|
},
|
|
"args": {
|
|
"type": "object",
|
|
"properties": {
|
|
"church": {
|
|
"type": "string",
|
|
"pattern": "^[a-z][a-z0-9-]{1,30}$"
|
|
}
|
|
},
|
|
"required": [
|
|
"church"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"schema",
|
|
"id",
|
|
"serverId",
|
|
"notBefore",
|
|
"expiresAt",
|
|
"signature",
|
|
"type",
|
|
"args"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"schema": {
|
|
"type": "string",
|
|
"const": "crosscode.agent-job/1"
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^job_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"serverId": {
|
|
"type": "string",
|
|
"pattern": "^srv_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"config": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"alg": {
|
|
"type": "string",
|
|
"const": "x25519-hkdf-sha256-aes-256-gcm"
|
|
},
|
|
"epk": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{43}$"
|
|
},
|
|
"iv": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{16}$"
|
|
},
|
|
"ciphertext": {
|
|
"type": "string",
|
|
"maxLength": 200000,
|
|
"pattern": "^[A-Za-z0-9_-]+$"
|
|
}
|
|
},
|
|
"required": [
|
|
"alg",
|
|
"epk",
|
|
"iv",
|
|
"ciphertext"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"notBefore": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"expiresAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"signature": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{86}$"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "purge"
|
|
},
|
|
"args": {
|
|
"type": "object",
|
|
"properties": {
|
|
"church": {
|
|
"type": "string",
|
|
"pattern": "^[a-z][a-z0-9-]{1,30}$"
|
|
}
|
|
},
|
|
"required": [
|
|
"church"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"schema",
|
|
"id",
|
|
"serverId",
|
|
"notBefore",
|
|
"expiresAt",
|
|
"signature",
|
|
"type",
|
|
"args"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"schema": {
|
|
"type": "string",
|
|
"const": "crosscode.agent-job/1"
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^job_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"serverId": {
|
|
"type": "string",
|
|
"pattern": "^srv_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"config": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"alg": {
|
|
"type": "string",
|
|
"const": "x25519-hkdf-sha256-aes-256-gcm"
|
|
},
|
|
"epk": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{43}$"
|
|
},
|
|
"iv": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{16}$"
|
|
},
|
|
"ciphertext": {
|
|
"type": "string",
|
|
"maxLength": 200000,
|
|
"pattern": "^[A-Za-z0-9_-]+$"
|
|
}
|
|
},
|
|
"required": [
|
|
"alg",
|
|
"epk",
|
|
"iv",
|
|
"ciphertext"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"notBefore": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"expiresAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"signature": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{86}$"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "update-agent"
|
|
},
|
|
"args": {
|
|
"type": "object",
|
|
"properties": {
|
|
"version": {
|
|
"type": "string",
|
|
"pattern": "^agent@\\d+\\.\\d+\\.\\d+$"
|
|
}
|
|
},
|
|
"required": [
|
|
"version"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"schema",
|
|
"id",
|
|
"serverId",
|
|
"notBefore",
|
|
"expiresAt",
|
|
"signature",
|
|
"type",
|
|
"args"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"schema": {
|
|
"type": "string",
|
|
"const": "crosscode.agent-job/1"
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^job_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"serverId": {
|
|
"type": "string",
|
|
"pattern": "^srv_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"config": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"alg": {
|
|
"type": "string",
|
|
"const": "x25519-hkdf-sha256-aes-256-gcm"
|
|
},
|
|
"epk": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{43}$"
|
|
},
|
|
"iv": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{16}$"
|
|
},
|
|
"ciphertext": {
|
|
"type": "string",
|
|
"maxLength": 200000,
|
|
"pattern": "^[A-Za-z0-9_-]+$"
|
|
}
|
|
},
|
|
"required": [
|
|
"alg",
|
|
"epk",
|
|
"iv",
|
|
"ciphertext"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"notBefore": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"expiresAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"signature": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{86}$"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "check-ports"
|
|
},
|
|
"args": {
|
|
"type": "object",
|
|
"properties": {
|
|
"ports": {
|
|
"minItems": 1,
|
|
"maxItems": 50,
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"minimum": 1024,
|
|
"maximum": 65535
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"ports"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"schema",
|
|
"id",
|
|
"serverId",
|
|
"notBefore",
|
|
"expiresAt",
|
|
"signature",
|
|
"type",
|
|
"args"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"schema": {
|
|
"type": "string",
|
|
"const": "crosscode.agent-job/1"
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^job_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"serverId": {
|
|
"type": "string",
|
|
"pattern": "^srv_[A-Za-z0-9_-]{8,64}$"
|
|
},
|
|
"config": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"alg": {
|
|
"type": "string",
|
|
"const": "x25519-hkdf-sha256-aes-256-gcm"
|
|
},
|
|
"epk": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{43}$"
|
|
},
|
|
"iv": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{16}$"
|
|
},
|
|
"ciphertext": {
|
|
"type": "string",
|
|
"maxLength": 200000,
|
|
"pattern": "^[A-Za-z0-9_-]+$"
|
|
}
|
|
},
|
|
"required": [
|
|
"alg",
|
|
"epk",
|
|
"iv",
|
|
"ciphertext"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"notBefore": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"expiresAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
},
|
|
"signature": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z0-9_-]{86}$"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "status"
|
|
},
|
|
"args": {
|
|
"type": "object",
|
|
"properties": {
|
|
"church": {
|
|
"type": "string",
|
|
"pattern": "^[a-z][a-z0-9-]{1,30}$"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"schema",
|
|
"id",
|
|
"serverId",
|
|
"notBefore",
|
|
"expiresAt",
|
|
"signature",
|
|
"type",
|
|
"args"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
]
|
|
}
|