@osstack/protocol 0.13.0 → 0.20.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 (52) hide show
  1. package/dist/generate.d.ts +1 -0
  2. package/dist/generate.d.ts.map +1 -1
  3. package/dist/generate.js +43 -1
  4. package/dist/generate.js.map +1 -1
  5. package/dist/graph-checkpoint.d.ts +409 -0
  6. package/dist/graph-checkpoint.d.ts.map +1 -0
  7. package/dist/graph-checkpoint.js +91 -0
  8. package/dist/graph-checkpoint.js.map +1 -0
  9. package/dist/graph-worker.d.ts +1663 -0
  10. package/dist/graph-worker.d.ts.map +1 -0
  11. package/dist/graph-worker.js +152 -0
  12. package/dist/graph-worker.js.map +1 -0
  13. package/dist/graph.d.ts +12875 -0
  14. package/dist/graph.d.ts.map +1 -0
  15. package/dist/graph.js +423 -0
  16. package/dist/graph.js.map +1 -0
  17. package/dist/index.d.ts +7 -0
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +7 -2
  20. package/dist/index.js.map +1 -1
  21. package/dist/run.d.ts +2 -2
  22. package/dist/session-continuation-grant.d.ts +414 -0
  23. package/dist/session-continuation-grant.d.ts.map +1 -0
  24. package/dist/session-continuation-grant.js +59 -0
  25. package/dist/session-continuation-grant.js.map +1 -0
  26. package/dist/session-continuation.d.ts +129 -0
  27. package/dist/session-continuation.d.ts.map +1 -0
  28. package/dist/session-continuation.js +30 -0
  29. package/dist/session-continuation.js.map +1 -0
  30. package/dist/task.d.ts +2 -2
  31. package/package.json +2 -2
  32. package/schemas/continuation-grant-body.schema.json +189 -0
  33. package/schemas/continuation-output-check.schema.json +65 -0
  34. package/schemas/graph-checkpoint-request.schema.json +222 -0
  35. package/schemas/graph-checkpoint-response.schema.json +258 -0
  36. package/schemas/graph-worker.schema.json +546 -0
  37. package/schemas/graph.schema.json +1768 -0
  38. package/schemas/session-continuation-request.schema.json +62 -0
  39. package/schemas/session-decision.schema.json +107 -0
  40. package/schemas/signed-continuation-grant.schema.json +209 -0
  41. package/dist/autonomy.test.d.ts +0 -2
  42. package/dist/autonomy.test.d.ts.map +0 -1
  43. package/dist/autonomy.test.js +0 -201
  44. package/dist/autonomy.test.js.map +0 -1
  45. package/dist/protocol.test.d.ts +0 -2
  46. package/dist/protocol.test.d.ts.map +0 -1
  47. package/dist/protocol.test.js +0 -251
  48. package/dist/protocol.test.js.map +0 -1
  49. package/dist/schemas.test.d.ts +0 -2
  50. package/dist/schemas.test.d.ts.map +0 -1
  51. package/dist/schemas.test.js +0 -39
  52. package/dist/schemas.test.js.map +0 -1
@@ -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
+ }