@hivemagnus/ardent-client 3.2.1 → 3.4.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/README.md +46 -7
- package/dist/client.d.ts +60 -2
- package/dist/client.js +53 -6
- package/dist/generated.d.ts +310 -9
- package/dist/index.d.ts +2 -2
- package/dist/openapi.d.ts +18 -0
- package/dist/openapi.js +19 -0
- package/dist/routes.d.ts +401 -0
- package/dist/routes.js +460 -0
- package/dist/transport.d.ts +1 -1
- package/dist/transport.js +2 -2
- package/dist/types.d.ts +15 -0
- package/package.json +5 -1
package/dist/routes.js
ADDED
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
// Generated by scripts/check-openapi.mjs from openapi/ardent.json (npm run openapi:write). Do not edit.
|
|
2
|
+
/** Every operation of the management API: `read` for GET, `action` otherwise; `stream` when it answers with server-sent events. */
|
|
3
|
+
export const ARDENT_ROUTES = [
|
|
4
|
+
{
|
|
5
|
+
operationId: 'getArtifact',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
path: '/api/v1/artifacts/{id}',
|
|
8
|
+
kind: 'read',
|
|
9
|
+
auth: 'bearer',
|
|
10
|
+
stream: false
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
operationId: 'getArtifactContent',
|
|
14
|
+
method: 'GET',
|
|
15
|
+
path: '/api/v1/artifacts/{sha256}/content',
|
|
16
|
+
kind: 'read',
|
|
17
|
+
auth: 'bearer',
|
|
18
|
+
stream: false
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
operationId: 'getArtifactManifest',
|
|
22
|
+
method: 'GET',
|
|
23
|
+
path: '/api/v1/artifacts/{sha256}/manifest',
|
|
24
|
+
kind: 'read',
|
|
25
|
+
auth: 'bearer',
|
|
26
|
+
stream: false
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
operationId: 'getArtifactManifestV2',
|
|
30
|
+
method: 'GET',
|
|
31
|
+
path: '/api/v1/artifacts/{sha256}/manifest/v2',
|
|
32
|
+
kind: 'read',
|
|
33
|
+
auth: 'bearer',
|
|
34
|
+
stream: false
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
operationId: 'listArtifactRenditions',
|
|
38
|
+
method: 'GET',
|
|
39
|
+
path: '/api/v1/artifacts/{sha256}/renditions',
|
|
40
|
+
kind: 'read',
|
|
41
|
+
auth: 'bearer',
|
|
42
|
+
stream: false
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
operationId: 'listArtifactImports',
|
|
46
|
+
method: 'GET',
|
|
47
|
+
path: '/api/v1/artifacts/imports',
|
|
48
|
+
kind: 'read',
|
|
49
|
+
auth: 'bearer',
|
|
50
|
+
stream: false
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
operationId: 'importArtifact',
|
|
54
|
+
method: 'POST',
|
|
55
|
+
path: '/api/v1/artifacts/imports',
|
|
56
|
+
kind: 'action',
|
|
57
|
+
auth: 'bearer',
|
|
58
|
+
stream: false
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
operationId: 'getArtifactImport',
|
|
62
|
+
method: 'GET',
|
|
63
|
+
path: '/api/v1/artifacts/imports/{id}',
|
|
64
|
+
kind: 'read',
|
|
65
|
+
auth: 'bearer',
|
|
66
|
+
stream: false
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
operationId: 'getChannels',
|
|
70
|
+
method: 'GET',
|
|
71
|
+
path: '/api/v1/channels',
|
|
72
|
+
kind: 'read',
|
|
73
|
+
auth: 'bearer',
|
|
74
|
+
stream: false
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
operationId: 'testChannel',
|
|
78
|
+
method: 'POST',
|
|
79
|
+
path: '/api/v1/channels/{name}/test',
|
|
80
|
+
kind: 'action',
|
|
81
|
+
auth: 'bearer',
|
|
82
|
+
stream: false
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
operationId: 'getConfig',
|
|
86
|
+
method: 'GET',
|
|
87
|
+
path: '/api/v1/config',
|
|
88
|
+
kind: 'read',
|
|
89
|
+
auth: 'bearer',
|
|
90
|
+
stream: false
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
operationId: 'saveConfig',
|
|
94
|
+
method: 'PUT',
|
|
95
|
+
path: '/api/v1/config',
|
|
96
|
+
kind: 'action',
|
|
97
|
+
auth: 'bearer',
|
|
98
|
+
stream: false
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
operationId: 'getConfigSchema',
|
|
102
|
+
method: 'GET',
|
|
103
|
+
path: '/api/v1/config/schema',
|
|
104
|
+
kind: 'read',
|
|
105
|
+
auth: 'bearer',
|
|
106
|
+
stream: false
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
operationId: 'validateConfig',
|
|
110
|
+
method: 'POST',
|
|
111
|
+
path: '/api/v1/config/validate',
|
|
112
|
+
kind: 'action',
|
|
113
|
+
auth: 'bearer',
|
|
114
|
+
stream: false
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
operationId: 'reloadManagementCredential',
|
|
118
|
+
method: 'POST',
|
|
119
|
+
path: '/api/v1/credentials/management/reload',
|
|
120
|
+
kind: 'action',
|
|
121
|
+
auth: 'bearer',
|
|
122
|
+
stream: false
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
operationId: 'reloadPeerCredentials',
|
|
126
|
+
method: 'POST',
|
|
127
|
+
path: '/api/v1/credentials/peers/reload',
|
|
128
|
+
kind: 'action',
|
|
129
|
+
auth: 'bearer',
|
|
130
|
+
stream: false
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
operationId: 'listDevelopment',
|
|
134
|
+
method: 'GET',
|
|
135
|
+
path: '/api/v1/development',
|
|
136
|
+
kind: 'read',
|
|
137
|
+
auth: 'bearer',
|
|
138
|
+
stream: false
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
operationId: 'addDevelopmentNote',
|
|
142
|
+
method: 'POST',
|
|
143
|
+
path: '/api/v1/development',
|
|
144
|
+
kind: 'action',
|
|
145
|
+
auth: 'bearer',
|
|
146
|
+
stream: false
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
operationId: 'getIdentity',
|
|
150
|
+
method: 'GET',
|
|
151
|
+
path: '/api/v1/identity/{kind}',
|
|
152
|
+
kind: 'read',
|
|
153
|
+
auth: 'bearer',
|
|
154
|
+
stream: false
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
operationId: 'saveIdentity',
|
|
158
|
+
method: 'PUT',
|
|
159
|
+
path: '/api/v1/identity/{kind}',
|
|
160
|
+
kind: 'action',
|
|
161
|
+
auth: 'bearer',
|
|
162
|
+
stream: false
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
operationId: 'getIdentityHistory',
|
|
166
|
+
method: 'GET',
|
|
167
|
+
path: '/api/v1/identity/{kind}/history',
|
|
168
|
+
kind: 'read',
|
|
169
|
+
auth: 'bearer',
|
|
170
|
+
stream: false
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
operationId: 'restoreIdentity',
|
|
174
|
+
method: 'POST',
|
|
175
|
+
path: '/api/v1/identity/{kind}/restore',
|
|
176
|
+
kind: 'action',
|
|
177
|
+
auth: 'bearer',
|
|
178
|
+
stream: false
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
operationId: 'getJobDefinitionsStatus',
|
|
182
|
+
method: 'GET',
|
|
183
|
+
path: '/api/v1/jobs/definitions/status',
|
|
184
|
+
kind: 'read',
|
|
185
|
+
auth: 'bearer',
|
|
186
|
+
stream: false
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
operationId: 'reloadMemoryCredential',
|
|
190
|
+
method: 'POST',
|
|
191
|
+
path: '/api/v1/memory/credential/reload',
|
|
192
|
+
kind: 'action',
|
|
193
|
+
auth: 'bearer',
|
|
194
|
+
stream: false
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
operationId: 'searchMemory',
|
|
198
|
+
method: 'POST',
|
|
199
|
+
path: '/api/v1/memory/search',
|
|
200
|
+
kind: 'action',
|
|
201
|
+
auth: 'bearer',
|
|
202
|
+
stream: false
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
operationId: 'getMemoryStatus',
|
|
206
|
+
method: 'GET',
|
|
207
|
+
path: '/api/v1/memory/status',
|
|
208
|
+
kind: 'read',
|
|
209
|
+
auth: 'bearer',
|
|
210
|
+
stream: false
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
operationId: 'getMetrics',
|
|
214
|
+
method: 'GET',
|
|
215
|
+
path: '/api/v1/metrics',
|
|
216
|
+
kind: 'read',
|
|
217
|
+
auth: 'bearer',
|
|
218
|
+
stream: false
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
operationId: 'submitMission',
|
|
222
|
+
method: 'POST',
|
|
223
|
+
path: '/api/v1/missions',
|
|
224
|
+
kind: 'action',
|
|
225
|
+
auth: 'bearer',
|
|
226
|
+
stream: false
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
operationId: 'getPeers',
|
|
230
|
+
method: 'GET',
|
|
231
|
+
path: '/api/v1/peers',
|
|
232
|
+
kind: 'read',
|
|
233
|
+
auth: 'bearer',
|
|
234
|
+
stream: false
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
operationId: 'testPeer',
|
|
238
|
+
method: 'POST',
|
|
239
|
+
path: '/api/v1/peers/{id}/test',
|
|
240
|
+
kind: 'action',
|
|
241
|
+
auth: 'bearer',
|
|
242
|
+
stream: false
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
operationId: 'getPeersConfig',
|
|
246
|
+
method: 'GET',
|
|
247
|
+
path: '/api/v1/peers/config',
|
|
248
|
+
kind: 'read',
|
|
249
|
+
auth: 'bearer',
|
|
250
|
+
stream: false
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
operationId: 'savePeersConfig',
|
|
254
|
+
method: 'PUT',
|
|
255
|
+
path: '/api/v1/peers/config',
|
|
256
|
+
kind: 'action',
|
|
257
|
+
auth: 'bearer',
|
|
258
|
+
stream: false
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
operationId: 'validatePeersConfig',
|
|
262
|
+
method: 'POST',
|
|
263
|
+
path: '/api/v1/peers/validate',
|
|
264
|
+
kind: 'action',
|
|
265
|
+
auth: 'bearer',
|
|
266
|
+
stream: false
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
operationId: 'submitPreviewTask',
|
|
270
|
+
method: 'POST',
|
|
271
|
+
path: '/api/v1/preview/tasks',
|
|
272
|
+
kind: 'action',
|
|
273
|
+
auth: 'bearer',
|
|
274
|
+
stream: false
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
operationId: 'getProfile',
|
|
278
|
+
method: 'GET',
|
|
279
|
+
path: '/api/v1/profile',
|
|
280
|
+
kind: 'read',
|
|
281
|
+
auth: 'bearer',
|
|
282
|
+
stream: false
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
operationId: 'getProviders',
|
|
286
|
+
method: 'GET',
|
|
287
|
+
path: '/api/v1/providers',
|
|
288
|
+
kind: 'read',
|
|
289
|
+
auth: 'bearer',
|
|
290
|
+
stream: false
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
operationId: 'testProvider',
|
|
294
|
+
method: 'POST',
|
|
295
|
+
path: '/api/v1/providers/test',
|
|
296
|
+
kind: 'action',
|
|
297
|
+
auth: 'bearer',
|
|
298
|
+
stream: false
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
operationId: 'listSessions',
|
|
302
|
+
method: 'GET',
|
|
303
|
+
path: '/api/v1/sessions',
|
|
304
|
+
kind: 'read',
|
|
305
|
+
auth: 'bearer',
|
|
306
|
+
stream: false
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
operationId: 'openSession',
|
|
310
|
+
method: 'POST',
|
|
311
|
+
path: '/api/v1/sessions',
|
|
312
|
+
kind: 'action',
|
|
313
|
+
auth: 'bearer',
|
|
314
|
+
stream: false
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
operationId: 'getSessionMessages',
|
|
318
|
+
method: 'GET',
|
|
319
|
+
path: '/api/v1/sessions/{id}/messages',
|
|
320
|
+
kind: 'read',
|
|
321
|
+
auth: 'bearer',
|
|
322
|
+
stream: false
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
operationId: 'listSkills',
|
|
326
|
+
method: 'GET',
|
|
327
|
+
path: '/api/v1/skills',
|
|
328
|
+
kind: 'read',
|
|
329
|
+
auth: 'bearer',
|
|
330
|
+
stream: false
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
operationId: 'setSkillEnabled',
|
|
334
|
+
method: 'PUT',
|
|
335
|
+
path: '/api/v1/skills/{name}',
|
|
336
|
+
kind: 'action',
|
|
337
|
+
auth: 'bearer',
|
|
338
|
+
stream: false
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
operationId: 'getOperationalStatus',
|
|
342
|
+
method: 'GET',
|
|
343
|
+
path: '/api/v1/status',
|
|
344
|
+
kind: 'read',
|
|
345
|
+
auth: 'bearer',
|
|
346
|
+
stream: false
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
operationId: 'listTasks',
|
|
350
|
+
method: 'GET',
|
|
351
|
+
path: '/api/v1/tasks',
|
|
352
|
+
kind: 'read',
|
|
353
|
+
auth: 'bearer',
|
|
354
|
+
stream: false
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
operationId: 'submitTask',
|
|
358
|
+
method: 'POST',
|
|
359
|
+
path: '/api/v1/tasks',
|
|
360
|
+
kind: 'action',
|
|
361
|
+
auth: 'bearer',
|
|
362
|
+
stream: false
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
operationId: 'getTask',
|
|
366
|
+
method: 'GET',
|
|
367
|
+
path: '/api/v1/tasks/{id}',
|
|
368
|
+
kind: 'read',
|
|
369
|
+
auth: 'bearer',
|
|
370
|
+
stream: false
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
operationId: 'listTaskArtifacts',
|
|
374
|
+
method: 'GET',
|
|
375
|
+
path: '/api/v1/tasks/{id}/artifacts',
|
|
376
|
+
kind: 'read',
|
|
377
|
+
auth: 'bearer',
|
|
378
|
+
stream: false
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
operationId: 'cancelTask',
|
|
382
|
+
method: 'POST',
|
|
383
|
+
path: '/api/v1/tasks/{id}/cancel',
|
|
384
|
+
kind: 'action',
|
|
385
|
+
auth: 'bearer',
|
|
386
|
+
stream: false
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
operationId: 'getTaskEvents',
|
|
390
|
+
method: 'GET',
|
|
391
|
+
path: '/api/v1/tasks/{id}/events',
|
|
392
|
+
kind: 'read',
|
|
393
|
+
auth: 'bearer',
|
|
394
|
+
stream: false
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
operationId: 'getTaskLineage',
|
|
398
|
+
method: 'GET',
|
|
399
|
+
path: '/api/v1/tasks/{id}/lineage',
|
|
400
|
+
kind: 'read',
|
|
401
|
+
auth: 'bearer',
|
|
402
|
+
stream: false
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
operationId: 'pauseTask',
|
|
406
|
+
method: 'POST',
|
|
407
|
+
path: '/api/v1/tasks/{id}/pause',
|
|
408
|
+
kind: 'action',
|
|
409
|
+
auth: 'bearer',
|
|
410
|
+
stream: false
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
operationId: 'getTaskRecovery',
|
|
414
|
+
method: 'GET',
|
|
415
|
+
path: '/api/v1/tasks/{id}/recovery',
|
|
416
|
+
kind: 'read',
|
|
417
|
+
auth: 'bearer',
|
|
418
|
+
stream: false
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
operationId: 'decideTaskRecovery',
|
|
422
|
+
method: 'POST',
|
|
423
|
+
path: '/api/v1/tasks/{id}/recovery',
|
|
424
|
+
kind: 'action',
|
|
425
|
+
auth: 'bearer',
|
|
426
|
+
stream: false
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
operationId: 'resumeTask',
|
|
430
|
+
method: 'POST',
|
|
431
|
+
path: '/api/v1/tasks/{id}/resume',
|
|
432
|
+
kind: 'action',
|
|
433
|
+
auth: 'bearer',
|
|
434
|
+
stream: false
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
operationId: 'streamTaskEvents',
|
|
438
|
+
method: 'GET',
|
|
439
|
+
path: '/api/v1/tasks/{id}/stream',
|
|
440
|
+
kind: 'read',
|
|
441
|
+
auth: 'bearer',
|
|
442
|
+
stream: true
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
operationId: 'getLiveness',
|
|
446
|
+
method: 'GET',
|
|
447
|
+
path: '/health/live',
|
|
448
|
+
kind: 'read',
|
|
449
|
+
auth: 'none',
|
|
450
|
+
stream: false
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
operationId: 'getReadiness',
|
|
454
|
+
method: 'GET',
|
|
455
|
+
path: '/health/ready',
|
|
456
|
+
kind: 'read',
|
|
457
|
+
auth: 'none',
|
|
458
|
+
stream: false
|
|
459
|
+
}
|
|
460
|
+
];
|
package/dist/transport.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ export declare function direct(options: DirectTransportOptions): ArdentTransport
|
|
|
59
59
|
*/
|
|
60
60
|
export declare function viaMagnus(options: MagnusTransportOptions): ArdentTransport;
|
|
61
61
|
/** Routes that need a capability Magnus or an older Ardent may lack. */
|
|
62
|
-
export type Gate = 'recovery' | 'lineage' | 'artifact_transfer';
|
|
62
|
+
export type Gate = 'recovery' | 'lineage' | 'artifact_transfer' | 'task_filters';
|
|
63
63
|
export type Effect = 'none' | 'idempotent' | 'unknown';
|
|
64
64
|
export type Query = Readonly<Record<string, string | number | undefined>>;
|
|
65
65
|
export interface ReadSpec {
|
package/dist/transport.js
CHANGED
|
@@ -41,8 +41,8 @@ function checkedBase(value, name = 'baseUrl') {
|
|
|
41
41
|
return url.toString().replace(/\/+$/, '');
|
|
42
42
|
}
|
|
43
43
|
/** The level each gate needs in a Magnus installation report (`capabilities`). */
|
|
44
|
-
const GATE_LEVEL = { recovery: 1, lineage: 1, artifact_transfer: 2 };
|
|
45
|
-
const GATE_CAPABILITY = { recovery: 'ardent.recovery.v1', lineage: 'ardent.lineage.v1', artifact_transfer: 'artifact-transfer.v2' };
|
|
44
|
+
const GATE_LEVEL = { recovery: 1, lineage: 1, artifact_transfer: 2, task_filters: 1 };
|
|
45
|
+
const GATE_CAPABILITY = { recovery: 'ardent.recovery.v1', lineage: 'ardent.lineage.v1', artifact_transfer: 'artifact-transfer.v2', task_filters: 'ardent.task-filters.v1' };
|
|
46
46
|
export function isRecord(value) {
|
|
47
47
|
return value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
48
48
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -46,6 +46,21 @@ export type ArtifactImport = Json<'getArtifactImport'>;
|
|
|
46
46
|
export type ArtifactImportRequest = Body<'importArtifact'>;
|
|
47
47
|
export type ArtifactImportAccepted = Json<'importArtifact', 202>;
|
|
48
48
|
export type OperationalStatus = Json<'getOperationalStatus'>;
|
|
49
|
+
/** One page of tasks, newest first; `next` is the cursor of the following page, or null. */
|
|
50
|
+
export type TaskPage = Json<'listTasks'>;
|
|
51
|
+
export type TaskContext = NonNullable<NonNullable<operations['listTasks']['parameters']['query']>['context']>;
|
|
52
|
+
/** A team mission submission body (`POST /api/v1/missions`). */
|
|
53
|
+
export type MissionSubmitBody = Body<'submitMission'>;
|
|
54
|
+
export type TeamMission = MissionSubmitBody['mission'];
|
|
55
|
+
export type MissionContextItem = NonNullable<MissionSubmitBody['context_items']>[number];
|
|
56
|
+
/** A preview submission body (`POST /api/v1/preview/tasks`). */
|
|
57
|
+
export type PreviewSubmitBody = Body<'submitPreviewTask'>;
|
|
58
|
+
export type PreviewOverrides = NonNullable<PreviewSubmitBody['overrides']>;
|
|
59
|
+
/** One page of the agent's development history, oldest first. */
|
|
60
|
+
export type DevelopmentPage = Json<'listDevelopment'>;
|
|
61
|
+
export type DevelopmentRecord = DevelopmentPage['records'][number];
|
|
62
|
+
/** An operator (or relayed agent) development note. */
|
|
63
|
+
export type DevelopmentNote = Body<'addDevelopmentNote'>;
|
|
49
64
|
/** Live reply text, which is not journaled: `text` is a snapshot of the step so far, `delta` an addition. */
|
|
50
65
|
export interface TaskText {
|
|
51
66
|
readonly kind: 'text' | 'delta';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hivemagnus/ardent-client",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "Typed client for the Ardent management API: tasks, live streams, recovery, lineage and resumable artifact downloads, direct or through Magnus",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ardent",
|
|
@@ -29,6 +29,10 @@
|
|
|
29
29
|
"types": "./dist/index.d.ts",
|
|
30
30
|
"default": "./dist/index.js"
|
|
31
31
|
},
|
|
32
|
+
"./openapi": {
|
|
33
|
+
"types": "./dist/openapi.d.ts",
|
|
34
|
+
"default": "./dist/openapi.js"
|
|
35
|
+
},
|
|
32
36
|
"./package.json": "./package.json"
|
|
33
37
|
},
|
|
34
38
|
"engines": {
|