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

Viewing files at commit 8a15fe87b720Commit detailsView latest

schemas/v0.1/hosted_thread.schema.json 73 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": [
31
        "open",
32
        "closed"
33
      ]
34
    },
35
    "privacyMode": {
36
      "type": "string",
37
      "const": "openclasp_hosted_temporary"
38
    },
39
    "unreadCount": {
40
      "default": 0,
41
      "type": "integer",
42
      "minimum": 0,
43
      "maximum": 9007199254740991
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
    "updatedAt": {
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
    "expiresAt": {
56
      "type": "string",
57
      "format": "date-time",
58
      "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))$"
59
    }
60
  },
61
  "required": [
62
    "threadId",
63
    "interactionId",
64
    "participantAgentIds",
65
    "status",
66
    "privacyMode",
67
    "unreadCount",
68
    "createdAt",
69
    "updatedAt",
70
    "expiresAt"
71
  ],
72
  "additionalProperties": false
73
}