| 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 | "interactionId": {
|
| 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 | "requestingAgentId": {
|
| 15 | "type": "string"
|
| 16 | },
|
| 17 | "respondingAgentId": {
|
| 18 | "type": "string"
|
| 19 | },
|
| 20 | "rootControllerId": {
|
| 21 | "type": "string"
|
| 22 | },
|
| 23 | "parentAgentId": {
|
| 24 | "type": "string"
|
| 25 | },
|
| 26 | "agentVersion": {
|
| 27 | "type": "string"
|
| 28 | },
|
| 29 | "delegationId": {
|
| 30 | "type": "string",
|
| 31 | "format": "uuid",
|
| 32 | "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)$"
|
| 33 | },
|
| 34 | "requestedCapability": {
|
| 35 | "type": "string"
|
| 36 | },
|
| 37 | "taskCategory": {
|
| 38 | "type": "string"
|
| 39 | },
|
| 40 | "contractHash": {
|
| 41 | "type": "string"
|
| 42 | },
|
| 43 | "dataSharingMode": {
|
| 44 | "type": "string",
|
| 45 | "enum": ["local_only", "structured_only", "permitted_evidence"]
|
| 46 | },
|
| 47 | "evidenceRequirements": {
|
| 48 | "type": "array",
|
| 49 | "items": {
|
| 50 | "type": "string"
|
| 51 | }
|
| 52 | },
|
| 53 | "timestamp": {
|
| 54 | "type": "string",
|
| 55 | "format": "date-time",
|
| 56 | "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))$"
|
| 57 | },
|
| 58 | "expiresAt": {
|
| 59 | "type": "string",
|
| 60 | "format": "date-time",
|
| 61 | "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))$"
|
| 62 | },
|
| 63 | "nonce": {
|
| 64 | "type": "string",
|
| 65 | "minLength": 12
|
| 66 | },
|
| 67 | "signature": {
|
| 68 | "type": "object",
|
| 69 | "properties": {
|
| 70 | "algorithm": {
|
| 71 | "type": "string",
|
| 72 | "const": "Ed25519"
|
| 73 | },
|
| 74 | "keyId": {
|
| 75 | "type": "string",
|
| 76 | "minLength": 1
|
| 77 | },
|
| 78 | "value": {
|
| 79 | "type": "string",
|
| 80 | "minLength": 1
|
| 81 | }
|
| 82 | },
|
| 83 | "required": ["algorithm", "keyId", "value"],
|
| 84 | "additionalProperties": false
|
| 85 | }
|
| 86 | },
|
| 87 | "required": [
|
| 88 | "protocolVersion",
|
| 89 | "interactionId",
|
| 90 | "requestingAgentId",
|
| 91 | "respondingAgentId",
|
| 92 | "rootControllerId",
|
| 93 | "agentVersion",
|
| 94 | "requestedCapability",
|
| 95 | "taskCategory",
|
| 96 | "contractHash",
|
| 97 | "dataSharingMode",
|
| 98 | "evidenceRequirements",
|
| 99 | "timestamp",
|
| 100 | "expiresAt",
|
| 101 | "nonce"
|
| 102 | ],
|
| 103 | "additionalProperties": false
|
| 104 | }
|