@alexrockshouts/miri-sdk 1.0.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.

Potentially problematic release.


This version of @alexrockshouts/miri-sdk might be problematic. Click here for more details.

@@ -0,0 +1,2669 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Miri Autonomous Agent API
5
+ * API for interacting with the Miri autonomous agent service.
6
+ *
7
+ * The version of the OpenAPI document: 1.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import globalAxios from 'axios';
15
+ // Some imports not used depending on template conditions
16
+ // @ts-ignore
17
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
18
+ // @ts-ignore
19
+ import { BASE_PATH, BaseAPI, operationServerMap } from './base';
20
+ export const ApiAdminV1ChannelsPostRequestActionEnum = {
21
+ Status: 'status',
22
+ Enroll: 'enroll',
23
+ Send: 'send',
24
+ Devices: 'devices',
25
+ Chat: 'chat'
26
+ };
27
+ export const ApiV1InteractionPostRequestActionEnum = {
28
+ Status: 'status'
29
+ };
30
+ export const SpawnSubAgentRequestRoleEnum = {
31
+ Researcher: 'researcher',
32
+ Coder: 'coder',
33
+ Reviewer: 'reviewer',
34
+ Generic: 'generic'
35
+ };
36
+ export const SubAgentRunRoleEnum = {
37
+ Researcher: 'researcher',
38
+ Coder: 'coder',
39
+ Reviewer: 'reviewer',
40
+ Generic: 'generic'
41
+ };
42
+ export const SubAgentRunStatusEnum = {
43
+ Pending: 'pending',
44
+ Running: 'running',
45
+ Done: 'done',
46
+ Failed: 'failed',
47
+ Canceled: 'canceled'
48
+ };
49
+ export const TopologyEdgeBondEnum = {
50
+ D: 'D',
51
+ R: 'R',
52
+ E: 'E'
53
+ };
54
+ /**
55
+ * DefaultApi - axios parameter creator
56
+ */
57
+ export const DefaultApiAxiosParamCreator = function (configuration) {
58
+ return {
59
+ /**
60
+ *
61
+ * @summary Get all factual memories
62
+ * @param {number} [limit] Maximum number of results to return
63
+ * @param {number} [offset] Number of results to skip
64
+ * @param {*} [options] Override http request option.
65
+ * @throws {RequiredError}
66
+ */
67
+ apiAdminV1BrainFactsGet: async (limit, offset, options = {}) => {
68
+ const localVarPath = `/api/admin/v1/brain/facts`;
69
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
70
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
71
+ let baseOptions;
72
+ if (configuration) {
73
+ baseOptions = configuration.baseOptions;
74
+ }
75
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
76
+ const localVarHeaderParameter = {};
77
+ const localVarQueryParameter = {};
78
+ // authentication BasicAuth required
79
+ // http basic authentication required
80
+ setBasicAuthToObject(localVarRequestOptions, configuration);
81
+ if (limit !== undefined) {
82
+ localVarQueryParameter['limit'] = limit;
83
+ }
84
+ if (offset !== undefined) {
85
+ localVarQueryParameter['offset'] = offset;
86
+ }
87
+ localVarHeaderParameter['Accept'] = 'application/json';
88
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
89
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
90
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
91
+ return {
92
+ url: toPathString(localVarUrlObj),
93
+ options: localVarRequestOptions,
94
+ };
95
+ },
96
+ /**
97
+ *
98
+ * @summary Get all summary memories
99
+ * @param {number} [limit] Maximum number of results to return
100
+ * @param {number} [offset] Number of results to skip
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ apiAdminV1BrainSummariesGet: async (limit, offset, options = {}) => {
105
+ const localVarPath = `/api/admin/v1/brain/summaries`;
106
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
107
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
108
+ let baseOptions;
109
+ if (configuration) {
110
+ baseOptions = configuration.baseOptions;
111
+ }
112
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
113
+ const localVarHeaderParameter = {};
114
+ const localVarQueryParameter = {};
115
+ // authentication BasicAuth required
116
+ // http basic authentication required
117
+ setBasicAuthToObject(localVarRequestOptions, configuration);
118
+ if (limit !== undefined) {
119
+ localVarQueryParameter['limit'] = limit;
120
+ }
121
+ if (offset !== undefined) {
122
+ localVarQueryParameter['offset'] = offset;
123
+ }
124
+ localVarHeaderParameter['Accept'] = 'application/json';
125
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
126
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
127
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
128
+ return {
129
+ url: toPathString(localVarUrlObj),
130
+ options: localVarRequestOptions,
131
+ };
132
+ },
133
+ /**
134
+ *
135
+ * @summary Get Mole-Syn reasoning topology
136
+ * @param {string} [sessionId] Filter topology by session ID
137
+ * @param {*} [options] Override http request option.
138
+ * @throws {RequiredError}
139
+ */
140
+ apiAdminV1BrainTopologyGet: async (sessionId, options = {}) => {
141
+ const localVarPath = `/api/admin/v1/brain/topology`;
142
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
143
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
144
+ let baseOptions;
145
+ if (configuration) {
146
+ baseOptions = configuration.baseOptions;
147
+ }
148
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
149
+ const localVarHeaderParameter = {};
150
+ const localVarQueryParameter = {};
151
+ // authentication BasicAuth required
152
+ // http basic authentication required
153
+ setBasicAuthToObject(localVarRequestOptions, configuration);
154
+ if (sessionId !== undefined) {
155
+ localVarQueryParameter['session_id'] = sessionId;
156
+ }
157
+ localVarHeaderParameter['Accept'] = 'application/json';
158
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
159
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
160
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
161
+ return {
162
+ url: toPathString(localVarUrlObj),
163
+ options: localVarRequestOptions,
164
+ };
165
+ },
166
+ /**
167
+ *
168
+ * @summary Perform actions on communication channels
169
+ * @param {ApiAdminV1ChannelsPostRequest} apiAdminV1ChannelsPostRequest
170
+ * @param {*} [options] Override http request option.
171
+ * @throws {RequiredError}
172
+ */
173
+ apiAdminV1ChannelsPost: async (apiAdminV1ChannelsPostRequest, options = {}) => {
174
+ // verify required parameter 'apiAdminV1ChannelsPostRequest' is not null or undefined
175
+ assertParamExists('apiAdminV1ChannelsPost', 'apiAdminV1ChannelsPostRequest', apiAdminV1ChannelsPostRequest);
176
+ const localVarPath = `/api/admin/v1/channels`;
177
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
178
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
179
+ let baseOptions;
180
+ if (configuration) {
181
+ baseOptions = configuration.baseOptions;
182
+ }
183
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
184
+ const localVarHeaderParameter = {};
185
+ const localVarQueryParameter = {};
186
+ // authentication BasicAuth required
187
+ // http basic authentication required
188
+ setBasicAuthToObject(localVarRequestOptions, configuration);
189
+ localVarHeaderParameter['Content-Type'] = 'application/json';
190
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
191
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
192
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
193
+ localVarRequestOptions.data = serializeDataIfNeeded(apiAdminV1ChannelsPostRequest, localVarRequestOptions, configuration);
194
+ return {
195
+ url: toPathString(localVarUrlObj),
196
+ options: localVarRequestOptions,
197
+ };
198
+ },
199
+ /**
200
+ *
201
+ * @summary Get current configuration
202
+ * @param {*} [options] Override http request option.
203
+ * @throws {RequiredError}
204
+ */
205
+ apiAdminV1ConfigGet: async (options = {}) => {
206
+ const localVarPath = `/api/admin/v1/config`;
207
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
208
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
209
+ let baseOptions;
210
+ if (configuration) {
211
+ baseOptions = configuration.baseOptions;
212
+ }
213
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
214
+ const localVarHeaderParameter = {};
215
+ const localVarQueryParameter = {};
216
+ // authentication BasicAuth required
217
+ // http basic authentication required
218
+ setBasicAuthToObject(localVarRequestOptions, configuration);
219
+ localVarHeaderParameter['Accept'] = 'application/json';
220
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
221
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
222
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
223
+ return {
224
+ url: toPathString(localVarUrlObj),
225
+ options: localVarRequestOptions,
226
+ };
227
+ },
228
+ /**
229
+ *
230
+ * @summary Update configuration
231
+ * @param {Config} config
232
+ * @param {*} [options] Override http request option.
233
+ * @throws {RequiredError}
234
+ */
235
+ apiAdminV1ConfigPost: async (config, options = {}) => {
236
+ // verify required parameter 'config' is not null or undefined
237
+ assertParamExists('apiAdminV1ConfigPost', 'config', config);
238
+ const localVarPath = `/api/admin/v1/config`;
239
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
240
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
241
+ let baseOptions;
242
+ if (configuration) {
243
+ baseOptions = configuration.baseOptions;
244
+ }
245
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
246
+ const localVarHeaderParameter = {};
247
+ const localVarQueryParameter = {};
248
+ // authentication BasicAuth required
249
+ // http basic authentication required
250
+ setBasicAuthToObject(localVarRequestOptions, configuration);
251
+ localVarHeaderParameter['Content-Type'] = 'application/json';
252
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
253
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
254
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
255
+ localVarRequestOptions.data = serializeDataIfNeeded(config, localVarRequestOptions, configuration);
256
+ return {
257
+ url: toPathString(localVarUrlObj),
258
+ options: localVarRequestOptions,
259
+ };
260
+ },
261
+ /**
262
+ *
263
+ * @summary Reset configuration (removes config.yaml)
264
+ * @param {*} [options] Override http request option.
265
+ * @throws {RequiredError}
266
+ */
267
+ apiAdminV1ConfigResetPost: async (options = {}) => {
268
+ const localVarPath = `/api/admin/v1/config/reset`;
269
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
270
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
271
+ let baseOptions;
272
+ if (configuration) {
273
+ baseOptions = configuration.baseOptions;
274
+ }
275
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
276
+ const localVarHeaderParameter = {};
277
+ const localVarQueryParameter = {};
278
+ // authentication BasicAuth required
279
+ // http basic authentication required
280
+ setBasicAuthToObject(localVarRequestOptions, configuration);
281
+ localVarHeaderParameter['Accept'] = 'application/json';
282
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
283
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
284
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
285
+ return {
286
+ url: toPathString(localVarUrlObj),
287
+ options: localVarRequestOptions,
288
+ };
289
+ },
290
+ /**
291
+ *
292
+ * @summary Check health of the admin API
293
+ * @param {*} [options] Override http request option.
294
+ * @throws {RequiredError}
295
+ */
296
+ apiAdminV1HealthGet: async (options = {}) => {
297
+ const localVarPath = `/api/admin/v1/health`;
298
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
299
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
300
+ let baseOptions;
301
+ if (configuration) {
302
+ baseOptions = configuration.baseOptions;
303
+ }
304
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
305
+ const localVarHeaderParameter = {};
306
+ const localVarQueryParameter = {};
307
+ // authentication BasicAuth required
308
+ // http basic authentication required
309
+ setBasicAuthToObject(localVarRequestOptions, configuration);
310
+ localVarHeaderParameter['Accept'] = 'application/json';
311
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
312
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
313
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
314
+ return {
315
+ url: toPathString(localVarUrlObj),
316
+ options: localVarRequestOptions,
317
+ };
318
+ },
319
+ /**
320
+ *
321
+ * @summary Get the human information (Markdown)
322
+ * @param {*} [options] Override http request option.
323
+ * @throws {RequiredError}
324
+ */
325
+ apiAdminV1HumanGet: async (options = {}) => {
326
+ const localVarPath = `/api/admin/v1/human`;
327
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
328
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
329
+ let baseOptions;
330
+ if (configuration) {
331
+ baseOptions = configuration.baseOptions;
332
+ }
333
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
334
+ const localVarHeaderParameter = {};
335
+ const localVarQueryParameter = {};
336
+ // authentication BasicAuth required
337
+ // http basic authentication required
338
+ setBasicAuthToObject(localVarRequestOptions, configuration);
339
+ localVarHeaderParameter['Accept'] = 'application/json';
340
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
341
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
342
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
343
+ return {
344
+ url: toPathString(localVarUrlObj),
345
+ options: localVarRequestOptions,
346
+ };
347
+ },
348
+ /**
349
+ *
350
+ * @summary Save human information (Markdown)
351
+ * @param {Human} human
352
+ * @param {*} [options] Override http request option.
353
+ * @throws {RequiredError}
354
+ */
355
+ apiAdminV1HumanPost: async (human, options = {}) => {
356
+ // verify required parameter 'human' is not null or undefined
357
+ assertParamExists('apiAdminV1HumanPost', 'human', human);
358
+ const localVarPath = `/api/admin/v1/human`;
359
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
360
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
361
+ let baseOptions;
362
+ if (configuration) {
363
+ baseOptions = configuration.baseOptions;
364
+ }
365
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
366
+ const localVarHeaderParameter = {};
367
+ const localVarQueryParameter = {};
368
+ // authentication BasicAuth required
369
+ // http basic authentication required
370
+ setBasicAuthToObject(localVarRequestOptions, configuration);
371
+ localVarHeaderParameter['Content-Type'] = 'application/json';
372
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
373
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
374
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
375
+ localVarRequestOptions.data = serializeDataIfNeeded(human, localVarRequestOptions, configuration);
376
+ return {
377
+ url: toPathString(localVarUrlObj),
378
+ options: localVarRequestOptions,
379
+ };
380
+ },
381
+ /**
382
+ *
383
+ * @summary List active session IDs
384
+ * @param {number} [limit] Maximum number of results to return
385
+ * @param {number} [offset] Number of results to skip
386
+ * @param {*} [options] Override http request option.
387
+ * @throws {RequiredError}
388
+ */
389
+ apiAdminV1SessionsGet: async (limit, offset, options = {}) => {
390
+ const localVarPath = `/api/admin/v1/sessions`;
391
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
392
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
393
+ let baseOptions;
394
+ if (configuration) {
395
+ baseOptions = configuration.baseOptions;
396
+ }
397
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
398
+ const localVarHeaderParameter = {};
399
+ const localVarQueryParameter = {};
400
+ // authentication BasicAuth required
401
+ // http basic authentication required
402
+ setBasicAuthToObject(localVarRequestOptions, configuration);
403
+ if (limit !== undefined) {
404
+ localVarQueryParameter['limit'] = limit;
405
+ }
406
+ if (offset !== undefined) {
407
+ localVarQueryParameter['offset'] = offset;
408
+ }
409
+ localVarHeaderParameter['Accept'] = 'application/json';
410
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
411
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
412
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
413
+ return {
414
+ url: toPathString(localVarUrlObj),
415
+ options: localVarRequestOptions,
416
+ };
417
+ },
418
+ /**
419
+ *
420
+ * @summary Get session details
421
+ * @param {string} id
422
+ * @param {*} [options] Override http request option.
423
+ * @throws {RequiredError}
424
+ */
425
+ apiAdminV1SessionsIdGet: async (id, options = {}) => {
426
+ // verify required parameter 'id' is not null or undefined
427
+ assertParamExists('apiAdminV1SessionsIdGet', 'id', id);
428
+ const localVarPath = `/api/admin/v1/sessions/{id}`
429
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
430
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
431
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
432
+ let baseOptions;
433
+ if (configuration) {
434
+ baseOptions = configuration.baseOptions;
435
+ }
436
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
437
+ const localVarHeaderParameter = {};
438
+ const localVarQueryParameter = {};
439
+ // authentication BasicAuth required
440
+ // http basic authentication required
441
+ setBasicAuthToObject(localVarRequestOptions, configuration);
442
+ localVarHeaderParameter['Accept'] = 'application/json';
443
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
444
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
445
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
446
+ return {
447
+ url: toPathString(localVarUrlObj),
448
+ options: localVarRequestOptions,
449
+ };
450
+ },
451
+ /**
452
+ *
453
+ * @summary Get session message history
454
+ * @param {string} id
455
+ * @param {number} [limit] Maximum number of results to return
456
+ * @param {number} [offset] Number of results to skip
457
+ * @param {*} [options] Override http request option.
458
+ * @throws {RequiredError}
459
+ */
460
+ apiAdminV1SessionsIdHistoryGet: async (id, limit, offset, options = {}) => {
461
+ // verify required parameter 'id' is not null or undefined
462
+ assertParamExists('apiAdminV1SessionsIdHistoryGet', 'id', id);
463
+ const localVarPath = `/api/admin/v1/sessions/{id}/history`
464
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
465
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
466
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
467
+ let baseOptions;
468
+ if (configuration) {
469
+ baseOptions = configuration.baseOptions;
470
+ }
471
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
472
+ const localVarHeaderParameter = {};
473
+ const localVarQueryParameter = {};
474
+ // authentication BasicAuth required
475
+ // http basic authentication required
476
+ setBasicAuthToObject(localVarRequestOptions, configuration);
477
+ if (limit !== undefined) {
478
+ localVarQueryParameter['limit'] = limit;
479
+ }
480
+ if (offset !== undefined) {
481
+ localVarQueryParameter['offset'] = offset;
482
+ }
483
+ localVarHeaderParameter['Accept'] = 'application/json';
484
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
485
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
486
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
487
+ return {
488
+ url: toPathString(localVarUrlObj),
489
+ options: localVarRequestOptions,
490
+ };
491
+ },
492
+ /**
493
+ *
494
+ * @summary Get loaded skills for a session
495
+ * @param {string} id
496
+ * @param {*} [options] Override http request option.
497
+ * @throws {RequiredError}
498
+ */
499
+ apiAdminV1SessionsIdSkillsGet: async (id, options = {}) => {
500
+ // verify required parameter 'id' is not null or undefined
501
+ assertParamExists('apiAdminV1SessionsIdSkillsGet', 'id', id);
502
+ const localVarPath = `/api/admin/v1/sessions/{id}/skills`
503
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
504
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
505
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
506
+ let baseOptions;
507
+ if (configuration) {
508
+ baseOptions = configuration.baseOptions;
509
+ }
510
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
511
+ const localVarHeaderParameter = {};
512
+ const localVarQueryParameter = {};
513
+ // authentication BasicAuth required
514
+ // http basic authentication required
515
+ setBasicAuthToObject(localVarRequestOptions, configuration);
516
+ localVarHeaderParameter['Accept'] = 'application/json';
517
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
518
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
519
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
520
+ return {
521
+ url: toPathString(localVarUrlObj),
522
+ options: localVarRequestOptions,
523
+ };
524
+ },
525
+ /**
526
+ *
527
+ * @summary Get session token and cost statistics
528
+ * @param {string} id
529
+ * @param {*} [options] Override http request option.
530
+ * @throws {RequiredError}
531
+ */
532
+ apiAdminV1SessionsIdStatsGet: async (id, options = {}) => {
533
+ // verify required parameter 'id' is not null or undefined
534
+ assertParamExists('apiAdminV1SessionsIdStatsGet', 'id', id);
535
+ const localVarPath = `/api/admin/v1/sessions/{id}/stats`
536
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
537
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
538
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
539
+ let baseOptions;
540
+ if (configuration) {
541
+ baseOptions = configuration.baseOptions;
542
+ }
543
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
544
+ const localVarHeaderParameter = {};
545
+ const localVarQueryParameter = {};
546
+ // authentication BasicAuth required
547
+ // http basic authentication required
548
+ setBasicAuthToObject(localVarRequestOptions, configuration);
549
+ localVarHeaderParameter['Accept'] = 'application/json';
550
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
551
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
552
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
553
+ return {
554
+ url: toPathString(localVarUrlObj),
555
+ options: localVarRequestOptions,
556
+ };
557
+ },
558
+ /**
559
+ *
560
+ * @summary List all available agent commands (tools)
561
+ * @param {*} [options] Override http request option.
562
+ * @throws {RequiredError}
563
+ */
564
+ apiAdminV1SkillsCommandsGet: async (options = {}) => {
565
+ const localVarPath = `/api/admin/v1/skills/commands`;
566
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
567
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
568
+ let baseOptions;
569
+ if (configuration) {
570
+ baseOptions = configuration.baseOptions;
571
+ }
572
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
573
+ const localVarHeaderParameter = {};
574
+ const localVarQueryParameter = {};
575
+ // authentication BasicAuth required
576
+ // http basic authentication required
577
+ setBasicAuthToObject(localVarRequestOptions, configuration);
578
+ localVarHeaderParameter['Accept'] = 'application/json';
579
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
580
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
581
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
582
+ return {
583
+ url: toPathString(localVarUrlObj),
584
+ options: localVarRequestOptions,
585
+ };
586
+ },
587
+ /**
588
+ *
589
+ * @summary List all installed skills
590
+ * @param {number} [limit] Maximum number of results to return
591
+ * @param {number} [offset] Number of results to skip
592
+ * @param {*} [options] Override http request option.
593
+ * @throws {RequiredError}
594
+ */
595
+ apiAdminV1SkillsGet: async (limit, offset, options = {}) => {
596
+ const localVarPath = `/api/admin/v1/skills`;
597
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
598
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
599
+ let baseOptions;
600
+ if (configuration) {
601
+ baseOptions = configuration.baseOptions;
602
+ }
603
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
604
+ const localVarHeaderParameter = {};
605
+ const localVarQueryParameter = {};
606
+ // authentication BasicAuth required
607
+ // http basic authentication required
608
+ setBasicAuthToObject(localVarRequestOptions, configuration);
609
+ if (limit !== undefined) {
610
+ localVarQueryParameter['limit'] = limit;
611
+ }
612
+ if (offset !== undefined) {
613
+ localVarQueryParameter['offset'] = offset;
614
+ }
615
+ localVarHeaderParameter['Accept'] = 'application/json';
616
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
617
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
618
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
619
+ return {
620
+ url: toPathString(localVarUrlObj),
621
+ options: localVarRequestOptions,
622
+ };
623
+ },
624
+ /**
625
+ *
626
+ * @summary Remove a skill
627
+ * @param {string} name
628
+ * @param {*} [options] Override http request option.
629
+ * @throws {RequiredError}
630
+ */
631
+ apiAdminV1SkillsNameDelete: async (name, options = {}) => {
632
+ // verify required parameter 'name' is not null or undefined
633
+ assertParamExists('apiAdminV1SkillsNameDelete', 'name', name);
634
+ const localVarPath = `/api/admin/v1/skills/{name}`
635
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
636
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
637
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
638
+ let baseOptions;
639
+ if (configuration) {
640
+ baseOptions = configuration.baseOptions;
641
+ }
642
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
643
+ const localVarHeaderParameter = {};
644
+ const localVarQueryParameter = {};
645
+ // authentication BasicAuth required
646
+ // http basic authentication required
647
+ setBasicAuthToObject(localVarRequestOptions, configuration);
648
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
649
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
650
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
651
+ return {
652
+ url: toPathString(localVarUrlObj),
653
+ options: localVarRequestOptions,
654
+ };
655
+ },
656
+ /**
657
+ *
658
+ * @summary Get skill details
659
+ * @param {string} name
660
+ * @param {*} [options] Override http request option.
661
+ * @throws {RequiredError}
662
+ */
663
+ apiAdminV1SkillsNameGet: async (name, options = {}) => {
664
+ // verify required parameter 'name' is not null or undefined
665
+ assertParamExists('apiAdminV1SkillsNameGet', 'name', name);
666
+ const localVarPath = `/api/admin/v1/skills/{name}`
667
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
668
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
669
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
670
+ let baseOptions;
671
+ if (configuration) {
672
+ baseOptions = configuration.baseOptions;
673
+ }
674
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
675
+ const localVarHeaderParameter = {};
676
+ const localVarQueryParameter = {};
677
+ // authentication BasicAuth required
678
+ // http basic authentication required
679
+ setBasicAuthToObject(localVarRequestOptions, configuration);
680
+ localVarHeaderParameter['Accept'] = 'application/json';
681
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
682
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
683
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
684
+ return {
685
+ url: toPathString(localVarUrlObj),
686
+ options: localVarRequestOptions,
687
+ };
688
+ },
689
+ /**
690
+ *
691
+ * @summary List all sub-agent runs
692
+ * @param {string} [session] Filter by parent session ID
693
+ * @param {*} [options] Override http request option.
694
+ * @throws {RequiredError}
695
+ */
696
+ apiAdminV1SubagentsGet: async (session, options = {}) => {
697
+ const localVarPath = `/api/admin/v1/subagents`;
698
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
699
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
700
+ let baseOptions;
701
+ if (configuration) {
702
+ baseOptions = configuration.baseOptions;
703
+ }
704
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
705
+ const localVarHeaderParameter = {};
706
+ const localVarQueryParameter = {};
707
+ // authentication BasicAuth required
708
+ // http basic authentication required
709
+ setBasicAuthToObject(localVarRequestOptions, configuration);
710
+ if (session !== undefined) {
711
+ localVarQueryParameter['session'] = session;
712
+ }
713
+ localVarHeaderParameter['Accept'] = 'application/json';
714
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
715
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
716
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
717
+ return {
718
+ url: toPathString(localVarUrlObj),
719
+ options: localVarRequestOptions,
720
+ };
721
+ },
722
+ /**
723
+ *
724
+ * @summary Cancel a running sub-agent
725
+ * @param {string} id
726
+ * @param {*} [options] Override http request option.
727
+ * @throws {RequiredError}
728
+ */
729
+ apiAdminV1SubagentsIdDelete: async (id, options = {}) => {
730
+ // verify required parameter 'id' is not null or undefined
731
+ assertParamExists('apiAdminV1SubagentsIdDelete', 'id', id);
732
+ const localVarPath = `/api/admin/v1/subagents/{id}`
733
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
734
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
735
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
736
+ let baseOptions;
737
+ if (configuration) {
738
+ baseOptions = configuration.baseOptions;
739
+ }
740
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
741
+ const localVarHeaderParameter = {};
742
+ const localVarQueryParameter = {};
743
+ // authentication BasicAuth required
744
+ // http basic authentication required
745
+ setBasicAuthToObject(localVarRequestOptions, configuration);
746
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
747
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
748
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
749
+ return {
750
+ url: toPathString(localVarUrlObj),
751
+ options: localVarRequestOptions,
752
+ };
753
+ },
754
+ /**
755
+ *
756
+ * @summary Get sub-agent run details (admin)
757
+ * @param {string} id
758
+ * @param {*} [options] Override http request option.
759
+ * @throws {RequiredError}
760
+ */
761
+ apiAdminV1SubagentsIdGet: async (id, options = {}) => {
762
+ // verify required parameter 'id' is not null or undefined
763
+ assertParamExists('apiAdminV1SubagentsIdGet', 'id', id);
764
+ const localVarPath = `/api/admin/v1/subagents/{id}`
765
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
766
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
767
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
768
+ let baseOptions;
769
+ if (configuration) {
770
+ baseOptions = configuration.baseOptions;
771
+ }
772
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
773
+ const localVarHeaderParameter = {};
774
+ const localVarQueryParameter = {};
775
+ // authentication BasicAuth required
776
+ // http basic authentication required
777
+ setBasicAuthToObject(localVarRequestOptions, configuration);
778
+ localVarHeaderParameter['Accept'] = 'application/json';
779
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
780
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
781
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
782
+ return {
783
+ url: toPathString(localVarUrlObj),
784
+ options: localVarRequestOptions,
785
+ };
786
+ },
787
+ /**
788
+ *
789
+ * @summary Get full message transcript of a sub-agent run (admin)
790
+ * @param {string} id
791
+ * @param {*} [options] Override http request option.
792
+ * @throws {RequiredError}
793
+ */
794
+ apiAdminV1SubagentsIdTranscriptGet: async (id, options = {}) => {
795
+ // verify required parameter 'id' is not null or undefined
796
+ assertParamExists('apiAdminV1SubagentsIdTranscriptGet', 'id', id);
797
+ const localVarPath = `/api/admin/v1/subagents/{id}/transcript`
798
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
799
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
800
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
801
+ let baseOptions;
802
+ if (configuration) {
803
+ baseOptions = configuration.baseOptions;
804
+ }
805
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
806
+ const localVarHeaderParameter = {};
807
+ const localVarQueryParameter = {};
808
+ // authentication BasicAuth required
809
+ // http basic authentication required
810
+ setBasicAuthToObject(localVarRequestOptions, configuration);
811
+ localVarHeaderParameter['Accept'] = 'application/json';
812
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
813
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
814
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
815
+ return {
816
+ url: toPathString(localVarUrlObj),
817
+ options: localVarRequestOptions,
818
+ };
819
+ },
820
+ /**
821
+ *
822
+ * @summary List all recurring tasks
823
+ * @param {number} [limit] Maximum number of results to return
824
+ * @param {number} [offset] Number of results to skip
825
+ * @param {*} [options] Override http request option.
826
+ * @throws {RequiredError}
827
+ */
828
+ apiAdminV1TasksGet: async (limit, offset, options = {}) => {
829
+ const localVarPath = `/api/admin/v1/tasks`;
830
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
831
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
832
+ let baseOptions;
833
+ if (configuration) {
834
+ baseOptions = configuration.baseOptions;
835
+ }
836
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
837
+ const localVarHeaderParameter = {};
838
+ const localVarQueryParameter = {};
839
+ // authentication BasicAuth required
840
+ // http basic authentication required
841
+ setBasicAuthToObject(localVarRequestOptions, configuration);
842
+ if (limit !== undefined) {
843
+ localVarQueryParameter['limit'] = limit;
844
+ }
845
+ if (offset !== undefined) {
846
+ localVarQueryParameter['offset'] = offset;
847
+ }
848
+ localVarHeaderParameter['Accept'] = 'application/json';
849
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
850
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
851
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
852
+ return {
853
+ url: toPathString(localVarUrlObj),
854
+ options: localVarRequestOptions,
855
+ };
856
+ },
857
+ /**
858
+ *
859
+ * @summary Get task details
860
+ * @param {string} id
861
+ * @param {*} [options] Override http request option.
862
+ * @throws {RequiredError}
863
+ */
864
+ apiAdminV1TasksIdGet: async (id, options = {}) => {
865
+ // verify required parameter 'id' is not null or undefined
866
+ assertParamExists('apiAdminV1TasksIdGet', 'id', id);
867
+ const localVarPath = `/api/admin/v1/tasks/{id}`
868
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
869
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
870
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
871
+ let baseOptions;
872
+ if (configuration) {
873
+ baseOptions = configuration.baseOptions;
874
+ }
875
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
876
+ const localVarHeaderParameter = {};
877
+ const localVarQueryParameter = {};
878
+ // authentication BasicAuth required
879
+ // http basic authentication required
880
+ setBasicAuthToObject(localVarRequestOptions, configuration);
881
+ localVarHeaderParameter['Accept'] = 'application/json';
882
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
883
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
884
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
885
+ return {
886
+ url: toPathString(localVarUrlObj),
887
+ options: localVarRequestOptions,
888
+ };
889
+ },
890
+ /**
891
+ *
892
+ * @summary Delete file or directory in uploads/ or generated/
893
+ * @param {DeleteFilesRequest} deleteFilesRequest
894
+ * @param {*} [options] Override http request option.
895
+ * @throws {RequiredError}
896
+ */
897
+ apiV1FilesDelete: async (deleteFilesRequest, options = {}) => {
898
+ // verify required parameter 'deleteFilesRequest' is not null or undefined
899
+ assertParamExists('apiV1FilesDelete', 'deleteFilesRequest', deleteFilesRequest);
900
+ const localVarPath = `/api/v1/files`;
901
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
902
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
903
+ let baseOptions;
904
+ if (configuration) {
905
+ baseOptions = configuration.baseOptions;
906
+ }
907
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
908
+ const localVarHeaderParameter = {};
909
+ const localVarQueryParameter = {};
910
+ // authentication ServerKey required
911
+ await setApiKeyToObject(localVarHeaderParameter, "X-Server-Key", configuration);
912
+ localVarHeaderParameter['Content-Type'] = 'application/json';
913
+ localVarHeaderParameter['Accept'] = 'application/json';
914
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
915
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
916
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
917
+ localVarRequestOptions.data = serializeDataIfNeeded(deleteFilesRequest, localVarRequestOptions, configuration);
918
+ return {
919
+ url: toPathString(localVarUrlObj),
920
+ options: localVarRequestOptions,
921
+ };
922
+ },
923
+ /**
924
+ *
925
+ * @summary Serve file download, text preview, or directory listing
926
+ * @param {string} filepath Relative path in uploads/ or generated/
927
+ * @param {boolean} [view] If true and filepath is a file, return text/plain preview instead of download
928
+ * @param {boolean} [zip] If true and filepath is a directory, download as ZIP archive instead of listing
929
+ * @param {*} [options] Override http request option.
930
+ * @throws {RequiredError}
931
+ */
932
+ apiV1FilesFilepathGet: async (filepath, view, zip, options = {}) => {
933
+ // verify required parameter 'filepath' is not null or undefined
934
+ assertParamExists('apiV1FilesFilepathGet', 'filepath', filepath);
935
+ const localVarPath = `/api/v1/files/{filepath}`
936
+ .replace(`{${"filepath"}}`, encodeURIComponent(String(filepath)));
937
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
938
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
939
+ let baseOptions;
940
+ if (configuration) {
941
+ baseOptions = configuration.baseOptions;
942
+ }
943
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
944
+ const localVarHeaderParameter = {};
945
+ const localVarQueryParameter = {};
946
+ // authentication ServerKey required
947
+ await setApiKeyToObject(localVarHeaderParameter, "X-Server-Key", configuration);
948
+ if (view !== undefined) {
949
+ localVarQueryParameter['view'] = view;
950
+ }
951
+ if (zip !== undefined) {
952
+ localVarQueryParameter['zip'] = zip;
953
+ }
954
+ localVarHeaderParameter['Accept'] = 'application/json,text/plain,application/octet-stream';
955
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
956
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
957
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
958
+ return {
959
+ url: toPathString(localVarUrlObj),
960
+ options: localVarRequestOptions,
961
+ };
962
+ },
963
+ /**
964
+ *
965
+ * @summary List files and directories in uploads/ or generated/
966
+ * @param {string} [path] Directory path relative to storage_dir (uploads/ or generated/)
967
+ * @param {*} [options] Override http request option.
968
+ * @throws {RequiredError}
969
+ */
970
+ apiV1FilesGet: async (path, options = {}) => {
971
+ const localVarPath = `/api/v1/files`;
972
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
973
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
974
+ let baseOptions;
975
+ if (configuration) {
976
+ baseOptions = configuration.baseOptions;
977
+ }
978
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
979
+ const localVarHeaderParameter = {};
980
+ const localVarQueryParameter = {};
981
+ // authentication ServerKey required
982
+ await setApiKeyToObject(localVarHeaderParameter, "X-Server-Key", configuration);
983
+ if (path !== undefined) {
984
+ localVarQueryParameter['path'] = path;
985
+ }
986
+ localVarHeaderParameter['Accept'] = 'application/json';
987
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
988
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
989
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
990
+ return {
991
+ url: toPathString(localVarUrlObj),
992
+ options: localVarRequestOptions,
993
+ };
994
+ },
995
+ /**
996
+ *
997
+ * @summary Upload a file to the local storage
998
+ * @param {File} [file]
999
+ * @param {*} [options] Override http request option.
1000
+ * @throws {RequiredError}
1001
+ */
1002
+ apiV1FilesUploadPost: async (file, options = {}) => {
1003
+ const localVarPath = `/api/v1/files/upload`;
1004
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1005
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1006
+ let baseOptions;
1007
+ if (configuration) {
1008
+ baseOptions = configuration.baseOptions;
1009
+ }
1010
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1011
+ const localVarHeaderParameter = {};
1012
+ const localVarQueryParameter = {};
1013
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
1014
+ // authentication ServerKey required
1015
+ await setApiKeyToObject(localVarHeaderParameter, "X-Server-Key", configuration);
1016
+ if (file !== undefined) {
1017
+ localVarFormParams.append('file', file);
1018
+ }
1019
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
1020
+ localVarHeaderParameter['Accept'] = 'application/json';
1021
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1022
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1023
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1024
+ localVarRequestOptions.data = localVarFormParams;
1025
+ return {
1026
+ url: toPathString(localVarUrlObj),
1027
+ options: localVarRequestOptions,
1028
+ };
1029
+ },
1030
+ /**
1031
+ *
1032
+ * @summary Manage sessions or check global status
1033
+ * @param {ApiV1InteractionPostRequest} apiV1InteractionPostRequest
1034
+ * @param {*} [options] Override http request option.
1035
+ * @throws {RequiredError}
1036
+ */
1037
+ apiV1InteractionPost: async (apiV1InteractionPostRequest, options = {}) => {
1038
+ // verify required parameter 'apiV1InteractionPostRequest' is not null or undefined
1039
+ assertParamExists('apiV1InteractionPost', 'apiV1InteractionPostRequest', apiV1InteractionPostRequest);
1040
+ const localVarPath = `/api/v1/interaction`;
1041
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1042
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1043
+ let baseOptions;
1044
+ if (configuration) {
1045
+ baseOptions = configuration.baseOptions;
1046
+ }
1047
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1048
+ const localVarHeaderParameter = {};
1049
+ const localVarQueryParameter = {};
1050
+ // authentication ServerKey required
1051
+ await setApiKeyToObject(localVarHeaderParameter, "X-Server-Key", configuration);
1052
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1053
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1054
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1055
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1056
+ localVarRequestOptions.data = serializeDataIfNeeded(apiV1InteractionPostRequest, localVarRequestOptions, configuration);
1057
+ return {
1058
+ url: toPathString(localVarUrlObj),
1059
+ options: localVarRequestOptions,
1060
+ };
1061
+ },
1062
+ /**
1063
+ *
1064
+ * @summary Send a prompt to the agent
1065
+ * @param {ApiV1PromptPostRequest} apiV1PromptPostRequest
1066
+ * @param {*} [options] Override http request option.
1067
+ * @throws {RequiredError}
1068
+ */
1069
+ apiV1PromptPost: async (apiV1PromptPostRequest, options = {}) => {
1070
+ // verify required parameter 'apiV1PromptPostRequest' is not null or undefined
1071
+ assertParamExists('apiV1PromptPost', 'apiV1PromptPostRequest', apiV1PromptPostRequest);
1072
+ const localVarPath = `/api/v1/prompt`;
1073
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1074
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1075
+ let baseOptions;
1076
+ if (configuration) {
1077
+ baseOptions = configuration.baseOptions;
1078
+ }
1079
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1080
+ const localVarHeaderParameter = {};
1081
+ const localVarQueryParameter = {};
1082
+ // authentication ServerKey required
1083
+ await setApiKeyToObject(localVarHeaderParameter, "X-Server-Key", configuration);
1084
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1085
+ localVarHeaderParameter['Accept'] = 'application/json';
1086
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1087
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1088
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1089
+ localVarRequestOptions.data = serializeDataIfNeeded(apiV1PromptPostRequest, localVarRequestOptions, configuration);
1090
+ return {
1091
+ url: toPathString(localVarUrlObj),
1092
+ options: localVarRequestOptions,
1093
+ };
1094
+ },
1095
+ /**
1096
+ *
1097
+ * @summary Stream a prompt response via SSE
1098
+ * @param {string} prompt
1099
+ * @param {string} [model]
1100
+ * @param {*} [options] Override http request option.
1101
+ * @throws {RequiredError}
1102
+ */
1103
+ apiV1PromptStreamGet: async (prompt, model, options = {}) => {
1104
+ // verify required parameter 'prompt' is not null or undefined
1105
+ assertParamExists('apiV1PromptStreamGet', 'prompt', prompt);
1106
+ const localVarPath = `/api/v1/prompt/stream`;
1107
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1108
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1109
+ let baseOptions;
1110
+ if (configuration) {
1111
+ baseOptions = configuration.baseOptions;
1112
+ }
1113
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1114
+ const localVarHeaderParameter = {};
1115
+ const localVarQueryParameter = {};
1116
+ // authentication ServerKey required
1117
+ await setApiKeyToObject(localVarHeaderParameter, "X-Server-Key", configuration);
1118
+ if (prompt !== undefined) {
1119
+ localVarQueryParameter['prompt'] = prompt;
1120
+ }
1121
+ if (model !== undefined) {
1122
+ localVarQueryParameter['model'] = model;
1123
+ }
1124
+ localVarHeaderParameter['Accept'] = 'text/event-stream';
1125
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1126
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1127
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1128
+ return {
1129
+ url: toPathString(localVarUrlObj),
1130
+ options: localVarRequestOptions,
1131
+ };
1132
+ },
1133
+ /**
1134
+ *
1135
+ * @summary Initial configuration
1136
+ * @param {SetupRequest} setupRequest
1137
+ * @param {*} [options] Override http request option.
1138
+ * @throws {RequiredError}
1139
+ */
1140
+ apiV1SetupConfigurePost: async (setupRequest, options = {}) => {
1141
+ // verify required parameter 'setupRequest' is not null or undefined
1142
+ assertParamExists('apiV1SetupConfigurePost', 'setupRequest', setupRequest);
1143
+ const localVarPath = `/api/v1/setup/configure`;
1144
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1145
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1146
+ let baseOptions;
1147
+ if (configuration) {
1148
+ baseOptions = configuration.baseOptions;
1149
+ }
1150
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1151
+ const localVarHeaderParameter = {};
1152
+ const localVarQueryParameter = {};
1153
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1154
+ localVarHeaderParameter['Accept'] = 'application/json';
1155
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1156
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1157
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1158
+ localVarRequestOptions.data = serializeDataIfNeeded(setupRequest, localVarRequestOptions, configuration);
1159
+ return {
1160
+ url: toPathString(localVarUrlObj),
1161
+ options: localVarRequestOptions,
1162
+ };
1163
+ },
1164
+ /**
1165
+ *
1166
+ * @summary Get setup mode status
1167
+ * @param {*} [options] Override http request option.
1168
+ * @throws {RequiredError}
1169
+ */
1170
+ apiV1SetupStatusGet: async (options = {}) => {
1171
+ const localVarPath = `/api/v1/setup/status`;
1172
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1173
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1174
+ let baseOptions;
1175
+ if (configuration) {
1176
+ baseOptions = configuration.baseOptions;
1177
+ }
1178
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1179
+ const localVarHeaderParameter = {};
1180
+ const localVarQueryParameter = {};
1181
+ localVarHeaderParameter['Accept'] = 'application/json';
1182
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1183
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1184
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1185
+ return {
1186
+ url: toPathString(localVarUrlObj),
1187
+ options: localVarRequestOptions,
1188
+ };
1189
+ },
1190
+ /**
1191
+ *
1192
+ * @summary Get sub-agent run status and result
1193
+ * @param {string} id
1194
+ * @param {*} [options] Override http request option.
1195
+ * @throws {RequiredError}
1196
+ */
1197
+ apiV1SubagentsIdGet: async (id, options = {}) => {
1198
+ // verify required parameter 'id' is not null or undefined
1199
+ assertParamExists('apiV1SubagentsIdGet', 'id', id);
1200
+ const localVarPath = `/api/v1/subagents/{id}`
1201
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1202
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1203
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1204
+ let baseOptions;
1205
+ if (configuration) {
1206
+ baseOptions = configuration.baseOptions;
1207
+ }
1208
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1209
+ const localVarHeaderParameter = {};
1210
+ const localVarQueryParameter = {};
1211
+ // authentication ServerKey required
1212
+ await setApiKeyToObject(localVarHeaderParameter, "X-Server-Key", configuration);
1213
+ localVarHeaderParameter['Accept'] = 'application/json';
1214
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1215
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1216
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1217
+ return {
1218
+ url: toPathString(localVarUrlObj),
1219
+ options: localVarRequestOptions,
1220
+ };
1221
+ },
1222
+ /**
1223
+ *
1224
+ * @summary Get full message transcript of a sub-agent run
1225
+ * @param {string} id
1226
+ * @param {*} [options] Override http request option.
1227
+ * @throws {RequiredError}
1228
+ */
1229
+ apiV1SubagentsIdTranscriptGet: async (id, options = {}) => {
1230
+ // verify required parameter 'id' is not null or undefined
1231
+ assertParamExists('apiV1SubagentsIdTranscriptGet', 'id', id);
1232
+ const localVarPath = `/api/v1/subagents/{id}/transcript`
1233
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1234
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1235
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1236
+ let baseOptions;
1237
+ if (configuration) {
1238
+ baseOptions = configuration.baseOptions;
1239
+ }
1240
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1241
+ const localVarHeaderParameter = {};
1242
+ const localVarQueryParameter = {};
1243
+ // authentication ServerKey required
1244
+ await setApiKeyToObject(localVarHeaderParameter, "X-Server-Key", configuration);
1245
+ localVarHeaderParameter['Accept'] = 'application/json';
1246
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1247
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1248
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1249
+ return {
1250
+ url: toPathString(localVarUrlObj),
1251
+ options: localVarRequestOptions,
1252
+ };
1253
+ },
1254
+ /**
1255
+ * Manually spawn a specialized sub-agent with a given role and goal. The sub-agent runs autonomously and its result can be polled via GET /api/v1/subagents/{id}. The orchestrator LLM can also spawn sub-agents automatically via the Researcher/Coder/Reviewer tools.
1256
+ * @summary Spawn a new sub-agent run
1257
+ * @param {SpawnSubAgentRequest} spawnSubAgentRequest
1258
+ * @param {*} [options] Override http request option.
1259
+ * @throws {RequiredError}
1260
+ */
1261
+ apiV1SubagentsPost: async (spawnSubAgentRequest, options = {}) => {
1262
+ // verify required parameter 'spawnSubAgentRequest' is not null or undefined
1263
+ assertParamExists('apiV1SubagentsPost', 'spawnSubAgentRequest', spawnSubAgentRequest);
1264
+ const localVarPath = `/api/v1/subagents`;
1265
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1266
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1267
+ let baseOptions;
1268
+ if (configuration) {
1269
+ baseOptions = configuration.baseOptions;
1270
+ }
1271
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1272
+ const localVarHeaderParameter = {};
1273
+ const localVarQueryParameter = {};
1274
+ // authentication ServerKey required
1275
+ await setApiKeyToObject(localVarHeaderParameter, "X-Server-Key", configuration);
1276
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1277
+ localVarHeaderParameter['Accept'] = 'application/json';
1278
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1279
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1280
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1281
+ localVarRequestOptions.data = serializeDataIfNeeded(spawnSubAgentRequest, localVarRequestOptions, configuration);
1282
+ return {
1283
+ url: toPathString(localVarUrlObj),
1284
+ options: localVarRequestOptions,
1285
+ };
1286
+ },
1287
+ /**
1288
+ *
1289
+ * @summary Prometheus metrics endpoint
1290
+ * @param {*} [options] Override http request option.
1291
+ * @throws {RequiredError}
1292
+ */
1293
+ metricsGet: async (options = {}) => {
1294
+ const localVarPath = `/metrics`;
1295
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1296
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1297
+ let baseOptions;
1298
+ if (configuration) {
1299
+ baseOptions = configuration.baseOptions;
1300
+ }
1301
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1302
+ const localVarHeaderParameter = {};
1303
+ const localVarQueryParameter = {};
1304
+ localVarHeaderParameter['Accept'] = 'text/plain';
1305
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1306
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1307
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1308
+ return {
1309
+ url: toPathString(localVarUrlObj),
1310
+ options: localVarRequestOptions,
1311
+ };
1312
+ },
1313
+ /**
1314
+ * WebSocket endpoint for real-time interaction and background task notifications. When a background task completes, a message is sent in the following format: ```json { \"type\": \"task_complete\", \"task_id\": \"uuid\", \"task_name\": \"task name\", \"response\": \"result string\" } ```
1315
+ * @summary WebSocket for interactive streaming
1316
+ * @param {string} [channel]
1317
+ * @param {string} [device]
1318
+ * @param {*} [options] Override http request option.
1319
+ * @throws {RequiredError}
1320
+ */
1321
+ wsGet: async (channel, device, options = {}) => {
1322
+ const localVarPath = `/ws`;
1323
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1324
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1325
+ let baseOptions;
1326
+ if (configuration) {
1327
+ baseOptions = configuration.baseOptions;
1328
+ }
1329
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1330
+ const localVarHeaderParameter = {};
1331
+ const localVarQueryParameter = {};
1332
+ // authentication ServerKey required
1333
+ await setApiKeyToObject(localVarHeaderParameter, "X-Server-Key", configuration);
1334
+ if (channel !== undefined) {
1335
+ localVarQueryParameter['channel'] = channel;
1336
+ }
1337
+ if (device !== undefined) {
1338
+ localVarQueryParameter['device'] = device;
1339
+ }
1340
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1341
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1342
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1343
+ return {
1344
+ url: toPathString(localVarUrlObj),
1345
+ options: localVarRequestOptions,
1346
+ };
1347
+ },
1348
+ };
1349
+ };
1350
+ /**
1351
+ * DefaultApi - functional programming interface
1352
+ */
1353
+ export const DefaultApiFp = function (configuration) {
1354
+ const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration);
1355
+ return {
1356
+ /**
1357
+ *
1358
+ * @summary Get all factual memories
1359
+ * @param {number} [limit] Maximum number of results to return
1360
+ * @param {number} [offset] Number of results to skip
1361
+ * @param {*} [options] Override http request option.
1362
+ * @throws {RequiredError}
1363
+ */
1364
+ async apiAdminV1BrainFactsGet(limit, offset, options) {
1365
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1BrainFactsGet(limit, offset, options);
1366
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1367
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1BrainFactsGet']?.[localVarOperationServerIndex]?.url;
1368
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1369
+ },
1370
+ /**
1371
+ *
1372
+ * @summary Get all summary memories
1373
+ * @param {number} [limit] Maximum number of results to return
1374
+ * @param {number} [offset] Number of results to skip
1375
+ * @param {*} [options] Override http request option.
1376
+ * @throws {RequiredError}
1377
+ */
1378
+ async apiAdminV1BrainSummariesGet(limit, offset, options) {
1379
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1BrainSummariesGet(limit, offset, options);
1380
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1381
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1BrainSummariesGet']?.[localVarOperationServerIndex]?.url;
1382
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1383
+ },
1384
+ /**
1385
+ *
1386
+ * @summary Get Mole-Syn reasoning topology
1387
+ * @param {string} [sessionId] Filter topology by session ID
1388
+ * @param {*} [options] Override http request option.
1389
+ * @throws {RequiredError}
1390
+ */
1391
+ async apiAdminV1BrainTopologyGet(sessionId, options) {
1392
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1BrainTopologyGet(sessionId, options);
1393
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1394
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1BrainTopologyGet']?.[localVarOperationServerIndex]?.url;
1395
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1396
+ },
1397
+ /**
1398
+ *
1399
+ * @summary Perform actions on communication channels
1400
+ * @param {ApiAdminV1ChannelsPostRequest} apiAdminV1ChannelsPostRequest
1401
+ * @param {*} [options] Override http request option.
1402
+ * @throws {RequiredError}
1403
+ */
1404
+ async apiAdminV1ChannelsPost(apiAdminV1ChannelsPostRequest, options) {
1405
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1ChannelsPost(apiAdminV1ChannelsPostRequest, options);
1406
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1407
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1ChannelsPost']?.[localVarOperationServerIndex]?.url;
1408
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1409
+ },
1410
+ /**
1411
+ *
1412
+ * @summary Get current configuration
1413
+ * @param {*} [options] Override http request option.
1414
+ * @throws {RequiredError}
1415
+ */
1416
+ async apiAdminV1ConfigGet(options) {
1417
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1ConfigGet(options);
1418
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1419
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1ConfigGet']?.[localVarOperationServerIndex]?.url;
1420
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1421
+ },
1422
+ /**
1423
+ *
1424
+ * @summary Update configuration
1425
+ * @param {Config} config
1426
+ * @param {*} [options] Override http request option.
1427
+ * @throws {RequiredError}
1428
+ */
1429
+ async apiAdminV1ConfigPost(config, options) {
1430
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1ConfigPost(config, options);
1431
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1432
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1ConfigPost']?.[localVarOperationServerIndex]?.url;
1433
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1434
+ },
1435
+ /**
1436
+ *
1437
+ * @summary Reset configuration (removes config.yaml)
1438
+ * @param {*} [options] Override http request option.
1439
+ * @throws {RequiredError}
1440
+ */
1441
+ async apiAdminV1ConfigResetPost(options) {
1442
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1ConfigResetPost(options);
1443
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1444
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1ConfigResetPost']?.[localVarOperationServerIndex]?.url;
1445
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1446
+ },
1447
+ /**
1448
+ *
1449
+ * @summary Check health of the admin API
1450
+ * @param {*} [options] Override http request option.
1451
+ * @throws {RequiredError}
1452
+ */
1453
+ async apiAdminV1HealthGet(options) {
1454
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1HealthGet(options);
1455
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1456
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1HealthGet']?.[localVarOperationServerIndex]?.url;
1457
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1458
+ },
1459
+ /**
1460
+ *
1461
+ * @summary Get the human information (Markdown)
1462
+ * @param {*} [options] Override http request option.
1463
+ * @throws {RequiredError}
1464
+ */
1465
+ async apiAdminV1HumanGet(options) {
1466
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1HumanGet(options);
1467
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1468
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1HumanGet']?.[localVarOperationServerIndex]?.url;
1469
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1470
+ },
1471
+ /**
1472
+ *
1473
+ * @summary Save human information (Markdown)
1474
+ * @param {Human} human
1475
+ * @param {*} [options] Override http request option.
1476
+ * @throws {RequiredError}
1477
+ */
1478
+ async apiAdminV1HumanPost(human, options) {
1479
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1HumanPost(human, options);
1480
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1481
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1HumanPost']?.[localVarOperationServerIndex]?.url;
1482
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1483
+ },
1484
+ /**
1485
+ *
1486
+ * @summary List active session IDs
1487
+ * @param {number} [limit] Maximum number of results to return
1488
+ * @param {number} [offset] Number of results to skip
1489
+ * @param {*} [options] Override http request option.
1490
+ * @throws {RequiredError}
1491
+ */
1492
+ async apiAdminV1SessionsGet(limit, offset, options) {
1493
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1SessionsGet(limit, offset, options);
1494
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1495
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1SessionsGet']?.[localVarOperationServerIndex]?.url;
1496
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1497
+ },
1498
+ /**
1499
+ *
1500
+ * @summary Get session details
1501
+ * @param {string} id
1502
+ * @param {*} [options] Override http request option.
1503
+ * @throws {RequiredError}
1504
+ */
1505
+ async apiAdminV1SessionsIdGet(id, options) {
1506
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1SessionsIdGet(id, options);
1507
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1508
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1SessionsIdGet']?.[localVarOperationServerIndex]?.url;
1509
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1510
+ },
1511
+ /**
1512
+ *
1513
+ * @summary Get session message history
1514
+ * @param {string} id
1515
+ * @param {number} [limit] Maximum number of results to return
1516
+ * @param {number} [offset] Number of results to skip
1517
+ * @param {*} [options] Override http request option.
1518
+ * @throws {RequiredError}
1519
+ */
1520
+ async apiAdminV1SessionsIdHistoryGet(id, limit, offset, options) {
1521
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1SessionsIdHistoryGet(id, limit, offset, options);
1522
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1523
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1SessionsIdHistoryGet']?.[localVarOperationServerIndex]?.url;
1524
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1525
+ },
1526
+ /**
1527
+ *
1528
+ * @summary Get loaded skills for a session
1529
+ * @param {string} id
1530
+ * @param {*} [options] Override http request option.
1531
+ * @throws {RequiredError}
1532
+ */
1533
+ async apiAdminV1SessionsIdSkillsGet(id, options) {
1534
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1SessionsIdSkillsGet(id, options);
1535
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1536
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1SessionsIdSkillsGet']?.[localVarOperationServerIndex]?.url;
1537
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1538
+ },
1539
+ /**
1540
+ *
1541
+ * @summary Get session token and cost statistics
1542
+ * @param {string} id
1543
+ * @param {*} [options] Override http request option.
1544
+ * @throws {RequiredError}
1545
+ */
1546
+ async apiAdminV1SessionsIdStatsGet(id, options) {
1547
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1SessionsIdStatsGet(id, options);
1548
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1549
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1SessionsIdStatsGet']?.[localVarOperationServerIndex]?.url;
1550
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1551
+ },
1552
+ /**
1553
+ *
1554
+ * @summary List all available agent commands (tools)
1555
+ * @param {*} [options] Override http request option.
1556
+ * @throws {RequiredError}
1557
+ */
1558
+ async apiAdminV1SkillsCommandsGet(options) {
1559
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1SkillsCommandsGet(options);
1560
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1561
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1SkillsCommandsGet']?.[localVarOperationServerIndex]?.url;
1562
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1563
+ },
1564
+ /**
1565
+ *
1566
+ * @summary List all installed skills
1567
+ * @param {number} [limit] Maximum number of results to return
1568
+ * @param {number} [offset] Number of results to skip
1569
+ * @param {*} [options] Override http request option.
1570
+ * @throws {RequiredError}
1571
+ */
1572
+ async apiAdminV1SkillsGet(limit, offset, options) {
1573
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1SkillsGet(limit, offset, options);
1574
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1575
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1SkillsGet']?.[localVarOperationServerIndex]?.url;
1576
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1577
+ },
1578
+ /**
1579
+ *
1580
+ * @summary Remove a skill
1581
+ * @param {string} name
1582
+ * @param {*} [options] Override http request option.
1583
+ * @throws {RequiredError}
1584
+ */
1585
+ async apiAdminV1SkillsNameDelete(name, options) {
1586
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1SkillsNameDelete(name, options);
1587
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1588
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1SkillsNameDelete']?.[localVarOperationServerIndex]?.url;
1589
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1590
+ },
1591
+ /**
1592
+ *
1593
+ * @summary Get skill details
1594
+ * @param {string} name
1595
+ * @param {*} [options] Override http request option.
1596
+ * @throws {RequiredError}
1597
+ */
1598
+ async apiAdminV1SkillsNameGet(name, options) {
1599
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1SkillsNameGet(name, options);
1600
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1601
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1SkillsNameGet']?.[localVarOperationServerIndex]?.url;
1602
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1603
+ },
1604
+ /**
1605
+ *
1606
+ * @summary List all sub-agent runs
1607
+ * @param {string} [session] Filter by parent session ID
1608
+ * @param {*} [options] Override http request option.
1609
+ * @throws {RequiredError}
1610
+ */
1611
+ async apiAdminV1SubagentsGet(session, options) {
1612
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1SubagentsGet(session, options);
1613
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1614
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1SubagentsGet']?.[localVarOperationServerIndex]?.url;
1615
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1616
+ },
1617
+ /**
1618
+ *
1619
+ * @summary Cancel a running sub-agent
1620
+ * @param {string} id
1621
+ * @param {*} [options] Override http request option.
1622
+ * @throws {RequiredError}
1623
+ */
1624
+ async apiAdminV1SubagentsIdDelete(id, options) {
1625
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1SubagentsIdDelete(id, options);
1626
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1627
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1SubagentsIdDelete']?.[localVarOperationServerIndex]?.url;
1628
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1629
+ },
1630
+ /**
1631
+ *
1632
+ * @summary Get sub-agent run details (admin)
1633
+ * @param {string} id
1634
+ * @param {*} [options] Override http request option.
1635
+ * @throws {RequiredError}
1636
+ */
1637
+ async apiAdminV1SubagentsIdGet(id, options) {
1638
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1SubagentsIdGet(id, options);
1639
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1640
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1SubagentsIdGet']?.[localVarOperationServerIndex]?.url;
1641
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1642
+ },
1643
+ /**
1644
+ *
1645
+ * @summary Get full message transcript of a sub-agent run (admin)
1646
+ * @param {string} id
1647
+ * @param {*} [options] Override http request option.
1648
+ * @throws {RequiredError}
1649
+ */
1650
+ async apiAdminV1SubagentsIdTranscriptGet(id, options) {
1651
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1SubagentsIdTranscriptGet(id, options);
1652
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1653
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1SubagentsIdTranscriptGet']?.[localVarOperationServerIndex]?.url;
1654
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1655
+ },
1656
+ /**
1657
+ *
1658
+ * @summary List all recurring tasks
1659
+ * @param {number} [limit] Maximum number of results to return
1660
+ * @param {number} [offset] Number of results to skip
1661
+ * @param {*} [options] Override http request option.
1662
+ * @throws {RequiredError}
1663
+ */
1664
+ async apiAdminV1TasksGet(limit, offset, options) {
1665
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1TasksGet(limit, offset, options);
1666
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1667
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1TasksGet']?.[localVarOperationServerIndex]?.url;
1668
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1669
+ },
1670
+ /**
1671
+ *
1672
+ * @summary Get task details
1673
+ * @param {string} id
1674
+ * @param {*} [options] Override http request option.
1675
+ * @throws {RequiredError}
1676
+ */
1677
+ async apiAdminV1TasksIdGet(id, options) {
1678
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiAdminV1TasksIdGet(id, options);
1679
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1680
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiAdminV1TasksIdGet']?.[localVarOperationServerIndex]?.url;
1681
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1682
+ },
1683
+ /**
1684
+ *
1685
+ * @summary Delete file or directory in uploads/ or generated/
1686
+ * @param {DeleteFilesRequest} deleteFilesRequest
1687
+ * @param {*} [options] Override http request option.
1688
+ * @throws {RequiredError}
1689
+ */
1690
+ async apiV1FilesDelete(deleteFilesRequest, options) {
1691
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FilesDelete(deleteFilesRequest, options);
1692
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1693
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiV1FilesDelete']?.[localVarOperationServerIndex]?.url;
1694
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1695
+ },
1696
+ /**
1697
+ *
1698
+ * @summary Serve file download, text preview, or directory listing
1699
+ * @param {string} filepath Relative path in uploads/ or generated/
1700
+ * @param {boolean} [view] If true and filepath is a file, return text/plain preview instead of download
1701
+ * @param {boolean} [zip] If true and filepath is a directory, download as ZIP archive instead of listing
1702
+ * @param {*} [options] Override http request option.
1703
+ * @throws {RequiredError}
1704
+ */
1705
+ async apiV1FilesFilepathGet(filepath, view, zip, options) {
1706
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FilesFilepathGet(filepath, view, zip, options);
1707
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1708
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiV1FilesFilepathGet']?.[localVarOperationServerIndex]?.url;
1709
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1710
+ },
1711
+ /**
1712
+ *
1713
+ * @summary List files and directories in uploads/ or generated/
1714
+ * @param {string} [path] Directory path relative to storage_dir (uploads/ or generated/)
1715
+ * @param {*} [options] Override http request option.
1716
+ * @throws {RequiredError}
1717
+ */
1718
+ async apiV1FilesGet(path, options) {
1719
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FilesGet(path, options);
1720
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1721
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiV1FilesGet']?.[localVarOperationServerIndex]?.url;
1722
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1723
+ },
1724
+ /**
1725
+ *
1726
+ * @summary Upload a file to the local storage
1727
+ * @param {File} [file]
1728
+ * @param {*} [options] Override http request option.
1729
+ * @throws {RequiredError}
1730
+ */
1731
+ async apiV1FilesUploadPost(file, options) {
1732
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FilesUploadPost(file, options);
1733
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1734
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiV1FilesUploadPost']?.[localVarOperationServerIndex]?.url;
1735
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1736
+ },
1737
+ /**
1738
+ *
1739
+ * @summary Manage sessions or check global status
1740
+ * @param {ApiV1InteractionPostRequest} apiV1InteractionPostRequest
1741
+ * @param {*} [options] Override http request option.
1742
+ * @throws {RequiredError}
1743
+ */
1744
+ async apiV1InteractionPost(apiV1InteractionPostRequest, options) {
1745
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1InteractionPost(apiV1InteractionPostRequest, options);
1746
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1747
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiV1InteractionPost']?.[localVarOperationServerIndex]?.url;
1748
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1749
+ },
1750
+ /**
1751
+ *
1752
+ * @summary Send a prompt to the agent
1753
+ * @param {ApiV1PromptPostRequest} apiV1PromptPostRequest
1754
+ * @param {*} [options] Override http request option.
1755
+ * @throws {RequiredError}
1756
+ */
1757
+ async apiV1PromptPost(apiV1PromptPostRequest, options) {
1758
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PromptPost(apiV1PromptPostRequest, options);
1759
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1760
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiV1PromptPost']?.[localVarOperationServerIndex]?.url;
1761
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1762
+ },
1763
+ /**
1764
+ *
1765
+ * @summary Stream a prompt response via SSE
1766
+ * @param {string} prompt
1767
+ * @param {string} [model]
1768
+ * @param {*} [options] Override http request option.
1769
+ * @throws {RequiredError}
1770
+ */
1771
+ async apiV1PromptStreamGet(prompt, model, options) {
1772
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PromptStreamGet(prompt, model, options);
1773
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1774
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiV1PromptStreamGet']?.[localVarOperationServerIndex]?.url;
1775
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1776
+ },
1777
+ /**
1778
+ *
1779
+ * @summary Initial configuration
1780
+ * @param {SetupRequest} setupRequest
1781
+ * @param {*} [options] Override http request option.
1782
+ * @throws {RequiredError}
1783
+ */
1784
+ async apiV1SetupConfigurePost(setupRequest, options) {
1785
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SetupConfigurePost(setupRequest, options);
1786
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1787
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiV1SetupConfigurePost']?.[localVarOperationServerIndex]?.url;
1788
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1789
+ },
1790
+ /**
1791
+ *
1792
+ * @summary Get setup mode status
1793
+ * @param {*} [options] Override http request option.
1794
+ * @throws {RequiredError}
1795
+ */
1796
+ async apiV1SetupStatusGet(options) {
1797
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SetupStatusGet(options);
1798
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1799
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiV1SetupStatusGet']?.[localVarOperationServerIndex]?.url;
1800
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1801
+ },
1802
+ /**
1803
+ *
1804
+ * @summary Get sub-agent run status and result
1805
+ * @param {string} id
1806
+ * @param {*} [options] Override http request option.
1807
+ * @throws {RequiredError}
1808
+ */
1809
+ async apiV1SubagentsIdGet(id, options) {
1810
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SubagentsIdGet(id, options);
1811
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1812
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiV1SubagentsIdGet']?.[localVarOperationServerIndex]?.url;
1813
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1814
+ },
1815
+ /**
1816
+ *
1817
+ * @summary Get full message transcript of a sub-agent run
1818
+ * @param {string} id
1819
+ * @param {*} [options] Override http request option.
1820
+ * @throws {RequiredError}
1821
+ */
1822
+ async apiV1SubagentsIdTranscriptGet(id, options) {
1823
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SubagentsIdTranscriptGet(id, options);
1824
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1825
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiV1SubagentsIdTranscriptGet']?.[localVarOperationServerIndex]?.url;
1826
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1827
+ },
1828
+ /**
1829
+ * Manually spawn a specialized sub-agent with a given role and goal. The sub-agent runs autonomously and its result can be polled via GET /api/v1/subagents/{id}. The orchestrator LLM can also spawn sub-agents automatically via the Researcher/Coder/Reviewer tools.
1830
+ * @summary Spawn a new sub-agent run
1831
+ * @param {SpawnSubAgentRequest} spawnSubAgentRequest
1832
+ * @param {*} [options] Override http request option.
1833
+ * @throws {RequiredError}
1834
+ */
1835
+ async apiV1SubagentsPost(spawnSubAgentRequest, options) {
1836
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SubagentsPost(spawnSubAgentRequest, options);
1837
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1838
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiV1SubagentsPost']?.[localVarOperationServerIndex]?.url;
1839
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1840
+ },
1841
+ /**
1842
+ *
1843
+ * @summary Prometheus metrics endpoint
1844
+ * @param {*} [options] Override http request option.
1845
+ * @throws {RequiredError}
1846
+ */
1847
+ async metricsGet(options) {
1848
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metricsGet(options);
1849
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1850
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.metricsGet']?.[localVarOperationServerIndex]?.url;
1851
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1852
+ },
1853
+ /**
1854
+ * WebSocket endpoint for real-time interaction and background task notifications. When a background task completes, a message is sent in the following format: ```json { \"type\": \"task_complete\", \"task_id\": \"uuid\", \"task_name\": \"task name\", \"response\": \"result string\" } ```
1855
+ * @summary WebSocket for interactive streaming
1856
+ * @param {string} [channel]
1857
+ * @param {string} [device]
1858
+ * @param {*} [options] Override http request option.
1859
+ * @throws {RequiredError}
1860
+ */
1861
+ async wsGet(channel, device, options) {
1862
+ const localVarAxiosArgs = await localVarAxiosParamCreator.wsGet(channel, device, options);
1863
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1864
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.wsGet']?.[localVarOperationServerIndex]?.url;
1865
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1866
+ },
1867
+ };
1868
+ };
1869
+ /**
1870
+ * DefaultApi - factory interface
1871
+ */
1872
+ export const DefaultApiFactory = function (configuration, basePath, axios) {
1873
+ const localVarFp = DefaultApiFp(configuration);
1874
+ return {
1875
+ /**
1876
+ *
1877
+ * @summary Get all factual memories
1878
+ * @param {number} [limit] Maximum number of results to return
1879
+ * @param {number} [offset] Number of results to skip
1880
+ * @param {*} [options] Override http request option.
1881
+ * @throws {RequiredError}
1882
+ */
1883
+ apiAdminV1BrainFactsGet(limit, offset, options) {
1884
+ return localVarFp.apiAdminV1BrainFactsGet(limit, offset, options).then((request) => request(axios, basePath));
1885
+ },
1886
+ /**
1887
+ *
1888
+ * @summary Get all summary memories
1889
+ * @param {number} [limit] Maximum number of results to return
1890
+ * @param {number} [offset] Number of results to skip
1891
+ * @param {*} [options] Override http request option.
1892
+ * @throws {RequiredError}
1893
+ */
1894
+ apiAdminV1BrainSummariesGet(limit, offset, options) {
1895
+ return localVarFp.apiAdminV1BrainSummariesGet(limit, offset, options).then((request) => request(axios, basePath));
1896
+ },
1897
+ /**
1898
+ *
1899
+ * @summary Get Mole-Syn reasoning topology
1900
+ * @param {string} [sessionId] Filter topology by session ID
1901
+ * @param {*} [options] Override http request option.
1902
+ * @throws {RequiredError}
1903
+ */
1904
+ apiAdminV1BrainTopologyGet(sessionId, options) {
1905
+ return localVarFp.apiAdminV1BrainTopologyGet(sessionId, options).then((request) => request(axios, basePath));
1906
+ },
1907
+ /**
1908
+ *
1909
+ * @summary Perform actions on communication channels
1910
+ * @param {ApiAdminV1ChannelsPostRequest} apiAdminV1ChannelsPostRequest
1911
+ * @param {*} [options] Override http request option.
1912
+ * @throws {RequiredError}
1913
+ */
1914
+ apiAdminV1ChannelsPost(apiAdminV1ChannelsPostRequest, options) {
1915
+ return localVarFp.apiAdminV1ChannelsPost(apiAdminV1ChannelsPostRequest, options).then((request) => request(axios, basePath));
1916
+ },
1917
+ /**
1918
+ *
1919
+ * @summary Get current configuration
1920
+ * @param {*} [options] Override http request option.
1921
+ * @throws {RequiredError}
1922
+ */
1923
+ apiAdminV1ConfigGet(options) {
1924
+ return localVarFp.apiAdminV1ConfigGet(options).then((request) => request(axios, basePath));
1925
+ },
1926
+ /**
1927
+ *
1928
+ * @summary Update configuration
1929
+ * @param {Config} config
1930
+ * @param {*} [options] Override http request option.
1931
+ * @throws {RequiredError}
1932
+ */
1933
+ apiAdminV1ConfigPost(config, options) {
1934
+ return localVarFp.apiAdminV1ConfigPost(config, options).then((request) => request(axios, basePath));
1935
+ },
1936
+ /**
1937
+ *
1938
+ * @summary Reset configuration (removes config.yaml)
1939
+ * @param {*} [options] Override http request option.
1940
+ * @throws {RequiredError}
1941
+ */
1942
+ apiAdminV1ConfigResetPost(options) {
1943
+ return localVarFp.apiAdminV1ConfigResetPost(options).then((request) => request(axios, basePath));
1944
+ },
1945
+ /**
1946
+ *
1947
+ * @summary Check health of the admin API
1948
+ * @param {*} [options] Override http request option.
1949
+ * @throws {RequiredError}
1950
+ */
1951
+ apiAdminV1HealthGet(options) {
1952
+ return localVarFp.apiAdminV1HealthGet(options).then((request) => request(axios, basePath));
1953
+ },
1954
+ /**
1955
+ *
1956
+ * @summary Get the human information (Markdown)
1957
+ * @param {*} [options] Override http request option.
1958
+ * @throws {RequiredError}
1959
+ */
1960
+ apiAdminV1HumanGet(options) {
1961
+ return localVarFp.apiAdminV1HumanGet(options).then((request) => request(axios, basePath));
1962
+ },
1963
+ /**
1964
+ *
1965
+ * @summary Save human information (Markdown)
1966
+ * @param {Human} human
1967
+ * @param {*} [options] Override http request option.
1968
+ * @throws {RequiredError}
1969
+ */
1970
+ apiAdminV1HumanPost(human, options) {
1971
+ return localVarFp.apiAdminV1HumanPost(human, options).then((request) => request(axios, basePath));
1972
+ },
1973
+ /**
1974
+ *
1975
+ * @summary List active session IDs
1976
+ * @param {number} [limit] Maximum number of results to return
1977
+ * @param {number} [offset] Number of results to skip
1978
+ * @param {*} [options] Override http request option.
1979
+ * @throws {RequiredError}
1980
+ */
1981
+ apiAdminV1SessionsGet(limit, offset, options) {
1982
+ return localVarFp.apiAdminV1SessionsGet(limit, offset, options).then((request) => request(axios, basePath));
1983
+ },
1984
+ /**
1985
+ *
1986
+ * @summary Get session details
1987
+ * @param {string} id
1988
+ * @param {*} [options] Override http request option.
1989
+ * @throws {RequiredError}
1990
+ */
1991
+ apiAdminV1SessionsIdGet(id, options) {
1992
+ return localVarFp.apiAdminV1SessionsIdGet(id, options).then((request) => request(axios, basePath));
1993
+ },
1994
+ /**
1995
+ *
1996
+ * @summary Get session message history
1997
+ * @param {string} id
1998
+ * @param {number} [limit] Maximum number of results to return
1999
+ * @param {number} [offset] Number of results to skip
2000
+ * @param {*} [options] Override http request option.
2001
+ * @throws {RequiredError}
2002
+ */
2003
+ apiAdminV1SessionsIdHistoryGet(id, limit, offset, options) {
2004
+ return localVarFp.apiAdminV1SessionsIdHistoryGet(id, limit, offset, options).then((request) => request(axios, basePath));
2005
+ },
2006
+ /**
2007
+ *
2008
+ * @summary Get loaded skills for a session
2009
+ * @param {string} id
2010
+ * @param {*} [options] Override http request option.
2011
+ * @throws {RequiredError}
2012
+ */
2013
+ apiAdminV1SessionsIdSkillsGet(id, options) {
2014
+ return localVarFp.apiAdminV1SessionsIdSkillsGet(id, options).then((request) => request(axios, basePath));
2015
+ },
2016
+ /**
2017
+ *
2018
+ * @summary Get session token and cost statistics
2019
+ * @param {string} id
2020
+ * @param {*} [options] Override http request option.
2021
+ * @throws {RequiredError}
2022
+ */
2023
+ apiAdminV1SessionsIdStatsGet(id, options) {
2024
+ return localVarFp.apiAdminV1SessionsIdStatsGet(id, options).then((request) => request(axios, basePath));
2025
+ },
2026
+ /**
2027
+ *
2028
+ * @summary List all available agent commands (tools)
2029
+ * @param {*} [options] Override http request option.
2030
+ * @throws {RequiredError}
2031
+ */
2032
+ apiAdminV1SkillsCommandsGet(options) {
2033
+ return localVarFp.apiAdminV1SkillsCommandsGet(options).then((request) => request(axios, basePath));
2034
+ },
2035
+ /**
2036
+ *
2037
+ * @summary List all installed skills
2038
+ * @param {number} [limit] Maximum number of results to return
2039
+ * @param {number} [offset] Number of results to skip
2040
+ * @param {*} [options] Override http request option.
2041
+ * @throws {RequiredError}
2042
+ */
2043
+ apiAdminV1SkillsGet(limit, offset, options) {
2044
+ return localVarFp.apiAdminV1SkillsGet(limit, offset, options).then((request) => request(axios, basePath));
2045
+ },
2046
+ /**
2047
+ *
2048
+ * @summary Remove a skill
2049
+ * @param {string} name
2050
+ * @param {*} [options] Override http request option.
2051
+ * @throws {RequiredError}
2052
+ */
2053
+ apiAdminV1SkillsNameDelete(name, options) {
2054
+ return localVarFp.apiAdminV1SkillsNameDelete(name, options).then((request) => request(axios, basePath));
2055
+ },
2056
+ /**
2057
+ *
2058
+ * @summary Get skill details
2059
+ * @param {string} name
2060
+ * @param {*} [options] Override http request option.
2061
+ * @throws {RequiredError}
2062
+ */
2063
+ apiAdminV1SkillsNameGet(name, options) {
2064
+ return localVarFp.apiAdminV1SkillsNameGet(name, options).then((request) => request(axios, basePath));
2065
+ },
2066
+ /**
2067
+ *
2068
+ * @summary List all sub-agent runs
2069
+ * @param {string} [session] Filter by parent session ID
2070
+ * @param {*} [options] Override http request option.
2071
+ * @throws {RequiredError}
2072
+ */
2073
+ apiAdminV1SubagentsGet(session, options) {
2074
+ return localVarFp.apiAdminV1SubagentsGet(session, options).then((request) => request(axios, basePath));
2075
+ },
2076
+ /**
2077
+ *
2078
+ * @summary Cancel a running sub-agent
2079
+ * @param {string} id
2080
+ * @param {*} [options] Override http request option.
2081
+ * @throws {RequiredError}
2082
+ */
2083
+ apiAdminV1SubagentsIdDelete(id, options) {
2084
+ return localVarFp.apiAdminV1SubagentsIdDelete(id, options).then((request) => request(axios, basePath));
2085
+ },
2086
+ /**
2087
+ *
2088
+ * @summary Get sub-agent run details (admin)
2089
+ * @param {string} id
2090
+ * @param {*} [options] Override http request option.
2091
+ * @throws {RequiredError}
2092
+ */
2093
+ apiAdminV1SubagentsIdGet(id, options) {
2094
+ return localVarFp.apiAdminV1SubagentsIdGet(id, options).then((request) => request(axios, basePath));
2095
+ },
2096
+ /**
2097
+ *
2098
+ * @summary Get full message transcript of a sub-agent run (admin)
2099
+ * @param {string} id
2100
+ * @param {*} [options] Override http request option.
2101
+ * @throws {RequiredError}
2102
+ */
2103
+ apiAdminV1SubagentsIdTranscriptGet(id, options) {
2104
+ return localVarFp.apiAdminV1SubagentsIdTranscriptGet(id, options).then((request) => request(axios, basePath));
2105
+ },
2106
+ /**
2107
+ *
2108
+ * @summary List all recurring tasks
2109
+ * @param {number} [limit] Maximum number of results to return
2110
+ * @param {number} [offset] Number of results to skip
2111
+ * @param {*} [options] Override http request option.
2112
+ * @throws {RequiredError}
2113
+ */
2114
+ apiAdminV1TasksGet(limit, offset, options) {
2115
+ return localVarFp.apiAdminV1TasksGet(limit, offset, options).then((request) => request(axios, basePath));
2116
+ },
2117
+ /**
2118
+ *
2119
+ * @summary Get task details
2120
+ * @param {string} id
2121
+ * @param {*} [options] Override http request option.
2122
+ * @throws {RequiredError}
2123
+ */
2124
+ apiAdminV1TasksIdGet(id, options) {
2125
+ return localVarFp.apiAdminV1TasksIdGet(id, options).then((request) => request(axios, basePath));
2126
+ },
2127
+ /**
2128
+ *
2129
+ * @summary Delete file or directory in uploads/ or generated/
2130
+ * @param {DeleteFilesRequest} deleteFilesRequest
2131
+ * @param {*} [options] Override http request option.
2132
+ * @throws {RequiredError}
2133
+ */
2134
+ apiV1FilesDelete(deleteFilesRequest, options) {
2135
+ return localVarFp.apiV1FilesDelete(deleteFilesRequest, options).then((request) => request(axios, basePath));
2136
+ },
2137
+ /**
2138
+ *
2139
+ * @summary Serve file download, text preview, or directory listing
2140
+ * @param {string} filepath Relative path in uploads/ or generated/
2141
+ * @param {boolean} [view] If true and filepath is a file, return text/plain preview instead of download
2142
+ * @param {boolean} [zip] If true and filepath is a directory, download as ZIP archive instead of listing
2143
+ * @param {*} [options] Override http request option.
2144
+ * @throws {RequiredError}
2145
+ */
2146
+ apiV1FilesFilepathGet(filepath, view, zip, options) {
2147
+ return localVarFp.apiV1FilesFilepathGet(filepath, view, zip, options).then((request) => request(axios, basePath));
2148
+ },
2149
+ /**
2150
+ *
2151
+ * @summary List files and directories in uploads/ or generated/
2152
+ * @param {string} [path] Directory path relative to storage_dir (uploads/ or generated/)
2153
+ * @param {*} [options] Override http request option.
2154
+ * @throws {RequiredError}
2155
+ */
2156
+ apiV1FilesGet(path, options) {
2157
+ return localVarFp.apiV1FilesGet(path, options).then((request) => request(axios, basePath));
2158
+ },
2159
+ /**
2160
+ *
2161
+ * @summary Upload a file to the local storage
2162
+ * @param {File} [file]
2163
+ * @param {*} [options] Override http request option.
2164
+ * @throws {RequiredError}
2165
+ */
2166
+ apiV1FilesUploadPost(file, options) {
2167
+ return localVarFp.apiV1FilesUploadPost(file, options).then((request) => request(axios, basePath));
2168
+ },
2169
+ /**
2170
+ *
2171
+ * @summary Manage sessions or check global status
2172
+ * @param {ApiV1InteractionPostRequest} apiV1InteractionPostRequest
2173
+ * @param {*} [options] Override http request option.
2174
+ * @throws {RequiredError}
2175
+ */
2176
+ apiV1InteractionPost(apiV1InteractionPostRequest, options) {
2177
+ return localVarFp.apiV1InteractionPost(apiV1InteractionPostRequest, options).then((request) => request(axios, basePath));
2178
+ },
2179
+ /**
2180
+ *
2181
+ * @summary Send a prompt to the agent
2182
+ * @param {ApiV1PromptPostRequest} apiV1PromptPostRequest
2183
+ * @param {*} [options] Override http request option.
2184
+ * @throws {RequiredError}
2185
+ */
2186
+ apiV1PromptPost(apiV1PromptPostRequest, options) {
2187
+ return localVarFp.apiV1PromptPost(apiV1PromptPostRequest, options).then((request) => request(axios, basePath));
2188
+ },
2189
+ /**
2190
+ *
2191
+ * @summary Stream a prompt response via SSE
2192
+ * @param {string} prompt
2193
+ * @param {string} [model]
2194
+ * @param {*} [options] Override http request option.
2195
+ * @throws {RequiredError}
2196
+ */
2197
+ apiV1PromptStreamGet(prompt, model, options) {
2198
+ return localVarFp.apiV1PromptStreamGet(prompt, model, options).then((request) => request(axios, basePath));
2199
+ },
2200
+ /**
2201
+ *
2202
+ * @summary Initial configuration
2203
+ * @param {SetupRequest} setupRequest
2204
+ * @param {*} [options] Override http request option.
2205
+ * @throws {RequiredError}
2206
+ */
2207
+ apiV1SetupConfigurePost(setupRequest, options) {
2208
+ return localVarFp.apiV1SetupConfigurePost(setupRequest, options).then((request) => request(axios, basePath));
2209
+ },
2210
+ /**
2211
+ *
2212
+ * @summary Get setup mode status
2213
+ * @param {*} [options] Override http request option.
2214
+ * @throws {RequiredError}
2215
+ */
2216
+ apiV1SetupStatusGet(options) {
2217
+ return localVarFp.apiV1SetupStatusGet(options).then((request) => request(axios, basePath));
2218
+ },
2219
+ /**
2220
+ *
2221
+ * @summary Get sub-agent run status and result
2222
+ * @param {string} id
2223
+ * @param {*} [options] Override http request option.
2224
+ * @throws {RequiredError}
2225
+ */
2226
+ apiV1SubagentsIdGet(id, options) {
2227
+ return localVarFp.apiV1SubagentsIdGet(id, options).then((request) => request(axios, basePath));
2228
+ },
2229
+ /**
2230
+ *
2231
+ * @summary Get full message transcript of a sub-agent run
2232
+ * @param {string} id
2233
+ * @param {*} [options] Override http request option.
2234
+ * @throws {RequiredError}
2235
+ */
2236
+ apiV1SubagentsIdTranscriptGet(id, options) {
2237
+ return localVarFp.apiV1SubagentsIdTranscriptGet(id, options).then((request) => request(axios, basePath));
2238
+ },
2239
+ /**
2240
+ * Manually spawn a specialized sub-agent with a given role and goal. The sub-agent runs autonomously and its result can be polled via GET /api/v1/subagents/{id}. The orchestrator LLM can also spawn sub-agents automatically via the Researcher/Coder/Reviewer tools.
2241
+ * @summary Spawn a new sub-agent run
2242
+ * @param {SpawnSubAgentRequest} spawnSubAgentRequest
2243
+ * @param {*} [options] Override http request option.
2244
+ * @throws {RequiredError}
2245
+ */
2246
+ apiV1SubagentsPost(spawnSubAgentRequest, options) {
2247
+ return localVarFp.apiV1SubagentsPost(spawnSubAgentRequest, options).then((request) => request(axios, basePath));
2248
+ },
2249
+ /**
2250
+ *
2251
+ * @summary Prometheus metrics endpoint
2252
+ * @param {*} [options] Override http request option.
2253
+ * @throws {RequiredError}
2254
+ */
2255
+ metricsGet(options) {
2256
+ return localVarFp.metricsGet(options).then((request) => request(axios, basePath));
2257
+ },
2258
+ /**
2259
+ * WebSocket endpoint for real-time interaction and background task notifications. When a background task completes, a message is sent in the following format: ```json { \"type\": \"task_complete\", \"task_id\": \"uuid\", \"task_name\": \"task name\", \"response\": \"result string\" } ```
2260
+ * @summary WebSocket for interactive streaming
2261
+ * @param {string} [channel]
2262
+ * @param {string} [device]
2263
+ * @param {*} [options] Override http request option.
2264
+ * @throws {RequiredError}
2265
+ */
2266
+ wsGet(channel, device, options) {
2267
+ return localVarFp.wsGet(channel, device, options).then((request) => request(axios, basePath));
2268
+ },
2269
+ };
2270
+ };
2271
+ /**
2272
+ * DefaultApi - object-oriented interface
2273
+ */
2274
+ export class DefaultApi extends BaseAPI {
2275
+ /**
2276
+ *
2277
+ * @summary Get all factual memories
2278
+ * @param {number} [limit] Maximum number of results to return
2279
+ * @param {number} [offset] Number of results to skip
2280
+ * @param {*} [options] Override http request option.
2281
+ * @throws {RequiredError}
2282
+ */
2283
+ apiAdminV1BrainFactsGet(limit, offset, options) {
2284
+ return DefaultApiFp(this.configuration).apiAdminV1BrainFactsGet(limit, offset, options).then((request) => request(this.axios, this.basePath));
2285
+ }
2286
+ /**
2287
+ *
2288
+ * @summary Get all summary memories
2289
+ * @param {number} [limit] Maximum number of results to return
2290
+ * @param {number} [offset] Number of results to skip
2291
+ * @param {*} [options] Override http request option.
2292
+ * @throws {RequiredError}
2293
+ */
2294
+ apiAdminV1BrainSummariesGet(limit, offset, options) {
2295
+ return DefaultApiFp(this.configuration).apiAdminV1BrainSummariesGet(limit, offset, options).then((request) => request(this.axios, this.basePath));
2296
+ }
2297
+ /**
2298
+ *
2299
+ * @summary Get Mole-Syn reasoning topology
2300
+ * @param {string} [sessionId] Filter topology by session ID
2301
+ * @param {*} [options] Override http request option.
2302
+ * @throws {RequiredError}
2303
+ */
2304
+ apiAdminV1BrainTopologyGet(sessionId, options) {
2305
+ return DefaultApiFp(this.configuration).apiAdminV1BrainTopologyGet(sessionId, options).then((request) => request(this.axios, this.basePath));
2306
+ }
2307
+ /**
2308
+ *
2309
+ * @summary Perform actions on communication channels
2310
+ * @param {ApiAdminV1ChannelsPostRequest} apiAdminV1ChannelsPostRequest
2311
+ * @param {*} [options] Override http request option.
2312
+ * @throws {RequiredError}
2313
+ */
2314
+ apiAdminV1ChannelsPost(apiAdminV1ChannelsPostRequest, options) {
2315
+ return DefaultApiFp(this.configuration).apiAdminV1ChannelsPost(apiAdminV1ChannelsPostRequest, options).then((request) => request(this.axios, this.basePath));
2316
+ }
2317
+ /**
2318
+ *
2319
+ * @summary Get current configuration
2320
+ * @param {*} [options] Override http request option.
2321
+ * @throws {RequiredError}
2322
+ */
2323
+ apiAdminV1ConfigGet(options) {
2324
+ return DefaultApiFp(this.configuration).apiAdminV1ConfigGet(options).then((request) => request(this.axios, this.basePath));
2325
+ }
2326
+ /**
2327
+ *
2328
+ * @summary Update configuration
2329
+ * @param {Config} config
2330
+ * @param {*} [options] Override http request option.
2331
+ * @throws {RequiredError}
2332
+ */
2333
+ apiAdminV1ConfigPost(config, options) {
2334
+ return DefaultApiFp(this.configuration).apiAdminV1ConfigPost(config, options).then((request) => request(this.axios, this.basePath));
2335
+ }
2336
+ /**
2337
+ *
2338
+ * @summary Reset configuration (removes config.yaml)
2339
+ * @param {*} [options] Override http request option.
2340
+ * @throws {RequiredError}
2341
+ */
2342
+ apiAdminV1ConfigResetPost(options) {
2343
+ return DefaultApiFp(this.configuration).apiAdminV1ConfigResetPost(options).then((request) => request(this.axios, this.basePath));
2344
+ }
2345
+ /**
2346
+ *
2347
+ * @summary Check health of the admin API
2348
+ * @param {*} [options] Override http request option.
2349
+ * @throws {RequiredError}
2350
+ */
2351
+ apiAdminV1HealthGet(options) {
2352
+ return DefaultApiFp(this.configuration).apiAdminV1HealthGet(options).then((request) => request(this.axios, this.basePath));
2353
+ }
2354
+ /**
2355
+ *
2356
+ * @summary Get the human information (Markdown)
2357
+ * @param {*} [options] Override http request option.
2358
+ * @throws {RequiredError}
2359
+ */
2360
+ apiAdminV1HumanGet(options) {
2361
+ return DefaultApiFp(this.configuration).apiAdminV1HumanGet(options).then((request) => request(this.axios, this.basePath));
2362
+ }
2363
+ /**
2364
+ *
2365
+ * @summary Save human information (Markdown)
2366
+ * @param {Human} human
2367
+ * @param {*} [options] Override http request option.
2368
+ * @throws {RequiredError}
2369
+ */
2370
+ apiAdminV1HumanPost(human, options) {
2371
+ return DefaultApiFp(this.configuration).apiAdminV1HumanPost(human, options).then((request) => request(this.axios, this.basePath));
2372
+ }
2373
+ /**
2374
+ *
2375
+ * @summary List active session IDs
2376
+ * @param {number} [limit] Maximum number of results to return
2377
+ * @param {number} [offset] Number of results to skip
2378
+ * @param {*} [options] Override http request option.
2379
+ * @throws {RequiredError}
2380
+ */
2381
+ apiAdminV1SessionsGet(limit, offset, options) {
2382
+ return DefaultApiFp(this.configuration).apiAdminV1SessionsGet(limit, offset, options).then((request) => request(this.axios, this.basePath));
2383
+ }
2384
+ /**
2385
+ *
2386
+ * @summary Get session details
2387
+ * @param {string} id
2388
+ * @param {*} [options] Override http request option.
2389
+ * @throws {RequiredError}
2390
+ */
2391
+ apiAdminV1SessionsIdGet(id, options) {
2392
+ return DefaultApiFp(this.configuration).apiAdminV1SessionsIdGet(id, options).then((request) => request(this.axios, this.basePath));
2393
+ }
2394
+ /**
2395
+ *
2396
+ * @summary Get session message history
2397
+ * @param {string} id
2398
+ * @param {number} [limit] Maximum number of results to return
2399
+ * @param {number} [offset] Number of results to skip
2400
+ * @param {*} [options] Override http request option.
2401
+ * @throws {RequiredError}
2402
+ */
2403
+ apiAdminV1SessionsIdHistoryGet(id, limit, offset, options) {
2404
+ return DefaultApiFp(this.configuration).apiAdminV1SessionsIdHistoryGet(id, limit, offset, options).then((request) => request(this.axios, this.basePath));
2405
+ }
2406
+ /**
2407
+ *
2408
+ * @summary Get loaded skills for a session
2409
+ * @param {string} id
2410
+ * @param {*} [options] Override http request option.
2411
+ * @throws {RequiredError}
2412
+ */
2413
+ apiAdminV1SessionsIdSkillsGet(id, options) {
2414
+ return DefaultApiFp(this.configuration).apiAdminV1SessionsIdSkillsGet(id, options).then((request) => request(this.axios, this.basePath));
2415
+ }
2416
+ /**
2417
+ *
2418
+ * @summary Get session token and cost statistics
2419
+ * @param {string} id
2420
+ * @param {*} [options] Override http request option.
2421
+ * @throws {RequiredError}
2422
+ */
2423
+ apiAdminV1SessionsIdStatsGet(id, options) {
2424
+ return DefaultApiFp(this.configuration).apiAdminV1SessionsIdStatsGet(id, options).then((request) => request(this.axios, this.basePath));
2425
+ }
2426
+ /**
2427
+ *
2428
+ * @summary List all available agent commands (tools)
2429
+ * @param {*} [options] Override http request option.
2430
+ * @throws {RequiredError}
2431
+ */
2432
+ apiAdminV1SkillsCommandsGet(options) {
2433
+ return DefaultApiFp(this.configuration).apiAdminV1SkillsCommandsGet(options).then((request) => request(this.axios, this.basePath));
2434
+ }
2435
+ /**
2436
+ *
2437
+ * @summary List all installed skills
2438
+ * @param {number} [limit] Maximum number of results to return
2439
+ * @param {number} [offset] Number of results to skip
2440
+ * @param {*} [options] Override http request option.
2441
+ * @throws {RequiredError}
2442
+ */
2443
+ apiAdminV1SkillsGet(limit, offset, options) {
2444
+ return DefaultApiFp(this.configuration).apiAdminV1SkillsGet(limit, offset, options).then((request) => request(this.axios, this.basePath));
2445
+ }
2446
+ /**
2447
+ *
2448
+ * @summary Remove a skill
2449
+ * @param {string} name
2450
+ * @param {*} [options] Override http request option.
2451
+ * @throws {RequiredError}
2452
+ */
2453
+ apiAdminV1SkillsNameDelete(name, options) {
2454
+ return DefaultApiFp(this.configuration).apiAdminV1SkillsNameDelete(name, options).then((request) => request(this.axios, this.basePath));
2455
+ }
2456
+ /**
2457
+ *
2458
+ * @summary Get skill details
2459
+ * @param {string} name
2460
+ * @param {*} [options] Override http request option.
2461
+ * @throws {RequiredError}
2462
+ */
2463
+ apiAdminV1SkillsNameGet(name, options) {
2464
+ return DefaultApiFp(this.configuration).apiAdminV1SkillsNameGet(name, options).then((request) => request(this.axios, this.basePath));
2465
+ }
2466
+ /**
2467
+ *
2468
+ * @summary List all sub-agent runs
2469
+ * @param {string} [session] Filter by parent session ID
2470
+ * @param {*} [options] Override http request option.
2471
+ * @throws {RequiredError}
2472
+ */
2473
+ apiAdminV1SubagentsGet(session, options) {
2474
+ return DefaultApiFp(this.configuration).apiAdminV1SubagentsGet(session, options).then((request) => request(this.axios, this.basePath));
2475
+ }
2476
+ /**
2477
+ *
2478
+ * @summary Cancel a running sub-agent
2479
+ * @param {string} id
2480
+ * @param {*} [options] Override http request option.
2481
+ * @throws {RequiredError}
2482
+ */
2483
+ apiAdminV1SubagentsIdDelete(id, options) {
2484
+ return DefaultApiFp(this.configuration).apiAdminV1SubagentsIdDelete(id, options).then((request) => request(this.axios, this.basePath));
2485
+ }
2486
+ /**
2487
+ *
2488
+ * @summary Get sub-agent run details (admin)
2489
+ * @param {string} id
2490
+ * @param {*} [options] Override http request option.
2491
+ * @throws {RequiredError}
2492
+ */
2493
+ apiAdminV1SubagentsIdGet(id, options) {
2494
+ return DefaultApiFp(this.configuration).apiAdminV1SubagentsIdGet(id, options).then((request) => request(this.axios, this.basePath));
2495
+ }
2496
+ /**
2497
+ *
2498
+ * @summary Get full message transcript of a sub-agent run (admin)
2499
+ * @param {string} id
2500
+ * @param {*} [options] Override http request option.
2501
+ * @throws {RequiredError}
2502
+ */
2503
+ apiAdminV1SubagentsIdTranscriptGet(id, options) {
2504
+ return DefaultApiFp(this.configuration).apiAdminV1SubagentsIdTranscriptGet(id, options).then((request) => request(this.axios, this.basePath));
2505
+ }
2506
+ /**
2507
+ *
2508
+ * @summary List all recurring tasks
2509
+ * @param {number} [limit] Maximum number of results to return
2510
+ * @param {number} [offset] Number of results to skip
2511
+ * @param {*} [options] Override http request option.
2512
+ * @throws {RequiredError}
2513
+ */
2514
+ apiAdminV1TasksGet(limit, offset, options) {
2515
+ return DefaultApiFp(this.configuration).apiAdminV1TasksGet(limit, offset, options).then((request) => request(this.axios, this.basePath));
2516
+ }
2517
+ /**
2518
+ *
2519
+ * @summary Get task details
2520
+ * @param {string} id
2521
+ * @param {*} [options] Override http request option.
2522
+ * @throws {RequiredError}
2523
+ */
2524
+ apiAdminV1TasksIdGet(id, options) {
2525
+ return DefaultApiFp(this.configuration).apiAdminV1TasksIdGet(id, options).then((request) => request(this.axios, this.basePath));
2526
+ }
2527
+ /**
2528
+ *
2529
+ * @summary Delete file or directory in uploads/ or generated/
2530
+ * @param {DeleteFilesRequest} deleteFilesRequest
2531
+ * @param {*} [options] Override http request option.
2532
+ * @throws {RequiredError}
2533
+ */
2534
+ apiV1FilesDelete(deleteFilesRequest, options) {
2535
+ return DefaultApiFp(this.configuration).apiV1FilesDelete(deleteFilesRequest, options).then((request) => request(this.axios, this.basePath));
2536
+ }
2537
+ /**
2538
+ *
2539
+ * @summary Serve file download, text preview, or directory listing
2540
+ * @param {string} filepath Relative path in uploads/ or generated/
2541
+ * @param {boolean} [view] If true and filepath is a file, return text/plain preview instead of download
2542
+ * @param {boolean} [zip] If true and filepath is a directory, download as ZIP archive instead of listing
2543
+ * @param {*} [options] Override http request option.
2544
+ * @throws {RequiredError}
2545
+ */
2546
+ apiV1FilesFilepathGet(filepath, view, zip, options) {
2547
+ return DefaultApiFp(this.configuration).apiV1FilesFilepathGet(filepath, view, zip, options).then((request) => request(this.axios, this.basePath));
2548
+ }
2549
+ /**
2550
+ *
2551
+ * @summary List files and directories in uploads/ or generated/
2552
+ * @param {string} [path] Directory path relative to storage_dir (uploads/ or generated/)
2553
+ * @param {*} [options] Override http request option.
2554
+ * @throws {RequiredError}
2555
+ */
2556
+ apiV1FilesGet(path, options) {
2557
+ return DefaultApiFp(this.configuration).apiV1FilesGet(path, options).then((request) => request(this.axios, this.basePath));
2558
+ }
2559
+ /**
2560
+ *
2561
+ * @summary Upload a file to the local storage
2562
+ * @param {File} [file]
2563
+ * @param {*} [options] Override http request option.
2564
+ * @throws {RequiredError}
2565
+ */
2566
+ apiV1FilesUploadPost(file, options) {
2567
+ return DefaultApiFp(this.configuration).apiV1FilesUploadPost(file, options).then((request) => request(this.axios, this.basePath));
2568
+ }
2569
+ /**
2570
+ *
2571
+ * @summary Manage sessions or check global status
2572
+ * @param {ApiV1InteractionPostRequest} apiV1InteractionPostRequest
2573
+ * @param {*} [options] Override http request option.
2574
+ * @throws {RequiredError}
2575
+ */
2576
+ apiV1InteractionPost(apiV1InteractionPostRequest, options) {
2577
+ return DefaultApiFp(this.configuration).apiV1InteractionPost(apiV1InteractionPostRequest, options).then((request) => request(this.axios, this.basePath));
2578
+ }
2579
+ /**
2580
+ *
2581
+ * @summary Send a prompt to the agent
2582
+ * @param {ApiV1PromptPostRequest} apiV1PromptPostRequest
2583
+ * @param {*} [options] Override http request option.
2584
+ * @throws {RequiredError}
2585
+ */
2586
+ apiV1PromptPost(apiV1PromptPostRequest, options) {
2587
+ return DefaultApiFp(this.configuration).apiV1PromptPost(apiV1PromptPostRequest, options).then((request) => request(this.axios, this.basePath));
2588
+ }
2589
+ /**
2590
+ *
2591
+ * @summary Stream a prompt response via SSE
2592
+ * @param {string} prompt
2593
+ * @param {string} [model]
2594
+ * @param {*} [options] Override http request option.
2595
+ * @throws {RequiredError}
2596
+ */
2597
+ apiV1PromptStreamGet(prompt, model, options) {
2598
+ return DefaultApiFp(this.configuration).apiV1PromptStreamGet(prompt, model, options).then((request) => request(this.axios, this.basePath));
2599
+ }
2600
+ /**
2601
+ *
2602
+ * @summary Initial configuration
2603
+ * @param {SetupRequest} setupRequest
2604
+ * @param {*} [options] Override http request option.
2605
+ * @throws {RequiredError}
2606
+ */
2607
+ apiV1SetupConfigurePost(setupRequest, options) {
2608
+ return DefaultApiFp(this.configuration).apiV1SetupConfigurePost(setupRequest, options).then((request) => request(this.axios, this.basePath));
2609
+ }
2610
+ /**
2611
+ *
2612
+ * @summary Get setup mode status
2613
+ * @param {*} [options] Override http request option.
2614
+ * @throws {RequiredError}
2615
+ */
2616
+ apiV1SetupStatusGet(options) {
2617
+ return DefaultApiFp(this.configuration).apiV1SetupStatusGet(options).then((request) => request(this.axios, this.basePath));
2618
+ }
2619
+ /**
2620
+ *
2621
+ * @summary Get sub-agent run status and result
2622
+ * @param {string} id
2623
+ * @param {*} [options] Override http request option.
2624
+ * @throws {RequiredError}
2625
+ */
2626
+ apiV1SubagentsIdGet(id, options) {
2627
+ return DefaultApiFp(this.configuration).apiV1SubagentsIdGet(id, options).then((request) => request(this.axios, this.basePath));
2628
+ }
2629
+ /**
2630
+ *
2631
+ * @summary Get full message transcript of a sub-agent run
2632
+ * @param {string} id
2633
+ * @param {*} [options] Override http request option.
2634
+ * @throws {RequiredError}
2635
+ */
2636
+ apiV1SubagentsIdTranscriptGet(id, options) {
2637
+ return DefaultApiFp(this.configuration).apiV1SubagentsIdTranscriptGet(id, options).then((request) => request(this.axios, this.basePath));
2638
+ }
2639
+ /**
2640
+ * Manually spawn a specialized sub-agent with a given role and goal. The sub-agent runs autonomously and its result can be polled via GET /api/v1/subagents/{id}. The orchestrator LLM can also spawn sub-agents automatically via the Researcher/Coder/Reviewer tools.
2641
+ * @summary Spawn a new sub-agent run
2642
+ * @param {SpawnSubAgentRequest} spawnSubAgentRequest
2643
+ * @param {*} [options] Override http request option.
2644
+ * @throws {RequiredError}
2645
+ */
2646
+ apiV1SubagentsPost(spawnSubAgentRequest, options) {
2647
+ return DefaultApiFp(this.configuration).apiV1SubagentsPost(spawnSubAgentRequest, options).then((request) => request(this.axios, this.basePath));
2648
+ }
2649
+ /**
2650
+ *
2651
+ * @summary Prometheus metrics endpoint
2652
+ * @param {*} [options] Override http request option.
2653
+ * @throws {RequiredError}
2654
+ */
2655
+ metricsGet(options) {
2656
+ return DefaultApiFp(this.configuration).metricsGet(options).then((request) => request(this.axios, this.basePath));
2657
+ }
2658
+ /**
2659
+ * WebSocket endpoint for real-time interaction and background task notifications. When a background task completes, a message is sent in the following format: ```json { \"type\": \"task_complete\", \"task_id\": \"uuid\", \"task_name\": \"task name\", \"response\": \"result string\" } ```
2660
+ * @summary WebSocket for interactive streaming
2661
+ * @param {string} [channel]
2662
+ * @param {string} [device]
2663
+ * @param {*} [options] Override http request option.
2664
+ * @throws {RequiredError}
2665
+ */
2666
+ wsGet(channel, device, options) {
2667
+ return DefaultApiFp(this.configuration).wsGet(channel, device, options).then((request) => request(this.axios, this.basePath));
2668
+ }
2669
+ }