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

Viewing files at commit 97e903f3fe69Commit detailsView latest

schemas/v0.1/hosted_thread.schema.json 70 lines · 2.5 KB · json
1
{
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
  "type": "object",
4
  "properties": {
5
    "threadId": {
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
    "participantAgentIds": {
16
      "type": "array",
17
      "prefixItems": [
18
        {
19
          "type": "string",
20
          "minLength": 1
21
        },
22
        {
23
          "type": "string",
24
          "minLength": 1
25
        }
26
      ]
27
    },
28
    "status": {
29
      "type": "string",
30
      "enum": ["open", "closed"]
31
    },
32
    "privacyMode": {
33
      "type": "string",
34
      "const": "openclasp_hosted_temporary"
35
    },
36
    "unreadCount": {
37
      "default": 0,
38
      "type": "integer",
39
      "minimum": 0,
40
      "maximum": 9007199254740991
41
    },
42
    "createdAt": {
43
      "type": "string",
44
      "format": "date-time",
45
      "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))$"
46
    },
47
    "updatedAt": {
48
      "type": "string",
49
      "format": "date-time",
50
      "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))$"
51
    },
52
    "expiresAt": {
53
      "type": "string",
54
      "format": "date-time",
55
      "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))$"
56
    }
57
  },
58
  "required": [
59
    "threadId",
60
    "interactionId",
61
    "participantAgentIds",
62
    "status",
63
    "privacyMode",
64
    "unreadCount",
65
    "createdAt",
66
    "updatedAt",
67
    "expiresAt"
68
  ],
69
  "additionalProperties": false
70
}