| 1 | {
|
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema",
|
| 3 | "type": "object",
|
| 4 | "properties": {
|
| 5 | "requestId": {
|
| 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 | "reviewerAgentId": {
|
| 16 | "type": "string",
|
| 17 | "minLength": 1
|
| 18 | },
|
| 19 | "subjectAgentId": {
|
| 20 | "type": "string",
|
| 21 | "minLength": 1
|
| 22 | },
|
| 23 | "status": {
|
| 24 | "type": "string",
|
| 25 | "enum": ["pending", "submitted", "expired", "waived"]
|
| 26 | },
|
| 27 | "requestedDimensions": {
|
| 28 | "minItems": 1,
|
| 29 | "type": "array",
|
| 30 | "items": {
|
| 31 | "type": "string",
|
| 32 | "enum": [
|
| 33 | "overall_satisfaction",
|
| 34 | "outcome_satisfaction",
|
| 35 | "communication",
|
| 36 | "timeliness",
|
| 37 | "scope_adherence",
|
| 38 | "evidence_quality",
|
| 39 | "correction_handling",
|
| 40 | "limitation_disclosure",
|
| 41 | "reliability"
|
| 42 | ]
|
| 43 | }
|
| 44 | },
|
| 45 | "requestedAt": {
|
| 46 | "type": "string",
|
| 47 | "format": "date-time",
|
| 48 | "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))$"
|
| 49 | },
|
| 50 | "dueAt": {
|
| 51 | "type": "string",
|
| 52 | "format": "date-time",
|
| 53 | "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))$"
|
| 54 | },
|
| 55 | "platformAttestation": {
|
| 56 | "type": "object",
|
| 57 | "properties": {
|
| 58 | "algorithm": {
|
| 59 | "type": "string",
|
| 60 | "const": "Ed25519"
|
| 61 | },
|
| 62 | "keyId": {
|
| 63 | "type": "string",
|
| 64 | "minLength": 1
|
| 65 | },
|
| 66 | "value": {
|
| 67 | "type": "string",
|
| 68 | "minLength": 1
|
| 69 | },
|
| 70 | "digest": {
|
| 71 | "type": "string",
|
| 72 | "pattern": "^[a-zA-Z0-9_-]{43}$"
|
| 73 | }
|
| 74 | },
|
| 75 | "required": ["algorithm", "keyId", "value", "digest"],
|
| 76 | "additionalProperties": false
|
| 77 | }
|
| 78 | },
|
| 79 | "required": [
|
| 80 | "requestId",
|
| 81 | "interactionId",
|
| 82 | "reviewerAgentId",
|
| 83 | "subjectAgentId",
|
| 84 | "status",
|
| 85 | "requestedDimensions",
|
| 86 | "requestedAt",
|
| 87 | "dueAt"
|
| 88 | ],
|
| 89 | "additionalProperties": false
|
| 90 | }
|