| 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": [
|
| 46 | "local_only",
|
| 47 | "structured_only",
|
| 48 | "permitted_evidence"
|
| 49 | ]
|
| 50 | },
|
| 51 | "evidenceRequirements": {
|
| 52 | "type": "array",
|
| 53 | "items": {
|
| 54 | "type": "string"
|
| 55 | }
|
| 56 | },
|
| 57 | "timestamp": {
|
| 58 | "type": "string",
|
| 59 | "format": "date-time",
|
| 60 | "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))$"
|
| 61 | },
|
| 62 | "expiresAt": {
|
| 63 | "type": "string",
|
| 64 | "format": "date-time",
|
| 65 | "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))$"
|
| 66 | },
|
| 67 | "nonce": {
|
| 68 | "type": "string",
|
| 69 | "minLength": 12
|
| 70 | },
|
| 71 | "signature": {
|
| 72 | "type": "object",
|
| 73 | "properties": {
|
| 74 | "algorithm": {
|
| 75 | "type": "string",
|
| 76 | "const": "Ed25519"
|
| 77 | },
|
| 78 | "keyId": {
|
| 79 | "type": "string",
|
| 80 | "minLength": 1
|
| 81 | },
|
| 82 | "value": {
|
| 83 | "type": "string",
|
| 84 | "minLength": 1
|
| 85 | }
|
| 86 | },
|
| 87 | "required": [
|
| 88 | "algorithm",
|
| 89 | "keyId",
|
| 90 | "value"
|
| 91 | ],
|
| 92 | "additionalProperties": false
|
| 93 | }
|
| 94 | },
|
| 95 | "required": [
|
| 96 | "protocolVersion",
|
| 97 | "interactionId",
|
| 98 | "requestingAgentId",
|
| 99 | "respondingAgentId",
|
| 100 | "rootControllerId",
|
| 101 | "agentVersion",
|
| 102 | "requestedCapability",
|
| 103 | "taskCategory",
|
| 104 | "contractHash",
|
| 105 | "dataSharingMode",
|
| 106 | "evidenceRequirements",
|
| 107 | "timestamp",
|
| 108 | "expiresAt",
|
| 109 | "nonce"
|
| 110 | ],
|
| 111 | "additionalProperties": false
|
| 112 | }
|