@osstack/protocol 0.15.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.
Files changed (73) hide show
  1. package/dist/attention.d.ts +863 -0
  2. package/dist/attention.d.ts.map +1 -0
  3. package/dist/attention.js +112 -0
  4. package/dist/attention.js.map +1 -0
  5. package/dist/autonomy.d.ts +14 -14
  6. package/dist/delivery-contract.d.ts +734 -0
  7. package/dist/delivery-contract.d.ts.map +1 -0
  8. package/dist/delivery-contract.js +111 -0
  9. package/dist/delivery-contract.js.map +1 -0
  10. package/dist/envelope.d.ts +42 -42
  11. package/dist/event.d.ts +4 -4
  12. package/dist/follow-up-delivery.d.ts +1831 -0
  13. package/dist/follow-up-delivery.d.ts.map +1 -0
  14. package/dist/follow-up-delivery.js +174 -0
  15. package/dist/follow-up-delivery.js.map +1 -0
  16. package/dist/follow-up.d.ts +1100 -0
  17. package/dist/follow-up.d.ts.map +1 -0
  18. package/dist/follow-up.js +28 -0
  19. package/dist/follow-up.js.map +1 -0
  20. package/dist/generate.d.ts +1 -0
  21. package/dist/generate.d.ts.map +1 -1
  22. package/dist/generate.js +61 -1
  23. package/dist/generate.js.map +1 -1
  24. package/dist/graph-checkpoint.d.ts +409 -0
  25. package/dist/graph-checkpoint.d.ts.map +1 -0
  26. package/dist/graph-checkpoint.js +91 -0
  27. package/dist/graph-checkpoint.js.map +1 -0
  28. package/dist/graph-worker.d.ts +1663 -0
  29. package/dist/graph-worker.d.ts.map +1 -0
  30. package/dist/graph-worker.js +152 -0
  31. package/dist/graph-worker.js.map +1 -0
  32. package/dist/graph.d.ts +13169 -0
  33. package/dist/graph.d.ts.map +1 -0
  34. package/dist/graph.js +427 -0
  35. package/dist/graph.js.map +1 -0
  36. package/dist/index.d.ts +11 -0
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +11 -2
  39. package/dist/index.js.map +1 -1
  40. package/dist/policy.d.ts +10 -10
  41. package/dist/run.d.ts +4 -4
  42. package/dist/session-continuation-grant.d.ts +414 -0
  43. package/dist/session-continuation-grant.d.ts.map +1 -0
  44. package/dist/session-continuation-grant.js +59 -0
  45. package/dist/session-continuation-grant.js.map +1 -0
  46. package/dist/session-continuation.d.ts +129 -0
  47. package/dist/session-continuation.d.ts.map +1 -0
  48. package/dist/session-continuation.js +30 -0
  49. package/dist/session-continuation.js.map +1 -0
  50. package/dist/task.d.ts +2 -2
  51. package/package.json +11 -10
  52. package/schemas/attention-inbox.schema.json +271 -0
  53. package/schemas/attention-status.schema.json +434 -0
  54. package/schemas/continuation-grant-body.schema.json +189 -0
  55. package/schemas/continuation-output-check.schema.json +65 -0
  56. package/schemas/delivery-contract-v2.schema.json +238 -0
  57. package/schemas/delivery-verification-receipt-v2.schema.json +223 -0
  58. package/schemas/follow-up-create-params.schema.json +78 -0
  59. package/schemas/follow-up-draft-params.schema.json +39 -0
  60. package/schemas/follow-up-list-params.schema.json +42 -0
  61. package/schemas/follow-up-list-result.schema.json +241 -0
  62. package/schemas/follow-up-mutation-result.schema.json +361 -0
  63. package/schemas/follow-up-obligation.schema.json +343 -0
  64. package/schemas/follow-up-resolve-params.schema.json +53 -0
  65. package/schemas/frozen-delivery-contract-v2.schema.json +258 -0
  66. package/schemas/graph-checkpoint-request.schema.json +222 -0
  67. package/schemas/graph-checkpoint-response.schema.json +258 -0
  68. package/schemas/graph-worker.schema.json +546 -0
  69. package/schemas/graph.schema.json +1798 -0
  70. package/schemas/session-continuation-request.schema.json +62 -0
  71. package/schemas/session-decision.schema.json +107 -0
  72. package/schemas/signed-continuation-grant.schema.json +209 -0
  73. package/LICENSE +0 -21
@@ -0,0 +1,222 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Graph Checkpoint Request",
4
+ "$comment": "Opaque bounded codec data; transport caps raw frames at 8 MiB. Host binds authenticated run and fences transaction before reads, writes and replay. No JSON field confers authority.",
5
+ "anyOf": [
6
+ {
7
+ "type": "object",
8
+ "properties": {
9
+ "kind": {
10
+ "type": "string",
11
+ "const": "get"
12
+ },
13
+ "threadId": {
14
+ "type": "string",
15
+ "minLength": 1,
16
+ "maxLength": 256
17
+ },
18
+ "namespace": {
19
+ "type": "string",
20
+ "maxLength": 1024
21
+ },
22
+ "checkpointId": {
23
+ "type": "string",
24
+ "minLength": 1,
25
+ "maxLength": 256
26
+ }
27
+ },
28
+ "required": [
29
+ "kind",
30
+ "threadId",
31
+ "namespace"
32
+ ],
33
+ "additionalProperties": false
34
+ },
35
+ {
36
+ "type": "object",
37
+ "properties": {
38
+ "kind": {
39
+ "type": "string",
40
+ "const": "list"
41
+ },
42
+ "threadId": {
43
+ "type": "string",
44
+ "minLength": 1,
45
+ "maxLength": 256
46
+ },
47
+ "namespace": {
48
+ "type": "string",
49
+ "maxLength": 1024
50
+ },
51
+ "checkpointId": {
52
+ "type": "string",
53
+ "minLength": 1,
54
+ "maxLength": 256
55
+ },
56
+ "before": {
57
+ "type": "string",
58
+ "minLength": 1,
59
+ "maxLength": 256
60
+ },
61
+ "cursor": {
62
+ "type": "object",
63
+ "properties": {
64
+ "namespace": {
65
+ "type": "string",
66
+ "maxLength": 1024
67
+ },
68
+ "checkpointId": {
69
+ "type": "string",
70
+ "minLength": 1,
71
+ "maxLength": 256
72
+ }
73
+ },
74
+ "required": [
75
+ "namespace",
76
+ "checkpointId"
77
+ ],
78
+ "additionalProperties": false
79
+ },
80
+ "pageSize": {
81
+ "type": "integer",
82
+ "minimum": 1,
83
+ "maximum": 16
84
+ }
85
+ },
86
+ "required": [
87
+ "kind",
88
+ "threadId",
89
+ "pageSize"
90
+ ],
91
+ "additionalProperties": false
92
+ },
93
+ {
94
+ "type": "object",
95
+ "properties": {
96
+ "kind": {
97
+ "type": "string",
98
+ "const": "put"
99
+ },
100
+ "requestId": {
101
+ "type": "string",
102
+ "minLength": 1,
103
+ "maxLength": 256
104
+ },
105
+ "threadId": {
106
+ "type": "string",
107
+ "minLength": 1,
108
+ "maxLength": 256
109
+ },
110
+ "namespace": {
111
+ "type": "string",
112
+ "maxLength": 1024
113
+ },
114
+ "checkpointId": {
115
+ "type": "string",
116
+ "minLength": 1,
117
+ "maxLength": 256
118
+ },
119
+ "parentCheckpointId": {
120
+ "type": "string",
121
+ "minLength": 1,
122
+ "maxLength": 256
123
+ },
124
+ "checkpoint": {
125
+ "type": "string",
126
+ "maxLength": 1048576
127
+ },
128
+ "metadata": {
129
+ "type": "string",
130
+ "maxLength": 1048576
131
+ },
132
+ "newVersions": {
133
+ "type": "string",
134
+ "maxLength": 1048576
135
+ }
136
+ },
137
+ "required": [
138
+ "kind",
139
+ "requestId",
140
+ "threadId",
141
+ "namespace",
142
+ "checkpointId",
143
+ "checkpoint",
144
+ "metadata",
145
+ "newVersions"
146
+ ],
147
+ "additionalProperties": false
148
+ },
149
+ {
150
+ "type": "object",
151
+ "properties": {
152
+ "kind": {
153
+ "type": "string",
154
+ "const": "writes"
155
+ },
156
+ "requestId": {
157
+ "type": "string",
158
+ "minLength": 1,
159
+ "maxLength": 256
160
+ },
161
+ "threadId": {
162
+ "type": "string",
163
+ "minLength": 1,
164
+ "maxLength": 256
165
+ },
166
+ "namespace": {
167
+ "type": "string",
168
+ "maxLength": 1024
169
+ },
170
+ "checkpointId": {
171
+ "type": "string",
172
+ "minLength": 1,
173
+ "maxLength": 256
174
+ },
175
+ "taskId": {
176
+ "type": "string",
177
+ "minLength": 1,
178
+ "maxLength": 256
179
+ },
180
+ "writes": {
181
+ "type": "array",
182
+ "items": {
183
+ "type": "object",
184
+ "properties": {
185
+ "channel": {
186
+ "type": "string",
187
+ "minLength": 1,
188
+ "maxLength": 256
189
+ },
190
+ "index": {
191
+ "type": "integer",
192
+ "minimum": -4,
193
+ "maximum": 4095
194
+ },
195
+ "value": {
196
+ "type": "string",
197
+ "maxLength": 1048576
198
+ }
199
+ },
200
+ "required": [
201
+ "channel",
202
+ "index",
203
+ "value"
204
+ ],
205
+ "additionalProperties": false
206
+ },
207
+ "maxItems": 4096
208
+ }
209
+ },
210
+ "required": [
211
+ "kind",
212
+ "requestId",
213
+ "threadId",
214
+ "namespace",
215
+ "checkpointId",
216
+ "taskId",
217
+ "writes"
218
+ ],
219
+ "additionalProperties": false
220
+ }
221
+ ]
222
+ }
@@ -0,0 +1,258 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Graph Checkpoint Response",
4
+ "anyOf": [
5
+ {
6
+ "type": "object",
7
+ "properties": {
8
+ "kind": {
9
+ "type": "string",
10
+ "const": "get"
11
+ },
12
+ "tuple": {
13
+ "anyOf": [
14
+ {
15
+ "type": "object",
16
+ "properties": {
17
+ "threadId": {
18
+ "type": "string",
19
+ "minLength": 1,
20
+ "maxLength": 256
21
+ },
22
+ "namespace": {
23
+ "type": "string",
24
+ "maxLength": 1024
25
+ },
26
+ "checkpointId": {
27
+ "type": "string",
28
+ "minLength": 1,
29
+ "maxLength": 256
30
+ },
31
+ "parentCheckpointId": {
32
+ "type": "string",
33
+ "minLength": 1,
34
+ "maxLength": 256
35
+ },
36
+ "checkpoint": {
37
+ "type": "string",
38
+ "maxLength": 1048576
39
+ },
40
+ "metadata": {
41
+ "type": "string",
42
+ "maxLength": 1048576
43
+ },
44
+ "newVersions": {
45
+ "type": "string",
46
+ "maxLength": 1048576
47
+ },
48
+ "pendingWrites": {
49
+ "type": "array",
50
+ "items": {
51
+ "type": "object",
52
+ "properties": {
53
+ "channel": {
54
+ "type": "string",
55
+ "minLength": 1,
56
+ "maxLength": 256
57
+ },
58
+ "index": {
59
+ "type": "integer",
60
+ "minimum": -4,
61
+ "maximum": 4095
62
+ },
63
+ "value": {
64
+ "type": "string",
65
+ "maxLength": 1048576
66
+ },
67
+ "taskId": {
68
+ "type": "string",
69
+ "minLength": 1,
70
+ "maxLength": 256
71
+ }
72
+ },
73
+ "required": [
74
+ "channel",
75
+ "index",
76
+ "value",
77
+ "taskId"
78
+ ],
79
+ "additionalProperties": false
80
+ },
81
+ "maxItems": 4096
82
+ }
83
+ },
84
+ "required": [
85
+ "threadId",
86
+ "namespace",
87
+ "checkpointId",
88
+ "checkpoint",
89
+ "metadata",
90
+ "newVersions",
91
+ "pendingWrites"
92
+ ],
93
+ "additionalProperties": false
94
+ },
95
+ {
96
+ "type": "null"
97
+ }
98
+ ]
99
+ }
100
+ },
101
+ "required": [
102
+ "kind",
103
+ "tuple"
104
+ ],
105
+ "additionalProperties": false
106
+ },
107
+ {
108
+ "type": "object",
109
+ "properties": {
110
+ "kind": {
111
+ "type": "string",
112
+ "const": "list"
113
+ },
114
+ "tuples": {
115
+ "type": "array",
116
+ "items": {
117
+ "type": "object",
118
+ "properties": {
119
+ "threadId": {
120
+ "type": "string",
121
+ "minLength": 1,
122
+ "maxLength": 256
123
+ },
124
+ "namespace": {
125
+ "type": "string",
126
+ "maxLength": 1024
127
+ },
128
+ "checkpointId": {
129
+ "type": "string",
130
+ "minLength": 1,
131
+ "maxLength": 256
132
+ },
133
+ "parentCheckpointId": {
134
+ "type": "string",
135
+ "minLength": 1,
136
+ "maxLength": 256
137
+ },
138
+ "checkpoint": {
139
+ "type": "string",
140
+ "maxLength": 1048576
141
+ },
142
+ "metadata": {
143
+ "type": "string",
144
+ "maxLength": 1048576
145
+ },
146
+ "newVersions": {
147
+ "type": "string",
148
+ "maxLength": 1048576
149
+ },
150
+ "pendingWrites": {
151
+ "type": "array",
152
+ "items": {
153
+ "type": "object",
154
+ "properties": {
155
+ "channel": {
156
+ "type": "string",
157
+ "minLength": 1,
158
+ "maxLength": 256
159
+ },
160
+ "index": {
161
+ "type": "integer",
162
+ "minimum": -4,
163
+ "maximum": 4095
164
+ },
165
+ "value": {
166
+ "type": "string",
167
+ "maxLength": 1048576
168
+ },
169
+ "taskId": {
170
+ "type": "string",
171
+ "minLength": 1,
172
+ "maxLength": 256
173
+ }
174
+ },
175
+ "required": [
176
+ "channel",
177
+ "index",
178
+ "value",
179
+ "taskId"
180
+ ],
181
+ "additionalProperties": false
182
+ },
183
+ "maxItems": 4096
184
+ }
185
+ },
186
+ "required": [
187
+ "threadId",
188
+ "namespace",
189
+ "checkpointId",
190
+ "checkpoint",
191
+ "metadata",
192
+ "newVersions",
193
+ "pendingWrites"
194
+ ],
195
+ "additionalProperties": false
196
+ },
197
+ "maxItems": 16
198
+ },
199
+ "cursor": {
200
+ "type": "object",
201
+ "properties": {
202
+ "namespace": {
203
+ "type": "string",
204
+ "maxLength": 1024
205
+ },
206
+ "checkpointId": {
207
+ "type": "string",
208
+ "minLength": 1,
209
+ "maxLength": 256
210
+ }
211
+ },
212
+ "required": [
213
+ "namespace",
214
+ "checkpointId"
215
+ ],
216
+ "additionalProperties": false
217
+ }
218
+ },
219
+ "required": [
220
+ "kind",
221
+ "tuples"
222
+ ],
223
+ "additionalProperties": false
224
+ },
225
+ {
226
+ "type": "object",
227
+ "properties": {
228
+ "kind": {
229
+ "type": "string",
230
+ "const": "put"
231
+ },
232
+ "checkpointId": {
233
+ "type": "string",
234
+ "minLength": 1,
235
+ "maxLength": 256
236
+ }
237
+ },
238
+ "required": [
239
+ "kind",
240
+ "checkpointId"
241
+ ],
242
+ "additionalProperties": false
243
+ },
244
+ {
245
+ "type": "object",
246
+ "properties": {
247
+ "kind": {
248
+ "type": "string",
249
+ "const": "writes"
250
+ }
251
+ },
252
+ "required": [
253
+ "kind"
254
+ ],
255
+ "additionalProperties": false
256
+ }
257
+ ]
258
+ }