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