| 1 | {
|
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema",
|
| 3 | "type": "object",
|
| 4 | "properties": {
|
| 5 | "type": {
|
| 6 | "type": "string",
|
| 7 | "const": "openclasp.a2a.delivery"
|
| 8 | },
|
| 9 | "version": {
|
| 10 | "type": "string",
|
| 11 | "const": "1"
|
| 12 | },
|
| 13 | "deliveryId": {
|
| 14 | "type": "string",
|
| 15 | "format": "uuid",
|
| 16 | "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)$"
|
| 17 | },
|
| 18 | "agentId": {
|
| 19 | "type": "string",
|
| 20 | "minLength": 1
|
| 21 | },
|
| 22 | "interactionId": {
|
| 23 | "type": "string",
|
| 24 | "format": "uuid",
|
| 25 | "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)$"
|
| 26 | },
|
| 27 | "receivedAt": {
|
| 28 | "type": "string",
|
| 29 | "format": "date-time",
|
| 30 | "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))$"
|
| 31 | },
|
| 32 | "message": {
|
| 33 | "type": "object",
|
| 34 | "properties": {
|
| 35 | "messageId": {
|
| 36 | "type": "string",
|
| 37 | "format": "uuid",
|
| 38 | "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)$"
|
| 39 | },
|
| 40 | "senderAgentId": {
|
| 41 | "type": "string",
|
| 42 | "minLength": 1
|
| 43 | },
|
| 44 | "contentType": {
|
| 45 | "type": "string",
|
| 46 | "minLength": 1
|
| 47 | },
|
| 48 | "createdAt": {
|
| 49 | "type": "string",
|
| 50 | "format": "date-time",
|
| 51 | "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))$"
|
| 52 | },
|
| 53 | "expiresAt": {
|
| 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 | "payload": {}
|
| 59 | },
|
| 60 | "required": [
|
| 61 | "messageId",
|
| 62 | "senderAgentId",
|
| 63 | "contentType",
|
| 64 | "createdAt",
|
| 65 | "expiresAt",
|
| 66 | "payload"
|
| 67 | ],
|
| 68 | "additionalProperties": false
|
| 69 | },
|
| 70 | "reply": {
|
| 71 | "type": "object",
|
| 72 | "properties": {
|
| 73 | "endpoint": {
|
| 74 | "type": "string",
|
| 75 | "format": "uri"
|
| 76 | },
|
| 77 | "bearerToken": {
|
| 78 | "type": "string",
|
| 79 | "minLength": 1
|
| 80 | }
|
| 81 | },
|
| 82 | "required": ["endpoint", "bearerToken"],
|
| 83 | "additionalProperties": false
|
| 84 | }
|
| 85 | },
|
| 86 | "required": [
|
| 87 | "type",
|
| 88 | "version",
|
| 89 | "deliveryId",
|
| 90 | "agentId",
|
| 91 | "interactionId",
|
| 92 | "receivedAt",
|
| 93 | "message",
|
| 94 | "reply"
|
| 95 | ],
|
| 96 | "additionalProperties": false
|
| 97 | }
|