| 1 | {
|
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema",
|
| 3 | "type": "object",
|
| 4 | "properties": {
|
| 5 | "receiptId": {
|
| 6 | "type": "string",
|
| 7 | "format": "uuid",
|
| 8 | "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)$"
|
| 9 | },
|
| 10 | "interactionId": {
|
| 11 | "type": "string",
|
| 12 | "format": "uuid",
|
| 13 | "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)$"
|
| 14 | },
|
| 15 | "participants": {
|
| 16 | "type": "array",
|
| 17 | "items": {
|
| 18 | "type": "string"
|
| 19 | }
|
| 20 | },
|
| 21 | "agentVersions": {
|
| 22 | "type": "object",
|
| 23 | "propertyNames": {
|
| 24 | "type": "string"
|
| 25 | },
|
| 26 | "additionalProperties": {
|
| 27 | "type": "string"
|
| 28 | }
|
| 29 | },
|
| 30 | "contractHash": {
|
| 31 | "type": "string"
|
| 32 | },
|
| 33 | "startedAt": {
|
| 34 | "type": "string",
|
| 35 | "format": "date-time",
|
| 36 | "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))$"
|
| 37 | },
|
| 38 | "completedAt": {
|
| 39 | "type": "string",
|
| 40 | "format": "date-time",
|
| 41 | "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))$"
|
| 42 | },
|
| 43 | "outcome": {
|
| 44 | "type": "string",
|
| 45 | "enum": [
|
| 46 | "success",
|
| 47 | "partial",
|
| 48 | "failure",
|
| 49 | "cancelled"
|
| 50 | ]
|
| 51 | },
|
| 52 | "commitmentsFulfilled": {
|
| 53 | "type": "array",
|
| 54 | "items": {
|
| 55 | "type": "string"
|
| 56 | }
|
| 57 | },
|
| 58 | "commitmentsMissed": {
|
| 59 | "type": "array",
|
| 60 | "items": {
|
| 61 | "type": "string"
|
| 62 | }
|
| 63 | },
|
| 64 | "evidenceHashes": {
|
| 65 | "type": "array",
|
| 66 | "items": {
|
| 67 | "type": "string"
|
| 68 | }
|
| 69 | },
|
| 70 | "policyWarnings": {
|
| 71 | "type": "array",
|
| 72 | "items": {
|
| 73 | "type": "string"
|
| 74 | }
|
| 75 | },
|
| 76 | "policyViolations": {
|
| 77 | "type": "array",
|
| 78 | "items": {
|
| 79 | "type": "string"
|
| 80 | }
|
| 81 | },
|
| 82 | "disputeStatus": {
|
| 83 | "type": "string",
|
| 84 | "enum": [
|
| 85 | "none",
|
| 86 | "open",
|
| 87 | "resolved"
|
| 88 | ]
|
| 89 | },
|
| 90 | "delegationChainHash": {
|
| 91 | "type": "string"
|
| 92 | },
|
| 93 | "unilateral": {
|
| 94 | "type": "boolean"
|
| 95 | },
|
| 96 | "provisional": {
|
| 97 | "type": "boolean"
|
| 98 | },
|
| 99 | "confidence": {
|
| 100 | "type": "number",
|
| 101 | "minimum": 0,
|
| 102 | "maximum": 1
|
| 103 | },
|
| 104 | "signatures": {
|
| 105 | "default": {},
|
| 106 | "type": "object",
|
| 107 | "propertyNames": {
|
| 108 | "type": "string"
|
| 109 | },
|
| 110 | "additionalProperties": {
|
| 111 | "type": "object",
|
| 112 | "properties": {
|
| 113 | "algorithm": {
|
| 114 | "type": "string",
|
| 115 | "const": "Ed25519"
|
| 116 | },
|
| 117 | "keyId": {
|
| 118 | "type": "string",
|
| 119 | "minLength": 1
|
| 120 | },
|
| 121 | "value": {
|
| 122 | "type": "string",
|
| 123 | "minLength": 1
|
| 124 | }
|
| 125 | },
|
| 126 | "required": [
|
| 127 | "algorithm",
|
| 128 | "keyId",
|
| 129 | "value"
|
| 130 | ],
|
| 131 | "additionalProperties": false
|
| 132 | }
|
| 133 | },
|
| 134 | "completionReportIds": {
|
| 135 | "maxItems": 2,
|
| 136 | "type": "array",
|
| 137 | "items": {
|
| 138 | "type": "string",
|
| 139 | "format": "uuid",
|
| 140 | "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)$"
|
| 141 | }
|
| 142 | },
|
| 143 | "conclusionId": {
|
| 144 | "type": "string",
|
| 145 | "format": "uuid",
|
| 146 | "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)$"
|
| 147 | },
|
| 148 | "platformAttestation": {
|
| 149 | "type": "object",
|
| 150 | "properties": {
|
| 151 | "algorithm": {
|
| 152 | "type": "string",
|
| 153 | "const": "Ed25519"
|
| 154 | },
|
| 155 | "keyId": {
|
| 156 | "type": "string",
|
| 157 | "minLength": 1
|
| 158 | },
|
| 159 | "value": {
|
| 160 | "type": "string",
|
| 161 | "minLength": 1
|
| 162 | },
|
| 163 | "digest": {
|
| 164 | "type": "string",
|
| 165 | "pattern": "^[a-zA-Z0-9_-]{43}$"
|
| 166 | }
|
| 167 | },
|
| 168 | "required": [
|
| 169 | "algorithm",
|
| 170 | "keyId",
|
| 171 | "value",
|
| 172 | "digest"
|
| 173 | ],
|
| 174 | "additionalProperties": false
|
| 175 | }
|
| 176 | },
|
| 177 | "required": [
|
| 178 | "receiptId",
|
| 179 | "interactionId",
|
| 180 | "participants",
|
| 181 | "agentVersions",
|
| 182 | "contractHash",
|
| 183 | "startedAt",
|
| 184 | "completedAt",
|
| 185 | "outcome",
|
| 186 | "commitmentsFulfilled",
|
| 187 | "commitmentsMissed",
|
| 188 | "evidenceHashes",
|
| 189 | "policyWarnings",
|
| 190 | "policyViolations",
|
| 191 | "disputeStatus",
|
| 192 | "delegationChainHash",
|
| 193 | "unilateral",
|
| 194 | "signatures"
|
| 195 | ],
|
| 196 | "additionalProperties": false
|
| 197 | }
|