@crestal/nation-sdk 0.7.4 → 0.7.5
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/VERSION +1 -1
- package/README.md +3 -2
- package/api.ts +2197 -1
- package/base.ts +25 -1
- package/common.ts +38 -1
- package/configuration.ts +18 -1
- package/dist/api.d.ts +2158 -2
- package/dist/api.js +224 -1
- 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/Agent.md +2 -2
- package/docs/AgentResponse.md +2 -2
- package/docs/DraftApi.md +53 -0
- package/docs/LLMModelInfoWithProviderName.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.7.
|
|
7
|
+
* The version of the OpenAPI document: 0.7.5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -25,59 +25,254 @@ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerM
|
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Agent model.
|
|
28
|
+
* @export
|
|
29
|
+
* @interface Agent
|
|
28
30
|
*/
|
|
29
31
|
export interface Agent {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof Agent
|
|
36
|
+
*/
|
|
30
37
|
'description'?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof Agent
|
|
42
|
+
*/
|
|
31
43
|
'external_website'?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof Agent
|
|
48
|
+
*/
|
|
32
49
|
'ticker'?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof Agent
|
|
54
|
+
*/
|
|
33
55
|
'token_address'?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof Agent
|
|
60
|
+
*/
|
|
34
61
|
'token_pool'?: string | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof Agent
|
|
66
|
+
*/
|
|
35
67
|
'fee_percentage'?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof Agent
|
|
72
|
+
*/
|
|
36
73
|
'example_intro'?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {Array<AgentExample>}
|
|
77
|
+
* @memberof Agent
|
|
78
|
+
*/
|
|
37
79
|
'examples'?: Array<AgentExample> | null;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof Agent
|
|
84
|
+
*/
|
|
38
85
|
'name': string | null;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof Agent
|
|
90
|
+
*/
|
|
39
91
|
'picture'?: string | null;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof Agent
|
|
96
|
+
*/
|
|
40
97
|
'purpose'?: string | null;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof Agent
|
|
102
|
+
*/
|
|
41
103
|
'personality'?: string | null;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof Agent
|
|
108
|
+
*/
|
|
42
109
|
'principles'?: string | null;
|
|
43
110
|
/**
|
|
44
111
|
* AI model identifier to be used by this agent for processing requests.
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof Agent
|
|
45
114
|
*/
|
|
46
115
|
'model'?: string;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof Agent
|
|
120
|
+
*/
|
|
47
121
|
'prompt'?: string | null;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {string}
|
|
125
|
+
* @memberof Agent
|
|
126
|
+
*/
|
|
48
127
|
'prompt_append'?: string | null;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @type {number}
|
|
131
|
+
* @memberof Agent
|
|
132
|
+
*/
|
|
49
133
|
'temperature'?: number | null;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @type {number}
|
|
137
|
+
* @memberof Agent
|
|
138
|
+
*/
|
|
50
139
|
'frequency_penalty'?: number | null;
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @type {number}
|
|
143
|
+
* @memberof Agent
|
|
144
|
+
*/
|
|
51
145
|
'presence_penalty'?: number | null;
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @type {string}
|
|
149
|
+
* @memberof Agent
|
|
150
|
+
*/
|
|
52
151
|
'wallet_provider'?: AgentWalletProviderEnum | null;
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @type {string}
|
|
155
|
+
* @memberof Agent
|
|
156
|
+
*/
|
|
53
157
|
'readonly_wallet_address'?: string | null;
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @type {string}
|
|
161
|
+
* @memberof Agent
|
|
162
|
+
*/
|
|
54
163
|
'network_id'?: AgentNetworkIdEnum | null;
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @type {object}
|
|
167
|
+
* @memberof Agent
|
|
168
|
+
*/
|
|
55
169
|
'skills'?: object | null;
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @type {string}
|
|
173
|
+
* @memberof Agent
|
|
174
|
+
*/
|
|
56
175
|
'short_term_memory_strategy'?: AgentShortTermMemoryStrategyEnum | null;
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
* @type {Array<AgentAutonomous>}
|
|
179
|
+
* @memberof Agent
|
|
180
|
+
*/
|
|
57
181
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
* @type {boolean}
|
|
185
|
+
* @memberof Agent
|
|
186
|
+
*/
|
|
58
187
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
188
|
+
/**
|
|
189
|
+
*
|
|
190
|
+
* @type {string}
|
|
191
|
+
* @memberof Agent
|
|
192
|
+
*/
|
|
59
193
|
'telegram_entrypoint_prompt'?: string | null;
|
|
194
|
+
/**
|
|
195
|
+
*
|
|
196
|
+
* @type {object}
|
|
197
|
+
* @memberof Agent
|
|
198
|
+
*/
|
|
60
199
|
'telegram_config'?: object | null;
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @type {string}
|
|
203
|
+
* @memberof Agent
|
|
204
|
+
*/
|
|
61
205
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @type {string}
|
|
209
|
+
* @memberof Agent
|
|
210
|
+
*/
|
|
62
211
|
'upstream_id'?: string | null;
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
* @type {object}
|
|
215
|
+
* @memberof Agent
|
|
216
|
+
*/
|
|
63
217
|
'upstream_extra'?: object | null;
|
|
64
218
|
/**
|
|
65
219
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
220
|
+
* @type {string}
|
|
221
|
+
* @memberof Agent
|
|
66
222
|
*/
|
|
67
223
|
'id'?: string;
|
|
224
|
+
/**
|
|
225
|
+
*
|
|
226
|
+
* @type {string}
|
|
227
|
+
* @memberof Agent
|
|
228
|
+
*/
|
|
68
229
|
'owner'?: string | null;
|
|
230
|
+
/**
|
|
231
|
+
*
|
|
232
|
+
* @type {string}
|
|
233
|
+
* @memberof Agent
|
|
234
|
+
*/
|
|
69
235
|
'slug'?: string | null;
|
|
236
|
+
/**
|
|
237
|
+
*
|
|
238
|
+
* @type {string}
|
|
239
|
+
* @memberof Agent
|
|
240
|
+
*/
|
|
70
241
|
'version'?: string | null;
|
|
242
|
+
/**
|
|
243
|
+
*
|
|
244
|
+
* @type {object}
|
|
245
|
+
* @memberof Agent
|
|
246
|
+
*/
|
|
71
247
|
'statistics'?: object | null;
|
|
248
|
+
/**
|
|
249
|
+
*
|
|
250
|
+
* @type {object}
|
|
251
|
+
* @memberof Agent
|
|
252
|
+
*/
|
|
72
253
|
'assets'?: object | null;
|
|
254
|
+
/**
|
|
255
|
+
*
|
|
256
|
+
* @type {CreditAccount}
|
|
257
|
+
* @memberof Agent
|
|
258
|
+
*/
|
|
73
259
|
'account_snapshot'?: CreditAccount | null;
|
|
260
|
+
/**
|
|
261
|
+
*
|
|
262
|
+
* @type {object}
|
|
263
|
+
* @memberof Agent
|
|
264
|
+
*/
|
|
74
265
|
'extra'?: object | null;
|
|
75
266
|
/**
|
|
76
267
|
* Timestamp when the agent was created, will ignore when importing
|
|
268
|
+
* @type {string}
|
|
269
|
+
* @memberof Agent
|
|
77
270
|
*/
|
|
78
271
|
'created_at'?: string;
|
|
79
272
|
/**
|
|
80
273
|
* Timestamp when the agent was last updated, will ignore when importing
|
|
274
|
+
* @type {string}
|
|
275
|
+
* @memberof Agent
|
|
81
276
|
*/
|
|
82
277
|
'updated_at'?: string;
|
|
83
278
|
}
|
|
@@ -112,107 +307,306 @@ export type AgentShortTermMemoryStrategyEnum = typeof AgentShortTermMemoryStrate
|
|
|
112
307
|
|
|
113
308
|
/**
|
|
114
309
|
* Response model for agent API key generation.
|
|
310
|
+
* @export
|
|
311
|
+
* @interface AgentApiKeyResponse
|
|
115
312
|
*/
|
|
116
313
|
export interface AgentApiKeyResponse {
|
|
117
314
|
/**
|
|
118
315
|
* The private API key for the agent (sk-)
|
|
316
|
+
* @type {string}
|
|
317
|
+
* @memberof AgentApiKeyResponse
|
|
119
318
|
*/
|
|
120
319
|
'api_key': string;
|
|
121
320
|
/**
|
|
122
321
|
* The public API key for the agent (pk-)
|
|
322
|
+
* @type {string}
|
|
323
|
+
* @memberof AgentApiKeyResponse
|
|
123
324
|
*/
|
|
124
325
|
'api_key_public': string;
|
|
125
326
|
/**
|
|
126
327
|
* The base URL for the API
|
|
328
|
+
* @type {string}
|
|
329
|
+
* @memberof AgentApiKeyResponse
|
|
127
330
|
*/
|
|
128
331
|
'base_url': string;
|
|
129
332
|
/**
|
|
130
333
|
* API documentation URL
|
|
334
|
+
* @type {string}
|
|
335
|
+
* @memberof AgentApiKeyResponse
|
|
131
336
|
*/
|
|
132
337
|
'api_doc': string;
|
|
133
338
|
/**
|
|
134
339
|
* OpenAPI JSON URL for AI integration
|
|
340
|
+
* @type {string}
|
|
341
|
+
* @memberof AgentApiKeyResponse
|
|
135
342
|
*/
|
|
136
343
|
'doc_for_ai': string;
|
|
137
344
|
}
|
|
138
345
|
/**
|
|
139
346
|
* Response model for agent assets.
|
|
347
|
+
* @export
|
|
348
|
+
* @interface AgentAssetsResponse
|
|
140
349
|
*/
|
|
141
350
|
export interface AgentAssetsResponse {
|
|
142
351
|
/**
|
|
143
352
|
* ID of the agent
|
|
353
|
+
* @type {string}
|
|
354
|
+
* @memberof AgentAssetsResponse
|
|
144
355
|
*/
|
|
145
356
|
'agent_id': string;
|
|
357
|
+
/**
|
|
358
|
+
*
|
|
359
|
+
* @type {string}
|
|
360
|
+
* @memberof AgentAssetsResponse
|
|
361
|
+
*/
|
|
146
362
|
'network_id': string | null;
|
|
363
|
+
/**
|
|
364
|
+
*
|
|
365
|
+
* @type {string}
|
|
366
|
+
* @memberof AgentAssetsResponse
|
|
367
|
+
*/
|
|
147
368
|
'wallet_address': string | null;
|
|
369
|
+
/**
|
|
370
|
+
*
|
|
371
|
+
* @type {string}
|
|
372
|
+
* @memberof AgentAssetsResponse
|
|
373
|
+
*/
|
|
148
374
|
'ticker': string | null;
|
|
375
|
+
/**
|
|
376
|
+
*
|
|
377
|
+
* @type {string}
|
|
378
|
+
* @memberof AgentAssetsResponse
|
|
379
|
+
*/
|
|
149
380
|
'token_address': string | null;
|
|
381
|
+
/**
|
|
382
|
+
*
|
|
383
|
+
* @type {string}
|
|
384
|
+
* @memberof AgentAssetsResponse
|
|
385
|
+
*/
|
|
150
386
|
'token_pool': string | null;
|
|
151
387
|
/**
|
|
152
388
|
* Total value locked, set to 0 for this version
|
|
389
|
+
* @type {string}
|
|
390
|
+
* @memberof AgentAssetsResponse
|
|
153
391
|
*/
|
|
154
392
|
'tvl'?: string;
|
|
155
393
|
/**
|
|
156
394
|
* List of assets with symbol and balance
|
|
395
|
+
* @type {Array<Asset>}
|
|
396
|
+
* @memberof AgentAssetsResponse
|
|
157
397
|
*/
|
|
158
398
|
'assets': Array<Asset>;
|
|
159
399
|
/**
|
|
160
400
|
* Credit account information
|
|
401
|
+
* @type {CreditAccount}
|
|
402
|
+
* @memberof AgentAssetsResponse
|
|
161
403
|
*/
|
|
162
404
|
'account': CreditAccount;
|
|
163
405
|
}
|
|
164
406
|
/**
|
|
165
407
|
* Autonomous agent configuration.
|
|
408
|
+
* @export
|
|
409
|
+
* @interface AgentAutonomous
|
|
166
410
|
*/
|
|
167
411
|
export interface AgentAutonomous {
|
|
168
412
|
/**
|
|
169
413
|
* Unique identifier for the autonomous configuration
|
|
414
|
+
* @type {string}
|
|
415
|
+
* @memberof AgentAutonomous
|
|
170
416
|
*/
|
|
171
417
|
'id'?: string;
|
|
418
|
+
/**
|
|
419
|
+
*
|
|
420
|
+
* @type {string}
|
|
421
|
+
* @memberof AgentAutonomous
|
|
422
|
+
*/
|
|
172
423
|
'name'?: string | null;
|
|
424
|
+
/**
|
|
425
|
+
*
|
|
426
|
+
* @type {string}
|
|
427
|
+
* @memberof AgentAutonomous
|
|
428
|
+
*/
|
|
173
429
|
'description'?: string | null;
|
|
430
|
+
/**
|
|
431
|
+
*
|
|
432
|
+
* @type {number}
|
|
433
|
+
* @memberof AgentAutonomous
|
|
434
|
+
*/
|
|
174
435
|
'minutes'?: number | null;
|
|
436
|
+
/**
|
|
437
|
+
*
|
|
438
|
+
* @type {string}
|
|
439
|
+
* @memberof AgentAutonomous
|
|
440
|
+
*/
|
|
175
441
|
'cron'?: string | null;
|
|
176
442
|
/**
|
|
177
443
|
* Special prompt used during autonomous operation
|
|
444
|
+
* @type {string}
|
|
445
|
+
* @memberof AgentAutonomous
|
|
178
446
|
*/
|
|
179
447
|
'prompt': string;
|
|
448
|
+
/**
|
|
449
|
+
*
|
|
450
|
+
* @type {boolean}
|
|
451
|
+
* @memberof AgentAutonomous
|
|
452
|
+
*/
|
|
180
453
|
'enabled'?: boolean | null;
|
|
181
454
|
}
|
|
182
455
|
/**
|
|
183
456
|
* Agent create model.
|
|
457
|
+
* @export
|
|
458
|
+
* @interface AgentCreate
|
|
184
459
|
*/
|
|
185
460
|
export interface AgentCreate {
|
|
461
|
+
/**
|
|
462
|
+
*
|
|
463
|
+
* @type {string}
|
|
464
|
+
* @memberof AgentCreate
|
|
465
|
+
*/
|
|
186
466
|
'name': string | null;
|
|
467
|
+
/**
|
|
468
|
+
*
|
|
469
|
+
* @type {string}
|
|
470
|
+
* @memberof AgentCreate
|
|
471
|
+
*/
|
|
187
472
|
'picture'?: string | null;
|
|
473
|
+
/**
|
|
474
|
+
*
|
|
475
|
+
* @type {string}
|
|
476
|
+
* @memberof AgentCreate
|
|
477
|
+
*/
|
|
188
478
|
'purpose'?: string | null;
|
|
479
|
+
/**
|
|
480
|
+
*
|
|
481
|
+
* @type {string}
|
|
482
|
+
* @memberof AgentCreate
|
|
483
|
+
*/
|
|
189
484
|
'personality'?: string | null;
|
|
485
|
+
/**
|
|
486
|
+
*
|
|
487
|
+
* @type {string}
|
|
488
|
+
* @memberof AgentCreate
|
|
489
|
+
*/
|
|
190
490
|
'principles'?: string | null;
|
|
191
491
|
/**
|
|
192
492
|
* AI model identifier to be used by this agent for processing requests.
|
|
493
|
+
* @type {string}
|
|
494
|
+
* @memberof AgentCreate
|
|
193
495
|
*/
|
|
194
496
|
'model'?: string;
|
|
497
|
+
/**
|
|
498
|
+
*
|
|
499
|
+
* @type {string}
|
|
500
|
+
* @memberof AgentCreate
|
|
501
|
+
*/
|
|
195
502
|
'prompt'?: string | null;
|
|
503
|
+
/**
|
|
504
|
+
*
|
|
505
|
+
* @type {string}
|
|
506
|
+
* @memberof AgentCreate
|
|
507
|
+
*/
|
|
196
508
|
'prompt_append'?: string | null;
|
|
509
|
+
/**
|
|
510
|
+
*
|
|
511
|
+
* @type {number}
|
|
512
|
+
* @memberof AgentCreate
|
|
513
|
+
*/
|
|
197
514
|
'temperature'?: number | null;
|
|
515
|
+
/**
|
|
516
|
+
*
|
|
517
|
+
* @type {number}
|
|
518
|
+
* @memberof AgentCreate
|
|
519
|
+
*/
|
|
198
520
|
'frequency_penalty'?: number | null;
|
|
521
|
+
/**
|
|
522
|
+
*
|
|
523
|
+
* @type {number}
|
|
524
|
+
* @memberof AgentCreate
|
|
525
|
+
*/
|
|
199
526
|
'presence_penalty'?: number | null;
|
|
527
|
+
/**
|
|
528
|
+
*
|
|
529
|
+
* @type {string}
|
|
530
|
+
* @memberof AgentCreate
|
|
531
|
+
*/
|
|
200
532
|
'wallet_provider'?: AgentCreateWalletProviderEnum | null;
|
|
533
|
+
/**
|
|
534
|
+
*
|
|
535
|
+
* @type {string}
|
|
536
|
+
* @memberof AgentCreate
|
|
537
|
+
*/
|
|
201
538
|
'readonly_wallet_address'?: string | null;
|
|
539
|
+
/**
|
|
540
|
+
*
|
|
541
|
+
* @type {string}
|
|
542
|
+
* @memberof AgentCreate
|
|
543
|
+
*/
|
|
202
544
|
'network_id'?: AgentCreateNetworkIdEnum | null;
|
|
545
|
+
/**
|
|
546
|
+
*
|
|
547
|
+
* @type {object}
|
|
548
|
+
* @memberof AgentCreate
|
|
549
|
+
*/
|
|
203
550
|
'skills'?: object | null;
|
|
551
|
+
/**
|
|
552
|
+
*
|
|
553
|
+
* @type {string}
|
|
554
|
+
* @memberof AgentCreate
|
|
555
|
+
*/
|
|
204
556
|
'short_term_memory_strategy'?: AgentCreateShortTermMemoryStrategyEnum | null;
|
|
557
|
+
/**
|
|
558
|
+
*
|
|
559
|
+
* @type {Array<AgentAutonomous>}
|
|
560
|
+
* @memberof AgentCreate
|
|
561
|
+
*/
|
|
205
562
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
563
|
+
/**
|
|
564
|
+
*
|
|
565
|
+
* @type {boolean}
|
|
566
|
+
* @memberof AgentCreate
|
|
567
|
+
*/
|
|
206
568
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
569
|
+
/**
|
|
570
|
+
*
|
|
571
|
+
* @type {string}
|
|
572
|
+
* @memberof AgentCreate
|
|
573
|
+
*/
|
|
207
574
|
'telegram_entrypoint_prompt'?: string | null;
|
|
575
|
+
/**
|
|
576
|
+
*
|
|
577
|
+
* @type {object}
|
|
578
|
+
* @memberof AgentCreate
|
|
579
|
+
*/
|
|
208
580
|
'telegram_config'?: object | null;
|
|
581
|
+
/**
|
|
582
|
+
*
|
|
583
|
+
* @type {string}
|
|
584
|
+
* @memberof AgentCreate
|
|
585
|
+
*/
|
|
209
586
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
587
|
+
/**
|
|
588
|
+
*
|
|
589
|
+
* @type {string}
|
|
590
|
+
* @memberof AgentCreate
|
|
591
|
+
*/
|
|
210
592
|
'upstream_id'?: string | null;
|
|
593
|
+
/**
|
|
594
|
+
*
|
|
595
|
+
* @type {object}
|
|
596
|
+
* @memberof AgentCreate
|
|
597
|
+
*/
|
|
211
598
|
'upstream_extra'?: object | null;
|
|
212
599
|
/**
|
|
213
600
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
601
|
+
* @type {string}
|
|
602
|
+
* @memberof AgentCreate
|
|
214
603
|
*/
|
|
215
604
|
'id'?: string;
|
|
605
|
+
/**
|
|
606
|
+
*
|
|
607
|
+
* @type {string}
|
|
608
|
+
* @memberof AgentCreate
|
|
609
|
+
*/
|
|
216
610
|
'owner'?: string | null;
|
|
217
611
|
}
|
|
218
612
|
|
|
@@ -246,66 +640,201 @@ export type AgentCreateShortTermMemoryStrategyEnum = typeof AgentCreateShortTerm
|
|
|
246
640
|
|
|
247
641
|
/**
|
|
248
642
|
* Request model for agent deployment.
|
|
643
|
+
* @export
|
|
644
|
+
* @interface AgentDeployRequest
|
|
249
645
|
*/
|
|
250
646
|
export interface AgentDeployRequest {
|
|
251
647
|
/**
|
|
252
648
|
* Agent ID to deploy
|
|
649
|
+
* @type {string}
|
|
650
|
+
* @memberof AgentDeployRequest
|
|
253
651
|
*/
|
|
254
652
|
'agent_id': string;
|
|
255
653
|
/**
|
|
256
654
|
* Draft ID to deploy
|
|
655
|
+
* @type {string}
|
|
656
|
+
* @memberof AgentDeployRequest
|
|
257
657
|
*/
|
|
258
658
|
'draft_id': string;
|
|
259
659
|
/**
|
|
260
660
|
* Transaction ID for upstream tracking
|
|
661
|
+
* @type {string}
|
|
662
|
+
* @memberof AgentDeployRequest
|
|
261
663
|
*/
|
|
262
664
|
'tx_id': string;
|
|
263
665
|
}
|
|
264
666
|
/**
|
|
265
667
|
* Agent draft model.
|
|
668
|
+
* @export
|
|
669
|
+
* @interface AgentDraft
|
|
266
670
|
*/
|
|
267
671
|
export interface AgentDraft {
|
|
672
|
+
/**
|
|
673
|
+
*
|
|
674
|
+
* @type {string}
|
|
675
|
+
* @memberof AgentDraft
|
|
676
|
+
*/
|
|
268
677
|
'name': string | null;
|
|
678
|
+
/**
|
|
679
|
+
*
|
|
680
|
+
* @type {string}
|
|
681
|
+
* @memberof AgentDraft
|
|
682
|
+
*/
|
|
269
683
|
'picture'?: string | null;
|
|
684
|
+
/**
|
|
685
|
+
*
|
|
686
|
+
* @type {string}
|
|
687
|
+
* @memberof AgentDraft
|
|
688
|
+
*/
|
|
270
689
|
'purpose'?: string | null;
|
|
690
|
+
/**
|
|
691
|
+
*
|
|
692
|
+
* @type {string}
|
|
693
|
+
* @memberof AgentDraft
|
|
694
|
+
*/
|
|
271
695
|
'personality'?: string | null;
|
|
696
|
+
/**
|
|
697
|
+
*
|
|
698
|
+
* @type {string}
|
|
699
|
+
* @memberof AgentDraft
|
|
700
|
+
*/
|
|
272
701
|
'principles'?: string | null;
|
|
273
702
|
/**
|
|
274
703
|
* AI model identifier to be used by this agent for processing requests.
|
|
704
|
+
* @type {string}
|
|
705
|
+
* @memberof AgentDraft
|
|
275
706
|
*/
|
|
276
707
|
'model'?: string;
|
|
708
|
+
/**
|
|
709
|
+
*
|
|
710
|
+
* @type {string}
|
|
711
|
+
* @memberof AgentDraft
|
|
712
|
+
*/
|
|
277
713
|
'prompt'?: string | null;
|
|
714
|
+
/**
|
|
715
|
+
*
|
|
716
|
+
* @type {string}
|
|
717
|
+
* @memberof AgentDraft
|
|
718
|
+
*/
|
|
278
719
|
'prompt_append'?: string | null;
|
|
720
|
+
/**
|
|
721
|
+
*
|
|
722
|
+
* @type {number}
|
|
723
|
+
* @memberof AgentDraft
|
|
724
|
+
*/
|
|
279
725
|
'temperature'?: number | null;
|
|
726
|
+
/**
|
|
727
|
+
*
|
|
728
|
+
* @type {number}
|
|
729
|
+
* @memberof AgentDraft
|
|
730
|
+
*/
|
|
280
731
|
'frequency_penalty'?: number | null;
|
|
732
|
+
/**
|
|
733
|
+
*
|
|
734
|
+
* @type {number}
|
|
735
|
+
* @memberof AgentDraft
|
|
736
|
+
*/
|
|
281
737
|
'presence_penalty'?: number | null;
|
|
738
|
+
/**
|
|
739
|
+
*
|
|
740
|
+
* @type {string}
|
|
741
|
+
* @memberof AgentDraft
|
|
742
|
+
*/
|
|
282
743
|
'wallet_provider'?: AgentDraftWalletProviderEnum | null;
|
|
744
|
+
/**
|
|
745
|
+
*
|
|
746
|
+
* @type {string}
|
|
747
|
+
* @memberof AgentDraft
|
|
748
|
+
*/
|
|
283
749
|
'readonly_wallet_address'?: string | null;
|
|
750
|
+
/**
|
|
751
|
+
*
|
|
752
|
+
* @type {string}
|
|
753
|
+
* @memberof AgentDraft
|
|
754
|
+
*/
|
|
284
755
|
'network_id'?: AgentDraftNetworkIdEnum | null;
|
|
756
|
+
/**
|
|
757
|
+
*
|
|
758
|
+
* @type {object}
|
|
759
|
+
* @memberof AgentDraft
|
|
760
|
+
*/
|
|
285
761
|
'skills'?: object | null;
|
|
762
|
+
/**
|
|
763
|
+
*
|
|
764
|
+
* @type {string}
|
|
765
|
+
* @memberof AgentDraft
|
|
766
|
+
*/
|
|
286
767
|
'short_term_memory_strategy'?: AgentDraftShortTermMemoryStrategyEnum | null;
|
|
768
|
+
/**
|
|
769
|
+
*
|
|
770
|
+
* @type {Array<AgentAutonomous>}
|
|
771
|
+
* @memberof AgentDraft
|
|
772
|
+
*/
|
|
287
773
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
774
|
+
/**
|
|
775
|
+
*
|
|
776
|
+
* @type {boolean}
|
|
777
|
+
* @memberof AgentDraft
|
|
778
|
+
*/
|
|
288
779
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
780
|
+
/**
|
|
781
|
+
*
|
|
782
|
+
* @type {string}
|
|
783
|
+
* @memberof AgentDraft
|
|
784
|
+
*/
|
|
289
785
|
'telegram_entrypoint_prompt'?: string | null;
|
|
786
|
+
/**
|
|
787
|
+
*
|
|
788
|
+
* @type {object}
|
|
789
|
+
* @memberof AgentDraft
|
|
790
|
+
*/
|
|
290
791
|
'telegram_config'?: object | null;
|
|
792
|
+
/**
|
|
793
|
+
*
|
|
794
|
+
* @type {string}
|
|
795
|
+
* @memberof AgentDraft
|
|
796
|
+
*/
|
|
291
797
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
292
798
|
/**
|
|
293
799
|
* Unique identifier for the draft
|
|
800
|
+
* @type {string}
|
|
801
|
+
* @memberof AgentDraft
|
|
294
802
|
*/
|
|
295
803
|
'id'?: string;
|
|
296
804
|
/**
|
|
297
805
|
* Agent id
|
|
806
|
+
* @type {string}
|
|
807
|
+
* @memberof AgentDraft
|
|
298
808
|
*/
|
|
299
809
|
'agent_id'?: string;
|
|
810
|
+
/**
|
|
811
|
+
*
|
|
812
|
+
* @type {string}
|
|
813
|
+
* @memberof AgentDraft
|
|
814
|
+
*/
|
|
300
815
|
'owner'?: string | null;
|
|
816
|
+
/**
|
|
817
|
+
*
|
|
818
|
+
* @type {string}
|
|
819
|
+
* @memberof AgentDraft
|
|
820
|
+
*/
|
|
301
821
|
'version'?: string | null;
|
|
822
|
+
/**
|
|
823
|
+
*
|
|
824
|
+
* @type {string}
|
|
825
|
+
* @memberof AgentDraft
|
|
826
|
+
*/
|
|
302
827
|
'deployed_at'?: string | null;
|
|
303
828
|
/**
|
|
304
829
|
* Timestamp when the agent was created, will ignore when importing
|
|
830
|
+
* @type {string}
|
|
831
|
+
* @memberof AgentDraft
|
|
305
832
|
*/
|
|
306
833
|
'created_at'?: string;
|
|
307
834
|
/**
|
|
308
835
|
* Timestamp when the agent was last updated, will ignore when importing
|
|
836
|
+
* @type {string}
|
|
837
|
+
* @memberof AgentDraft
|
|
309
838
|
*/
|
|
310
839
|
'updated_at'?: string;
|
|
311
840
|
}
|
|
@@ -340,142 +869,390 @@ export type AgentDraftShortTermMemoryStrategyEnum = typeof AgentDraftShortTermMe
|
|
|
340
869
|
|
|
341
870
|
/**
|
|
342
871
|
* Agent example configuration.
|
|
872
|
+
* @export
|
|
873
|
+
* @interface AgentExample
|
|
343
874
|
*/
|
|
344
875
|
export interface AgentExample {
|
|
345
876
|
/**
|
|
346
877
|
* Name of the example
|
|
878
|
+
* @type {string}
|
|
879
|
+
* @memberof AgentExample
|
|
347
880
|
*/
|
|
348
881
|
'name': string;
|
|
349
882
|
/**
|
|
350
883
|
* Description of the example
|
|
884
|
+
* @type {string}
|
|
885
|
+
* @memberof AgentExample
|
|
351
886
|
*/
|
|
352
887
|
'description': string;
|
|
353
888
|
/**
|
|
354
889
|
* Example prompt
|
|
890
|
+
* @type {string}
|
|
891
|
+
* @memberof AgentExample
|
|
355
892
|
*/
|
|
356
893
|
'prompt': string;
|
|
357
894
|
}
|
|
358
895
|
/**
|
|
359
896
|
* Request model for agent generation.
|
|
897
|
+
* @export
|
|
898
|
+
* @interface AgentGenerateRequest
|
|
360
899
|
*/
|
|
361
900
|
export interface AgentGenerateRequest {
|
|
362
901
|
/**
|
|
363
902
|
* Natural language description of the agent\'s desired capabilities
|
|
903
|
+
* @type {string}
|
|
904
|
+
* @memberof AgentGenerateRequest
|
|
364
905
|
*/
|
|
365
906
|
'prompt': string;
|
|
907
|
+
/**
|
|
908
|
+
*
|
|
909
|
+
* @type {AgentCreate}
|
|
910
|
+
* @memberof AgentGenerateRequest
|
|
911
|
+
*/
|
|
366
912
|
'existing_agent'?: AgentCreate | null;
|
|
913
|
+
/**
|
|
914
|
+
*
|
|
915
|
+
* @type {string}
|
|
916
|
+
* @memberof AgentGenerateRequest
|
|
917
|
+
*/
|
|
367
918
|
'project_id'?: string | null;
|
|
919
|
+
/**
|
|
920
|
+
*
|
|
921
|
+
* @type {boolean}
|
|
922
|
+
* @memberof AgentGenerateRequest
|
|
923
|
+
*/
|
|
368
924
|
'deploy'?: boolean | null;
|
|
369
925
|
}
|
|
370
926
|
/**
|
|
371
927
|
* Response model for agent generation.
|
|
928
|
+
* @export
|
|
929
|
+
* @interface AgentGenerateResponse
|
|
372
930
|
*/
|
|
373
931
|
export interface AgentGenerateResponse {
|
|
374
932
|
/**
|
|
375
933
|
* The generated agent schema
|
|
934
|
+
* @type {object}
|
|
935
|
+
* @memberof AgentGenerateResponse
|
|
376
936
|
*/
|
|
377
937
|
'agent': object;
|
|
378
938
|
/**
|
|
379
939
|
* Project ID for this conversation session
|
|
940
|
+
* @type {string}
|
|
941
|
+
* @memberof AgentGenerateResponse
|
|
380
942
|
*/
|
|
381
943
|
'project_id': string;
|
|
382
944
|
/**
|
|
383
945
|
* Human-readable summary of the generated agent
|
|
946
|
+
* @type {string}
|
|
947
|
+
* @memberof AgentGenerateResponse
|
|
384
948
|
*/
|
|
385
949
|
'summary': string;
|
|
386
950
|
/**
|
|
387
951
|
* Generated tags for the agent as ID objects: [{\'id\': 1}, {\'id\': 2}]
|
|
952
|
+
* @type {Array<{ [key: string]: number; }>}
|
|
953
|
+
* @memberof AgentGenerateResponse
|
|
388
954
|
*/
|
|
389
955
|
'tags'?: Array<{ [key: string]: number; }>;
|
|
956
|
+
/**
|
|
957
|
+
*
|
|
958
|
+
* @type {Array<object>}
|
|
959
|
+
* @memberof AgentGenerateResponse
|
|
960
|
+
*/
|
|
390
961
|
'autonomous_tasks'?: Array<object> | null;
|
|
962
|
+
/**
|
|
963
|
+
*
|
|
964
|
+
* @type {Array<string>}
|
|
965
|
+
* @memberof AgentGenerateResponse
|
|
966
|
+
*/
|
|
391
967
|
'activated_skills'?: Array<string> | null;
|
|
392
968
|
}
|
|
393
969
|
/**
|
|
394
970
|
* Paginated response model for agents list. Contains a list of agents, a flag indicating if more items are available, and a cursor for pagination.
|
|
971
|
+
* @export
|
|
972
|
+
* @interface AgentListResponse
|
|
395
973
|
*/
|
|
396
974
|
export interface AgentListResponse {
|
|
397
975
|
/**
|
|
398
976
|
* List of agents
|
|
977
|
+
* @type {Array<AgentResponse>}
|
|
978
|
+
* @memberof AgentListResponse
|
|
399
979
|
*/
|
|
400
980
|
'data': Array<AgentResponse>;
|
|
401
981
|
/**
|
|
402
982
|
* Indicates if there are more items
|
|
983
|
+
* @type {boolean}
|
|
984
|
+
* @memberof AgentListResponse
|
|
403
985
|
*/
|
|
404
986
|
'has_more': boolean;
|
|
987
|
+
/**
|
|
988
|
+
*
|
|
989
|
+
* @type {string}
|
|
990
|
+
* @memberof AgentListResponse
|
|
991
|
+
*/
|
|
405
992
|
'next_cursor'?: string | null;
|
|
406
993
|
}
|
|
407
994
|
/**
|
|
408
995
|
* Agent response model that excludes sensitive fields from JSON output and schema.
|
|
996
|
+
* @export
|
|
997
|
+
* @interface AgentResponse
|
|
409
998
|
*/
|
|
410
999
|
export interface AgentResponse {
|
|
1000
|
+
/**
|
|
1001
|
+
*
|
|
1002
|
+
* @type {string}
|
|
1003
|
+
* @memberof AgentResponse
|
|
1004
|
+
*/
|
|
411
1005
|
'description'?: string | null;
|
|
1006
|
+
/**
|
|
1007
|
+
*
|
|
1008
|
+
* @type {string}
|
|
1009
|
+
* @memberof AgentResponse
|
|
1010
|
+
*/
|
|
412
1011
|
'external_website'?: string | null;
|
|
1012
|
+
/**
|
|
1013
|
+
*
|
|
1014
|
+
* @type {string}
|
|
1015
|
+
* @memberof AgentResponse
|
|
1016
|
+
*/
|
|
413
1017
|
'ticker'?: string | null;
|
|
1018
|
+
/**
|
|
1019
|
+
*
|
|
1020
|
+
* @type {string}
|
|
1021
|
+
* @memberof AgentResponse
|
|
1022
|
+
*/
|
|
414
1023
|
'token_address'?: string | null;
|
|
1024
|
+
/**
|
|
1025
|
+
*
|
|
1026
|
+
* @type {string}
|
|
1027
|
+
* @memberof AgentResponse
|
|
1028
|
+
*/
|
|
415
1029
|
'token_pool'?: string | null;
|
|
1030
|
+
/**
|
|
1031
|
+
*
|
|
1032
|
+
* @type {string}
|
|
1033
|
+
* @memberof AgentResponse
|
|
1034
|
+
*/
|
|
416
1035
|
'fee_percentage'?: string | null;
|
|
1036
|
+
/**
|
|
1037
|
+
*
|
|
1038
|
+
* @type {string}
|
|
1039
|
+
* @memberof AgentResponse
|
|
1040
|
+
*/
|
|
417
1041
|
'example_intro'?: string | null;
|
|
1042
|
+
/**
|
|
1043
|
+
*
|
|
1044
|
+
* @type {Array<AgentExample>}
|
|
1045
|
+
* @memberof AgentResponse
|
|
1046
|
+
*/
|
|
418
1047
|
'examples'?: Array<AgentExample> | null;
|
|
1048
|
+
/**
|
|
1049
|
+
*
|
|
1050
|
+
* @type {string}
|
|
1051
|
+
* @memberof AgentResponse
|
|
1052
|
+
*/
|
|
419
1053
|
'name': string | null;
|
|
1054
|
+
/**
|
|
1055
|
+
*
|
|
1056
|
+
* @type {string}
|
|
1057
|
+
* @memberof AgentResponse
|
|
1058
|
+
*/
|
|
420
1059
|
'picture'?: string | null;
|
|
421
1060
|
/**
|
|
422
1061
|
* AI model identifier to be used by this agent for processing requests.
|
|
1062
|
+
* @type {string}
|
|
1063
|
+
* @memberof AgentResponse
|
|
423
1064
|
*/
|
|
424
1065
|
'model'?: string;
|
|
1066
|
+
/**
|
|
1067
|
+
*
|
|
1068
|
+
* @type {number}
|
|
1069
|
+
* @memberof AgentResponse
|
|
1070
|
+
*/
|
|
425
1071
|
'presence_penalty'?: number | null;
|
|
1072
|
+
/**
|
|
1073
|
+
*
|
|
1074
|
+
* @type {string}
|
|
1075
|
+
* @memberof AgentResponse
|
|
1076
|
+
*/
|
|
426
1077
|
'wallet_provider'?: AgentResponseWalletProviderEnum | null;
|
|
1078
|
+
/**
|
|
1079
|
+
*
|
|
1080
|
+
* @type {string}
|
|
1081
|
+
* @memberof AgentResponse
|
|
1082
|
+
*/
|
|
427
1083
|
'readonly_wallet_address'?: string | null;
|
|
1084
|
+
/**
|
|
1085
|
+
*
|
|
1086
|
+
* @type {string}
|
|
1087
|
+
* @memberof AgentResponse
|
|
1088
|
+
*/
|
|
428
1089
|
'network_id'?: AgentResponseNetworkIdEnum | null;
|
|
1090
|
+
/**
|
|
1091
|
+
*
|
|
1092
|
+
* @type {object}
|
|
1093
|
+
* @memberof AgentResponse
|
|
1094
|
+
*/
|
|
429
1095
|
'skills'?: object | null;
|
|
1096
|
+
/**
|
|
1097
|
+
*
|
|
1098
|
+
* @type {string}
|
|
1099
|
+
* @memberof AgentResponse
|
|
1100
|
+
*/
|
|
430
1101
|
'short_term_memory_strategy'?: AgentResponseShortTermMemoryStrategyEnum | null;
|
|
1102
|
+
/**
|
|
1103
|
+
*
|
|
1104
|
+
* @type {Array<AgentAutonomous>}
|
|
1105
|
+
* @memberof AgentResponse
|
|
1106
|
+
*/
|
|
431
1107
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
1108
|
+
/**
|
|
1109
|
+
*
|
|
1110
|
+
* @type {boolean}
|
|
1111
|
+
* @memberof AgentResponse
|
|
1112
|
+
*/
|
|
432
1113
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
1114
|
+
/**
|
|
1115
|
+
*
|
|
1116
|
+
* @type {string}
|
|
1117
|
+
* @memberof AgentResponse
|
|
1118
|
+
*/
|
|
433
1119
|
'upstream_id'?: string | null;
|
|
1120
|
+
/**
|
|
1121
|
+
*
|
|
1122
|
+
* @type {object}
|
|
1123
|
+
* @memberof AgentResponse
|
|
1124
|
+
*/
|
|
434
1125
|
'upstream_extra'?: object | null;
|
|
435
1126
|
/**
|
|
436
1127
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
1128
|
+
* @type {string}
|
|
1129
|
+
* @memberof AgentResponse
|
|
437
1130
|
*/
|
|
438
1131
|
'id'?: string;
|
|
1132
|
+
/**
|
|
1133
|
+
*
|
|
1134
|
+
* @type {string}
|
|
1135
|
+
* @memberof AgentResponse
|
|
1136
|
+
*/
|
|
439
1137
|
'owner'?: string | null;
|
|
1138
|
+
/**
|
|
1139
|
+
*
|
|
1140
|
+
* @type {string}
|
|
1141
|
+
* @memberof AgentResponse
|
|
1142
|
+
*/
|
|
440
1143
|
'slug'?: string | null;
|
|
1144
|
+
/**
|
|
1145
|
+
*
|
|
1146
|
+
* @type {string}
|
|
1147
|
+
* @memberof AgentResponse
|
|
1148
|
+
*/
|
|
441
1149
|
'version'?: string | null;
|
|
1150
|
+
/**
|
|
1151
|
+
*
|
|
1152
|
+
* @type {object}
|
|
1153
|
+
* @memberof AgentResponse
|
|
1154
|
+
*/
|
|
442
1155
|
'statistics'?: object | null;
|
|
1156
|
+
/**
|
|
1157
|
+
*
|
|
1158
|
+
* @type {object}
|
|
1159
|
+
* @memberof AgentResponse
|
|
1160
|
+
*/
|
|
443
1161
|
'assets'?: object | null;
|
|
1162
|
+
/**
|
|
1163
|
+
*
|
|
1164
|
+
* @type {CreditAccount}
|
|
1165
|
+
* @memberof AgentResponse
|
|
1166
|
+
*/
|
|
444
1167
|
'account_snapshot'?: CreditAccount | null;
|
|
1168
|
+
/**
|
|
1169
|
+
*
|
|
1170
|
+
* @type {object}
|
|
1171
|
+
* @memberof AgentResponse
|
|
1172
|
+
*/
|
|
445
1173
|
'extra'?: object | null;
|
|
446
1174
|
/**
|
|
447
1175
|
* Timestamp when the agent was created, will ignore when importing
|
|
1176
|
+
* @type {string}
|
|
1177
|
+
* @memberof AgentResponse
|
|
448
1178
|
*/
|
|
449
1179
|
'created_at'?: string;
|
|
450
1180
|
/**
|
|
451
1181
|
* Timestamp when the agent was last updated, will ignore when importing
|
|
1182
|
+
* @type {string}
|
|
1183
|
+
* @memberof AgentResponse
|
|
452
1184
|
*/
|
|
453
1185
|
'updated_at'?: string;
|
|
1186
|
+
/**
|
|
1187
|
+
*
|
|
1188
|
+
* @type {string}
|
|
1189
|
+
* @memberof AgentResponse
|
|
1190
|
+
*/
|
|
454
1191
|
'cdp_wallet_address'?: string | null;
|
|
1192
|
+
/**
|
|
1193
|
+
*
|
|
1194
|
+
* @type {string}
|
|
1195
|
+
* @memberof AgentResponse
|
|
1196
|
+
*/
|
|
455
1197
|
'evm_wallet_address'?: string | null;
|
|
1198
|
+
/**
|
|
1199
|
+
*
|
|
1200
|
+
* @type {string}
|
|
1201
|
+
* @memberof AgentResponse
|
|
1202
|
+
*/
|
|
456
1203
|
'solana_wallet_address'?: string | null;
|
|
457
1204
|
/**
|
|
458
1205
|
* Whether the agent has Twitter linked
|
|
1206
|
+
* @type {boolean}
|
|
1207
|
+
* @memberof AgentResponse
|
|
459
1208
|
*/
|
|
460
1209
|
'has_twitter_linked'?: boolean;
|
|
1210
|
+
/**
|
|
1211
|
+
*
|
|
1212
|
+
* @type {string}
|
|
1213
|
+
* @memberof AgentResponse
|
|
1214
|
+
*/
|
|
461
1215
|
'linked_twitter_username'?: string | null;
|
|
1216
|
+
/**
|
|
1217
|
+
*
|
|
1218
|
+
* @type {string}
|
|
1219
|
+
* @memberof AgentResponse
|
|
1220
|
+
*/
|
|
462
1221
|
'linked_twitter_name'?: string | null;
|
|
463
1222
|
/**
|
|
464
1223
|
* Whether the agent has Twitter self key
|
|
1224
|
+
* @type {boolean}
|
|
1225
|
+
* @memberof AgentResponse
|
|
465
1226
|
*/
|
|
466
1227
|
'has_twitter_self_key'?: boolean;
|
|
467
1228
|
/**
|
|
468
1229
|
* Whether the agent has Telegram self key
|
|
1230
|
+
* @type {boolean}
|
|
1231
|
+
* @memberof AgentResponse
|
|
469
1232
|
*/
|
|
470
1233
|
'has_telegram_self_key'?: boolean;
|
|
1234
|
+
/**
|
|
1235
|
+
*
|
|
1236
|
+
* @type {string}
|
|
1237
|
+
* @memberof AgentResponse
|
|
1238
|
+
*/
|
|
471
1239
|
'linked_telegram_username'?: string | null;
|
|
1240
|
+
/**
|
|
1241
|
+
*
|
|
1242
|
+
* @type {string}
|
|
1243
|
+
* @memberof AgentResponse
|
|
1244
|
+
*/
|
|
472
1245
|
'linked_telegram_name'?: string | null;
|
|
473
1246
|
/**
|
|
474
1247
|
* Whether the agent accepts image input
|
|
1248
|
+
* @type {boolean}
|
|
1249
|
+
* @memberof AgentResponse
|
|
475
1250
|
*/
|
|
476
1251
|
'accept_image_input'?: boolean;
|
|
477
1252
|
/**
|
|
478
1253
|
* Whether the agent accepts image input in private mode
|
|
1254
|
+
* @type {boolean}
|
|
1255
|
+
* @memberof AgentResponse
|
|
479
1256
|
*/
|
|
480
1257
|
'accept_image_input_private'?: boolean;
|
|
481
1258
|
}
|
|
@@ -510,6 +1287,8 @@ export type AgentResponseShortTermMemoryStrategyEnum = typeof AgentResponseShort
|
|
|
510
1287
|
|
|
511
1288
|
/**
|
|
512
1289
|
* Sort options for agents list.
|
|
1290
|
+
* @export
|
|
1291
|
+
* @enum {string}
|
|
513
1292
|
*/
|
|
514
1293
|
|
|
515
1294
|
export const AgentSortOption = {
|
|
@@ -523,98 +1302,244 @@ export type AgentSortOption = typeof AgentSortOption[keyof typeof AgentSortOptio
|
|
|
523
1302
|
|
|
524
1303
|
/**
|
|
525
1304
|
* Response model for agent statistics.
|
|
1305
|
+
* @export
|
|
1306
|
+
* @interface AgentStatisticsResponse
|
|
526
1307
|
*/
|
|
527
1308
|
export interface AgentStatisticsResponse {
|
|
528
1309
|
/**
|
|
529
1310
|
* ID of the agent
|
|
1311
|
+
* @type {string}
|
|
1312
|
+
* @memberof AgentStatisticsResponse
|
|
530
1313
|
*/
|
|
531
1314
|
'agent_id': string;
|
|
532
1315
|
/**
|
|
533
1316
|
* ID of the agent\'s credit account
|
|
1317
|
+
* @type {string}
|
|
1318
|
+
* @memberof AgentStatisticsResponse
|
|
534
1319
|
*/
|
|
535
1320
|
'account_id': string;
|
|
536
1321
|
/**
|
|
537
1322
|
* Total balance of the agent\'s account
|
|
1323
|
+
* @type {string}
|
|
1324
|
+
* @memberof AgentStatisticsResponse
|
|
538
1325
|
*/
|
|
539
1326
|
'balance': string;
|
|
540
1327
|
/**
|
|
541
1328
|
* Total income from all credit events
|
|
1329
|
+
* @type {string}
|
|
1330
|
+
* @memberof AgentStatisticsResponse
|
|
542
1331
|
*/
|
|
543
1332
|
'total_income': string;
|
|
544
1333
|
/**
|
|
545
1334
|
* Net income from all credit events
|
|
1335
|
+
* @type {string}
|
|
1336
|
+
* @memberof AgentStatisticsResponse
|
|
546
1337
|
*/
|
|
547
1338
|
'net_income': string;
|
|
548
1339
|
/**
|
|
549
1340
|
* Permanent income from all credit events
|
|
1341
|
+
* @type {string}
|
|
1342
|
+
* @memberof AgentStatisticsResponse
|
|
550
1343
|
*/
|
|
551
1344
|
'permanent_income': string;
|
|
552
1345
|
/**
|
|
553
1346
|
* Permanent profit from all credit events
|
|
1347
|
+
* @type {string}
|
|
1348
|
+
* @memberof AgentStatisticsResponse
|
|
554
1349
|
*/
|
|
555
1350
|
'permanent_profit': string;
|
|
556
1351
|
/**
|
|
557
1352
|
* Income from last 24 hours
|
|
1353
|
+
* @type {string}
|
|
1354
|
+
* @memberof AgentStatisticsResponse
|
|
558
1355
|
*/
|
|
559
1356
|
'last_24h_income': string;
|
|
560
1357
|
/**
|
|
561
1358
|
* Permanent income from last 24 hours
|
|
1359
|
+
* @type {string}
|
|
1360
|
+
* @memberof AgentStatisticsResponse
|
|
562
1361
|
*/
|
|
563
1362
|
'last_24h_permanent_income': string;
|
|
564
1363
|
/**
|
|
565
1364
|
* Average action cost
|
|
1365
|
+
* @type {string}
|
|
1366
|
+
* @memberof AgentStatisticsResponse
|
|
566
1367
|
*/
|
|
567
1368
|
'avg_action_cost': string;
|
|
568
1369
|
/**
|
|
569
1370
|
* Minimum action cost
|
|
1371
|
+
* @type {string}
|
|
1372
|
+
* @memberof AgentStatisticsResponse
|
|
570
1373
|
*/
|
|
571
1374
|
'min_action_cost': string;
|
|
572
1375
|
/**
|
|
573
1376
|
* Maximum action cost
|
|
1377
|
+
* @type {string}
|
|
1378
|
+
* @memberof AgentStatisticsResponse
|
|
574
1379
|
*/
|
|
575
1380
|
'max_action_cost': string;
|
|
576
1381
|
/**
|
|
577
1382
|
* Low action cost
|
|
1383
|
+
* @type {string}
|
|
1384
|
+
* @memberof AgentStatisticsResponse
|
|
578
1385
|
*/
|
|
579
1386
|
'low_action_cost': string;
|
|
580
1387
|
/**
|
|
581
1388
|
* Medium action cost
|
|
1389
|
+
* @type {string}
|
|
1390
|
+
* @memberof AgentStatisticsResponse
|
|
582
1391
|
*/
|
|
583
1392
|
'medium_action_cost': string;
|
|
584
1393
|
/**
|
|
585
1394
|
* High action cost
|
|
1395
|
+
* @type {string}
|
|
1396
|
+
* @memberof AgentStatisticsResponse
|
|
586
1397
|
*/
|
|
587
1398
|
'high_action_cost': string;
|
|
588
1399
|
}
|
|
589
1400
|
/**
|
|
590
1401
|
* Agent update model.
|
|
1402
|
+
* @export
|
|
1403
|
+
* @interface AgentUpdate
|
|
591
1404
|
*/
|
|
592
1405
|
export interface AgentUpdate {
|
|
1406
|
+
/**
|
|
1407
|
+
*
|
|
1408
|
+
* @type {string}
|
|
1409
|
+
* @memberof AgentUpdate
|
|
1410
|
+
*/
|
|
593
1411
|
'name': string | null;
|
|
1412
|
+
/**
|
|
1413
|
+
*
|
|
1414
|
+
* @type {string}
|
|
1415
|
+
* @memberof AgentUpdate
|
|
1416
|
+
*/
|
|
594
1417
|
'picture'?: string | null;
|
|
1418
|
+
/**
|
|
1419
|
+
*
|
|
1420
|
+
* @type {string}
|
|
1421
|
+
* @memberof AgentUpdate
|
|
1422
|
+
*/
|
|
595
1423
|
'purpose'?: string | null;
|
|
1424
|
+
/**
|
|
1425
|
+
*
|
|
1426
|
+
* @type {string}
|
|
1427
|
+
* @memberof AgentUpdate
|
|
1428
|
+
*/
|
|
596
1429
|
'personality'?: string | null;
|
|
1430
|
+
/**
|
|
1431
|
+
*
|
|
1432
|
+
* @type {string}
|
|
1433
|
+
* @memberof AgentUpdate
|
|
1434
|
+
*/
|
|
597
1435
|
'principles'?: string | null;
|
|
598
1436
|
/**
|
|
599
1437
|
* AI model identifier to be used by this agent for processing requests.
|
|
1438
|
+
* @type {string}
|
|
1439
|
+
* @memberof AgentUpdate
|
|
600
1440
|
*/
|
|
601
1441
|
'model'?: string;
|
|
1442
|
+
/**
|
|
1443
|
+
*
|
|
1444
|
+
* @type {string}
|
|
1445
|
+
* @memberof AgentUpdate
|
|
1446
|
+
*/
|
|
602
1447
|
'prompt'?: string | null;
|
|
1448
|
+
/**
|
|
1449
|
+
*
|
|
1450
|
+
* @type {string}
|
|
1451
|
+
* @memberof AgentUpdate
|
|
1452
|
+
*/
|
|
603
1453
|
'prompt_append'?: string | null;
|
|
1454
|
+
/**
|
|
1455
|
+
*
|
|
1456
|
+
* @type {number}
|
|
1457
|
+
* @memberof AgentUpdate
|
|
1458
|
+
*/
|
|
604
1459
|
'temperature'?: number | null;
|
|
1460
|
+
/**
|
|
1461
|
+
*
|
|
1462
|
+
* @type {number}
|
|
1463
|
+
* @memberof AgentUpdate
|
|
1464
|
+
*/
|
|
605
1465
|
'frequency_penalty'?: number | null;
|
|
1466
|
+
/**
|
|
1467
|
+
*
|
|
1468
|
+
* @type {number}
|
|
1469
|
+
* @memberof AgentUpdate
|
|
1470
|
+
*/
|
|
606
1471
|
'presence_penalty'?: number | null;
|
|
1472
|
+
/**
|
|
1473
|
+
*
|
|
1474
|
+
* @type {string}
|
|
1475
|
+
* @memberof AgentUpdate
|
|
1476
|
+
*/
|
|
607
1477
|
'wallet_provider'?: AgentUpdateWalletProviderEnum | null;
|
|
1478
|
+
/**
|
|
1479
|
+
*
|
|
1480
|
+
* @type {string}
|
|
1481
|
+
* @memberof AgentUpdate
|
|
1482
|
+
*/
|
|
608
1483
|
'readonly_wallet_address'?: string | null;
|
|
1484
|
+
/**
|
|
1485
|
+
*
|
|
1486
|
+
* @type {string}
|
|
1487
|
+
* @memberof AgentUpdate
|
|
1488
|
+
*/
|
|
609
1489
|
'network_id'?: AgentUpdateNetworkIdEnum | null;
|
|
1490
|
+
/**
|
|
1491
|
+
*
|
|
1492
|
+
* @type {object}
|
|
1493
|
+
* @memberof AgentUpdate
|
|
1494
|
+
*/
|
|
610
1495
|
'skills'?: object | null;
|
|
1496
|
+
/**
|
|
1497
|
+
*
|
|
1498
|
+
* @type {string}
|
|
1499
|
+
* @memberof AgentUpdate
|
|
1500
|
+
*/
|
|
611
1501
|
'short_term_memory_strategy'?: AgentUpdateShortTermMemoryStrategyEnum | null;
|
|
1502
|
+
/**
|
|
1503
|
+
*
|
|
1504
|
+
* @type {Array<AgentAutonomous>}
|
|
1505
|
+
* @memberof AgentUpdate
|
|
1506
|
+
*/
|
|
612
1507
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
1508
|
+
/**
|
|
1509
|
+
*
|
|
1510
|
+
* @type {boolean}
|
|
1511
|
+
* @memberof AgentUpdate
|
|
1512
|
+
*/
|
|
613
1513
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
1514
|
+
/**
|
|
1515
|
+
*
|
|
1516
|
+
* @type {string}
|
|
1517
|
+
* @memberof AgentUpdate
|
|
1518
|
+
*/
|
|
614
1519
|
'telegram_entrypoint_prompt'?: string | null;
|
|
1520
|
+
/**
|
|
1521
|
+
*
|
|
1522
|
+
* @type {object}
|
|
1523
|
+
* @memberof AgentUpdate
|
|
1524
|
+
*/
|
|
615
1525
|
'telegram_config'?: object | null;
|
|
1526
|
+
/**
|
|
1527
|
+
*
|
|
1528
|
+
* @type {string}
|
|
1529
|
+
* @memberof AgentUpdate
|
|
1530
|
+
*/
|
|
616
1531
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
1532
|
+
/**
|
|
1533
|
+
*
|
|
1534
|
+
* @type {string}
|
|
1535
|
+
* @memberof AgentUpdate
|
|
1536
|
+
*/
|
|
617
1537
|
'upstream_id'?: string | null;
|
|
1538
|
+
/**
|
|
1539
|
+
*
|
|
1540
|
+
* @type {object}
|
|
1541
|
+
* @memberof AgentUpdate
|
|
1542
|
+
*/
|
|
618
1543
|
'upstream_extra'?: object | null;
|
|
619
1544
|
}
|
|
620
1545
|
|
|
@@ -648,31 +1573,135 @@ export type AgentUpdateShortTermMemoryStrategyEnum = typeof AgentUpdateShortTerm
|
|
|
648
1573
|
|
|
649
1574
|
/**
|
|
650
1575
|
* Agent update model.
|
|
1576
|
+
* @export
|
|
1577
|
+
* @interface AgentUserInput
|
|
651
1578
|
*/
|
|
652
1579
|
export interface AgentUserInput {
|
|
1580
|
+
/**
|
|
1581
|
+
*
|
|
1582
|
+
* @type {string}
|
|
1583
|
+
* @memberof AgentUserInput
|
|
1584
|
+
*/
|
|
653
1585
|
'name': string | null;
|
|
1586
|
+
/**
|
|
1587
|
+
*
|
|
1588
|
+
* @type {string}
|
|
1589
|
+
* @memberof AgentUserInput
|
|
1590
|
+
*/
|
|
654
1591
|
'picture'?: string | null;
|
|
1592
|
+
/**
|
|
1593
|
+
*
|
|
1594
|
+
* @type {string}
|
|
1595
|
+
* @memberof AgentUserInput
|
|
1596
|
+
*/
|
|
655
1597
|
'purpose'?: string | null;
|
|
1598
|
+
/**
|
|
1599
|
+
*
|
|
1600
|
+
* @type {string}
|
|
1601
|
+
* @memberof AgentUserInput
|
|
1602
|
+
*/
|
|
656
1603
|
'personality'?: string | null;
|
|
1604
|
+
/**
|
|
1605
|
+
*
|
|
1606
|
+
* @type {string}
|
|
1607
|
+
* @memberof AgentUserInput
|
|
1608
|
+
*/
|
|
657
1609
|
'principles'?: string | null;
|
|
658
1610
|
/**
|
|
659
1611
|
* AI model identifier to be used by this agent for processing requests.
|
|
1612
|
+
* @type {string}
|
|
1613
|
+
* @memberof AgentUserInput
|
|
660
1614
|
*/
|
|
661
1615
|
'model'?: string;
|
|
1616
|
+
/**
|
|
1617
|
+
*
|
|
1618
|
+
* @type {string}
|
|
1619
|
+
* @memberof AgentUserInput
|
|
1620
|
+
*/
|
|
662
1621
|
'prompt'?: string | null;
|
|
1622
|
+
/**
|
|
1623
|
+
*
|
|
1624
|
+
* @type {string}
|
|
1625
|
+
* @memberof AgentUserInput
|
|
1626
|
+
*/
|
|
663
1627
|
'prompt_append'?: string | null;
|
|
1628
|
+
/**
|
|
1629
|
+
*
|
|
1630
|
+
* @type {number}
|
|
1631
|
+
* @memberof AgentUserInput
|
|
1632
|
+
*/
|
|
664
1633
|
'temperature'?: number | null;
|
|
1634
|
+
/**
|
|
1635
|
+
*
|
|
1636
|
+
* @type {number}
|
|
1637
|
+
* @memberof AgentUserInput
|
|
1638
|
+
*/
|
|
665
1639
|
'frequency_penalty'?: number | null;
|
|
1640
|
+
/**
|
|
1641
|
+
*
|
|
1642
|
+
* @type {number}
|
|
1643
|
+
* @memberof AgentUserInput
|
|
1644
|
+
*/
|
|
666
1645
|
'presence_penalty'?: number | null;
|
|
1646
|
+
/**
|
|
1647
|
+
*
|
|
1648
|
+
* @type {string}
|
|
1649
|
+
* @memberof AgentUserInput
|
|
1650
|
+
*/
|
|
667
1651
|
'wallet_provider'?: AgentUserInputWalletProviderEnum | null;
|
|
1652
|
+
/**
|
|
1653
|
+
*
|
|
1654
|
+
* @type {string}
|
|
1655
|
+
* @memberof AgentUserInput
|
|
1656
|
+
*/
|
|
668
1657
|
'readonly_wallet_address'?: string | null;
|
|
1658
|
+
/**
|
|
1659
|
+
*
|
|
1660
|
+
* @type {string}
|
|
1661
|
+
* @memberof AgentUserInput
|
|
1662
|
+
*/
|
|
669
1663
|
'network_id'?: AgentUserInputNetworkIdEnum | null;
|
|
1664
|
+
/**
|
|
1665
|
+
*
|
|
1666
|
+
* @type {object}
|
|
1667
|
+
* @memberof AgentUserInput
|
|
1668
|
+
*/
|
|
670
1669
|
'skills'?: object | null;
|
|
1670
|
+
/**
|
|
1671
|
+
*
|
|
1672
|
+
* @type {string}
|
|
1673
|
+
* @memberof AgentUserInput
|
|
1674
|
+
*/
|
|
671
1675
|
'short_term_memory_strategy'?: AgentUserInputShortTermMemoryStrategyEnum | null;
|
|
1676
|
+
/**
|
|
1677
|
+
*
|
|
1678
|
+
* @type {Array<AgentAutonomous>}
|
|
1679
|
+
* @memberof AgentUserInput
|
|
1680
|
+
*/
|
|
672
1681
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
1682
|
+
/**
|
|
1683
|
+
*
|
|
1684
|
+
* @type {boolean}
|
|
1685
|
+
* @memberof AgentUserInput
|
|
1686
|
+
*/
|
|
673
1687
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
1688
|
+
/**
|
|
1689
|
+
*
|
|
1690
|
+
* @type {string}
|
|
1691
|
+
* @memberof AgentUserInput
|
|
1692
|
+
*/
|
|
674
1693
|
'telegram_entrypoint_prompt'?: string | null;
|
|
1694
|
+
/**
|
|
1695
|
+
*
|
|
1696
|
+
* @type {object}
|
|
1697
|
+
* @memberof AgentUserInput
|
|
1698
|
+
*/
|
|
675
1699
|
'telegram_config'?: object | null;
|
|
1700
|
+
/**
|
|
1701
|
+
*
|
|
1702
|
+
* @type {string}
|
|
1703
|
+
* @memberof AgentUserInput
|
|
1704
|
+
*/
|
|
676
1705
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
677
1706
|
}
|
|
678
1707
|
|
|
@@ -706,19 +1735,27 @@ export type AgentUserInputShortTermMemoryStrategyEnum = typeof AgentUserInputSho
|
|
|
706
1735
|
|
|
707
1736
|
/**
|
|
708
1737
|
* Model for individual asset with symbol and balance.
|
|
1738
|
+
* @export
|
|
1739
|
+
* @interface Asset
|
|
709
1740
|
*/
|
|
710
1741
|
export interface Asset {
|
|
711
1742
|
/**
|
|
712
1743
|
* Asset symbol (e.g., ETH, USDC, NATION)
|
|
1744
|
+
* @type {string}
|
|
1745
|
+
* @memberof Asset
|
|
713
1746
|
*/
|
|
714
1747
|
'symbol': string;
|
|
715
1748
|
/**
|
|
716
1749
|
* Asset balance as decimal
|
|
1750
|
+
* @type {string}
|
|
1751
|
+
* @memberof Asset
|
|
717
1752
|
*/
|
|
718
1753
|
'balance': string;
|
|
719
1754
|
}
|
|
720
1755
|
/**
|
|
721
1756
|
* Type of message author.
|
|
1757
|
+
* @export
|
|
1758
|
+
* @enum {string}
|
|
722
1759
|
*/
|
|
723
1760
|
|
|
724
1761
|
export const AuthorType = {
|
|
@@ -738,95 +1775,195 @@ export type AuthorType = typeof AuthorType[keyof typeof AuthorType];
|
|
|
738
1775
|
|
|
739
1776
|
/**
|
|
740
1777
|
* Chat model with all fields including server-generated ones.
|
|
1778
|
+
* @export
|
|
1779
|
+
* @interface Chat
|
|
741
1780
|
*/
|
|
742
1781
|
export interface Chat {
|
|
743
1782
|
/**
|
|
744
1783
|
* Unique identifier for the chat
|
|
1784
|
+
* @type {string}
|
|
1785
|
+
* @memberof Chat
|
|
745
1786
|
*/
|
|
746
1787
|
'id'?: string;
|
|
747
1788
|
/**
|
|
748
1789
|
* ID of the agent this chat belongs to
|
|
1790
|
+
* @type {string}
|
|
1791
|
+
* @memberof Chat
|
|
749
1792
|
*/
|
|
750
1793
|
'agent_id': string;
|
|
751
1794
|
/**
|
|
752
1795
|
* User ID of the chat
|
|
1796
|
+
* @type {string}
|
|
1797
|
+
* @memberof Chat
|
|
753
1798
|
*/
|
|
754
1799
|
'user_id': string;
|
|
755
1800
|
/**
|
|
756
1801
|
* Summary of the chat
|
|
1802
|
+
* @type {string}
|
|
1803
|
+
* @memberof Chat
|
|
757
1804
|
*/
|
|
758
1805
|
'summary'?: string;
|
|
759
1806
|
/**
|
|
760
1807
|
* Number of rounds in the chat
|
|
1808
|
+
* @type {number}
|
|
1809
|
+
* @memberof Chat
|
|
761
1810
|
*/
|
|
762
1811
|
'rounds'?: number;
|
|
763
1812
|
/**
|
|
764
1813
|
* Timestamp when this chat was created
|
|
1814
|
+
* @type {string}
|
|
1815
|
+
* @memberof Chat
|
|
765
1816
|
*/
|
|
766
1817
|
'created_at': string;
|
|
767
1818
|
/**
|
|
768
1819
|
* Timestamp when this chat was updated
|
|
1820
|
+
* @type {string}
|
|
1821
|
+
* @memberof Chat
|
|
769
1822
|
*/
|
|
770
1823
|
'updated_at': string;
|
|
771
1824
|
}
|
|
772
1825
|
/**
|
|
773
1826
|
* Chat message model with all fields including server-generated ones.
|
|
1827
|
+
* @export
|
|
1828
|
+
* @interface ChatMessage
|
|
774
1829
|
*/
|
|
775
1830
|
export interface ChatMessage {
|
|
776
1831
|
/**
|
|
777
1832
|
* Unique identifier for the chat message
|
|
1833
|
+
* @type {string}
|
|
1834
|
+
* @memberof ChatMessage
|
|
778
1835
|
*/
|
|
779
1836
|
'id'?: string;
|
|
780
1837
|
/**
|
|
781
1838
|
* ID of the agent this message belongs to
|
|
1839
|
+
* @type {string}
|
|
1840
|
+
* @memberof ChatMessage
|
|
782
1841
|
*/
|
|
783
1842
|
'agent_id': string;
|
|
784
1843
|
/**
|
|
785
1844
|
* ID of the chat this message belongs to
|
|
1845
|
+
* @type {string}
|
|
1846
|
+
* @memberof ChatMessage
|
|
786
1847
|
*/
|
|
787
1848
|
'chat_id': string;
|
|
1849
|
+
/**
|
|
1850
|
+
*
|
|
1851
|
+
* @type {string}
|
|
1852
|
+
* @memberof ChatMessage
|
|
1853
|
+
*/
|
|
788
1854
|
'user_id': string | null;
|
|
789
1855
|
/**
|
|
790
1856
|
* ID of the message author
|
|
1857
|
+
* @type {string}
|
|
1858
|
+
* @memberof ChatMessage
|
|
791
1859
|
*/
|
|
792
1860
|
'author_id': string;
|
|
793
1861
|
/**
|
|
794
1862
|
* Type of the message author
|
|
1863
|
+
* @type {AuthorType}
|
|
1864
|
+
* @memberof ChatMessage
|
|
795
1865
|
*/
|
|
796
1866
|
'author_type': AuthorType;
|
|
1867
|
+
/**
|
|
1868
|
+
*
|
|
1869
|
+
* @type {string}
|
|
1870
|
+
* @memberof ChatMessage
|
|
1871
|
+
*/
|
|
797
1872
|
'model'?: string | null;
|
|
1873
|
+
/**
|
|
1874
|
+
*
|
|
1875
|
+
* @type {AuthorType}
|
|
1876
|
+
* @memberof ChatMessage
|
|
1877
|
+
*/
|
|
798
1878
|
'thread_type'?: AuthorType | null;
|
|
1879
|
+
/**
|
|
1880
|
+
*
|
|
1881
|
+
* @type {string}
|
|
1882
|
+
* @memberof ChatMessage
|
|
1883
|
+
*/
|
|
799
1884
|
'reply_to'?: string | null;
|
|
800
1885
|
/**
|
|
801
1886
|
* Content of the message
|
|
1887
|
+
* @type {string}
|
|
1888
|
+
* @memberof ChatMessage
|
|
802
1889
|
*/
|
|
803
1890
|
'message': string;
|
|
1891
|
+
/**
|
|
1892
|
+
*
|
|
1893
|
+
* @type {Array<ChatMessageAttachment>}
|
|
1894
|
+
* @memberof ChatMessage
|
|
1895
|
+
*/
|
|
804
1896
|
'attachments'?: Array<ChatMessageAttachment> | null;
|
|
1897
|
+
/**
|
|
1898
|
+
*
|
|
1899
|
+
* @type {Array<ChatMessageSkillCall>}
|
|
1900
|
+
* @memberof ChatMessage
|
|
1901
|
+
*/
|
|
805
1902
|
'skill_calls'?: Array<ChatMessageSkillCall> | null;
|
|
806
1903
|
/**
|
|
807
1904
|
* Number of tokens in the input message
|
|
1905
|
+
* @type {number}
|
|
1906
|
+
* @memberof ChatMessage
|
|
808
1907
|
*/
|
|
809
1908
|
'input_tokens'?: number;
|
|
810
1909
|
/**
|
|
811
1910
|
* Number of tokens in the output message
|
|
1911
|
+
* @type {number}
|
|
1912
|
+
* @memberof ChatMessage
|
|
812
1913
|
*/
|
|
813
1914
|
'output_tokens'?: number;
|
|
814
1915
|
/**
|
|
815
1916
|
* Time cost for the message in seconds
|
|
1917
|
+
* @type {number}
|
|
1918
|
+
* @memberof ChatMessage
|
|
816
1919
|
*/
|
|
817
1920
|
'time_cost'?: number;
|
|
1921
|
+
/**
|
|
1922
|
+
*
|
|
1923
|
+
* @type {string}
|
|
1924
|
+
* @memberof ChatMessage
|
|
1925
|
+
*/
|
|
818
1926
|
'credit_event_id'?: string | null;
|
|
1927
|
+
/**
|
|
1928
|
+
*
|
|
1929
|
+
* @type {string}
|
|
1930
|
+
* @memberof ChatMessage
|
|
1931
|
+
*/
|
|
819
1932
|
'credit_cost'?: string | null;
|
|
820
1933
|
/**
|
|
821
1934
|
* Cost for the cold start of the message in seconds
|
|
1935
|
+
* @type {number}
|
|
1936
|
+
* @memberof ChatMessage
|
|
822
1937
|
*/
|
|
823
1938
|
'cold_start_cost'?: number;
|
|
1939
|
+
/**
|
|
1940
|
+
*
|
|
1941
|
+
* @type {string}
|
|
1942
|
+
* @memberof ChatMessage
|
|
1943
|
+
*/
|
|
824
1944
|
'app_id'?: string | null;
|
|
1945
|
+
/**
|
|
1946
|
+
*
|
|
1947
|
+
* @type {boolean}
|
|
1948
|
+
* @memberof ChatMessage
|
|
1949
|
+
*/
|
|
825
1950
|
'search_mode'?: boolean | null;
|
|
1951
|
+
/**
|
|
1952
|
+
*
|
|
1953
|
+
* @type {boolean}
|
|
1954
|
+
* @memberof ChatMessage
|
|
1955
|
+
*/
|
|
826
1956
|
'super_mode'?: boolean | null;
|
|
1957
|
+
/**
|
|
1958
|
+
*
|
|
1959
|
+
* @type {SystemMessageType}
|
|
1960
|
+
* @memberof ChatMessage
|
|
1961
|
+
*/
|
|
827
1962
|
'error_type'?: SystemMessageType | null;
|
|
828
1963
|
/**
|
|
829
1964
|
* Timestamp when this message was created
|
|
1965
|
+
* @type {string}
|
|
1966
|
+
* @memberof ChatMessage
|
|
830
1967
|
*/
|
|
831
1968
|
'created_at': string;
|
|
832
1969
|
}
|
|
@@ -834,19 +1971,35 @@ export interface ChatMessage {
|
|
|
834
1971
|
|
|
835
1972
|
/**
|
|
836
1973
|
* Chat message attachment model. An attachment can be a link, image, or file that is associated with a chat message.
|
|
1974
|
+
* @export
|
|
1975
|
+
* @interface ChatMessageAttachment
|
|
837
1976
|
*/
|
|
838
1977
|
export interface ChatMessageAttachment {
|
|
839
1978
|
/**
|
|
840
1979
|
* Type of the attachment (link, image, or file)
|
|
1980
|
+
* @type {ChatMessageAttachmentType}
|
|
1981
|
+
* @memberof ChatMessageAttachment
|
|
841
1982
|
*/
|
|
842
1983
|
'type': ChatMessageAttachmentType;
|
|
1984
|
+
/**
|
|
1985
|
+
*
|
|
1986
|
+
* @type {string}
|
|
1987
|
+
* @memberof ChatMessageAttachment
|
|
1988
|
+
*/
|
|
843
1989
|
'url': string | null;
|
|
1990
|
+
/**
|
|
1991
|
+
*
|
|
1992
|
+
* @type {object}
|
|
1993
|
+
* @memberof ChatMessageAttachment
|
|
1994
|
+
*/
|
|
844
1995
|
'json'?: object | null;
|
|
845
1996
|
}
|
|
846
1997
|
|
|
847
1998
|
|
|
848
1999
|
/**
|
|
849
2000
|
* Type of chat message attachment.
|
|
2001
|
+
* @export
|
|
2002
|
+
* @enum {string}
|
|
850
2003
|
*/
|
|
851
2004
|
|
|
852
2005
|
export const ChatMessageAttachmentType = {
|
|
@@ -861,125 +2014,270 @@ export type ChatMessageAttachmentType = typeof ChatMessageAttachmentType[keyof t
|
|
|
861
2014
|
|
|
862
2015
|
/**
|
|
863
2016
|
* 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.
|
|
2017
|
+
* @export
|
|
2018
|
+
* @interface ChatMessageRequest
|
|
864
2019
|
*/
|
|
865
2020
|
export interface ChatMessageRequest {
|
|
2021
|
+
/**
|
|
2022
|
+
*
|
|
2023
|
+
* @type {string}
|
|
2024
|
+
* @memberof ChatMessageRequest
|
|
2025
|
+
*/
|
|
866
2026
|
'app_id'?: string | null;
|
|
867
2027
|
/**
|
|
868
2028
|
* Content of the message
|
|
2029
|
+
* @type {string}
|
|
2030
|
+
* @memberof ChatMessageRequest
|
|
869
2031
|
*/
|
|
870
2032
|
'message': string;
|
|
2033
|
+
/**
|
|
2034
|
+
*
|
|
2035
|
+
* @type {boolean}
|
|
2036
|
+
* @memberof ChatMessageRequest
|
|
2037
|
+
*/
|
|
871
2038
|
'stream'?: boolean | null;
|
|
2039
|
+
/**
|
|
2040
|
+
*
|
|
2041
|
+
* @type {boolean}
|
|
2042
|
+
* @memberof ChatMessageRequest
|
|
2043
|
+
*/
|
|
872
2044
|
'search_mode'?: boolean | null;
|
|
2045
|
+
/**
|
|
2046
|
+
*
|
|
2047
|
+
* @type {boolean}
|
|
2048
|
+
* @memberof ChatMessageRequest
|
|
2049
|
+
*/
|
|
873
2050
|
'super_mode'?: boolean | null;
|
|
2051
|
+
/**
|
|
2052
|
+
*
|
|
2053
|
+
* @type {Array<ChatMessageAttachment>}
|
|
2054
|
+
* @memberof ChatMessageRequest
|
|
2055
|
+
*/
|
|
874
2056
|
'attachments'?: Array<ChatMessageAttachment> | null;
|
|
875
2057
|
}
|
|
876
2058
|
/**
|
|
877
2059
|
* TypedDict for skill call details.
|
|
2060
|
+
* @export
|
|
2061
|
+
* @interface ChatMessageSkillCall
|
|
878
2062
|
*/
|
|
879
2063
|
export interface ChatMessageSkillCall {
|
|
2064
|
+
/**
|
|
2065
|
+
*
|
|
2066
|
+
* @type {string}
|
|
2067
|
+
* @memberof ChatMessageSkillCall
|
|
2068
|
+
*/
|
|
880
2069
|
'id'?: string;
|
|
2070
|
+
/**
|
|
2071
|
+
*
|
|
2072
|
+
* @type {string}
|
|
2073
|
+
* @memberof ChatMessageSkillCall
|
|
2074
|
+
*/
|
|
881
2075
|
'name': string;
|
|
2076
|
+
/**
|
|
2077
|
+
*
|
|
2078
|
+
* @type {object}
|
|
2079
|
+
* @memberof ChatMessageSkillCall
|
|
2080
|
+
*/
|
|
882
2081
|
'parameters': object;
|
|
2082
|
+
/**
|
|
2083
|
+
*
|
|
2084
|
+
* @type {boolean}
|
|
2085
|
+
* @memberof ChatMessageSkillCall
|
|
2086
|
+
*/
|
|
883
2087
|
'success': boolean;
|
|
2088
|
+
/**
|
|
2089
|
+
*
|
|
2090
|
+
* @type {string}
|
|
2091
|
+
* @memberof ChatMessageSkillCall
|
|
2092
|
+
*/
|
|
884
2093
|
'response'?: string;
|
|
2094
|
+
/**
|
|
2095
|
+
*
|
|
2096
|
+
* @type {string}
|
|
2097
|
+
* @memberof ChatMessageSkillCall
|
|
2098
|
+
*/
|
|
885
2099
|
'error_message'?: string;
|
|
2100
|
+
/**
|
|
2101
|
+
*
|
|
2102
|
+
* @type {string}
|
|
2103
|
+
* @memberof ChatMessageSkillCall
|
|
2104
|
+
*/
|
|
886
2105
|
'credit_event_id'?: string;
|
|
2106
|
+
/**
|
|
2107
|
+
*
|
|
2108
|
+
* @type {string}
|
|
2109
|
+
* @memberof ChatMessageSkillCall
|
|
2110
|
+
*/
|
|
887
2111
|
'credit_cost'?: string;
|
|
888
2112
|
}
|
|
889
2113
|
/**
|
|
890
2114
|
* Response model for chat messages with pagination.
|
|
2115
|
+
* @export
|
|
2116
|
+
* @interface ChatMessagesResponse
|
|
891
2117
|
*/
|
|
892
2118
|
export interface ChatMessagesResponse {
|
|
2119
|
+
/**
|
|
2120
|
+
*
|
|
2121
|
+
* @type {Array<ChatMessage>}
|
|
2122
|
+
* @memberof ChatMessagesResponse
|
|
2123
|
+
*/
|
|
893
2124
|
'data': Array<ChatMessage>;
|
|
2125
|
+
/**
|
|
2126
|
+
*
|
|
2127
|
+
* @type {boolean}
|
|
2128
|
+
* @memberof ChatMessagesResponse
|
|
2129
|
+
*/
|
|
894
2130
|
'has_more'?: boolean;
|
|
2131
|
+
/**
|
|
2132
|
+
*
|
|
2133
|
+
* @type {string}
|
|
2134
|
+
* @memberof ChatMessagesResponse
|
|
2135
|
+
*/
|
|
895
2136
|
'next_cursor'?: string | null;
|
|
896
2137
|
}
|
|
897
2138
|
/**
|
|
898
2139
|
* Request model for updating a chat thread.
|
|
2140
|
+
* @export
|
|
2141
|
+
* @interface ChatUpdateRequest
|
|
899
2142
|
*/
|
|
900
2143
|
export interface ChatUpdateRequest {
|
|
901
2144
|
/**
|
|
902
2145
|
* Updated summary for the chat thread
|
|
2146
|
+
* @type {string}
|
|
2147
|
+
* @memberof ChatUpdateRequest
|
|
903
2148
|
*/
|
|
904
2149
|
'summary': string;
|
|
905
2150
|
}
|
|
906
2151
|
/**
|
|
907
2152
|
* Credit account model with all fields.
|
|
2153
|
+
* @export
|
|
2154
|
+
* @interface CreditAccount
|
|
908
2155
|
*/
|
|
909
2156
|
export interface CreditAccount {
|
|
910
2157
|
/**
|
|
911
2158
|
* Unique identifier for the credit account
|
|
2159
|
+
* @type {string}
|
|
2160
|
+
* @memberof CreditAccount
|
|
912
2161
|
*/
|
|
913
2162
|
'id'?: string;
|
|
914
2163
|
/**
|
|
915
2164
|
* Type of the account owner
|
|
2165
|
+
* @type {OwnerType}
|
|
2166
|
+
* @memberof CreditAccount
|
|
916
2167
|
*/
|
|
917
2168
|
'owner_type': OwnerType;
|
|
918
2169
|
/**
|
|
919
2170
|
* ID of the account owner
|
|
2171
|
+
* @type {string}
|
|
2172
|
+
* @memberof CreditAccount
|
|
920
2173
|
*/
|
|
921
2174
|
'owner_id': string;
|
|
922
2175
|
/**
|
|
923
2176
|
* Daily credit quota that resets each day
|
|
2177
|
+
* @type {string}
|
|
2178
|
+
* @memberof CreditAccount
|
|
924
2179
|
*/
|
|
925
2180
|
'free_quota'?: string;
|
|
926
2181
|
/**
|
|
927
2182
|
* Amount to refill hourly, not exceeding free_quota
|
|
2183
|
+
* @type {string}
|
|
2184
|
+
* @memberof CreditAccount
|
|
928
2185
|
*/
|
|
929
2186
|
'refill_amount'?: string;
|
|
930
2187
|
/**
|
|
931
2188
|
* Current available daily credits
|
|
2189
|
+
* @type {string}
|
|
2190
|
+
* @memberof CreditAccount
|
|
932
2191
|
*/
|
|
933
2192
|
'free_credits'?: string;
|
|
934
2193
|
/**
|
|
935
2194
|
* Reward credits earned through rewards
|
|
2195
|
+
* @type {string}
|
|
2196
|
+
* @memberof CreditAccount
|
|
936
2197
|
*/
|
|
937
2198
|
'reward_credits'?: string;
|
|
938
2199
|
/**
|
|
939
2200
|
* Credits added through top-ups
|
|
2201
|
+
* @type {string}
|
|
2202
|
+
* @memberof CreditAccount
|
|
940
2203
|
*/
|
|
941
2204
|
'credits'?: string;
|
|
2205
|
+
/**
|
|
2206
|
+
*
|
|
2207
|
+
* @type {string}
|
|
2208
|
+
* @memberof CreditAccount
|
|
2209
|
+
*/
|
|
942
2210
|
'income_at'?: string | null;
|
|
2211
|
+
/**
|
|
2212
|
+
*
|
|
2213
|
+
* @type {string}
|
|
2214
|
+
* @memberof CreditAccount
|
|
2215
|
+
*/
|
|
943
2216
|
'expense_at'?: string | null;
|
|
2217
|
+
/**
|
|
2218
|
+
*
|
|
2219
|
+
* @type {string}
|
|
2220
|
+
* @memberof CreditAccount
|
|
2221
|
+
*/
|
|
944
2222
|
'last_event_id'?: string | null;
|
|
945
2223
|
/**
|
|
946
2224
|
* Total income from all credit transactions
|
|
2225
|
+
* @type {string}
|
|
2226
|
+
* @memberof CreditAccount
|
|
947
2227
|
*/
|
|
948
2228
|
'total_income'?: string;
|
|
949
2229
|
/**
|
|
950
2230
|
* Total income from free credit transactions
|
|
2231
|
+
* @type {string}
|
|
2232
|
+
* @memberof CreditAccount
|
|
951
2233
|
*/
|
|
952
2234
|
'total_free_income'?: string;
|
|
953
2235
|
/**
|
|
954
2236
|
* Total income from reward credit transactions
|
|
2237
|
+
* @type {string}
|
|
2238
|
+
* @memberof CreditAccount
|
|
955
2239
|
*/
|
|
956
2240
|
'total_reward_income'?: string;
|
|
957
2241
|
/**
|
|
958
2242
|
* Total income from permanent credit transactions
|
|
2243
|
+
* @type {string}
|
|
2244
|
+
* @memberof CreditAccount
|
|
959
2245
|
*/
|
|
960
2246
|
'total_permanent_income'?: string;
|
|
961
2247
|
/**
|
|
962
2248
|
* Total expense from all credit transactions
|
|
2249
|
+
* @type {string}
|
|
2250
|
+
* @memberof CreditAccount
|
|
963
2251
|
*/
|
|
964
2252
|
'total_expense'?: string;
|
|
965
2253
|
/**
|
|
966
2254
|
* Total expense from free credit transactions
|
|
2255
|
+
* @type {string}
|
|
2256
|
+
* @memberof CreditAccount
|
|
967
2257
|
*/
|
|
968
2258
|
'total_free_expense'?: string;
|
|
969
2259
|
/**
|
|
970
2260
|
* Total expense from reward credit transactions
|
|
2261
|
+
* @type {string}
|
|
2262
|
+
* @memberof CreditAccount
|
|
971
2263
|
*/
|
|
972
2264
|
'total_reward_expense'?: string;
|
|
973
2265
|
/**
|
|
974
2266
|
* Total expense from permanent credit transactions
|
|
2267
|
+
* @type {string}
|
|
2268
|
+
* @memberof CreditAccount
|
|
975
2269
|
*/
|
|
976
2270
|
'total_permanent_expense'?: string;
|
|
977
2271
|
/**
|
|
978
2272
|
* Timestamp when this account was created
|
|
2273
|
+
* @type {string}
|
|
2274
|
+
* @memberof CreditAccount
|
|
979
2275
|
*/
|
|
980
2276
|
'created_at': string;
|
|
981
2277
|
/**
|
|
982
2278
|
* Timestamp when this account was last updated
|
|
2279
|
+
* @type {string}
|
|
2280
|
+
* @memberof CreditAccount
|
|
983
2281
|
*/
|
|
984
2282
|
'updated_at': string;
|
|
985
2283
|
}
|
|
@@ -987,6 +2285,8 @@ export interface CreditAccount {
|
|
|
987
2285
|
|
|
988
2286
|
/**
|
|
989
2287
|
* Credit or debit transaction.
|
|
2288
|
+
* @export
|
|
2289
|
+
* @enum {string}
|
|
990
2290
|
*/
|
|
991
2291
|
|
|
992
2292
|
export const CreditDebit = {
|
|
@@ -999,81 +2299,278 @@ export type CreditDebit = typeof CreditDebit[keyof typeof CreditDebit];
|
|
|
999
2299
|
|
|
1000
2300
|
/**
|
|
1001
2301
|
* Credit event model with all fields.
|
|
2302
|
+
* @export
|
|
2303
|
+
* @interface CreditEvent
|
|
1002
2304
|
*/
|
|
1003
2305
|
export interface CreditEvent {
|
|
1004
2306
|
/**
|
|
1005
2307
|
* Unique identifier for the credit event
|
|
2308
|
+
* @type {string}
|
|
2309
|
+
* @memberof CreditEvent
|
|
1006
2310
|
*/
|
|
1007
2311
|
'id'?: string;
|
|
1008
2312
|
/**
|
|
1009
2313
|
* Account ID from which credits flow
|
|
2314
|
+
* @type {string}
|
|
2315
|
+
* @memberof CreditEvent
|
|
1010
2316
|
*/
|
|
1011
2317
|
'account_id'?: string;
|
|
1012
2318
|
/**
|
|
1013
2319
|
* Type of the event
|
|
2320
|
+
* @type {EventType}
|
|
2321
|
+
* @memberof CreditEvent
|
|
1014
2322
|
*/
|
|
1015
2323
|
'event_type': EventType;
|
|
2324
|
+
/**
|
|
2325
|
+
*
|
|
2326
|
+
* @type {string}
|
|
2327
|
+
* @memberof CreditEvent
|
|
2328
|
+
*/
|
|
1016
2329
|
'user_id'?: string | null;
|
|
1017
2330
|
/**
|
|
1018
2331
|
* Type of upstream transaction
|
|
2332
|
+
* @type {UpstreamType}
|
|
2333
|
+
* @memberof CreditEvent
|
|
1019
2334
|
*/
|
|
1020
2335
|
'upstream_type': UpstreamType;
|
|
1021
2336
|
/**
|
|
1022
2337
|
* Upstream transaction ID if any
|
|
2338
|
+
* @type {string}
|
|
2339
|
+
* @memberof CreditEvent
|
|
1023
2340
|
*/
|
|
1024
2341
|
'upstream_tx_id': string;
|
|
2342
|
+
/**
|
|
2343
|
+
*
|
|
2344
|
+
* @type {string}
|
|
2345
|
+
* @memberof CreditEvent
|
|
2346
|
+
*/
|
|
1025
2347
|
'agent_id'?: string | null;
|
|
2348
|
+
/**
|
|
2349
|
+
*
|
|
2350
|
+
* @type {string}
|
|
2351
|
+
* @memberof CreditEvent
|
|
2352
|
+
*/
|
|
1026
2353
|
'agent_wallet_address'?: string | null;
|
|
2354
|
+
/**
|
|
2355
|
+
*
|
|
2356
|
+
* @type {string}
|
|
2357
|
+
* @memberof CreditEvent
|
|
2358
|
+
*/
|
|
1027
2359
|
'start_message_id'?: string | null;
|
|
2360
|
+
/**
|
|
2361
|
+
*
|
|
2362
|
+
* @type {string}
|
|
2363
|
+
* @memberof CreditEvent
|
|
2364
|
+
*/
|
|
1028
2365
|
'message_id'?: string | null;
|
|
2366
|
+
/**
|
|
2367
|
+
*
|
|
2368
|
+
* @type {string}
|
|
2369
|
+
* @memberof CreditEvent
|
|
2370
|
+
*/
|
|
1029
2371
|
'model'?: string | null;
|
|
2372
|
+
/**
|
|
2373
|
+
*
|
|
2374
|
+
* @type {string}
|
|
2375
|
+
* @memberof CreditEvent
|
|
2376
|
+
*/
|
|
1030
2377
|
'skill_call_id'?: string | null;
|
|
2378
|
+
/**
|
|
2379
|
+
*
|
|
2380
|
+
* @type {string}
|
|
2381
|
+
* @memberof CreditEvent
|
|
2382
|
+
*/
|
|
1031
2383
|
'skill_name'?: string | null;
|
|
1032
2384
|
/**
|
|
1033
2385
|
* Direction of the credit flow
|
|
2386
|
+
* @type {Direction}
|
|
2387
|
+
* @memberof CreditEvent
|
|
1034
2388
|
*/
|
|
1035
2389
|
'direction': Direction;
|
|
1036
2390
|
/**
|
|
1037
2391
|
* Total amount (after discount) of credits involved
|
|
2392
|
+
* @type {string}
|
|
2393
|
+
* @memberof CreditEvent
|
|
1038
2394
|
*/
|
|
1039
2395
|
'total_amount'?: string;
|
|
1040
2396
|
/**
|
|
1041
2397
|
* Type of credits involved
|
|
2398
|
+
* @type {CreditType}
|
|
2399
|
+
* @memberof CreditEvent
|
|
1042
2400
|
*/
|
|
1043
2401
|
'credit_type': CreditType;
|
|
2402
|
+
/**
|
|
2403
|
+
*
|
|
2404
|
+
* @type {Array<CreditType>}
|
|
2405
|
+
* @memberof CreditEvent
|
|
2406
|
+
*/
|
|
1044
2407
|
'credit_types'?: Array<CreditType> | null;
|
|
2408
|
+
/**
|
|
2409
|
+
*
|
|
2410
|
+
* @type {string}
|
|
2411
|
+
* @memberof CreditEvent
|
|
2412
|
+
*/
|
|
1045
2413
|
'balance_after'?: string | null;
|
|
1046
2414
|
/**
|
|
1047
2415
|
* Base amount of credits involved
|
|
2416
|
+
* @type {string}
|
|
2417
|
+
* @memberof CreditEvent
|
|
1048
2418
|
*/
|
|
1049
2419
|
'base_amount'?: string;
|
|
2420
|
+
/**
|
|
2421
|
+
*
|
|
2422
|
+
* @type {string}
|
|
2423
|
+
* @memberof CreditEvent
|
|
2424
|
+
*/
|
|
1050
2425
|
'base_discount_amount'?: string | null;
|
|
2426
|
+
/**
|
|
2427
|
+
*
|
|
2428
|
+
* @type {string}
|
|
2429
|
+
* @memberof CreditEvent
|
|
2430
|
+
*/
|
|
1051
2431
|
'base_original_amount'?: string | null;
|
|
2432
|
+
/**
|
|
2433
|
+
*
|
|
2434
|
+
* @type {string}
|
|
2435
|
+
* @memberof CreditEvent
|
|
2436
|
+
*/
|
|
1052
2437
|
'base_llm_amount'?: string | null;
|
|
2438
|
+
/**
|
|
2439
|
+
*
|
|
2440
|
+
* @type {string}
|
|
2441
|
+
* @memberof CreditEvent
|
|
2442
|
+
*/
|
|
1053
2443
|
'base_skill_amount'?: string | null;
|
|
2444
|
+
/**
|
|
2445
|
+
*
|
|
2446
|
+
* @type {string}
|
|
2447
|
+
* @memberof CreditEvent
|
|
2448
|
+
*/
|
|
1054
2449
|
'base_free_amount'?: string | null;
|
|
2450
|
+
/**
|
|
2451
|
+
*
|
|
2452
|
+
* @type {string}
|
|
2453
|
+
* @memberof CreditEvent
|
|
2454
|
+
*/
|
|
1055
2455
|
'base_reward_amount'?: string | null;
|
|
2456
|
+
/**
|
|
2457
|
+
*
|
|
2458
|
+
* @type {string}
|
|
2459
|
+
* @memberof CreditEvent
|
|
2460
|
+
*/
|
|
1056
2461
|
'base_permanent_amount'?: string | null;
|
|
2462
|
+
/**
|
|
2463
|
+
*
|
|
2464
|
+
* @type {string}
|
|
2465
|
+
* @memberof CreditEvent
|
|
2466
|
+
*/
|
|
1057
2467
|
'fee_platform_amount'?: string | null;
|
|
2468
|
+
/**
|
|
2469
|
+
*
|
|
2470
|
+
* @type {string}
|
|
2471
|
+
* @memberof CreditEvent
|
|
2472
|
+
*/
|
|
1058
2473
|
'fee_platform_free_amount'?: string | null;
|
|
2474
|
+
/**
|
|
2475
|
+
*
|
|
2476
|
+
* @type {string}
|
|
2477
|
+
* @memberof CreditEvent
|
|
2478
|
+
*/
|
|
1059
2479
|
'fee_platform_reward_amount'?: string | null;
|
|
2480
|
+
/**
|
|
2481
|
+
*
|
|
2482
|
+
* @type {string}
|
|
2483
|
+
* @memberof CreditEvent
|
|
2484
|
+
*/
|
|
1060
2485
|
'fee_platform_permanent_amount'?: string | null;
|
|
2486
|
+
/**
|
|
2487
|
+
*
|
|
2488
|
+
* @type {string}
|
|
2489
|
+
* @memberof CreditEvent
|
|
2490
|
+
*/
|
|
1061
2491
|
'fee_dev_account'?: string | null;
|
|
2492
|
+
/**
|
|
2493
|
+
*
|
|
2494
|
+
* @type {string}
|
|
2495
|
+
* @memberof CreditEvent
|
|
2496
|
+
*/
|
|
1062
2497
|
'fee_dev_amount'?: string | null;
|
|
2498
|
+
/**
|
|
2499
|
+
*
|
|
2500
|
+
* @type {string}
|
|
2501
|
+
* @memberof CreditEvent
|
|
2502
|
+
*/
|
|
1063
2503
|
'fee_dev_free_amount'?: string | null;
|
|
2504
|
+
/**
|
|
2505
|
+
*
|
|
2506
|
+
* @type {string}
|
|
2507
|
+
* @memberof CreditEvent
|
|
2508
|
+
*/
|
|
1064
2509
|
'fee_dev_reward_amount'?: string | null;
|
|
2510
|
+
/**
|
|
2511
|
+
*
|
|
2512
|
+
* @type {string}
|
|
2513
|
+
* @memberof CreditEvent
|
|
2514
|
+
*/
|
|
1065
2515
|
'fee_dev_permanent_amount'?: string | null;
|
|
2516
|
+
/**
|
|
2517
|
+
*
|
|
2518
|
+
* @type {string}
|
|
2519
|
+
* @memberof CreditEvent
|
|
2520
|
+
*/
|
|
1066
2521
|
'fee_agent_account'?: string | null;
|
|
2522
|
+
/**
|
|
2523
|
+
*
|
|
2524
|
+
* @type {string}
|
|
2525
|
+
* @memberof CreditEvent
|
|
2526
|
+
*/
|
|
1067
2527
|
'fee_agent_amount'?: string | null;
|
|
2528
|
+
/**
|
|
2529
|
+
*
|
|
2530
|
+
* @type {string}
|
|
2531
|
+
* @memberof CreditEvent
|
|
2532
|
+
*/
|
|
1068
2533
|
'fee_agent_free_amount'?: string | null;
|
|
2534
|
+
/**
|
|
2535
|
+
*
|
|
2536
|
+
* @type {string}
|
|
2537
|
+
* @memberof CreditEvent
|
|
2538
|
+
*/
|
|
1069
2539
|
'fee_agent_reward_amount'?: string | null;
|
|
2540
|
+
/**
|
|
2541
|
+
*
|
|
2542
|
+
* @type {string}
|
|
2543
|
+
* @memberof CreditEvent
|
|
2544
|
+
*/
|
|
1070
2545
|
'fee_agent_permanent_amount'?: string | null;
|
|
2546
|
+
/**
|
|
2547
|
+
*
|
|
2548
|
+
* @type {string}
|
|
2549
|
+
* @memberof CreditEvent
|
|
2550
|
+
*/
|
|
1071
2551
|
'free_amount'?: string | null;
|
|
2552
|
+
/**
|
|
2553
|
+
*
|
|
2554
|
+
* @type {string}
|
|
2555
|
+
* @memberof CreditEvent
|
|
2556
|
+
*/
|
|
1072
2557
|
'reward_amount'?: string | null;
|
|
2558
|
+
/**
|
|
2559
|
+
*
|
|
2560
|
+
* @type {string}
|
|
2561
|
+
* @memberof CreditEvent
|
|
2562
|
+
*/
|
|
1073
2563
|
'permanent_amount'?: string | null;
|
|
2564
|
+
/**
|
|
2565
|
+
*
|
|
2566
|
+
* @type {string}
|
|
2567
|
+
* @memberof CreditEvent
|
|
2568
|
+
*/
|
|
1074
2569
|
'note'?: string | null;
|
|
1075
2570
|
/**
|
|
1076
2571
|
* Timestamp when this event was created
|
|
2572
|
+
* @type {string}
|
|
2573
|
+
* @memberof CreditEvent
|
|
1077
2574
|
*/
|
|
1078
2575
|
'created_at': string;
|
|
1079
2576
|
}
|
|
@@ -1081,169 +2578,424 @@ export interface CreditEvent {
|
|
|
1081
2578
|
|
|
1082
2579
|
/**
|
|
1083
2580
|
* Credit event response model with agent name. Extends CreditEvent to include the agent name for better user experience.
|
|
2581
|
+
* @export
|
|
2582
|
+
* @interface CreditEventWithAgent
|
|
1084
2583
|
*/
|
|
1085
2584
|
export interface CreditEventWithAgent {
|
|
1086
2585
|
/**
|
|
1087
2586
|
* Unique identifier for the credit event
|
|
2587
|
+
* @type {string}
|
|
2588
|
+
* @memberof CreditEventWithAgent
|
|
1088
2589
|
*/
|
|
1089
2590
|
'id'?: string;
|
|
1090
2591
|
/**
|
|
1091
2592
|
* Account ID from which credits flow
|
|
2593
|
+
* @type {string}
|
|
2594
|
+
* @memberof CreditEventWithAgent
|
|
1092
2595
|
*/
|
|
1093
2596
|
'account_id'?: string;
|
|
1094
2597
|
/**
|
|
1095
2598
|
* Type of the event
|
|
2599
|
+
* @type {EventType}
|
|
2600
|
+
* @memberof CreditEventWithAgent
|
|
1096
2601
|
*/
|
|
1097
2602
|
'event_type': EventType;
|
|
2603
|
+
/**
|
|
2604
|
+
*
|
|
2605
|
+
* @type {string}
|
|
2606
|
+
* @memberof CreditEventWithAgent
|
|
2607
|
+
*/
|
|
1098
2608
|
'user_id'?: string | null;
|
|
1099
2609
|
/**
|
|
1100
2610
|
* Type of upstream transaction
|
|
2611
|
+
* @type {UpstreamType}
|
|
2612
|
+
* @memberof CreditEventWithAgent
|
|
1101
2613
|
*/
|
|
1102
2614
|
'upstream_type': UpstreamType;
|
|
1103
2615
|
/**
|
|
1104
2616
|
* Upstream transaction ID if any
|
|
2617
|
+
* @type {string}
|
|
2618
|
+
* @memberof CreditEventWithAgent
|
|
1105
2619
|
*/
|
|
1106
2620
|
'upstream_tx_id': string;
|
|
2621
|
+
/**
|
|
2622
|
+
*
|
|
2623
|
+
* @type {string}
|
|
2624
|
+
* @memberof CreditEventWithAgent
|
|
2625
|
+
*/
|
|
1107
2626
|
'agent_id'?: string | null;
|
|
2627
|
+
/**
|
|
2628
|
+
*
|
|
2629
|
+
* @type {string}
|
|
2630
|
+
* @memberof CreditEventWithAgent
|
|
2631
|
+
*/
|
|
1108
2632
|
'agent_wallet_address'?: string | null;
|
|
2633
|
+
/**
|
|
2634
|
+
*
|
|
2635
|
+
* @type {string}
|
|
2636
|
+
* @memberof CreditEventWithAgent
|
|
2637
|
+
*/
|
|
1109
2638
|
'start_message_id'?: string | null;
|
|
2639
|
+
/**
|
|
2640
|
+
*
|
|
2641
|
+
* @type {string}
|
|
2642
|
+
* @memberof CreditEventWithAgent
|
|
2643
|
+
*/
|
|
1110
2644
|
'message_id'?: string | null;
|
|
2645
|
+
/**
|
|
2646
|
+
*
|
|
2647
|
+
* @type {string}
|
|
2648
|
+
* @memberof CreditEventWithAgent
|
|
2649
|
+
*/
|
|
1111
2650
|
'model'?: string | null;
|
|
2651
|
+
/**
|
|
2652
|
+
*
|
|
2653
|
+
* @type {string}
|
|
2654
|
+
* @memberof CreditEventWithAgent
|
|
2655
|
+
*/
|
|
1112
2656
|
'skill_call_id'?: string | null;
|
|
2657
|
+
/**
|
|
2658
|
+
*
|
|
2659
|
+
* @type {string}
|
|
2660
|
+
* @memberof CreditEventWithAgent
|
|
2661
|
+
*/
|
|
1113
2662
|
'skill_name'?: string | null;
|
|
1114
2663
|
/**
|
|
1115
2664
|
* Direction of the credit flow
|
|
2665
|
+
* @type {Direction}
|
|
2666
|
+
* @memberof CreditEventWithAgent
|
|
1116
2667
|
*/
|
|
1117
2668
|
'direction': Direction;
|
|
1118
2669
|
/**
|
|
1119
2670
|
* Total amount (after discount) of credits involved
|
|
2671
|
+
* @type {string}
|
|
2672
|
+
* @memberof CreditEventWithAgent
|
|
1120
2673
|
*/
|
|
1121
2674
|
'total_amount'?: string;
|
|
1122
2675
|
/**
|
|
1123
2676
|
* Type of credits involved
|
|
2677
|
+
* @type {CreditType}
|
|
2678
|
+
* @memberof CreditEventWithAgent
|
|
1124
2679
|
*/
|
|
1125
2680
|
'credit_type': CreditType;
|
|
2681
|
+
/**
|
|
2682
|
+
*
|
|
2683
|
+
* @type {Array<CreditType>}
|
|
2684
|
+
* @memberof CreditEventWithAgent
|
|
2685
|
+
*/
|
|
1126
2686
|
'credit_types'?: Array<CreditType> | null;
|
|
2687
|
+
/**
|
|
2688
|
+
*
|
|
2689
|
+
* @type {string}
|
|
2690
|
+
* @memberof CreditEventWithAgent
|
|
2691
|
+
*/
|
|
1127
2692
|
'balance_after'?: string | null;
|
|
1128
2693
|
/**
|
|
1129
2694
|
* Base amount of credits involved
|
|
2695
|
+
* @type {string}
|
|
2696
|
+
* @memberof CreditEventWithAgent
|
|
1130
2697
|
*/
|
|
1131
2698
|
'base_amount'?: string;
|
|
2699
|
+
/**
|
|
2700
|
+
*
|
|
2701
|
+
* @type {string}
|
|
2702
|
+
* @memberof CreditEventWithAgent
|
|
2703
|
+
*/
|
|
1132
2704
|
'base_discount_amount'?: string | null;
|
|
2705
|
+
/**
|
|
2706
|
+
*
|
|
2707
|
+
* @type {string}
|
|
2708
|
+
* @memberof CreditEventWithAgent
|
|
2709
|
+
*/
|
|
1133
2710
|
'base_original_amount'?: string | null;
|
|
2711
|
+
/**
|
|
2712
|
+
*
|
|
2713
|
+
* @type {string}
|
|
2714
|
+
* @memberof CreditEventWithAgent
|
|
2715
|
+
*/
|
|
1134
2716
|
'base_llm_amount'?: string | null;
|
|
2717
|
+
/**
|
|
2718
|
+
*
|
|
2719
|
+
* @type {string}
|
|
2720
|
+
* @memberof CreditEventWithAgent
|
|
2721
|
+
*/
|
|
1135
2722
|
'base_skill_amount'?: string | null;
|
|
2723
|
+
/**
|
|
2724
|
+
*
|
|
2725
|
+
* @type {string}
|
|
2726
|
+
* @memberof CreditEventWithAgent
|
|
2727
|
+
*/
|
|
1136
2728
|
'base_free_amount'?: string | null;
|
|
2729
|
+
/**
|
|
2730
|
+
*
|
|
2731
|
+
* @type {string}
|
|
2732
|
+
* @memberof CreditEventWithAgent
|
|
2733
|
+
*/
|
|
1137
2734
|
'base_reward_amount'?: string | null;
|
|
2735
|
+
/**
|
|
2736
|
+
*
|
|
2737
|
+
* @type {string}
|
|
2738
|
+
* @memberof CreditEventWithAgent
|
|
2739
|
+
*/
|
|
1138
2740
|
'base_permanent_amount'?: string | null;
|
|
2741
|
+
/**
|
|
2742
|
+
*
|
|
2743
|
+
* @type {string}
|
|
2744
|
+
* @memberof CreditEventWithAgent
|
|
2745
|
+
*/
|
|
1139
2746
|
'fee_platform_amount'?: string | null;
|
|
2747
|
+
/**
|
|
2748
|
+
*
|
|
2749
|
+
* @type {string}
|
|
2750
|
+
* @memberof CreditEventWithAgent
|
|
2751
|
+
*/
|
|
1140
2752
|
'fee_platform_free_amount'?: string | null;
|
|
2753
|
+
/**
|
|
2754
|
+
*
|
|
2755
|
+
* @type {string}
|
|
2756
|
+
* @memberof CreditEventWithAgent
|
|
2757
|
+
*/
|
|
1141
2758
|
'fee_platform_reward_amount'?: string | null;
|
|
2759
|
+
/**
|
|
2760
|
+
*
|
|
2761
|
+
* @type {string}
|
|
2762
|
+
* @memberof CreditEventWithAgent
|
|
2763
|
+
*/
|
|
1142
2764
|
'fee_platform_permanent_amount'?: string | null;
|
|
2765
|
+
/**
|
|
2766
|
+
*
|
|
2767
|
+
* @type {string}
|
|
2768
|
+
* @memberof CreditEventWithAgent
|
|
2769
|
+
*/
|
|
1143
2770
|
'fee_dev_account'?: string | null;
|
|
2771
|
+
/**
|
|
2772
|
+
*
|
|
2773
|
+
* @type {string}
|
|
2774
|
+
* @memberof CreditEventWithAgent
|
|
2775
|
+
*/
|
|
1144
2776
|
'fee_dev_amount'?: string | null;
|
|
2777
|
+
/**
|
|
2778
|
+
*
|
|
2779
|
+
* @type {string}
|
|
2780
|
+
* @memberof CreditEventWithAgent
|
|
2781
|
+
*/
|
|
1145
2782
|
'fee_dev_free_amount'?: string | null;
|
|
2783
|
+
/**
|
|
2784
|
+
*
|
|
2785
|
+
* @type {string}
|
|
2786
|
+
* @memberof CreditEventWithAgent
|
|
2787
|
+
*/
|
|
1146
2788
|
'fee_dev_reward_amount'?: string | null;
|
|
2789
|
+
/**
|
|
2790
|
+
*
|
|
2791
|
+
* @type {string}
|
|
2792
|
+
* @memberof CreditEventWithAgent
|
|
2793
|
+
*/
|
|
1147
2794
|
'fee_dev_permanent_amount'?: string | null;
|
|
2795
|
+
/**
|
|
2796
|
+
*
|
|
2797
|
+
* @type {string}
|
|
2798
|
+
* @memberof CreditEventWithAgent
|
|
2799
|
+
*/
|
|
1148
2800
|
'fee_agent_account'?: string | null;
|
|
2801
|
+
/**
|
|
2802
|
+
*
|
|
2803
|
+
* @type {string}
|
|
2804
|
+
* @memberof CreditEventWithAgent
|
|
2805
|
+
*/
|
|
1149
2806
|
'fee_agent_amount'?: string | null;
|
|
2807
|
+
/**
|
|
2808
|
+
*
|
|
2809
|
+
* @type {string}
|
|
2810
|
+
* @memberof CreditEventWithAgent
|
|
2811
|
+
*/
|
|
1150
2812
|
'fee_agent_free_amount'?: string | null;
|
|
2813
|
+
/**
|
|
2814
|
+
*
|
|
2815
|
+
* @type {string}
|
|
2816
|
+
* @memberof CreditEventWithAgent
|
|
2817
|
+
*/
|
|
1151
2818
|
'fee_agent_reward_amount'?: string | null;
|
|
2819
|
+
/**
|
|
2820
|
+
*
|
|
2821
|
+
* @type {string}
|
|
2822
|
+
* @memberof CreditEventWithAgent
|
|
2823
|
+
*/
|
|
1152
2824
|
'fee_agent_permanent_amount'?: string | null;
|
|
2825
|
+
/**
|
|
2826
|
+
*
|
|
2827
|
+
* @type {string}
|
|
2828
|
+
* @memberof CreditEventWithAgent
|
|
2829
|
+
*/
|
|
1153
2830
|
'free_amount'?: string | null;
|
|
2831
|
+
/**
|
|
2832
|
+
*
|
|
2833
|
+
* @type {string}
|
|
2834
|
+
* @memberof CreditEventWithAgent
|
|
2835
|
+
*/
|
|
1154
2836
|
'reward_amount'?: string | null;
|
|
2837
|
+
/**
|
|
2838
|
+
*
|
|
2839
|
+
* @type {string}
|
|
2840
|
+
* @memberof CreditEventWithAgent
|
|
2841
|
+
*/
|
|
1155
2842
|
'permanent_amount'?: string | null;
|
|
2843
|
+
/**
|
|
2844
|
+
*
|
|
2845
|
+
* @type {string}
|
|
2846
|
+
* @memberof CreditEventWithAgent
|
|
2847
|
+
*/
|
|
1156
2848
|
'note'?: string | null;
|
|
1157
2849
|
/**
|
|
1158
2850
|
* Timestamp when this event was created
|
|
2851
|
+
* @type {string}
|
|
2852
|
+
* @memberof CreditEventWithAgent
|
|
1159
2853
|
*/
|
|
1160
2854
|
'created_at': string;
|
|
2855
|
+
/**
|
|
2856
|
+
*
|
|
2857
|
+
* @type {string}
|
|
2858
|
+
* @memberof CreditEventWithAgent
|
|
2859
|
+
*/
|
|
1161
2860
|
'agent_name'?: string | null;
|
|
1162
2861
|
}
|
|
1163
2862
|
|
|
1164
2863
|
|
|
1165
2864
|
/**
|
|
1166
2865
|
* 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.
|
|
2866
|
+
* @export
|
|
2867
|
+
* @interface CreditEventsResponse
|
|
1167
2868
|
*/
|
|
1168
2869
|
export interface CreditEventsResponse {
|
|
1169
2870
|
/**
|
|
1170
2871
|
* List of credit events with agent names
|
|
2872
|
+
* @type {Array<CreditEventWithAgent>}
|
|
2873
|
+
* @memberof CreditEventsResponse
|
|
1171
2874
|
*/
|
|
1172
2875
|
'data': Array<CreditEventWithAgent>;
|
|
1173
2876
|
/**
|
|
1174
2877
|
* Indicates if there are more items
|
|
2878
|
+
* @type {boolean}
|
|
2879
|
+
* @memberof CreditEventsResponse
|
|
1175
2880
|
*/
|
|
1176
2881
|
'has_more': boolean;
|
|
2882
|
+
/**
|
|
2883
|
+
*
|
|
2884
|
+
* @type {string}
|
|
2885
|
+
* @memberof CreditEventsResponse
|
|
2886
|
+
*/
|
|
1177
2887
|
'next_cursor'?: string | null;
|
|
1178
2888
|
}
|
|
1179
2889
|
/**
|
|
1180
2890
|
* Credit transaction response model with associated event data. Extends CreditTransaction to include the related CreditEvent if available.
|
|
2891
|
+
* @export
|
|
2892
|
+
* @interface CreditTransactionResp
|
|
1181
2893
|
*/
|
|
1182
2894
|
export interface CreditTransactionResp {
|
|
1183
2895
|
/**
|
|
1184
2896
|
* Unique identifier for the credit transaction
|
|
2897
|
+
* @type {string}
|
|
2898
|
+
* @memberof CreditTransactionResp
|
|
1185
2899
|
*/
|
|
1186
2900
|
'id'?: string;
|
|
1187
2901
|
/**
|
|
1188
2902
|
* ID of the account this transaction belongs to
|
|
2903
|
+
* @type {string}
|
|
2904
|
+
* @memberof CreditTransactionResp
|
|
1189
2905
|
*/
|
|
1190
2906
|
'account_id': string;
|
|
1191
2907
|
/**
|
|
1192
2908
|
* ID of the event that triggered this transaction
|
|
2909
|
+
* @type {string}
|
|
2910
|
+
* @memberof CreditTransactionResp
|
|
1193
2911
|
*/
|
|
1194
2912
|
'event_id': string;
|
|
1195
2913
|
/**
|
|
1196
2914
|
* Type of the transaction
|
|
2915
|
+
* @type {TransactionType}
|
|
2916
|
+
* @memberof CreditTransactionResp
|
|
1197
2917
|
*/
|
|
1198
2918
|
'tx_type': TransactionType;
|
|
1199
2919
|
/**
|
|
1200
2920
|
* Whether this is a credit or debit transaction
|
|
2921
|
+
* @type {CreditDebit}
|
|
2922
|
+
* @memberof CreditTransactionResp
|
|
1201
2923
|
*/
|
|
1202
2924
|
'credit_debit': CreditDebit;
|
|
1203
2925
|
/**
|
|
1204
2926
|
* Amount of credits changed
|
|
2927
|
+
* @type {string}
|
|
2928
|
+
* @memberof CreditTransactionResp
|
|
1205
2929
|
*/
|
|
1206
2930
|
'change_amount'?: string;
|
|
1207
2931
|
/**
|
|
1208
2932
|
* Amount of free credits changed
|
|
2933
|
+
* @type {string}
|
|
2934
|
+
* @memberof CreditTransactionResp
|
|
1209
2935
|
*/
|
|
1210
2936
|
'free_amount'?: string;
|
|
1211
2937
|
/**
|
|
1212
2938
|
* Amount of reward credits changed
|
|
2939
|
+
* @type {string}
|
|
2940
|
+
* @memberof CreditTransactionResp
|
|
1213
2941
|
*/
|
|
1214
2942
|
'reward_amount'?: string;
|
|
1215
2943
|
/**
|
|
1216
2944
|
* Amount of permanent credits changed
|
|
2945
|
+
* @type {string}
|
|
2946
|
+
* @memberof CreditTransactionResp
|
|
1217
2947
|
*/
|
|
1218
2948
|
'permanent_amount'?: string;
|
|
1219
2949
|
/**
|
|
1220
2950
|
* Type of credits involved
|
|
2951
|
+
* @type {CreditType}
|
|
2952
|
+
* @memberof CreditTransactionResp
|
|
1221
2953
|
*/
|
|
1222
2954
|
'credit_type': CreditType;
|
|
1223
2955
|
/**
|
|
1224
2956
|
* Timestamp when this transaction was created
|
|
2957
|
+
* @type {string}
|
|
2958
|
+
* @memberof CreditTransactionResp
|
|
1225
2959
|
*/
|
|
1226
2960
|
'created_at': string;
|
|
2961
|
+
/**
|
|
2962
|
+
*
|
|
2963
|
+
* @type {CreditEvent}
|
|
2964
|
+
* @memberof CreditTransactionResp
|
|
2965
|
+
*/
|
|
1227
2966
|
'event'?: CreditEvent | null;
|
|
1228
2967
|
}
|
|
1229
2968
|
|
|
1230
2969
|
|
|
1231
2970
|
/**
|
|
1232
2971
|
* Paginated response model for credit transactions. Contains a list of credit transactions (with event data), a flag for more items, and a pagination cursor.
|
|
2972
|
+
* @export
|
|
2973
|
+
* @interface CreditTransactionsResponse
|
|
1233
2974
|
*/
|
|
1234
2975
|
export interface CreditTransactionsResponse {
|
|
1235
2976
|
/**
|
|
1236
2977
|
* List of credit transactions
|
|
2978
|
+
* @type {Array<CreditTransactionResp>}
|
|
2979
|
+
* @memberof CreditTransactionsResponse
|
|
1237
2980
|
*/
|
|
1238
2981
|
'data': Array<CreditTransactionResp>;
|
|
1239
2982
|
/**
|
|
1240
2983
|
* Indicates if there are more items
|
|
2984
|
+
* @type {boolean}
|
|
2985
|
+
* @memberof CreditTransactionsResponse
|
|
1241
2986
|
*/
|
|
1242
2987
|
'has_more': boolean;
|
|
2988
|
+
/**
|
|
2989
|
+
*
|
|
2990
|
+
* @type {string}
|
|
2991
|
+
* @memberof CreditTransactionsResponse
|
|
2992
|
+
*/
|
|
1243
2993
|
'next_cursor'?: string | null;
|
|
1244
2994
|
}
|
|
1245
2995
|
/**
|
|
1246
2996
|
* Credit type is used in db column names, do not change it.
|
|
2997
|
+
* @export
|
|
2998
|
+
* @enum {string}
|
|
1247
2999
|
*/
|
|
1248
3000
|
|
|
1249
3001
|
export const CreditType = {
|
|
@@ -1257,6 +3009,8 @@ export type CreditType = typeof CreditType[keyof typeof CreditType];
|
|
|
1257
3009
|
|
|
1258
3010
|
/**
|
|
1259
3011
|
* Direction of credit flow.
|
|
3012
|
+
* @export
|
|
3013
|
+
* @enum {string}
|
|
1260
3014
|
*/
|
|
1261
3015
|
|
|
1262
3016
|
export const Direction = {
|
|
@@ -1269,6 +3023,8 @@ export type Direction = typeof Direction[keyof typeof Direction];
|
|
|
1269
3023
|
|
|
1270
3024
|
/**
|
|
1271
3025
|
* Type of credit event.
|
|
3026
|
+
* @export
|
|
3027
|
+
* @enum {string}
|
|
1272
3028
|
*/
|
|
1273
3029
|
|
|
1274
3030
|
export const EventType = {
|
|
@@ -1292,88 +3048,262 @@ export type EventType = typeof EventType[keyof typeof EventType];
|
|
|
1292
3048
|
|
|
1293
3049
|
/**
|
|
1294
3050
|
* Response model for file upload.
|
|
3051
|
+
* @export
|
|
3052
|
+
* @interface FileUploadResponse
|
|
1295
3053
|
*/
|
|
1296
3054
|
export interface FileUploadResponse {
|
|
1297
3055
|
/**
|
|
1298
3056
|
* CDN URL of the uploaded file
|
|
3057
|
+
* @type {string}
|
|
3058
|
+
* @memberof FileUploadResponse
|
|
1299
3059
|
*/
|
|
1300
3060
|
'file_url': string;
|
|
1301
3061
|
/**
|
|
1302
3062
|
* Unique identifier for the uploaded file
|
|
3063
|
+
* @type {string}
|
|
3064
|
+
* @memberof FileUploadResponse
|
|
1303
3065
|
*/
|
|
1304
3066
|
'file_id': string;
|
|
1305
3067
|
}
|
|
1306
3068
|
/**
|
|
1307
3069
|
* Response model for single generation detail.
|
|
3070
|
+
* @export
|
|
3071
|
+
* @interface GenerationDetailResponse
|
|
1308
3072
|
*/
|
|
1309
3073
|
export interface GenerationDetailResponse {
|
|
1310
3074
|
/**
|
|
1311
3075
|
* Project ID
|
|
3076
|
+
* @type {string}
|
|
3077
|
+
* @memberof GenerationDetailResponse
|
|
1312
3078
|
*/
|
|
1313
3079
|
'project_id': string;
|
|
3080
|
+
/**
|
|
3081
|
+
*
|
|
3082
|
+
* @type {string}
|
|
3083
|
+
* @memberof GenerationDetailResponse
|
|
3084
|
+
*/
|
|
1314
3085
|
'user_id'?: string | null;
|
|
3086
|
+
/**
|
|
3087
|
+
*
|
|
3088
|
+
* @type {string}
|
|
3089
|
+
* @memberof GenerationDetailResponse
|
|
3090
|
+
*/
|
|
1315
3091
|
'created_at'?: string | null;
|
|
3092
|
+
/**
|
|
3093
|
+
*
|
|
3094
|
+
* @type {string}
|
|
3095
|
+
* @memberof GenerationDetailResponse
|
|
3096
|
+
*/
|
|
1316
3097
|
'last_activity'?: string | null;
|
|
1317
3098
|
/**
|
|
1318
3099
|
* Number of messages in conversation
|
|
3100
|
+
* @type {number}
|
|
3101
|
+
* @memberof GenerationDetailResponse
|
|
1319
3102
|
*/
|
|
1320
3103
|
'message_count': number;
|
|
3104
|
+
/**
|
|
3105
|
+
*
|
|
3106
|
+
* @type {object}
|
|
3107
|
+
* @memberof GenerationDetailResponse
|
|
3108
|
+
*/
|
|
1321
3109
|
'last_message'?: object | null;
|
|
3110
|
+
/**
|
|
3111
|
+
*
|
|
3112
|
+
* @type {object}
|
|
3113
|
+
* @memberof GenerationDetailResponse
|
|
3114
|
+
*/
|
|
1322
3115
|
'first_message'?: object | null;
|
|
1323
3116
|
/**
|
|
1324
3117
|
* Full conversation history
|
|
3118
|
+
* @type {Array<object>}
|
|
3119
|
+
* @memberof GenerationDetailResponse
|
|
1325
3120
|
*/
|
|
1326
3121
|
'conversation_history': Array<object>;
|
|
1327
3122
|
}
|
|
1328
3123
|
/**
|
|
1329
3124
|
* Response model for generations list.
|
|
3125
|
+
* @export
|
|
3126
|
+
* @interface GenerationsListResponse
|
|
1330
3127
|
*/
|
|
1331
3128
|
export interface GenerationsListResponse {
|
|
1332
3129
|
/**
|
|
1333
3130
|
* List of recent projects with their conversation history
|
|
3131
|
+
* @type {Array<object>}
|
|
3132
|
+
* @memberof GenerationsListResponse
|
|
1334
3133
|
*/
|
|
1335
3134
|
'projects': Array<object>;
|
|
1336
3135
|
}
|
|
3136
|
+
/**
|
|
3137
|
+
*
|
|
3138
|
+
* @export
|
|
3139
|
+
* @interface HTTPValidationError
|
|
3140
|
+
*/
|
|
1337
3141
|
export interface HTTPValidationError {
|
|
3142
|
+
/**
|
|
3143
|
+
*
|
|
3144
|
+
* @type {Array<ValidationError>}
|
|
3145
|
+
* @memberof HTTPValidationError
|
|
3146
|
+
*/
|
|
1338
3147
|
'detail'?: Array<ValidationError>;
|
|
1339
3148
|
}
|
|
1340
3149
|
/**
|
|
1341
3150
|
* LLM model information with provider display name.
|
|
3151
|
+
* @export
|
|
3152
|
+
* @interface LLMModelInfoWithProviderName
|
|
1342
3153
|
*/
|
|
1343
3154
|
export interface LLMModelInfoWithProviderName {
|
|
3155
|
+
/**
|
|
3156
|
+
*
|
|
3157
|
+
* @type {string}
|
|
3158
|
+
* @memberof LLMModelInfoWithProviderName
|
|
3159
|
+
*/
|
|
1344
3160
|
'id': string;
|
|
3161
|
+
/**
|
|
3162
|
+
*
|
|
3163
|
+
* @type {string}
|
|
3164
|
+
* @memberof LLMModelInfoWithProviderName
|
|
3165
|
+
*/
|
|
1345
3166
|
'name': string;
|
|
3167
|
+
/**
|
|
3168
|
+
*
|
|
3169
|
+
* @type {LLMProvider}
|
|
3170
|
+
* @memberof LLMModelInfoWithProviderName
|
|
3171
|
+
*/
|
|
1346
3172
|
'provider': LLMProvider;
|
|
3173
|
+
/**
|
|
3174
|
+
*
|
|
3175
|
+
* @type {boolean}
|
|
3176
|
+
* @memberof LLMModelInfoWithProviderName
|
|
3177
|
+
*/
|
|
1347
3178
|
'enabled'?: boolean;
|
|
3179
|
+
/**
|
|
3180
|
+
*
|
|
3181
|
+
* @type {string}
|
|
3182
|
+
* @memberof LLMModelInfoWithProviderName
|
|
3183
|
+
*/
|
|
1348
3184
|
'input_price': string;
|
|
3185
|
+
/**
|
|
3186
|
+
*
|
|
3187
|
+
* @type {string}
|
|
3188
|
+
* @memberof LLMModelInfoWithProviderName
|
|
3189
|
+
*/
|
|
1349
3190
|
'output_price': string;
|
|
3191
|
+
/**
|
|
3192
|
+
*
|
|
3193
|
+
* @type {number}
|
|
3194
|
+
* @memberof LLMModelInfoWithProviderName
|
|
3195
|
+
*/
|
|
1350
3196
|
'price_level'?: number | null;
|
|
3197
|
+
/**
|
|
3198
|
+
*
|
|
3199
|
+
* @type {number}
|
|
3200
|
+
* @memberof LLMModelInfoWithProviderName
|
|
3201
|
+
*/
|
|
1351
3202
|
'context_length': number;
|
|
3203
|
+
/**
|
|
3204
|
+
*
|
|
3205
|
+
* @type {number}
|
|
3206
|
+
* @memberof LLMModelInfoWithProviderName
|
|
3207
|
+
*/
|
|
1352
3208
|
'output_length': number;
|
|
3209
|
+
/**
|
|
3210
|
+
*
|
|
3211
|
+
* @type {number}
|
|
3212
|
+
* @memberof LLMModelInfoWithProviderName
|
|
3213
|
+
*/
|
|
1353
3214
|
'intelligence': number;
|
|
3215
|
+
/**
|
|
3216
|
+
*
|
|
3217
|
+
* @type {number}
|
|
3218
|
+
* @memberof LLMModelInfoWithProviderName
|
|
3219
|
+
*/
|
|
1354
3220
|
'speed': number;
|
|
3221
|
+
/**
|
|
3222
|
+
*
|
|
3223
|
+
* @type {boolean}
|
|
3224
|
+
* @memberof LLMModelInfoWithProviderName
|
|
3225
|
+
*/
|
|
1355
3226
|
'supports_image_input'?: boolean;
|
|
3227
|
+
/**
|
|
3228
|
+
*
|
|
3229
|
+
* @type {boolean}
|
|
3230
|
+
* @memberof LLMModelInfoWithProviderName
|
|
3231
|
+
*/
|
|
1356
3232
|
'supports_skill_calls'?: boolean;
|
|
3233
|
+
/**
|
|
3234
|
+
*
|
|
3235
|
+
* @type {boolean}
|
|
3236
|
+
* @memberof LLMModelInfoWithProviderName
|
|
3237
|
+
*/
|
|
1357
3238
|
'supports_structured_output'?: boolean;
|
|
3239
|
+
/**
|
|
3240
|
+
*
|
|
3241
|
+
* @type {boolean}
|
|
3242
|
+
* @memberof LLMModelInfoWithProviderName
|
|
3243
|
+
*/
|
|
1358
3244
|
'has_reasoning'?: boolean;
|
|
3245
|
+
/**
|
|
3246
|
+
*
|
|
3247
|
+
* @type {boolean}
|
|
3248
|
+
* @memberof LLMModelInfoWithProviderName
|
|
3249
|
+
*/
|
|
1359
3250
|
'supports_search'?: boolean;
|
|
3251
|
+
/**
|
|
3252
|
+
*
|
|
3253
|
+
* @type {boolean}
|
|
3254
|
+
* @memberof LLMModelInfoWithProviderName
|
|
3255
|
+
*/
|
|
1360
3256
|
'supports_temperature'?: boolean;
|
|
3257
|
+
/**
|
|
3258
|
+
*
|
|
3259
|
+
* @type {boolean}
|
|
3260
|
+
* @memberof LLMModelInfoWithProviderName
|
|
3261
|
+
*/
|
|
1361
3262
|
'supports_frequency_penalty'?: boolean;
|
|
3263
|
+
/**
|
|
3264
|
+
*
|
|
3265
|
+
* @type {boolean}
|
|
3266
|
+
* @memberof LLMModelInfoWithProviderName
|
|
3267
|
+
*/
|
|
1362
3268
|
'supports_presence_penalty'?: boolean;
|
|
3269
|
+
/**
|
|
3270
|
+
*
|
|
3271
|
+
* @type {string}
|
|
3272
|
+
* @memberof LLMModelInfoWithProviderName
|
|
3273
|
+
*/
|
|
1363
3274
|
'api_base'?: string | null;
|
|
3275
|
+
/**
|
|
3276
|
+
*
|
|
3277
|
+
* @type {number}
|
|
3278
|
+
* @memberof LLMModelInfoWithProviderName
|
|
3279
|
+
*/
|
|
1364
3280
|
'timeout'?: number;
|
|
1365
3281
|
/**
|
|
1366
3282
|
* Timestamp when this data was created
|
|
3283
|
+
* @type {string}
|
|
3284
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1367
3285
|
*/
|
|
1368
3286
|
'created_at'?: string;
|
|
1369
3287
|
/**
|
|
1370
3288
|
* Timestamp when this data was updated
|
|
3289
|
+
* @type {string}
|
|
3290
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1371
3291
|
*/
|
|
1372
3292
|
'updated_at'?: string;
|
|
3293
|
+
/**
|
|
3294
|
+
*
|
|
3295
|
+
* @type {string}
|
|
3296
|
+
* @memberof LLMModelInfoWithProviderName
|
|
3297
|
+
*/
|
|
1373
3298
|
'provider_name': string;
|
|
1374
3299
|
}
|
|
1375
3300
|
|
|
1376
3301
|
|
|
3302
|
+
/**
|
|
3303
|
+
*
|
|
3304
|
+
* @export
|
|
3305
|
+
* @enum {string}
|
|
3306
|
+
*/
|
|
1377
3307
|
|
|
1378
3308
|
export const LLMProvider = {
|
|
1379
3309
|
Openai: 'openai',
|
|
@@ -1389,6 +3319,8 @@ export type LLMProvider = typeof LLMProvider[keyof typeof LLMProvider];
|
|
|
1389
3319
|
|
|
1390
3320
|
/**
|
|
1391
3321
|
* Type of credit account owner.
|
|
3322
|
+
* @export
|
|
3323
|
+
* @enum {string}
|
|
1392
3324
|
*/
|
|
1393
3325
|
|
|
1394
3326
|
export const OwnerType = {
|
|
@@ -1402,44 +3334,87 @@ export type OwnerType = typeof OwnerType[keyof typeof OwnerType];
|
|
|
1402
3334
|
|
|
1403
3335
|
/**
|
|
1404
3336
|
* Pydantic model for Skill.
|
|
3337
|
+
* @export
|
|
3338
|
+
* @interface Skill
|
|
1405
3339
|
*/
|
|
1406
3340
|
export interface Skill {
|
|
1407
3341
|
/**
|
|
1408
3342
|
* Name of the skill
|
|
3343
|
+
* @type {string}
|
|
3344
|
+
* @memberof Skill
|
|
1409
3345
|
*/
|
|
1410
3346
|
'name': string;
|
|
1411
3347
|
/**
|
|
1412
3348
|
* Is this skill enabled?
|
|
3349
|
+
* @type {boolean}
|
|
3350
|
+
* @memberof Skill
|
|
1413
3351
|
*/
|
|
1414
3352
|
'enabled': boolean;
|
|
1415
3353
|
/**
|
|
1416
3354
|
* Category of the skill
|
|
3355
|
+
* @type {string}
|
|
3356
|
+
* @memberof Skill
|
|
1417
3357
|
*/
|
|
1418
3358
|
'category': string;
|
|
3359
|
+
/**
|
|
3360
|
+
*
|
|
3361
|
+
* @type {string}
|
|
3362
|
+
* @memberof Skill
|
|
3363
|
+
*/
|
|
1419
3364
|
'config_name': string | null;
|
|
3365
|
+
/**
|
|
3366
|
+
*
|
|
3367
|
+
* @type {number}
|
|
3368
|
+
* @memberof Skill
|
|
3369
|
+
*/
|
|
1420
3370
|
'price_level': number | null;
|
|
1421
3371
|
/**
|
|
1422
3372
|
* Price for this skill
|
|
3373
|
+
* @type {string}
|
|
3374
|
+
* @memberof Skill
|
|
1423
3375
|
*/
|
|
1424
3376
|
'price'?: string;
|
|
1425
3377
|
/**
|
|
1426
3378
|
* Price for this skill with self key
|
|
3379
|
+
* @type {string}
|
|
3380
|
+
* @memberof Skill
|
|
1427
3381
|
*/
|
|
1428
3382
|
'price_self_key'?: string;
|
|
3383
|
+
/**
|
|
3384
|
+
*
|
|
3385
|
+
* @type {number}
|
|
3386
|
+
* @memberof Skill
|
|
3387
|
+
*/
|
|
1429
3388
|
'rate_limit_count': number | null;
|
|
3389
|
+
/**
|
|
3390
|
+
*
|
|
3391
|
+
* @type {number}
|
|
3392
|
+
* @memberof Skill
|
|
3393
|
+
*/
|
|
1430
3394
|
'rate_limit_minutes': number | null;
|
|
3395
|
+
/**
|
|
3396
|
+
*
|
|
3397
|
+
* @type {string}
|
|
3398
|
+
* @memberof Skill
|
|
3399
|
+
*/
|
|
1431
3400
|
'author': string | null;
|
|
1432
3401
|
/**
|
|
1433
3402
|
* Timestamp when this record was created
|
|
3403
|
+
* @type {string}
|
|
3404
|
+
* @memberof Skill
|
|
1434
3405
|
*/
|
|
1435
3406
|
'created_at': string;
|
|
1436
3407
|
/**
|
|
1437
3408
|
* Timestamp when this record was last updated
|
|
3409
|
+
* @type {string}
|
|
3410
|
+
* @memberof Skill
|
|
1438
3411
|
*/
|
|
1439
3412
|
'updated_at': string;
|
|
1440
3413
|
}
|
|
1441
3414
|
/**
|
|
1442
3415
|
* Type of system message.
|
|
3416
|
+
* @export
|
|
3417
|
+
* @enum {string}
|
|
1443
3418
|
*/
|
|
1444
3419
|
|
|
1445
3420
|
export const SystemMessageType = {
|
|
@@ -1456,6 +3431,8 @@ export type SystemMessageType = typeof SystemMessageType[keyof typeof SystemMess
|
|
|
1456
3431
|
|
|
1457
3432
|
/**
|
|
1458
3433
|
* Type of credit transaction.
|
|
3434
|
+
* @export
|
|
3435
|
+
* @enum {string}
|
|
1459
3436
|
*/
|
|
1460
3437
|
|
|
1461
3438
|
export const TransactionType = {
|
|
@@ -1481,12 +3458,29 @@ export const TransactionType = {
|
|
|
1481
3458
|
export type TransactionType = typeof TransactionType[keyof typeof TransactionType];
|
|
1482
3459
|
|
|
1483
3460
|
|
|
3461
|
+
/**
|
|
3462
|
+
*
|
|
3463
|
+
* @export
|
|
3464
|
+
* @interface TwitterAuthResponse
|
|
3465
|
+
*/
|
|
1484
3466
|
export interface TwitterAuthResponse {
|
|
3467
|
+
/**
|
|
3468
|
+
*
|
|
3469
|
+
* @type {string}
|
|
3470
|
+
* @memberof TwitterAuthResponse
|
|
3471
|
+
*/
|
|
1485
3472
|
'agent_id': string;
|
|
3473
|
+
/**
|
|
3474
|
+
*
|
|
3475
|
+
* @type {string}
|
|
3476
|
+
* @memberof TwitterAuthResponse
|
|
3477
|
+
*/
|
|
1486
3478
|
'url': string;
|
|
1487
3479
|
}
|
|
1488
3480
|
/**
|
|
1489
3481
|
* Type of upstream transaction.
|
|
3482
|
+
* @export
|
|
3483
|
+
* @enum {string}
|
|
1490
3484
|
*/
|
|
1491
3485
|
|
|
1492
3486
|
export const UpstreamType = {
|
|
@@ -1499,16 +3493,42 @@ export const UpstreamType = {
|
|
|
1499
3493
|
export type UpstreamType = typeof UpstreamType[keyof typeof UpstreamType];
|
|
1500
3494
|
|
|
1501
3495
|
|
|
3496
|
+
/**
|
|
3497
|
+
*
|
|
3498
|
+
* @export
|
|
3499
|
+
* @interface ValidationError
|
|
3500
|
+
*/
|
|
1502
3501
|
export interface ValidationError {
|
|
3502
|
+
/**
|
|
3503
|
+
*
|
|
3504
|
+
* @type {Array<ValidationErrorLocInner>}
|
|
3505
|
+
* @memberof ValidationError
|
|
3506
|
+
*/
|
|
1503
3507
|
'loc': Array<ValidationErrorLocInner>;
|
|
3508
|
+
/**
|
|
3509
|
+
*
|
|
3510
|
+
* @type {string}
|
|
3511
|
+
* @memberof ValidationError
|
|
3512
|
+
*/
|
|
1504
3513
|
'msg': string;
|
|
3514
|
+
/**
|
|
3515
|
+
*
|
|
3516
|
+
* @type {string}
|
|
3517
|
+
* @memberof ValidationError
|
|
3518
|
+
*/
|
|
1505
3519
|
'type': string;
|
|
1506
3520
|
}
|
|
3521
|
+
/**
|
|
3522
|
+
*
|
|
3523
|
+
* @export
|
|
3524
|
+
* @interface ValidationErrorLocInner
|
|
3525
|
+
*/
|
|
1507
3526
|
export interface ValidationErrorLocInner {
|
|
1508
3527
|
}
|
|
1509
3528
|
|
|
1510
3529
|
/**
|
|
1511
3530
|
* AgentApi - axios parameter creator
|
|
3531
|
+
* @export
|
|
1512
3532
|
*/
|
|
1513
3533
|
export const AgentApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1514
3534
|
return {
|
|
@@ -2035,6 +4055,7 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
2035
4055
|
|
|
2036
4056
|
/**
|
|
2037
4057
|
* AgentApi - functional programming interface
|
|
4058
|
+
* @export
|
|
2038
4059
|
*/
|
|
2039
4060
|
export const AgentApiFp = function(configuration?: Configuration) {
|
|
2040
4061
|
const localVarAxiosParamCreator = AgentApiAxiosParamCreator(configuration)
|
|
@@ -2220,6 +4241,7 @@ export const AgentApiFp = function(configuration?: Configuration) {
|
|
|
2220
4241
|
|
|
2221
4242
|
/**
|
|
2222
4243
|
* AgentApi - factory interface
|
|
4244
|
+
* @export
|
|
2223
4245
|
*/
|
|
2224
4246
|
export const AgentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2225
4247
|
const localVarFp = AgentApiFp(configuration)
|
|
@@ -2366,6 +4388,9 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
|
|
|
2366
4388
|
|
|
2367
4389
|
/**
|
|
2368
4390
|
* AgentApi - object-oriented interface
|
|
4391
|
+
* @export
|
|
4392
|
+
* @class AgentApi
|
|
4393
|
+
* @extends {BaseAPI}
|
|
2369
4394
|
*/
|
|
2370
4395
|
export class AgentApi extends BaseAPI {
|
|
2371
4396
|
/**
|
|
@@ -2374,6 +4399,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2374
4399
|
* @param {AgentUpdate} [agentUpdate]
|
|
2375
4400
|
* @param {*} [options] Override http request option.
|
|
2376
4401
|
* @throws {RequiredError}
|
|
4402
|
+
* @memberof AgentApi
|
|
2377
4403
|
*/
|
|
2378
4404
|
public createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
2379
4405
|
return AgentApiFp(this.configuration).createAgent(agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2385,6 +4411,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2385
4411
|
* @param {string} agentId ID of the agent to export
|
|
2386
4412
|
* @param {*} [options] Override http request option.
|
|
2387
4413
|
* @throws {RequiredError}
|
|
4414
|
+
* @memberof AgentApi
|
|
2388
4415
|
*/
|
|
2389
4416
|
public exportAgent(agentId: string, options?: RawAxiosRequestConfig) {
|
|
2390
4417
|
return AgentApiFp(this.configuration).exportAgent(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2396,6 +4423,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2396
4423
|
* @param {string} agentId ID of the agent to retrieve
|
|
2397
4424
|
* @param {*} [options] Override http request option.
|
|
2398
4425
|
* @throws {RequiredError}
|
|
4426
|
+
* @memberof AgentApi
|
|
2399
4427
|
*/
|
|
2400
4428
|
public getAgent(agentId: string, options?: RawAxiosRequestConfig) {
|
|
2401
4429
|
return AgentApiFp(this.configuration).getAgent(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2407,6 +4435,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2407
4435
|
* @param {string} agentId ID of the agent
|
|
2408
4436
|
* @param {*} [options] Override http request option.
|
|
2409
4437
|
* @throws {RequiredError}
|
|
4438
|
+
* @memberof AgentApi
|
|
2410
4439
|
*/
|
|
2411
4440
|
public getAgentApiKey(agentId: string, options?: RawAxiosRequestConfig) {
|
|
2412
4441
|
return AgentApiFp(this.configuration).getAgentApiKey(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2418,6 +4447,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2418
4447
|
* @param {string} agentId ID of the agent
|
|
2419
4448
|
* @param {*} [options] Override http request option.
|
|
2420
4449
|
* @throws {RequiredError}
|
|
4450
|
+
* @memberof AgentApi
|
|
2421
4451
|
*/
|
|
2422
4452
|
public getAgentAssets(agentId: string, options?: RawAxiosRequestConfig) {
|
|
2423
4453
|
return AgentApiFp(this.configuration).getAgentAssets(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2429,6 +4459,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2429
4459
|
* @param {string} aid ID of the agent
|
|
2430
4460
|
* @param {*} [options] Override http request option.
|
|
2431
4461
|
* @throws {RequiredError}
|
|
4462
|
+
* @memberof AgentApi
|
|
2432
4463
|
*/
|
|
2433
4464
|
public getAgentStatistics(aid: string, options?: RawAxiosRequestConfig) {
|
|
2434
4465
|
return AgentApiFp(this.configuration).getAgentStatistics(aid, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2442,6 +4473,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2442
4473
|
* @param {number} [limit] Maximum number of agents to return
|
|
2443
4474
|
* @param {*} [options] Override http request option.
|
|
2444
4475
|
* @throws {RequiredError}
|
|
4476
|
+
* @memberof AgentApi
|
|
2445
4477
|
*/
|
|
2446
4478
|
public getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
2447
4479
|
return AgentApiFp(this.configuration).getAgents(sort, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2455,6 +4487,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2455
4487
|
* @param {number} [limit] Maximum number of messages to return
|
|
2456
4488
|
* @param {*} [options] Override http request option.
|
|
2457
4489
|
* @throws {RequiredError}
|
|
4490
|
+
* @memberof AgentApi
|
|
2458
4491
|
*/
|
|
2459
4492
|
public getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
2460
4493
|
return AgentApiFp(this.configuration).getSkillHistory(aid, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2467,6 +4500,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2467
4500
|
* @param {File} file YAML file containing agent configuration
|
|
2468
4501
|
* @param {*} [options] Override http request option.
|
|
2469
4502
|
* @throws {RequiredError}
|
|
4503
|
+
* @memberof AgentApi
|
|
2470
4504
|
*/
|
|
2471
4505
|
public importAgent(agentId: string, file: File, options?: RawAxiosRequestConfig) {
|
|
2472
4506
|
return AgentApiFp(this.configuration).importAgent(agentId, file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2479,6 +4513,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2479
4513
|
* @param {AgentUpdate} [agentUpdate]
|
|
2480
4514
|
* @param {*} [options] Override http request option.
|
|
2481
4515
|
* @throws {RequiredError}
|
|
4516
|
+
* @memberof AgentApi
|
|
2482
4517
|
*/
|
|
2483
4518
|
public overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
2484
4519
|
return AgentApiFp(this.configuration).overrideAgent(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2490,6 +4525,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2490
4525
|
* @param {string} agentId ID of the agent
|
|
2491
4526
|
* @param {*} [options] Override http request option.
|
|
2492
4527
|
* @throws {RequiredError}
|
|
4528
|
+
* @memberof AgentApi
|
|
2493
4529
|
*/
|
|
2494
4530
|
public resetAgentApiKey(agentId: string, options?: RawAxiosRequestConfig) {
|
|
2495
4531
|
return AgentApiFp(this.configuration).resetAgentApiKey(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2501,6 +4537,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2501
4537
|
* @param {AgentUpdate} [agentUpdate]
|
|
2502
4538
|
* @param {*} [options] Override http request option.
|
|
2503
4539
|
* @throws {RequiredError}
|
|
4540
|
+
* @memberof AgentApi
|
|
2504
4541
|
*/
|
|
2505
4542
|
public validateAgentCreate(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
2506
4543
|
return AgentApiFp(this.configuration).validateAgentCreate(agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2513,6 +4550,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2513
4550
|
* @param {AgentUpdate} [agentUpdate]
|
|
2514
4551
|
* @param {*} [options] Override http request option.
|
|
2515
4552
|
* @throws {RequiredError}
|
|
4553
|
+
* @memberof AgentApi
|
|
2516
4554
|
*/
|
|
2517
4555
|
public validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
2518
4556
|
return AgentApiFp(this.configuration).validateAgentUpdate(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2523,6 +4561,7 @@ export class AgentApi extends BaseAPI {
|
|
|
2523
4561
|
|
|
2524
4562
|
/**
|
|
2525
4563
|
* ChatApi - axios parameter creator
|
|
4564
|
+
* @export
|
|
2526
4565
|
*/
|
|
2527
4566
|
export const ChatApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2528
4567
|
return {
|
|
@@ -2967,6 +5006,7 @@ export const ChatApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
2967
5006
|
|
|
2968
5007
|
/**
|
|
2969
5008
|
* ChatApi - functional programming interface
|
|
5009
|
+
* @export
|
|
2970
5010
|
*/
|
|
2971
5011
|
export const ChatApiFp = function(configuration?: Configuration) {
|
|
2972
5012
|
const localVarAxiosParamCreator = ChatApiAxiosParamCreator(configuration)
|
|
@@ -3118,6 +5158,7 @@ export const ChatApiFp = function(configuration?: Configuration) {
|
|
|
3118
5158
|
|
|
3119
5159
|
/**
|
|
3120
5160
|
* ChatApi - factory interface
|
|
5161
|
+
* @export
|
|
3121
5162
|
*/
|
|
3122
5163
|
export const ChatApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3123
5164
|
const localVarFp = ChatApiFp(configuration)
|
|
@@ -3239,6 +5280,9 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
|
|
|
3239
5280
|
|
|
3240
5281
|
/**
|
|
3241
5282
|
* ChatApi - object-oriented interface
|
|
5283
|
+
* @export
|
|
5284
|
+
* @class ChatApi
|
|
5285
|
+
* @extends {BaseAPI}
|
|
3242
5286
|
*/
|
|
3243
5287
|
export class ChatApi extends BaseAPI {
|
|
3244
5288
|
/**
|
|
@@ -3247,6 +5291,7 @@ export class ChatApi extends BaseAPI {
|
|
|
3247
5291
|
* @param {string} aid Agent ID
|
|
3248
5292
|
* @param {*} [options] Override http request option.
|
|
3249
5293
|
* @throws {RequiredError}
|
|
5294
|
+
* @memberof ChatApi
|
|
3250
5295
|
*/
|
|
3251
5296
|
public createChatThread(aid: string, options?: RawAxiosRequestConfig) {
|
|
3252
5297
|
return ChatApiFp(this.configuration).createChatThread(aid, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3259,6 +5304,7 @@ export class ChatApi extends BaseAPI {
|
|
|
3259
5304
|
* @param {string} chatId Chat ID
|
|
3260
5305
|
* @param {*} [options] Override http request option.
|
|
3261
5306
|
* @throws {RequiredError}
|
|
5307
|
+
* @memberof ChatApi
|
|
3262
5308
|
*/
|
|
3263
5309
|
public deleteChatThread(aid: string, chatId: string, options?: RawAxiosRequestConfig) {
|
|
3264
5310
|
return ChatApiFp(this.configuration).deleteChatThread(aid, chatId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3271,6 +5317,7 @@ export class ChatApi extends BaseAPI {
|
|
|
3271
5317
|
* @param {string} chatId Chat ID
|
|
3272
5318
|
* @param {*} [options] Override http request option.
|
|
3273
5319
|
* @throws {RequiredError}
|
|
5320
|
+
* @memberof ChatApi
|
|
3274
5321
|
*/
|
|
3275
5322
|
public getChatThreadById(aid: string, chatId: string, options?: RawAxiosRequestConfig) {
|
|
3276
5323
|
return ChatApiFp(this.configuration).getChatThreadById(aid, chatId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3282,6 +5329,7 @@ export class ChatApi extends BaseAPI {
|
|
|
3282
5329
|
* @param {string} messageId Message ID
|
|
3283
5330
|
* @param {*} [options] Override http request option.
|
|
3284
5331
|
* @throws {RequiredError}
|
|
5332
|
+
* @memberof ChatApi
|
|
3285
5333
|
*/
|
|
3286
5334
|
public getMessageById(messageId: string, options?: RawAxiosRequestConfig) {
|
|
3287
5335
|
return ChatApiFp(this.configuration).getMessageById(messageId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3295,6 +5343,7 @@ export class ChatApi extends BaseAPI {
|
|
|
3295
5343
|
* @param {number} [limit] Maximum number of messages to return
|
|
3296
5344
|
* @param {*} [options] Override http request option.
|
|
3297
5345
|
* @throws {RequiredError}
|
|
5346
|
+
* @memberof ChatApi
|
|
3298
5347
|
*/
|
|
3299
5348
|
public getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
3300
5349
|
return ChatApiFp(this.configuration).getSkillHistory(aid, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3306,6 +5355,7 @@ export class ChatApi extends BaseAPI {
|
|
|
3306
5355
|
* @param {string} aid Agent ID
|
|
3307
5356
|
* @param {*} [options] Override http request option.
|
|
3308
5357
|
* @throws {RequiredError}
|
|
5358
|
+
* @memberof ChatApi
|
|
3309
5359
|
*/
|
|
3310
5360
|
public listChatsForAgent(aid: string, options?: RawAxiosRequestConfig) {
|
|
3311
5361
|
return ChatApiFp(this.configuration).listChatsForAgent(aid, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3320,6 +5370,7 @@ export class ChatApi extends BaseAPI {
|
|
|
3320
5370
|
* @param {number} [limit] Maximum number of messages to return
|
|
3321
5371
|
* @param {*} [options] Override http request option.
|
|
3322
5372
|
* @throws {RequiredError}
|
|
5373
|
+
* @memberof ChatApi
|
|
3323
5374
|
*/
|
|
3324
5375
|
public listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
3325
5376
|
return ChatApiFp(this.configuration).listMessagesInChat(aid, chatId, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3332,6 +5383,7 @@ export class ChatApi extends BaseAPI {
|
|
|
3332
5383
|
* @param {string} chatId Chat ID
|
|
3333
5384
|
* @param {*} [options] Override http request option.
|
|
3334
5385
|
* @throws {RequiredError}
|
|
5386
|
+
* @memberof ChatApi
|
|
3335
5387
|
*/
|
|
3336
5388
|
public retryMessageInChat(aid: string, chatId: string, options?: RawAxiosRequestConfig) {
|
|
3337
5389
|
return ChatApiFp(this.configuration).retryMessageInChat(aid, chatId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3345,6 +5397,7 @@ export class ChatApi extends BaseAPI {
|
|
|
3345
5397
|
* @param {ChatMessageRequest} chatMessageRequest
|
|
3346
5398
|
* @param {*} [options] Override http request option.
|
|
3347
5399
|
* @throws {RequiredError}
|
|
5400
|
+
* @memberof ChatApi
|
|
3348
5401
|
*/
|
|
3349
5402
|
public sendMessageToChat(aid: string, chatId: string, chatMessageRequest: ChatMessageRequest, options?: RawAxiosRequestConfig) {
|
|
3350
5403
|
return ChatApiFp(this.configuration).sendMessageToChat(aid, chatId, chatMessageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3358,6 +5411,7 @@ export class ChatApi extends BaseAPI {
|
|
|
3358
5411
|
* @param {ChatUpdateRequest} chatUpdateRequest
|
|
3359
5412
|
* @param {*} [options] Override http request option.
|
|
3360
5413
|
* @throws {RequiredError}
|
|
5414
|
+
* @memberof ChatApi
|
|
3361
5415
|
*/
|
|
3362
5416
|
public updateChatThread(aid: string, chatId: string, chatUpdateRequest: ChatUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
3363
5417
|
return ChatApiFp(this.configuration).updateChatThread(aid, chatId, chatUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3368,6 +5422,7 @@ export class ChatApi extends BaseAPI {
|
|
|
3368
5422
|
|
|
3369
5423
|
/**
|
|
3370
5424
|
* CreditApi - axios parameter creator
|
|
5425
|
+
* @export
|
|
3371
5426
|
*/
|
|
3372
5427
|
export const CreditApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3373
5428
|
return {
|
|
@@ -3604,6 +5659,7 @@ export const CreditApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3604
5659
|
|
|
3605
5660
|
/**
|
|
3606
5661
|
* CreditApi - functional programming interface
|
|
5662
|
+
* @export
|
|
3607
5663
|
*/
|
|
3608
5664
|
export const CreditApiFp = function(configuration?: Configuration) {
|
|
3609
5665
|
const localVarAxiosParamCreator = CreditApiAxiosParamCreator(configuration)
|
|
@@ -3685,6 +5741,7 @@ export const CreditApiFp = function(configuration?: Configuration) {
|
|
|
3685
5741
|
|
|
3686
5742
|
/**
|
|
3687
5743
|
* CreditApi - factory interface
|
|
5744
|
+
* @export
|
|
3688
5745
|
*/
|
|
3689
5746
|
export const CreditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3690
5747
|
const localVarFp = CreditApiFp(configuration)
|
|
@@ -3751,6 +5808,9 @@ export const CreditApiFactory = function (configuration?: Configuration, basePat
|
|
|
3751
5808
|
|
|
3752
5809
|
/**
|
|
3753
5810
|
* CreditApi - object-oriented interface
|
|
5811
|
+
* @export
|
|
5812
|
+
* @class CreditApi
|
|
5813
|
+
* @extends {BaseAPI}
|
|
3754
5814
|
*/
|
|
3755
5815
|
export class CreditApi extends BaseAPI {
|
|
3756
5816
|
/**
|
|
@@ -3759,6 +5819,7 @@ export class CreditApi extends BaseAPI {
|
|
|
3759
5819
|
* @param {string} eventId Credit event ID
|
|
3760
5820
|
* @param {*} [options] Override http request option.
|
|
3761
5821
|
* @throws {RequiredError}
|
|
5822
|
+
* @memberof CreditApi
|
|
3762
5823
|
*/
|
|
3763
5824
|
public fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig) {
|
|
3764
5825
|
return CreditApiFp(this.configuration).fetchCreditEvent(eventId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3769,6 +5830,7 @@ export class CreditApi extends BaseAPI {
|
|
|
3769
5830
|
* @summary Get User Account
|
|
3770
5831
|
* @param {*} [options] Override http request option.
|
|
3771
5832
|
* @throws {RequiredError}
|
|
5833
|
+
* @memberof CreditApi
|
|
3772
5834
|
*/
|
|
3773
5835
|
public getUserAccount(options?: RawAxiosRequestConfig) {
|
|
3774
5836
|
return CreditApiFp(this.configuration).getUserAccount(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3782,6 +5844,7 @@ export class CreditApi extends BaseAPI {
|
|
|
3782
5844
|
* @param {number} [limit] Maximum number of events to return
|
|
3783
5845
|
* @param {*} [options] Override http request option.
|
|
3784
5846
|
* @throws {RequiredError}
|
|
5847
|
+
* @memberof CreditApi
|
|
3785
5848
|
*/
|
|
3786
5849
|
public listAgentIncomeEvents(agentId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
3787
5850
|
return CreditApiFp(this.configuration).listAgentIncomeEvents(agentId, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3796,6 +5859,7 @@ export class CreditApi extends BaseAPI {
|
|
|
3796
5859
|
* @param {number} [limit] Maximum number of events to return
|
|
3797
5860
|
* @param {*} [options] Override http request option.
|
|
3798
5861
|
* @throws {RequiredError}
|
|
5862
|
+
* @memberof CreditApi
|
|
3799
5863
|
*/
|
|
3800
5864
|
public listUserEvents(eventType?: Array<EventType> | null, direction?: Direction | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
3801
5865
|
return CreditApiFp(this.configuration).listUserEvents(eventType, direction, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3810,6 +5874,7 @@ export class CreditApi extends BaseAPI {
|
|
|
3810
5874
|
* @param {number} [limit] Maximum number of transactions to return
|
|
3811
5875
|
* @param {*} [options] Override http request option.
|
|
3812
5876
|
* @throws {RequiredError}
|
|
5877
|
+
* @memberof CreditApi
|
|
3813
5878
|
*/
|
|
3814
5879
|
public listUserTransactions(txType?: Array<TransactionType> | null, creditDebit?: CreditDebit | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
3815
5880
|
return CreditApiFp(this.configuration).listUserTransactions(txType, creditDebit, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3820,6 +5885,7 @@ export class CreditApi extends BaseAPI {
|
|
|
3820
5885
|
|
|
3821
5886
|
/**
|
|
3822
5887
|
* DraftApi - axios parameter creator
|
|
5888
|
+
* @export
|
|
3823
5889
|
*/
|
|
3824
5890
|
export const DraftApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3825
5891
|
return {
|
|
@@ -3863,6 +5929,44 @@ export const DraftApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3863
5929
|
options: localVarRequestOptions,
|
|
3864
5930
|
};
|
|
3865
5931
|
},
|
|
5932
|
+
/**
|
|
5933
|
+
* Delete an unpublished agent draft. Removes the specified draft when it belongs to the current user and has not been deployed yet. Use this to clean up unused drafts before deployment. Possible HTTP errors: - 400: Draft has already been deployed and cannot be deleted - 401: Unauthorized (invalid or missing authentication) - 404: Draft not found for the current user - 500: Internal server error
|
|
5934
|
+
* @summary Delete Agent Draft
|
|
5935
|
+
* @param {string} draftId Draft ID
|
|
5936
|
+
* @param {*} [options] Override http request option.
|
|
5937
|
+
* @throws {RequiredError}
|
|
5938
|
+
*/
|
|
5939
|
+
deleteAgentDraft: async (draftId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5940
|
+
// verify required parameter 'draftId' is not null or undefined
|
|
5941
|
+
assertParamExists('deleteAgentDraft', 'draftId', draftId)
|
|
5942
|
+
const localVarPath = `/agent/drafts/{draft_id}`
|
|
5943
|
+
.replace(`{${"draft_id"}}`, encodeURIComponent(String(draftId)));
|
|
5944
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5945
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5946
|
+
let baseOptions;
|
|
5947
|
+
if (configuration) {
|
|
5948
|
+
baseOptions = configuration.baseOptions;
|
|
5949
|
+
}
|
|
5950
|
+
|
|
5951
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
5952
|
+
const localVarHeaderParameter = {} as any;
|
|
5953
|
+
const localVarQueryParameter = {} as any;
|
|
5954
|
+
|
|
5955
|
+
// authentication HTTPBearer required
|
|
5956
|
+
// http bearer authentication required
|
|
5957
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5958
|
+
|
|
5959
|
+
|
|
5960
|
+
|
|
5961
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5962
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5963
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5964
|
+
|
|
5965
|
+
return {
|
|
5966
|
+
url: toPathString(localVarUrlObj),
|
|
5967
|
+
options: localVarRequestOptions,
|
|
5968
|
+
};
|
|
5969
|
+
},
|
|
3866
5970
|
/**
|
|
3867
5971
|
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration. The upstream_id is set to the provided tx_id. Possible HTTP errors: - 400: Draft is not the latest version or already deployed - 401: Unauthorized (invalid or missing authentication) - 404: Agent or draft not found - 403: Permission denied (not your agent) - 500: Internal server error
|
|
3868
5972
|
* @summary Deploy Agent From Draft
|
|
@@ -4104,6 +6208,7 @@ export const DraftApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
4104
6208
|
|
|
4105
6209
|
/**
|
|
4106
6210
|
* DraftApi - functional programming interface
|
|
6211
|
+
* @export
|
|
4107
6212
|
*/
|
|
4108
6213
|
export const DraftApiFp = function(configuration?: Configuration) {
|
|
4109
6214
|
const localVarAxiosParamCreator = DraftApiAxiosParamCreator(configuration)
|
|
@@ -4121,6 +6226,19 @@ export const DraftApiFp = function(configuration?: Configuration) {
|
|
|
4121
6226
|
const localVarOperationServerBasePath = operationServerMap['DraftApi.createAgentDraft']?.[localVarOperationServerIndex]?.url;
|
|
4122
6227
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4123
6228
|
},
|
|
6229
|
+
/**
|
|
6230
|
+
* Delete an unpublished agent draft. Removes the specified draft when it belongs to the current user and has not been deployed yet. Use this to clean up unused drafts before deployment. Possible HTTP errors: - 400: Draft has already been deployed and cannot be deleted - 401: Unauthorized (invalid or missing authentication) - 404: Draft not found for the current user - 500: Internal server error
|
|
6231
|
+
* @summary Delete Agent Draft
|
|
6232
|
+
* @param {string} draftId Draft ID
|
|
6233
|
+
* @param {*} [options] Override http request option.
|
|
6234
|
+
* @throws {RequiredError}
|
|
6235
|
+
*/
|
|
6236
|
+
async deleteAgentDraft(draftId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
6237
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAgentDraft(draftId, options);
|
|
6238
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6239
|
+
const localVarOperationServerBasePath = operationServerMap['DraftApi.deleteAgentDraft']?.[localVarOperationServerIndex]?.url;
|
|
6240
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6241
|
+
},
|
|
4124
6242
|
/**
|
|
4125
6243
|
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration. The upstream_id is set to the provided tx_id. Possible HTTP errors: - 400: Draft is not the latest version or already deployed - 401: Unauthorized (invalid or missing authentication) - 404: Agent or draft not found - 403: Permission denied (not your agent) - 500: Internal server error
|
|
4126
6244
|
* @summary Deploy Agent From Draft
|
|
@@ -4205,6 +6323,7 @@ export const DraftApiFp = function(configuration?: Configuration) {
|
|
|
4205
6323
|
|
|
4206
6324
|
/**
|
|
4207
6325
|
* DraftApi - factory interface
|
|
6326
|
+
* @export
|
|
4208
6327
|
*/
|
|
4209
6328
|
export const DraftApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4210
6329
|
const localVarFp = DraftApiFp(configuration)
|
|
@@ -4219,6 +6338,16 @@ export const DraftApiFactory = function (configuration?: Configuration, basePath
|
|
|
4219
6338
|
createAgentDraft(agentUserInput: AgentUserInput, options?: RawAxiosRequestConfig): AxiosPromise<AgentDraft> {
|
|
4220
6339
|
return localVarFp.createAgentDraft(agentUserInput, options).then((request) => request(axios, basePath));
|
|
4221
6340
|
},
|
|
6341
|
+
/**
|
|
6342
|
+
* Delete an unpublished agent draft. Removes the specified draft when it belongs to the current user and has not been deployed yet. Use this to clean up unused drafts before deployment. Possible HTTP errors: - 400: Draft has already been deployed and cannot be deleted - 401: Unauthorized (invalid or missing authentication) - 404: Draft not found for the current user - 500: Internal server error
|
|
6343
|
+
* @summary Delete Agent Draft
|
|
6344
|
+
* @param {string} draftId Draft ID
|
|
6345
|
+
* @param {*} [options] Override http request option.
|
|
6346
|
+
* @throws {RequiredError}
|
|
6347
|
+
*/
|
|
6348
|
+
deleteAgentDraft(draftId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
6349
|
+
return localVarFp.deleteAgentDraft(draftId, options).then((request) => request(axios, basePath));
|
|
6350
|
+
},
|
|
4222
6351
|
/**
|
|
4223
6352
|
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration. The upstream_id is set to the provided tx_id. Possible HTTP errors: - 400: Draft is not the latest version or already deployed - 401: Unauthorized (invalid or missing authentication) - 404: Agent or draft not found - 403: Permission denied (not your agent) - 500: Internal server error
|
|
4224
6353
|
* @summary Deploy Agent From Draft
|
|
@@ -4285,6 +6414,9 @@ export const DraftApiFactory = function (configuration?: Configuration, basePath
|
|
|
4285
6414
|
|
|
4286
6415
|
/**
|
|
4287
6416
|
* DraftApi - object-oriented interface
|
|
6417
|
+
* @export
|
|
6418
|
+
* @class DraftApi
|
|
6419
|
+
* @extends {BaseAPI}
|
|
4288
6420
|
*/
|
|
4289
6421
|
export class DraftApi extends BaseAPI {
|
|
4290
6422
|
/**
|
|
@@ -4293,17 +6425,31 @@ export class DraftApi extends BaseAPI {
|
|
|
4293
6425
|
* @param {AgentUserInput} agentUserInput
|
|
4294
6426
|
* @param {*} [options] Override http request option.
|
|
4295
6427
|
* @throws {RequiredError}
|
|
6428
|
+
* @memberof DraftApi
|
|
4296
6429
|
*/
|
|
4297
6430
|
public createAgentDraft(agentUserInput: AgentUserInput, options?: RawAxiosRequestConfig) {
|
|
4298
6431
|
return DraftApiFp(this.configuration).createAgentDraft(agentUserInput, options).then((request) => request(this.axios, this.basePath));
|
|
4299
6432
|
}
|
|
4300
6433
|
|
|
6434
|
+
/**
|
|
6435
|
+
* Delete an unpublished agent draft. Removes the specified draft when it belongs to the current user and has not been deployed yet. Use this to clean up unused drafts before deployment. Possible HTTP errors: - 400: Draft has already been deployed and cannot be deleted - 401: Unauthorized (invalid or missing authentication) - 404: Draft not found for the current user - 500: Internal server error
|
|
6436
|
+
* @summary Delete Agent Draft
|
|
6437
|
+
* @param {string} draftId Draft ID
|
|
6438
|
+
* @param {*} [options] Override http request option.
|
|
6439
|
+
* @throws {RequiredError}
|
|
6440
|
+
* @memberof DraftApi
|
|
6441
|
+
*/
|
|
6442
|
+
public deleteAgentDraft(draftId: string, options?: RawAxiosRequestConfig) {
|
|
6443
|
+
return DraftApiFp(this.configuration).deleteAgentDraft(draftId, options).then((request) => request(this.axios, this.basePath));
|
|
6444
|
+
}
|
|
6445
|
+
|
|
4301
6446
|
/**
|
|
4302
6447
|
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration. The upstream_id is set to the provided tx_id. Possible HTTP errors: - 400: Draft is not the latest version or already deployed - 401: Unauthorized (invalid or missing authentication) - 404: Agent or draft not found - 403: Permission denied (not your agent) - 500: Internal server error
|
|
4303
6448
|
* @summary Deploy Agent From Draft
|
|
4304
6449
|
* @param {AgentDeployRequest} agentDeployRequest
|
|
4305
6450
|
* @param {*} [options] Override http request option.
|
|
4306
6451
|
* @throws {RequiredError}
|
|
6452
|
+
* @memberof DraftApi
|
|
4307
6453
|
*/
|
|
4308
6454
|
public deployAgentFromDraft(agentDeployRequest: AgentDeployRequest, options?: RawAxiosRequestConfig) {
|
|
4309
6455
|
return DraftApiFp(this.configuration).deployAgentFromDraft(agentDeployRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4316,6 +6462,7 @@ export class DraftApi extends BaseAPI {
|
|
|
4316
6462
|
* @param {string} draftId Draft ID
|
|
4317
6463
|
* @param {*} [options] Override http request option.
|
|
4318
6464
|
* @throws {RequiredError}
|
|
6465
|
+
* @memberof DraftApi
|
|
4319
6466
|
*/
|
|
4320
6467
|
public getAgentDraftById(agentId: string, draftId: string, options?: RawAxiosRequestConfig) {
|
|
4321
6468
|
return DraftApiFp(this.configuration).getAgentDraftById(agentId, draftId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4327,6 +6474,7 @@ export class DraftApi extends BaseAPI {
|
|
|
4327
6474
|
* @param {string} agentId Agent ID
|
|
4328
6475
|
* @param {*} [options] Override http request option.
|
|
4329
6476
|
* @throws {RequiredError}
|
|
6477
|
+
* @memberof DraftApi
|
|
4330
6478
|
*/
|
|
4331
6479
|
public getAgentDrafts(agentId: string, options?: RawAxiosRequestConfig) {
|
|
4332
6480
|
return DraftApiFp(this.configuration).getAgentDrafts(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4338,6 +6486,7 @@ export class DraftApi extends BaseAPI {
|
|
|
4338
6486
|
* @param {string} agentId Agent ID
|
|
4339
6487
|
* @param {*} [options] Override http request option.
|
|
4340
6488
|
* @throws {RequiredError}
|
|
6489
|
+
* @memberof DraftApi
|
|
4341
6490
|
*/
|
|
4342
6491
|
public getAgentLatestDraft(agentId: string, options?: RawAxiosRequestConfig) {
|
|
4343
6492
|
return DraftApiFp(this.configuration).getAgentLatestDraft(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4348,6 +6497,7 @@ export class DraftApi extends BaseAPI {
|
|
|
4348
6497
|
* @summary Get User Unpublished Drafts
|
|
4349
6498
|
* @param {*} [options] Override http request option.
|
|
4350
6499
|
* @throws {RequiredError}
|
|
6500
|
+
* @memberof DraftApi
|
|
4351
6501
|
*/
|
|
4352
6502
|
public getUserUnpublishedDrafts(options?: RawAxiosRequestConfig) {
|
|
4353
6503
|
return DraftApiFp(this.configuration).getUserUnpublishedDrafts(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4360,6 +6510,7 @@ export class DraftApi extends BaseAPI {
|
|
|
4360
6510
|
* @param {AgentUserInput} agentUserInput
|
|
4361
6511
|
* @param {*} [options] Override http request option.
|
|
4362
6512
|
* @throws {RequiredError}
|
|
6513
|
+
* @memberof DraftApi
|
|
4363
6514
|
*/
|
|
4364
6515
|
public updateAgentDraft(agentId: string, agentUserInput: AgentUserInput, options?: RawAxiosRequestConfig) {
|
|
4365
6516
|
return DraftApiFp(this.configuration).updateAgentDraft(agentId, agentUserInput, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4370,6 +6521,7 @@ export class DraftApi extends BaseAPI {
|
|
|
4370
6521
|
|
|
4371
6522
|
/**
|
|
4372
6523
|
* GeneratorApi - axios parameter creator
|
|
6524
|
+
* @export
|
|
4373
6525
|
*/
|
|
4374
6526
|
export const GeneratorApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4375
6527
|
return {
|
|
@@ -4495,6 +6647,7 @@ export const GeneratorApiAxiosParamCreator = function (configuration?: Configura
|
|
|
4495
6647
|
|
|
4496
6648
|
/**
|
|
4497
6649
|
* GeneratorApi - functional programming interface
|
|
6650
|
+
* @export
|
|
4498
6651
|
*/
|
|
4499
6652
|
export const GeneratorApiFp = function(configuration?: Configuration) {
|
|
4500
6653
|
const localVarAxiosParamCreator = GeneratorApiAxiosParamCreator(configuration)
|
|
@@ -4543,6 +6696,7 @@ export const GeneratorApiFp = function(configuration?: Configuration) {
|
|
|
4543
6696
|
|
|
4544
6697
|
/**
|
|
4545
6698
|
* GeneratorApi - factory interface
|
|
6699
|
+
* @export
|
|
4546
6700
|
*/
|
|
4547
6701
|
export const GeneratorApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4548
6702
|
const localVarFp = GeneratorApiFp(configuration)
|
|
@@ -4582,6 +6736,9 @@ export const GeneratorApiFactory = function (configuration?: Configuration, base
|
|
|
4582
6736
|
|
|
4583
6737
|
/**
|
|
4584
6738
|
* GeneratorApi - object-oriented interface
|
|
6739
|
+
* @export
|
|
6740
|
+
* @class GeneratorApi
|
|
6741
|
+
* @extends {BaseAPI}
|
|
4585
6742
|
*/
|
|
4586
6743
|
export class GeneratorApi extends BaseAPI {
|
|
4587
6744
|
/**
|
|
@@ -4590,6 +6747,7 @@ export class GeneratorApi extends BaseAPI {
|
|
|
4590
6747
|
* @param {AgentGenerateRequest} agentGenerateRequest
|
|
4591
6748
|
* @param {*} [options] Override http request option.
|
|
4592
6749
|
* @throws {RequiredError}
|
|
6750
|
+
* @memberof GeneratorApi
|
|
4593
6751
|
*/
|
|
4594
6752
|
public generateAgent(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig) {
|
|
4595
6753
|
return GeneratorApiFp(this.configuration).generateAgent(agentGenerateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4601,6 +6759,7 @@ export class GeneratorApi extends BaseAPI {
|
|
|
4601
6759
|
* @param {string} projectId
|
|
4602
6760
|
* @param {*} [options] Override http request option.
|
|
4603
6761
|
* @throws {RequiredError}
|
|
6762
|
+
* @memberof GeneratorApi
|
|
4604
6763
|
*/
|
|
4605
6764
|
public getGenerationHistory(projectId: string, options?: RawAxiosRequestConfig) {
|
|
4606
6765
|
return GeneratorApiFp(this.configuration).getGenerationHistory(projectId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4612,6 +6771,7 @@ export class GeneratorApi extends BaseAPI {
|
|
|
4612
6771
|
* @param {number} [limit]
|
|
4613
6772
|
* @param {*} [options] Override http request option.
|
|
4614
6773
|
* @throws {RequiredError}
|
|
6774
|
+
* @memberof GeneratorApi
|
|
4615
6775
|
*/
|
|
4616
6776
|
public getGenerations(limit?: number, options?: RawAxiosRequestConfig) {
|
|
4617
6777
|
return GeneratorApiFp(this.configuration).getGenerations(limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4622,6 +6782,7 @@ export class GeneratorApi extends BaseAPI {
|
|
|
4622
6782
|
|
|
4623
6783
|
/**
|
|
4624
6784
|
* HealthApi - axios parameter creator
|
|
6785
|
+
* @export
|
|
4625
6786
|
*/
|
|
4626
6787
|
export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4627
6788
|
return {
|
|
@@ -4660,6 +6821,7 @@ export const HealthApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
4660
6821
|
|
|
4661
6822
|
/**
|
|
4662
6823
|
* HealthApi - functional programming interface
|
|
6824
|
+
* @export
|
|
4663
6825
|
*/
|
|
4664
6826
|
export const HealthApiFp = function(configuration?: Configuration) {
|
|
4665
6827
|
const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
|
|
@@ -4681,6 +6843,7 @@ export const HealthApiFp = function(configuration?: Configuration) {
|
|
|
4681
6843
|
|
|
4682
6844
|
/**
|
|
4683
6845
|
* HealthApi - factory interface
|
|
6846
|
+
* @export
|
|
4684
6847
|
*/
|
|
4685
6848
|
export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4686
6849
|
const localVarFp = HealthApiFp(configuration)
|
|
@@ -4699,6 +6862,9 @@ export const HealthApiFactory = function (configuration?: Configuration, basePat
|
|
|
4699
6862
|
|
|
4700
6863
|
/**
|
|
4701
6864
|
* HealthApi - object-oriented interface
|
|
6865
|
+
* @export
|
|
6866
|
+
* @class HealthApi
|
|
6867
|
+
* @extends {BaseAPI}
|
|
4702
6868
|
*/
|
|
4703
6869
|
export class HealthApi extends BaseAPI {
|
|
4704
6870
|
/**
|
|
@@ -4706,6 +6872,7 @@ export class HealthApi extends BaseAPI {
|
|
|
4706
6872
|
* @summary Health check endpoint
|
|
4707
6873
|
* @param {*} [options] Override http request option.
|
|
4708
6874
|
* @throws {RequiredError}
|
|
6875
|
+
* @memberof HealthApi
|
|
4709
6876
|
*/
|
|
4710
6877
|
public healthCheck(options?: RawAxiosRequestConfig) {
|
|
4711
6878
|
return HealthApiFp(this.configuration).healthCheck(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4716,6 +6883,7 @@ export class HealthApi extends BaseAPI {
|
|
|
4716
6883
|
|
|
4717
6884
|
/**
|
|
4718
6885
|
* MetadataApi - axios parameter creator
|
|
6886
|
+
* @export
|
|
4719
6887
|
*/
|
|
4720
6888
|
export const MetadataApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4721
6889
|
return {
|
|
@@ -4890,6 +7058,7 @@ export const MetadataApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4890
7058
|
|
|
4891
7059
|
/**
|
|
4892
7060
|
* MetadataApi - functional programming interface
|
|
7061
|
+
* @export
|
|
4893
7062
|
*/
|
|
4894
7063
|
export const MetadataApiFp = function(configuration?: Configuration) {
|
|
4895
7064
|
const localVarAxiosParamCreator = MetadataApiAxiosParamCreator(configuration)
|
|
@@ -4963,6 +7132,7 @@ export const MetadataApiFp = function(configuration?: Configuration) {
|
|
|
4963
7132
|
|
|
4964
7133
|
/**
|
|
4965
7134
|
* MetadataApi - factory interface
|
|
7135
|
+
* @export
|
|
4966
7136
|
*/
|
|
4967
7137
|
export const MetadataApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4968
7138
|
const localVarFp = MetadataApiFp(configuration)
|
|
@@ -5021,6 +7191,9 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP
|
|
|
5021
7191
|
|
|
5022
7192
|
/**
|
|
5023
7193
|
* MetadataApi - object-oriented interface
|
|
7194
|
+
* @export
|
|
7195
|
+
* @class MetadataApi
|
|
7196
|
+
* @extends {BaseAPI}
|
|
5024
7197
|
*/
|
|
5025
7198
|
export class MetadataApi extends BaseAPI {
|
|
5026
7199
|
/**
|
|
@@ -5028,6 +7201,7 @@ export class MetadataApi extends BaseAPI {
|
|
|
5028
7201
|
* @summary Get agent schema
|
|
5029
7202
|
* @param {*} [options] Override http request option.
|
|
5030
7203
|
* @throws {RequiredError}
|
|
7204
|
+
* @memberof MetadataApi
|
|
5031
7205
|
*/
|
|
5032
7206
|
public getAgentSchema(options?: RawAxiosRequestConfig) {
|
|
5033
7207
|
return MetadataApiFp(this.configuration).getAgentSchema(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5038,6 +7212,7 @@ export class MetadataApi extends BaseAPI {
|
|
|
5038
7212
|
* @summary Get all LLM models
|
|
5039
7213
|
* @param {*} [options] Override http request option.
|
|
5040
7214
|
* @throws {RequiredError}
|
|
7215
|
+
* @memberof MetadataApi
|
|
5041
7216
|
*/
|
|
5042
7217
|
public getLlms(options?: RawAxiosRequestConfig) {
|
|
5043
7218
|
return MetadataApiFp(this.configuration).getLlms(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5051,6 +7226,7 @@ export class MetadataApi extends BaseAPI {
|
|
|
5051
7226
|
* @param {string} ext Icon file extension
|
|
5052
7227
|
* @param {*} [options] Override http request option.
|
|
5053
7228
|
* @throws {RequiredError}
|
|
7229
|
+
* @memberof MetadataApi
|
|
5054
7230
|
*/
|
|
5055
7231
|
public getSkillIcon(skill: string, iconName: string, ext: string, options?: RawAxiosRequestConfig) {
|
|
5056
7232
|
return MetadataApiFp(this.configuration).getSkillIcon(skill, iconName, ext, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5062,6 +7238,7 @@ export class MetadataApi extends BaseAPI {
|
|
|
5062
7238
|
* @param {string} skill Skill name
|
|
5063
7239
|
* @param {*} [options] Override http request option.
|
|
5064
7240
|
* @throws {RequiredError}
|
|
7241
|
+
* @memberof MetadataApi
|
|
5065
7242
|
*/
|
|
5066
7243
|
public getSkillSchema(skill: string, options?: RawAxiosRequestConfig) {
|
|
5067
7244
|
return MetadataApiFp(this.configuration).getSkillSchema(skill, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5072,6 +7249,7 @@ export class MetadataApi extends BaseAPI {
|
|
|
5072
7249
|
* @summary Get all skills
|
|
5073
7250
|
* @param {*} [options] Override http request option.
|
|
5074
7251
|
* @throws {RequiredError}
|
|
7252
|
+
* @memberof MetadataApi
|
|
5075
7253
|
*/
|
|
5076
7254
|
public getSkills(options?: RawAxiosRequestConfig) {
|
|
5077
7255
|
return MetadataApiFp(this.configuration).getSkills(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5082,6 +7260,7 @@ export class MetadataApi extends BaseAPI {
|
|
|
5082
7260
|
|
|
5083
7261
|
/**
|
|
5084
7262
|
* OAuthApi - axios parameter creator
|
|
7263
|
+
* @export
|
|
5085
7264
|
*/
|
|
5086
7265
|
export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5087
7266
|
return {
|
|
@@ -5226,6 +7405,7 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5226
7405
|
|
|
5227
7406
|
/**
|
|
5228
7407
|
* OAuthApi - functional programming interface
|
|
7408
|
+
* @export
|
|
5229
7409
|
*/
|
|
5230
7410
|
export const OAuthApiFp = function(configuration?: Configuration) {
|
|
5231
7411
|
const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
|
|
@@ -5277,6 +7457,7 @@ export const OAuthApiFp = function(configuration?: Configuration) {
|
|
|
5277
7457
|
|
|
5278
7458
|
/**
|
|
5279
7459
|
* OAuthApi - factory interface
|
|
7460
|
+
* @export
|
|
5280
7461
|
*/
|
|
5281
7462
|
export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5282
7463
|
const localVarFp = OAuthApiFp(configuration)
|
|
@@ -5319,6 +7500,9 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
|
|
|
5319
7500
|
|
|
5320
7501
|
/**
|
|
5321
7502
|
* OAuthApi - object-oriented interface
|
|
7503
|
+
* @export
|
|
7504
|
+
* @class OAuthApi
|
|
7505
|
+
* @extends {BaseAPI}
|
|
5322
7506
|
*/
|
|
5323
7507
|
export class OAuthApi extends BaseAPI {
|
|
5324
7508
|
/**
|
|
@@ -5328,6 +7512,7 @@ export class OAuthApi extends BaseAPI {
|
|
|
5328
7512
|
* @param {string} redirectUri
|
|
5329
7513
|
* @param {*} [options] Override http request option.
|
|
5330
7514
|
* @throws {RequiredError}
|
|
7515
|
+
* @memberof OAuthApi
|
|
5331
7516
|
*/
|
|
5332
7517
|
public getTwitterAuthUrl(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig) {
|
|
5333
7518
|
return OAuthApiFp(this.configuration).getTwitterAuthUrl(agentId, redirectUri, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5341,6 +7526,7 @@ export class OAuthApi extends BaseAPI {
|
|
|
5341
7526
|
* @param {string | null} [error]
|
|
5342
7527
|
* @param {*} [options] Override http request option.
|
|
5343
7528
|
* @throws {RequiredError}
|
|
7529
|
+
* @memberof OAuthApi
|
|
5344
7530
|
*/
|
|
5345
7531
|
public twitterOauthCallback(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig) {
|
|
5346
7532
|
return OAuthApiFp(this.configuration).twitterOauthCallback(state, code, error, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5352,6 +7538,7 @@ export class OAuthApi extends BaseAPI {
|
|
|
5352
7538
|
* @param {string} agentId ID of the agent to unlink from X
|
|
5353
7539
|
* @param {*} [options] Override http request option.
|
|
5354
7540
|
* @throws {RequiredError}
|
|
7541
|
+
* @memberof OAuthApi
|
|
5355
7542
|
*/
|
|
5356
7543
|
public unlinkTwitter(agentId: string, options?: RawAxiosRequestConfig) {
|
|
5357
7544
|
return OAuthApiFp(this.configuration).unlinkTwitter(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5362,6 +7549,7 @@ export class OAuthApi extends BaseAPI {
|
|
|
5362
7549
|
|
|
5363
7550
|
/**
|
|
5364
7551
|
* UserApi - axios parameter creator
|
|
7552
|
+
* @export
|
|
5365
7553
|
*/
|
|
5366
7554
|
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5367
7555
|
return {
|
|
@@ -5497,6 +7685,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
5497
7685
|
|
|
5498
7686
|
/**
|
|
5499
7687
|
* UserApi - functional programming interface
|
|
7688
|
+
* @export
|
|
5500
7689
|
*/
|
|
5501
7690
|
export const UserApiFp = function(configuration?: Configuration) {
|
|
5502
7691
|
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
|
|
@@ -5546,6 +7735,7 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
5546
7735
|
|
|
5547
7736
|
/**
|
|
5548
7737
|
* UserApi - factory interface
|
|
7738
|
+
* @export
|
|
5549
7739
|
*/
|
|
5550
7740
|
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5551
7741
|
const localVarFp = UserApiFp(configuration)
|
|
@@ -5586,6 +7776,9 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
5586
7776
|
|
|
5587
7777
|
/**
|
|
5588
7778
|
* UserApi - object-oriented interface
|
|
7779
|
+
* @export
|
|
7780
|
+
* @class UserApi
|
|
7781
|
+
* @extends {BaseAPI}
|
|
5589
7782
|
*/
|
|
5590
7783
|
export class UserApi extends BaseAPI {
|
|
5591
7784
|
/**
|
|
@@ -5594,6 +7787,7 @@ export class UserApi extends BaseAPI {
|
|
|
5594
7787
|
* @param {string} agentId Agent ID
|
|
5595
7788
|
* @param {*} [options] Override http request option.
|
|
5596
7789
|
* @throws {RequiredError}
|
|
7790
|
+
* @memberof UserApi
|
|
5597
7791
|
*/
|
|
5598
7792
|
public getUserAgentById(agentId: string, options?: RawAxiosRequestConfig) {
|
|
5599
7793
|
return UserApiFp(this.configuration).getUserAgentById(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5606,6 +7800,7 @@ export class UserApi extends BaseAPI {
|
|
|
5606
7800
|
* @param {number} [limit] Maximum number of agents to return
|
|
5607
7801
|
* @param {*} [options] Override http request option.
|
|
5608
7802
|
* @throws {RequiredError}
|
|
7803
|
+
* @memberof UserApi
|
|
5609
7804
|
*/
|
|
5610
7805
|
public getUserAgents(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
5611
7806
|
return UserApiFp(this.configuration).getUserAgents(cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5617,6 +7812,7 @@ export class UserApi extends BaseAPI {
|
|
|
5617
7812
|
* @param {File} file File to upload
|
|
5618
7813
|
* @param {*} [options] Override http request option.
|
|
5619
7814
|
* @throws {RequiredError}
|
|
7815
|
+
* @memberof UserApi
|
|
5620
7816
|
*/
|
|
5621
7817
|
public uploadUserFile(file: File, options?: RawAxiosRequestConfig) {
|
|
5622
7818
|
return UserApiFp(this.configuration).uploadUserFile(file, options).then((request) => request(this.axios, this.basePath));
|