| 1 | {
|
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema",
|
| 3 | "type": "object",
|
| 4 | "properties": {
|
| 5 | "protocolVersion": {
|
| 6 | "type": "string",
|
| 7 | "const": "0.1"
|
| 8 | },
|
| 9 | "delegationId": {
|
| 10 | "type": "string",
|
| 11 | "format": "uuid",
|
| 12 | "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
| 13 | },
|
| 14 | "parentAgentId": {
|
| 15 | "type": "string"
|
| 16 | },
|
| 17 | "childAgentId": {
|
| 18 | "type": "string"
|
| 19 | },
|
| 20 | "rootControllerId": {
|
| 21 | "type": "string"
|
| 22 | },
|
| 23 | "capabilities": {
|
| 24 | "minItems": 1,
|
| 25 | "type": "array",
|
| 26 | "items": {
|
| 27 | "type": "string"
|
| 28 | }
|
| 29 | },
|
| 30 | "issuedAt": {
|
| 31 | "type": "string",
|
| 32 | "format": "date-time",
|
| 33 | "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))$"
|
| 34 | },
|
| 35 | "expiresAt": {
|
| 36 | "type": "string",
|
| 37 | "format": "date-time",
|
| 38 | "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))$"
|
| 39 | },
|
| 40 | "revoked": {
|
| 41 | "default": false,
|
| 42 | "type": "boolean"
|
| 43 | },
|
| 44 | "signature": {
|
| 45 | "type": "object",
|
| 46 | "properties": {
|
| 47 | "algorithm": {
|
| 48 | "type": "string",
|
| 49 | "const": "Ed25519"
|
| 50 | },
|
| 51 | "keyId": {
|
| 52 | "type": "string",
|
| 53 | "minLength": 1
|
| 54 | },
|
| 55 | "value": {
|
| 56 | "type": "string",
|
| 57 | "minLength": 1
|
| 58 | }
|
| 59 | },
|
| 60 | "required": ["algorithm", "keyId", "value"],
|
| 61 | "additionalProperties": false
|
| 62 | }
|
| 63 | },
|
| 64 | "required": [
|
| 65 | "protocolVersion",
|
| 66 | "delegationId",
|
| 67 | "parentAgentId",
|
| 68 | "childAgentId",
|
| 69 | "rootControllerId",
|
| 70 | "capabilities",
|
| 71 | "issuedAt",
|
| 72 | "expiresAt",
|
| 73 | "revoked"
|
| 74 | ],
|
| 75 | "additionalProperties": false
|
| 76 | }
|