- Events and Accounts: Background jobs are switched on or off and rescheduled from the admin; the choice is kept in the database (job_overrides), wins over the .env and applies at once. Accounts gets an Admin -> Background jobs page and per-job env flags, as Events. - Accounts: every email styled as Cross Events' (church colour, logo, button, footer), same plain text (src/lib/emails.ts). - Contracts 1.12.0: env-read / env-set agent jobs, envReadResultSchema, isSecretEnvName. - crosscode script: `crosscode env <church> <product>` reads the .env (secrets hidden) and, with --set/--unset/--restart, changes one file, rebuilds the frontend when its file changed, reloads, and puts the file back if the site doesn't answer (lib/envedit.cjs, tests/envedit.bats). - Agent 1.3.0: runs env-read and env-set. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1681 lines
49 KiB
JSON
1681 lines
49 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": "env-read"
|
|
},
|
|
"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",
|
|
"product"
|
|
],
|
|
"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": "env-set"
|
|
},
|
|
"args": {
|
|
"type": "object",
|
|
"properties": {
|
|
"church": {
|
|
"type": "string",
|
|
"pattern": "^[a-z][a-z0-9-]{1,30}$"
|
|
},
|
|
"product": {
|
|
"type": "string",
|
|
"enum": [
|
|
"events",
|
|
"website",
|
|
"app",
|
|
"accounts"
|
|
]
|
|
},
|
|
"file": {
|
|
"type": "string",
|
|
"maxLength": 100,
|
|
"pattern": "^(backend|frontend)\\/\\.env(\\.production)?$"
|
|
},
|
|
"set": {
|
|
"type": "object",
|
|
"propertyNames": {
|
|
"type": "string",
|
|
"maxLength": 100,
|
|
"pattern": "^[A-Z][A-Z0-9_]*$"
|
|
},
|
|
"additionalProperties": {
|
|
"type": "string",
|
|
"maxLength": 4000,
|
|
"pattern": "^[^\\r\\n]*$"
|
|
}
|
|
},
|
|
"unset": {
|
|
"maxItems": 50,
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"maxLength": 100,
|
|
"pattern": "^[A-Z][A-Z0-9_]*$"
|
|
}
|
|
},
|
|
"restart": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"church",
|
|
"product",
|
|
"file",
|
|
"set",
|
|
"unset",
|
|
"restart"
|
|
],
|
|
"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
|
|
}
|
|
]
|
|
}
|