@osstack/protocol 0.20.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/attention.d.ts +863 -0
- package/dist/attention.d.ts.map +1 -0
- package/dist/attention.js +112 -0
- package/dist/attention.js.map +1 -0
- package/dist/autonomy.d.ts +14 -14
- package/dist/delivery-contract.d.ts +734 -0
- package/dist/delivery-contract.d.ts.map +1 -0
- package/dist/delivery-contract.js +111 -0
- package/dist/delivery-contract.js.map +1 -0
- package/dist/envelope.d.ts +42 -42
- package/dist/event.d.ts +4 -4
- package/dist/follow-up-delivery.d.ts +1831 -0
- package/dist/follow-up-delivery.d.ts.map +1 -0
- package/dist/follow-up-delivery.js +174 -0
- package/dist/follow-up-delivery.js.map +1 -0
- package/dist/follow-up.d.ts +1100 -0
- package/dist/follow-up.d.ts.map +1 -0
- package/dist/follow-up.js +28 -0
- package/dist/follow-up.js.map +1 -0
- package/dist/generate.d.ts.map +1 -1
- package/dist/generate.js +18 -0
- package/dist/generate.js.map +1 -1
- package/dist/graph-checkpoint.d.ts +6 -6
- package/dist/graph-worker.d.ts +26 -26
- package/dist/graph.d.ts +886 -592
- package/dist/graph.d.ts.map +1 -1
- package/dist/graph.js +4 -0
- package/dist/graph.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/policy.d.ts +10 -10
- package/dist/run.d.ts +4 -4
- package/dist/session-continuation-grant.d.ts +36 -36
- package/dist/session-continuation.d.ts +26 -26
- package/dist/task.d.ts +2 -2
- package/package.json +10 -9
- package/schemas/attention-inbox.schema.json +271 -0
- package/schemas/attention-status.schema.json +434 -0
- package/schemas/delivery-contract-v2.schema.json +238 -0
- package/schemas/delivery-verification-receipt-v2.schema.json +223 -0
- package/schemas/follow-up-create-params.schema.json +78 -0
- package/schemas/follow-up-draft-params.schema.json +39 -0
- package/schemas/follow-up-list-params.schema.json +42 -0
- package/schemas/follow-up-list-result.schema.json +241 -0
- package/schemas/follow-up-mutation-result.schema.json +361 -0
- package/schemas/follow-up-obligation.schema.json +343 -0
- package/schemas/follow-up-resolve-params.schema.json +53 -0
- package/schemas/frozen-delivery-contract-v2.schema.json +258 -0
- package/schemas/graph.schema.json +30 -0
- package/LICENSE +0 -21
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "OSStack Attention Inbox",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"schema_version": {
|
|
7
|
+
"type": "number",
|
|
8
|
+
"const": 1
|
|
9
|
+
},
|
|
10
|
+
"scope_id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"minLength": 1,
|
|
13
|
+
"maxLength": 512
|
|
14
|
+
},
|
|
15
|
+
"coverage": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": [
|
|
18
|
+
"covered",
|
|
19
|
+
"degraded",
|
|
20
|
+
"uncovered",
|
|
21
|
+
"unknown"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"execution_takeover": {
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"const": false
|
|
27
|
+
},
|
|
28
|
+
"counts": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"properties": {
|
|
33
|
+
"state": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"maxLength": 80
|
|
36
|
+
},
|
|
37
|
+
"total": {
|
|
38
|
+
"type": "integer",
|
|
39
|
+
"minimum": 0
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"required": [
|
|
43
|
+
"state",
|
|
44
|
+
"total"
|
|
45
|
+
],
|
|
46
|
+
"additionalProperties": false
|
|
47
|
+
},
|
|
48
|
+
"maxItems": 20
|
|
49
|
+
},
|
|
50
|
+
"next_after": {
|
|
51
|
+
"anyOf": [
|
|
52
|
+
{
|
|
53
|
+
"type": "string",
|
|
54
|
+
"minLength": 1,
|
|
55
|
+
"maxLength": 512
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"type": "null"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"items": {
|
|
63
|
+
"type": "array",
|
|
64
|
+
"items": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"properties": {
|
|
67
|
+
"item_id": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"minLength": 1,
|
|
70
|
+
"maxLength": 512
|
|
71
|
+
},
|
|
72
|
+
"scope_id": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"minLength": 1,
|
|
75
|
+
"maxLength": 512
|
|
76
|
+
},
|
|
77
|
+
"session_id": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"minLength": 1,
|
|
80
|
+
"maxLength": 512
|
|
81
|
+
},
|
|
82
|
+
"turn_id": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"minLength": 1,
|
|
85
|
+
"maxLength": 512
|
|
86
|
+
},
|
|
87
|
+
"decision_id": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"minLength": 1,
|
|
90
|
+
"maxLength": 512
|
|
91
|
+
},
|
|
92
|
+
"content_hash": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"minLength": 64,
|
|
95
|
+
"maxLength": 64
|
|
96
|
+
},
|
|
97
|
+
"decision": {
|
|
98
|
+
"type": "object",
|
|
99
|
+
"properties": {
|
|
100
|
+
"decision_id": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"minLength": 1,
|
|
103
|
+
"maxLength": 256
|
|
104
|
+
},
|
|
105
|
+
"question": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"minLength": 1,
|
|
108
|
+
"maxLength": 1000
|
|
109
|
+
},
|
|
110
|
+
"choices": {
|
|
111
|
+
"type": "array",
|
|
112
|
+
"items": {
|
|
113
|
+
"type": "object",
|
|
114
|
+
"properties": {
|
|
115
|
+
"choice_id": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"minLength": 1,
|
|
118
|
+
"maxLength": 256
|
|
119
|
+
},
|
|
120
|
+
"label": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"minLength": 1,
|
|
123
|
+
"maxLength": 160
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"required": [
|
|
127
|
+
"choice_id",
|
|
128
|
+
"label"
|
|
129
|
+
],
|
|
130
|
+
"additionalProperties": false
|
|
131
|
+
},
|
|
132
|
+
"maxItems": 8
|
|
133
|
+
},
|
|
134
|
+
"continuation": {
|
|
135
|
+
"type": "object",
|
|
136
|
+
"properties": {
|
|
137
|
+
"version": {
|
|
138
|
+
"type": "number",
|
|
139
|
+
"const": 1
|
|
140
|
+
},
|
|
141
|
+
"gate_kind": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"enum": [
|
|
144
|
+
"phase_continue",
|
|
145
|
+
"task_authorization",
|
|
146
|
+
"risk_approval",
|
|
147
|
+
"external_input"
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
"phase": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"minLength": 1,
|
|
153
|
+
"maxLength": 256
|
|
154
|
+
},
|
|
155
|
+
"next_action": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"minLength": 1,
|
|
158
|
+
"maxLength": 1000
|
|
159
|
+
},
|
|
160
|
+
"evidence_refs": {
|
|
161
|
+
"type": "array",
|
|
162
|
+
"items": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"properties": {
|
|
165
|
+
"evidence_id": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"minLength": 1,
|
|
168
|
+
"maxLength": 256
|
|
169
|
+
},
|
|
170
|
+
"sha256": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"required": [
|
|
176
|
+
"evidence_id",
|
|
177
|
+
"sha256"
|
|
178
|
+
],
|
|
179
|
+
"additionalProperties": false
|
|
180
|
+
},
|
|
181
|
+
"maxItems": 32
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"required": [
|
|
185
|
+
"version",
|
|
186
|
+
"gate_kind",
|
|
187
|
+
"phase",
|
|
188
|
+
"next_action",
|
|
189
|
+
"evidence_refs"
|
|
190
|
+
],
|
|
191
|
+
"additionalProperties": false
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"required": [
|
|
195
|
+
"decision_id",
|
|
196
|
+
"question",
|
|
197
|
+
"choices"
|
|
198
|
+
],
|
|
199
|
+
"additionalProperties": false
|
|
200
|
+
},
|
|
201
|
+
"source_version": {
|
|
202
|
+
"type": "integer",
|
|
203
|
+
"exclusiveMinimum": 0
|
|
204
|
+
},
|
|
205
|
+
"revision": {
|
|
206
|
+
"type": "integer",
|
|
207
|
+
"exclusiveMinimum": 0
|
|
208
|
+
},
|
|
209
|
+
"state": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"enum": [
|
|
212
|
+
"open",
|
|
213
|
+
"source_missing",
|
|
214
|
+
"source_closed",
|
|
215
|
+
"continued_externally",
|
|
216
|
+
"answer_reserved",
|
|
217
|
+
"answer_uncertain",
|
|
218
|
+
"answer_applied",
|
|
219
|
+
"answer_abandoned"
|
|
220
|
+
]
|
|
221
|
+
},
|
|
222
|
+
"created_at": {
|
|
223
|
+
"type": "number"
|
|
224
|
+
},
|
|
225
|
+
"updated_at": {
|
|
226
|
+
"type": "number"
|
|
227
|
+
},
|
|
228
|
+
"external_message_id": {
|
|
229
|
+
"anyOf": [
|
|
230
|
+
{
|
|
231
|
+
"type": "string",
|
|
232
|
+
"minLength": 1,
|
|
233
|
+
"maxLength": 512
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"type": "null"
|
|
237
|
+
}
|
|
238
|
+
]
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"required": [
|
|
242
|
+
"item_id",
|
|
243
|
+
"scope_id",
|
|
244
|
+
"session_id",
|
|
245
|
+
"turn_id",
|
|
246
|
+
"decision_id",
|
|
247
|
+
"content_hash",
|
|
248
|
+
"decision",
|
|
249
|
+
"source_version",
|
|
250
|
+
"revision",
|
|
251
|
+
"state",
|
|
252
|
+
"created_at",
|
|
253
|
+
"updated_at",
|
|
254
|
+
"external_message_id"
|
|
255
|
+
],
|
|
256
|
+
"additionalProperties": false
|
|
257
|
+
},
|
|
258
|
+
"maxItems": 100
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"required": [
|
|
262
|
+
"schema_version",
|
|
263
|
+
"scope_id",
|
|
264
|
+
"coverage",
|
|
265
|
+
"execution_takeover",
|
|
266
|
+
"counts",
|
|
267
|
+
"next_after",
|
|
268
|
+
"items"
|
|
269
|
+
],
|
|
270
|
+
"additionalProperties": false
|
|
271
|
+
}
|
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "OSStack Attention Snapshot",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"schema_version": {
|
|
7
|
+
"type": "number",
|
|
8
|
+
"const": 1
|
|
9
|
+
},
|
|
10
|
+
"mode": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"const": "snapshot_only"
|
|
13
|
+
},
|
|
14
|
+
"scope": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"scope_id": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"minLength": 1,
|
|
20
|
+
"maxLength": 512
|
|
21
|
+
},
|
|
22
|
+
"task_id": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"minLength": 1,
|
|
25
|
+
"maxLength": 512
|
|
26
|
+
},
|
|
27
|
+
"tenant_id": {
|
|
28
|
+
"type": "null"
|
|
29
|
+
},
|
|
30
|
+
"repo_path": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"maxLength": 4096
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": [
|
|
36
|
+
"scope_id",
|
|
37
|
+
"task_id",
|
|
38
|
+
"tenant_id",
|
|
39
|
+
"repo_path"
|
|
40
|
+
],
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
},
|
|
43
|
+
"sampled_at_ms": {
|
|
44
|
+
"type": "number",
|
|
45
|
+
"minimum": 0
|
|
46
|
+
},
|
|
47
|
+
"coverage": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"properties": {
|
|
50
|
+
"state": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"const": "not_monitored"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": [
|
|
56
|
+
"state"
|
|
57
|
+
],
|
|
58
|
+
"additionalProperties": false
|
|
59
|
+
},
|
|
60
|
+
"runs": {
|
|
61
|
+
"type": "array",
|
|
62
|
+
"items": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"properties": {
|
|
65
|
+
"run_id": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"minLength": 1,
|
|
68
|
+
"maxLength": 512
|
|
69
|
+
},
|
|
70
|
+
"phase": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"maxLength": 120
|
|
73
|
+
},
|
|
74
|
+
"outcome": {
|
|
75
|
+
"anyOf": [
|
|
76
|
+
{
|
|
77
|
+
"type": "string",
|
|
78
|
+
"maxLength": 120
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"type": "null"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"repo_binding": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"const": "unverified"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"required": [
|
|
91
|
+
"run_id",
|
|
92
|
+
"phase",
|
|
93
|
+
"outcome",
|
|
94
|
+
"repo_binding"
|
|
95
|
+
],
|
|
96
|
+
"additionalProperties": false
|
|
97
|
+
},
|
|
98
|
+
"maxItems": 100
|
|
99
|
+
},
|
|
100
|
+
"sessions": {
|
|
101
|
+
"type": "array",
|
|
102
|
+
"items": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"properties": {
|
|
105
|
+
"session_id": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"minLength": 1,
|
|
108
|
+
"maxLength": 512
|
|
109
|
+
},
|
|
110
|
+
"run_id": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"minLength": 1,
|
|
113
|
+
"maxLength": 512
|
|
114
|
+
},
|
|
115
|
+
"state": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"maxLength": 80
|
|
118
|
+
},
|
|
119
|
+
"version": {
|
|
120
|
+
"type": "integer",
|
|
121
|
+
"exclusiveMinimum": 0
|
|
122
|
+
},
|
|
123
|
+
"turn_id": {
|
|
124
|
+
"anyOf": [
|
|
125
|
+
{
|
|
126
|
+
"type": "string",
|
|
127
|
+
"minLength": 1,
|
|
128
|
+
"maxLength": 512
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"type": "null"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"turn_state": {
|
|
136
|
+
"anyOf": [
|
|
137
|
+
{
|
|
138
|
+
"type": "string",
|
|
139
|
+
"maxLength": 80
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"type": "null"
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
"decision": {
|
|
147
|
+
"anyOf": [
|
|
148
|
+
{
|
|
149
|
+
"type": "object",
|
|
150
|
+
"properties": {
|
|
151
|
+
"decision_id": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"minLength": 1,
|
|
154
|
+
"maxLength": 256
|
|
155
|
+
},
|
|
156
|
+
"question": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"minLength": 1,
|
|
159
|
+
"maxLength": 1000
|
|
160
|
+
},
|
|
161
|
+
"choices": {
|
|
162
|
+
"type": "array",
|
|
163
|
+
"items": {
|
|
164
|
+
"type": "object",
|
|
165
|
+
"properties": {
|
|
166
|
+
"choice_id": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"minLength": 1,
|
|
169
|
+
"maxLength": 256
|
|
170
|
+
},
|
|
171
|
+
"label": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"minLength": 1,
|
|
174
|
+
"maxLength": 160
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"required": [
|
|
178
|
+
"choice_id",
|
|
179
|
+
"label"
|
|
180
|
+
],
|
|
181
|
+
"additionalProperties": false
|
|
182
|
+
},
|
|
183
|
+
"maxItems": 8
|
|
184
|
+
},
|
|
185
|
+
"continuation": {
|
|
186
|
+
"type": "object",
|
|
187
|
+
"properties": {
|
|
188
|
+
"version": {
|
|
189
|
+
"type": "number",
|
|
190
|
+
"const": 1
|
|
191
|
+
},
|
|
192
|
+
"gate_kind": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"enum": [
|
|
195
|
+
"phase_continue",
|
|
196
|
+
"task_authorization",
|
|
197
|
+
"risk_approval",
|
|
198
|
+
"external_input"
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
"phase": {
|
|
202
|
+
"type": "string",
|
|
203
|
+
"minLength": 1,
|
|
204
|
+
"maxLength": 256
|
|
205
|
+
},
|
|
206
|
+
"next_action": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"minLength": 1,
|
|
209
|
+
"maxLength": 1000
|
|
210
|
+
},
|
|
211
|
+
"evidence_refs": {
|
|
212
|
+
"type": "array",
|
|
213
|
+
"items": {
|
|
214
|
+
"type": "object",
|
|
215
|
+
"properties": {
|
|
216
|
+
"evidence_id": {
|
|
217
|
+
"type": "string",
|
|
218
|
+
"minLength": 1,
|
|
219
|
+
"maxLength": 256
|
|
220
|
+
},
|
|
221
|
+
"sha256": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"required": [
|
|
227
|
+
"evidence_id",
|
|
228
|
+
"sha256"
|
|
229
|
+
],
|
|
230
|
+
"additionalProperties": false
|
|
231
|
+
},
|
|
232
|
+
"maxItems": 32
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"required": [
|
|
236
|
+
"version",
|
|
237
|
+
"gate_kind",
|
|
238
|
+
"phase",
|
|
239
|
+
"next_action",
|
|
240
|
+
"evidence_refs"
|
|
241
|
+
],
|
|
242
|
+
"additionalProperties": false
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"required": [
|
|
246
|
+
"decision_id",
|
|
247
|
+
"question",
|
|
248
|
+
"choices"
|
|
249
|
+
],
|
|
250
|
+
"additionalProperties": false
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"type": "null"
|
|
254
|
+
}
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
"decision_hash": {
|
|
258
|
+
"anyOf": [
|
|
259
|
+
{
|
|
260
|
+
"type": "string",
|
|
261
|
+
"minLength": 64,
|
|
262
|
+
"maxLength": 64
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"type": "null"
|
|
266
|
+
}
|
|
267
|
+
]
|
|
268
|
+
},
|
|
269
|
+
"process_liveness": {
|
|
270
|
+
"type": "string",
|
|
271
|
+
"const": "unknown"
|
|
272
|
+
},
|
|
273
|
+
"wait": {
|
|
274
|
+
"type": "object",
|
|
275
|
+
"properties": {
|
|
276
|
+
"reason": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"minLength": 1,
|
|
279
|
+
"maxLength": 120
|
|
280
|
+
},
|
|
281
|
+
"owner": {
|
|
282
|
+
"type": "string",
|
|
283
|
+
"enum": [
|
|
284
|
+
"human",
|
|
285
|
+
"system",
|
|
286
|
+
"unknown",
|
|
287
|
+
"none"
|
|
288
|
+
]
|
|
289
|
+
},
|
|
290
|
+
"grant_id": {
|
|
291
|
+
"anyOf": [
|
|
292
|
+
{
|
|
293
|
+
"type": "string",
|
|
294
|
+
"minLength": 1,
|
|
295
|
+
"maxLength": 512
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"type": "null"
|
|
299
|
+
}
|
|
300
|
+
]
|
|
301
|
+
},
|
|
302
|
+
"message_id": {
|
|
303
|
+
"anyOf": [
|
|
304
|
+
{
|
|
305
|
+
"type": "string",
|
|
306
|
+
"minLength": 1,
|
|
307
|
+
"maxLength": 512
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"type": "null"
|
|
311
|
+
}
|
|
312
|
+
]
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"required": [
|
|
316
|
+
"reason",
|
|
317
|
+
"owner",
|
|
318
|
+
"grant_id",
|
|
319
|
+
"message_id"
|
|
320
|
+
],
|
|
321
|
+
"additionalProperties": false
|
|
322
|
+
},
|
|
323
|
+
"updated_at": {
|
|
324
|
+
"type": "number"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"required": [
|
|
328
|
+
"session_id",
|
|
329
|
+
"run_id",
|
|
330
|
+
"state",
|
|
331
|
+
"version",
|
|
332
|
+
"turn_id",
|
|
333
|
+
"turn_state",
|
|
334
|
+
"decision",
|
|
335
|
+
"decision_hash",
|
|
336
|
+
"process_liveness",
|
|
337
|
+
"wait",
|
|
338
|
+
"updated_at"
|
|
339
|
+
],
|
|
340
|
+
"additionalProperties": false
|
|
341
|
+
},
|
|
342
|
+
"maxItems": 100
|
|
343
|
+
},
|
|
344
|
+
"completeness": {
|
|
345
|
+
"type": "object",
|
|
346
|
+
"properties": {
|
|
347
|
+
"latest_turn_only": {
|
|
348
|
+
"type": "boolean",
|
|
349
|
+
"const": true
|
|
350
|
+
},
|
|
351
|
+
"truncated": {
|
|
352
|
+
"type": "boolean"
|
|
353
|
+
},
|
|
354
|
+
"omitted_binding_unknown": {
|
|
355
|
+
"type": "integer",
|
|
356
|
+
"minimum": 0
|
|
357
|
+
},
|
|
358
|
+
"next_cursor": {
|
|
359
|
+
"anyOf": [
|
|
360
|
+
{
|
|
361
|
+
"type": "string",
|
|
362
|
+
"maxLength": 4096
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"type": "null"
|
|
366
|
+
}
|
|
367
|
+
]
|
|
368
|
+
},
|
|
369
|
+
"next_after": {
|
|
370
|
+
"type": "object",
|
|
371
|
+
"properties": {
|
|
372
|
+
"run": {
|
|
373
|
+
"anyOf": [
|
|
374
|
+
{
|
|
375
|
+
"type": "string",
|
|
376
|
+
"minLength": 1,
|
|
377
|
+
"maxLength": 512
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"type": "null"
|
|
381
|
+
}
|
|
382
|
+
]
|
|
383
|
+
},
|
|
384
|
+
"session": {
|
|
385
|
+
"anyOf": [
|
|
386
|
+
{
|
|
387
|
+
"type": "string",
|
|
388
|
+
"minLength": 1,
|
|
389
|
+
"maxLength": 512
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"type": "null"
|
|
393
|
+
}
|
|
394
|
+
]
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"required": [
|
|
398
|
+
"run",
|
|
399
|
+
"session"
|
|
400
|
+
],
|
|
401
|
+
"additionalProperties": false
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"required": [
|
|
405
|
+
"latest_turn_only",
|
|
406
|
+
"truncated",
|
|
407
|
+
"omitted_binding_unknown",
|
|
408
|
+
"next_cursor",
|
|
409
|
+
"next_after"
|
|
410
|
+
],
|
|
411
|
+
"additionalProperties": false
|
|
412
|
+
},
|
|
413
|
+
"limitations": {
|
|
414
|
+
"type": "array",
|
|
415
|
+
"items": {
|
|
416
|
+
"type": "string",
|
|
417
|
+
"maxLength": 700
|
|
418
|
+
},
|
|
419
|
+
"maxItems": 500
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
"required": [
|
|
423
|
+
"schema_version",
|
|
424
|
+
"mode",
|
|
425
|
+
"scope",
|
|
426
|
+
"sampled_at_ms",
|
|
427
|
+
"coverage",
|
|
428
|
+
"runs",
|
|
429
|
+
"sessions",
|
|
430
|
+
"completeness",
|
|
431
|
+
"limitations"
|
|
432
|
+
],
|
|
433
|
+
"additionalProperties": false
|
|
434
|
+
}
|