@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.d.ts
ADDED
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
/** Every operation of the management API: `read` for GET, `action` otherwise; `stream` when it answers with server-sent events. */
|
|
2
|
+
export declare const ARDENT_ROUTES: readonly [{
|
|
3
|
+
readonly operationId: "getArtifact";
|
|
4
|
+
readonly method: "GET";
|
|
5
|
+
readonly path: "/api/v1/artifacts/{id}";
|
|
6
|
+
readonly kind: "read";
|
|
7
|
+
readonly auth: "bearer";
|
|
8
|
+
readonly stream: false;
|
|
9
|
+
}, {
|
|
10
|
+
readonly operationId: "getArtifactContent";
|
|
11
|
+
readonly method: "GET";
|
|
12
|
+
readonly path: "/api/v1/artifacts/{sha256}/content";
|
|
13
|
+
readonly kind: "read";
|
|
14
|
+
readonly auth: "bearer";
|
|
15
|
+
readonly stream: false;
|
|
16
|
+
}, {
|
|
17
|
+
readonly operationId: "getArtifactManifest";
|
|
18
|
+
readonly method: "GET";
|
|
19
|
+
readonly path: "/api/v1/artifacts/{sha256}/manifest";
|
|
20
|
+
readonly kind: "read";
|
|
21
|
+
readonly auth: "bearer";
|
|
22
|
+
readonly stream: false;
|
|
23
|
+
}, {
|
|
24
|
+
readonly operationId: "getArtifactManifestV2";
|
|
25
|
+
readonly method: "GET";
|
|
26
|
+
readonly path: "/api/v1/artifacts/{sha256}/manifest/v2";
|
|
27
|
+
readonly kind: "read";
|
|
28
|
+
readonly auth: "bearer";
|
|
29
|
+
readonly stream: false;
|
|
30
|
+
}, {
|
|
31
|
+
readonly operationId: "listArtifactRenditions";
|
|
32
|
+
readonly method: "GET";
|
|
33
|
+
readonly path: "/api/v1/artifacts/{sha256}/renditions";
|
|
34
|
+
readonly kind: "read";
|
|
35
|
+
readonly auth: "bearer";
|
|
36
|
+
readonly stream: false;
|
|
37
|
+
}, {
|
|
38
|
+
readonly operationId: "listArtifactImports";
|
|
39
|
+
readonly method: "GET";
|
|
40
|
+
readonly path: "/api/v1/artifacts/imports";
|
|
41
|
+
readonly kind: "read";
|
|
42
|
+
readonly auth: "bearer";
|
|
43
|
+
readonly stream: false;
|
|
44
|
+
}, {
|
|
45
|
+
readonly operationId: "importArtifact";
|
|
46
|
+
readonly method: "POST";
|
|
47
|
+
readonly path: "/api/v1/artifacts/imports";
|
|
48
|
+
readonly kind: "action";
|
|
49
|
+
readonly auth: "bearer";
|
|
50
|
+
readonly stream: false;
|
|
51
|
+
}, {
|
|
52
|
+
readonly operationId: "getArtifactImport";
|
|
53
|
+
readonly method: "GET";
|
|
54
|
+
readonly path: "/api/v1/artifacts/imports/{id}";
|
|
55
|
+
readonly kind: "read";
|
|
56
|
+
readonly auth: "bearer";
|
|
57
|
+
readonly stream: false;
|
|
58
|
+
}, {
|
|
59
|
+
readonly operationId: "getChannels";
|
|
60
|
+
readonly method: "GET";
|
|
61
|
+
readonly path: "/api/v1/channels";
|
|
62
|
+
readonly kind: "read";
|
|
63
|
+
readonly auth: "bearer";
|
|
64
|
+
readonly stream: false;
|
|
65
|
+
}, {
|
|
66
|
+
readonly operationId: "testChannel";
|
|
67
|
+
readonly method: "POST";
|
|
68
|
+
readonly path: "/api/v1/channels/{name}/test";
|
|
69
|
+
readonly kind: "action";
|
|
70
|
+
readonly auth: "bearer";
|
|
71
|
+
readonly stream: false;
|
|
72
|
+
}, {
|
|
73
|
+
readonly operationId: "getConfig";
|
|
74
|
+
readonly method: "GET";
|
|
75
|
+
readonly path: "/api/v1/config";
|
|
76
|
+
readonly kind: "read";
|
|
77
|
+
readonly auth: "bearer";
|
|
78
|
+
readonly stream: false;
|
|
79
|
+
}, {
|
|
80
|
+
readonly operationId: "saveConfig";
|
|
81
|
+
readonly method: "PUT";
|
|
82
|
+
readonly path: "/api/v1/config";
|
|
83
|
+
readonly kind: "action";
|
|
84
|
+
readonly auth: "bearer";
|
|
85
|
+
readonly stream: false;
|
|
86
|
+
}, {
|
|
87
|
+
readonly operationId: "getConfigSchema";
|
|
88
|
+
readonly method: "GET";
|
|
89
|
+
readonly path: "/api/v1/config/schema";
|
|
90
|
+
readonly kind: "read";
|
|
91
|
+
readonly auth: "bearer";
|
|
92
|
+
readonly stream: false;
|
|
93
|
+
}, {
|
|
94
|
+
readonly operationId: "validateConfig";
|
|
95
|
+
readonly method: "POST";
|
|
96
|
+
readonly path: "/api/v1/config/validate";
|
|
97
|
+
readonly kind: "action";
|
|
98
|
+
readonly auth: "bearer";
|
|
99
|
+
readonly stream: false;
|
|
100
|
+
}, {
|
|
101
|
+
readonly operationId: "reloadManagementCredential";
|
|
102
|
+
readonly method: "POST";
|
|
103
|
+
readonly path: "/api/v1/credentials/management/reload";
|
|
104
|
+
readonly kind: "action";
|
|
105
|
+
readonly auth: "bearer";
|
|
106
|
+
readonly stream: false;
|
|
107
|
+
}, {
|
|
108
|
+
readonly operationId: "reloadPeerCredentials";
|
|
109
|
+
readonly method: "POST";
|
|
110
|
+
readonly path: "/api/v1/credentials/peers/reload";
|
|
111
|
+
readonly kind: "action";
|
|
112
|
+
readonly auth: "bearer";
|
|
113
|
+
readonly stream: false;
|
|
114
|
+
}, {
|
|
115
|
+
readonly operationId: "listDevelopment";
|
|
116
|
+
readonly method: "GET";
|
|
117
|
+
readonly path: "/api/v1/development";
|
|
118
|
+
readonly kind: "read";
|
|
119
|
+
readonly auth: "bearer";
|
|
120
|
+
readonly stream: false;
|
|
121
|
+
}, {
|
|
122
|
+
readonly operationId: "addDevelopmentNote";
|
|
123
|
+
readonly method: "POST";
|
|
124
|
+
readonly path: "/api/v1/development";
|
|
125
|
+
readonly kind: "action";
|
|
126
|
+
readonly auth: "bearer";
|
|
127
|
+
readonly stream: false;
|
|
128
|
+
}, {
|
|
129
|
+
readonly operationId: "getIdentity";
|
|
130
|
+
readonly method: "GET";
|
|
131
|
+
readonly path: "/api/v1/identity/{kind}";
|
|
132
|
+
readonly kind: "read";
|
|
133
|
+
readonly auth: "bearer";
|
|
134
|
+
readonly stream: false;
|
|
135
|
+
}, {
|
|
136
|
+
readonly operationId: "saveIdentity";
|
|
137
|
+
readonly method: "PUT";
|
|
138
|
+
readonly path: "/api/v1/identity/{kind}";
|
|
139
|
+
readonly kind: "action";
|
|
140
|
+
readonly auth: "bearer";
|
|
141
|
+
readonly stream: false;
|
|
142
|
+
}, {
|
|
143
|
+
readonly operationId: "getIdentityHistory";
|
|
144
|
+
readonly method: "GET";
|
|
145
|
+
readonly path: "/api/v1/identity/{kind}/history";
|
|
146
|
+
readonly kind: "read";
|
|
147
|
+
readonly auth: "bearer";
|
|
148
|
+
readonly stream: false;
|
|
149
|
+
}, {
|
|
150
|
+
readonly operationId: "restoreIdentity";
|
|
151
|
+
readonly method: "POST";
|
|
152
|
+
readonly path: "/api/v1/identity/{kind}/restore";
|
|
153
|
+
readonly kind: "action";
|
|
154
|
+
readonly auth: "bearer";
|
|
155
|
+
readonly stream: false;
|
|
156
|
+
}, {
|
|
157
|
+
readonly operationId: "getJobDefinitionsStatus";
|
|
158
|
+
readonly method: "GET";
|
|
159
|
+
readonly path: "/api/v1/jobs/definitions/status";
|
|
160
|
+
readonly kind: "read";
|
|
161
|
+
readonly auth: "bearer";
|
|
162
|
+
readonly stream: false;
|
|
163
|
+
}, {
|
|
164
|
+
readonly operationId: "reloadMemoryCredential";
|
|
165
|
+
readonly method: "POST";
|
|
166
|
+
readonly path: "/api/v1/memory/credential/reload";
|
|
167
|
+
readonly kind: "action";
|
|
168
|
+
readonly auth: "bearer";
|
|
169
|
+
readonly stream: false;
|
|
170
|
+
}, {
|
|
171
|
+
readonly operationId: "searchMemory";
|
|
172
|
+
readonly method: "POST";
|
|
173
|
+
readonly path: "/api/v1/memory/search";
|
|
174
|
+
readonly kind: "action";
|
|
175
|
+
readonly auth: "bearer";
|
|
176
|
+
readonly stream: false;
|
|
177
|
+
}, {
|
|
178
|
+
readonly operationId: "getMemoryStatus";
|
|
179
|
+
readonly method: "GET";
|
|
180
|
+
readonly path: "/api/v1/memory/status";
|
|
181
|
+
readonly kind: "read";
|
|
182
|
+
readonly auth: "bearer";
|
|
183
|
+
readonly stream: false;
|
|
184
|
+
}, {
|
|
185
|
+
readonly operationId: "getMetrics";
|
|
186
|
+
readonly method: "GET";
|
|
187
|
+
readonly path: "/api/v1/metrics";
|
|
188
|
+
readonly kind: "read";
|
|
189
|
+
readonly auth: "bearer";
|
|
190
|
+
readonly stream: false;
|
|
191
|
+
}, {
|
|
192
|
+
readonly operationId: "submitMission";
|
|
193
|
+
readonly method: "POST";
|
|
194
|
+
readonly path: "/api/v1/missions";
|
|
195
|
+
readonly kind: "action";
|
|
196
|
+
readonly auth: "bearer";
|
|
197
|
+
readonly stream: false;
|
|
198
|
+
}, {
|
|
199
|
+
readonly operationId: "getPeers";
|
|
200
|
+
readonly method: "GET";
|
|
201
|
+
readonly path: "/api/v1/peers";
|
|
202
|
+
readonly kind: "read";
|
|
203
|
+
readonly auth: "bearer";
|
|
204
|
+
readonly stream: false;
|
|
205
|
+
}, {
|
|
206
|
+
readonly operationId: "testPeer";
|
|
207
|
+
readonly method: "POST";
|
|
208
|
+
readonly path: "/api/v1/peers/{id}/test";
|
|
209
|
+
readonly kind: "action";
|
|
210
|
+
readonly auth: "bearer";
|
|
211
|
+
readonly stream: false;
|
|
212
|
+
}, {
|
|
213
|
+
readonly operationId: "getPeersConfig";
|
|
214
|
+
readonly method: "GET";
|
|
215
|
+
readonly path: "/api/v1/peers/config";
|
|
216
|
+
readonly kind: "read";
|
|
217
|
+
readonly auth: "bearer";
|
|
218
|
+
readonly stream: false;
|
|
219
|
+
}, {
|
|
220
|
+
readonly operationId: "savePeersConfig";
|
|
221
|
+
readonly method: "PUT";
|
|
222
|
+
readonly path: "/api/v1/peers/config";
|
|
223
|
+
readonly kind: "action";
|
|
224
|
+
readonly auth: "bearer";
|
|
225
|
+
readonly stream: false;
|
|
226
|
+
}, {
|
|
227
|
+
readonly operationId: "validatePeersConfig";
|
|
228
|
+
readonly method: "POST";
|
|
229
|
+
readonly path: "/api/v1/peers/validate";
|
|
230
|
+
readonly kind: "action";
|
|
231
|
+
readonly auth: "bearer";
|
|
232
|
+
readonly stream: false;
|
|
233
|
+
}, {
|
|
234
|
+
readonly operationId: "submitPreviewTask";
|
|
235
|
+
readonly method: "POST";
|
|
236
|
+
readonly path: "/api/v1/preview/tasks";
|
|
237
|
+
readonly kind: "action";
|
|
238
|
+
readonly auth: "bearer";
|
|
239
|
+
readonly stream: false;
|
|
240
|
+
}, {
|
|
241
|
+
readonly operationId: "getProfile";
|
|
242
|
+
readonly method: "GET";
|
|
243
|
+
readonly path: "/api/v1/profile";
|
|
244
|
+
readonly kind: "read";
|
|
245
|
+
readonly auth: "bearer";
|
|
246
|
+
readonly stream: false;
|
|
247
|
+
}, {
|
|
248
|
+
readonly operationId: "getProviders";
|
|
249
|
+
readonly method: "GET";
|
|
250
|
+
readonly path: "/api/v1/providers";
|
|
251
|
+
readonly kind: "read";
|
|
252
|
+
readonly auth: "bearer";
|
|
253
|
+
readonly stream: false;
|
|
254
|
+
}, {
|
|
255
|
+
readonly operationId: "testProvider";
|
|
256
|
+
readonly method: "POST";
|
|
257
|
+
readonly path: "/api/v1/providers/test";
|
|
258
|
+
readonly kind: "action";
|
|
259
|
+
readonly auth: "bearer";
|
|
260
|
+
readonly stream: false;
|
|
261
|
+
}, {
|
|
262
|
+
readonly operationId: "listSessions";
|
|
263
|
+
readonly method: "GET";
|
|
264
|
+
readonly path: "/api/v1/sessions";
|
|
265
|
+
readonly kind: "read";
|
|
266
|
+
readonly auth: "bearer";
|
|
267
|
+
readonly stream: false;
|
|
268
|
+
}, {
|
|
269
|
+
readonly operationId: "openSession";
|
|
270
|
+
readonly method: "POST";
|
|
271
|
+
readonly path: "/api/v1/sessions";
|
|
272
|
+
readonly kind: "action";
|
|
273
|
+
readonly auth: "bearer";
|
|
274
|
+
readonly stream: false;
|
|
275
|
+
}, {
|
|
276
|
+
readonly operationId: "getSessionMessages";
|
|
277
|
+
readonly method: "GET";
|
|
278
|
+
readonly path: "/api/v1/sessions/{id}/messages";
|
|
279
|
+
readonly kind: "read";
|
|
280
|
+
readonly auth: "bearer";
|
|
281
|
+
readonly stream: false;
|
|
282
|
+
}, {
|
|
283
|
+
readonly operationId: "listSkills";
|
|
284
|
+
readonly method: "GET";
|
|
285
|
+
readonly path: "/api/v1/skills";
|
|
286
|
+
readonly kind: "read";
|
|
287
|
+
readonly auth: "bearer";
|
|
288
|
+
readonly stream: false;
|
|
289
|
+
}, {
|
|
290
|
+
readonly operationId: "setSkillEnabled";
|
|
291
|
+
readonly method: "PUT";
|
|
292
|
+
readonly path: "/api/v1/skills/{name}";
|
|
293
|
+
readonly kind: "action";
|
|
294
|
+
readonly auth: "bearer";
|
|
295
|
+
readonly stream: false;
|
|
296
|
+
}, {
|
|
297
|
+
readonly operationId: "getOperationalStatus";
|
|
298
|
+
readonly method: "GET";
|
|
299
|
+
readonly path: "/api/v1/status";
|
|
300
|
+
readonly kind: "read";
|
|
301
|
+
readonly auth: "bearer";
|
|
302
|
+
readonly stream: false;
|
|
303
|
+
}, {
|
|
304
|
+
readonly operationId: "listTasks";
|
|
305
|
+
readonly method: "GET";
|
|
306
|
+
readonly path: "/api/v1/tasks";
|
|
307
|
+
readonly kind: "read";
|
|
308
|
+
readonly auth: "bearer";
|
|
309
|
+
readonly stream: false;
|
|
310
|
+
}, {
|
|
311
|
+
readonly operationId: "submitTask";
|
|
312
|
+
readonly method: "POST";
|
|
313
|
+
readonly path: "/api/v1/tasks";
|
|
314
|
+
readonly kind: "action";
|
|
315
|
+
readonly auth: "bearer";
|
|
316
|
+
readonly stream: false;
|
|
317
|
+
}, {
|
|
318
|
+
readonly operationId: "getTask";
|
|
319
|
+
readonly method: "GET";
|
|
320
|
+
readonly path: "/api/v1/tasks/{id}";
|
|
321
|
+
readonly kind: "read";
|
|
322
|
+
readonly auth: "bearer";
|
|
323
|
+
readonly stream: false;
|
|
324
|
+
}, {
|
|
325
|
+
readonly operationId: "listTaskArtifacts";
|
|
326
|
+
readonly method: "GET";
|
|
327
|
+
readonly path: "/api/v1/tasks/{id}/artifacts";
|
|
328
|
+
readonly kind: "read";
|
|
329
|
+
readonly auth: "bearer";
|
|
330
|
+
readonly stream: false;
|
|
331
|
+
}, {
|
|
332
|
+
readonly operationId: "cancelTask";
|
|
333
|
+
readonly method: "POST";
|
|
334
|
+
readonly path: "/api/v1/tasks/{id}/cancel";
|
|
335
|
+
readonly kind: "action";
|
|
336
|
+
readonly auth: "bearer";
|
|
337
|
+
readonly stream: false;
|
|
338
|
+
}, {
|
|
339
|
+
readonly operationId: "getTaskEvents";
|
|
340
|
+
readonly method: "GET";
|
|
341
|
+
readonly path: "/api/v1/tasks/{id}/events";
|
|
342
|
+
readonly kind: "read";
|
|
343
|
+
readonly auth: "bearer";
|
|
344
|
+
readonly stream: false;
|
|
345
|
+
}, {
|
|
346
|
+
readonly operationId: "getTaskLineage";
|
|
347
|
+
readonly method: "GET";
|
|
348
|
+
readonly path: "/api/v1/tasks/{id}/lineage";
|
|
349
|
+
readonly kind: "read";
|
|
350
|
+
readonly auth: "bearer";
|
|
351
|
+
readonly stream: false;
|
|
352
|
+
}, {
|
|
353
|
+
readonly operationId: "pauseTask";
|
|
354
|
+
readonly method: "POST";
|
|
355
|
+
readonly path: "/api/v1/tasks/{id}/pause";
|
|
356
|
+
readonly kind: "action";
|
|
357
|
+
readonly auth: "bearer";
|
|
358
|
+
readonly stream: false;
|
|
359
|
+
}, {
|
|
360
|
+
readonly operationId: "getTaskRecovery";
|
|
361
|
+
readonly method: "GET";
|
|
362
|
+
readonly path: "/api/v1/tasks/{id}/recovery";
|
|
363
|
+
readonly kind: "read";
|
|
364
|
+
readonly auth: "bearer";
|
|
365
|
+
readonly stream: false;
|
|
366
|
+
}, {
|
|
367
|
+
readonly operationId: "decideTaskRecovery";
|
|
368
|
+
readonly method: "POST";
|
|
369
|
+
readonly path: "/api/v1/tasks/{id}/recovery";
|
|
370
|
+
readonly kind: "action";
|
|
371
|
+
readonly auth: "bearer";
|
|
372
|
+
readonly stream: false;
|
|
373
|
+
}, {
|
|
374
|
+
readonly operationId: "resumeTask";
|
|
375
|
+
readonly method: "POST";
|
|
376
|
+
readonly path: "/api/v1/tasks/{id}/resume";
|
|
377
|
+
readonly kind: "action";
|
|
378
|
+
readonly auth: "bearer";
|
|
379
|
+
readonly stream: false;
|
|
380
|
+
}, {
|
|
381
|
+
readonly operationId: "streamTaskEvents";
|
|
382
|
+
readonly method: "GET";
|
|
383
|
+
readonly path: "/api/v1/tasks/{id}/stream";
|
|
384
|
+
readonly kind: "read";
|
|
385
|
+
readonly auth: "bearer";
|
|
386
|
+
readonly stream: true;
|
|
387
|
+
}, {
|
|
388
|
+
readonly operationId: "getLiveness";
|
|
389
|
+
readonly method: "GET";
|
|
390
|
+
readonly path: "/health/live";
|
|
391
|
+
readonly kind: "read";
|
|
392
|
+
readonly auth: "none";
|
|
393
|
+
readonly stream: false;
|
|
394
|
+
}, {
|
|
395
|
+
readonly operationId: "getReadiness";
|
|
396
|
+
readonly method: "GET";
|
|
397
|
+
readonly path: "/health/ready";
|
|
398
|
+
readonly kind: "read";
|
|
399
|
+
readonly auth: "none";
|
|
400
|
+
readonly stream: false;
|
|
401
|
+
}];
|