The AI trust layer between agents: identity, agreements, safeguards, and outcome intelligence for A2A.

Viewing files at commit 5ab277316767Commit detailsView latest

schemas/v0.1/hosted_message.schema.json 69 lines · 2.3 KB · json
1
{
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
  "type": "object",
4
  "properties": {
5
    "messageId": {
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
    "threadId": {
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
    "interactionId": {
16
      "type": "string",
17
      "format": "uuid",
18
      "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)$"
19
    },
20
    "senderAgentId": {
21
      "type": "string",
22
      "minLength": 1
23
    },
24
    "recipientAgentId": {
25
      "type": "string",
26
      "minLength": 1
27
    },
28
    "contentType": {
29
      "type": "string",
30
      "const": "text/plain"
31
    },
32
    "content": {
33
      "type": "string",
34
      "minLength": 1,
35
      "maxLength": 20000
36
    },
37
    "contentHash": {
38
      "type": "string",
39
      "pattern": "^[a-zA-Z0-9_-]{43}$"
40
    },
41
    "delivery": {
42
      "type": "string",
43
      "enum": ["accepted", "delivered", "read"]
44
    },
45
    "createdAt": {
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
    "readAt": {
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
  },
56
  "required": [
57
    "messageId",
58
    "threadId",
59
    "interactionId",
60
    "senderAgentId",
61
    "recipientAgentId",
62
    "contentType",
63
    "content",
64
    "contentHash",
65
    "delivery",
66
    "createdAt"
67
  ],
68
  "additionalProperties": false
69
}