| 1 | {
|
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema",
|
| 3 | "type": "object",
|
| 4 | "properties": {
|
| 5 | "type": {
|
| 6 | "type": "string",
|
| 7 | "const": "openclasp.session.accepted"
|
| 8 | },
|
| 9 | "version": {
|
| 10 | "type": "string",
|
| 11 | "const": "1"
|
| 12 | },
|
| 13 | "offerId": {
|
| 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 | "interactionId": {
|
| 19 | "type": "string",
|
| 20 | "format": "uuid",
|
| 21 | "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)$"
|
| 22 | },
|
| 23 | "agentId": {
|
| 24 | "type": "string",
|
| 25 | "minLength": 1
|
| 26 | },
|
| 27 | "sessionId": {
|
| 28 | "type": "string",
|
| 29 | "format": "uuid",
|
| 30 | "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)$"
|
| 31 | },
|
| 32 | "a2aEndpoint": {
|
| 33 | "type": "string",
|
| 34 | "format": "uri"
|
| 35 | },
|
| 36 | "expiresAt": {
|
| 37 | "type": "string",
|
| 38 | "format": "date-time",
|
| 39 | "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))$"
|
| 40 | }
|
| 41 | },
|
| 42 | "required": [
|
| 43 | "type",
|
| 44 | "version",
|
| 45 | "offerId",
|
| 46 | "interactionId",
|
| 47 | "agentId",
|
| 48 | "sessionId",
|
| 49 | "a2aEndpoint",
|
| 50 | "expiresAt"
|
| 51 | ],
|
| 52 | "additionalProperties": false
|
| 53 | }
|