@crestal/nation-sdk 0.6.24 → 0.6.26
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/.openapi-generator/FILES +2 -1
- package/.openapi-generator/VERSION +1 -1
- package/README.md +4 -3
- package/api.ts +2131 -109
- package/base.ts +25 -1
- package/common.ts +38 -1
- package/configuration.ts +18 -1
- package/dist/api.d.ts +2127 -112
- package/dist/api.js +163 -8
- package/dist/base.d.ts +25 -1
- package/dist/base.js +20 -1
- package/dist/common.d.ts +38 -1
- package/dist/common.js +38 -1
- package/dist/configuration.d.ts +18 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgentGenerateRequest.md +3 -1
- package/docs/AgentGenerateResponse.md +2 -2
- package/docs/AgentInput.md +95 -0
- package/docs/{Agent.md → AgentOutput.md} +6 -6
- package/docs/AgentUpdate.md +3 -3
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/UserApi.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Nation IntentKit API
|
|
5
5
|
* API for Nation IntentKit services
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.6.
|
|
7
|
+
* The version of the OpenAPI document: 0.6.26
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -23,81 +23,501 @@ import type { RequestArgs } from './base';
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* Response model for agent API key generation.
|
|
28
|
+
* @export
|
|
29
|
+
* @interface AgentApiKeyResponse
|
|
30
|
+
*/
|
|
31
|
+
export interface AgentApiKeyResponse {
|
|
32
|
+
/**
|
|
33
|
+
* The private API key for the agent (sk-)
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AgentApiKeyResponse
|
|
36
|
+
*/
|
|
37
|
+
'api_key': string;
|
|
38
|
+
/**
|
|
39
|
+
* The public API key for the agent (pk-)
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AgentApiKeyResponse
|
|
42
|
+
*/
|
|
43
|
+
'api_key_public': string;
|
|
44
|
+
/**
|
|
45
|
+
* The base URL for the API
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof AgentApiKeyResponse
|
|
48
|
+
*/
|
|
49
|
+
'base_url': string;
|
|
50
|
+
/**
|
|
51
|
+
* API documentation URL
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof AgentApiKeyResponse
|
|
54
|
+
*/
|
|
55
|
+
'api_doc': string;
|
|
56
|
+
/**
|
|
57
|
+
* OpenAPI JSON URL for AI integration
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof AgentApiKeyResponse
|
|
60
|
+
*/
|
|
61
|
+
'doc_for_ai': string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Response model for agent assets.
|
|
65
|
+
* @export
|
|
66
|
+
* @interface AgentAssetsResponse
|
|
67
|
+
*/
|
|
68
|
+
export interface AgentAssetsResponse {
|
|
69
|
+
/**
|
|
70
|
+
* ID of the agent
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof AgentAssetsResponse
|
|
73
|
+
*/
|
|
74
|
+
'agent_id': string;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof AgentAssetsResponse
|
|
79
|
+
*/
|
|
80
|
+
'network_id': string | null;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof AgentAssetsResponse
|
|
85
|
+
*/
|
|
86
|
+
'wallet_address': string | null;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof AgentAssetsResponse
|
|
91
|
+
*/
|
|
92
|
+
'ticker': string | null;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof AgentAssetsResponse
|
|
97
|
+
*/
|
|
98
|
+
'token_address': string | null;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof AgentAssetsResponse
|
|
103
|
+
*/
|
|
104
|
+
'token_pool': string | null;
|
|
105
|
+
/**
|
|
106
|
+
* Total value locked, set to 0 for this version
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof AgentAssetsResponse
|
|
109
|
+
*/
|
|
110
|
+
'tvl'?: string;
|
|
111
|
+
/**
|
|
112
|
+
* List of assets with symbol and balance
|
|
113
|
+
* @type {Array<Asset>}
|
|
114
|
+
* @memberof AgentAssetsResponse
|
|
115
|
+
*/
|
|
116
|
+
'assets': Array<Asset>;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Autonomous agent configuration.
|
|
120
|
+
* @export
|
|
121
|
+
* @interface AgentAutonomous
|
|
122
|
+
*/
|
|
123
|
+
export interface AgentAutonomous {
|
|
124
|
+
/**
|
|
125
|
+
* Unique identifier for the autonomous configuration
|
|
126
|
+
* @type {string}
|
|
127
|
+
* @memberof AgentAutonomous
|
|
128
|
+
*/
|
|
129
|
+
'id'?: string;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {string}
|
|
133
|
+
* @memberof AgentAutonomous
|
|
134
|
+
*/
|
|
135
|
+
'name'?: string | null;
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @type {string}
|
|
139
|
+
* @memberof AgentAutonomous
|
|
140
|
+
*/
|
|
141
|
+
'description'?: string | null;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {number}
|
|
145
|
+
* @memberof AgentAutonomous
|
|
146
|
+
*/
|
|
147
|
+
'minutes'?: number | null;
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* @type {string}
|
|
151
|
+
* @memberof AgentAutonomous
|
|
152
|
+
*/
|
|
153
|
+
'cron'?: string | null;
|
|
154
|
+
/**
|
|
155
|
+
* Special prompt used during autonomous operation
|
|
156
|
+
* @type {string}
|
|
157
|
+
* @memberof AgentAutonomous
|
|
158
|
+
*/
|
|
159
|
+
'prompt': string;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @type {boolean}
|
|
163
|
+
* @memberof AgentAutonomous
|
|
164
|
+
*/
|
|
165
|
+
'enabled'?: boolean | null;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Agent example configuration.
|
|
169
|
+
* @export
|
|
170
|
+
* @interface AgentExample
|
|
171
|
+
*/
|
|
172
|
+
export interface AgentExample {
|
|
173
|
+
/**
|
|
174
|
+
* Name of the example
|
|
175
|
+
* @type {string}
|
|
176
|
+
* @memberof AgentExample
|
|
177
|
+
*/
|
|
178
|
+
'name': string;
|
|
179
|
+
/**
|
|
180
|
+
* Description of the example
|
|
181
|
+
* @type {string}
|
|
182
|
+
* @memberof AgentExample
|
|
183
|
+
*/
|
|
184
|
+
'description': string;
|
|
185
|
+
/**
|
|
186
|
+
* Example prompt
|
|
187
|
+
* @type {string}
|
|
188
|
+
* @memberof AgentExample
|
|
189
|
+
*/
|
|
190
|
+
'prompt': string;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Request model for agent generation.
|
|
194
|
+
* @export
|
|
195
|
+
* @interface AgentGenerateRequest
|
|
196
|
+
*/
|
|
197
|
+
export interface AgentGenerateRequest {
|
|
198
|
+
/**
|
|
199
|
+
* Natural language description of the agent\'s desired capabilities
|
|
200
|
+
* @type {string}
|
|
201
|
+
* @memberof AgentGenerateRequest
|
|
202
|
+
*/
|
|
203
|
+
'prompt': string;
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
* @type {AgentInput}
|
|
207
|
+
* @memberof AgentGenerateRequest
|
|
208
|
+
*/
|
|
209
|
+
'existing_agent'?: AgentInput | null;
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @type {string}
|
|
213
|
+
* @memberof AgentGenerateRequest
|
|
214
|
+
*/
|
|
215
|
+
'project_id'?: string | null;
|
|
216
|
+
/**
|
|
217
|
+
*
|
|
218
|
+
* @type {boolean}
|
|
219
|
+
* @memberof AgentGenerateRequest
|
|
220
|
+
*/
|
|
221
|
+
'deploy'?: boolean | null;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Response model for agent generation.
|
|
225
|
+
* @export
|
|
226
|
+
* @interface AgentGenerateResponse
|
|
227
|
+
*/
|
|
228
|
+
export interface AgentGenerateResponse {
|
|
229
|
+
/**
|
|
230
|
+
* The generated agent schema
|
|
231
|
+
* @type {object}
|
|
232
|
+
* @memberof AgentGenerateResponse
|
|
233
|
+
*/
|
|
234
|
+
'agent': object;
|
|
235
|
+
/**
|
|
236
|
+
* Project ID for this conversation session
|
|
237
|
+
* @type {string}
|
|
238
|
+
* @memberof AgentGenerateResponse
|
|
239
|
+
*/
|
|
240
|
+
'project_id': string;
|
|
241
|
+
/**
|
|
242
|
+
* Human-readable summary of the generated agent
|
|
243
|
+
* @type {string}
|
|
244
|
+
* @memberof AgentGenerateResponse
|
|
245
|
+
*/
|
|
246
|
+
'summary': string;
|
|
247
|
+
/**
|
|
248
|
+
* Generated tags for the agent as ID objects: [{\'id\': 1}, {\'id\': 2}]
|
|
249
|
+
* @type {Array<{ [key: string]: number; }>}
|
|
250
|
+
* @memberof AgentGenerateResponse
|
|
251
|
+
*/
|
|
252
|
+
'tags'?: Array<{ [key: string]: number; }>;
|
|
253
|
+
/**
|
|
254
|
+
*
|
|
255
|
+
* @type {Array<object>}
|
|
256
|
+
* @memberof AgentGenerateResponse
|
|
257
|
+
*/
|
|
258
|
+
'autonomous_tasks'?: Array<object> | null;
|
|
259
|
+
/**
|
|
260
|
+
*
|
|
261
|
+
* @type {Array<string>}
|
|
262
|
+
* @memberof AgentGenerateResponse
|
|
263
|
+
*/
|
|
264
|
+
'activated_skills'?: Array<string> | null;
|
|
265
|
+
}
|
|
26
266
|
/**
|
|
27
267
|
* Agent model.
|
|
268
|
+
* @export
|
|
269
|
+
* @interface AgentInput
|
|
28
270
|
*/
|
|
29
|
-
export interface
|
|
271
|
+
export interface AgentInput {
|
|
272
|
+
/**
|
|
273
|
+
*
|
|
274
|
+
* @type {string}
|
|
275
|
+
* @memberof AgentInput
|
|
276
|
+
*/
|
|
30
277
|
'name': string | null;
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
* @type {string}
|
|
281
|
+
* @memberof AgentInput
|
|
282
|
+
*/
|
|
31
283
|
'slug'?: string | null;
|
|
284
|
+
/**
|
|
285
|
+
*
|
|
286
|
+
* @type {string}
|
|
287
|
+
* @memberof AgentInput
|
|
288
|
+
*/
|
|
32
289
|
'description'?: string | null;
|
|
290
|
+
/**
|
|
291
|
+
*
|
|
292
|
+
* @type {string}
|
|
293
|
+
* @memberof AgentInput
|
|
294
|
+
*/
|
|
33
295
|
'external_website'?: string | null;
|
|
296
|
+
/**
|
|
297
|
+
*
|
|
298
|
+
* @type {string}
|
|
299
|
+
* @memberof AgentInput
|
|
300
|
+
*/
|
|
34
301
|
'picture'?: string | null;
|
|
302
|
+
/**
|
|
303
|
+
*
|
|
304
|
+
* @type {string}
|
|
305
|
+
* @memberof AgentInput
|
|
306
|
+
*/
|
|
35
307
|
'ticker'?: string | null;
|
|
308
|
+
/**
|
|
309
|
+
*
|
|
310
|
+
* @type {string}
|
|
311
|
+
* @memberof AgentInput
|
|
312
|
+
*/
|
|
36
313
|
'token_address'?: string | null;
|
|
314
|
+
/**
|
|
315
|
+
*
|
|
316
|
+
* @type {string}
|
|
317
|
+
* @memberof AgentInput
|
|
318
|
+
*/
|
|
37
319
|
'token_pool'?: string | null;
|
|
38
|
-
|
|
39
|
-
|
|
320
|
+
/**
|
|
321
|
+
*
|
|
322
|
+
* @type {string}
|
|
323
|
+
* @memberof AgentInput
|
|
324
|
+
*/
|
|
325
|
+
'mode'?: AgentInputModeEnum | null;
|
|
326
|
+
/**
|
|
327
|
+
*
|
|
328
|
+
* @type {FeePercentage}
|
|
329
|
+
* @memberof AgentInput
|
|
330
|
+
*/
|
|
331
|
+
'fee_percentage'?: FeePercentage | null;
|
|
332
|
+
/**
|
|
333
|
+
*
|
|
334
|
+
* @type {string}
|
|
335
|
+
* @memberof AgentInput
|
|
336
|
+
*/
|
|
40
337
|
'purpose': string | null;
|
|
338
|
+
/**
|
|
339
|
+
*
|
|
340
|
+
* @type {string}
|
|
341
|
+
* @memberof AgentInput
|
|
342
|
+
*/
|
|
41
343
|
'personality': string | null;
|
|
344
|
+
/**
|
|
345
|
+
*
|
|
346
|
+
* @type {string}
|
|
347
|
+
* @memberof AgentInput
|
|
348
|
+
*/
|
|
42
349
|
'principles': string | null;
|
|
350
|
+
/**
|
|
351
|
+
*
|
|
352
|
+
* @type {string}
|
|
353
|
+
* @memberof AgentInput
|
|
354
|
+
*/
|
|
43
355
|
'owner'?: string | null;
|
|
356
|
+
/**
|
|
357
|
+
*
|
|
358
|
+
* @type {string}
|
|
359
|
+
* @memberof AgentInput
|
|
360
|
+
*/
|
|
44
361
|
'upstream_id'?: string | null;
|
|
362
|
+
/**
|
|
363
|
+
*
|
|
364
|
+
* @type {object}
|
|
365
|
+
* @memberof AgentInput
|
|
366
|
+
*/
|
|
45
367
|
'upstream_extra'?: object | null;
|
|
46
368
|
/**
|
|
47
369
|
* AI model identifier to be used by this agent for processing requests.
|
|
370
|
+
* @type {string}
|
|
371
|
+
* @memberof AgentInput
|
|
48
372
|
*/
|
|
49
373
|
'model'?: string;
|
|
374
|
+
/**
|
|
375
|
+
*
|
|
376
|
+
* @type {string}
|
|
377
|
+
* @memberof AgentInput
|
|
378
|
+
*/
|
|
50
379
|
'prompt'?: string | null;
|
|
380
|
+
/**
|
|
381
|
+
*
|
|
382
|
+
* @type {string}
|
|
383
|
+
* @memberof AgentInput
|
|
384
|
+
*/
|
|
51
385
|
'prompt_append'?: string | null;
|
|
386
|
+
/**
|
|
387
|
+
*
|
|
388
|
+
* @type {number}
|
|
389
|
+
* @memberof AgentInput
|
|
390
|
+
*/
|
|
52
391
|
'temperature'?: number | null;
|
|
392
|
+
/**
|
|
393
|
+
*
|
|
394
|
+
* @type {number}
|
|
395
|
+
* @memberof AgentInput
|
|
396
|
+
*/
|
|
53
397
|
'frequency_penalty'?: number | null;
|
|
398
|
+
/**
|
|
399
|
+
*
|
|
400
|
+
* @type {number}
|
|
401
|
+
* @memberof AgentInput
|
|
402
|
+
*/
|
|
54
403
|
'presence_penalty'?: number | null;
|
|
55
|
-
|
|
404
|
+
/**
|
|
405
|
+
*
|
|
406
|
+
* @type {string}
|
|
407
|
+
* @memberof AgentInput
|
|
408
|
+
*/
|
|
409
|
+
'short_term_memory_strategy'?: AgentInputShortTermMemoryStrategyEnum | null;
|
|
410
|
+
/**
|
|
411
|
+
*
|
|
412
|
+
* @type {Array<AgentAutonomous>}
|
|
413
|
+
* @memberof AgentInput
|
|
414
|
+
*/
|
|
56
415
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
416
|
+
/**
|
|
417
|
+
*
|
|
418
|
+
* @type {string}
|
|
419
|
+
* @memberof AgentInput
|
|
420
|
+
*/
|
|
57
421
|
'example_intro'?: string | null;
|
|
422
|
+
/**
|
|
423
|
+
*
|
|
424
|
+
* @type {Array<AgentExample>}
|
|
425
|
+
* @memberof AgentInput
|
|
426
|
+
*/
|
|
58
427
|
'examples'?: Array<AgentExample> | null;
|
|
428
|
+
/**
|
|
429
|
+
*
|
|
430
|
+
* @type {object}
|
|
431
|
+
* @memberof AgentInput
|
|
432
|
+
*/
|
|
59
433
|
'skills'?: object | null;
|
|
60
|
-
|
|
434
|
+
/**
|
|
435
|
+
*
|
|
436
|
+
* @type {string}
|
|
437
|
+
* @memberof AgentInput
|
|
438
|
+
*/
|
|
439
|
+
'wallet_provider'?: AgentInputWalletProviderEnum | null;
|
|
440
|
+
/**
|
|
441
|
+
*
|
|
442
|
+
* @type {string}
|
|
443
|
+
* @memberof AgentInput
|
|
444
|
+
*/
|
|
61
445
|
'readonly_wallet_address'?: string | null;
|
|
62
|
-
|
|
63
|
-
|
|
446
|
+
/**
|
|
447
|
+
*
|
|
448
|
+
* @type {string}
|
|
449
|
+
* @memberof AgentInput
|
|
450
|
+
*/
|
|
451
|
+
'network_id'?: AgentInputNetworkIdEnum | null;
|
|
452
|
+
/**
|
|
453
|
+
*
|
|
454
|
+
* @type {string}
|
|
455
|
+
* @memberof AgentInput
|
|
456
|
+
*/
|
|
457
|
+
'cdp_network_id'?: AgentInputCdpNetworkIdEnum | null;
|
|
458
|
+
/**
|
|
459
|
+
*
|
|
460
|
+
* @type {boolean}
|
|
461
|
+
* @memberof AgentInput
|
|
462
|
+
*/
|
|
64
463
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
464
|
+
/**
|
|
465
|
+
*
|
|
466
|
+
* @type {string}
|
|
467
|
+
* @memberof AgentInput
|
|
468
|
+
*/
|
|
65
469
|
'telegram_entrypoint_prompt'?: string | null;
|
|
470
|
+
/**
|
|
471
|
+
*
|
|
472
|
+
* @type {object}
|
|
473
|
+
* @memberof AgentInput
|
|
474
|
+
*/
|
|
66
475
|
'telegram_config'?: object | null;
|
|
476
|
+
/**
|
|
477
|
+
*
|
|
478
|
+
* @type {string}
|
|
479
|
+
* @memberof AgentInput
|
|
480
|
+
*/
|
|
67
481
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
68
482
|
/**
|
|
69
483
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
484
|
+
* @type {string}
|
|
485
|
+
* @memberof AgentInput
|
|
70
486
|
*/
|
|
71
487
|
'id'?: string;
|
|
72
488
|
/**
|
|
73
489
|
* Timestamp when the agent was created, will ignore when importing
|
|
490
|
+
* @type {string}
|
|
491
|
+
* @memberof AgentInput
|
|
74
492
|
*/
|
|
75
493
|
'created_at'?: string;
|
|
76
494
|
/**
|
|
77
495
|
* Timestamp when the agent was last updated, will ignore when importing
|
|
496
|
+
* @type {string}
|
|
497
|
+
* @memberof AgentInput
|
|
78
498
|
*/
|
|
79
499
|
'updated_at'?: string;
|
|
80
500
|
}
|
|
81
501
|
|
|
82
|
-
export const
|
|
502
|
+
export const AgentInputModeEnum = {
|
|
83
503
|
Public: 'public',
|
|
84
504
|
Private: 'private'
|
|
85
505
|
} as const;
|
|
86
506
|
|
|
87
|
-
export type
|
|
88
|
-
export const
|
|
507
|
+
export type AgentInputModeEnum = typeof AgentInputModeEnum[keyof typeof AgentInputModeEnum];
|
|
508
|
+
export const AgentInputShortTermMemoryStrategyEnum = {
|
|
89
509
|
Trim: 'trim',
|
|
90
510
|
Summarize: 'summarize'
|
|
91
511
|
} as const;
|
|
92
512
|
|
|
93
|
-
export type
|
|
94
|
-
export const
|
|
513
|
+
export type AgentInputShortTermMemoryStrategyEnum = typeof AgentInputShortTermMemoryStrategyEnum[keyof typeof AgentInputShortTermMemoryStrategyEnum];
|
|
514
|
+
export const AgentInputWalletProviderEnum = {
|
|
95
515
|
Cdp: 'cdp',
|
|
96
516
|
Readonly: 'readonly'
|
|
97
517
|
} as const;
|
|
98
518
|
|
|
99
|
-
export type
|
|
100
|
-
export const
|
|
519
|
+
export type AgentInputWalletProviderEnum = typeof AgentInputWalletProviderEnum[keyof typeof AgentInputWalletProviderEnum];
|
|
520
|
+
export const AgentInputNetworkIdEnum = {
|
|
101
521
|
EthereumMainnet: 'ethereum-mainnet',
|
|
102
522
|
EthereumSepolia: 'ethereum-sepolia',
|
|
103
523
|
PolygonMainnet: 'polygon-mainnet',
|
|
@@ -111,8 +531,8 @@ export const AgentNetworkIdEnum = {
|
|
|
111
531
|
Solana: 'solana'
|
|
112
532
|
} as const;
|
|
113
533
|
|
|
114
|
-
export type
|
|
115
|
-
export const
|
|
534
|
+
export type AgentInputNetworkIdEnum = typeof AgentInputNetworkIdEnum[keyof typeof AgentInputNetworkIdEnum];
|
|
535
|
+
export const AgentInputCdpNetworkIdEnum = {
|
|
116
536
|
EthereumMainnet: 'ethereum-mainnet',
|
|
117
537
|
EthereumSepolia: 'ethereum-sepolia',
|
|
118
538
|
PolygonMainnet: 'polygon-mainnet',
|
|
@@ -125,210 +545,543 @@ export const AgentCdpNetworkIdEnum = {
|
|
|
125
545
|
OptimismSepolia: 'optimism-sepolia'
|
|
126
546
|
} as const;
|
|
127
547
|
|
|
128
|
-
export type
|
|
548
|
+
export type AgentInputCdpNetworkIdEnum = typeof AgentInputCdpNetworkIdEnum[keyof typeof AgentInputCdpNetworkIdEnum];
|
|
129
549
|
|
|
130
550
|
/**
|
|
131
|
-
*
|
|
551
|
+
* Paginated response model for agents list. Contains a list of agents, a flag indicating if more items are available, and a cursor for pagination.
|
|
552
|
+
* @export
|
|
553
|
+
* @interface AgentListResponse
|
|
132
554
|
*/
|
|
133
|
-
export interface
|
|
555
|
+
export interface AgentListResponse {
|
|
134
556
|
/**
|
|
135
|
-
*
|
|
557
|
+
* List of agents
|
|
558
|
+
* @type {Array<AgentResponse>}
|
|
559
|
+
* @memberof AgentListResponse
|
|
136
560
|
*/
|
|
137
|
-
'
|
|
561
|
+
'data': Array<AgentResponse>;
|
|
138
562
|
/**
|
|
139
|
-
*
|
|
563
|
+
* Indicates if there are more items
|
|
564
|
+
* @type {boolean}
|
|
565
|
+
* @memberof AgentListResponse
|
|
140
566
|
*/
|
|
141
|
-
'
|
|
567
|
+
'has_more': boolean;
|
|
142
568
|
/**
|
|
143
|
-
*
|
|
569
|
+
*
|
|
570
|
+
* @type {string}
|
|
571
|
+
* @memberof AgentListResponse
|
|
144
572
|
*/
|
|
145
|
-
'
|
|
573
|
+
'next_cursor'?: string | null;
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* Agent model.
|
|
577
|
+
* @export
|
|
578
|
+
* @interface AgentOutput
|
|
579
|
+
*/
|
|
580
|
+
export interface AgentOutput {
|
|
146
581
|
/**
|
|
147
|
-
*
|
|
582
|
+
*
|
|
583
|
+
* @type {string}
|
|
584
|
+
* @memberof AgentOutput
|
|
148
585
|
*/
|
|
149
|
-
'
|
|
586
|
+
'name': string | null;
|
|
150
587
|
/**
|
|
151
|
-
*
|
|
588
|
+
*
|
|
589
|
+
* @type {string}
|
|
590
|
+
* @memberof AgentOutput
|
|
152
591
|
*/
|
|
153
|
-
'
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Response model for agent assets.
|
|
157
|
-
*/
|
|
158
|
-
export interface AgentAssetsResponse {
|
|
592
|
+
'slug'?: string | null;
|
|
159
593
|
/**
|
|
160
|
-
*
|
|
594
|
+
*
|
|
595
|
+
* @type {string}
|
|
596
|
+
* @memberof AgentOutput
|
|
161
597
|
*/
|
|
162
|
-
'
|
|
163
|
-
'network_id': string | null;
|
|
164
|
-
'wallet_address': string | null;
|
|
165
|
-
'ticker': string | null;
|
|
166
|
-
'token_address': string | null;
|
|
167
|
-
'token_pool': string | null;
|
|
598
|
+
'description'?: string | null;
|
|
168
599
|
/**
|
|
169
|
-
*
|
|
600
|
+
*
|
|
601
|
+
* @type {string}
|
|
602
|
+
* @memberof AgentOutput
|
|
170
603
|
*/
|
|
171
|
-
'
|
|
604
|
+
'external_website'?: string | null;
|
|
172
605
|
/**
|
|
173
|
-
*
|
|
606
|
+
*
|
|
607
|
+
* @type {string}
|
|
608
|
+
* @memberof AgentOutput
|
|
174
609
|
*/
|
|
175
|
-
'
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* Autonomous agent configuration.
|
|
179
|
-
*/
|
|
180
|
-
export interface AgentAutonomous {
|
|
610
|
+
'picture'?: string | null;
|
|
181
611
|
/**
|
|
182
|
-
*
|
|
612
|
+
*
|
|
613
|
+
* @type {string}
|
|
614
|
+
* @memberof AgentOutput
|
|
183
615
|
*/
|
|
184
|
-
'
|
|
185
|
-
'name'?: string | null;
|
|
186
|
-
'description'?: string | null;
|
|
187
|
-
'minutes'?: number | null;
|
|
188
|
-
'cron'?: string | null;
|
|
616
|
+
'ticker'?: string | null;
|
|
189
617
|
/**
|
|
190
|
-
*
|
|
618
|
+
*
|
|
619
|
+
* @type {string}
|
|
620
|
+
* @memberof AgentOutput
|
|
191
621
|
*/
|
|
192
|
-
'
|
|
193
|
-
'enabled'?: boolean | null;
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* Agent example configuration.
|
|
197
|
-
*/
|
|
198
|
-
export interface AgentExample {
|
|
622
|
+
'token_address'?: string | null;
|
|
199
623
|
/**
|
|
200
|
-
*
|
|
624
|
+
*
|
|
625
|
+
* @type {string}
|
|
626
|
+
* @memberof AgentOutput
|
|
201
627
|
*/
|
|
202
|
-
'
|
|
628
|
+
'token_pool'?: string | null;
|
|
203
629
|
/**
|
|
204
|
-
*
|
|
630
|
+
*
|
|
631
|
+
* @type {string}
|
|
632
|
+
* @memberof AgentOutput
|
|
205
633
|
*/
|
|
206
|
-
'
|
|
634
|
+
'mode'?: AgentOutputModeEnum | null;
|
|
635
|
+
/**
|
|
636
|
+
*
|
|
637
|
+
* @type {string}
|
|
638
|
+
* @memberof AgentOutput
|
|
639
|
+
*/
|
|
640
|
+
'fee_percentage'?: string | null;
|
|
641
|
+
/**
|
|
642
|
+
*
|
|
643
|
+
* @type {string}
|
|
644
|
+
* @memberof AgentOutput
|
|
645
|
+
*/
|
|
646
|
+
'purpose': string | null;
|
|
647
|
+
/**
|
|
648
|
+
*
|
|
649
|
+
* @type {string}
|
|
650
|
+
* @memberof AgentOutput
|
|
651
|
+
*/
|
|
652
|
+
'personality': string | null;
|
|
653
|
+
/**
|
|
654
|
+
*
|
|
655
|
+
* @type {string}
|
|
656
|
+
* @memberof AgentOutput
|
|
657
|
+
*/
|
|
658
|
+
'principles': string | null;
|
|
659
|
+
/**
|
|
660
|
+
*
|
|
661
|
+
* @type {string}
|
|
662
|
+
* @memberof AgentOutput
|
|
663
|
+
*/
|
|
664
|
+
'owner'?: string | null;
|
|
665
|
+
/**
|
|
666
|
+
*
|
|
667
|
+
* @type {string}
|
|
668
|
+
* @memberof AgentOutput
|
|
669
|
+
*/
|
|
670
|
+
'upstream_id'?: string | null;
|
|
671
|
+
/**
|
|
672
|
+
*
|
|
673
|
+
* @type {object}
|
|
674
|
+
* @memberof AgentOutput
|
|
675
|
+
*/
|
|
676
|
+
'upstream_extra'?: object | null;
|
|
677
|
+
/**
|
|
678
|
+
* AI model identifier to be used by this agent for processing requests.
|
|
679
|
+
* @type {string}
|
|
680
|
+
* @memberof AgentOutput
|
|
681
|
+
*/
|
|
682
|
+
'model'?: string;
|
|
683
|
+
/**
|
|
684
|
+
*
|
|
685
|
+
* @type {string}
|
|
686
|
+
* @memberof AgentOutput
|
|
687
|
+
*/
|
|
688
|
+
'prompt'?: string | null;
|
|
689
|
+
/**
|
|
690
|
+
*
|
|
691
|
+
* @type {string}
|
|
692
|
+
* @memberof AgentOutput
|
|
693
|
+
*/
|
|
694
|
+
'prompt_append'?: string | null;
|
|
695
|
+
/**
|
|
696
|
+
*
|
|
697
|
+
* @type {number}
|
|
698
|
+
* @memberof AgentOutput
|
|
699
|
+
*/
|
|
700
|
+
'temperature'?: number | null;
|
|
701
|
+
/**
|
|
702
|
+
*
|
|
703
|
+
* @type {number}
|
|
704
|
+
* @memberof AgentOutput
|
|
705
|
+
*/
|
|
706
|
+
'frequency_penalty'?: number | null;
|
|
707
|
+
/**
|
|
708
|
+
*
|
|
709
|
+
* @type {number}
|
|
710
|
+
* @memberof AgentOutput
|
|
711
|
+
*/
|
|
712
|
+
'presence_penalty'?: number | null;
|
|
713
|
+
/**
|
|
714
|
+
*
|
|
715
|
+
* @type {string}
|
|
716
|
+
* @memberof AgentOutput
|
|
717
|
+
*/
|
|
718
|
+
'short_term_memory_strategy'?: AgentOutputShortTermMemoryStrategyEnum | null;
|
|
719
|
+
/**
|
|
720
|
+
*
|
|
721
|
+
* @type {Array<AgentAutonomous>}
|
|
722
|
+
* @memberof AgentOutput
|
|
723
|
+
*/
|
|
724
|
+
'autonomous'?: Array<AgentAutonomous> | null;
|
|
725
|
+
/**
|
|
726
|
+
*
|
|
727
|
+
* @type {string}
|
|
728
|
+
* @memberof AgentOutput
|
|
729
|
+
*/
|
|
730
|
+
'example_intro'?: string | null;
|
|
731
|
+
/**
|
|
732
|
+
*
|
|
733
|
+
* @type {Array<AgentExample>}
|
|
734
|
+
* @memberof AgentOutput
|
|
735
|
+
*/
|
|
736
|
+
'examples'?: Array<AgentExample> | null;
|
|
737
|
+
/**
|
|
738
|
+
*
|
|
739
|
+
* @type {object}
|
|
740
|
+
* @memberof AgentOutput
|
|
741
|
+
*/
|
|
742
|
+
'skills'?: object | null;
|
|
743
|
+
/**
|
|
744
|
+
*
|
|
745
|
+
* @type {string}
|
|
746
|
+
* @memberof AgentOutput
|
|
747
|
+
*/
|
|
748
|
+
'wallet_provider'?: AgentOutputWalletProviderEnum | null;
|
|
207
749
|
/**
|
|
208
|
-
*
|
|
750
|
+
*
|
|
751
|
+
* @type {string}
|
|
752
|
+
* @memberof AgentOutput
|
|
209
753
|
*/
|
|
210
|
-
'
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* Request model for agent generation.
|
|
214
|
-
*/
|
|
215
|
-
export interface AgentGenerateRequest {
|
|
754
|
+
'readonly_wallet_address'?: string | null;
|
|
216
755
|
/**
|
|
217
|
-
*
|
|
756
|
+
*
|
|
757
|
+
* @type {string}
|
|
758
|
+
* @memberof AgentOutput
|
|
218
759
|
*/
|
|
219
|
-
'
|
|
220
|
-
'existing_agent'?: AgentUpdate | null;
|
|
221
|
-
'project_id'?: string | null;
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* Response model for agent generation.
|
|
225
|
-
*/
|
|
226
|
-
export interface AgentGenerateResponse {
|
|
760
|
+
'network_id'?: AgentOutputNetworkIdEnum | null;
|
|
227
761
|
/**
|
|
228
|
-
*
|
|
762
|
+
*
|
|
763
|
+
* @type {string}
|
|
764
|
+
* @memberof AgentOutput
|
|
229
765
|
*/
|
|
230
|
-
'
|
|
766
|
+
'cdp_network_id'?: AgentOutputCdpNetworkIdEnum | null;
|
|
231
767
|
/**
|
|
232
|
-
*
|
|
768
|
+
*
|
|
769
|
+
* @type {boolean}
|
|
770
|
+
* @memberof AgentOutput
|
|
233
771
|
*/
|
|
234
|
-
'
|
|
772
|
+
'telegram_entrypoint_enabled'?: boolean | null;
|
|
235
773
|
/**
|
|
236
|
-
*
|
|
774
|
+
*
|
|
775
|
+
* @type {string}
|
|
776
|
+
* @memberof AgentOutput
|
|
237
777
|
*/
|
|
238
|
-
'
|
|
778
|
+
'telegram_entrypoint_prompt'?: string | null;
|
|
239
779
|
/**
|
|
240
|
-
*
|
|
780
|
+
*
|
|
781
|
+
* @type {object}
|
|
782
|
+
* @memberof AgentOutput
|
|
241
783
|
*/
|
|
242
|
-
'
|
|
784
|
+
'telegram_config'?: object | null;
|
|
243
785
|
/**
|
|
244
|
-
*
|
|
786
|
+
*
|
|
787
|
+
* @type {string}
|
|
788
|
+
* @memberof AgentOutput
|
|
245
789
|
*/
|
|
246
|
-
'
|
|
790
|
+
'xmtp_entrypoint_prompt'?: string | null;
|
|
247
791
|
/**
|
|
248
|
-
*
|
|
792
|
+
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
793
|
+
* @type {string}
|
|
794
|
+
* @memberof AgentOutput
|
|
249
795
|
*/
|
|
250
|
-
'
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* Paginated response model for agents list. Contains a list of agents, a flag indicating if more items are available, and a cursor for pagination.
|
|
254
|
-
*/
|
|
255
|
-
export interface AgentListResponse {
|
|
796
|
+
'id'?: string;
|
|
256
797
|
/**
|
|
257
|
-
*
|
|
798
|
+
* Timestamp when the agent was created, will ignore when importing
|
|
799
|
+
* @type {string}
|
|
800
|
+
* @memberof AgentOutput
|
|
258
801
|
*/
|
|
259
|
-
'
|
|
802
|
+
'created_at'?: string;
|
|
260
803
|
/**
|
|
261
|
-
*
|
|
804
|
+
* Timestamp when the agent was last updated, will ignore when importing
|
|
805
|
+
* @type {string}
|
|
806
|
+
* @memberof AgentOutput
|
|
262
807
|
*/
|
|
263
|
-
'
|
|
264
|
-
'next_cursor'?: string | null;
|
|
808
|
+
'updated_at'?: string;
|
|
265
809
|
}
|
|
810
|
+
|
|
811
|
+
export const AgentOutputModeEnum = {
|
|
812
|
+
Public: 'public',
|
|
813
|
+
Private: 'private'
|
|
814
|
+
} as const;
|
|
815
|
+
|
|
816
|
+
export type AgentOutputModeEnum = typeof AgentOutputModeEnum[keyof typeof AgentOutputModeEnum];
|
|
817
|
+
export const AgentOutputShortTermMemoryStrategyEnum = {
|
|
818
|
+
Trim: 'trim',
|
|
819
|
+
Summarize: 'summarize'
|
|
820
|
+
} as const;
|
|
821
|
+
|
|
822
|
+
export type AgentOutputShortTermMemoryStrategyEnum = typeof AgentOutputShortTermMemoryStrategyEnum[keyof typeof AgentOutputShortTermMemoryStrategyEnum];
|
|
823
|
+
export const AgentOutputWalletProviderEnum = {
|
|
824
|
+
Cdp: 'cdp',
|
|
825
|
+
Readonly: 'readonly'
|
|
826
|
+
} as const;
|
|
827
|
+
|
|
828
|
+
export type AgentOutputWalletProviderEnum = typeof AgentOutputWalletProviderEnum[keyof typeof AgentOutputWalletProviderEnum];
|
|
829
|
+
export const AgentOutputNetworkIdEnum = {
|
|
830
|
+
EthereumMainnet: 'ethereum-mainnet',
|
|
831
|
+
EthereumSepolia: 'ethereum-sepolia',
|
|
832
|
+
PolygonMainnet: 'polygon-mainnet',
|
|
833
|
+
PolygonMumbai: 'polygon-mumbai',
|
|
834
|
+
BaseMainnet: 'base-mainnet',
|
|
835
|
+
BaseSepolia: 'base-sepolia',
|
|
836
|
+
ArbitrumMainnet: 'arbitrum-mainnet',
|
|
837
|
+
ArbitrumSepolia: 'arbitrum-sepolia',
|
|
838
|
+
OptimismMainnet: 'optimism-mainnet',
|
|
839
|
+
OptimismSepolia: 'optimism-sepolia',
|
|
840
|
+
Solana: 'solana'
|
|
841
|
+
} as const;
|
|
842
|
+
|
|
843
|
+
export type AgentOutputNetworkIdEnum = typeof AgentOutputNetworkIdEnum[keyof typeof AgentOutputNetworkIdEnum];
|
|
844
|
+
export const AgentOutputCdpNetworkIdEnum = {
|
|
845
|
+
EthereumMainnet: 'ethereum-mainnet',
|
|
846
|
+
EthereumSepolia: 'ethereum-sepolia',
|
|
847
|
+
PolygonMainnet: 'polygon-mainnet',
|
|
848
|
+
PolygonMumbai: 'polygon-mumbai',
|
|
849
|
+
BaseMainnet: 'base-mainnet',
|
|
850
|
+
BaseSepolia: 'base-sepolia',
|
|
851
|
+
ArbitrumMainnet: 'arbitrum-mainnet',
|
|
852
|
+
ArbitrumSepolia: 'arbitrum-sepolia',
|
|
853
|
+
OptimismMainnet: 'optimism-mainnet',
|
|
854
|
+
OptimismSepolia: 'optimism-sepolia'
|
|
855
|
+
} as const;
|
|
856
|
+
|
|
857
|
+
export type AgentOutputCdpNetworkIdEnum = typeof AgentOutputCdpNetworkIdEnum[keyof typeof AgentOutputCdpNetworkIdEnum];
|
|
858
|
+
|
|
266
859
|
/**
|
|
267
860
|
* Response model for Agent API.
|
|
861
|
+
* @export
|
|
862
|
+
* @interface AgentResponse
|
|
268
863
|
*/
|
|
269
864
|
export interface AgentResponse {
|
|
270
865
|
/**
|
|
271
866
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
867
|
+
* @type {string}
|
|
868
|
+
* @memberof AgentResponse
|
|
272
869
|
*/
|
|
273
870
|
'id': string;
|
|
274
871
|
/**
|
|
275
872
|
* Timestamp when the agent was created, will ignore when importing
|
|
873
|
+
* @type {string}
|
|
874
|
+
* @memberof AgentResponse
|
|
276
875
|
*/
|
|
277
876
|
'created_at': string;
|
|
278
877
|
/**
|
|
279
878
|
* Timestamp when the agent was last updated, will ignore when importing
|
|
879
|
+
* @type {string}
|
|
880
|
+
* @memberof AgentResponse
|
|
280
881
|
*/
|
|
281
882
|
'updated_at': string;
|
|
883
|
+
/**
|
|
884
|
+
*
|
|
885
|
+
* @type {string}
|
|
886
|
+
* @memberof AgentResponse
|
|
887
|
+
*/
|
|
282
888
|
'name'?: string | null;
|
|
889
|
+
/**
|
|
890
|
+
*
|
|
891
|
+
* @type {string}
|
|
892
|
+
* @memberof AgentResponse
|
|
893
|
+
*/
|
|
283
894
|
'slug'?: string | null;
|
|
895
|
+
/**
|
|
896
|
+
*
|
|
897
|
+
* @type {string}
|
|
898
|
+
* @memberof AgentResponse
|
|
899
|
+
*/
|
|
284
900
|
'description'?: string | null;
|
|
901
|
+
/**
|
|
902
|
+
*
|
|
903
|
+
* @type {string}
|
|
904
|
+
* @memberof AgentResponse
|
|
905
|
+
*/
|
|
285
906
|
'external_website'?: string | null;
|
|
907
|
+
/**
|
|
908
|
+
*
|
|
909
|
+
* @type {string}
|
|
910
|
+
* @memberof AgentResponse
|
|
911
|
+
*/
|
|
286
912
|
'picture'?: string | null;
|
|
913
|
+
/**
|
|
914
|
+
*
|
|
915
|
+
* @type {string}
|
|
916
|
+
* @memberof AgentResponse
|
|
917
|
+
*/
|
|
287
918
|
'ticker'?: string | null;
|
|
919
|
+
/**
|
|
920
|
+
*
|
|
921
|
+
* @type {string}
|
|
922
|
+
* @memberof AgentResponse
|
|
923
|
+
*/
|
|
288
924
|
'token_address'?: string | null;
|
|
925
|
+
/**
|
|
926
|
+
*
|
|
927
|
+
* @type {string}
|
|
928
|
+
* @memberof AgentResponse
|
|
929
|
+
*/
|
|
289
930
|
'token_pool'?: string | null;
|
|
931
|
+
/**
|
|
932
|
+
*
|
|
933
|
+
* @type {string}
|
|
934
|
+
* @memberof AgentResponse
|
|
935
|
+
*/
|
|
290
936
|
'mode'?: AgentResponseModeEnum | null;
|
|
937
|
+
/**
|
|
938
|
+
*
|
|
939
|
+
* @type {string}
|
|
940
|
+
* @memberof AgentResponse
|
|
941
|
+
*/
|
|
291
942
|
'fee_percentage'?: string | null;
|
|
943
|
+
/**
|
|
944
|
+
*
|
|
945
|
+
* @type {string}
|
|
946
|
+
* @memberof AgentResponse
|
|
947
|
+
*/
|
|
292
948
|
'owner'?: string | null;
|
|
949
|
+
/**
|
|
950
|
+
*
|
|
951
|
+
* @type {string}
|
|
952
|
+
* @memberof AgentResponse
|
|
953
|
+
*/
|
|
293
954
|
'upstream_id'?: string | null;
|
|
955
|
+
/**
|
|
956
|
+
*
|
|
957
|
+
* @type {object}
|
|
958
|
+
* @memberof AgentResponse
|
|
959
|
+
*/
|
|
294
960
|
'upstream_extra'?: object | null;
|
|
295
961
|
/**
|
|
296
962
|
* AI model identifier to be used by this agent for processing requests. Available models: gpt-4o, gpt-4o-mini, deepseek-chat, deepseek-reasoner, grok-2, eternalai, reigent
|
|
963
|
+
* @type {string}
|
|
964
|
+
* @memberof AgentResponse
|
|
297
965
|
*/
|
|
298
966
|
'model': string;
|
|
967
|
+
/**
|
|
968
|
+
*
|
|
969
|
+
* @type {Array<object>}
|
|
970
|
+
* @memberof AgentResponse
|
|
971
|
+
*/
|
|
299
972
|
'autonomous'?: Array<object> | null;
|
|
973
|
+
/**
|
|
974
|
+
*
|
|
975
|
+
* @type {string}
|
|
976
|
+
* @memberof AgentResponse
|
|
977
|
+
*/
|
|
300
978
|
'example_intro'?: string | null;
|
|
979
|
+
/**
|
|
980
|
+
*
|
|
981
|
+
* @type {Array<AgentExample>}
|
|
982
|
+
* @memberof AgentResponse
|
|
983
|
+
*/
|
|
301
984
|
'examples'?: Array<AgentExample> | null;
|
|
985
|
+
/**
|
|
986
|
+
*
|
|
987
|
+
* @type {object}
|
|
988
|
+
* @memberof AgentResponse
|
|
989
|
+
*/
|
|
302
990
|
'skills'?: object | null;
|
|
991
|
+
/**
|
|
992
|
+
*
|
|
993
|
+
* @type {string}
|
|
994
|
+
* @memberof AgentResponse
|
|
995
|
+
*/
|
|
303
996
|
'wallet_provider'?: AgentResponseWalletProviderEnum | null;
|
|
997
|
+
/**
|
|
998
|
+
*
|
|
999
|
+
* @type {string}
|
|
1000
|
+
* @memberof AgentResponse
|
|
1001
|
+
*/
|
|
304
1002
|
'network_id'?: string | null;
|
|
1003
|
+
/**
|
|
1004
|
+
*
|
|
1005
|
+
* @type {string}
|
|
1006
|
+
* @memberof AgentResponse
|
|
1007
|
+
*/
|
|
305
1008
|
'cdp_network_id'?: string | null;
|
|
1009
|
+
/**
|
|
1010
|
+
*
|
|
1011
|
+
* @type {boolean}
|
|
1012
|
+
* @memberof AgentResponse
|
|
1013
|
+
*/
|
|
306
1014
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
1015
|
+
/**
|
|
1016
|
+
*
|
|
1017
|
+
* @type {string}
|
|
1018
|
+
* @memberof AgentResponse
|
|
1019
|
+
*/
|
|
307
1020
|
'cdp_wallet_address': string | null;
|
|
1021
|
+
/**
|
|
1022
|
+
*
|
|
1023
|
+
* @type {string}
|
|
1024
|
+
* @memberof AgentResponse
|
|
1025
|
+
*/
|
|
308
1026
|
'evm_wallet_address': string | null;
|
|
1027
|
+
/**
|
|
1028
|
+
*
|
|
1029
|
+
* @type {string}
|
|
1030
|
+
* @memberof AgentResponse
|
|
1031
|
+
*/
|
|
309
1032
|
'solana_wallet_address': string | null;
|
|
310
1033
|
/**
|
|
311
1034
|
* Whether the agent has linked their Twitter account
|
|
1035
|
+
* @type {boolean}
|
|
1036
|
+
* @memberof AgentResponse
|
|
312
1037
|
*/
|
|
313
1038
|
'has_twitter_linked': boolean;
|
|
1039
|
+
/**
|
|
1040
|
+
*
|
|
1041
|
+
* @type {string}
|
|
1042
|
+
* @memberof AgentResponse
|
|
1043
|
+
*/
|
|
314
1044
|
'linked_twitter_username': string | null;
|
|
1045
|
+
/**
|
|
1046
|
+
*
|
|
1047
|
+
* @type {string}
|
|
1048
|
+
* @memberof AgentResponse
|
|
1049
|
+
*/
|
|
315
1050
|
'linked_twitter_name': string | null;
|
|
316
1051
|
/**
|
|
317
1052
|
* Whether the agent has self-keyed their Twitter account
|
|
1053
|
+
* @type {boolean}
|
|
1054
|
+
* @memberof AgentResponse
|
|
318
1055
|
*/
|
|
319
1056
|
'has_twitter_self_key': boolean;
|
|
320
1057
|
/**
|
|
321
1058
|
* Whether the agent has self-keyed their Telegram account
|
|
1059
|
+
* @type {boolean}
|
|
1060
|
+
* @memberof AgentResponse
|
|
322
1061
|
*/
|
|
323
1062
|
'has_telegram_self_key': boolean;
|
|
1063
|
+
/**
|
|
1064
|
+
*
|
|
1065
|
+
* @type {string}
|
|
1066
|
+
* @memberof AgentResponse
|
|
1067
|
+
*/
|
|
324
1068
|
'linked_telegram_username': string | null;
|
|
1069
|
+
/**
|
|
1070
|
+
*
|
|
1071
|
+
* @type {string}
|
|
1072
|
+
* @memberof AgentResponse
|
|
1073
|
+
*/
|
|
325
1074
|
'linked_telegram_name': string | null;
|
|
326
1075
|
/**
|
|
327
1076
|
* Whether the agent accepts image inputs in public mode
|
|
1077
|
+
* @type {boolean}
|
|
1078
|
+
* @memberof AgentResponse
|
|
328
1079
|
*/
|
|
329
1080
|
'accept_image_input': boolean;
|
|
330
1081
|
/**
|
|
331
1082
|
* Whether the agent accepts image inputs in private mode
|
|
1083
|
+
* @type {boolean}
|
|
1084
|
+
* @memberof AgentResponse
|
|
332
1085
|
*/
|
|
333
1086
|
'accept_image_input_private': boolean;
|
|
334
1087
|
}
|
|
@@ -348,6 +1101,8 @@ export type AgentResponseWalletProviderEnum = typeof AgentResponseWalletProvider
|
|
|
348
1101
|
|
|
349
1102
|
/**
|
|
350
1103
|
* Sort options for agents list.
|
|
1104
|
+
* @export
|
|
1105
|
+
* @enum {string}
|
|
351
1106
|
*/
|
|
352
1107
|
|
|
353
1108
|
export const AgentSortOption = {
|
|
@@ -361,110 +1116,316 @@ export type AgentSortOption = typeof AgentSortOption[keyof typeof AgentSortOptio
|
|
|
361
1116
|
|
|
362
1117
|
/**
|
|
363
1118
|
* Response model for agent statistics.
|
|
1119
|
+
* @export
|
|
1120
|
+
* @interface AgentStatisticsResponse
|
|
364
1121
|
*/
|
|
365
1122
|
export interface AgentStatisticsResponse {
|
|
366
1123
|
/**
|
|
367
1124
|
* ID of the agent
|
|
1125
|
+
* @type {string}
|
|
1126
|
+
* @memberof AgentStatisticsResponse
|
|
368
1127
|
*/
|
|
369
1128
|
'agent_id': string;
|
|
370
1129
|
/**
|
|
371
1130
|
* ID of the agent\'s credit account
|
|
1131
|
+
* @type {string}
|
|
1132
|
+
* @memberof AgentStatisticsResponse
|
|
372
1133
|
*/
|
|
373
1134
|
'account_id': string;
|
|
374
1135
|
/**
|
|
375
1136
|
* Total balance of the agent\'s account
|
|
1137
|
+
* @type {string}
|
|
1138
|
+
* @memberof AgentStatisticsResponse
|
|
376
1139
|
*/
|
|
377
1140
|
'balance': string;
|
|
378
1141
|
/**
|
|
379
1142
|
* Total income from all credit events
|
|
1143
|
+
* @type {string}
|
|
1144
|
+
* @memberof AgentStatisticsResponse
|
|
380
1145
|
*/
|
|
381
1146
|
'total_income': string;
|
|
382
1147
|
/**
|
|
383
1148
|
* Net income from all credit events
|
|
1149
|
+
* @type {string}
|
|
1150
|
+
* @memberof AgentStatisticsResponse
|
|
384
1151
|
*/
|
|
385
1152
|
'net_income': string;
|
|
386
1153
|
/**
|
|
387
1154
|
* Permanent income from all credit events
|
|
1155
|
+
* @type {string}
|
|
1156
|
+
* @memberof AgentStatisticsResponse
|
|
388
1157
|
*/
|
|
389
1158
|
'permanent_income': string;
|
|
390
1159
|
/**
|
|
391
1160
|
* Permanent profit from all credit events
|
|
1161
|
+
* @type {string}
|
|
1162
|
+
* @memberof AgentStatisticsResponse
|
|
392
1163
|
*/
|
|
393
1164
|
'permanent_profit': string;
|
|
394
1165
|
/**
|
|
395
1166
|
* Income from last 24 hours
|
|
1167
|
+
* @type {string}
|
|
1168
|
+
* @memberof AgentStatisticsResponse
|
|
396
1169
|
*/
|
|
397
1170
|
'last_24h_income': string;
|
|
398
1171
|
/**
|
|
399
1172
|
* Permanent income from last 24 hours
|
|
1173
|
+
* @type {string}
|
|
1174
|
+
* @memberof AgentStatisticsResponse
|
|
400
1175
|
*/
|
|
401
1176
|
'last_24h_permanent_income': string;
|
|
402
1177
|
/**
|
|
403
1178
|
* Average action cost
|
|
1179
|
+
* @type {string}
|
|
1180
|
+
* @memberof AgentStatisticsResponse
|
|
404
1181
|
*/
|
|
405
1182
|
'avg_action_cost': string;
|
|
406
1183
|
/**
|
|
407
1184
|
* Minimum action cost
|
|
1185
|
+
* @type {string}
|
|
1186
|
+
* @memberof AgentStatisticsResponse
|
|
408
1187
|
*/
|
|
409
1188
|
'min_action_cost': string;
|
|
410
1189
|
/**
|
|
411
1190
|
* Maximum action cost
|
|
1191
|
+
* @type {string}
|
|
1192
|
+
* @memberof AgentStatisticsResponse
|
|
412
1193
|
*/
|
|
413
1194
|
'max_action_cost': string;
|
|
414
1195
|
/**
|
|
415
1196
|
* Low action cost
|
|
1197
|
+
* @type {string}
|
|
1198
|
+
* @memberof AgentStatisticsResponse
|
|
416
1199
|
*/
|
|
417
1200
|
'low_action_cost': string;
|
|
418
1201
|
/**
|
|
419
1202
|
* Medium action cost
|
|
1203
|
+
* @type {string}
|
|
1204
|
+
* @memberof AgentStatisticsResponse
|
|
420
1205
|
*/
|
|
421
1206
|
'medium_action_cost': string;
|
|
422
1207
|
/**
|
|
423
1208
|
* High action cost
|
|
1209
|
+
* @type {string}
|
|
1210
|
+
* @memberof AgentStatisticsResponse
|
|
424
1211
|
*/
|
|
425
1212
|
'high_action_cost': string;
|
|
426
1213
|
}
|
|
427
1214
|
/**
|
|
428
1215
|
* Agent update model.
|
|
1216
|
+
* @export
|
|
1217
|
+
* @interface AgentUpdate
|
|
429
1218
|
*/
|
|
430
1219
|
export interface AgentUpdate {
|
|
1220
|
+
/**
|
|
1221
|
+
*
|
|
1222
|
+
* @type {string}
|
|
1223
|
+
* @memberof AgentUpdate
|
|
1224
|
+
*/
|
|
431
1225
|
'name': string | null;
|
|
1226
|
+
/**
|
|
1227
|
+
*
|
|
1228
|
+
* @type {string}
|
|
1229
|
+
* @memberof AgentUpdate
|
|
1230
|
+
*/
|
|
432
1231
|
'slug'?: string | null;
|
|
1232
|
+
/**
|
|
1233
|
+
*
|
|
1234
|
+
* @type {string}
|
|
1235
|
+
* @memberof AgentUpdate
|
|
1236
|
+
*/
|
|
433
1237
|
'description'?: string | null;
|
|
1238
|
+
/**
|
|
1239
|
+
*
|
|
1240
|
+
* @type {string}
|
|
1241
|
+
* @memberof AgentUpdate
|
|
1242
|
+
*/
|
|
434
1243
|
'external_website'?: string | null;
|
|
1244
|
+
/**
|
|
1245
|
+
*
|
|
1246
|
+
* @type {string}
|
|
1247
|
+
* @memberof AgentUpdate
|
|
1248
|
+
*/
|
|
435
1249
|
'picture'?: string | null;
|
|
1250
|
+
/**
|
|
1251
|
+
*
|
|
1252
|
+
* @type {string}
|
|
1253
|
+
* @memberof AgentUpdate
|
|
1254
|
+
*/
|
|
436
1255
|
'ticker'?: string | null;
|
|
1256
|
+
/**
|
|
1257
|
+
*
|
|
1258
|
+
* @type {string}
|
|
1259
|
+
* @memberof AgentUpdate
|
|
1260
|
+
*/
|
|
437
1261
|
'token_address'?: string | null;
|
|
1262
|
+
/**
|
|
1263
|
+
*
|
|
1264
|
+
* @type {string}
|
|
1265
|
+
* @memberof AgentUpdate
|
|
1266
|
+
*/
|
|
438
1267
|
'token_pool'?: string | null;
|
|
1268
|
+
/**
|
|
1269
|
+
*
|
|
1270
|
+
* @type {string}
|
|
1271
|
+
* @memberof AgentUpdate
|
|
1272
|
+
*/
|
|
439
1273
|
'mode'?: AgentUpdateModeEnum | null;
|
|
1274
|
+
/**
|
|
1275
|
+
*
|
|
1276
|
+
* @type {FeePercentage}
|
|
1277
|
+
* @memberof AgentUpdate
|
|
1278
|
+
*/
|
|
440
1279
|
'fee_percentage'?: FeePercentage | null;
|
|
1280
|
+
/**
|
|
1281
|
+
*
|
|
1282
|
+
* @type {string}
|
|
1283
|
+
* @memberof AgentUpdate
|
|
1284
|
+
*/
|
|
441
1285
|
'purpose': string | null;
|
|
1286
|
+
/**
|
|
1287
|
+
*
|
|
1288
|
+
* @type {string}
|
|
1289
|
+
* @memberof AgentUpdate
|
|
1290
|
+
*/
|
|
442
1291
|
'personality': string | null;
|
|
1292
|
+
/**
|
|
1293
|
+
*
|
|
1294
|
+
* @type {string}
|
|
1295
|
+
* @memberof AgentUpdate
|
|
1296
|
+
*/
|
|
443
1297
|
'principles': string | null;
|
|
1298
|
+
/**
|
|
1299
|
+
*
|
|
1300
|
+
* @type {string}
|
|
1301
|
+
* @memberof AgentUpdate
|
|
1302
|
+
*/
|
|
444
1303
|
'owner'?: string | null;
|
|
1304
|
+
/**
|
|
1305
|
+
*
|
|
1306
|
+
* @type {string}
|
|
1307
|
+
* @memberof AgentUpdate
|
|
1308
|
+
*/
|
|
445
1309
|
'upstream_id'?: string | null;
|
|
1310
|
+
/**
|
|
1311
|
+
*
|
|
1312
|
+
* @type {object}
|
|
1313
|
+
* @memberof AgentUpdate
|
|
1314
|
+
*/
|
|
446
1315
|
'upstream_extra'?: object | null;
|
|
447
1316
|
/**
|
|
448
1317
|
* AI model identifier to be used by this agent for processing requests.
|
|
1318
|
+
* @type {string}
|
|
1319
|
+
* @memberof AgentUpdate
|
|
449
1320
|
*/
|
|
450
1321
|
'model'?: string;
|
|
1322
|
+
/**
|
|
1323
|
+
*
|
|
1324
|
+
* @type {string}
|
|
1325
|
+
* @memberof AgentUpdate
|
|
1326
|
+
*/
|
|
451
1327
|
'prompt'?: string | null;
|
|
1328
|
+
/**
|
|
1329
|
+
*
|
|
1330
|
+
* @type {string}
|
|
1331
|
+
* @memberof AgentUpdate
|
|
1332
|
+
*/
|
|
452
1333
|
'prompt_append'?: string | null;
|
|
1334
|
+
/**
|
|
1335
|
+
*
|
|
1336
|
+
* @type {number}
|
|
1337
|
+
* @memberof AgentUpdate
|
|
1338
|
+
*/
|
|
453
1339
|
'temperature'?: number | null;
|
|
1340
|
+
/**
|
|
1341
|
+
*
|
|
1342
|
+
* @type {number}
|
|
1343
|
+
* @memberof AgentUpdate
|
|
1344
|
+
*/
|
|
454
1345
|
'frequency_penalty'?: number | null;
|
|
1346
|
+
/**
|
|
1347
|
+
*
|
|
1348
|
+
* @type {number}
|
|
1349
|
+
* @memberof AgentUpdate
|
|
1350
|
+
*/
|
|
455
1351
|
'presence_penalty'?: number | null;
|
|
1352
|
+
/**
|
|
1353
|
+
*
|
|
1354
|
+
* @type {string}
|
|
1355
|
+
* @memberof AgentUpdate
|
|
1356
|
+
*/
|
|
456
1357
|
'short_term_memory_strategy'?: AgentUpdateShortTermMemoryStrategyEnum | null;
|
|
1358
|
+
/**
|
|
1359
|
+
*
|
|
1360
|
+
* @type {Array<AgentAutonomous>}
|
|
1361
|
+
* @memberof AgentUpdate
|
|
1362
|
+
*/
|
|
457
1363
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
1364
|
+
/**
|
|
1365
|
+
*
|
|
1366
|
+
* @type {string}
|
|
1367
|
+
* @memberof AgentUpdate
|
|
1368
|
+
*/
|
|
458
1369
|
'example_intro'?: string | null;
|
|
1370
|
+
/**
|
|
1371
|
+
*
|
|
1372
|
+
* @type {Array<AgentExample>}
|
|
1373
|
+
* @memberof AgentUpdate
|
|
1374
|
+
*/
|
|
459
1375
|
'examples'?: Array<AgentExample> | null;
|
|
1376
|
+
/**
|
|
1377
|
+
*
|
|
1378
|
+
* @type {object}
|
|
1379
|
+
* @memberof AgentUpdate
|
|
1380
|
+
*/
|
|
460
1381
|
'skills'?: object | null;
|
|
1382
|
+
/**
|
|
1383
|
+
*
|
|
1384
|
+
* @type {string}
|
|
1385
|
+
* @memberof AgentUpdate
|
|
1386
|
+
*/
|
|
461
1387
|
'wallet_provider'?: AgentUpdateWalletProviderEnum | null;
|
|
1388
|
+
/**
|
|
1389
|
+
*
|
|
1390
|
+
* @type {string}
|
|
1391
|
+
* @memberof AgentUpdate
|
|
1392
|
+
*/
|
|
462
1393
|
'readonly_wallet_address'?: string | null;
|
|
1394
|
+
/**
|
|
1395
|
+
*
|
|
1396
|
+
* @type {string}
|
|
1397
|
+
* @memberof AgentUpdate
|
|
1398
|
+
*/
|
|
463
1399
|
'network_id'?: AgentUpdateNetworkIdEnum | null;
|
|
1400
|
+
/**
|
|
1401
|
+
*
|
|
1402
|
+
* @type {string}
|
|
1403
|
+
* @memberof AgentUpdate
|
|
1404
|
+
*/
|
|
464
1405
|
'cdp_network_id'?: AgentUpdateCdpNetworkIdEnum | null;
|
|
1406
|
+
/**
|
|
1407
|
+
*
|
|
1408
|
+
* @type {boolean}
|
|
1409
|
+
* @memberof AgentUpdate
|
|
1410
|
+
*/
|
|
465
1411
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
1412
|
+
/**
|
|
1413
|
+
*
|
|
1414
|
+
* @type {string}
|
|
1415
|
+
* @memberof AgentUpdate
|
|
1416
|
+
*/
|
|
466
1417
|
'telegram_entrypoint_prompt'?: string | null;
|
|
1418
|
+
/**
|
|
1419
|
+
*
|
|
1420
|
+
* @type {object}
|
|
1421
|
+
* @memberof AgentUpdate
|
|
1422
|
+
*/
|
|
467
1423
|
'telegram_config'?: object | null;
|
|
1424
|
+
/**
|
|
1425
|
+
*
|
|
1426
|
+
* @type {string}
|
|
1427
|
+
* @memberof AgentUpdate
|
|
1428
|
+
*/
|
|
468
1429
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
469
1430
|
}
|
|
470
1431
|
|
|
@@ -518,19 +1479,27 @@ export type AgentUpdateCdpNetworkIdEnum = typeof AgentUpdateCdpNetworkIdEnum[key
|
|
|
518
1479
|
|
|
519
1480
|
/**
|
|
520
1481
|
* Model for individual asset with symbol and balance.
|
|
1482
|
+
* @export
|
|
1483
|
+
* @interface Asset
|
|
521
1484
|
*/
|
|
522
1485
|
export interface Asset {
|
|
523
1486
|
/**
|
|
524
1487
|
* Asset symbol (e.g., ETH, USDC, NATION)
|
|
1488
|
+
* @type {string}
|
|
1489
|
+
* @memberof Asset
|
|
525
1490
|
*/
|
|
526
1491
|
'symbol': string;
|
|
527
1492
|
/**
|
|
528
1493
|
* Asset balance as decimal
|
|
1494
|
+
* @type {string}
|
|
1495
|
+
* @memberof Asset
|
|
529
1496
|
*/
|
|
530
1497
|
'balance': string;
|
|
531
1498
|
}
|
|
532
1499
|
/**
|
|
533
1500
|
* Type of message author.
|
|
1501
|
+
* @export
|
|
1502
|
+
* @enum {string}
|
|
534
1503
|
*/
|
|
535
1504
|
|
|
536
1505
|
export const AuthorType = {
|
|
@@ -550,95 +1519,195 @@ export type AuthorType = typeof AuthorType[keyof typeof AuthorType];
|
|
|
550
1519
|
|
|
551
1520
|
/**
|
|
552
1521
|
* Chat model with all fields including server-generated ones.
|
|
1522
|
+
* @export
|
|
1523
|
+
* @interface Chat
|
|
553
1524
|
*/
|
|
554
1525
|
export interface Chat {
|
|
555
1526
|
/**
|
|
556
1527
|
* Unique identifier for the chat
|
|
1528
|
+
* @type {string}
|
|
1529
|
+
* @memberof Chat
|
|
557
1530
|
*/
|
|
558
1531
|
'id'?: string;
|
|
559
1532
|
/**
|
|
560
1533
|
* ID of the agent this chat belongs to
|
|
1534
|
+
* @type {string}
|
|
1535
|
+
* @memberof Chat
|
|
561
1536
|
*/
|
|
562
1537
|
'agent_id': string;
|
|
563
1538
|
/**
|
|
564
1539
|
* User ID of the chat
|
|
1540
|
+
* @type {string}
|
|
1541
|
+
* @memberof Chat
|
|
565
1542
|
*/
|
|
566
1543
|
'user_id': string;
|
|
567
1544
|
/**
|
|
568
1545
|
* Summary of the chat
|
|
1546
|
+
* @type {string}
|
|
1547
|
+
* @memberof Chat
|
|
569
1548
|
*/
|
|
570
1549
|
'summary'?: string;
|
|
571
1550
|
/**
|
|
572
1551
|
* Number of rounds in the chat
|
|
1552
|
+
* @type {number}
|
|
1553
|
+
* @memberof Chat
|
|
573
1554
|
*/
|
|
574
1555
|
'rounds'?: number;
|
|
575
1556
|
/**
|
|
576
1557
|
* Timestamp when this chat was created
|
|
1558
|
+
* @type {string}
|
|
1559
|
+
* @memberof Chat
|
|
577
1560
|
*/
|
|
578
1561
|
'created_at': string;
|
|
579
1562
|
/**
|
|
580
1563
|
* Timestamp when this chat was updated
|
|
1564
|
+
* @type {string}
|
|
1565
|
+
* @memberof Chat
|
|
581
1566
|
*/
|
|
582
1567
|
'updated_at': string;
|
|
583
1568
|
}
|
|
584
1569
|
/**
|
|
585
1570
|
* Chat message model with all fields including server-generated ones.
|
|
1571
|
+
* @export
|
|
1572
|
+
* @interface ChatMessage
|
|
586
1573
|
*/
|
|
587
1574
|
export interface ChatMessage {
|
|
588
1575
|
/**
|
|
589
1576
|
* Unique identifier for the chat message
|
|
1577
|
+
* @type {string}
|
|
1578
|
+
* @memberof ChatMessage
|
|
590
1579
|
*/
|
|
591
1580
|
'id'?: string;
|
|
592
1581
|
/**
|
|
593
1582
|
* ID of the agent this message belongs to
|
|
1583
|
+
* @type {string}
|
|
1584
|
+
* @memberof ChatMessage
|
|
594
1585
|
*/
|
|
595
1586
|
'agent_id': string;
|
|
596
1587
|
/**
|
|
597
1588
|
* ID of the chat this message belongs to
|
|
1589
|
+
* @type {string}
|
|
1590
|
+
* @memberof ChatMessage
|
|
598
1591
|
*/
|
|
599
1592
|
'chat_id': string;
|
|
1593
|
+
/**
|
|
1594
|
+
*
|
|
1595
|
+
* @type {string}
|
|
1596
|
+
* @memberof ChatMessage
|
|
1597
|
+
*/
|
|
600
1598
|
'user_id': string | null;
|
|
601
1599
|
/**
|
|
602
1600
|
* ID of the message author
|
|
1601
|
+
* @type {string}
|
|
1602
|
+
* @memberof ChatMessage
|
|
603
1603
|
*/
|
|
604
1604
|
'author_id': string;
|
|
605
1605
|
/**
|
|
606
1606
|
* Type of the message author
|
|
1607
|
+
* @type {AuthorType}
|
|
1608
|
+
* @memberof ChatMessage
|
|
607
1609
|
*/
|
|
608
1610
|
'author_type': AuthorType;
|
|
1611
|
+
/**
|
|
1612
|
+
*
|
|
1613
|
+
* @type {string}
|
|
1614
|
+
* @memberof ChatMessage
|
|
1615
|
+
*/
|
|
609
1616
|
'model'?: string | null;
|
|
1617
|
+
/**
|
|
1618
|
+
*
|
|
1619
|
+
* @type {AuthorType}
|
|
1620
|
+
* @memberof ChatMessage
|
|
1621
|
+
*/
|
|
610
1622
|
'thread_type'?: AuthorType | null;
|
|
1623
|
+
/**
|
|
1624
|
+
*
|
|
1625
|
+
* @type {string}
|
|
1626
|
+
* @memberof ChatMessage
|
|
1627
|
+
*/
|
|
611
1628
|
'reply_to'?: string | null;
|
|
612
1629
|
/**
|
|
613
1630
|
* Content of the message
|
|
1631
|
+
* @type {string}
|
|
1632
|
+
* @memberof ChatMessage
|
|
614
1633
|
*/
|
|
615
1634
|
'message': string;
|
|
1635
|
+
/**
|
|
1636
|
+
*
|
|
1637
|
+
* @type {Array<ChatMessageAttachment>}
|
|
1638
|
+
* @memberof ChatMessage
|
|
1639
|
+
*/
|
|
616
1640
|
'attachments'?: Array<ChatMessageAttachment> | null;
|
|
1641
|
+
/**
|
|
1642
|
+
*
|
|
1643
|
+
* @type {Array<ChatMessageSkillCall>}
|
|
1644
|
+
* @memberof ChatMessage
|
|
1645
|
+
*/
|
|
617
1646
|
'skill_calls'?: Array<ChatMessageSkillCall> | null;
|
|
618
1647
|
/**
|
|
619
1648
|
* Number of tokens in the input message
|
|
1649
|
+
* @type {number}
|
|
1650
|
+
* @memberof ChatMessage
|
|
620
1651
|
*/
|
|
621
1652
|
'input_tokens'?: number;
|
|
622
1653
|
/**
|
|
623
1654
|
* Number of tokens in the output message
|
|
1655
|
+
* @type {number}
|
|
1656
|
+
* @memberof ChatMessage
|
|
624
1657
|
*/
|
|
625
1658
|
'output_tokens'?: number;
|
|
626
1659
|
/**
|
|
627
1660
|
* Time cost for the message in seconds
|
|
1661
|
+
* @type {number}
|
|
1662
|
+
* @memberof ChatMessage
|
|
628
1663
|
*/
|
|
629
1664
|
'time_cost'?: number;
|
|
1665
|
+
/**
|
|
1666
|
+
*
|
|
1667
|
+
* @type {string}
|
|
1668
|
+
* @memberof ChatMessage
|
|
1669
|
+
*/
|
|
630
1670
|
'credit_event_id'?: string | null;
|
|
1671
|
+
/**
|
|
1672
|
+
*
|
|
1673
|
+
* @type {string}
|
|
1674
|
+
* @memberof ChatMessage
|
|
1675
|
+
*/
|
|
631
1676
|
'credit_cost'?: string | null;
|
|
632
1677
|
/**
|
|
633
1678
|
* Cost for the cold start of the message in seconds
|
|
1679
|
+
* @type {number}
|
|
1680
|
+
* @memberof ChatMessage
|
|
634
1681
|
*/
|
|
635
1682
|
'cold_start_cost'?: number;
|
|
1683
|
+
/**
|
|
1684
|
+
*
|
|
1685
|
+
* @type {string}
|
|
1686
|
+
* @memberof ChatMessage
|
|
1687
|
+
*/
|
|
636
1688
|
'app_id'?: string | null;
|
|
1689
|
+
/**
|
|
1690
|
+
*
|
|
1691
|
+
* @type {boolean}
|
|
1692
|
+
* @memberof ChatMessage
|
|
1693
|
+
*/
|
|
637
1694
|
'search_mode'?: boolean | null;
|
|
1695
|
+
/**
|
|
1696
|
+
*
|
|
1697
|
+
* @type {boolean}
|
|
1698
|
+
* @memberof ChatMessage
|
|
1699
|
+
*/
|
|
638
1700
|
'super_mode'?: boolean | null;
|
|
1701
|
+
/**
|
|
1702
|
+
*
|
|
1703
|
+
* @type {SystemMessageType}
|
|
1704
|
+
* @memberof ChatMessage
|
|
1705
|
+
*/
|
|
639
1706
|
'error_type'?: SystemMessageType | null;
|
|
640
1707
|
/**
|
|
641
1708
|
* Timestamp when this message was created
|
|
1709
|
+
* @type {string}
|
|
1710
|
+
* @memberof ChatMessage
|
|
642
1711
|
*/
|
|
643
1712
|
'created_at': string;
|
|
644
1713
|
}
|
|
@@ -646,19 +1715,35 @@ export interface ChatMessage {
|
|
|
646
1715
|
|
|
647
1716
|
/**
|
|
648
1717
|
* Chat message attachment model. An attachment can be a link, image, or file that is associated with a chat message.
|
|
1718
|
+
* @export
|
|
1719
|
+
* @interface ChatMessageAttachment
|
|
649
1720
|
*/
|
|
650
1721
|
export interface ChatMessageAttachment {
|
|
651
1722
|
/**
|
|
652
1723
|
* Type of the attachment (link, image, or file)
|
|
1724
|
+
* @type {ChatMessageAttachmentType}
|
|
1725
|
+
* @memberof ChatMessageAttachment
|
|
653
1726
|
*/
|
|
654
1727
|
'type': ChatMessageAttachmentType;
|
|
1728
|
+
/**
|
|
1729
|
+
*
|
|
1730
|
+
* @type {string}
|
|
1731
|
+
* @memberof ChatMessageAttachment
|
|
1732
|
+
*/
|
|
655
1733
|
'url': string | null;
|
|
1734
|
+
/**
|
|
1735
|
+
*
|
|
1736
|
+
* @type {object}
|
|
1737
|
+
* @memberof ChatMessageAttachment
|
|
1738
|
+
*/
|
|
656
1739
|
'json'?: object | null;
|
|
657
1740
|
}
|
|
658
1741
|
|
|
659
1742
|
|
|
660
1743
|
/**
|
|
661
1744
|
* Type of chat message attachment.
|
|
1745
|
+
* @export
|
|
1746
|
+
* @enum {string}
|
|
662
1747
|
*/
|
|
663
1748
|
|
|
664
1749
|
export const ChatMessageAttachmentType = {
|
|
@@ -673,93 +1758,222 @@ export type ChatMessageAttachmentType = typeof ChatMessageAttachmentType[keyof t
|
|
|
673
1758
|
|
|
674
1759
|
/**
|
|
675
1760
|
* Request model for chat messages. This model represents the request body for creating a new chat message. It contains the necessary fields to identify the chat context and message content, along with optional attachments. The user ID is obtained from authentication and not included in the request body.
|
|
1761
|
+
* @export
|
|
1762
|
+
* @interface ChatMessageRequest
|
|
676
1763
|
*/
|
|
677
1764
|
export interface ChatMessageRequest {
|
|
1765
|
+
/**
|
|
1766
|
+
*
|
|
1767
|
+
* @type {string}
|
|
1768
|
+
* @memberof ChatMessageRequest
|
|
1769
|
+
*/
|
|
678
1770
|
'app_id'?: string | null;
|
|
679
1771
|
/**
|
|
680
1772
|
* Content of the message
|
|
1773
|
+
* @type {string}
|
|
1774
|
+
* @memberof ChatMessageRequest
|
|
681
1775
|
*/
|
|
682
1776
|
'message': string;
|
|
1777
|
+
/**
|
|
1778
|
+
*
|
|
1779
|
+
* @type {boolean}
|
|
1780
|
+
* @memberof ChatMessageRequest
|
|
1781
|
+
*/
|
|
683
1782
|
'stream'?: boolean | null;
|
|
1783
|
+
/**
|
|
1784
|
+
*
|
|
1785
|
+
* @type {boolean}
|
|
1786
|
+
* @memberof ChatMessageRequest
|
|
1787
|
+
*/
|
|
684
1788
|
'search_mode'?: boolean | null;
|
|
1789
|
+
/**
|
|
1790
|
+
*
|
|
1791
|
+
* @type {boolean}
|
|
1792
|
+
* @memberof ChatMessageRequest
|
|
1793
|
+
*/
|
|
685
1794
|
'super_mode'?: boolean | null;
|
|
1795
|
+
/**
|
|
1796
|
+
*
|
|
1797
|
+
* @type {Array<ChatMessageAttachment>}
|
|
1798
|
+
* @memberof ChatMessageRequest
|
|
1799
|
+
*/
|
|
686
1800
|
'attachments'?: Array<ChatMessageAttachment> | null;
|
|
687
1801
|
}
|
|
688
1802
|
/**
|
|
689
1803
|
* TypedDict for skill call details.
|
|
1804
|
+
* @export
|
|
1805
|
+
* @interface ChatMessageSkillCall
|
|
690
1806
|
*/
|
|
691
1807
|
export interface ChatMessageSkillCall {
|
|
1808
|
+
/**
|
|
1809
|
+
*
|
|
1810
|
+
* @type {string}
|
|
1811
|
+
* @memberof ChatMessageSkillCall
|
|
1812
|
+
*/
|
|
692
1813
|
'id'?: string;
|
|
1814
|
+
/**
|
|
1815
|
+
*
|
|
1816
|
+
* @type {string}
|
|
1817
|
+
* @memberof ChatMessageSkillCall
|
|
1818
|
+
*/
|
|
693
1819
|
'name': string;
|
|
1820
|
+
/**
|
|
1821
|
+
*
|
|
1822
|
+
* @type {object}
|
|
1823
|
+
* @memberof ChatMessageSkillCall
|
|
1824
|
+
*/
|
|
694
1825
|
'parameters': object;
|
|
1826
|
+
/**
|
|
1827
|
+
*
|
|
1828
|
+
* @type {boolean}
|
|
1829
|
+
* @memberof ChatMessageSkillCall
|
|
1830
|
+
*/
|
|
695
1831
|
'success': boolean;
|
|
1832
|
+
/**
|
|
1833
|
+
*
|
|
1834
|
+
* @type {string}
|
|
1835
|
+
* @memberof ChatMessageSkillCall
|
|
1836
|
+
*/
|
|
696
1837
|
'response'?: string;
|
|
1838
|
+
/**
|
|
1839
|
+
*
|
|
1840
|
+
* @type {string}
|
|
1841
|
+
* @memberof ChatMessageSkillCall
|
|
1842
|
+
*/
|
|
697
1843
|
'error_message'?: string;
|
|
1844
|
+
/**
|
|
1845
|
+
*
|
|
1846
|
+
* @type {string}
|
|
1847
|
+
* @memberof ChatMessageSkillCall
|
|
1848
|
+
*/
|
|
698
1849
|
'credit_event_id'?: string;
|
|
1850
|
+
/**
|
|
1851
|
+
*
|
|
1852
|
+
* @type {string}
|
|
1853
|
+
* @memberof ChatMessageSkillCall
|
|
1854
|
+
*/
|
|
699
1855
|
'credit_cost'?: string;
|
|
700
1856
|
}
|
|
701
1857
|
/**
|
|
702
1858
|
* Response model for chat messages with pagination.
|
|
1859
|
+
* @export
|
|
1860
|
+
* @interface ChatMessagesResponse
|
|
703
1861
|
*/
|
|
704
1862
|
export interface ChatMessagesResponse {
|
|
1863
|
+
/**
|
|
1864
|
+
*
|
|
1865
|
+
* @type {Array<ChatMessage>}
|
|
1866
|
+
* @memberof ChatMessagesResponse
|
|
1867
|
+
*/
|
|
705
1868
|
'data': Array<ChatMessage>;
|
|
1869
|
+
/**
|
|
1870
|
+
*
|
|
1871
|
+
* @type {boolean}
|
|
1872
|
+
* @memberof ChatMessagesResponse
|
|
1873
|
+
*/
|
|
706
1874
|
'has_more'?: boolean;
|
|
1875
|
+
/**
|
|
1876
|
+
*
|
|
1877
|
+
* @type {string}
|
|
1878
|
+
* @memberof ChatMessagesResponse
|
|
1879
|
+
*/
|
|
707
1880
|
'next_cursor'?: string | null;
|
|
708
1881
|
}
|
|
709
1882
|
/**
|
|
710
1883
|
* Request model for updating a chat thread.
|
|
1884
|
+
* @export
|
|
1885
|
+
* @interface ChatUpdateRequest
|
|
711
1886
|
*/
|
|
712
1887
|
export interface ChatUpdateRequest {
|
|
713
1888
|
/**
|
|
714
1889
|
* Updated summary for the chat thread
|
|
1890
|
+
* @type {string}
|
|
1891
|
+
* @memberof ChatUpdateRequest
|
|
715
1892
|
*/
|
|
716
1893
|
'summary': string;
|
|
717
1894
|
}
|
|
718
1895
|
/**
|
|
719
1896
|
* Credit account model with all fields.
|
|
1897
|
+
* @export
|
|
1898
|
+
* @interface CreditAccount
|
|
720
1899
|
*/
|
|
721
1900
|
export interface CreditAccount {
|
|
722
1901
|
/**
|
|
723
1902
|
* Unique identifier for the credit account
|
|
1903
|
+
* @type {string}
|
|
1904
|
+
* @memberof CreditAccount
|
|
724
1905
|
*/
|
|
725
1906
|
'id'?: string;
|
|
726
1907
|
/**
|
|
727
1908
|
* Type of the account owner
|
|
1909
|
+
* @type {OwnerType}
|
|
1910
|
+
* @memberof CreditAccount
|
|
728
1911
|
*/
|
|
729
1912
|
'owner_type': OwnerType;
|
|
730
1913
|
/**
|
|
731
1914
|
* ID of the account owner
|
|
1915
|
+
* @type {string}
|
|
1916
|
+
* @memberof CreditAccount
|
|
732
1917
|
*/
|
|
733
1918
|
'owner_id': string;
|
|
734
1919
|
/**
|
|
735
1920
|
* Daily credit quota that resets each day
|
|
1921
|
+
* @type {string}
|
|
1922
|
+
* @memberof CreditAccount
|
|
736
1923
|
*/
|
|
737
1924
|
'free_quota'?: string;
|
|
738
1925
|
/**
|
|
739
1926
|
* Amount to refill hourly, not exceeding free_quota
|
|
1927
|
+
* @type {string}
|
|
1928
|
+
* @memberof CreditAccount
|
|
740
1929
|
*/
|
|
741
1930
|
'refill_amount'?: string;
|
|
742
1931
|
/**
|
|
743
1932
|
* Current available daily credits
|
|
1933
|
+
* @type {string}
|
|
1934
|
+
* @memberof CreditAccount
|
|
744
1935
|
*/
|
|
745
1936
|
'free_credits'?: string;
|
|
746
1937
|
/**
|
|
747
1938
|
* Reward credits earned through rewards
|
|
1939
|
+
* @type {string}
|
|
1940
|
+
* @memberof CreditAccount
|
|
748
1941
|
*/
|
|
749
1942
|
'reward_credits'?: string;
|
|
750
1943
|
/**
|
|
751
1944
|
* Credits added through top-ups
|
|
1945
|
+
* @type {string}
|
|
1946
|
+
* @memberof CreditAccount
|
|
752
1947
|
*/
|
|
753
1948
|
'credits'?: string;
|
|
1949
|
+
/**
|
|
1950
|
+
*
|
|
1951
|
+
* @type {string}
|
|
1952
|
+
* @memberof CreditAccount
|
|
1953
|
+
*/
|
|
754
1954
|
'income_at'?: string | null;
|
|
1955
|
+
/**
|
|
1956
|
+
*
|
|
1957
|
+
* @type {string}
|
|
1958
|
+
* @memberof CreditAccount
|
|
1959
|
+
*/
|
|
755
1960
|
'expense_at'?: string | null;
|
|
1961
|
+
/**
|
|
1962
|
+
*
|
|
1963
|
+
* @type {string}
|
|
1964
|
+
* @memberof CreditAccount
|
|
1965
|
+
*/
|
|
756
1966
|
'last_event_id'?: string | null;
|
|
757
1967
|
/**
|
|
758
1968
|
* Timestamp when this account was created
|
|
1969
|
+
* @type {string}
|
|
1970
|
+
* @memberof CreditAccount
|
|
759
1971
|
*/
|
|
760
1972
|
'created_at': string;
|
|
761
1973
|
/**
|
|
762
1974
|
* Timestamp when this account was last updated
|
|
1975
|
+
* @type {string}
|
|
1976
|
+
* @memberof CreditAccount
|
|
763
1977
|
*/
|
|
764
1978
|
'updated_at': string;
|
|
765
1979
|
}
|
|
@@ -767,6 +1981,8 @@ export interface CreditAccount {
|
|
|
767
1981
|
|
|
768
1982
|
/**
|
|
769
1983
|
* Credit or debit transaction.
|
|
1984
|
+
* @export
|
|
1985
|
+
* @enum {string}
|
|
770
1986
|
*/
|
|
771
1987
|
|
|
772
1988
|
export const CreditDebit = {
|
|
@@ -779,81 +1995,278 @@ export type CreditDebit = typeof CreditDebit[keyof typeof CreditDebit];
|
|
|
779
1995
|
|
|
780
1996
|
/**
|
|
781
1997
|
* Credit event model with all fields.
|
|
1998
|
+
* @export
|
|
1999
|
+
* @interface CreditEvent
|
|
782
2000
|
*/
|
|
783
2001
|
export interface CreditEvent {
|
|
784
2002
|
/**
|
|
785
2003
|
* Unique identifier for the credit event
|
|
2004
|
+
* @type {string}
|
|
2005
|
+
* @memberof CreditEvent
|
|
786
2006
|
*/
|
|
787
2007
|
'id'?: string;
|
|
788
2008
|
/**
|
|
789
2009
|
* Account ID from which credits flow
|
|
2010
|
+
* @type {string}
|
|
2011
|
+
* @memberof CreditEvent
|
|
790
2012
|
*/
|
|
791
2013
|
'account_id'?: string;
|
|
792
2014
|
/**
|
|
793
2015
|
* Type of the event
|
|
2016
|
+
* @type {EventType}
|
|
2017
|
+
* @memberof CreditEvent
|
|
794
2018
|
*/
|
|
795
2019
|
'event_type': EventType;
|
|
2020
|
+
/**
|
|
2021
|
+
*
|
|
2022
|
+
* @type {string}
|
|
2023
|
+
* @memberof CreditEvent
|
|
2024
|
+
*/
|
|
796
2025
|
'user_id'?: string | null;
|
|
797
2026
|
/**
|
|
798
2027
|
* Type of upstream transaction
|
|
2028
|
+
* @type {UpstreamType}
|
|
2029
|
+
* @memberof CreditEvent
|
|
799
2030
|
*/
|
|
800
2031
|
'upstream_type': UpstreamType;
|
|
801
2032
|
/**
|
|
802
2033
|
* Upstream transaction ID if any
|
|
2034
|
+
* @type {string}
|
|
2035
|
+
* @memberof CreditEvent
|
|
803
2036
|
*/
|
|
804
2037
|
'upstream_tx_id': string;
|
|
2038
|
+
/**
|
|
2039
|
+
*
|
|
2040
|
+
* @type {string}
|
|
2041
|
+
* @memberof CreditEvent
|
|
2042
|
+
*/
|
|
805
2043
|
'agent_id'?: string | null;
|
|
2044
|
+
/**
|
|
2045
|
+
*
|
|
2046
|
+
* @type {string}
|
|
2047
|
+
* @memberof CreditEvent
|
|
2048
|
+
*/
|
|
806
2049
|
'agent_wallet_address'?: string | null;
|
|
2050
|
+
/**
|
|
2051
|
+
*
|
|
2052
|
+
* @type {string}
|
|
2053
|
+
* @memberof CreditEvent
|
|
2054
|
+
*/
|
|
807
2055
|
'start_message_id'?: string | null;
|
|
2056
|
+
/**
|
|
2057
|
+
*
|
|
2058
|
+
* @type {string}
|
|
2059
|
+
* @memberof CreditEvent
|
|
2060
|
+
*/
|
|
808
2061
|
'message_id'?: string | null;
|
|
2062
|
+
/**
|
|
2063
|
+
*
|
|
2064
|
+
* @type {string}
|
|
2065
|
+
* @memberof CreditEvent
|
|
2066
|
+
*/
|
|
809
2067
|
'model'?: string | null;
|
|
2068
|
+
/**
|
|
2069
|
+
*
|
|
2070
|
+
* @type {string}
|
|
2071
|
+
* @memberof CreditEvent
|
|
2072
|
+
*/
|
|
810
2073
|
'skill_call_id'?: string | null;
|
|
2074
|
+
/**
|
|
2075
|
+
*
|
|
2076
|
+
* @type {string}
|
|
2077
|
+
* @memberof CreditEvent
|
|
2078
|
+
*/
|
|
811
2079
|
'skill_name'?: string | null;
|
|
812
2080
|
/**
|
|
813
2081
|
* Direction of the credit flow
|
|
2082
|
+
* @type {Direction}
|
|
2083
|
+
* @memberof CreditEvent
|
|
814
2084
|
*/
|
|
815
2085
|
'direction': Direction;
|
|
816
2086
|
/**
|
|
817
2087
|
* Total amount (after discount) of credits involved
|
|
2088
|
+
* @type {string}
|
|
2089
|
+
* @memberof CreditEvent
|
|
818
2090
|
*/
|
|
819
2091
|
'total_amount'?: string;
|
|
820
2092
|
/**
|
|
821
2093
|
* Type of credits involved
|
|
2094
|
+
* @type {CreditType}
|
|
2095
|
+
* @memberof CreditEvent
|
|
822
2096
|
*/
|
|
823
2097
|
'credit_type': CreditType;
|
|
2098
|
+
/**
|
|
2099
|
+
*
|
|
2100
|
+
* @type {Array<CreditType>}
|
|
2101
|
+
* @memberof CreditEvent
|
|
2102
|
+
*/
|
|
824
2103
|
'credit_types'?: Array<CreditType> | null;
|
|
2104
|
+
/**
|
|
2105
|
+
*
|
|
2106
|
+
* @type {string}
|
|
2107
|
+
* @memberof CreditEvent
|
|
2108
|
+
*/
|
|
825
2109
|
'balance_after'?: string | null;
|
|
826
2110
|
/**
|
|
827
2111
|
* Base amount of credits involved
|
|
2112
|
+
* @type {string}
|
|
2113
|
+
* @memberof CreditEvent
|
|
828
2114
|
*/
|
|
829
2115
|
'base_amount'?: string;
|
|
2116
|
+
/**
|
|
2117
|
+
*
|
|
2118
|
+
* @type {string}
|
|
2119
|
+
* @memberof CreditEvent
|
|
2120
|
+
*/
|
|
830
2121
|
'base_discount_amount'?: string | null;
|
|
2122
|
+
/**
|
|
2123
|
+
*
|
|
2124
|
+
* @type {string}
|
|
2125
|
+
* @memberof CreditEvent
|
|
2126
|
+
*/
|
|
831
2127
|
'base_original_amount'?: string | null;
|
|
2128
|
+
/**
|
|
2129
|
+
*
|
|
2130
|
+
* @type {string}
|
|
2131
|
+
* @memberof CreditEvent
|
|
2132
|
+
*/
|
|
832
2133
|
'base_llm_amount'?: string | null;
|
|
2134
|
+
/**
|
|
2135
|
+
*
|
|
2136
|
+
* @type {string}
|
|
2137
|
+
* @memberof CreditEvent
|
|
2138
|
+
*/
|
|
833
2139
|
'base_skill_amount'?: string | null;
|
|
2140
|
+
/**
|
|
2141
|
+
*
|
|
2142
|
+
* @type {string}
|
|
2143
|
+
* @memberof CreditEvent
|
|
2144
|
+
*/
|
|
834
2145
|
'base_free_amount'?: string | null;
|
|
2146
|
+
/**
|
|
2147
|
+
*
|
|
2148
|
+
* @type {string}
|
|
2149
|
+
* @memberof CreditEvent
|
|
2150
|
+
*/
|
|
835
2151
|
'base_reward_amount'?: string | null;
|
|
2152
|
+
/**
|
|
2153
|
+
*
|
|
2154
|
+
* @type {string}
|
|
2155
|
+
* @memberof CreditEvent
|
|
2156
|
+
*/
|
|
836
2157
|
'base_permanent_amount'?: string | null;
|
|
2158
|
+
/**
|
|
2159
|
+
*
|
|
2160
|
+
* @type {string}
|
|
2161
|
+
* @memberof CreditEvent
|
|
2162
|
+
*/
|
|
837
2163
|
'fee_platform_amount'?: string | null;
|
|
2164
|
+
/**
|
|
2165
|
+
*
|
|
2166
|
+
* @type {string}
|
|
2167
|
+
* @memberof CreditEvent
|
|
2168
|
+
*/
|
|
838
2169
|
'fee_platform_free_amount'?: string | null;
|
|
2170
|
+
/**
|
|
2171
|
+
*
|
|
2172
|
+
* @type {string}
|
|
2173
|
+
* @memberof CreditEvent
|
|
2174
|
+
*/
|
|
839
2175
|
'fee_platform_reward_amount'?: string | null;
|
|
2176
|
+
/**
|
|
2177
|
+
*
|
|
2178
|
+
* @type {string}
|
|
2179
|
+
* @memberof CreditEvent
|
|
2180
|
+
*/
|
|
840
2181
|
'fee_platform_permanent_amount'?: string | null;
|
|
2182
|
+
/**
|
|
2183
|
+
*
|
|
2184
|
+
* @type {string}
|
|
2185
|
+
* @memberof CreditEvent
|
|
2186
|
+
*/
|
|
841
2187
|
'fee_dev_account'?: string | null;
|
|
2188
|
+
/**
|
|
2189
|
+
*
|
|
2190
|
+
* @type {string}
|
|
2191
|
+
* @memberof CreditEvent
|
|
2192
|
+
*/
|
|
842
2193
|
'fee_dev_amount'?: string | null;
|
|
2194
|
+
/**
|
|
2195
|
+
*
|
|
2196
|
+
* @type {string}
|
|
2197
|
+
* @memberof CreditEvent
|
|
2198
|
+
*/
|
|
843
2199
|
'fee_dev_free_amount'?: string | null;
|
|
2200
|
+
/**
|
|
2201
|
+
*
|
|
2202
|
+
* @type {string}
|
|
2203
|
+
* @memberof CreditEvent
|
|
2204
|
+
*/
|
|
844
2205
|
'fee_dev_reward_amount'?: string | null;
|
|
2206
|
+
/**
|
|
2207
|
+
*
|
|
2208
|
+
* @type {string}
|
|
2209
|
+
* @memberof CreditEvent
|
|
2210
|
+
*/
|
|
845
2211
|
'fee_dev_permanent_amount'?: string | null;
|
|
2212
|
+
/**
|
|
2213
|
+
*
|
|
2214
|
+
* @type {string}
|
|
2215
|
+
* @memberof CreditEvent
|
|
2216
|
+
*/
|
|
846
2217
|
'fee_agent_account'?: string | null;
|
|
2218
|
+
/**
|
|
2219
|
+
*
|
|
2220
|
+
* @type {string}
|
|
2221
|
+
* @memberof CreditEvent
|
|
2222
|
+
*/
|
|
847
2223
|
'fee_agent_amount'?: string | null;
|
|
2224
|
+
/**
|
|
2225
|
+
*
|
|
2226
|
+
* @type {string}
|
|
2227
|
+
* @memberof CreditEvent
|
|
2228
|
+
*/
|
|
848
2229
|
'fee_agent_free_amount'?: string | null;
|
|
2230
|
+
/**
|
|
2231
|
+
*
|
|
2232
|
+
* @type {string}
|
|
2233
|
+
* @memberof CreditEvent
|
|
2234
|
+
*/
|
|
849
2235
|
'fee_agent_reward_amount'?: string | null;
|
|
2236
|
+
/**
|
|
2237
|
+
*
|
|
2238
|
+
* @type {string}
|
|
2239
|
+
* @memberof CreditEvent
|
|
2240
|
+
*/
|
|
850
2241
|
'fee_agent_permanent_amount'?: string | null;
|
|
2242
|
+
/**
|
|
2243
|
+
*
|
|
2244
|
+
* @type {string}
|
|
2245
|
+
* @memberof CreditEvent
|
|
2246
|
+
*/
|
|
851
2247
|
'free_amount'?: string | null;
|
|
2248
|
+
/**
|
|
2249
|
+
*
|
|
2250
|
+
* @type {string}
|
|
2251
|
+
* @memberof CreditEvent
|
|
2252
|
+
*/
|
|
852
2253
|
'reward_amount'?: string | null;
|
|
2254
|
+
/**
|
|
2255
|
+
*
|
|
2256
|
+
* @type {string}
|
|
2257
|
+
* @memberof CreditEvent
|
|
2258
|
+
*/
|
|
853
2259
|
'permanent_amount'?: string | null;
|
|
2260
|
+
/**
|
|
2261
|
+
*
|
|
2262
|
+
* @type {string}
|
|
2263
|
+
* @memberof CreditEvent
|
|
2264
|
+
*/
|
|
854
2265
|
'note'?: string | null;
|
|
855
2266
|
/**
|
|
856
2267
|
* Timestamp when this event was created
|
|
2268
|
+
* @type {string}
|
|
2269
|
+
* @memberof CreditEvent
|
|
857
2270
|
*/
|
|
858
2271
|
'created_at': string;
|
|
859
2272
|
}
|
|
@@ -861,169 +2274,424 @@ export interface CreditEvent {
|
|
|
861
2274
|
|
|
862
2275
|
/**
|
|
863
2276
|
* Credit event response model with agent name. Extends CreditEvent to include the agent name for better user experience.
|
|
2277
|
+
* @export
|
|
2278
|
+
* @interface CreditEventWithAgent
|
|
864
2279
|
*/
|
|
865
2280
|
export interface CreditEventWithAgent {
|
|
866
2281
|
/**
|
|
867
2282
|
* Unique identifier for the credit event
|
|
2283
|
+
* @type {string}
|
|
2284
|
+
* @memberof CreditEventWithAgent
|
|
868
2285
|
*/
|
|
869
2286
|
'id'?: string;
|
|
870
2287
|
/**
|
|
871
2288
|
* Account ID from which credits flow
|
|
2289
|
+
* @type {string}
|
|
2290
|
+
* @memberof CreditEventWithAgent
|
|
872
2291
|
*/
|
|
873
2292
|
'account_id'?: string;
|
|
874
2293
|
/**
|
|
875
2294
|
* Type of the event
|
|
2295
|
+
* @type {EventType}
|
|
2296
|
+
* @memberof CreditEventWithAgent
|
|
876
2297
|
*/
|
|
877
2298
|
'event_type': EventType;
|
|
2299
|
+
/**
|
|
2300
|
+
*
|
|
2301
|
+
* @type {string}
|
|
2302
|
+
* @memberof CreditEventWithAgent
|
|
2303
|
+
*/
|
|
878
2304
|
'user_id'?: string | null;
|
|
879
2305
|
/**
|
|
880
2306
|
* Type of upstream transaction
|
|
2307
|
+
* @type {UpstreamType}
|
|
2308
|
+
* @memberof CreditEventWithAgent
|
|
881
2309
|
*/
|
|
882
2310
|
'upstream_type': UpstreamType;
|
|
883
2311
|
/**
|
|
884
2312
|
* Upstream transaction ID if any
|
|
2313
|
+
* @type {string}
|
|
2314
|
+
* @memberof CreditEventWithAgent
|
|
885
2315
|
*/
|
|
886
2316
|
'upstream_tx_id': string;
|
|
2317
|
+
/**
|
|
2318
|
+
*
|
|
2319
|
+
* @type {string}
|
|
2320
|
+
* @memberof CreditEventWithAgent
|
|
2321
|
+
*/
|
|
887
2322
|
'agent_id'?: string | null;
|
|
2323
|
+
/**
|
|
2324
|
+
*
|
|
2325
|
+
* @type {string}
|
|
2326
|
+
* @memberof CreditEventWithAgent
|
|
2327
|
+
*/
|
|
888
2328
|
'agent_wallet_address'?: string | null;
|
|
2329
|
+
/**
|
|
2330
|
+
*
|
|
2331
|
+
* @type {string}
|
|
2332
|
+
* @memberof CreditEventWithAgent
|
|
2333
|
+
*/
|
|
889
2334
|
'start_message_id'?: string | null;
|
|
2335
|
+
/**
|
|
2336
|
+
*
|
|
2337
|
+
* @type {string}
|
|
2338
|
+
* @memberof CreditEventWithAgent
|
|
2339
|
+
*/
|
|
890
2340
|
'message_id'?: string | null;
|
|
2341
|
+
/**
|
|
2342
|
+
*
|
|
2343
|
+
* @type {string}
|
|
2344
|
+
* @memberof CreditEventWithAgent
|
|
2345
|
+
*/
|
|
891
2346
|
'model'?: string | null;
|
|
2347
|
+
/**
|
|
2348
|
+
*
|
|
2349
|
+
* @type {string}
|
|
2350
|
+
* @memberof CreditEventWithAgent
|
|
2351
|
+
*/
|
|
892
2352
|
'skill_call_id'?: string | null;
|
|
2353
|
+
/**
|
|
2354
|
+
*
|
|
2355
|
+
* @type {string}
|
|
2356
|
+
* @memberof CreditEventWithAgent
|
|
2357
|
+
*/
|
|
893
2358
|
'skill_name'?: string | null;
|
|
894
2359
|
/**
|
|
895
2360
|
* Direction of the credit flow
|
|
2361
|
+
* @type {Direction}
|
|
2362
|
+
* @memberof CreditEventWithAgent
|
|
896
2363
|
*/
|
|
897
2364
|
'direction': Direction;
|
|
898
2365
|
/**
|
|
899
2366
|
* Total amount (after discount) of credits involved
|
|
2367
|
+
* @type {string}
|
|
2368
|
+
* @memberof CreditEventWithAgent
|
|
900
2369
|
*/
|
|
901
2370
|
'total_amount'?: string;
|
|
902
2371
|
/**
|
|
903
2372
|
* Type of credits involved
|
|
2373
|
+
* @type {CreditType}
|
|
2374
|
+
* @memberof CreditEventWithAgent
|
|
904
2375
|
*/
|
|
905
2376
|
'credit_type': CreditType;
|
|
2377
|
+
/**
|
|
2378
|
+
*
|
|
2379
|
+
* @type {Array<CreditType>}
|
|
2380
|
+
* @memberof CreditEventWithAgent
|
|
2381
|
+
*/
|
|
906
2382
|
'credit_types'?: Array<CreditType> | null;
|
|
2383
|
+
/**
|
|
2384
|
+
*
|
|
2385
|
+
* @type {string}
|
|
2386
|
+
* @memberof CreditEventWithAgent
|
|
2387
|
+
*/
|
|
907
2388
|
'balance_after'?: string | null;
|
|
908
2389
|
/**
|
|
909
2390
|
* Base amount of credits involved
|
|
2391
|
+
* @type {string}
|
|
2392
|
+
* @memberof CreditEventWithAgent
|
|
910
2393
|
*/
|
|
911
2394
|
'base_amount'?: string;
|
|
2395
|
+
/**
|
|
2396
|
+
*
|
|
2397
|
+
* @type {string}
|
|
2398
|
+
* @memberof CreditEventWithAgent
|
|
2399
|
+
*/
|
|
912
2400
|
'base_discount_amount'?: string | null;
|
|
2401
|
+
/**
|
|
2402
|
+
*
|
|
2403
|
+
* @type {string}
|
|
2404
|
+
* @memberof CreditEventWithAgent
|
|
2405
|
+
*/
|
|
913
2406
|
'base_original_amount'?: string | null;
|
|
2407
|
+
/**
|
|
2408
|
+
*
|
|
2409
|
+
* @type {string}
|
|
2410
|
+
* @memberof CreditEventWithAgent
|
|
2411
|
+
*/
|
|
914
2412
|
'base_llm_amount'?: string | null;
|
|
2413
|
+
/**
|
|
2414
|
+
*
|
|
2415
|
+
* @type {string}
|
|
2416
|
+
* @memberof CreditEventWithAgent
|
|
2417
|
+
*/
|
|
915
2418
|
'base_skill_amount'?: string | null;
|
|
2419
|
+
/**
|
|
2420
|
+
*
|
|
2421
|
+
* @type {string}
|
|
2422
|
+
* @memberof CreditEventWithAgent
|
|
2423
|
+
*/
|
|
916
2424
|
'base_free_amount'?: string | null;
|
|
2425
|
+
/**
|
|
2426
|
+
*
|
|
2427
|
+
* @type {string}
|
|
2428
|
+
* @memberof CreditEventWithAgent
|
|
2429
|
+
*/
|
|
917
2430
|
'base_reward_amount'?: string | null;
|
|
2431
|
+
/**
|
|
2432
|
+
*
|
|
2433
|
+
* @type {string}
|
|
2434
|
+
* @memberof CreditEventWithAgent
|
|
2435
|
+
*/
|
|
918
2436
|
'base_permanent_amount'?: string | null;
|
|
2437
|
+
/**
|
|
2438
|
+
*
|
|
2439
|
+
* @type {string}
|
|
2440
|
+
* @memberof CreditEventWithAgent
|
|
2441
|
+
*/
|
|
919
2442
|
'fee_platform_amount'?: string | null;
|
|
2443
|
+
/**
|
|
2444
|
+
*
|
|
2445
|
+
* @type {string}
|
|
2446
|
+
* @memberof CreditEventWithAgent
|
|
2447
|
+
*/
|
|
920
2448
|
'fee_platform_free_amount'?: string | null;
|
|
2449
|
+
/**
|
|
2450
|
+
*
|
|
2451
|
+
* @type {string}
|
|
2452
|
+
* @memberof CreditEventWithAgent
|
|
2453
|
+
*/
|
|
921
2454
|
'fee_platform_reward_amount'?: string | null;
|
|
2455
|
+
/**
|
|
2456
|
+
*
|
|
2457
|
+
* @type {string}
|
|
2458
|
+
* @memberof CreditEventWithAgent
|
|
2459
|
+
*/
|
|
922
2460
|
'fee_platform_permanent_amount'?: string | null;
|
|
2461
|
+
/**
|
|
2462
|
+
*
|
|
2463
|
+
* @type {string}
|
|
2464
|
+
* @memberof CreditEventWithAgent
|
|
2465
|
+
*/
|
|
923
2466
|
'fee_dev_account'?: string | null;
|
|
2467
|
+
/**
|
|
2468
|
+
*
|
|
2469
|
+
* @type {string}
|
|
2470
|
+
* @memberof CreditEventWithAgent
|
|
2471
|
+
*/
|
|
924
2472
|
'fee_dev_amount'?: string | null;
|
|
2473
|
+
/**
|
|
2474
|
+
*
|
|
2475
|
+
* @type {string}
|
|
2476
|
+
* @memberof CreditEventWithAgent
|
|
2477
|
+
*/
|
|
925
2478
|
'fee_dev_free_amount'?: string | null;
|
|
2479
|
+
/**
|
|
2480
|
+
*
|
|
2481
|
+
* @type {string}
|
|
2482
|
+
* @memberof CreditEventWithAgent
|
|
2483
|
+
*/
|
|
926
2484
|
'fee_dev_reward_amount'?: string | null;
|
|
2485
|
+
/**
|
|
2486
|
+
*
|
|
2487
|
+
* @type {string}
|
|
2488
|
+
* @memberof CreditEventWithAgent
|
|
2489
|
+
*/
|
|
927
2490
|
'fee_dev_permanent_amount'?: string | null;
|
|
2491
|
+
/**
|
|
2492
|
+
*
|
|
2493
|
+
* @type {string}
|
|
2494
|
+
* @memberof CreditEventWithAgent
|
|
2495
|
+
*/
|
|
928
2496
|
'fee_agent_account'?: string | null;
|
|
2497
|
+
/**
|
|
2498
|
+
*
|
|
2499
|
+
* @type {string}
|
|
2500
|
+
* @memberof CreditEventWithAgent
|
|
2501
|
+
*/
|
|
929
2502
|
'fee_agent_amount'?: string | null;
|
|
2503
|
+
/**
|
|
2504
|
+
*
|
|
2505
|
+
* @type {string}
|
|
2506
|
+
* @memberof CreditEventWithAgent
|
|
2507
|
+
*/
|
|
930
2508
|
'fee_agent_free_amount'?: string | null;
|
|
2509
|
+
/**
|
|
2510
|
+
*
|
|
2511
|
+
* @type {string}
|
|
2512
|
+
* @memberof CreditEventWithAgent
|
|
2513
|
+
*/
|
|
931
2514
|
'fee_agent_reward_amount'?: string | null;
|
|
2515
|
+
/**
|
|
2516
|
+
*
|
|
2517
|
+
* @type {string}
|
|
2518
|
+
* @memberof CreditEventWithAgent
|
|
2519
|
+
*/
|
|
932
2520
|
'fee_agent_permanent_amount'?: string | null;
|
|
2521
|
+
/**
|
|
2522
|
+
*
|
|
2523
|
+
* @type {string}
|
|
2524
|
+
* @memberof CreditEventWithAgent
|
|
2525
|
+
*/
|
|
933
2526
|
'free_amount'?: string | null;
|
|
2527
|
+
/**
|
|
2528
|
+
*
|
|
2529
|
+
* @type {string}
|
|
2530
|
+
* @memberof CreditEventWithAgent
|
|
2531
|
+
*/
|
|
934
2532
|
'reward_amount'?: string | null;
|
|
2533
|
+
/**
|
|
2534
|
+
*
|
|
2535
|
+
* @type {string}
|
|
2536
|
+
* @memberof CreditEventWithAgent
|
|
2537
|
+
*/
|
|
935
2538
|
'permanent_amount'?: string | null;
|
|
2539
|
+
/**
|
|
2540
|
+
*
|
|
2541
|
+
* @type {string}
|
|
2542
|
+
* @memberof CreditEventWithAgent
|
|
2543
|
+
*/
|
|
936
2544
|
'note'?: string | null;
|
|
937
2545
|
/**
|
|
938
2546
|
* Timestamp when this event was created
|
|
2547
|
+
* @type {string}
|
|
2548
|
+
* @memberof CreditEventWithAgent
|
|
939
2549
|
*/
|
|
940
2550
|
'created_at': string;
|
|
2551
|
+
/**
|
|
2552
|
+
*
|
|
2553
|
+
* @type {string}
|
|
2554
|
+
* @memberof CreditEventWithAgent
|
|
2555
|
+
*/
|
|
941
2556
|
'agent_name'?: string | null;
|
|
942
2557
|
}
|
|
943
2558
|
|
|
944
2559
|
|
|
945
2560
|
/**
|
|
946
2561
|
* Paginated response model for credit events. Contains a list of credit events, a flag indicating if more items are available, and a cursor for pagination.
|
|
2562
|
+
* @export
|
|
2563
|
+
* @interface CreditEventsResponse
|
|
947
2564
|
*/
|
|
948
2565
|
export interface CreditEventsResponse {
|
|
949
2566
|
/**
|
|
950
2567
|
* List of credit events with agent names
|
|
2568
|
+
* @type {Array<CreditEventWithAgent>}
|
|
2569
|
+
* @memberof CreditEventsResponse
|
|
951
2570
|
*/
|
|
952
2571
|
'data': Array<CreditEventWithAgent>;
|
|
953
2572
|
/**
|
|
954
2573
|
* Indicates if there are more items
|
|
2574
|
+
* @type {boolean}
|
|
2575
|
+
* @memberof CreditEventsResponse
|
|
955
2576
|
*/
|
|
956
2577
|
'has_more': boolean;
|
|
2578
|
+
/**
|
|
2579
|
+
*
|
|
2580
|
+
* @type {string}
|
|
2581
|
+
* @memberof CreditEventsResponse
|
|
2582
|
+
*/
|
|
957
2583
|
'next_cursor'?: string | null;
|
|
958
2584
|
}
|
|
959
2585
|
/**
|
|
960
2586
|
* Credit transaction response model with associated event data. Extends CreditTransaction to include the related CreditEvent if available.
|
|
2587
|
+
* @export
|
|
2588
|
+
* @interface CreditTransactionResp
|
|
961
2589
|
*/
|
|
962
2590
|
export interface CreditTransactionResp {
|
|
963
2591
|
/**
|
|
964
2592
|
* Unique identifier for the credit transaction
|
|
2593
|
+
* @type {string}
|
|
2594
|
+
* @memberof CreditTransactionResp
|
|
965
2595
|
*/
|
|
966
2596
|
'id'?: string;
|
|
967
2597
|
/**
|
|
968
2598
|
* ID of the account this transaction belongs to
|
|
2599
|
+
* @type {string}
|
|
2600
|
+
* @memberof CreditTransactionResp
|
|
969
2601
|
*/
|
|
970
2602
|
'account_id': string;
|
|
971
2603
|
/**
|
|
972
2604
|
* ID of the event that triggered this transaction
|
|
2605
|
+
* @type {string}
|
|
2606
|
+
* @memberof CreditTransactionResp
|
|
973
2607
|
*/
|
|
974
2608
|
'event_id': string;
|
|
975
2609
|
/**
|
|
976
2610
|
* Type of the transaction
|
|
2611
|
+
* @type {TransactionType}
|
|
2612
|
+
* @memberof CreditTransactionResp
|
|
977
2613
|
*/
|
|
978
2614
|
'tx_type': TransactionType;
|
|
979
2615
|
/**
|
|
980
2616
|
* Whether this is a credit or debit transaction
|
|
2617
|
+
* @type {CreditDebit}
|
|
2618
|
+
* @memberof CreditTransactionResp
|
|
981
2619
|
*/
|
|
982
2620
|
'credit_debit': CreditDebit;
|
|
983
2621
|
/**
|
|
984
2622
|
* Amount of credits changed
|
|
2623
|
+
* @type {string}
|
|
2624
|
+
* @memberof CreditTransactionResp
|
|
985
2625
|
*/
|
|
986
2626
|
'change_amount'?: string;
|
|
987
2627
|
/**
|
|
988
2628
|
* Amount of free credits changed
|
|
2629
|
+
* @type {string}
|
|
2630
|
+
* @memberof CreditTransactionResp
|
|
989
2631
|
*/
|
|
990
2632
|
'free_amount'?: string;
|
|
991
2633
|
/**
|
|
992
2634
|
* Amount of reward credits changed
|
|
2635
|
+
* @type {string}
|
|
2636
|
+
* @memberof CreditTransactionResp
|
|
993
2637
|
*/
|
|
994
2638
|
'reward_amount'?: string;
|
|
995
2639
|
/**
|
|
996
2640
|
* Amount of permanent credits changed
|
|
2641
|
+
* @type {string}
|
|
2642
|
+
* @memberof CreditTransactionResp
|
|
997
2643
|
*/
|
|
998
2644
|
'permanent_amount'?: string;
|
|
999
2645
|
/**
|
|
1000
2646
|
* Type of credits involved
|
|
2647
|
+
* @type {CreditType}
|
|
2648
|
+
* @memberof CreditTransactionResp
|
|
1001
2649
|
*/
|
|
1002
2650
|
'credit_type': CreditType;
|
|
1003
2651
|
/**
|
|
1004
2652
|
* Timestamp when this transaction was created
|
|
2653
|
+
* @type {string}
|
|
2654
|
+
* @memberof CreditTransactionResp
|
|
1005
2655
|
*/
|
|
1006
2656
|
'created_at': string;
|
|
2657
|
+
/**
|
|
2658
|
+
*
|
|
2659
|
+
* @type {CreditEvent}
|
|
2660
|
+
* @memberof CreditTransactionResp
|
|
2661
|
+
*/
|
|
1007
2662
|
'event'?: CreditEvent | null;
|
|
1008
2663
|
}
|
|
1009
2664
|
|
|
1010
2665
|
|
|
1011
2666
|
/**
|
|
1012
2667
|
* Paginated response model for credit transactions. Contains a list of credit transactions (with event data), a flag for more items, and a pagination cursor.
|
|
2668
|
+
* @export
|
|
2669
|
+
* @interface CreditTransactionsResponse
|
|
1013
2670
|
*/
|
|
1014
2671
|
export interface CreditTransactionsResponse {
|
|
1015
2672
|
/**
|
|
1016
2673
|
* List of credit transactions
|
|
2674
|
+
* @type {Array<CreditTransactionResp>}
|
|
2675
|
+
* @memberof CreditTransactionsResponse
|
|
1017
2676
|
*/
|
|
1018
2677
|
'data': Array<CreditTransactionResp>;
|
|
1019
2678
|
/**
|
|
1020
2679
|
* Indicates if there are more items
|
|
2680
|
+
* @type {boolean}
|
|
2681
|
+
* @memberof CreditTransactionsResponse
|
|
1021
2682
|
*/
|
|
1022
2683
|
'has_more': boolean;
|
|
2684
|
+
/**
|
|
2685
|
+
*
|
|
2686
|
+
* @type {string}
|
|
2687
|
+
* @memberof CreditTransactionsResponse
|
|
2688
|
+
*/
|
|
1023
2689
|
'next_cursor'?: string | null;
|
|
1024
2690
|
}
|
|
1025
2691
|
/**
|
|
1026
2692
|
* Credit type is used in db column names, do not change it.
|
|
2693
|
+
* @export
|
|
2694
|
+
* @enum {string}
|
|
1027
2695
|
*/
|
|
1028
2696
|
|
|
1029
2697
|
export const CreditType = {
|
|
@@ -1037,6 +2705,8 @@ export type CreditType = typeof CreditType[keyof typeof CreditType];
|
|
|
1037
2705
|
|
|
1038
2706
|
/**
|
|
1039
2707
|
* Direction of credit flow.
|
|
2708
|
+
* @export
|
|
2709
|
+
* @enum {string}
|
|
1040
2710
|
*/
|
|
1041
2711
|
|
|
1042
2712
|
export const Direction = {
|
|
@@ -1049,6 +2719,8 @@ export type Direction = typeof Direction[keyof typeof Direction];
|
|
|
1049
2719
|
|
|
1050
2720
|
/**
|
|
1051
2721
|
* Type of credit event.
|
|
2722
|
+
* @export
|
|
2723
|
+
* @enum {string}
|
|
1052
2724
|
*/
|
|
1053
2725
|
|
|
1054
2726
|
export const EventType = {
|
|
@@ -1071,80 +2743,250 @@ export type EventType = typeof EventType[keyof typeof EventType];
|
|
|
1071
2743
|
|
|
1072
2744
|
/**
|
|
1073
2745
|
* Fee percentage of the agent
|
|
2746
|
+
* @export
|
|
2747
|
+
* @interface FeePercentage
|
|
1074
2748
|
*/
|
|
1075
2749
|
export interface FeePercentage {
|
|
1076
2750
|
}
|
|
1077
2751
|
/**
|
|
1078
2752
|
* Response model for single generation detail.
|
|
2753
|
+
* @export
|
|
2754
|
+
* @interface GenerationDetailResponse
|
|
1079
2755
|
*/
|
|
1080
2756
|
export interface GenerationDetailResponse {
|
|
1081
2757
|
/**
|
|
1082
2758
|
* Project ID
|
|
2759
|
+
* @type {string}
|
|
2760
|
+
* @memberof GenerationDetailResponse
|
|
1083
2761
|
*/
|
|
1084
2762
|
'project_id': string;
|
|
2763
|
+
/**
|
|
2764
|
+
*
|
|
2765
|
+
* @type {string}
|
|
2766
|
+
* @memberof GenerationDetailResponse
|
|
2767
|
+
*/
|
|
1085
2768
|
'user_id'?: string | null;
|
|
2769
|
+
/**
|
|
2770
|
+
*
|
|
2771
|
+
* @type {string}
|
|
2772
|
+
* @memberof GenerationDetailResponse
|
|
2773
|
+
*/
|
|
1086
2774
|
'created_at'?: string | null;
|
|
2775
|
+
/**
|
|
2776
|
+
*
|
|
2777
|
+
* @type {string}
|
|
2778
|
+
* @memberof GenerationDetailResponse
|
|
2779
|
+
*/
|
|
1087
2780
|
'last_activity'?: string | null;
|
|
1088
2781
|
/**
|
|
1089
2782
|
* Number of messages in conversation
|
|
2783
|
+
* @type {number}
|
|
2784
|
+
* @memberof GenerationDetailResponse
|
|
1090
2785
|
*/
|
|
1091
2786
|
'message_count': number;
|
|
2787
|
+
/**
|
|
2788
|
+
*
|
|
2789
|
+
* @type {object}
|
|
2790
|
+
* @memberof GenerationDetailResponse
|
|
2791
|
+
*/
|
|
1092
2792
|
'last_message'?: object | null;
|
|
2793
|
+
/**
|
|
2794
|
+
*
|
|
2795
|
+
* @type {object}
|
|
2796
|
+
* @memberof GenerationDetailResponse
|
|
2797
|
+
*/
|
|
1093
2798
|
'first_message'?: object | null;
|
|
1094
2799
|
/**
|
|
1095
2800
|
* Full conversation history
|
|
2801
|
+
* @type {Array<object>}
|
|
2802
|
+
* @memberof GenerationDetailResponse
|
|
1096
2803
|
*/
|
|
1097
2804
|
'conversation_history': Array<object>;
|
|
1098
2805
|
}
|
|
1099
2806
|
/**
|
|
1100
2807
|
* Response model for generations list.
|
|
2808
|
+
* @export
|
|
2809
|
+
* @interface GenerationsListResponse
|
|
1101
2810
|
*/
|
|
1102
2811
|
export interface GenerationsListResponse {
|
|
1103
2812
|
/**
|
|
1104
2813
|
* List of recent projects with their conversation history
|
|
2814
|
+
* @type {Array<object>}
|
|
2815
|
+
* @memberof GenerationsListResponse
|
|
1105
2816
|
*/
|
|
1106
2817
|
'projects': Array<object>;
|
|
1107
2818
|
}
|
|
2819
|
+
/**
|
|
2820
|
+
*
|
|
2821
|
+
* @export
|
|
2822
|
+
* @interface HTTPValidationError
|
|
2823
|
+
*/
|
|
1108
2824
|
export interface HTTPValidationError {
|
|
2825
|
+
/**
|
|
2826
|
+
*
|
|
2827
|
+
* @type {Array<ValidationError>}
|
|
2828
|
+
* @memberof HTTPValidationError
|
|
2829
|
+
*/
|
|
1109
2830
|
'detail'?: Array<ValidationError>;
|
|
1110
2831
|
}
|
|
1111
2832
|
/**
|
|
1112
2833
|
* LLM model information with provider display name.
|
|
2834
|
+
* @export
|
|
2835
|
+
* @interface LLMModelInfoWithProviderName
|
|
1113
2836
|
*/
|
|
1114
2837
|
export interface LLMModelInfoWithProviderName {
|
|
2838
|
+
/**
|
|
2839
|
+
*
|
|
2840
|
+
* @type {string}
|
|
2841
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2842
|
+
*/
|
|
1115
2843
|
'id': string;
|
|
2844
|
+
/**
|
|
2845
|
+
*
|
|
2846
|
+
* @type {string}
|
|
2847
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2848
|
+
*/
|
|
1116
2849
|
'name': string;
|
|
2850
|
+
/**
|
|
2851
|
+
*
|
|
2852
|
+
* @type {LLMProvider}
|
|
2853
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2854
|
+
*/
|
|
1117
2855
|
'provider': LLMProvider;
|
|
2856
|
+
/**
|
|
2857
|
+
*
|
|
2858
|
+
* @type {boolean}
|
|
2859
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2860
|
+
*/
|
|
1118
2861
|
'enabled'?: boolean;
|
|
2862
|
+
/**
|
|
2863
|
+
*
|
|
2864
|
+
* @type {string}
|
|
2865
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2866
|
+
*/
|
|
1119
2867
|
'input_price': string;
|
|
2868
|
+
/**
|
|
2869
|
+
*
|
|
2870
|
+
* @type {string}
|
|
2871
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2872
|
+
*/
|
|
1120
2873
|
'output_price': string;
|
|
2874
|
+
/**
|
|
2875
|
+
*
|
|
2876
|
+
* @type {number}
|
|
2877
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2878
|
+
*/
|
|
1121
2879
|
'price_level'?: number | null;
|
|
2880
|
+
/**
|
|
2881
|
+
*
|
|
2882
|
+
* @type {number}
|
|
2883
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2884
|
+
*/
|
|
1122
2885
|
'context_length': number;
|
|
2886
|
+
/**
|
|
2887
|
+
*
|
|
2888
|
+
* @type {number}
|
|
2889
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2890
|
+
*/
|
|
1123
2891
|
'output_length': number;
|
|
2892
|
+
/**
|
|
2893
|
+
*
|
|
2894
|
+
* @type {number}
|
|
2895
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2896
|
+
*/
|
|
1124
2897
|
'intelligence': number;
|
|
2898
|
+
/**
|
|
2899
|
+
*
|
|
2900
|
+
* @type {number}
|
|
2901
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2902
|
+
*/
|
|
1125
2903
|
'speed': number;
|
|
2904
|
+
/**
|
|
2905
|
+
*
|
|
2906
|
+
* @type {boolean}
|
|
2907
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2908
|
+
*/
|
|
1126
2909
|
'supports_image_input'?: boolean;
|
|
2910
|
+
/**
|
|
2911
|
+
*
|
|
2912
|
+
* @type {boolean}
|
|
2913
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2914
|
+
*/
|
|
1127
2915
|
'supports_skill_calls'?: boolean;
|
|
2916
|
+
/**
|
|
2917
|
+
*
|
|
2918
|
+
* @type {boolean}
|
|
2919
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2920
|
+
*/
|
|
1128
2921
|
'supports_structured_output'?: boolean;
|
|
2922
|
+
/**
|
|
2923
|
+
*
|
|
2924
|
+
* @type {boolean}
|
|
2925
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2926
|
+
*/
|
|
1129
2927
|
'has_reasoning'?: boolean;
|
|
2928
|
+
/**
|
|
2929
|
+
*
|
|
2930
|
+
* @type {boolean}
|
|
2931
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2932
|
+
*/
|
|
1130
2933
|
'supports_search'?: boolean;
|
|
2934
|
+
/**
|
|
2935
|
+
*
|
|
2936
|
+
* @type {boolean}
|
|
2937
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2938
|
+
*/
|
|
1131
2939
|
'supports_temperature'?: boolean;
|
|
2940
|
+
/**
|
|
2941
|
+
*
|
|
2942
|
+
* @type {boolean}
|
|
2943
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2944
|
+
*/
|
|
1132
2945
|
'supports_frequency_penalty'?: boolean;
|
|
2946
|
+
/**
|
|
2947
|
+
*
|
|
2948
|
+
* @type {boolean}
|
|
2949
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2950
|
+
*/
|
|
1133
2951
|
'supports_presence_penalty'?: boolean;
|
|
2952
|
+
/**
|
|
2953
|
+
*
|
|
2954
|
+
* @type {string}
|
|
2955
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2956
|
+
*/
|
|
1134
2957
|
'api_base'?: string | null;
|
|
2958
|
+
/**
|
|
2959
|
+
*
|
|
2960
|
+
* @type {number}
|
|
2961
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2962
|
+
*/
|
|
1135
2963
|
'timeout'?: number;
|
|
1136
2964
|
/**
|
|
1137
2965
|
* Timestamp when this data was created
|
|
2966
|
+
* @type {string}
|
|
2967
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1138
2968
|
*/
|
|
1139
2969
|
'created_at'?: string;
|
|
1140
2970
|
/**
|
|
1141
2971
|
* Timestamp when this data was updated
|
|
2972
|
+
* @type {string}
|
|
2973
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1142
2974
|
*/
|
|
1143
2975
|
'updated_at'?: string;
|
|
2976
|
+
/**
|
|
2977
|
+
*
|
|
2978
|
+
* @type {string}
|
|
2979
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2980
|
+
*/
|
|
1144
2981
|
'provider_name': string;
|
|
1145
2982
|
}
|
|
1146
2983
|
|
|
1147
2984
|
|
|
2985
|
+
/**
|
|
2986
|
+
*
|
|
2987
|
+
* @export
|
|
2988
|
+
* @enum {string}
|
|
2989
|
+
*/
|
|
1148
2990
|
|
|
1149
2991
|
export const LLMProvider = {
|
|
1150
2992
|
Openai: 'openai',
|
|
@@ -1160,6 +3002,8 @@ export type LLMProvider = typeof LLMProvider[keyof typeof LLMProvider];
|
|
|
1160
3002
|
|
|
1161
3003
|
/**
|
|
1162
3004
|
* Type of credit account owner.
|
|
3005
|
+
* @export
|
|
3006
|
+
* @enum {string}
|
|
1163
3007
|
*/
|
|
1164
3008
|
|
|
1165
3009
|
export const OwnerType = {
|
|
@@ -1173,44 +3017,87 @@ export type OwnerType = typeof OwnerType[keyof typeof OwnerType];
|
|
|
1173
3017
|
|
|
1174
3018
|
/**
|
|
1175
3019
|
* Pydantic model for Skill.
|
|
3020
|
+
* @export
|
|
3021
|
+
* @interface Skill
|
|
1176
3022
|
*/
|
|
1177
3023
|
export interface Skill {
|
|
1178
3024
|
/**
|
|
1179
3025
|
* Name of the skill
|
|
3026
|
+
* @type {string}
|
|
3027
|
+
* @memberof Skill
|
|
1180
3028
|
*/
|
|
1181
3029
|
'name': string;
|
|
1182
3030
|
/**
|
|
1183
3031
|
* Is this skill enabled?
|
|
3032
|
+
* @type {boolean}
|
|
3033
|
+
* @memberof Skill
|
|
1184
3034
|
*/
|
|
1185
3035
|
'enabled': boolean;
|
|
1186
3036
|
/**
|
|
1187
3037
|
* Category of the skill
|
|
3038
|
+
* @type {string}
|
|
3039
|
+
* @memberof Skill
|
|
1188
3040
|
*/
|
|
1189
3041
|
'category': string;
|
|
3042
|
+
/**
|
|
3043
|
+
*
|
|
3044
|
+
* @type {string}
|
|
3045
|
+
* @memberof Skill
|
|
3046
|
+
*/
|
|
1190
3047
|
'config_name': string | null;
|
|
3048
|
+
/**
|
|
3049
|
+
*
|
|
3050
|
+
* @type {number}
|
|
3051
|
+
* @memberof Skill
|
|
3052
|
+
*/
|
|
1191
3053
|
'price_level': number | null;
|
|
1192
3054
|
/**
|
|
1193
3055
|
* Price for this skill
|
|
3056
|
+
* @type {string}
|
|
3057
|
+
* @memberof Skill
|
|
1194
3058
|
*/
|
|
1195
3059
|
'price'?: string;
|
|
1196
3060
|
/**
|
|
1197
3061
|
* Price for this skill with self key
|
|
3062
|
+
* @type {string}
|
|
3063
|
+
* @memberof Skill
|
|
1198
3064
|
*/
|
|
1199
3065
|
'price_self_key'?: string;
|
|
3066
|
+
/**
|
|
3067
|
+
*
|
|
3068
|
+
* @type {number}
|
|
3069
|
+
* @memberof Skill
|
|
3070
|
+
*/
|
|
1200
3071
|
'rate_limit_count': number | null;
|
|
3072
|
+
/**
|
|
3073
|
+
*
|
|
3074
|
+
* @type {number}
|
|
3075
|
+
* @memberof Skill
|
|
3076
|
+
*/
|
|
1201
3077
|
'rate_limit_minutes': number | null;
|
|
3078
|
+
/**
|
|
3079
|
+
*
|
|
3080
|
+
* @type {string}
|
|
3081
|
+
* @memberof Skill
|
|
3082
|
+
*/
|
|
1202
3083
|
'author': string | null;
|
|
1203
3084
|
/**
|
|
1204
3085
|
* Timestamp when this record was created
|
|
3086
|
+
* @type {string}
|
|
3087
|
+
* @memberof Skill
|
|
1205
3088
|
*/
|
|
1206
3089
|
'created_at': string;
|
|
1207
3090
|
/**
|
|
1208
3091
|
* Timestamp when this record was last updated
|
|
3092
|
+
* @type {string}
|
|
3093
|
+
* @memberof Skill
|
|
1209
3094
|
*/
|
|
1210
3095
|
'updated_at': string;
|
|
1211
3096
|
}
|
|
1212
3097
|
/**
|
|
1213
3098
|
* Type of system message.
|
|
3099
|
+
* @export
|
|
3100
|
+
* @enum {string}
|
|
1214
3101
|
*/
|
|
1215
3102
|
|
|
1216
3103
|
export const SystemMessageType = {
|
|
@@ -1227,6 +3114,8 @@ export type SystemMessageType = typeof SystemMessageType[keyof typeof SystemMess
|
|
|
1227
3114
|
|
|
1228
3115
|
/**
|
|
1229
3116
|
* Type of credit transaction.
|
|
3117
|
+
* @export
|
|
3118
|
+
* @enum {string}
|
|
1230
3119
|
*/
|
|
1231
3120
|
|
|
1232
3121
|
export const TransactionType = {
|
|
@@ -1251,12 +3140,29 @@ export const TransactionType = {
|
|
|
1251
3140
|
export type TransactionType = typeof TransactionType[keyof typeof TransactionType];
|
|
1252
3141
|
|
|
1253
3142
|
|
|
3143
|
+
/**
|
|
3144
|
+
*
|
|
3145
|
+
* @export
|
|
3146
|
+
* @interface TwitterAuthResponse
|
|
3147
|
+
*/
|
|
1254
3148
|
export interface TwitterAuthResponse {
|
|
3149
|
+
/**
|
|
3150
|
+
*
|
|
3151
|
+
* @type {string}
|
|
3152
|
+
* @memberof TwitterAuthResponse
|
|
3153
|
+
*/
|
|
1255
3154
|
'agent_id': string;
|
|
3155
|
+
/**
|
|
3156
|
+
*
|
|
3157
|
+
* @type {string}
|
|
3158
|
+
* @memberof TwitterAuthResponse
|
|
3159
|
+
*/
|
|
1256
3160
|
'url': string;
|
|
1257
3161
|
}
|
|
1258
3162
|
/**
|
|
1259
3163
|
* Type of upstream transaction.
|
|
3164
|
+
* @export
|
|
3165
|
+
* @enum {string}
|
|
1260
3166
|
*/
|
|
1261
3167
|
|
|
1262
3168
|
export const UpstreamType = {
|
|
@@ -1269,16 +3175,42 @@ export const UpstreamType = {
|
|
|
1269
3175
|
export type UpstreamType = typeof UpstreamType[keyof typeof UpstreamType];
|
|
1270
3176
|
|
|
1271
3177
|
|
|
3178
|
+
/**
|
|
3179
|
+
*
|
|
3180
|
+
* @export
|
|
3181
|
+
* @interface ValidationError
|
|
3182
|
+
*/
|
|
1272
3183
|
export interface ValidationError {
|
|
3184
|
+
/**
|
|
3185
|
+
*
|
|
3186
|
+
* @type {Array<ValidationErrorLocInner>}
|
|
3187
|
+
* @memberof ValidationError
|
|
3188
|
+
*/
|
|
1273
3189
|
'loc': Array<ValidationErrorLocInner>;
|
|
3190
|
+
/**
|
|
3191
|
+
*
|
|
3192
|
+
* @type {string}
|
|
3193
|
+
* @memberof ValidationError
|
|
3194
|
+
*/
|
|
1274
3195
|
'msg': string;
|
|
3196
|
+
/**
|
|
3197
|
+
*
|
|
3198
|
+
* @type {string}
|
|
3199
|
+
* @memberof ValidationError
|
|
3200
|
+
*/
|
|
1275
3201
|
'type': string;
|
|
1276
3202
|
}
|
|
3203
|
+
/**
|
|
3204
|
+
*
|
|
3205
|
+
* @export
|
|
3206
|
+
* @interface ValidationErrorLocInner
|
|
3207
|
+
*/
|
|
1277
3208
|
export interface ValidationErrorLocInner {
|
|
1278
3209
|
}
|
|
1279
3210
|
|
|
1280
3211
|
/**
|
|
1281
3212
|
* AgentApi - axios parameter creator
|
|
3213
|
+
* @export
|
|
1282
3214
|
*/
|
|
1283
3215
|
export const AgentApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1284
3216
|
return {
|
|
@@ -1847,6 +3779,7 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
1847
3779
|
|
|
1848
3780
|
/**
|
|
1849
3781
|
* AgentApi - functional programming interface
|
|
3782
|
+
* @export
|
|
1850
3783
|
*/
|
|
1851
3784
|
export const AgentApiFp = function(configuration?: Configuration) {
|
|
1852
3785
|
const localVarAxiosParamCreator = AgentApiAxiosParamCreator(configuration)
|
|
@@ -2046,6 +3979,7 @@ export const AgentApiFp = function(configuration?: Configuration) {
|
|
|
2046
3979
|
|
|
2047
3980
|
/**
|
|
2048
3981
|
* AgentApi - factory interface
|
|
3982
|
+
* @export
|
|
2049
3983
|
*/
|
|
2050
3984
|
export const AgentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2051
3985
|
const localVarFp = AgentApiFp(configuration)
|
|
@@ -2203,6 +4137,9 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
|
|
|
2203
4137
|
|
|
2204
4138
|
/**
|
|
2205
4139
|
* AgentApi - object-oriented interface
|
|
4140
|
+
* @export
|
|
4141
|
+
* @class AgentApi
|
|
4142
|
+
* @extends {BaseAPI}
|
|
2206
4143
|
*/
|
|
2207
4144
|
export class AgentApi extends BaseAPI {
|
|
2208
4145
|
/**
|
|
@@ -2211,6 +4148,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2211
4148
|
* @param {AgentUpdate} [agentUpdate]
|
|
2212
4149
|
* @param {*} [options] Override http request option.
|
|
2213
4150
|
* @throws {RequiredError}
|
|
4151
|
+
* @memberof AgentApi
|
|
2214
4152
|
*/
|
|
2215
4153
|
public createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
2216
4154
|
return AgentApiFp(this.configuration).createAgent(agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2222,6 +4160,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2222
4160
|
* @param {string} agentId ID of the agent to export
|
|
2223
4161
|
* @param {*} [options] Override http request option.
|
|
2224
4162
|
* @throws {RequiredError}
|
|
4163
|
+
* @memberof AgentApi
|
|
2225
4164
|
*/
|
|
2226
4165
|
public exportAgent(agentId: string, options?: RawAxiosRequestConfig) {
|
|
2227
4166
|
return AgentApiFp(this.configuration).exportAgent(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2233,6 +4172,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2233
4172
|
* @param {string} agentId ID of the agent to retrieve
|
|
2234
4173
|
* @param {*} [options] Override http request option.
|
|
2235
4174
|
* @throws {RequiredError}
|
|
4175
|
+
* @memberof AgentApi
|
|
2236
4176
|
*/
|
|
2237
4177
|
public getAgent(agentId: string, options?: RawAxiosRequestConfig) {
|
|
2238
4178
|
return AgentApiFp(this.configuration).getAgent(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2244,6 +4184,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2244
4184
|
* @param {string} agentId ID of the agent
|
|
2245
4185
|
* @param {*} [options] Override http request option.
|
|
2246
4186
|
* @throws {RequiredError}
|
|
4187
|
+
* @memberof AgentApi
|
|
2247
4188
|
*/
|
|
2248
4189
|
public getAgentApiKey(agentId: string, options?: RawAxiosRequestConfig) {
|
|
2249
4190
|
return AgentApiFp(this.configuration).getAgentApiKey(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2255,6 +4196,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2255
4196
|
* @param {string} agentId ID of the agent
|
|
2256
4197
|
* @param {*} [options] Override http request option.
|
|
2257
4198
|
* @throws {RequiredError}
|
|
4199
|
+
* @memberof AgentApi
|
|
2258
4200
|
*/
|
|
2259
4201
|
public getAgentAssets(agentId: string, options?: RawAxiosRequestConfig) {
|
|
2260
4202
|
return AgentApiFp(this.configuration).getAgentAssets(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2266,6 +4208,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2266
4208
|
* @param {string} aid ID of the agent
|
|
2267
4209
|
* @param {*} [options] Override http request option.
|
|
2268
4210
|
* @throws {RequiredError}
|
|
4211
|
+
* @memberof AgentApi
|
|
2269
4212
|
*/
|
|
2270
4213
|
public getAgentStatistics(aid: string, options?: RawAxiosRequestConfig) {
|
|
2271
4214
|
return AgentApiFp(this.configuration).getAgentStatistics(aid, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2279,6 +4222,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2279
4222
|
* @param {number} [limit] Maximum number of agents to return
|
|
2280
4223
|
* @param {*} [options] Override http request option.
|
|
2281
4224
|
* @throws {RequiredError}
|
|
4225
|
+
* @memberof AgentApi
|
|
2282
4226
|
*/
|
|
2283
4227
|
public getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
2284
4228
|
return AgentApiFp(this.configuration).getAgents(sort, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2292,6 +4236,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2292
4236
|
* @param {number} [limit] Maximum number of messages to return
|
|
2293
4237
|
* @param {*} [options] Override http request option.
|
|
2294
4238
|
* @throws {RequiredError}
|
|
4239
|
+
* @memberof AgentApi
|
|
2295
4240
|
*/
|
|
2296
4241
|
public getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
2297
4242
|
return AgentApiFp(this.configuration).getSkillHistory(aid, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2304,6 +4249,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2304
4249
|
* @param {File} file YAML file containing agent configuration
|
|
2305
4250
|
* @param {*} [options] Override http request option.
|
|
2306
4251
|
* @throws {RequiredError}
|
|
4252
|
+
* @memberof AgentApi
|
|
2307
4253
|
*/
|
|
2308
4254
|
public importAgent(agentId: string, file: File, options?: RawAxiosRequestConfig) {
|
|
2309
4255
|
return AgentApiFp(this.configuration).importAgent(agentId, file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2316,6 +4262,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2316
4262
|
* @param {AgentUpdate} [agentUpdate]
|
|
2317
4263
|
* @param {*} [options] Override http request option.
|
|
2318
4264
|
* @throws {RequiredError}
|
|
4265
|
+
* @memberof AgentApi
|
|
2319
4266
|
*/
|
|
2320
4267
|
public overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
2321
4268
|
return AgentApiFp(this.configuration).overrideAgent(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2327,6 +4274,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2327
4274
|
* @param {string} agentId ID of the agent
|
|
2328
4275
|
* @param {*} [options] Override http request option.
|
|
2329
4276
|
* @throws {RequiredError}
|
|
4277
|
+
* @memberof AgentApi
|
|
2330
4278
|
*/
|
|
2331
4279
|
public resetAgentApiKey(agentId: string, options?: RawAxiosRequestConfig) {
|
|
2332
4280
|
return AgentApiFp(this.configuration).resetAgentApiKey(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2339,6 +4287,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2339
4287
|
* @param {AgentUpdate} [agentUpdate]
|
|
2340
4288
|
* @param {*} [options] Override http request option.
|
|
2341
4289
|
* @throws {RequiredError}
|
|
4290
|
+
* @memberof AgentApi
|
|
2342
4291
|
*/
|
|
2343
4292
|
public updateAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
2344
4293
|
return AgentApiFp(this.configuration).updateAgent(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2350,6 +4299,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2350
4299
|
* @param {AgentUpdate} [agentUpdate]
|
|
2351
4300
|
* @param {*} [options] Override http request option.
|
|
2352
4301
|
* @throws {RequiredError}
|
|
4302
|
+
* @memberof AgentApi
|
|
2353
4303
|
*/
|
|
2354
4304
|
public validateAgentCreate(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
2355
4305
|
return AgentApiFp(this.configuration).validateAgentCreate(agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2362,6 +4312,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2362
4312
|
* @param {AgentUpdate} [agentUpdate]
|
|
2363
4313
|
* @param {*} [options] Override http request option.
|
|
2364
4314
|
* @throws {RequiredError}
|
|
4315
|
+
* @memberof AgentApi
|
|
2365
4316
|
*/
|
|
2366
4317
|
public validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
2367
4318
|
return AgentApiFp(this.configuration).validateAgentUpdate(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2372,6 +4323,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2372
4323
|
|
|
2373
4324
|
/**
|
|
2374
4325
|
* ChatApi - axios parameter creator
|
|
4326
|
+
* @export
|
|
2375
4327
|
*/
|
|
2376
4328
|
export const ChatApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2377
4329
|
return {
|
|
@@ -2816,6 +4768,7 @@ export const ChatApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
2816
4768
|
|
|
2817
4769
|
/**
|
|
2818
4770
|
* ChatApi - functional programming interface
|
|
4771
|
+
* @export
|
|
2819
4772
|
*/
|
|
2820
4773
|
export const ChatApiFp = function(configuration?: Configuration) {
|
|
2821
4774
|
const localVarAxiosParamCreator = ChatApiAxiosParamCreator(configuration)
|
|
@@ -2967,6 +4920,7 @@ export const ChatApiFp = function(configuration?: Configuration) {
|
|
|
2967
4920
|
|
|
2968
4921
|
/**
|
|
2969
4922
|
* ChatApi - factory interface
|
|
4923
|
+
* @export
|
|
2970
4924
|
*/
|
|
2971
4925
|
export const ChatApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2972
4926
|
const localVarFp = ChatApiFp(configuration)
|
|
@@ -3088,6 +5042,9 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
|
|
|
3088
5042
|
|
|
3089
5043
|
/**
|
|
3090
5044
|
* ChatApi - object-oriented interface
|
|
5045
|
+
* @export
|
|
5046
|
+
* @class ChatApi
|
|
5047
|
+
* @extends {BaseAPI}
|
|
3091
5048
|
*/
|
|
3092
5049
|
export class ChatApi extends BaseAPI {
|
|
3093
5050
|
/**
|
|
@@ -3096,6 +5053,7 @@ export class ChatApi extends BaseAPI {
|
|
|
3096
5053
|
* @param {string} aid Agent ID
|
|
3097
5054
|
* @param {*} [options] Override http request option.
|
|
3098
5055
|
* @throws {RequiredError}
|
|
5056
|
+
* @memberof ChatApi
|
|
3099
5057
|
*/
|
|
3100
5058
|
public createChatThread(aid: string, options?: RawAxiosRequestConfig) {
|
|
3101
5059
|
return ChatApiFp(this.configuration).createChatThread(aid, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3108,6 +5066,7 @@ export class ChatApi extends BaseAPI {
|
|
|
3108
5066
|
* @param {string} chatId Chat ID
|
|
3109
5067
|
* @param {*} [options] Override http request option.
|
|
3110
5068
|
* @throws {RequiredError}
|
|
5069
|
+
* @memberof ChatApi
|
|
3111
5070
|
*/
|
|
3112
5071
|
public deleteChatThread(aid: string, chatId: string, options?: RawAxiosRequestConfig) {
|
|
3113
5072
|
return ChatApiFp(this.configuration).deleteChatThread(aid, chatId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3120,6 +5079,7 @@ export class ChatApi extends BaseAPI {
|
|
|
3120
5079
|
* @param {string} chatId Chat ID
|
|
3121
5080
|
* @param {*} [options] Override http request option.
|
|
3122
5081
|
* @throws {RequiredError}
|
|
5082
|
+
* @memberof ChatApi
|
|
3123
5083
|
*/
|
|
3124
5084
|
public getChatThreadById(aid: string, chatId: string, options?: RawAxiosRequestConfig) {
|
|
3125
5085
|
return ChatApiFp(this.configuration).getChatThreadById(aid, chatId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3131,6 +5091,7 @@ export class ChatApi extends BaseAPI {
|
|
|
3131
5091
|
* @param {string} messageId Message ID
|
|
3132
5092
|
* @param {*} [options] Override http request option.
|
|
3133
5093
|
* @throws {RequiredError}
|
|
5094
|
+
* @memberof ChatApi
|
|
3134
5095
|
*/
|
|
3135
5096
|
public getMessageById(messageId: string, options?: RawAxiosRequestConfig) {
|
|
3136
5097
|
return ChatApiFp(this.configuration).getMessageById(messageId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3144,6 +5105,7 @@ export class ChatApi extends BaseAPI {
|
|
|
3144
5105
|
* @param {number} [limit] Maximum number of messages to return
|
|
3145
5106
|
* @param {*} [options] Override http request option.
|
|
3146
5107
|
* @throws {RequiredError}
|
|
5108
|
+
* @memberof ChatApi
|
|
3147
5109
|
*/
|
|
3148
5110
|
public getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
3149
5111
|
return ChatApiFp(this.configuration).getSkillHistory(aid, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3155,6 +5117,7 @@ export class ChatApi extends BaseAPI {
|
|
|
3155
5117
|
* @param {string} aid Agent ID
|
|
3156
5118
|
* @param {*} [options] Override http request option.
|
|
3157
5119
|
* @throws {RequiredError}
|
|
5120
|
+
* @memberof ChatApi
|
|
3158
5121
|
*/
|
|
3159
5122
|
public listChatsForAgent(aid: string, options?: RawAxiosRequestConfig) {
|
|
3160
5123
|
return ChatApiFp(this.configuration).listChatsForAgent(aid, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3169,6 +5132,7 @@ export class ChatApi extends BaseAPI {
|
|
|
3169
5132
|
* @param {number} [limit] Maximum number of messages to return
|
|
3170
5133
|
* @param {*} [options] Override http request option.
|
|
3171
5134
|
* @throws {RequiredError}
|
|
5135
|
+
* @memberof ChatApi
|
|
3172
5136
|
*/
|
|
3173
5137
|
public listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
3174
5138
|
return ChatApiFp(this.configuration).listMessagesInChat(aid, chatId, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3181,6 +5145,7 @@ export class ChatApi extends BaseAPI {
|
|
|
3181
5145
|
* @param {string} chatId Chat ID
|
|
3182
5146
|
* @param {*} [options] Override http request option.
|
|
3183
5147
|
* @throws {RequiredError}
|
|
5148
|
+
* @memberof ChatApi
|
|
3184
5149
|
*/
|
|
3185
5150
|
public retryMessageInChat(aid: string, chatId: string, options?: RawAxiosRequestConfig) {
|
|
3186
5151
|
return ChatApiFp(this.configuration).retryMessageInChat(aid, chatId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3194,6 +5159,7 @@ export class ChatApi extends BaseAPI {
|
|
|
3194
5159
|
* @param {ChatMessageRequest} chatMessageRequest
|
|
3195
5160
|
* @param {*} [options] Override http request option.
|
|
3196
5161
|
* @throws {RequiredError}
|
|
5162
|
+
* @memberof ChatApi
|
|
3197
5163
|
*/
|
|
3198
5164
|
public sendMessageToChat(aid: string, chatId: string, chatMessageRequest: ChatMessageRequest, options?: RawAxiosRequestConfig) {
|
|
3199
5165
|
return ChatApiFp(this.configuration).sendMessageToChat(aid, chatId, chatMessageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3207,6 +5173,7 @@ export class ChatApi extends BaseAPI {
|
|
|
3207
5173
|
* @param {ChatUpdateRequest} chatUpdateRequest
|
|
3208
5174
|
* @param {*} [options] Override http request option.
|
|
3209
5175
|
* @throws {RequiredError}
|
|
5176
|
+
* @memberof ChatApi
|
|
3210
5177
|
*/
|
|
3211
5178
|
public updateChatThread(aid: string, chatId: string, chatUpdateRequest: ChatUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
3212
5179
|
return ChatApiFp(this.configuration).updateChatThread(aid, chatId, chatUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3217,6 +5184,7 @@ export class ChatApi extends BaseAPI {
|
|
|
3217
5184
|
|
|
3218
5185
|
/**
|
|
3219
5186
|
* CreditApi - axios parameter creator
|
|
5187
|
+
* @export
|
|
3220
5188
|
*/
|
|
3221
5189
|
export const CreditApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3222
5190
|
return {
|
|
@@ -3453,6 +5421,7 @@ export const CreditApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3453
5421
|
|
|
3454
5422
|
/**
|
|
3455
5423
|
* CreditApi - functional programming interface
|
|
5424
|
+
* @export
|
|
3456
5425
|
*/
|
|
3457
5426
|
export const CreditApiFp = function(configuration?: Configuration) {
|
|
3458
5427
|
const localVarAxiosParamCreator = CreditApiAxiosParamCreator(configuration)
|
|
@@ -3534,6 +5503,7 @@ export const CreditApiFp = function(configuration?: Configuration) {
|
|
|
3534
5503
|
|
|
3535
5504
|
/**
|
|
3536
5505
|
* CreditApi - factory interface
|
|
5506
|
+
* @export
|
|
3537
5507
|
*/
|
|
3538
5508
|
export const CreditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3539
5509
|
const localVarFp = CreditApiFp(configuration)
|
|
@@ -3600,6 +5570,9 @@ export const CreditApiFactory = function (configuration?: Configuration, basePat
|
|
|
3600
5570
|
|
|
3601
5571
|
/**
|
|
3602
5572
|
* CreditApi - object-oriented interface
|
|
5573
|
+
* @export
|
|
5574
|
+
* @class CreditApi
|
|
5575
|
+
* @extends {BaseAPI}
|
|
3603
5576
|
*/
|
|
3604
5577
|
export class CreditApi extends BaseAPI {
|
|
3605
5578
|
/**
|
|
@@ -3608,6 +5581,7 @@ export class CreditApi extends BaseAPI {
|
|
|
3608
5581
|
* @param {string} eventId Credit event ID
|
|
3609
5582
|
* @param {*} [options] Override http request option.
|
|
3610
5583
|
* @throws {RequiredError}
|
|
5584
|
+
* @memberof CreditApi
|
|
3611
5585
|
*/
|
|
3612
5586
|
public fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig) {
|
|
3613
5587
|
return CreditApiFp(this.configuration).fetchCreditEvent(eventId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3618,6 +5592,7 @@ export class CreditApi extends BaseAPI {
|
|
|
3618
5592
|
* @summary Get User Account
|
|
3619
5593
|
* @param {*} [options] Override http request option.
|
|
3620
5594
|
* @throws {RequiredError}
|
|
5595
|
+
* @memberof CreditApi
|
|
3621
5596
|
*/
|
|
3622
5597
|
public getUserAccount(options?: RawAxiosRequestConfig) {
|
|
3623
5598
|
return CreditApiFp(this.configuration).getUserAccount(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3631,6 +5606,7 @@ export class CreditApi extends BaseAPI {
|
|
|
3631
5606
|
* @param {number} [limit] Maximum number of events to return
|
|
3632
5607
|
* @param {*} [options] Override http request option.
|
|
3633
5608
|
* @throws {RequiredError}
|
|
5609
|
+
* @memberof CreditApi
|
|
3634
5610
|
*/
|
|
3635
5611
|
public listAgentIncomeEvents(agentId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
3636
5612
|
return CreditApiFp(this.configuration).listAgentIncomeEvents(agentId, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3645,6 +5621,7 @@ export class CreditApi extends BaseAPI {
|
|
|
3645
5621
|
* @param {number} [limit] Maximum number of events to return
|
|
3646
5622
|
* @param {*} [options] Override http request option.
|
|
3647
5623
|
* @throws {RequiredError}
|
|
5624
|
+
* @memberof CreditApi
|
|
3648
5625
|
*/
|
|
3649
5626
|
public listUserEvents(eventType?: Array<EventType> | null, direction?: Direction | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
3650
5627
|
return CreditApiFp(this.configuration).listUserEvents(eventType, direction, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3659,6 +5636,7 @@ export class CreditApi extends BaseAPI {
|
|
|
3659
5636
|
* @param {number} [limit] Maximum number of transactions to return
|
|
3660
5637
|
* @param {*} [options] Override http request option.
|
|
3661
5638
|
* @throws {RequiredError}
|
|
5639
|
+
* @memberof CreditApi
|
|
3662
5640
|
*/
|
|
3663
5641
|
public listUserTransactions(txType?: Array<TransactionType> | null, creditDebit?: CreditDebit | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
3664
5642
|
return CreditApiFp(this.configuration).listUserTransactions(txType, creditDebit, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3669,6 +5647,7 @@ export class CreditApi extends BaseAPI {
|
|
|
3669
5647
|
|
|
3670
5648
|
/**
|
|
3671
5649
|
* GeneratorApi - axios parameter creator
|
|
5650
|
+
* @export
|
|
3672
5651
|
*/
|
|
3673
5652
|
export const GeneratorApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3674
5653
|
return {
|
|
@@ -3794,6 +5773,7 @@ export const GeneratorApiAxiosParamCreator = function (configuration?: Configura
|
|
|
3794
5773
|
|
|
3795
5774
|
/**
|
|
3796
5775
|
* GeneratorApi - functional programming interface
|
|
5776
|
+
* @export
|
|
3797
5777
|
*/
|
|
3798
5778
|
export const GeneratorApiFp = function(configuration?: Configuration) {
|
|
3799
5779
|
const localVarAxiosParamCreator = GeneratorApiAxiosParamCreator(configuration)
|
|
@@ -3842,6 +5822,7 @@ export const GeneratorApiFp = function(configuration?: Configuration) {
|
|
|
3842
5822
|
|
|
3843
5823
|
/**
|
|
3844
5824
|
* GeneratorApi - factory interface
|
|
5825
|
+
* @export
|
|
3845
5826
|
*/
|
|
3846
5827
|
export const GeneratorApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3847
5828
|
const localVarFp = GeneratorApiFp(configuration)
|
|
@@ -3881,6 +5862,9 @@ export const GeneratorApiFactory = function (configuration?: Configuration, base
|
|
|
3881
5862
|
|
|
3882
5863
|
/**
|
|
3883
5864
|
* GeneratorApi - object-oriented interface
|
|
5865
|
+
* @export
|
|
5866
|
+
* @class GeneratorApi
|
|
5867
|
+
* @extends {BaseAPI}
|
|
3884
5868
|
*/
|
|
3885
5869
|
export class GeneratorApi extends BaseAPI {
|
|
3886
5870
|
/**
|
|
@@ -3889,6 +5873,7 @@ export class GeneratorApi extends BaseAPI {
|
|
|
3889
5873
|
* @param {AgentGenerateRequest} agentGenerateRequest
|
|
3890
5874
|
* @param {*} [options] Override http request option.
|
|
3891
5875
|
* @throws {RequiredError}
|
|
5876
|
+
* @memberof GeneratorApi
|
|
3892
5877
|
*/
|
|
3893
5878
|
public generateAgent(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig) {
|
|
3894
5879
|
return GeneratorApiFp(this.configuration).generateAgent(agentGenerateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3900,6 +5885,7 @@ export class GeneratorApi extends BaseAPI {
|
|
|
3900
5885
|
* @param {string} projectId
|
|
3901
5886
|
* @param {*} [options] Override http request option.
|
|
3902
5887
|
* @throws {RequiredError}
|
|
5888
|
+
* @memberof GeneratorApi
|
|
3903
5889
|
*/
|
|
3904
5890
|
public getGenerationHistory(projectId: string, options?: RawAxiosRequestConfig) {
|
|
3905
5891
|
return GeneratorApiFp(this.configuration).getGenerationHistory(projectId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3911,6 +5897,7 @@ export class GeneratorApi extends BaseAPI {
|
|
|
3911
5897
|
* @param {number} [limit]
|
|
3912
5898
|
* @param {*} [options] Override http request option.
|
|
3913
5899
|
* @throws {RequiredError}
|
|
5900
|
+
* @memberof GeneratorApi
|
|
3914
5901
|
*/
|
|
3915
5902
|
public getGenerations(limit?: number, options?: RawAxiosRequestConfig) {
|
|
3916
5903
|
return GeneratorApiFp(this.configuration).getGenerations(limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3921,6 +5908,7 @@ export class GeneratorApi extends BaseAPI {
|
|
|
3921
5908
|
|
|
3922
5909
|
/**
|
|
3923
5910
|
* HealthApi - axios parameter creator
|
|
5911
|
+
* @export
|
|
3924
5912
|
*/
|
|
3925
5913
|
export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3926
5914
|
return {
|
|
@@ -3959,6 +5947,7 @@ export const HealthApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3959
5947
|
|
|
3960
5948
|
/**
|
|
3961
5949
|
* HealthApi - functional programming interface
|
|
5950
|
+
* @export
|
|
3962
5951
|
*/
|
|
3963
5952
|
export const HealthApiFp = function(configuration?: Configuration) {
|
|
3964
5953
|
const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
|
|
@@ -3980,6 +5969,7 @@ export const HealthApiFp = function(configuration?: Configuration) {
|
|
|
3980
5969
|
|
|
3981
5970
|
/**
|
|
3982
5971
|
* HealthApi - factory interface
|
|
5972
|
+
* @export
|
|
3983
5973
|
*/
|
|
3984
5974
|
export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3985
5975
|
const localVarFp = HealthApiFp(configuration)
|
|
@@ -3998,6 +5988,9 @@ export const HealthApiFactory = function (configuration?: Configuration, basePat
|
|
|
3998
5988
|
|
|
3999
5989
|
/**
|
|
4000
5990
|
* HealthApi - object-oriented interface
|
|
5991
|
+
* @export
|
|
5992
|
+
* @class HealthApi
|
|
5993
|
+
* @extends {BaseAPI}
|
|
4001
5994
|
*/
|
|
4002
5995
|
export class HealthApi extends BaseAPI {
|
|
4003
5996
|
/**
|
|
@@ -4005,6 +5998,7 @@ export class HealthApi extends BaseAPI {
|
|
|
4005
5998
|
* @summary Health check endpoint
|
|
4006
5999
|
* @param {*} [options] Override http request option.
|
|
4007
6000
|
* @throws {RequiredError}
|
|
6001
|
+
* @memberof HealthApi
|
|
4008
6002
|
*/
|
|
4009
6003
|
public healthCheck(options?: RawAxiosRequestConfig) {
|
|
4010
6004
|
return HealthApiFp(this.configuration).healthCheck(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4015,6 +6009,7 @@ export class HealthApi extends BaseAPI {
|
|
|
4015
6009
|
|
|
4016
6010
|
/**
|
|
4017
6011
|
* MetadataApi - axios parameter creator
|
|
6012
|
+
* @export
|
|
4018
6013
|
*/
|
|
4019
6014
|
export const MetadataApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4020
6015
|
return {
|
|
@@ -4189,6 +6184,7 @@ export const MetadataApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4189
6184
|
|
|
4190
6185
|
/**
|
|
4191
6186
|
* MetadataApi - functional programming interface
|
|
6187
|
+
* @export
|
|
4192
6188
|
*/
|
|
4193
6189
|
export const MetadataApiFp = function(configuration?: Configuration) {
|
|
4194
6190
|
const localVarAxiosParamCreator = MetadataApiAxiosParamCreator(configuration)
|
|
@@ -4262,6 +6258,7 @@ export const MetadataApiFp = function(configuration?: Configuration) {
|
|
|
4262
6258
|
|
|
4263
6259
|
/**
|
|
4264
6260
|
* MetadataApi - factory interface
|
|
6261
|
+
* @export
|
|
4265
6262
|
*/
|
|
4266
6263
|
export const MetadataApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4267
6264
|
const localVarFp = MetadataApiFp(configuration)
|
|
@@ -4320,6 +6317,9 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP
|
|
|
4320
6317
|
|
|
4321
6318
|
/**
|
|
4322
6319
|
* MetadataApi - object-oriented interface
|
|
6320
|
+
* @export
|
|
6321
|
+
* @class MetadataApi
|
|
6322
|
+
* @extends {BaseAPI}
|
|
4323
6323
|
*/
|
|
4324
6324
|
export class MetadataApi extends BaseAPI {
|
|
4325
6325
|
/**
|
|
@@ -4327,6 +6327,7 @@ export class MetadataApi extends BaseAPI {
|
|
|
4327
6327
|
* @summary Get agent schema
|
|
4328
6328
|
* @param {*} [options] Override http request option.
|
|
4329
6329
|
* @throws {RequiredError}
|
|
6330
|
+
* @memberof MetadataApi
|
|
4330
6331
|
*/
|
|
4331
6332
|
public getAgentSchema(options?: RawAxiosRequestConfig) {
|
|
4332
6333
|
return MetadataApiFp(this.configuration).getAgentSchema(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4337,6 +6338,7 @@ export class MetadataApi extends BaseAPI {
|
|
|
4337
6338
|
* @summary Get all LLM models
|
|
4338
6339
|
* @param {*} [options] Override http request option.
|
|
4339
6340
|
* @throws {RequiredError}
|
|
6341
|
+
* @memberof MetadataApi
|
|
4340
6342
|
*/
|
|
4341
6343
|
public getLlms(options?: RawAxiosRequestConfig) {
|
|
4342
6344
|
return MetadataApiFp(this.configuration).getLlms(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4350,6 +6352,7 @@ export class MetadataApi extends BaseAPI {
|
|
|
4350
6352
|
* @param {string} ext Icon file extension
|
|
4351
6353
|
* @param {*} [options] Override http request option.
|
|
4352
6354
|
* @throws {RequiredError}
|
|
6355
|
+
* @memberof MetadataApi
|
|
4353
6356
|
*/
|
|
4354
6357
|
public getSkillIcon(skill: string, iconName: string, ext: string, options?: RawAxiosRequestConfig) {
|
|
4355
6358
|
return MetadataApiFp(this.configuration).getSkillIcon(skill, iconName, ext, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4361,6 +6364,7 @@ export class MetadataApi extends BaseAPI {
|
|
|
4361
6364
|
* @param {string} skill Skill name
|
|
4362
6365
|
* @param {*} [options] Override http request option.
|
|
4363
6366
|
* @throws {RequiredError}
|
|
6367
|
+
* @memberof MetadataApi
|
|
4364
6368
|
*/
|
|
4365
6369
|
public getSkillSchema(skill: string, options?: RawAxiosRequestConfig) {
|
|
4366
6370
|
return MetadataApiFp(this.configuration).getSkillSchema(skill, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4371,6 +6375,7 @@ export class MetadataApi extends BaseAPI {
|
|
|
4371
6375
|
* @summary Get all skills
|
|
4372
6376
|
* @param {*} [options] Override http request option.
|
|
4373
6377
|
* @throws {RequiredError}
|
|
6378
|
+
* @memberof MetadataApi
|
|
4374
6379
|
*/
|
|
4375
6380
|
public getSkills(options?: RawAxiosRequestConfig) {
|
|
4376
6381
|
return MetadataApiFp(this.configuration).getSkills(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4381,6 +6386,7 @@ export class MetadataApi extends BaseAPI {
|
|
|
4381
6386
|
|
|
4382
6387
|
/**
|
|
4383
6388
|
* OAuthApi - axios parameter creator
|
|
6389
|
+
* @export
|
|
4384
6390
|
*/
|
|
4385
6391
|
export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4386
6392
|
return {
|
|
@@ -4525,6 +6531,7 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
4525
6531
|
|
|
4526
6532
|
/**
|
|
4527
6533
|
* OAuthApi - functional programming interface
|
|
6534
|
+
* @export
|
|
4528
6535
|
*/
|
|
4529
6536
|
export const OAuthApiFp = function(configuration?: Configuration) {
|
|
4530
6537
|
const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
|
|
@@ -4576,6 +6583,7 @@ export const OAuthApiFp = function(configuration?: Configuration) {
|
|
|
4576
6583
|
|
|
4577
6584
|
/**
|
|
4578
6585
|
* OAuthApi - factory interface
|
|
6586
|
+
* @export
|
|
4579
6587
|
*/
|
|
4580
6588
|
export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4581
6589
|
const localVarFp = OAuthApiFp(configuration)
|
|
@@ -4618,6 +6626,9 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
|
|
|
4618
6626
|
|
|
4619
6627
|
/**
|
|
4620
6628
|
* OAuthApi - object-oriented interface
|
|
6629
|
+
* @export
|
|
6630
|
+
* @class OAuthApi
|
|
6631
|
+
* @extends {BaseAPI}
|
|
4621
6632
|
*/
|
|
4622
6633
|
export class OAuthApi extends BaseAPI {
|
|
4623
6634
|
/**
|
|
@@ -4627,6 +6638,7 @@ export class OAuthApi extends BaseAPI {
|
|
|
4627
6638
|
* @param {string} redirectUri
|
|
4628
6639
|
* @param {*} [options] Override http request option.
|
|
4629
6640
|
* @throws {RequiredError}
|
|
6641
|
+
* @memberof OAuthApi
|
|
4630
6642
|
*/
|
|
4631
6643
|
public getTwitterAuthUrl(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig) {
|
|
4632
6644
|
return OAuthApiFp(this.configuration).getTwitterAuthUrl(agentId, redirectUri, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4640,6 +6652,7 @@ export class OAuthApi extends BaseAPI {
|
|
|
4640
6652
|
* @param {string | null} [error]
|
|
4641
6653
|
* @param {*} [options] Override http request option.
|
|
4642
6654
|
* @throws {RequiredError}
|
|
6655
|
+
* @memberof OAuthApi
|
|
4643
6656
|
*/
|
|
4644
6657
|
public twitterOauthCallback(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig) {
|
|
4645
6658
|
return OAuthApiFp(this.configuration).twitterOauthCallback(state, code, error, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4651,6 +6664,7 @@ export class OAuthApi extends BaseAPI {
|
|
|
4651
6664
|
* @param {string} agentId ID of the agent to unlink from X
|
|
4652
6665
|
* @param {*} [options] Override http request option.
|
|
4653
6666
|
* @throws {RequiredError}
|
|
6667
|
+
* @memberof OAuthApi
|
|
4654
6668
|
*/
|
|
4655
6669
|
public unlinkTwitter(agentId: string, options?: RawAxiosRequestConfig) {
|
|
4656
6670
|
return OAuthApiFp(this.configuration).unlinkTwitter(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4661,6 +6675,7 @@ export class OAuthApi extends BaseAPI {
|
|
|
4661
6675
|
|
|
4662
6676
|
/**
|
|
4663
6677
|
* UserApi - axios parameter creator
|
|
6678
|
+
* @export
|
|
4664
6679
|
*/
|
|
4665
6680
|
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4666
6681
|
return {
|
|
@@ -4751,6 +6766,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
4751
6766
|
|
|
4752
6767
|
/**
|
|
4753
6768
|
* UserApi - functional programming interface
|
|
6769
|
+
* @export
|
|
4754
6770
|
*/
|
|
4755
6771
|
export const UserApiFp = function(configuration?: Configuration) {
|
|
4756
6772
|
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
|
|
@@ -4762,7 +6778,7 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
4762
6778
|
* @param {*} [options] Override http request option.
|
|
4763
6779
|
* @throws {RequiredError}
|
|
4764
6780
|
*/
|
|
4765
|
-
async getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
6781
|
+
async getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentOutput>> {
|
|
4766
6782
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAgentById(agentId, options);
|
|
4767
6783
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4768
6784
|
const localVarOperationServerBasePath = operationServerMap['UserApi.getUserAgentById']?.[localVarOperationServerIndex]?.url;
|
|
@@ -4787,6 +6803,7 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
4787
6803
|
|
|
4788
6804
|
/**
|
|
4789
6805
|
* UserApi - factory interface
|
|
6806
|
+
* @export
|
|
4790
6807
|
*/
|
|
4791
6808
|
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4792
6809
|
const localVarFp = UserApiFp(configuration)
|
|
@@ -4798,7 +6815,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
4798
6815
|
* @param {*} [options] Override http request option.
|
|
4799
6816
|
* @throws {RequiredError}
|
|
4800
6817
|
*/
|
|
4801
|
-
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
6818
|
+
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentOutput> {
|
|
4802
6819
|
return localVarFp.getUserAgentById(agentId, options).then((request) => request(axios, basePath));
|
|
4803
6820
|
},
|
|
4804
6821
|
/**
|
|
@@ -4817,6 +6834,9 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
4817
6834
|
|
|
4818
6835
|
/**
|
|
4819
6836
|
* UserApi - object-oriented interface
|
|
6837
|
+
* @export
|
|
6838
|
+
* @class UserApi
|
|
6839
|
+
* @extends {BaseAPI}
|
|
4820
6840
|
*/
|
|
4821
6841
|
export class UserApi extends BaseAPI {
|
|
4822
6842
|
/**
|
|
@@ -4825,6 +6845,7 @@ export class UserApi extends BaseAPI {
|
|
|
4825
6845
|
* @param {string} agentId Agent ID
|
|
4826
6846
|
* @param {*} [options] Override http request option.
|
|
4827
6847
|
* @throws {RequiredError}
|
|
6848
|
+
* @memberof UserApi
|
|
4828
6849
|
*/
|
|
4829
6850
|
public getUserAgentById(agentId: string, options?: RawAxiosRequestConfig) {
|
|
4830
6851
|
return UserApiFp(this.configuration).getUserAgentById(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4837,6 +6858,7 @@ export class UserApi extends BaseAPI {
|
|
|
4837
6858
|
* @param {number} [limit] Maximum number of agents to return
|
|
4838
6859
|
* @param {*} [options] Override http request option.
|
|
4839
6860
|
* @throws {RequiredError}
|
|
6861
|
+
* @memberof UserApi
|
|
4840
6862
|
*/
|
|
4841
6863
|
public getUserAgents(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
4842
6864
|
return UserApiFp(this.configuration).getUserAgents(cursor, limit, options).then((request) => request(this.axios, this.basePath));
|