@crestal/nation-sdk 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +51 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +126 -0
- package/api.ts +4195 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +115 -0
- package/dist/api.d.ts +3103 -0
- package/dist/api.js +2629 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +86 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +253 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +57 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/docs/AgentApi.md +167 -0
- package/docs/AgentAutonomous.md +33 -0
- package/docs/AgentExample.md +25 -0
- package/docs/AgentResponse.md +91 -0
- package/docs/AgentStatisticsResponse.md +49 -0
- package/docs/AgentUpdate.md +91 -0
- package/docs/AuthorType.md +23 -0
- package/docs/Chat.md +33 -0
- package/docs/ChatApi.md +516 -0
- package/docs/ChatMessage.md +63 -0
- package/docs/ChatMessageAttachment.md +23 -0
- package/docs/ChatMessageAttachmentType.md +13 -0
- package/docs/ChatMessageRequest.md +31 -0
- package/docs/ChatMessageSkillCall.md +35 -0
- package/docs/ChatMessagesResponse.md +25 -0
- package/docs/ChatUpdateRequest.md +21 -0
- package/docs/CreditAccount.md +45 -0
- package/docs/CreditApi.md +290 -0
- package/docs/CreditDebit.md +11 -0
- package/docs/CreditEvent.md +101 -0
- package/docs/CreditEventWithAgent.md +103 -0
- package/docs/CreditEventsResponse.md +25 -0
- package/docs/CreditTransactionResp.md +37 -0
- package/docs/CreditTransactionsResponse.md +25 -0
- package/docs/CreditType.md +13 -0
- package/docs/Direction.md +11 -0
- package/docs/EventType.md +31 -0
- package/docs/FeePercentage.md +19 -0
- package/docs/HTTPValidationError.md +20 -0
- package/docs/HealthApi.md +52 -0
- package/docs/LLMModelInfoWithProviderName.md +67 -0
- package/docs/LLMProvider.md +18 -0
- package/docs/MetadataApi.md +258 -0
- package/docs/OwnerType.md +13 -0
- package/docs/Skill.md +43 -0
- package/docs/TransactionType.md +39 -0
- package/docs/UpstreamType.md +15 -0
- package/docs/ValidationError.md +24 -0
- package/docs/ValidationErrorLocInner.md +18 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +31 -0
- package/tsconfig.json +21 -0
package/dist/api.d.ts
ADDED
|
@@ -0,0 +1,3103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nation IntentKit API
|
|
3
|
+
* API for Nation IntentKit services
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.19
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from './configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import type { RequestArgs } from './base';
|
|
15
|
+
import { BaseAPI } from './base';
|
|
16
|
+
/**
|
|
17
|
+
* Autonomous agent configuration.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AgentAutonomous
|
|
20
|
+
*/
|
|
21
|
+
export interface AgentAutonomous {
|
|
22
|
+
/**
|
|
23
|
+
* Unique identifier for the autonomous configuration
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AgentAutonomous
|
|
26
|
+
*/
|
|
27
|
+
'id'?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AgentAutonomous
|
|
32
|
+
*/
|
|
33
|
+
'name'?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AgentAutonomous
|
|
38
|
+
*/
|
|
39
|
+
'description'?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof AgentAutonomous
|
|
44
|
+
*/
|
|
45
|
+
'minutes'?: number | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof AgentAutonomous
|
|
50
|
+
*/
|
|
51
|
+
'cron'?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* Special prompt used during autonomous operation
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof AgentAutonomous
|
|
56
|
+
*/
|
|
57
|
+
'prompt': string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof AgentAutonomous
|
|
62
|
+
*/
|
|
63
|
+
'enabled'?: boolean | null;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Agent example configuration.
|
|
67
|
+
* @export
|
|
68
|
+
* @interface AgentExample
|
|
69
|
+
*/
|
|
70
|
+
export interface AgentExample {
|
|
71
|
+
/**
|
|
72
|
+
* Name of the example
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof AgentExample
|
|
75
|
+
*/
|
|
76
|
+
'name': string;
|
|
77
|
+
/**
|
|
78
|
+
* Description of the example
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof AgentExample
|
|
81
|
+
*/
|
|
82
|
+
'description': string;
|
|
83
|
+
/**
|
|
84
|
+
* Example prompt
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof AgentExample
|
|
87
|
+
*/
|
|
88
|
+
'prompt': string;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Response model for Agent API.
|
|
92
|
+
* @export
|
|
93
|
+
* @interface AgentResponse
|
|
94
|
+
*/
|
|
95
|
+
export interface AgentResponse {
|
|
96
|
+
/**
|
|
97
|
+
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof AgentResponse
|
|
100
|
+
*/
|
|
101
|
+
'id': string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {number}
|
|
105
|
+
* @memberof AgentResponse
|
|
106
|
+
*/
|
|
107
|
+
'number': number | null;
|
|
108
|
+
/**
|
|
109
|
+
* Timestamp when the agent was created, will ignore when importing
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof AgentResponse
|
|
112
|
+
*/
|
|
113
|
+
'created_at': string;
|
|
114
|
+
/**
|
|
115
|
+
* Timestamp when the agent was last updated, will ignore when importing
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof AgentResponse
|
|
118
|
+
*/
|
|
119
|
+
'updated_at': string;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof AgentResponse
|
|
124
|
+
*/
|
|
125
|
+
'name'?: string | null;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof AgentResponse
|
|
130
|
+
*/
|
|
131
|
+
'slug'?: string | null;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof AgentResponse
|
|
136
|
+
*/
|
|
137
|
+
'description'?: string | null;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof AgentResponse
|
|
142
|
+
*/
|
|
143
|
+
'external_website'?: string | null;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {string}
|
|
147
|
+
* @memberof AgentResponse
|
|
148
|
+
*/
|
|
149
|
+
'picture'?: string | null;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @type {string}
|
|
153
|
+
* @memberof AgentResponse
|
|
154
|
+
*/
|
|
155
|
+
'ticker'?: string | null;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @type {string}
|
|
159
|
+
* @memberof AgentResponse
|
|
160
|
+
*/
|
|
161
|
+
'token_address'?: string | null;
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @type {string}
|
|
165
|
+
* @memberof AgentResponse
|
|
166
|
+
*/
|
|
167
|
+
'token_pool'?: string | null;
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* @type {string}
|
|
171
|
+
* @memberof AgentResponse
|
|
172
|
+
*/
|
|
173
|
+
'mode'?: AgentResponseModeEnum | null;
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
* @type {string}
|
|
177
|
+
* @memberof AgentResponse
|
|
178
|
+
*/
|
|
179
|
+
'fee_percentage'?: string | null;
|
|
180
|
+
/**
|
|
181
|
+
*
|
|
182
|
+
* @type {string}
|
|
183
|
+
* @memberof AgentResponse
|
|
184
|
+
*/
|
|
185
|
+
'owner'?: string | null;
|
|
186
|
+
/**
|
|
187
|
+
*
|
|
188
|
+
* @type {string}
|
|
189
|
+
* @memberof AgentResponse
|
|
190
|
+
*/
|
|
191
|
+
'upstream_id'?: string | null;
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
* @type {object}
|
|
195
|
+
* @memberof AgentResponse
|
|
196
|
+
*/
|
|
197
|
+
'upstream_extra'?: object | null;
|
|
198
|
+
/**
|
|
199
|
+
* AI model identifier to be used by this agent for processing requests. Available models: gpt-4o, gpt-4o-mini, deepseek-chat, deepseek-reasoner, grok-2, eternalai, reigent
|
|
200
|
+
* @type {string}
|
|
201
|
+
* @memberof AgentResponse
|
|
202
|
+
*/
|
|
203
|
+
'model': string;
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
* @type {Array<object>}
|
|
207
|
+
* @memberof AgentResponse
|
|
208
|
+
*/
|
|
209
|
+
'autonomous'?: Array<object> | null;
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @type {string}
|
|
213
|
+
* @memberof AgentResponse
|
|
214
|
+
*/
|
|
215
|
+
'example_intro'?: string | null;
|
|
216
|
+
/**
|
|
217
|
+
*
|
|
218
|
+
* @type {Array<AgentExample>}
|
|
219
|
+
* @memberof AgentResponse
|
|
220
|
+
*/
|
|
221
|
+
'examples'?: Array<AgentExample> | null;
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @type {object}
|
|
225
|
+
* @memberof AgentResponse
|
|
226
|
+
*/
|
|
227
|
+
'skills'?: object | null;
|
|
228
|
+
/**
|
|
229
|
+
*
|
|
230
|
+
* @type {string}
|
|
231
|
+
* @memberof AgentResponse
|
|
232
|
+
*/
|
|
233
|
+
'wallet_provider'?: AgentResponseWalletProviderEnum | null;
|
|
234
|
+
/**
|
|
235
|
+
*
|
|
236
|
+
* @type {string}
|
|
237
|
+
* @memberof AgentResponse
|
|
238
|
+
*/
|
|
239
|
+
'network_id'?: string | null;
|
|
240
|
+
/**
|
|
241
|
+
*
|
|
242
|
+
* @type {string}
|
|
243
|
+
* @memberof AgentResponse
|
|
244
|
+
*/
|
|
245
|
+
'cdp_network_id'?: string | null;
|
|
246
|
+
/**
|
|
247
|
+
*
|
|
248
|
+
* @type {boolean}
|
|
249
|
+
* @memberof AgentResponse
|
|
250
|
+
*/
|
|
251
|
+
'telegram_entrypoint_enabled'?: boolean | null;
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @type {string}
|
|
255
|
+
* @memberof AgentResponse
|
|
256
|
+
*/
|
|
257
|
+
'cdp_wallet_address': string | null;
|
|
258
|
+
/**
|
|
259
|
+
* Whether the agent has linked their Twitter account
|
|
260
|
+
* @type {boolean}
|
|
261
|
+
* @memberof AgentResponse
|
|
262
|
+
*/
|
|
263
|
+
'has_twitter_linked': boolean;
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @type {string}
|
|
267
|
+
* @memberof AgentResponse
|
|
268
|
+
*/
|
|
269
|
+
'linked_twitter_username': string | null;
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
* @type {string}
|
|
273
|
+
* @memberof AgentResponse
|
|
274
|
+
*/
|
|
275
|
+
'linked_twitter_name': string | null;
|
|
276
|
+
/**
|
|
277
|
+
* Whether the agent has self-keyed their Twitter account
|
|
278
|
+
* @type {boolean}
|
|
279
|
+
* @memberof AgentResponse
|
|
280
|
+
*/
|
|
281
|
+
'has_twitter_self_key': boolean;
|
|
282
|
+
/**
|
|
283
|
+
* Whether the agent has self-keyed their Telegram account
|
|
284
|
+
* @type {boolean}
|
|
285
|
+
* @memberof AgentResponse
|
|
286
|
+
*/
|
|
287
|
+
'has_telegram_self_key': boolean;
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
* @type {string}
|
|
291
|
+
* @memberof AgentResponse
|
|
292
|
+
*/
|
|
293
|
+
'linked_telegram_username': string | null;
|
|
294
|
+
/**
|
|
295
|
+
*
|
|
296
|
+
* @type {string}
|
|
297
|
+
* @memberof AgentResponse
|
|
298
|
+
*/
|
|
299
|
+
'linked_telegram_name': string | null;
|
|
300
|
+
/**
|
|
301
|
+
* Whether the agent accepts image inputs in public mode
|
|
302
|
+
* @type {boolean}
|
|
303
|
+
* @memberof AgentResponse
|
|
304
|
+
*/
|
|
305
|
+
'accept_image_input': boolean;
|
|
306
|
+
/**
|
|
307
|
+
* Whether the agent accepts image inputs in private mode
|
|
308
|
+
* @type {boolean}
|
|
309
|
+
* @memberof AgentResponse
|
|
310
|
+
*/
|
|
311
|
+
'accept_image_input_private': boolean;
|
|
312
|
+
}
|
|
313
|
+
export declare const AgentResponseModeEnum: {
|
|
314
|
+
readonly Public: "public";
|
|
315
|
+
readonly Private: "private";
|
|
316
|
+
};
|
|
317
|
+
export type AgentResponseModeEnum = typeof AgentResponseModeEnum[keyof typeof AgentResponseModeEnum];
|
|
318
|
+
export declare const AgentResponseWalletProviderEnum: {
|
|
319
|
+
readonly Cdp: "cdp";
|
|
320
|
+
};
|
|
321
|
+
export type AgentResponseWalletProviderEnum = typeof AgentResponseWalletProviderEnum[keyof typeof AgentResponseWalletProviderEnum];
|
|
322
|
+
/**
|
|
323
|
+
* Response model for agent statistics.
|
|
324
|
+
* @export
|
|
325
|
+
* @interface AgentStatisticsResponse
|
|
326
|
+
*/
|
|
327
|
+
export interface AgentStatisticsResponse {
|
|
328
|
+
/**
|
|
329
|
+
* ID of the agent
|
|
330
|
+
* @type {string}
|
|
331
|
+
* @memberof AgentStatisticsResponse
|
|
332
|
+
*/
|
|
333
|
+
'agent_id': string;
|
|
334
|
+
/**
|
|
335
|
+
* ID of the agent\'s credit account
|
|
336
|
+
* @type {string}
|
|
337
|
+
* @memberof AgentStatisticsResponse
|
|
338
|
+
*/
|
|
339
|
+
'account_id': string;
|
|
340
|
+
/**
|
|
341
|
+
* Total balance of the agent\'s account
|
|
342
|
+
* @type {string}
|
|
343
|
+
* @memberof AgentStatisticsResponse
|
|
344
|
+
*/
|
|
345
|
+
'balance': string;
|
|
346
|
+
/**
|
|
347
|
+
* Total income from all credit events
|
|
348
|
+
* @type {string}
|
|
349
|
+
* @memberof AgentStatisticsResponse
|
|
350
|
+
*/
|
|
351
|
+
'total_income': string;
|
|
352
|
+
/**
|
|
353
|
+
* Net income from all credit events
|
|
354
|
+
* @type {string}
|
|
355
|
+
* @memberof AgentStatisticsResponse
|
|
356
|
+
*/
|
|
357
|
+
'net_income': string;
|
|
358
|
+
/**
|
|
359
|
+
* Permanent income from all credit events
|
|
360
|
+
* @type {string}
|
|
361
|
+
* @memberof AgentStatisticsResponse
|
|
362
|
+
*/
|
|
363
|
+
'permanent_income': string;
|
|
364
|
+
/**
|
|
365
|
+
* Permanent profit from all credit events
|
|
366
|
+
* @type {string}
|
|
367
|
+
* @memberof AgentStatisticsResponse
|
|
368
|
+
*/
|
|
369
|
+
'permanent_profit': string;
|
|
370
|
+
/**
|
|
371
|
+
* Income from last 24 hours
|
|
372
|
+
* @type {string}
|
|
373
|
+
* @memberof AgentStatisticsResponse
|
|
374
|
+
*/
|
|
375
|
+
'last_24h_income': string;
|
|
376
|
+
/**
|
|
377
|
+
* Permanent income from last 24 hours
|
|
378
|
+
* @type {string}
|
|
379
|
+
* @memberof AgentStatisticsResponse
|
|
380
|
+
*/
|
|
381
|
+
'last_24h_permanent_income': string;
|
|
382
|
+
/**
|
|
383
|
+
* Average action cost
|
|
384
|
+
* @type {string}
|
|
385
|
+
* @memberof AgentStatisticsResponse
|
|
386
|
+
*/
|
|
387
|
+
'avg_action_cost': string;
|
|
388
|
+
/**
|
|
389
|
+
* Minimum action cost
|
|
390
|
+
* @type {string}
|
|
391
|
+
* @memberof AgentStatisticsResponse
|
|
392
|
+
*/
|
|
393
|
+
'min_action_cost': string;
|
|
394
|
+
/**
|
|
395
|
+
* Maximum action cost
|
|
396
|
+
* @type {string}
|
|
397
|
+
* @memberof AgentStatisticsResponse
|
|
398
|
+
*/
|
|
399
|
+
'max_action_cost': string;
|
|
400
|
+
/**
|
|
401
|
+
* Low action cost
|
|
402
|
+
* @type {string}
|
|
403
|
+
* @memberof AgentStatisticsResponse
|
|
404
|
+
*/
|
|
405
|
+
'low_action_cost': string;
|
|
406
|
+
/**
|
|
407
|
+
* Medium action cost
|
|
408
|
+
* @type {string}
|
|
409
|
+
* @memberof AgentStatisticsResponse
|
|
410
|
+
*/
|
|
411
|
+
'medium_action_cost': string;
|
|
412
|
+
/**
|
|
413
|
+
* High action cost
|
|
414
|
+
* @type {string}
|
|
415
|
+
* @memberof AgentStatisticsResponse
|
|
416
|
+
*/
|
|
417
|
+
'high_action_cost': string;
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* Agent update model.
|
|
421
|
+
* @export
|
|
422
|
+
* @interface AgentUpdate
|
|
423
|
+
*/
|
|
424
|
+
export interface AgentUpdate {
|
|
425
|
+
/**
|
|
426
|
+
*
|
|
427
|
+
* @type {string}
|
|
428
|
+
* @memberof AgentUpdate
|
|
429
|
+
*/
|
|
430
|
+
'name': string | null;
|
|
431
|
+
/**
|
|
432
|
+
*
|
|
433
|
+
* @type {string}
|
|
434
|
+
* @memberof AgentUpdate
|
|
435
|
+
*/
|
|
436
|
+
'slug'?: string | null;
|
|
437
|
+
/**
|
|
438
|
+
*
|
|
439
|
+
* @type {string}
|
|
440
|
+
* @memberof AgentUpdate
|
|
441
|
+
*/
|
|
442
|
+
'description'?: string | null;
|
|
443
|
+
/**
|
|
444
|
+
*
|
|
445
|
+
* @type {string}
|
|
446
|
+
* @memberof AgentUpdate
|
|
447
|
+
*/
|
|
448
|
+
'external_website'?: string | null;
|
|
449
|
+
/**
|
|
450
|
+
*
|
|
451
|
+
* @type {string}
|
|
452
|
+
* @memberof AgentUpdate
|
|
453
|
+
*/
|
|
454
|
+
'picture'?: string | null;
|
|
455
|
+
/**
|
|
456
|
+
*
|
|
457
|
+
* @type {string}
|
|
458
|
+
* @memberof AgentUpdate
|
|
459
|
+
*/
|
|
460
|
+
'ticker'?: string | null;
|
|
461
|
+
/**
|
|
462
|
+
*
|
|
463
|
+
* @type {string}
|
|
464
|
+
* @memberof AgentUpdate
|
|
465
|
+
*/
|
|
466
|
+
'token_address'?: string | null;
|
|
467
|
+
/**
|
|
468
|
+
*
|
|
469
|
+
* @type {string}
|
|
470
|
+
* @memberof AgentUpdate
|
|
471
|
+
*/
|
|
472
|
+
'token_pool'?: string | null;
|
|
473
|
+
/**
|
|
474
|
+
*
|
|
475
|
+
* @type {string}
|
|
476
|
+
* @memberof AgentUpdate
|
|
477
|
+
*/
|
|
478
|
+
'mode'?: AgentUpdateModeEnum | null;
|
|
479
|
+
/**
|
|
480
|
+
*
|
|
481
|
+
* @type {FeePercentage}
|
|
482
|
+
* @memberof AgentUpdate
|
|
483
|
+
*/
|
|
484
|
+
'fee_percentage'?: FeePercentage | null;
|
|
485
|
+
/**
|
|
486
|
+
*
|
|
487
|
+
* @type {string}
|
|
488
|
+
* @memberof AgentUpdate
|
|
489
|
+
*/
|
|
490
|
+
'purpose': string | null;
|
|
491
|
+
/**
|
|
492
|
+
*
|
|
493
|
+
* @type {string}
|
|
494
|
+
* @memberof AgentUpdate
|
|
495
|
+
*/
|
|
496
|
+
'personality': string | null;
|
|
497
|
+
/**
|
|
498
|
+
*
|
|
499
|
+
* @type {string}
|
|
500
|
+
* @memberof AgentUpdate
|
|
501
|
+
*/
|
|
502
|
+
'principles': string | null;
|
|
503
|
+
/**
|
|
504
|
+
*
|
|
505
|
+
* @type {string}
|
|
506
|
+
* @memberof AgentUpdate
|
|
507
|
+
*/
|
|
508
|
+
'owner'?: string | null;
|
|
509
|
+
/**
|
|
510
|
+
*
|
|
511
|
+
* @type {string}
|
|
512
|
+
* @memberof AgentUpdate
|
|
513
|
+
*/
|
|
514
|
+
'upstream_id'?: string | null;
|
|
515
|
+
/**
|
|
516
|
+
*
|
|
517
|
+
* @type {object}
|
|
518
|
+
* @memberof AgentUpdate
|
|
519
|
+
*/
|
|
520
|
+
'upstream_extra'?: object | null;
|
|
521
|
+
/**
|
|
522
|
+
* AI model identifier to be used by this agent for processing requests. Available models: gpt-4o, gpt-4o-mini, deepseek-chat, deepseek-reasoner, grok-2, eternalai, reigent, venice-uncensored
|
|
523
|
+
* @type {string}
|
|
524
|
+
* @memberof AgentUpdate
|
|
525
|
+
*/
|
|
526
|
+
'model'?: string;
|
|
527
|
+
/**
|
|
528
|
+
*
|
|
529
|
+
* @type {string}
|
|
530
|
+
* @memberof AgentUpdate
|
|
531
|
+
*/
|
|
532
|
+
'prompt'?: string | null;
|
|
533
|
+
/**
|
|
534
|
+
*
|
|
535
|
+
* @type {string}
|
|
536
|
+
* @memberof AgentUpdate
|
|
537
|
+
*/
|
|
538
|
+
'prompt_append'?: string | null;
|
|
539
|
+
/**
|
|
540
|
+
*
|
|
541
|
+
* @type {number}
|
|
542
|
+
* @memberof AgentUpdate
|
|
543
|
+
*/
|
|
544
|
+
'temperature'?: number | null;
|
|
545
|
+
/**
|
|
546
|
+
*
|
|
547
|
+
* @type {number}
|
|
548
|
+
* @memberof AgentUpdate
|
|
549
|
+
*/
|
|
550
|
+
'frequency_penalty'?: number | null;
|
|
551
|
+
/**
|
|
552
|
+
*
|
|
553
|
+
* @type {number}
|
|
554
|
+
* @memberof AgentUpdate
|
|
555
|
+
*/
|
|
556
|
+
'presence_penalty'?: number | null;
|
|
557
|
+
/**
|
|
558
|
+
*
|
|
559
|
+
* @type {string}
|
|
560
|
+
* @memberof AgentUpdate
|
|
561
|
+
*/
|
|
562
|
+
'short_term_memory_strategy'?: AgentUpdateShortTermMemoryStrategyEnum | null;
|
|
563
|
+
/**
|
|
564
|
+
*
|
|
565
|
+
* @type {Array<AgentAutonomous>}
|
|
566
|
+
* @memberof AgentUpdate
|
|
567
|
+
*/
|
|
568
|
+
'autonomous'?: Array<AgentAutonomous> | null;
|
|
569
|
+
/**
|
|
570
|
+
*
|
|
571
|
+
* @type {string}
|
|
572
|
+
* @memberof AgentUpdate
|
|
573
|
+
*/
|
|
574
|
+
'example_intro'?: string | null;
|
|
575
|
+
/**
|
|
576
|
+
*
|
|
577
|
+
* @type {Array<AgentExample>}
|
|
578
|
+
* @memberof AgentUpdate
|
|
579
|
+
*/
|
|
580
|
+
'examples'?: Array<AgentExample> | null;
|
|
581
|
+
/**
|
|
582
|
+
*
|
|
583
|
+
* @type {object}
|
|
584
|
+
* @memberof AgentUpdate
|
|
585
|
+
*/
|
|
586
|
+
'skills'?: object | null;
|
|
587
|
+
/**
|
|
588
|
+
*
|
|
589
|
+
* @type {string}
|
|
590
|
+
* @memberof AgentUpdate
|
|
591
|
+
*/
|
|
592
|
+
'wallet_provider'?: AgentUpdateWalletProviderEnum | null;
|
|
593
|
+
/**
|
|
594
|
+
*
|
|
595
|
+
* @type {string}
|
|
596
|
+
* @memberof AgentUpdate
|
|
597
|
+
*/
|
|
598
|
+
'network_id'?: AgentUpdateNetworkIdEnum | null;
|
|
599
|
+
/**
|
|
600
|
+
*
|
|
601
|
+
* @type {string}
|
|
602
|
+
* @memberof AgentUpdate
|
|
603
|
+
*/
|
|
604
|
+
'cdp_network_id'?: AgentUpdateCdpNetworkIdEnum | null;
|
|
605
|
+
/**
|
|
606
|
+
*
|
|
607
|
+
* @type {boolean}
|
|
608
|
+
* @memberof AgentUpdate
|
|
609
|
+
*/
|
|
610
|
+
'twitter_entrypoint_enabled'?: boolean | null;
|
|
611
|
+
/**
|
|
612
|
+
*
|
|
613
|
+
* @type {string}
|
|
614
|
+
* @memberof AgentUpdate
|
|
615
|
+
*/
|
|
616
|
+
'twitter_entrypoint_prompt'?: string | null;
|
|
617
|
+
/**
|
|
618
|
+
*
|
|
619
|
+
* @type {object}
|
|
620
|
+
* @memberof AgentUpdate
|
|
621
|
+
*/
|
|
622
|
+
'twitter_config'?: object | null;
|
|
623
|
+
/**
|
|
624
|
+
*
|
|
625
|
+
* @type {boolean}
|
|
626
|
+
* @memberof AgentUpdate
|
|
627
|
+
*/
|
|
628
|
+
'telegram_entrypoint_enabled'?: boolean | null;
|
|
629
|
+
/**
|
|
630
|
+
*
|
|
631
|
+
* @type {string}
|
|
632
|
+
* @memberof AgentUpdate
|
|
633
|
+
*/
|
|
634
|
+
'telegram_entrypoint_prompt'?: string | null;
|
|
635
|
+
/**
|
|
636
|
+
*
|
|
637
|
+
* @type {object}
|
|
638
|
+
* @memberof AgentUpdate
|
|
639
|
+
*/
|
|
640
|
+
'telegram_config'?: object | null;
|
|
641
|
+
}
|
|
642
|
+
export declare const AgentUpdateModeEnum: {
|
|
643
|
+
readonly Public: "public";
|
|
644
|
+
readonly Private: "private";
|
|
645
|
+
};
|
|
646
|
+
export type AgentUpdateModeEnum = typeof AgentUpdateModeEnum[keyof typeof AgentUpdateModeEnum];
|
|
647
|
+
export declare const AgentUpdateShortTermMemoryStrategyEnum: {
|
|
648
|
+
readonly Trim: "trim";
|
|
649
|
+
readonly Summarize: "summarize";
|
|
650
|
+
};
|
|
651
|
+
export type AgentUpdateShortTermMemoryStrategyEnum = typeof AgentUpdateShortTermMemoryStrategyEnum[keyof typeof AgentUpdateShortTermMemoryStrategyEnum];
|
|
652
|
+
export declare const AgentUpdateWalletProviderEnum: {
|
|
653
|
+
readonly Cdp: "cdp";
|
|
654
|
+
};
|
|
655
|
+
export type AgentUpdateWalletProviderEnum = typeof AgentUpdateWalletProviderEnum[keyof typeof AgentUpdateWalletProviderEnum];
|
|
656
|
+
export declare const AgentUpdateNetworkIdEnum: {
|
|
657
|
+
readonly EthereumMainnet: "ethereum-mainnet";
|
|
658
|
+
readonly EthereumSepolia: "ethereum-sepolia";
|
|
659
|
+
readonly PolygonMainnet: "polygon-mainnet";
|
|
660
|
+
readonly PolygonMumbai: "polygon-mumbai";
|
|
661
|
+
readonly BaseMainnet: "base-mainnet";
|
|
662
|
+
readonly BaseSepolia: "base-sepolia";
|
|
663
|
+
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
664
|
+
readonly ArbitrumSepolia: "arbitrum-sepolia";
|
|
665
|
+
readonly OptimismMainnet: "optimism-mainnet";
|
|
666
|
+
readonly OptimismSepolia: "optimism-sepolia";
|
|
667
|
+
readonly Solana: "solana";
|
|
668
|
+
};
|
|
669
|
+
export type AgentUpdateNetworkIdEnum = typeof AgentUpdateNetworkIdEnum[keyof typeof AgentUpdateNetworkIdEnum];
|
|
670
|
+
export declare const AgentUpdateCdpNetworkIdEnum: {
|
|
671
|
+
readonly EthereumMainnet: "ethereum-mainnet";
|
|
672
|
+
readonly EthereumSepolia: "ethereum-sepolia";
|
|
673
|
+
readonly PolygonMainnet: "polygon-mainnet";
|
|
674
|
+
readonly PolygonMumbai: "polygon-mumbai";
|
|
675
|
+
readonly BaseMainnet: "base-mainnet";
|
|
676
|
+
readonly BaseSepolia: "base-sepolia";
|
|
677
|
+
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
678
|
+
readonly ArbitrumSepolia: "arbitrum-sepolia";
|
|
679
|
+
readonly OptimismMainnet: "optimism-mainnet";
|
|
680
|
+
readonly OptimismSepolia: "optimism-sepolia";
|
|
681
|
+
};
|
|
682
|
+
export type AgentUpdateCdpNetworkIdEnum = typeof AgentUpdateCdpNetworkIdEnum[keyof typeof AgentUpdateCdpNetworkIdEnum];
|
|
683
|
+
/**
|
|
684
|
+
* Type of message author.
|
|
685
|
+
* @export
|
|
686
|
+
* @enum {string}
|
|
687
|
+
*/
|
|
688
|
+
export declare const AuthorType: {
|
|
689
|
+
readonly Agent: "agent";
|
|
690
|
+
readonly Trigger: "trigger";
|
|
691
|
+
readonly Skill: "skill";
|
|
692
|
+
readonly Telegram: "telegram";
|
|
693
|
+
readonly Twitter: "twitter";
|
|
694
|
+
readonly Web: "web";
|
|
695
|
+
readonly System: "system";
|
|
696
|
+
readonly Api: "api";
|
|
697
|
+
};
|
|
698
|
+
export type AuthorType = typeof AuthorType[keyof typeof AuthorType];
|
|
699
|
+
/**
|
|
700
|
+
* Chat model with all fields including server-generated ones.
|
|
701
|
+
* @export
|
|
702
|
+
* @interface Chat
|
|
703
|
+
*/
|
|
704
|
+
export interface Chat {
|
|
705
|
+
/**
|
|
706
|
+
* Unique identifier for the chat
|
|
707
|
+
* @type {string}
|
|
708
|
+
* @memberof Chat
|
|
709
|
+
*/
|
|
710
|
+
'id'?: string;
|
|
711
|
+
/**
|
|
712
|
+
* ID of the agent this chat belongs to
|
|
713
|
+
* @type {string}
|
|
714
|
+
* @memberof Chat
|
|
715
|
+
*/
|
|
716
|
+
'agent_id': string;
|
|
717
|
+
/**
|
|
718
|
+
* User ID of the chat
|
|
719
|
+
* @type {string}
|
|
720
|
+
* @memberof Chat
|
|
721
|
+
*/
|
|
722
|
+
'user_id': string;
|
|
723
|
+
/**
|
|
724
|
+
* Summary of the chat
|
|
725
|
+
* @type {string}
|
|
726
|
+
* @memberof Chat
|
|
727
|
+
*/
|
|
728
|
+
'summary'?: string;
|
|
729
|
+
/**
|
|
730
|
+
* Number of rounds in the chat
|
|
731
|
+
* @type {number}
|
|
732
|
+
* @memberof Chat
|
|
733
|
+
*/
|
|
734
|
+
'rounds'?: number;
|
|
735
|
+
/**
|
|
736
|
+
* Timestamp when this chat was created
|
|
737
|
+
* @type {string}
|
|
738
|
+
* @memberof Chat
|
|
739
|
+
*/
|
|
740
|
+
'created_at': string;
|
|
741
|
+
/**
|
|
742
|
+
* Timestamp when this chat was updated
|
|
743
|
+
* @type {string}
|
|
744
|
+
* @memberof Chat
|
|
745
|
+
*/
|
|
746
|
+
'updated_at': string;
|
|
747
|
+
}
|
|
748
|
+
/**
|
|
749
|
+
* Chat message model with all fields including server-generated ones.
|
|
750
|
+
* @export
|
|
751
|
+
* @interface ChatMessage
|
|
752
|
+
*/
|
|
753
|
+
export interface ChatMessage {
|
|
754
|
+
/**
|
|
755
|
+
* Unique identifier for the chat message
|
|
756
|
+
* @type {string}
|
|
757
|
+
* @memberof ChatMessage
|
|
758
|
+
*/
|
|
759
|
+
'id'?: string;
|
|
760
|
+
/**
|
|
761
|
+
* ID of the agent this message belongs to
|
|
762
|
+
* @type {string}
|
|
763
|
+
* @memberof ChatMessage
|
|
764
|
+
*/
|
|
765
|
+
'agent_id': string;
|
|
766
|
+
/**
|
|
767
|
+
* ID of the chat this message belongs to
|
|
768
|
+
* @type {string}
|
|
769
|
+
* @memberof ChatMessage
|
|
770
|
+
*/
|
|
771
|
+
'chat_id': string;
|
|
772
|
+
/**
|
|
773
|
+
*
|
|
774
|
+
* @type {string}
|
|
775
|
+
* @memberof ChatMessage
|
|
776
|
+
*/
|
|
777
|
+
'user_id': string | null;
|
|
778
|
+
/**
|
|
779
|
+
* ID of the message author
|
|
780
|
+
* @type {string}
|
|
781
|
+
* @memberof ChatMessage
|
|
782
|
+
*/
|
|
783
|
+
'author_id': string;
|
|
784
|
+
/**
|
|
785
|
+
* Type of the message author
|
|
786
|
+
* @type {AuthorType}
|
|
787
|
+
* @memberof ChatMessage
|
|
788
|
+
*/
|
|
789
|
+
'author_type': AuthorType;
|
|
790
|
+
/**
|
|
791
|
+
*
|
|
792
|
+
* @type {string}
|
|
793
|
+
* @memberof ChatMessage
|
|
794
|
+
*/
|
|
795
|
+
'model'?: string | null;
|
|
796
|
+
/**
|
|
797
|
+
*
|
|
798
|
+
* @type {AuthorType}
|
|
799
|
+
* @memberof ChatMessage
|
|
800
|
+
*/
|
|
801
|
+
'thread_type'?: AuthorType | null;
|
|
802
|
+
/**
|
|
803
|
+
*
|
|
804
|
+
* @type {string}
|
|
805
|
+
* @memberof ChatMessage
|
|
806
|
+
*/
|
|
807
|
+
'reply_to'?: string | null;
|
|
808
|
+
/**
|
|
809
|
+
* Content of the message
|
|
810
|
+
* @type {string}
|
|
811
|
+
* @memberof ChatMessage
|
|
812
|
+
*/
|
|
813
|
+
'message': string;
|
|
814
|
+
/**
|
|
815
|
+
*
|
|
816
|
+
* @type {Array<ChatMessageAttachment>}
|
|
817
|
+
* @memberof ChatMessage
|
|
818
|
+
*/
|
|
819
|
+
'attachments'?: Array<ChatMessageAttachment> | null;
|
|
820
|
+
/**
|
|
821
|
+
*
|
|
822
|
+
* @type {Array<ChatMessageSkillCall>}
|
|
823
|
+
* @memberof ChatMessage
|
|
824
|
+
*/
|
|
825
|
+
'skill_calls'?: Array<ChatMessageSkillCall> | null;
|
|
826
|
+
/**
|
|
827
|
+
* Number of tokens in the input message
|
|
828
|
+
* @type {number}
|
|
829
|
+
* @memberof ChatMessage
|
|
830
|
+
*/
|
|
831
|
+
'input_tokens'?: number;
|
|
832
|
+
/**
|
|
833
|
+
* Number of tokens in the output message
|
|
834
|
+
* @type {number}
|
|
835
|
+
* @memberof ChatMessage
|
|
836
|
+
*/
|
|
837
|
+
'output_tokens'?: number;
|
|
838
|
+
/**
|
|
839
|
+
* Time cost for the message in seconds
|
|
840
|
+
* @type {number}
|
|
841
|
+
* @memberof ChatMessage
|
|
842
|
+
*/
|
|
843
|
+
'time_cost'?: number;
|
|
844
|
+
/**
|
|
845
|
+
*
|
|
846
|
+
* @type {string}
|
|
847
|
+
* @memberof ChatMessage
|
|
848
|
+
*/
|
|
849
|
+
'credit_event_id'?: string | null;
|
|
850
|
+
/**
|
|
851
|
+
*
|
|
852
|
+
* @type {string}
|
|
853
|
+
* @memberof ChatMessage
|
|
854
|
+
*/
|
|
855
|
+
'credit_cost'?: string | null;
|
|
856
|
+
/**
|
|
857
|
+
* Cost for the cold start of the message in seconds
|
|
858
|
+
* @type {number}
|
|
859
|
+
* @memberof ChatMessage
|
|
860
|
+
*/
|
|
861
|
+
'cold_start_cost'?: number;
|
|
862
|
+
/**
|
|
863
|
+
*
|
|
864
|
+
* @type {string}
|
|
865
|
+
* @memberof ChatMessage
|
|
866
|
+
*/
|
|
867
|
+
'app_id'?: string | null;
|
|
868
|
+
/**
|
|
869
|
+
*
|
|
870
|
+
* @type {boolean}
|
|
871
|
+
* @memberof ChatMessage
|
|
872
|
+
*/
|
|
873
|
+
'search_mode'?: boolean | null;
|
|
874
|
+
/**
|
|
875
|
+
*
|
|
876
|
+
* @type {boolean}
|
|
877
|
+
* @memberof ChatMessage
|
|
878
|
+
*/
|
|
879
|
+
'super_mode'?: boolean | null;
|
|
880
|
+
/**
|
|
881
|
+
* Timestamp when this message was created
|
|
882
|
+
* @type {string}
|
|
883
|
+
* @memberof ChatMessage
|
|
884
|
+
*/
|
|
885
|
+
'created_at': string;
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* Chat message attachment model. An attachment can be a link, image, or file that is associated with a chat message.
|
|
889
|
+
* @export
|
|
890
|
+
* @interface ChatMessageAttachment
|
|
891
|
+
*/
|
|
892
|
+
export interface ChatMessageAttachment {
|
|
893
|
+
/**
|
|
894
|
+
* Type of the attachment (link, image, or file)
|
|
895
|
+
* @type {ChatMessageAttachmentType}
|
|
896
|
+
* @memberof ChatMessageAttachment
|
|
897
|
+
*/
|
|
898
|
+
'type': ChatMessageAttachmentType;
|
|
899
|
+
/**
|
|
900
|
+
* URL of the attachment
|
|
901
|
+
* @type {string}
|
|
902
|
+
* @memberof ChatMessageAttachment
|
|
903
|
+
*/
|
|
904
|
+
'url': string;
|
|
905
|
+
}
|
|
906
|
+
/**
|
|
907
|
+
* Type of chat message attachment.
|
|
908
|
+
* @export
|
|
909
|
+
* @enum {string}
|
|
910
|
+
*/
|
|
911
|
+
export declare const ChatMessageAttachmentType: {
|
|
912
|
+
readonly Link: "link";
|
|
913
|
+
readonly Image: "image";
|
|
914
|
+
readonly File: "file";
|
|
915
|
+
};
|
|
916
|
+
export type ChatMessageAttachmentType = typeof ChatMessageAttachmentType[keyof typeof ChatMessageAttachmentType];
|
|
917
|
+
/**
|
|
918
|
+
* 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.
|
|
919
|
+
* @export
|
|
920
|
+
* @interface ChatMessageRequest
|
|
921
|
+
*/
|
|
922
|
+
export interface ChatMessageRequest {
|
|
923
|
+
/**
|
|
924
|
+
*
|
|
925
|
+
* @type {string}
|
|
926
|
+
* @memberof ChatMessageRequest
|
|
927
|
+
*/
|
|
928
|
+
'app_id'?: string | null;
|
|
929
|
+
/**
|
|
930
|
+
* Content of the message
|
|
931
|
+
* @type {string}
|
|
932
|
+
* @memberof ChatMessageRequest
|
|
933
|
+
*/
|
|
934
|
+
'message': string;
|
|
935
|
+
/**
|
|
936
|
+
*
|
|
937
|
+
* @type {boolean}
|
|
938
|
+
* @memberof ChatMessageRequest
|
|
939
|
+
*/
|
|
940
|
+
'stream'?: boolean | null;
|
|
941
|
+
/**
|
|
942
|
+
*
|
|
943
|
+
* @type {boolean}
|
|
944
|
+
* @memberof ChatMessageRequest
|
|
945
|
+
*/
|
|
946
|
+
'search_mode'?: boolean | null;
|
|
947
|
+
/**
|
|
948
|
+
*
|
|
949
|
+
* @type {boolean}
|
|
950
|
+
* @memberof ChatMessageRequest
|
|
951
|
+
*/
|
|
952
|
+
'super_mode'?: boolean | null;
|
|
953
|
+
/**
|
|
954
|
+
*
|
|
955
|
+
* @type {Array<ChatMessageAttachment>}
|
|
956
|
+
* @memberof ChatMessageRequest
|
|
957
|
+
*/
|
|
958
|
+
'attachments'?: Array<ChatMessageAttachment> | null;
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
* TypedDict for skill call details.
|
|
962
|
+
* @export
|
|
963
|
+
* @interface ChatMessageSkillCall
|
|
964
|
+
*/
|
|
965
|
+
export interface ChatMessageSkillCall {
|
|
966
|
+
/**
|
|
967
|
+
*
|
|
968
|
+
* @type {string}
|
|
969
|
+
* @memberof ChatMessageSkillCall
|
|
970
|
+
*/
|
|
971
|
+
'id'?: string;
|
|
972
|
+
/**
|
|
973
|
+
*
|
|
974
|
+
* @type {string}
|
|
975
|
+
* @memberof ChatMessageSkillCall
|
|
976
|
+
*/
|
|
977
|
+
'name': string;
|
|
978
|
+
/**
|
|
979
|
+
*
|
|
980
|
+
* @type {object}
|
|
981
|
+
* @memberof ChatMessageSkillCall
|
|
982
|
+
*/
|
|
983
|
+
'parameters': object;
|
|
984
|
+
/**
|
|
985
|
+
*
|
|
986
|
+
* @type {boolean}
|
|
987
|
+
* @memberof ChatMessageSkillCall
|
|
988
|
+
*/
|
|
989
|
+
'success': boolean;
|
|
990
|
+
/**
|
|
991
|
+
*
|
|
992
|
+
* @type {string}
|
|
993
|
+
* @memberof ChatMessageSkillCall
|
|
994
|
+
*/
|
|
995
|
+
'response'?: string;
|
|
996
|
+
/**
|
|
997
|
+
*
|
|
998
|
+
* @type {string}
|
|
999
|
+
* @memberof ChatMessageSkillCall
|
|
1000
|
+
*/
|
|
1001
|
+
'error_message'?: string;
|
|
1002
|
+
/**
|
|
1003
|
+
*
|
|
1004
|
+
* @type {string}
|
|
1005
|
+
* @memberof ChatMessageSkillCall
|
|
1006
|
+
*/
|
|
1007
|
+
'credit_event_id'?: string;
|
|
1008
|
+
/**
|
|
1009
|
+
*
|
|
1010
|
+
* @type {string}
|
|
1011
|
+
* @memberof ChatMessageSkillCall
|
|
1012
|
+
*/
|
|
1013
|
+
'credit_cost'?: string;
|
|
1014
|
+
}
|
|
1015
|
+
/**
|
|
1016
|
+
* Response model for chat messages with pagination.
|
|
1017
|
+
* @export
|
|
1018
|
+
* @interface ChatMessagesResponse
|
|
1019
|
+
*/
|
|
1020
|
+
export interface ChatMessagesResponse {
|
|
1021
|
+
/**
|
|
1022
|
+
*
|
|
1023
|
+
* @type {Array<ChatMessage>}
|
|
1024
|
+
* @memberof ChatMessagesResponse
|
|
1025
|
+
*/
|
|
1026
|
+
'data': Array<ChatMessage>;
|
|
1027
|
+
/**
|
|
1028
|
+
*
|
|
1029
|
+
* @type {boolean}
|
|
1030
|
+
* @memberof ChatMessagesResponse
|
|
1031
|
+
*/
|
|
1032
|
+
'has_more'?: boolean;
|
|
1033
|
+
/**
|
|
1034
|
+
*
|
|
1035
|
+
* @type {string}
|
|
1036
|
+
* @memberof ChatMessagesResponse
|
|
1037
|
+
*/
|
|
1038
|
+
'next_cursor'?: string | null;
|
|
1039
|
+
}
|
|
1040
|
+
/**
|
|
1041
|
+
* Request model for updating a chat thread.
|
|
1042
|
+
* @export
|
|
1043
|
+
* @interface ChatUpdateRequest
|
|
1044
|
+
*/
|
|
1045
|
+
export interface ChatUpdateRequest {
|
|
1046
|
+
/**
|
|
1047
|
+
* Updated summary for the chat thread
|
|
1048
|
+
* @type {string}
|
|
1049
|
+
* @memberof ChatUpdateRequest
|
|
1050
|
+
*/
|
|
1051
|
+
'summary': string;
|
|
1052
|
+
}
|
|
1053
|
+
/**
|
|
1054
|
+
* Credit account model with all fields.
|
|
1055
|
+
* @export
|
|
1056
|
+
* @interface CreditAccount
|
|
1057
|
+
*/
|
|
1058
|
+
export interface CreditAccount {
|
|
1059
|
+
/**
|
|
1060
|
+
* Unique identifier for the credit account
|
|
1061
|
+
* @type {string}
|
|
1062
|
+
* @memberof CreditAccount
|
|
1063
|
+
*/
|
|
1064
|
+
'id'?: string;
|
|
1065
|
+
/**
|
|
1066
|
+
* Type of the account owner
|
|
1067
|
+
* @type {OwnerType}
|
|
1068
|
+
* @memberof CreditAccount
|
|
1069
|
+
*/
|
|
1070
|
+
'owner_type': OwnerType;
|
|
1071
|
+
/**
|
|
1072
|
+
* ID of the account owner
|
|
1073
|
+
* @type {string}
|
|
1074
|
+
* @memberof CreditAccount
|
|
1075
|
+
*/
|
|
1076
|
+
'owner_id': string;
|
|
1077
|
+
/**
|
|
1078
|
+
* Daily credit quota that resets each day
|
|
1079
|
+
* @type {string}
|
|
1080
|
+
* @memberof CreditAccount
|
|
1081
|
+
*/
|
|
1082
|
+
'free_quota'?: string;
|
|
1083
|
+
/**
|
|
1084
|
+
* Amount to refill hourly, not exceeding free_quota
|
|
1085
|
+
* @type {string}
|
|
1086
|
+
* @memberof CreditAccount
|
|
1087
|
+
*/
|
|
1088
|
+
'refill_amount'?: string;
|
|
1089
|
+
/**
|
|
1090
|
+
* Current available daily credits
|
|
1091
|
+
* @type {string}
|
|
1092
|
+
* @memberof CreditAccount
|
|
1093
|
+
*/
|
|
1094
|
+
'free_credits'?: string;
|
|
1095
|
+
/**
|
|
1096
|
+
* Reward credits earned through rewards
|
|
1097
|
+
* @type {string}
|
|
1098
|
+
* @memberof CreditAccount
|
|
1099
|
+
*/
|
|
1100
|
+
'reward_credits'?: string;
|
|
1101
|
+
/**
|
|
1102
|
+
* Credits added through top-ups
|
|
1103
|
+
* @type {string}
|
|
1104
|
+
* @memberof CreditAccount
|
|
1105
|
+
*/
|
|
1106
|
+
'credits'?: string;
|
|
1107
|
+
/**
|
|
1108
|
+
*
|
|
1109
|
+
* @type {string}
|
|
1110
|
+
* @memberof CreditAccount
|
|
1111
|
+
*/
|
|
1112
|
+
'income_at'?: string | null;
|
|
1113
|
+
/**
|
|
1114
|
+
*
|
|
1115
|
+
* @type {string}
|
|
1116
|
+
* @memberof CreditAccount
|
|
1117
|
+
*/
|
|
1118
|
+
'expense_at'?: string | null;
|
|
1119
|
+
/**
|
|
1120
|
+
*
|
|
1121
|
+
* @type {string}
|
|
1122
|
+
* @memberof CreditAccount
|
|
1123
|
+
*/
|
|
1124
|
+
'last_event_id'?: string | null;
|
|
1125
|
+
/**
|
|
1126
|
+
* Timestamp when this account was created
|
|
1127
|
+
* @type {string}
|
|
1128
|
+
* @memberof CreditAccount
|
|
1129
|
+
*/
|
|
1130
|
+
'created_at': string;
|
|
1131
|
+
/**
|
|
1132
|
+
* Timestamp when this account was last updated
|
|
1133
|
+
* @type {string}
|
|
1134
|
+
* @memberof CreditAccount
|
|
1135
|
+
*/
|
|
1136
|
+
'updated_at': string;
|
|
1137
|
+
}
|
|
1138
|
+
/**
|
|
1139
|
+
* Credit or debit transaction.
|
|
1140
|
+
* @export
|
|
1141
|
+
* @enum {string}
|
|
1142
|
+
*/
|
|
1143
|
+
export declare const CreditDebit: {
|
|
1144
|
+
readonly Credit: "credit";
|
|
1145
|
+
readonly Debit: "debit";
|
|
1146
|
+
};
|
|
1147
|
+
export type CreditDebit = typeof CreditDebit[keyof typeof CreditDebit];
|
|
1148
|
+
/**
|
|
1149
|
+
* Credit event model with all fields.
|
|
1150
|
+
* @export
|
|
1151
|
+
* @interface CreditEvent
|
|
1152
|
+
*/
|
|
1153
|
+
export interface CreditEvent {
|
|
1154
|
+
/**
|
|
1155
|
+
* Unique identifier for the credit event
|
|
1156
|
+
* @type {string}
|
|
1157
|
+
* @memberof CreditEvent
|
|
1158
|
+
*/
|
|
1159
|
+
'id'?: string;
|
|
1160
|
+
/**
|
|
1161
|
+
* Account ID from which credits flow
|
|
1162
|
+
* @type {string}
|
|
1163
|
+
* @memberof CreditEvent
|
|
1164
|
+
*/
|
|
1165
|
+
'account_id'?: string;
|
|
1166
|
+
/**
|
|
1167
|
+
* Type of the event
|
|
1168
|
+
* @type {EventType}
|
|
1169
|
+
* @memberof CreditEvent
|
|
1170
|
+
*/
|
|
1171
|
+
'event_type': EventType;
|
|
1172
|
+
/**
|
|
1173
|
+
*
|
|
1174
|
+
* @type {string}
|
|
1175
|
+
* @memberof CreditEvent
|
|
1176
|
+
*/
|
|
1177
|
+
'user_id'?: string | null;
|
|
1178
|
+
/**
|
|
1179
|
+
* Type of upstream transaction
|
|
1180
|
+
* @type {UpstreamType}
|
|
1181
|
+
* @memberof CreditEvent
|
|
1182
|
+
*/
|
|
1183
|
+
'upstream_type': UpstreamType;
|
|
1184
|
+
/**
|
|
1185
|
+
* Upstream transaction ID if any
|
|
1186
|
+
* @type {string}
|
|
1187
|
+
* @memberof CreditEvent
|
|
1188
|
+
*/
|
|
1189
|
+
'upstream_tx_id': string;
|
|
1190
|
+
/**
|
|
1191
|
+
*
|
|
1192
|
+
* @type {string}
|
|
1193
|
+
* @memberof CreditEvent
|
|
1194
|
+
*/
|
|
1195
|
+
'agent_id'?: string | null;
|
|
1196
|
+
/**
|
|
1197
|
+
*
|
|
1198
|
+
* @type {string}
|
|
1199
|
+
* @memberof CreditEvent
|
|
1200
|
+
*/
|
|
1201
|
+
'start_message_id'?: string | null;
|
|
1202
|
+
/**
|
|
1203
|
+
*
|
|
1204
|
+
* @type {string}
|
|
1205
|
+
* @memberof CreditEvent
|
|
1206
|
+
*/
|
|
1207
|
+
'message_id'?: string | null;
|
|
1208
|
+
/**
|
|
1209
|
+
*
|
|
1210
|
+
* @type {string}
|
|
1211
|
+
* @memberof CreditEvent
|
|
1212
|
+
*/
|
|
1213
|
+
'model'?: string | null;
|
|
1214
|
+
/**
|
|
1215
|
+
*
|
|
1216
|
+
* @type {string}
|
|
1217
|
+
* @memberof CreditEvent
|
|
1218
|
+
*/
|
|
1219
|
+
'skill_call_id'?: string | null;
|
|
1220
|
+
/**
|
|
1221
|
+
*
|
|
1222
|
+
* @type {string}
|
|
1223
|
+
* @memberof CreditEvent
|
|
1224
|
+
*/
|
|
1225
|
+
'skill_name'?: string | null;
|
|
1226
|
+
/**
|
|
1227
|
+
* Direction of the credit flow
|
|
1228
|
+
* @type {Direction}
|
|
1229
|
+
* @memberof CreditEvent
|
|
1230
|
+
*/
|
|
1231
|
+
'direction': Direction;
|
|
1232
|
+
/**
|
|
1233
|
+
* Total amount (after discount) of credits involved
|
|
1234
|
+
* @type {string}
|
|
1235
|
+
* @memberof CreditEvent
|
|
1236
|
+
*/
|
|
1237
|
+
'total_amount'?: string;
|
|
1238
|
+
/**
|
|
1239
|
+
* Type of credits involved
|
|
1240
|
+
* @type {CreditType}
|
|
1241
|
+
* @memberof CreditEvent
|
|
1242
|
+
*/
|
|
1243
|
+
'credit_type': CreditType;
|
|
1244
|
+
/**
|
|
1245
|
+
*
|
|
1246
|
+
* @type {Array<CreditType>}
|
|
1247
|
+
* @memberof CreditEvent
|
|
1248
|
+
*/
|
|
1249
|
+
'credit_types'?: Array<CreditType> | null;
|
|
1250
|
+
/**
|
|
1251
|
+
*
|
|
1252
|
+
* @type {string}
|
|
1253
|
+
* @memberof CreditEvent
|
|
1254
|
+
*/
|
|
1255
|
+
'balance_after'?: string | null;
|
|
1256
|
+
/**
|
|
1257
|
+
* Base amount of credits involved
|
|
1258
|
+
* @type {string}
|
|
1259
|
+
* @memberof CreditEvent
|
|
1260
|
+
*/
|
|
1261
|
+
'base_amount'?: string;
|
|
1262
|
+
/**
|
|
1263
|
+
*
|
|
1264
|
+
* @type {string}
|
|
1265
|
+
* @memberof CreditEvent
|
|
1266
|
+
*/
|
|
1267
|
+
'base_discount_amount'?: string | null;
|
|
1268
|
+
/**
|
|
1269
|
+
*
|
|
1270
|
+
* @type {string}
|
|
1271
|
+
* @memberof CreditEvent
|
|
1272
|
+
*/
|
|
1273
|
+
'base_original_amount'?: string | null;
|
|
1274
|
+
/**
|
|
1275
|
+
*
|
|
1276
|
+
* @type {string}
|
|
1277
|
+
* @memberof CreditEvent
|
|
1278
|
+
*/
|
|
1279
|
+
'base_llm_amount'?: string | null;
|
|
1280
|
+
/**
|
|
1281
|
+
*
|
|
1282
|
+
* @type {string}
|
|
1283
|
+
* @memberof CreditEvent
|
|
1284
|
+
*/
|
|
1285
|
+
'base_skill_amount'?: string | null;
|
|
1286
|
+
/**
|
|
1287
|
+
*
|
|
1288
|
+
* @type {string}
|
|
1289
|
+
* @memberof CreditEvent
|
|
1290
|
+
*/
|
|
1291
|
+
'fee_platform_amount'?: string | null;
|
|
1292
|
+
/**
|
|
1293
|
+
*
|
|
1294
|
+
* @type {string}
|
|
1295
|
+
* @memberof CreditEvent
|
|
1296
|
+
*/
|
|
1297
|
+
'fee_platform_free_amount'?: string | null;
|
|
1298
|
+
/**
|
|
1299
|
+
*
|
|
1300
|
+
* @type {string}
|
|
1301
|
+
* @memberof CreditEvent
|
|
1302
|
+
*/
|
|
1303
|
+
'fee_platform_reward_amount'?: string | null;
|
|
1304
|
+
/**
|
|
1305
|
+
*
|
|
1306
|
+
* @type {string}
|
|
1307
|
+
* @memberof CreditEvent
|
|
1308
|
+
*/
|
|
1309
|
+
'fee_platform_permanent_amount'?: string | null;
|
|
1310
|
+
/**
|
|
1311
|
+
*
|
|
1312
|
+
* @type {string}
|
|
1313
|
+
* @memberof CreditEvent
|
|
1314
|
+
*/
|
|
1315
|
+
'fee_dev_account'?: string | null;
|
|
1316
|
+
/**
|
|
1317
|
+
*
|
|
1318
|
+
* @type {string}
|
|
1319
|
+
* @memberof CreditEvent
|
|
1320
|
+
*/
|
|
1321
|
+
'fee_dev_amount'?: string | null;
|
|
1322
|
+
/**
|
|
1323
|
+
*
|
|
1324
|
+
* @type {string}
|
|
1325
|
+
* @memberof CreditEvent
|
|
1326
|
+
*/
|
|
1327
|
+
'fee_dev_free_amount'?: string | null;
|
|
1328
|
+
/**
|
|
1329
|
+
*
|
|
1330
|
+
* @type {string}
|
|
1331
|
+
* @memberof CreditEvent
|
|
1332
|
+
*/
|
|
1333
|
+
'fee_dev_reward_amount'?: string | null;
|
|
1334
|
+
/**
|
|
1335
|
+
*
|
|
1336
|
+
* @type {string}
|
|
1337
|
+
* @memberof CreditEvent
|
|
1338
|
+
*/
|
|
1339
|
+
'fee_dev_permanent_amount'?: string | null;
|
|
1340
|
+
/**
|
|
1341
|
+
*
|
|
1342
|
+
* @type {string}
|
|
1343
|
+
* @memberof CreditEvent
|
|
1344
|
+
*/
|
|
1345
|
+
'fee_agent_account'?: string | null;
|
|
1346
|
+
/**
|
|
1347
|
+
*
|
|
1348
|
+
* @type {string}
|
|
1349
|
+
* @memberof CreditEvent
|
|
1350
|
+
*/
|
|
1351
|
+
'fee_agent_amount'?: string | null;
|
|
1352
|
+
/**
|
|
1353
|
+
*
|
|
1354
|
+
* @type {string}
|
|
1355
|
+
* @memberof CreditEvent
|
|
1356
|
+
*/
|
|
1357
|
+
'fee_agent_free_amount'?: string | null;
|
|
1358
|
+
/**
|
|
1359
|
+
*
|
|
1360
|
+
* @type {string}
|
|
1361
|
+
* @memberof CreditEvent
|
|
1362
|
+
*/
|
|
1363
|
+
'fee_agent_reward_amount'?: string | null;
|
|
1364
|
+
/**
|
|
1365
|
+
*
|
|
1366
|
+
* @type {string}
|
|
1367
|
+
* @memberof CreditEvent
|
|
1368
|
+
*/
|
|
1369
|
+
'fee_agent_permanent_amount'?: string | null;
|
|
1370
|
+
/**
|
|
1371
|
+
*
|
|
1372
|
+
* @type {string}
|
|
1373
|
+
* @memberof CreditEvent
|
|
1374
|
+
*/
|
|
1375
|
+
'free_amount'?: string | null;
|
|
1376
|
+
/**
|
|
1377
|
+
*
|
|
1378
|
+
* @type {string}
|
|
1379
|
+
* @memberof CreditEvent
|
|
1380
|
+
*/
|
|
1381
|
+
'reward_amount'?: string | null;
|
|
1382
|
+
/**
|
|
1383
|
+
*
|
|
1384
|
+
* @type {string}
|
|
1385
|
+
* @memberof CreditEvent
|
|
1386
|
+
*/
|
|
1387
|
+
'permanent_amount'?: string | null;
|
|
1388
|
+
/**
|
|
1389
|
+
*
|
|
1390
|
+
* @type {string}
|
|
1391
|
+
* @memberof CreditEvent
|
|
1392
|
+
*/
|
|
1393
|
+
'note'?: string | null;
|
|
1394
|
+
/**
|
|
1395
|
+
* Timestamp when this event was created
|
|
1396
|
+
* @type {string}
|
|
1397
|
+
* @memberof CreditEvent
|
|
1398
|
+
*/
|
|
1399
|
+
'created_at': string;
|
|
1400
|
+
}
|
|
1401
|
+
/**
|
|
1402
|
+
* Credit event response model with agent name. Extends CreditEvent to include the agent name for better user experience.
|
|
1403
|
+
* @export
|
|
1404
|
+
* @interface CreditEventWithAgent
|
|
1405
|
+
*/
|
|
1406
|
+
export interface CreditEventWithAgent {
|
|
1407
|
+
/**
|
|
1408
|
+
* Unique identifier for the credit event
|
|
1409
|
+
* @type {string}
|
|
1410
|
+
* @memberof CreditEventWithAgent
|
|
1411
|
+
*/
|
|
1412
|
+
'id'?: string;
|
|
1413
|
+
/**
|
|
1414
|
+
* Account ID from which credits flow
|
|
1415
|
+
* @type {string}
|
|
1416
|
+
* @memberof CreditEventWithAgent
|
|
1417
|
+
*/
|
|
1418
|
+
'account_id'?: string;
|
|
1419
|
+
/**
|
|
1420
|
+
* Type of the event
|
|
1421
|
+
* @type {EventType}
|
|
1422
|
+
* @memberof CreditEventWithAgent
|
|
1423
|
+
*/
|
|
1424
|
+
'event_type': EventType;
|
|
1425
|
+
/**
|
|
1426
|
+
*
|
|
1427
|
+
* @type {string}
|
|
1428
|
+
* @memberof CreditEventWithAgent
|
|
1429
|
+
*/
|
|
1430
|
+
'user_id'?: string | null;
|
|
1431
|
+
/**
|
|
1432
|
+
* Type of upstream transaction
|
|
1433
|
+
* @type {UpstreamType}
|
|
1434
|
+
* @memberof CreditEventWithAgent
|
|
1435
|
+
*/
|
|
1436
|
+
'upstream_type': UpstreamType;
|
|
1437
|
+
/**
|
|
1438
|
+
* Upstream transaction ID if any
|
|
1439
|
+
* @type {string}
|
|
1440
|
+
* @memberof CreditEventWithAgent
|
|
1441
|
+
*/
|
|
1442
|
+
'upstream_tx_id': string;
|
|
1443
|
+
/**
|
|
1444
|
+
*
|
|
1445
|
+
* @type {string}
|
|
1446
|
+
* @memberof CreditEventWithAgent
|
|
1447
|
+
*/
|
|
1448
|
+
'agent_id'?: string | null;
|
|
1449
|
+
/**
|
|
1450
|
+
*
|
|
1451
|
+
* @type {string}
|
|
1452
|
+
* @memberof CreditEventWithAgent
|
|
1453
|
+
*/
|
|
1454
|
+
'start_message_id'?: string | null;
|
|
1455
|
+
/**
|
|
1456
|
+
*
|
|
1457
|
+
* @type {string}
|
|
1458
|
+
* @memberof CreditEventWithAgent
|
|
1459
|
+
*/
|
|
1460
|
+
'message_id'?: string | null;
|
|
1461
|
+
/**
|
|
1462
|
+
*
|
|
1463
|
+
* @type {string}
|
|
1464
|
+
* @memberof CreditEventWithAgent
|
|
1465
|
+
*/
|
|
1466
|
+
'model'?: string | null;
|
|
1467
|
+
/**
|
|
1468
|
+
*
|
|
1469
|
+
* @type {string}
|
|
1470
|
+
* @memberof CreditEventWithAgent
|
|
1471
|
+
*/
|
|
1472
|
+
'skill_call_id'?: string | null;
|
|
1473
|
+
/**
|
|
1474
|
+
*
|
|
1475
|
+
* @type {string}
|
|
1476
|
+
* @memberof CreditEventWithAgent
|
|
1477
|
+
*/
|
|
1478
|
+
'skill_name'?: string | null;
|
|
1479
|
+
/**
|
|
1480
|
+
* Direction of the credit flow
|
|
1481
|
+
* @type {Direction}
|
|
1482
|
+
* @memberof CreditEventWithAgent
|
|
1483
|
+
*/
|
|
1484
|
+
'direction': Direction;
|
|
1485
|
+
/**
|
|
1486
|
+
* Total amount (after discount) of credits involved
|
|
1487
|
+
* @type {string}
|
|
1488
|
+
* @memberof CreditEventWithAgent
|
|
1489
|
+
*/
|
|
1490
|
+
'total_amount'?: string;
|
|
1491
|
+
/**
|
|
1492
|
+
* Type of credits involved
|
|
1493
|
+
* @type {CreditType}
|
|
1494
|
+
* @memberof CreditEventWithAgent
|
|
1495
|
+
*/
|
|
1496
|
+
'credit_type': CreditType;
|
|
1497
|
+
/**
|
|
1498
|
+
*
|
|
1499
|
+
* @type {Array<CreditType>}
|
|
1500
|
+
* @memberof CreditEventWithAgent
|
|
1501
|
+
*/
|
|
1502
|
+
'credit_types'?: Array<CreditType> | null;
|
|
1503
|
+
/**
|
|
1504
|
+
*
|
|
1505
|
+
* @type {string}
|
|
1506
|
+
* @memberof CreditEventWithAgent
|
|
1507
|
+
*/
|
|
1508
|
+
'balance_after'?: string | null;
|
|
1509
|
+
/**
|
|
1510
|
+
* Base amount of credits involved
|
|
1511
|
+
* @type {string}
|
|
1512
|
+
* @memberof CreditEventWithAgent
|
|
1513
|
+
*/
|
|
1514
|
+
'base_amount'?: string;
|
|
1515
|
+
/**
|
|
1516
|
+
*
|
|
1517
|
+
* @type {string}
|
|
1518
|
+
* @memberof CreditEventWithAgent
|
|
1519
|
+
*/
|
|
1520
|
+
'base_discount_amount'?: string | null;
|
|
1521
|
+
/**
|
|
1522
|
+
*
|
|
1523
|
+
* @type {string}
|
|
1524
|
+
* @memberof CreditEventWithAgent
|
|
1525
|
+
*/
|
|
1526
|
+
'base_original_amount'?: string | null;
|
|
1527
|
+
/**
|
|
1528
|
+
*
|
|
1529
|
+
* @type {string}
|
|
1530
|
+
* @memberof CreditEventWithAgent
|
|
1531
|
+
*/
|
|
1532
|
+
'base_llm_amount'?: string | null;
|
|
1533
|
+
/**
|
|
1534
|
+
*
|
|
1535
|
+
* @type {string}
|
|
1536
|
+
* @memberof CreditEventWithAgent
|
|
1537
|
+
*/
|
|
1538
|
+
'base_skill_amount'?: string | null;
|
|
1539
|
+
/**
|
|
1540
|
+
*
|
|
1541
|
+
* @type {string}
|
|
1542
|
+
* @memberof CreditEventWithAgent
|
|
1543
|
+
*/
|
|
1544
|
+
'fee_platform_amount'?: string | null;
|
|
1545
|
+
/**
|
|
1546
|
+
*
|
|
1547
|
+
* @type {string}
|
|
1548
|
+
* @memberof CreditEventWithAgent
|
|
1549
|
+
*/
|
|
1550
|
+
'fee_platform_free_amount'?: string | null;
|
|
1551
|
+
/**
|
|
1552
|
+
*
|
|
1553
|
+
* @type {string}
|
|
1554
|
+
* @memberof CreditEventWithAgent
|
|
1555
|
+
*/
|
|
1556
|
+
'fee_platform_reward_amount'?: string | null;
|
|
1557
|
+
/**
|
|
1558
|
+
*
|
|
1559
|
+
* @type {string}
|
|
1560
|
+
* @memberof CreditEventWithAgent
|
|
1561
|
+
*/
|
|
1562
|
+
'fee_platform_permanent_amount'?: string | null;
|
|
1563
|
+
/**
|
|
1564
|
+
*
|
|
1565
|
+
* @type {string}
|
|
1566
|
+
* @memberof CreditEventWithAgent
|
|
1567
|
+
*/
|
|
1568
|
+
'fee_dev_account'?: string | null;
|
|
1569
|
+
/**
|
|
1570
|
+
*
|
|
1571
|
+
* @type {string}
|
|
1572
|
+
* @memberof CreditEventWithAgent
|
|
1573
|
+
*/
|
|
1574
|
+
'fee_dev_amount'?: string | null;
|
|
1575
|
+
/**
|
|
1576
|
+
*
|
|
1577
|
+
* @type {string}
|
|
1578
|
+
* @memberof CreditEventWithAgent
|
|
1579
|
+
*/
|
|
1580
|
+
'fee_dev_free_amount'?: string | null;
|
|
1581
|
+
/**
|
|
1582
|
+
*
|
|
1583
|
+
* @type {string}
|
|
1584
|
+
* @memberof CreditEventWithAgent
|
|
1585
|
+
*/
|
|
1586
|
+
'fee_dev_reward_amount'?: string | null;
|
|
1587
|
+
/**
|
|
1588
|
+
*
|
|
1589
|
+
* @type {string}
|
|
1590
|
+
* @memberof CreditEventWithAgent
|
|
1591
|
+
*/
|
|
1592
|
+
'fee_dev_permanent_amount'?: string | null;
|
|
1593
|
+
/**
|
|
1594
|
+
*
|
|
1595
|
+
* @type {string}
|
|
1596
|
+
* @memberof CreditEventWithAgent
|
|
1597
|
+
*/
|
|
1598
|
+
'fee_agent_account'?: string | null;
|
|
1599
|
+
/**
|
|
1600
|
+
*
|
|
1601
|
+
* @type {string}
|
|
1602
|
+
* @memberof CreditEventWithAgent
|
|
1603
|
+
*/
|
|
1604
|
+
'fee_agent_amount'?: string | null;
|
|
1605
|
+
/**
|
|
1606
|
+
*
|
|
1607
|
+
* @type {string}
|
|
1608
|
+
* @memberof CreditEventWithAgent
|
|
1609
|
+
*/
|
|
1610
|
+
'fee_agent_free_amount'?: string | null;
|
|
1611
|
+
/**
|
|
1612
|
+
*
|
|
1613
|
+
* @type {string}
|
|
1614
|
+
* @memberof CreditEventWithAgent
|
|
1615
|
+
*/
|
|
1616
|
+
'fee_agent_reward_amount'?: string | null;
|
|
1617
|
+
/**
|
|
1618
|
+
*
|
|
1619
|
+
* @type {string}
|
|
1620
|
+
* @memberof CreditEventWithAgent
|
|
1621
|
+
*/
|
|
1622
|
+
'fee_agent_permanent_amount'?: string | null;
|
|
1623
|
+
/**
|
|
1624
|
+
*
|
|
1625
|
+
* @type {string}
|
|
1626
|
+
* @memberof CreditEventWithAgent
|
|
1627
|
+
*/
|
|
1628
|
+
'free_amount'?: string | null;
|
|
1629
|
+
/**
|
|
1630
|
+
*
|
|
1631
|
+
* @type {string}
|
|
1632
|
+
* @memberof CreditEventWithAgent
|
|
1633
|
+
*/
|
|
1634
|
+
'reward_amount'?: string | null;
|
|
1635
|
+
/**
|
|
1636
|
+
*
|
|
1637
|
+
* @type {string}
|
|
1638
|
+
* @memberof CreditEventWithAgent
|
|
1639
|
+
*/
|
|
1640
|
+
'permanent_amount'?: string | null;
|
|
1641
|
+
/**
|
|
1642
|
+
*
|
|
1643
|
+
* @type {string}
|
|
1644
|
+
* @memberof CreditEventWithAgent
|
|
1645
|
+
*/
|
|
1646
|
+
'note'?: string | null;
|
|
1647
|
+
/**
|
|
1648
|
+
* Timestamp when this event was created
|
|
1649
|
+
* @type {string}
|
|
1650
|
+
* @memberof CreditEventWithAgent
|
|
1651
|
+
*/
|
|
1652
|
+
'created_at': string;
|
|
1653
|
+
/**
|
|
1654
|
+
*
|
|
1655
|
+
* @type {string}
|
|
1656
|
+
* @memberof CreditEventWithAgent
|
|
1657
|
+
*/
|
|
1658
|
+
'agent_name'?: string | null;
|
|
1659
|
+
}
|
|
1660
|
+
/**
|
|
1661
|
+
* 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.
|
|
1662
|
+
* @export
|
|
1663
|
+
* @interface CreditEventsResponse
|
|
1664
|
+
*/
|
|
1665
|
+
export interface CreditEventsResponse {
|
|
1666
|
+
/**
|
|
1667
|
+
* List of credit events with agent names
|
|
1668
|
+
* @type {Array<CreditEventWithAgent>}
|
|
1669
|
+
* @memberof CreditEventsResponse
|
|
1670
|
+
*/
|
|
1671
|
+
'data': Array<CreditEventWithAgent>;
|
|
1672
|
+
/**
|
|
1673
|
+
* Indicates if there are more items
|
|
1674
|
+
* @type {boolean}
|
|
1675
|
+
* @memberof CreditEventsResponse
|
|
1676
|
+
*/
|
|
1677
|
+
'has_more': boolean;
|
|
1678
|
+
/**
|
|
1679
|
+
*
|
|
1680
|
+
* @type {string}
|
|
1681
|
+
* @memberof CreditEventsResponse
|
|
1682
|
+
*/
|
|
1683
|
+
'next_cursor'?: string | null;
|
|
1684
|
+
}
|
|
1685
|
+
/**
|
|
1686
|
+
* Credit transaction response model with associated event data. Extends CreditTransaction to include the related CreditEvent if available.
|
|
1687
|
+
* @export
|
|
1688
|
+
* @interface CreditTransactionResp
|
|
1689
|
+
*/
|
|
1690
|
+
export interface CreditTransactionResp {
|
|
1691
|
+
/**
|
|
1692
|
+
* Unique identifier for the credit transaction
|
|
1693
|
+
* @type {string}
|
|
1694
|
+
* @memberof CreditTransactionResp
|
|
1695
|
+
*/
|
|
1696
|
+
'id'?: string;
|
|
1697
|
+
/**
|
|
1698
|
+
* ID of the account this transaction belongs to
|
|
1699
|
+
* @type {string}
|
|
1700
|
+
* @memberof CreditTransactionResp
|
|
1701
|
+
*/
|
|
1702
|
+
'account_id': string;
|
|
1703
|
+
/**
|
|
1704
|
+
* ID of the event that triggered this transaction
|
|
1705
|
+
* @type {string}
|
|
1706
|
+
* @memberof CreditTransactionResp
|
|
1707
|
+
*/
|
|
1708
|
+
'event_id': string;
|
|
1709
|
+
/**
|
|
1710
|
+
* Type of the transaction
|
|
1711
|
+
* @type {TransactionType}
|
|
1712
|
+
* @memberof CreditTransactionResp
|
|
1713
|
+
*/
|
|
1714
|
+
'tx_type': TransactionType;
|
|
1715
|
+
/**
|
|
1716
|
+
* Whether this is a credit or debit transaction
|
|
1717
|
+
* @type {CreditDebit}
|
|
1718
|
+
* @memberof CreditTransactionResp
|
|
1719
|
+
*/
|
|
1720
|
+
'credit_debit': CreditDebit;
|
|
1721
|
+
/**
|
|
1722
|
+
* Amount of credits changed
|
|
1723
|
+
* @type {string}
|
|
1724
|
+
* @memberof CreditTransactionResp
|
|
1725
|
+
*/
|
|
1726
|
+
'change_amount'?: string;
|
|
1727
|
+
/**
|
|
1728
|
+
* Type of credits involved
|
|
1729
|
+
* @type {CreditType}
|
|
1730
|
+
* @memberof CreditTransactionResp
|
|
1731
|
+
*/
|
|
1732
|
+
'credit_type': CreditType;
|
|
1733
|
+
/**
|
|
1734
|
+
* Timestamp when this transaction was created
|
|
1735
|
+
* @type {string}
|
|
1736
|
+
* @memberof CreditTransactionResp
|
|
1737
|
+
*/
|
|
1738
|
+
'created_at': string;
|
|
1739
|
+
/**
|
|
1740
|
+
*
|
|
1741
|
+
* @type {CreditEvent}
|
|
1742
|
+
* @memberof CreditTransactionResp
|
|
1743
|
+
*/
|
|
1744
|
+
'event'?: CreditEvent | null;
|
|
1745
|
+
}
|
|
1746
|
+
/**
|
|
1747
|
+
* Paginated response model for credit transactions. Contains a list of credit transactions (with event data), a flag for more items, and a pagination cursor.
|
|
1748
|
+
* @export
|
|
1749
|
+
* @interface CreditTransactionsResponse
|
|
1750
|
+
*/
|
|
1751
|
+
export interface CreditTransactionsResponse {
|
|
1752
|
+
/**
|
|
1753
|
+
* List of credit transactions
|
|
1754
|
+
* @type {Array<CreditTransactionResp>}
|
|
1755
|
+
* @memberof CreditTransactionsResponse
|
|
1756
|
+
*/
|
|
1757
|
+
'data': Array<CreditTransactionResp>;
|
|
1758
|
+
/**
|
|
1759
|
+
* Indicates if there are more items
|
|
1760
|
+
* @type {boolean}
|
|
1761
|
+
* @memberof CreditTransactionsResponse
|
|
1762
|
+
*/
|
|
1763
|
+
'has_more': boolean;
|
|
1764
|
+
/**
|
|
1765
|
+
*
|
|
1766
|
+
* @type {string}
|
|
1767
|
+
* @memberof CreditTransactionsResponse
|
|
1768
|
+
*/
|
|
1769
|
+
'next_cursor'?: string | null;
|
|
1770
|
+
}
|
|
1771
|
+
/**
|
|
1772
|
+
* Credit type is used in db column names, do not change it.
|
|
1773
|
+
* @export
|
|
1774
|
+
* @enum {string}
|
|
1775
|
+
*/
|
|
1776
|
+
export declare const CreditType: {
|
|
1777
|
+
readonly FreeCredits: "free_credits";
|
|
1778
|
+
readonly RewardCredits: "reward_credits";
|
|
1779
|
+
readonly Credits: "credits";
|
|
1780
|
+
};
|
|
1781
|
+
export type CreditType = typeof CreditType[keyof typeof CreditType];
|
|
1782
|
+
/**
|
|
1783
|
+
* Direction of credit flow.
|
|
1784
|
+
* @export
|
|
1785
|
+
* @enum {string}
|
|
1786
|
+
*/
|
|
1787
|
+
export declare const Direction: {
|
|
1788
|
+
readonly Income: "income";
|
|
1789
|
+
readonly Expense: "expense";
|
|
1790
|
+
};
|
|
1791
|
+
export type Direction = typeof Direction[keyof typeof Direction];
|
|
1792
|
+
/**
|
|
1793
|
+
* Type of credit event.
|
|
1794
|
+
* @export
|
|
1795
|
+
* @enum {string}
|
|
1796
|
+
*/
|
|
1797
|
+
export declare const EventType: {
|
|
1798
|
+
readonly Memory: "memory";
|
|
1799
|
+
readonly Message: "message";
|
|
1800
|
+
readonly SkillCall: "skill_call";
|
|
1801
|
+
readonly Voice: "voice";
|
|
1802
|
+
readonly KnowledgeBase: "knowledge_base";
|
|
1803
|
+
readonly Recharge: "recharge";
|
|
1804
|
+
readonly Refund: "refund";
|
|
1805
|
+
readonly Adjustment: "adjustment";
|
|
1806
|
+
readonly Refill: "refill";
|
|
1807
|
+
readonly Reward: "reward";
|
|
1808
|
+
readonly EventReward: "event_reward";
|
|
1809
|
+
readonly RechargeBonus: "recharge_bonus";
|
|
1810
|
+
};
|
|
1811
|
+
export type EventType = typeof EventType[keyof typeof EventType];
|
|
1812
|
+
/**
|
|
1813
|
+
* Fee percentage of the agent
|
|
1814
|
+
* @export
|
|
1815
|
+
* @interface FeePercentage
|
|
1816
|
+
*/
|
|
1817
|
+
export interface FeePercentage {
|
|
1818
|
+
}
|
|
1819
|
+
/**
|
|
1820
|
+
*
|
|
1821
|
+
* @export
|
|
1822
|
+
* @interface HTTPValidationError
|
|
1823
|
+
*/
|
|
1824
|
+
export interface HTTPValidationError {
|
|
1825
|
+
/**
|
|
1826
|
+
*
|
|
1827
|
+
* @type {Array<ValidationError>}
|
|
1828
|
+
* @memberof HTTPValidationError
|
|
1829
|
+
*/
|
|
1830
|
+
'detail'?: Array<ValidationError>;
|
|
1831
|
+
}
|
|
1832
|
+
/**
|
|
1833
|
+
* LLM model information with provider display name.
|
|
1834
|
+
* @export
|
|
1835
|
+
* @interface LLMModelInfoWithProviderName
|
|
1836
|
+
*/
|
|
1837
|
+
export interface LLMModelInfoWithProviderName {
|
|
1838
|
+
/**
|
|
1839
|
+
*
|
|
1840
|
+
* @type {string}
|
|
1841
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1842
|
+
*/
|
|
1843
|
+
'id': string;
|
|
1844
|
+
/**
|
|
1845
|
+
*
|
|
1846
|
+
* @type {string}
|
|
1847
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1848
|
+
*/
|
|
1849
|
+
'name': string;
|
|
1850
|
+
/**
|
|
1851
|
+
*
|
|
1852
|
+
* @type {LLMProvider}
|
|
1853
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1854
|
+
*/
|
|
1855
|
+
'provider': LLMProvider;
|
|
1856
|
+
/**
|
|
1857
|
+
*
|
|
1858
|
+
* @type {boolean}
|
|
1859
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1860
|
+
*/
|
|
1861
|
+
'enabled'?: boolean;
|
|
1862
|
+
/**
|
|
1863
|
+
*
|
|
1864
|
+
* @type {string}
|
|
1865
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1866
|
+
*/
|
|
1867
|
+
'input_price': string;
|
|
1868
|
+
/**
|
|
1869
|
+
*
|
|
1870
|
+
* @type {string}
|
|
1871
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1872
|
+
*/
|
|
1873
|
+
'output_price': string;
|
|
1874
|
+
/**
|
|
1875
|
+
*
|
|
1876
|
+
* @type {number}
|
|
1877
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1878
|
+
*/
|
|
1879
|
+
'price_level'?: number | null;
|
|
1880
|
+
/**
|
|
1881
|
+
*
|
|
1882
|
+
* @type {number}
|
|
1883
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1884
|
+
*/
|
|
1885
|
+
'context_length': number;
|
|
1886
|
+
/**
|
|
1887
|
+
*
|
|
1888
|
+
* @type {number}
|
|
1889
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1890
|
+
*/
|
|
1891
|
+
'output_length': number;
|
|
1892
|
+
/**
|
|
1893
|
+
*
|
|
1894
|
+
* @type {number}
|
|
1895
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1896
|
+
*/
|
|
1897
|
+
'intelligence': number;
|
|
1898
|
+
/**
|
|
1899
|
+
*
|
|
1900
|
+
* @type {number}
|
|
1901
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1902
|
+
*/
|
|
1903
|
+
'speed': number;
|
|
1904
|
+
/**
|
|
1905
|
+
*
|
|
1906
|
+
* @type {boolean}
|
|
1907
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1908
|
+
*/
|
|
1909
|
+
'supports_image_input'?: boolean;
|
|
1910
|
+
/**
|
|
1911
|
+
*
|
|
1912
|
+
* @type {boolean}
|
|
1913
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1914
|
+
*/
|
|
1915
|
+
'supports_skill_calls'?: boolean;
|
|
1916
|
+
/**
|
|
1917
|
+
*
|
|
1918
|
+
* @type {boolean}
|
|
1919
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1920
|
+
*/
|
|
1921
|
+
'supports_structured_output'?: boolean;
|
|
1922
|
+
/**
|
|
1923
|
+
*
|
|
1924
|
+
* @type {boolean}
|
|
1925
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1926
|
+
*/
|
|
1927
|
+
'has_reasoning'?: boolean;
|
|
1928
|
+
/**
|
|
1929
|
+
*
|
|
1930
|
+
* @type {boolean}
|
|
1931
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1932
|
+
*/
|
|
1933
|
+
'supports_search'?: boolean;
|
|
1934
|
+
/**
|
|
1935
|
+
*
|
|
1936
|
+
* @type {boolean}
|
|
1937
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1938
|
+
*/
|
|
1939
|
+
'supports_temperature'?: boolean;
|
|
1940
|
+
/**
|
|
1941
|
+
*
|
|
1942
|
+
* @type {boolean}
|
|
1943
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1944
|
+
*/
|
|
1945
|
+
'supports_frequency_penalty'?: boolean;
|
|
1946
|
+
/**
|
|
1947
|
+
*
|
|
1948
|
+
* @type {boolean}
|
|
1949
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1950
|
+
*/
|
|
1951
|
+
'supports_presence_penalty'?: boolean;
|
|
1952
|
+
/**
|
|
1953
|
+
*
|
|
1954
|
+
* @type {string}
|
|
1955
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1956
|
+
*/
|
|
1957
|
+
'api_base'?: string | null;
|
|
1958
|
+
/**
|
|
1959
|
+
*
|
|
1960
|
+
* @type {number}
|
|
1961
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1962
|
+
*/
|
|
1963
|
+
'timeout'?: number;
|
|
1964
|
+
/**
|
|
1965
|
+
* Timestamp when this data was created
|
|
1966
|
+
* @type {string}
|
|
1967
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1968
|
+
*/
|
|
1969
|
+
'created_at'?: string;
|
|
1970
|
+
/**
|
|
1971
|
+
* Timestamp when this data was updated
|
|
1972
|
+
* @type {string}
|
|
1973
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1974
|
+
*/
|
|
1975
|
+
'updated_at'?: string;
|
|
1976
|
+
/**
|
|
1977
|
+
*
|
|
1978
|
+
* @type {string}
|
|
1979
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1980
|
+
*/
|
|
1981
|
+
'provider_name': string;
|
|
1982
|
+
}
|
|
1983
|
+
/**
|
|
1984
|
+
*
|
|
1985
|
+
* @export
|
|
1986
|
+
* @enum {string}
|
|
1987
|
+
*/
|
|
1988
|
+
export declare const LLMProvider: {
|
|
1989
|
+
readonly Openai: "openai";
|
|
1990
|
+
readonly Deepseek: "deepseek";
|
|
1991
|
+
readonly Xai: "xai";
|
|
1992
|
+
readonly Eternal: "eternal";
|
|
1993
|
+
readonly Reigent: "reigent";
|
|
1994
|
+
readonly Venice: "venice";
|
|
1995
|
+
};
|
|
1996
|
+
export type LLMProvider = typeof LLMProvider[keyof typeof LLMProvider];
|
|
1997
|
+
/**
|
|
1998
|
+
* Type of credit account owner.
|
|
1999
|
+
* @export
|
|
2000
|
+
* @enum {string}
|
|
2001
|
+
*/
|
|
2002
|
+
export declare const OwnerType: {
|
|
2003
|
+
readonly User: "user";
|
|
2004
|
+
readonly Agent: "agent";
|
|
2005
|
+
readonly Platform: "platform";
|
|
2006
|
+
};
|
|
2007
|
+
export type OwnerType = typeof OwnerType[keyof typeof OwnerType];
|
|
2008
|
+
/**
|
|
2009
|
+
* Pydantic model for Skill.
|
|
2010
|
+
* @export
|
|
2011
|
+
* @interface Skill
|
|
2012
|
+
*/
|
|
2013
|
+
export interface Skill {
|
|
2014
|
+
/**
|
|
2015
|
+
* Name of the skill
|
|
2016
|
+
* @type {string}
|
|
2017
|
+
* @memberof Skill
|
|
2018
|
+
*/
|
|
2019
|
+
'name': string;
|
|
2020
|
+
/**
|
|
2021
|
+
* Is this skill enabled?
|
|
2022
|
+
* @type {boolean}
|
|
2023
|
+
* @memberof Skill
|
|
2024
|
+
*/
|
|
2025
|
+
'enabled': boolean;
|
|
2026
|
+
/**
|
|
2027
|
+
* Category of the skill
|
|
2028
|
+
* @type {string}
|
|
2029
|
+
* @memberof Skill
|
|
2030
|
+
*/
|
|
2031
|
+
'category': string;
|
|
2032
|
+
/**
|
|
2033
|
+
*
|
|
2034
|
+
* @type {string}
|
|
2035
|
+
* @memberof Skill
|
|
2036
|
+
*/
|
|
2037
|
+
'config_name': string | null;
|
|
2038
|
+
/**
|
|
2039
|
+
*
|
|
2040
|
+
* @type {number}
|
|
2041
|
+
* @memberof Skill
|
|
2042
|
+
*/
|
|
2043
|
+
'price_level': number | null;
|
|
2044
|
+
/**
|
|
2045
|
+
* Price for this skill
|
|
2046
|
+
* @type {string}
|
|
2047
|
+
* @memberof Skill
|
|
2048
|
+
*/
|
|
2049
|
+
'price'?: string;
|
|
2050
|
+
/**
|
|
2051
|
+
* Price for this skill with self key
|
|
2052
|
+
* @type {string}
|
|
2053
|
+
* @memberof Skill
|
|
2054
|
+
*/
|
|
2055
|
+
'price_self_key'?: string;
|
|
2056
|
+
/**
|
|
2057
|
+
*
|
|
2058
|
+
* @type {number}
|
|
2059
|
+
* @memberof Skill
|
|
2060
|
+
*/
|
|
2061
|
+
'rate_limit_count': number | null;
|
|
2062
|
+
/**
|
|
2063
|
+
*
|
|
2064
|
+
* @type {number}
|
|
2065
|
+
* @memberof Skill
|
|
2066
|
+
*/
|
|
2067
|
+
'rate_limit_minutes': number | null;
|
|
2068
|
+
/**
|
|
2069
|
+
*
|
|
2070
|
+
* @type {string}
|
|
2071
|
+
* @memberof Skill
|
|
2072
|
+
*/
|
|
2073
|
+
'author': string | null;
|
|
2074
|
+
/**
|
|
2075
|
+
* Timestamp when this record was created
|
|
2076
|
+
* @type {string}
|
|
2077
|
+
* @memberof Skill
|
|
2078
|
+
*/
|
|
2079
|
+
'created_at': string;
|
|
2080
|
+
/**
|
|
2081
|
+
* Timestamp when this record was last updated
|
|
2082
|
+
* @type {string}
|
|
2083
|
+
* @memberof Skill
|
|
2084
|
+
*/
|
|
2085
|
+
'updated_at': string;
|
|
2086
|
+
}
|
|
2087
|
+
/**
|
|
2088
|
+
* Type of credit transaction.
|
|
2089
|
+
* @export
|
|
2090
|
+
* @enum {string}
|
|
2091
|
+
*/
|
|
2092
|
+
export declare const TransactionType: {
|
|
2093
|
+
readonly Pay: "pay";
|
|
2094
|
+
readonly ReceiveBaseLlm: "receive_base_llm";
|
|
2095
|
+
readonly ReceiveBaseSkill: "receive_base_skill";
|
|
2096
|
+
readonly ReceiveBaseMemory: "receive_base_memory";
|
|
2097
|
+
readonly ReceiveBaseVoice: "receive_base_voice";
|
|
2098
|
+
readonly ReceiveBaseKnowledge: "receive_base_knowledge";
|
|
2099
|
+
readonly ReceiveFeeDev: "receive_fee_dev";
|
|
2100
|
+
readonly ReceiveFeeAgent: "receive_fee_agent";
|
|
2101
|
+
readonly ReceiveFeePlatform: "receive_fee_platform";
|
|
2102
|
+
readonly Recharge: "recharge";
|
|
2103
|
+
readonly Refund: "refund";
|
|
2104
|
+
readonly Adjustment: "adjustment";
|
|
2105
|
+
readonly Refill: "refill";
|
|
2106
|
+
readonly Reward: "reward";
|
|
2107
|
+
readonly EventReward: "event_reward";
|
|
2108
|
+
readonly RechargeBonus: "recharge_bonus";
|
|
2109
|
+
};
|
|
2110
|
+
export type TransactionType = typeof TransactionType[keyof typeof TransactionType];
|
|
2111
|
+
/**
|
|
2112
|
+
* Type of upstream transaction.
|
|
2113
|
+
* @export
|
|
2114
|
+
* @enum {string}
|
|
2115
|
+
*/
|
|
2116
|
+
export declare const UpstreamType: {
|
|
2117
|
+
readonly Api: "api";
|
|
2118
|
+
readonly Scheduler: "scheduler";
|
|
2119
|
+
readonly Executor: "executor";
|
|
2120
|
+
readonly Initializer: "initializer";
|
|
2121
|
+
};
|
|
2122
|
+
export type UpstreamType = typeof UpstreamType[keyof typeof UpstreamType];
|
|
2123
|
+
/**
|
|
2124
|
+
*
|
|
2125
|
+
* @export
|
|
2126
|
+
* @interface ValidationError
|
|
2127
|
+
*/
|
|
2128
|
+
export interface ValidationError {
|
|
2129
|
+
/**
|
|
2130
|
+
*
|
|
2131
|
+
* @type {Array<ValidationErrorLocInner>}
|
|
2132
|
+
* @memberof ValidationError
|
|
2133
|
+
*/
|
|
2134
|
+
'loc': Array<ValidationErrorLocInner>;
|
|
2135
|
+
/**
|
|
2136
|
+
*
|
|
2137
|
+
* @type {string}
|
|
2138
|
+
* @memberof ValidationError
|
|
2139
|
+
*/
|
|
2140
|
+
'msg': string;
|
|
2141
|
+
/**
|
|
2142
|
+
*
|
|
2143
|
+
* @type {string}
|
|
2144
|
+
* @memberof ValidationError
|
|
2145
|
+
*/
|
|
2146
|
+
'type': string;
|
|
2147
|
+
}
|
|
2148
|
+
/**
|
|
2149
|
+
*
|
|
2150
|
+
* @export
|
|
2151
|
+
* @interface ValidationErrorLocInner
|
|
2152
|
+
*/
|
|
2153
|
+
export interface ValidationErrorLocInner {
|
|
2154
|
+
}
|
|
2155
|
+
/**
|
|
2156
|
+
* AgentApi - axios parameter creator
|
|
2157
|
+
* @export
|
|
2158
|
+
*/
|
|
2159
|
+
export declare const AgentApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2160
|
+
/**
|
|
2161
|
+
* Create a new agent owned by the current user. The agent will be initialized with the provided details.
|
|
2162
|
+
* @summary Create a new agent
|
|
2163
|
+
* @param {AgentUpdate} agentUpdate
|
|
2164
|
+
* @param {*} [options] Override http request option.
|
|
2165
|
+
* @throws {RequiredError}
|
|
2166
|
+
*/
|
|
2167
|
+
createAgent: (agentUpdate: AgentUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2168
|
+
/**
|
|
2169
|
+
* Retrieve a specific agent by its ID. Returns 404 if not found.
|
|
2170
|
+
* @summary Get agent by ID
|
|
2171
|
+
* @param {string} aid Agent ID
|
|
2172
|
+
* @param {*} [options] Override http request option.
|
|
2173
|
+
* @throws {RequiredError}
|
|
2174
|
+
*/
|
|
2175
|
+
getAgentById: (aid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2176
|
+
/**
|
|
2177
|
+
* Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
|
|
2178
|
+
* @summary Get Agent Statistics
|
|
2179
|
+
* @param {string} aid ID of the agent
|
|
2180
|
+
* @param {*} [options] Override http request option.
|
|
2181
|
+
* @throws {RequiredError}
|
|
2182
|
+
*/
|
|
2183
|
+
getAgentStatistics: (aid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2184
|
+
};
|
|
2185
|
+
/**
|
|
2186
|
+
* AgentApi - functional programming interface
|
|
2187
|
+
* @export
|
|
2188
|
+
*/
|
|
2189
|
+
export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
2190
|
+
/**
|
|
2191
|
+
* Create a new agent owned by the current user. The agent will be initialized with the provided details.
|
|
2192
|
+
* @summary Create a new agent
|
|
2193
|
+
* @param {AgentUpdate} agentUpdate
|
|
2194
|
+
* @param {*} [options] Override http request option.
|
|
2195
|
+
* @throws {RequiredError}
|
|
2196
|
+
*/
|
|
2197
|
+
createAgent(agentUpdate: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentResponse>>;
|
|
2198
|
+
/**
|
|
2199
|
+
* Retrieve a specific agent by its ID. Returns 404 if not found.
|
|
2200
|
+
* @summary Get agent by ID
|
|
2201
|
+
* @param {string} aid Agent ID
|
|
2202
|
+
* @param {*} [options] Override http request option.
|
|
2203
|
+
* @throws {RequiredError}
|
|
2204
|
+
*/
|
|
2205
|
+
getAgentById(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentResponse>>;
|
|
2206
|
+
/**
|
|
2207
|
+
* Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
|
|
2208
|
+
* @summary Get Agent Statistics
|
|
2209
|
+
* @param {string} aid ID of the agent
|
|
2210
|
+
* @param {*} [options] Override http request option.
|
|
2211
|
+
* @throws {RequiredError}
|
|
2212
|
+
*/
|
|
2213
|
+
getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentStatisticsResponse>>;
|
|
2214
|
+
};
|
|
2215
|
+
/**
|
|
2216
|
+
* AgentApi - factory interface
|
|
2217
|
+
* @export
|
|
2218
|
+
*/
|
|
2219
|
+
export declare const AgentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2220
|
+
/**
|
|
2221
|
+
* Create a new agent owned by the current user. The agent will be initialized with the provided details.
|
|
2222
|
+
* @summary Create a new agent
|
|
2223
|
+
* @param {AgentUpdate} agentUpdate
|
|
2224
|
+
* @param {*} [options] Override http request option.
|
|
2225
|
+
* @throws {RequiredError}
|
|
2226
|
+
*/
|
|
2227
|
+
createAgent(agentUpdate: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<AgentResponse>;
|
|
2228
|
+
/**
|
|
2229
|
+
* Retrieve a specific agent by its ID. Returns 404 if not found.
|
|
2230
|
+
* @summary Get agent by ID
|
|
2231
|
+
* @param {string} aid Agent ID
|
|
2232
|
+
* @param {*} [options] Override http request option.
|
|
2233
|
+
* @throws {RequiredError}
|
|
2234
|
+
*/
|
|
2235
|
+
getAgentById(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentResponse>;
|
|
2236
|
+
/**
|
|
2237
|
+
* Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
|
|
2238
|
+
* @summary Get Agent Statistics
|
|
2239
|
+
* @param {string} aid ID of the agent
|
|
2240
|
+
* @param {*} [options] Override http request option.
|
|
2241
|
+
* @throws {RequiredError}
|
|
2242
|
+
*/
|
|
2243
|
+
getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentStatisticsResponse>;
|
|
2244
|
+
};
|
|
2245
|
+
/**
|
|
2246
|
+
* AgentApi - object-oriented interface
|
|
2247
|
+
* @export
|
|
2248
|
+
* @class AgentApi
|
|
2249
|
+
* @extends {BaseAPI}
|
|
2250
|
+
*/
|
|
2251
|
+
export declare class AgentApi extends BaseAPI {
|
|
2252
|
+
/**
|
|
2253
|
+
* Create a new agent owned by the current user. The agent will be initialized with the provided details.
|
|
2254
|
+
* @summary Create a new agent
|
|
2255
|
+
* @param {AgentUpdate} agentUpdate
|
|
2256
|
+
* @param {*} [options] Override http request option.
|
|
2257
|
+
* @throws {RequiredError}
|
|
2258
|
+
* @memberof AgentApi
|
|
2259
|
+
*/
|
|
2260
|
+
createAgent(agentUpdate: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentResponse, any>>;
|
|
2261
|
+
/**
|
|
2262
|
+
* Retrieve a specific agent by its ID. Returns 404 if not found.
|
|
2263
|
+
* @summary Get agent by ID
|
|
2264
|
+
* @param {string} aid Agent ID
|
|
2265
|
+
* @param {*} [options] Override http request option.
|
|
2266
|
+
* @throws {RequiredError}
|
|
2267
|
+
* @memberof AgentApi
|
|
2268
|
+
*/
|
|
2269
|
+
getAgentById(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentResponse, any>>;
|
|
2270
|
+
/**
|
|
2271
|
+
* Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
|
|
2272
|
+
* @summary Get Agent Statistics
|
|
2273
|
+
* @param {string} aid ID of the agent
|
|
2274
|
+
* @param {*} [options] Override http request option.
|
|
2275
|
+
* @throws {RequiredError}
|
|
2276
|
+
* @memberof AgentApi
|
|
2277
|
+
*/
|
|
2278
|
+
getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentStatisticsResponse, any>>;
|
|
2279
|
+
}
|
|
2280
|
+
/**
|
|
2281
|
+
* ChatApi - axios parameter creator
|
|
2282
|
+
* @export
|
|
2283
|
+
*/
|
|
2284
|
+
export declare const ChatApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2285
|
+
/**
|
|
2286
|
+
* Create a new chat thread for a specific agent and user.
|
|
2287
|
+
* @summary Create a new chat thread
|
|
2288
|
+
* @param {string} aid Agent ID
|
|
2289
|
+
* @param {*} [options] Override http request option.
|
|
2290
|
+
* @throws {RequiredError}
|
|
2291
|
+
*/
|
|
2292
|
+
createChatThread: (aid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2293
|
+
/**
|
|
2294
|
+
* Delete a specific chat thread for the current user and agent. Returns 404 if not found or not owned by the user.
|
|
2295
|
+
* @summary Delete a chat thread
|
|
2296
|
+
* @param {string} aid Agent ID
|
|
2297
|
+
* @param {string} chatId Chat ID
|
|
2298
|
+
* @param {*} [options] Override http request option.
|
|
2299
|
+
* @throws {RequiredError}
|
|
2300
|
+
*/
|
|
2301
|
+
deleteChatThread: (aid: string, chatId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2302
|
+
/**
|
|
2303
|
+
* Retrieve a specific chat thread by its ID for the current user and agent. Returns 404 if not found or not owned by the user.
|
|
2304
|
+
* @summary Get chat thread by ID
|
|
2305
|
+
* @param {string} aid Agent ID
|
|
2306
|
+
* @param {string} chatId Chat ID
|
|
2307
|
+
* @param {*} [options] Override http request option.
|
|
2308
|
+
* @throws {RequiredError}
|
|
2309
|
+
*/
|
|
2310
|
+
getChatThreadById: (aid: string, chatId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2311
|
+
/**
|
|
2312
|
+
* Retrieve a specific chat message by its ID for the current user. Returns 404 if not found or not owned by the user.
|
|
2313
|
+
* @summary Get message by ID
|
|
2314
|
+
* @param {string} messageId Message ID
|
|
2315
|
+
* @param {*} [options] Override http request option.
|
|
2316
|
+
* @throws {RequiredError}
|
|
2317
|
+
*/
|
|
2318
|
+
getMessageById: (messageId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2319
|
+
/**
|
|
2320
|
+
* Retrieve all chat threads associated with a specific agent for the current user.
|
|
2321
|
+
* @summary List chat threads for an agent
|
|
2322
|
+
* @param {string} aid Agent ID
|
|
2323
|
+
* @param {*} [options] Override http request option.
|
|
2324
|
+
* @throws {RequiredError}
|
|
2325
|
+
*/
|
|
2326
|
+
listChatsForAgent: (aid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2327
|
+
/**
|
|
2328
|
+
* Retrieve the message history for a specific chat thread with cursor-based pagination.
|
|
2329
|
+
* @summary List messages in a chat thread
|
|
2330
|
+
* @param {string} aid Agent ID
|
|
2331
|
+
* @param {string} chatId Chat ID
|
|
2332
|
+
* @param {string | null} [cursor] Cursor for pagination (message id)
|
|
2333
|
+
* @param {number} [limit] Maximum number of messages to return
|
|
2334
|
+
* @param {*} [options] Override http request option.
|
|
2335
|
+
* @throws {RequiredError}
|
|
2336
|
+
*/
|
|
2337
|
+
listMessagesInChat: (aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2338
|
+
/**
|
|
2339
|
+
* Retry sending the last message in a specific chat thread. If the last message is from an agent/system, returns all messages after the last user message. If the last message is from a user, generates a new agent response. Only works with non-streaming mode.
|
|
2340
|
+
* @summary Retry a message in a chat thread
|
|
2341
|
+
* @param {string} aid Agent ID
|
|
2342
|
+
* @param {string} chatId Chat ID
|
|
2343
|
+
* @param {*} [options] Override http request option.
|
|
2344
|
+
* @throws {RequiredError}
|
|
2345
|
+
*/
|
|
2346
|
+
retryMessageInChat: (aid: string, chatId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2347
|
+
/**
|
|
2348
|
+
* Send a new message to a specific chat thread. Supports streaming responses if requested.
|
|
2349
|
+
* @summary Send a message to a chat thread
|
|
2350
|
+
* @param {string} aid Agent ID
|
|
2351
|
+
* @param {string} chatId Chat ID
|
|
2352
|
+
* @param {ChatMessageRequest} chatMessageRequest
|
|
2353
|
+
* @param {*} [options] Override http request option.
|
|
2354
|
+
* @throws {RequiredError}
|
|
2355
|
+
*/
|
|
2356
|
+
sendMessageToChat: (aid: string, chatId: string, chatMessageRequest: ChatMessageRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2357
|
+
/**
|
|
2358
|
+
* Update details of a specific chat thread. Currently only supports updating the summary.
|
|
2359
|
+
* @summary Update a chat thread
|
|
2360
|
+
* @param {string} aid Agent ID
|
|
2361
|
+
* @param {string} chatId Chat ID
|
|
2362
|
+
* @param {ChatUpdateRequest} chatUpdateRequest
|
|
2363
|
+
* @param {*} [options] Override http request option.
|
|
2364
|
+
* @throws {RequiredError}
|
|
2365
|
+
*/
|
|
2366
|
+
updateChatThread: (aid: string, chatId: string, chatUpdateRequest: ChatUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2367
|
+
};
|
|
2368
|
+
/**
|
|
2369
|
+
* ChatApi - functional programming interface
|
|
2370
|
+
* @export
|
|
2371
|
+
*/
|
|
2372
|
+
export declare const ChatApiFp: (configuration?: Configuration) => {
|
|
2373
|
+
/**
|
|
2374
|
+
* Create a new chat thread for a specific agent and user.
|
|
2375
|
+
* @summary Create a new chat thread
|
|
2376
|
+
* @param {string} aid Agent ID
|
|
2377
|
+
* @param {*} [options] Override http request option.
|
|
2378
|
+
* @throws {RequiredError}
|
|
2379
|
+
*/
|
|
2380
|
+
createChatThread(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Chat>>;
|
|
2381
|
+
/**
|
|
2382
|
+
* Delete a specific chat thread for the current user and agent. Returns 404 if not found or not owned by the user.
|
|
2383
|
+
* @summary Delete a chat thread
|
|
2384
|
+
* @param {string} aid Agent ID
|
|
2385
|
+
* @param {string} chatId Chat ID
|
|
2386
|
+
* @param {*} [options] Override http request option.
|
|
2387
|
+
* @throws {RequiredError}
|
|
2388
|
+
*/
|
|
2389
|
+
deleteChatThread(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2390
|
+
/**
|
|
2391
|
+
* Retrieve a specific chat thread by its ID for the current user and agent. Returns 404 if not found or not owned by the user.
|
|
2392
|
+
* @summary Get chat thread by ID
|
|
2393
|
+
* @param {string} aid Agent ID
|
|
2394
|
+
* @param {string} chatId Chat ID
|
|
2395
|
+
* @param {*} [options] Override http request option.
|
|
2396
|
+
* @throws {RequiredError}
|
|
2397
|
+
*/
|
|
2398
|
+
getChatThreadById(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Chat>>;
|
|
2399
|
+
/**
|
|
2400
|
+
* Retrieve a specific chat message by its ID for the current user. Returns 404 if not found or not owned by the user.
|
|
2401
|
+
* @summary Get message by ID
|
|
2402
|
+
* @param {string} messageId Message ID
|
|
2403
|
+
* @param {*} [options] Override http request option.
|
|
2404
|
+
* @throws {RequiredError}
|
|
2405
|
+
*/
|
|
2406
|
+
getMessageById(messageId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessage>>;
|
|
2407
|
+
/**
|
|
2408
|
+
* Retrieve all chat threads associated with a specific agent for the current user.
|
|
2409
|
+
* @summary List chat threads for an agent
|
|
2410
|
+
* @param {string} aid Agent ID
|
|
2411
|
+
* @param {*} [options] Override http request option.
|
|
2412
|
+
* @throws {RequiredError}
|
|
2413
|
+
*/
|
|
2414
|
+
listChatsForAgent(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Chat>>>;
|
|
2415
|
+
/**
|
|
2416
|
+
* Retrieve the message history for a specific chat thread with cursor-based pagination.
|
|
2417
|
+
* @summary List messages in a chat thread
|
|
2418
|
+
* @param {string} aid Agent ID
|
|
2419
|
+
* @param {string} chatId Chat ID
|
|
2420
|
+
* @param {string | null} [cursor] Cursor for pagination (message id)
|
|
2421
|
+
* @param {number} [limit] Maximum number of messages to return
|
|
2422
|
+
* @param {*} [options] Override http request option.
|
|
2423
|
+
* @throws {RequiredError}
|
|
2424
|
+
*/
|
|
2425
|
+
listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessagesResponse>>;
|
|
2426
|
+
/**
|
|
2427
|
+
* Retry sending the last message in a specific chat thread. If the last message is from an agent/system, returns all messages after the last user message. If the last message is from a user, generates a new agent response. Only works with non-streaming mode.
|
|
2428
|
+
* @summary Retry a message in a chat thread
|
|
2429
|
+
* @param {string} aid Agent ID
|
|
2430
|
+
* @param {string} chatId Chat ID
|
|
2431
|
+
* @param {*} [options] Override http request option.
|
|
2432
|
+
* @throws {RequiredError}
|
|
2433
|
+
*/
|
|
2434
|
+
retryMessageInChat(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChatMessage>>>;
|
|
2435
|
+
/**
|
|
2436
|
+
* Send a new message to a specific chat thread. Supports streaming responses if requested.
|
|
2437
|
+
* @summary Send a message to a chat thread
|
|
2438
|
+
* @param {string} aid Agent ID
|
|
2439
|
+
* @param {string} chatId Chat ID
|
|
2440
|
+
* @param {ChatMessageRequest} chatMessageRequest
|
|
2441
|
+
* @param {*} [options] Override http request option.
|
|
2442
|
+
* @throws {RequiredError}
|
|
2443
|
+
*/
|
|
2444
|
+
sendMessageToChat(aid: string, chatId: string, chatMessageRequest: ChatMessageRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChatMessage>>>;
|
|
2445
|
+
/**
|
|
2446
|
+
* Update details of a specific chat thread. Currently only supports updating the summary.
|
|
2447
|
+
* @summary Update a chat thread
|
|
2448
|
+
* @param {string} aid Agent ID
|
|
2449
|
+
* @param {string} chatId Chat ID
|
|
2450
|
+
* @param {ChatUpdateRequest} chatUpdateRequest
|
|
2451
|
+
* @param {*} [options] Override http request option.
|
|
2452
|
+
* @throws {RequiredError}
|
|
2453
|
+
*/
|
|
2454
|
+
updateChatThread(aid: string, chatId: string, chatUpdateRequest: ChatUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Chat>>;
|
|
2455
|
+
};
|
|
2456
|
+
/**
|
|
2457
|
+
* ChatApi - factory interface
|
|
2458
|
+
* @export
|
|
2459
|
+
*/
|
|
2460
|
+
export declare const ChatApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2461
|
+
/**
|
|
2462
|
+
* Create a new chat thread for a specific agent and user.
|
|
2463
|
+
* @summary Create a new chat thread
|
|
2464
|
+
* @param {string} aid Agent ID
|
|
2465
|
+
* @param {*} [options] Override http request option.
|
|
2466
|
+
* @throws {RequiredError}
|
|
2467
|
+
*/
|
|
2468
|
+
createChatThread(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<Chat>;
|
|
2469
|
+
/**
|
|
2470
|
+
* Delete a specific chat thread for the current user and agent. Returns 404 if not found or not owned by the user.
|
|
2471
|
+
* @summary Delete a chat thread
|
|
2472
|
+
* @param {string} aid Agent ID
|
|
2473
|
+
* @param {string} chatId Chat ID
|
|
2474
|
+
* @param {*} [options] Override http request option.
|
|
2475
|
+
* @throws {RequiredError}
|
|
2476
|
+
*/
|
|
2477
|
+
deleteChatThread(aid: string, chatId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2478
|
+
/**
|
|
2479
|
+
* Retrieve a specific chat thread by its ID for the current user and agent. Returns 404 if not found or not owned by the user.
|
|
2480
|
+
* @summary Get chat thread by ID
|
|
2481
|
+
* @param {string} aid Agent ID
|
|
2482
|
+
* @param {string} chatId Chat ID
|
|
2483
|
+
* @param {*} [options] Override http request option.
|
|
2484
|
+
* @throws {RequiredError}
|
|
2485
|
+
*/
|
|
2486
|
+
getChatThreadById(aid: string, chatId: string, options?: RawAxiosRequestConfig): AxiosPromise<Chat>;
|
|
2487
|
+
/**
|
|
2488
|
+
* Retrieve a specific chat message by its ID for the current user. Returns 404 if not found or not owned by the user.
|
|
2489
|
+
* @summary Get message by ID
|
|
2490
|
+
* @param {string} messageId Message ID
|
|
2491
|
+
* @param {*} [options] Override http request option.
|
|
2492
|
+
* @throws {RequiredError}
|
|
2493
|
+
*/
|
|
2494
|
+
getMessageById(messageId: string, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessage>;
|
|
2495
|
+
/**
|
|
2496
|
+
* Retrieve all chat threads associated with a specific agent for the current user.
|
|
2497
|
+
* @summary List chat threads for an agent
|
|
2498
|
+
* @param {string} aid Agent ID
|
|
2499
|
+
* @param {*} [options] Override http request option.
|
|
2500
|
+
* @throws {RequiredError}
|
|
2501
|
+
*/
|
|
2502
|
+
listChatsForAgent(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Chat>>;
|
|
2503
|
+
/**
|
|
2504
|
+
* Retrieve the message history for a specific chat thread with cursor-based pagination.
|
|
2505
|
+
* @summary List messages in a chat thread
|
|
2506
|
+
* @param {string} aid Agent ID
|
|
2507
|
+
* @param {string} chatId Chat ID
|
|
2508
|
+
* @param {string | null} [cursor] Cursor for pagination (message id)
|
|
2509
|
+
* @param {number} [limit] Maximum number of messages to return
|
|
2510
|
+
* @param {*} [options] Override http request option.
|
|
2511
|
+
* @throws {RequiredError}
|
|
2512
|
+
*/
|
|
2513
|
+
listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessagesResponse>;
|
|
2514
|
+
/**
|
|
2515
|
+
* Retry sending the last message in a specific chat thread. If the last message is from an agent/system, returns all messages after the last user message. If the last message is from a user, generates a new agent response. Only works with non-streaming mode.
|
|
2516
|
+
* @summary Retry a message in a chat thread
|
|
2517
|
+
* @param {string} aid Agent ID
|
|
2518
|
+
* @param {string} chatId Chat ID
|
|
2519
|
+
* @param {*} [options] Override http request option.
|
|
2520
|
+
* @throws {RequiredError}
|
|
2521
|
+
*/
|
|
2522
|
+
retryMessageInChat(aid: string, chatId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ChatMessage>>;
|
|
2523
|
+
/**
|
|
2524
|
+
* Send a new message to a specific chat thread. Supports streaming responses if requested.
|
|
2525
|
+
* @summary Send a message to a chat thread
|
|
2526
|
+
* @param {string} aid Agent ID
|
|
2527
|
+
* @param {string} chatId Chat ID
|
|
2528
|
+
* @param {ChatMessageRequest} chatMessageRequest
|
|
2529
|
+
* @param {*} [options] Override http request option.
|
|
2530
|
+
* @throws {RequiredError}
|
|
2531
|
+
*/
|
|
2532
|
+
sendMessageToChat(aid: string, chatId: string, chatMessageRequest: ChatMessageRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ChatMessage>>;
|
|
2533
|
+
/**
|
|
2534
|
+
* Update details of a specific chat thread. Currently only supports updating the summary.
|
|
2535
|
+
* @summary Update a chat thread
|
|
2536
|
+
* @param {string} aid Agent ID
|
|
2537
|
+
* @param {string} chatId Chat ID
|
|
2538
|
+
* @param {ChatUpdateRequest} chatUpdateRequest
|
|
2539
|
+
* @param {*} [options] Override http request option.
|
|
2540
|
+
* @throws {RequiredError}
|
|
2541
|
+
*/
|
|
2542
|
+
updateChatThread(aid: string, chatId: string, chatUpdateRequest: ChatUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<Chat>;
|
|
2543
|
+
};
|
|
2544
|
+
/**
|
|
2545
|
+
* ChatApi - object-oriented interface
|
|
2546
|
+
* @export
|
|
2547
|
+
* @class ChatApi
|
|
2548
|
+
* @extends {BaseAPI}
|
|
2549
|
+
*/
|
|
2550
|
+
export declare class ChatApi extends BaseAPI {
|
|
2551
|
+
/**
|
|
2552
|
+
* Create a new chat thread for a specific agent and user.
|
|
2553
|
+
* @summary Create a new chat thread
|
|
2554
|
+
* @param {string} aid Agent ID
|
|
2555
|
+
* @param {*} [options] Override http request option.
|
|
2556
|
+
* @throws {RequiredError}
|
|
2557
|
+
* @memberof ChatApi
|
|
2558
|
+
*/
|
|
2559
|
+
createChatThread(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Chat, any>>;
|
|
2560
|
+
/**
|
|
2561
|
+
* Delete a specific chat thread for the current user and agent. Returns 404 if not found or not owned by the user.
|
|
2562
|
+
* @summary Delete a chat thread
|
|
2563
|
+
* @param {string} aid Agent ID
|
|
2564
|
+
* @param {string} chatId Chat ID
|
|
2565
|
+
* @param {*} [options] Override http request option.
|
|
2566
|
+
* @throws {RequiredError}
|
|
2567
|
+
* @memberof ChatApi
|
|
2568
|
+
*/
|
|
2569
|
+
deleteChatThread(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2570
|
+
/**
|
|
2571
|
+
* Retrieve a specific chat thread by its ID for the current user and agent. Returns 404 if not found or not owned by the user.
|
|
2572
|
+
* @summary Get chat thread by ID
|
|
2573
|
+
* @param {string} aid Agent ID
|
|
2574
|
+
* @param {string} chatId Chat ID
|
|
2575
|
+
* @param {*} [options] Override http request option.
|
|
2576
|
+
* @throws {RequiredError}
|
|
2577
|
+
* @memberof ChatApi
|
|
2578
|
+
*/
|
|
2579
|
+
getChatThreadById(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Chat, any>>;
|
|
2580
|
+
/**
|
|
2581
|
+
* Retrieve a specific chat message by its ID for the current user. Returns 404 if not found or not owned by the user.
|
|
2582
|
+
* @summary Get message by ID
|
|
2583
|
+
* @param {string} messageId Message ID
|
|
2584
|
+
* @param {*} [options] Override http request option.
|
|
2585
|
+
* @throws {RequiredError}
|
|
2586
|
+
* @memberof ChatApi
|
|
2587
|
+
*/
|
|
2588
|
+
getMessageById(messageId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage, any>>;
|
|
2589
|
+
/**
|
|
2590
|
+
* Retrieve all chat threads associated with a specific agent for the current user.
|
|
2591
|
+
* @summary List chat threads for an agent
|
|
2592
|
+
* @param {string} aid Agent ID
|
|
2593
|
+
* @param {*} [options] Override http request option.
|
|
2594
|
+
* @throws {RequiredError}
|
|
2595
|
+
* @memberof ChatApi
|
|
2596
|
+
*/
|
|
2597
|
+
listChatsForAgent(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Chat[], any>>;
|
|
2598
|
+
/**
|
|
2599
|
+
* Retrieve the message history for a specific chat thread with cursor-based pagination.
|
|
2600
|
+
* @summary List messages in a chat thread
|
|
2601
|
+
* @param {string} aid Agent ID
|
|
2602
|
+
* @param {string} chatId Chat ID
|
|
2603
|
+
* @param {string | null} [cursor] Cursor for pagination (message id)
|
|
2604
|
+
* @param {number} [limit] Maximum number of messages to return
|
|
2605
|
+
* @param {*} [options] Override http request option.
|
|
2606
|
+
* @throws {RequiredError}
|
|
2607
|
+
* @memberof ChatApi
|
|
2608
|
+
*/
|
|
2609
|
+
listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any>>;
|
|
2610
|
+
/**
|
|
2611
|
+
* Retry sending the last message in a specific chat thread. If the last message is from an agent/system, returns all messages after the last user message. If the last message is from a user, generates a new agent response. Only works with non-streaming mode.
|
|
2612
|
+
* @summary Retry a message in a chat thread
|
|
2613
|
+
* @param {string} aid Agent ID
|
|
2614
|
+
* @param {string} chatId Chat ID
|
|
2615
|
+
* @param {*} [options] Override http request option.
|
|
2616
|
+
* @throws {RequiredError}
|
|
2617
|
+
* @memberof ChatApi
|
|
2618
|
+
*/
|
|
2619
|
+
retryMessageInChat(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage[], any>>;
|
|
2620
|
+
/**
|
|
2621
|
+
* Send a new message to a specific chat thread. Supports streaming responses if requested.
|
|
2622
|
+
* @summary Send a message to a chat thread
|
|
2623
|
+
* @param {string} aid Agent ID
|
|
2624
|
+
* @param {string} chatId Chat ID
|
|
2625
|
+
* @param {ChatMessageRequest} chatMessageRequest
|
|
2626
|
+
* @param {*} [options] Override http request option.
|
|
2627
|
+
* @throws {RequiredError}
|
|
2628
|
+
* @memberof ChatApi
|
|
2629
|
+
*/
|
|
2630
|
+
sendMessageToChat(aid: string, chatId: string, chatMessageRequest: ChatMessageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage[], any>>;
|
|
2631
|
+
/**
|
|
2632
|
+
* Update details of a specific chat thread. Currently only supports updating the summary.
|
|
2633
|
+
* @summary Update a chat thread
|
|
2634
|
+
* @param {string} aid Agent ID
|
|
2635
|
+
* @param {string} chatId Chat ID
|
|
2636
|
+
* @param {ChatUpdateRequest} chatUpdateRequest
|
|
2637
|
+
* @param {*} [options] Override http request option.
|
|
2638
|
+
* @throws {RequiredError}
|
|
2639
|
+
* @memberof ChatApi
|
|
2640
|
+
*/
|
|
2641
|
+
updateChatThread(aid: string, chatId: string, chatUpdateRequest: ChatUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Chat, any>>;
|
|
2642
|
+
}
|
|
2643
|
+
/**
|
|
2644
|
+
* CreditApi - axios parameter creator
|
|
2645
|
+
* @export
|
|
2646
|
+
*/
|
|
2647
|
+
export declare const CreditApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2648
|
+
/**
|
|
2649
|
+
* Fetch a credit event by its ID, with authorization check. Returns the credit event if it exists and belongs to the user, otherwise raises an HTTP error.
|
|
2650
|
+
* @summary Credit Event
|
|
2651
|
+
* @param {string} eventId Credit event ID
|
|
2652
|
+
* @param {*} [options] Override http request option.
|
|
2653
|
+
* @throws {RequiredError}
|
|
2654
|
+
*/
|
|
2655
|
+
fetchCreditEvent: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2656
|
+
/**
|
|
2657
|
+
* Get or create a user\'s credit account. This endpoint will create a new account if it does not exist. Not in the readonly router because it may create a new account.
|
|
2658
|
+
* @summary Get User Account
|
|
2659
|
+
* @param {*} [options] Override http request option.
|
|
2660
|
+
* @throws {RequiredError}
|
|
2661
|
+
*/
|
|
2662
|
+
getUserAccount: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2663
|
+
/**
|
|
2664
|
+
* List all income events for an agent account, with authorization check. Returns a paginated list of income events for the specified agent, only if the agent belongs to the user.
|
|
2665
|
+
* @summary List Agent Income
|
|
2666
|
+
* @param {string} agentId
|
|
2667
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2668
|
+
* @param {number} [limit] Maximum number of events to return
|
|
2669
|
+
* @param {*} [options] Override http request option.
|
|
2670
|
+
* @throws {RequiredError}
|
|
2671
|
+
*/
|
|
2672
|
+
listAgentIncomeEvents: (agentId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2673
|
+
/**
|
|
2674
|
+
* List all credit events for a user account, with optional filtering by event types and direction. Returns a paginated list of events for the user.
|
|
2675
|
+
* @summary List User Events
|
|
2676
|
+
* @param {Array<EventType> | null} [eventType] Event types
|
|
2677
|
+
* @param {Direction | null} [direction] Direction of events
|
|
2678
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2679
|
+
* @param {number} [limit] Maximum number of events to return
|
|
2680
|
+
* @param {*} [options] Override http request option.
|
|
2681
|
+
* @throws {RequiredError}
|
|
2682
|
+
*/
|
|
2683
|
+
listUserEvents: (eventType?: Array<EventType> | null, direction?: Direction | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2684
|
+
/**
|
|
2685
|
+
* List credit transactions for a user account, with optional filtering by transaction type and credit/debit. Returns a paginated list of transactions, each with optional associated event data.
|
|
2686
|
+
* @summary List User Transactions
|
|
2687
|
+
* @param {Array<TransactionType> | null} [txType] Transaction types
|
|
2688
|
+
* @param {CreditDebit | null} [creditDebit] Credit or debit
|
|
2689
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2690
|
+
* @param {number} [limit] Maximum number of transactions to return
|
|
2691
|
+
* @param {*} [options] Override http request option.
|
|
2692
|
+
* @throws {RequiredError}
|
|
2693
|
+
*/
|
|
2694
|
+
listUserTransactions: (txType?: Array<TransactionType> | null, creditDebit?: CreditDebit | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2695
|
+
};
|
|
2696
|
+
/**
|
|
2697
|
+
* CreditApi - functional programming interface
|
|
2698
|
+
* @export
|
|
2699
|
+
*/
|
|
2700
|
+
export declare const CreditApiFp: (configuration?: Configuration) => {
|
|
2701
|
+
/**
|
|
2702
|
+
* Fetch a credit event by its ID, with authorization check. Returns the credit event if it exists and belongs to the user, otherwise raises an HTTP error.
|
|
2703
|
+
* @summary Credit Event
|
|
2704
|
+
* @param {string} eventId Credit event ID
|
|
2705
|
+
* @param {*} [options] Override http request option.
|
|
2706
|
+
* @throws {RequiredError}
|
|
2707
|
+
*/
|
|
2708
|
+
fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreditEvent>>;
|
|
2709
|
+
/**
|
|
2710
|
+
* Get or create a user\'s credit account. This endpoint will create a new account if it does not exist. Not in the readonly router because it may create a new account.
|
|
2711
|
+
* @summary Get User Account
|
|
2712
|
+
* @param {*} [options] Override http request option.
|
|
2713
|
+
* @throws {RequiredError}
|
|
2714
|
+
*/
|
|
2715
|
+
getUserAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreditAccount>>;
|
|
2716
|
+
/**
|
|
2717
|
+
* List all income events for an agent account, with authorization check. Returns a paginated list of income events for the specified agent, only if the agent belongs to the user.
|
|
2718
|
+
* @summary List Agent Income
|
|
2719
|
+
* @param {string} agentId
|
|
2720
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2721
|
+
* @param {number} [limit] Maximum number of events to return
|
|
2722
|
+
* @param {*} [options] Override http request option.
|
|
2723
|
+
* @throws {RequiredError}
|
|
2724
|
+
*/
|
|
2725
|
+
listAgentIncomeEvents(agentId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreditEventsResponse>>;
|
|
2726
|
+
/**
|
|
2727
|
+
* List all credit events for a user account, with optional filtering by event types and direction. Returns a paginated list of events for the user.
|
|
2728
|
+
* @summary List User Events
|
|
2729
|
+
* @param {Array<EventType> | null} [eventType] Event types
|
|
2730
|
+
* @param {Direction | null} [direction] Direction of events
|
|
2731
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2732
|
+
* @param {number} [limit] Maximum number of events to return
|
|
2733
|
+
* @param {*} [options] Override http request option.
|
|
2734
|
+
* @throws {RequiredError}
|
|
2735
|
+
*/
|
|
2736
|
+
listUserEvents(eventType?: Array<EventType> | null, direction?: Direction | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreditEventsResponse>>;
|
|
2737
|
+
/**
|
|
2738
|
+
* List credit transactions for a user account, with optional filtering by transaction type and credit/debit. Returns a paginated list of transactions, each with optional associated event data.
|
|
2739
|
+
* @summary List User Transactions
|
|
2740
|
+
* @param {Array<TransactionType> | null} [txType] Transaction types
|
|
2741
|
+
* @param {CreditDebit | null} [creditDebit] Credit or debit
|
|
2742
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2743
|
+
* @param {number} [limit] Maximum number of transactions to return
|
|
2744
|
+
* @param {*} [options] Override http request option.
|
|
2745
|
+
* @throws {RequiredError}
|
|
2746
|
+
*/
|
|
2747
|
+
listUserTransactions(txType?: Array<TransactionType> | null, creditDebit?: CreditDebit | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreditTransactionsResponse>>;
|
|
2748
|
+
};
|
|
2749
|
+
/**
|
|
2750
|
+
* CreditApi - factory interface
|
|
2751
|
+
* @export
|
|
2752
|
+
*/
|
|
2753
|
+
export declare const CreditApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2754
|
+
/**
|
|
2755
|
+
* Fetch a credit event by its ID, with authorization check. Returns the credit event if it exists and belongs to the user, otherwise raises an HTTP error.
|
|
2756
|
+
* @summary Credit Event
|
|
2757
|
+
* @param {string} eventId Credit event ID
|
|
2758
|
+
* @param {*} [options] Override http request option.
|
|
2759
|
+
* @throws {RequiredError}
|
|
2760
|
+
*/
|
|
2761
|
+
fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig): AxiosPromise<CreditEvent>;
|
|
2762
|
+
/**
|
|
2763
|
+
* Get or create a user\'s credit account. This endpoint will create a new account if it does not exist. Not in the readonly router because it may create a new account.
|
|
2764
|
+
* @summary Get User Account
|
|
2765
|
+
* @param {*} [options] Override http request option.
|
|
2766
|
+
* @throws {RequiredError}
|
|
2767
|
+
*/
|
|
2768
|
+
getUserAccount(options?: RawAxiosRequestConfig): AxiosPromise<CreditAccount>;
|
|
2769
|
+
/**
|
|
2770
|
+
* List all income events for an agent account, with authorization check. Returns a paginated list of income events for the specified agent, only if the agent belongs to the user.
|
|
2771
|
+
* @summary List Agent Income
|
|
2772
|
+
* @param {string} agentId
|
|
2773
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2774
|
+
* @param {number} [limit] Maximum number of events to return
|
|
2775
|
+
* @param {*} [options] Override http request option.
|
|
2776
|
+
* @throws {RequiredError}
|
|
2777
|
+
*/
|
|
2778
|
+
listAgentIncomeEvents(agentId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<CreditEventsResponse>;
|
|
2779
|
+
/**
|
|
2780
|
+
* List all credit events for a user account, with optional filtering by event types and direction. Returns a paginated list of events for the user.
|
|
2781
|
+
* @summary List User Events
|
|
2782
|
+
* @param {Array<EventType> | null} [eventType] Event types
|
|
2783
|
+
* @param {Direction | null} [direction] Direction of events
|
|
2784
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2785
|
+
* @param {number} [limit] Maximum number of events to return
|
|
2786
|
+
* @param {*} [options] Override http request option.
|
|
2787
|
+
* @throws {RequiredError}
|
|
2788
|
+
*/
|
|
2789
|
+
listUserEvents(eventType?: Array<EventType> | null, direction?: Direction | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<CreditEventsResponse>;
|
|
2790
|
+
/**
|
|
2791
|
+
* List credit transactions for a user account, with optional filtering by transaction type and credit/debit. Returns a paginated list of transactions, each with optional associated event data.
|
|
2792
|
+
* @summary List User Transactions
|
|
2793
|
+
* @param {Array<TransactionType> | null} [txType] Transaction types
|
|
2794
|
+
* @param {CreditDebit | null} [creditDebit] Credit or debit
|
|
2795
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2796
|
+
* @param {number} [limit] Maximum number of transactions to return
|
|
2797
|
+
* @param {*} [options] Override http request option.
|
|
2798
|
+
* @throws {RequiredError}
|
|
2799
|
+
*/
|
|
2800
|
+
listUserTransactions(txType?: Array<TransactionType> | null, creditDebit?: CreditDebit | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<CreditTransactionsResponse>;
|
|
2801
|
+
};
|
|
2802
|
+
/**
|
|
2803
|
+
* CreditApi - object-oriented interface
|
|
2804
|
+
* @export
|
|
2805
|
+
* @class CreditApi
|
|
2806
|
+
* @extends {BaseAPI}
|
|
2807
|
+
*/
|
|
2808
|
+
export declare class CreditApi extends BaseAPI {
|
|
2809
|
+
/**
|
|
2810
|
+
* Fetch a credit event by its ID, with authorization check. Returns the credit event if it exists and belongs to the user, otherwise raises an HTTP error.
|
|
2811
|
+
* @summary Credit Event
|
|
2812
|
+
* @param {string} eventId Credit event ID
|
|
2813
|
+
* @param {*} [options] Override http request option.
|
|
2814
|
+
* @throws {RequiredError}
|
|
2815
|
+
* @memberof CreditApi
|
|
2816
|
+
*/
|
|
2817
|
+
fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditEvent, any>>;
|
|
2818
|
+
/**
|
|
2819
|
+
* Get or create a user\'s credit account. This endpoint will create a new account if it does not exist. Not in the readonly router because it may create a new account.
|
|
2820
|
+
* @summary Get User Account
|
|
2821
|
+
* @param {*} [options] Override http request option.
|
|
2822
|
+
* @throws {RequiredError}
|
|
2823
|
+
* @memberof CreditApi
|
|
2824
|
+
*/
|
|
2825
|
+
getUserAccount(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditAccount, any>>;
|
|
2826
|
+
/**
|
|
2827
|
+
* List all income events for an agent account, with authorization check. Returns a paginated list of income events for the specified agent, only if the agent belongs to the user.
|
|
2828
|
+
* @summary List Agent Income
|
|
2829
|
+
* @param {string} agentId
|
|
2830
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2831
|
+
* @param {number} [limit] Maximum number of events to return
|
|
2832
|
+
* @param {*} [options] Override http request option.
|
|
2833
|
+
* @throws {RequiredError}
|
|
2834
|
+
* @memberof CreditApi
|
|
2835
|
+
*/
|
|
2836
|
+
listAgentIncomeEvents(agentId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditEventsResponse, any>>;
|
|
2837
|
+
/**
|
|
2838
|
+
* List all credit events for a user account, with optional filtering by event types and direction. Returns a paginated list of events for the user.
|
|
2839
|
+
* @summary List User Events
|
|
2840
|
+
* @param {Array<EventType> | null} [eventType] Event types
|
|
2841
|
+
* @param {Direction | null} [direction] Direction of events
|
|
2842
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2843
|
+
* @param {number} [limit] Maximum number of events to return
|
|
2844
|
+
* @param {*} [options] Override http request option.
|
|
2845
|
+
* @throws {RequiredError}
|
|
2846
|
+
* @memberof CreditApi
|
|
2847
|
+
*/
|
|
2848
|
+
listUserEvents(eventType?: Array<EventType> | null, direction?: Direction | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditEventsResponse, any>>;
|
|
2849
|
+
/**
|
|
2850
|
+
* List credit transactions for a user account, with optional filtering by transaction type and credit/debit. Returns a paginated list of transactions, each with optional associated event data.
|
|
2851
|
+
* @summary List User Transactions
|
|
2852
|
+
* @param {Array<TransactionType> | null} [txType] Transaction types
|
|
2853
|
+
* @param {CreditDebit | null} [creditDebit] Credit or debit
|
|
2854
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2855
|
+
* @param {number} [limit] Maximum number of transactions to return
|
|
2856
|
+
* @param {*} [options] Override http request option.
|
|
2857
|
+
* @throws {RequiredError}
|
|
2858
|
+
* @memberof CreditApi
|
|
2859
|
+
*/
|
|
2860
|
+
listUserTransactions(txType?: Array<TransactionType> | null, creditDebit?: CreditDebit | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditTransactionsResponse, any>>;
|
|
2861
|
+
}
|
|
2862
|
+
/**
|
|
2863
|
+
* HealthApi - axios parameter creator
|
|
2864
|
+
* @export
|
|
2865
|
+
*/
|
|
2866
|
+
export declare const HealthApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2867
|
+
/**
|
|
2868
|
+
* Returns the health status of the API server
|
|
2869
|
+
* @summary Health check endpoint
|
|
2870
|
+
* @param {*} [options] Override http request option.
|
|
2871
|
+
* @throws {RequiredError}
|
|
2872
|
+
*/
|
|
2873
|
+
healthCheckHealthGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2874
|
+
};
|
|
2875
|
+
/**
|
|
2876
|
+
* HealthApi - functional programming interface
|
|
2877
|
+
* @export
|
|
2878
|
+
*/
|
|
2879
|
+
export declare const HealthApiFp: (configuration?: Configuration) => {
|
|
2880
|
+
/**
|
|
2881
|
+
* Returns the health status of the API server
|
|
2882
|
+
* @summary Health check endpoint
|
|
2883
|
+
* @param {*} [options] Override http request option.
|
|
2884
|
+
* @throws {RequiredError}
|
|
2885
|
+
*/
|
|
2886
|
+
healthCheckHealthGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
2887
|
+
};
|
|
2888
|
+
/**
|
|
2889
|
+
* HealthApi - factory interface
|
|
2890
|
+
* @export
|
|
2891
|
+
*/
|
|
2892
|
+
export declare const HealthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2893
|
+
/**
|
|
2894
|
+
* Returns the health status of the API server
|
|
2895
|
+
* @summary Health check endpoint
|
|
2896
|
+
* @param {*} [options] Override http request option.
|
|
2897
|
+
* @throws {RequiredError}
|
|
2898
|
+
*/
|
|
2899
|
+
healthCheckHealthGet(options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
2900
|
+
};
|
|
2901
|
+
/**
|
|
2902
|
+
* HealthApi - object-oriented interface
|
|
2903
|
+
* @export
|
|
2904
|
+
* @class HealthApi
|
|
2905
|
+
* @extends {BaseAPI}
|
|
2906
|
+
*/
|
|
2907
|
+
export declare class HealthApi extends BaseAPI {
|
|
2908
|
+
/**
|
|
2909
|
+
* Returns the health status of the API server
|
|
2910
|
+
* @summary Health check endpoint
|
|
2911
|
+
* @param {*} [options] Override http request option.
|
|
2912
|
+
* @throws {RequiredError}
|
|
2913
|
+
* @memberof HealthApi
|
|
2914
|
+
*/
|
|
2915
|
+
healthCheckHealthGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2916
|
+
}
|
|
2917
|
+
/**
|
|
2918
|
+
* MetadataApi - axios parameter creator
|
|
2919
|
+
* @export
|
|
2920
|
+
*/
|
|
2921
|
+
export declare const MetadataApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2922
|
+
/**
|
|
2923
|
+
* Get the JSON schema for Agent model with all $ref references resolved
|
|
2924
|
+
* @summary Get agent schema
|
|
2925
|
+
* @param {*} [options] Override http request option.
|
|
2926
|
+
* @throws {RequiredError}
|
|
2927
|
+
*/
|
|
2928
|
+
getAgentSchema: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2929
|
+
/**
|
|
2930
|
+
* Returns a list of all available LLM models in the system
|
|
2931
|
+
* @summary Get all LLM models
|
|
2932
|
+
* @param {*} [options] Override http request option.
|
|
2933
|
+
* @throws {RequiredError}
|
|
2934
|
+
*/
|
|
2935
|
+
getLlmsMetadataLlmsGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2936
|
+
/**
|
|
2937
|
+
* Get the icon for a specific skill
|
|
2938
|
+
* @summary Get skill icon
|
|
2939
|
+
* @param {string} skill Skill name
|
|
2940
|
+
* @param {string} iconName Icon name
|
|
2941
|
+
* @param {string} ext Icon file extension
|
|
2942
|
+
* @param {*} [options] Override http request option.
|
|
2943
|
+
* @throws {RequiredError}
|
|
2944
|
+
*/
|
|
2945
|
+
getSkillIcon: (skill: string, iconName: string, ext: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2946
|
+
/**
|
|
2947
|
+
* Get the JSON schema for a specific skill
|
|
2948
|
+
* @summary Get skill schema
|
|
2949
|
+
* @param {string} skill Skill name
|
|
2950
|
+
* @param {*} [options] Override http request option.
|
|
2951
|
+
* @throws {RequiredError}
|
|
2952
|
+
*/
|
|
2953
|
+
getSkillSchema: (skill: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2954
|
+
/**
|
|
2955
|
+
* Returns a list of all available skills in the system
|
|
2956
|
+
* @summary Get all skills
|
|
2957
|
+
* @param {*} [options] Override http request option.
|
|
2958
|
+
* @throws {RequiredError}
|
|
2959
|
+
*/
|
|
2960
|
+
getSkillsMetadataSkillsGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2961
|
+
};
|
|
2962
|
+
/**
|
|
2963
|
+
* MetadataApi - functional programming interface
|
|
2964
|
+
* @export
|
|
2965
|
+
*/
|
|
2966
|
+
export declare const MetadataApiFp: (configuration?: Configuration) => {
|
|
2967
|
+
/**
|
|
2968
|
+
* Get the JSON schema for Agent model with all $ref references resolved
|
|
2969
|
+
* @summary Get agent schema
|
|
2970
|
+
* @param {*} [options] Override http request option.
|
|
2971
|
+
* @throws {RequiredError}
|
|
2972
|
+
*/
|
|
2973
|
+
getAgentSchema(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
2974
|
+
/**
|
|
2975
|
+
* Returns a list of all available LLM models in the system
|
|
2976
|
+
* @summary Get all LLM models
|
|
2977
|
+
* @param {*} [options] Override http request option.
|
|
2978
|
+
* @throws {RequiredError}
|
|
2979
|
+
*/
|
|
2980
|
+
getLlmsMetadataLlmsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LLMModelInfoWithProviderName>>>;
|
|
2981
|
+
/**
|
|
2982
|
+
* Get the icon for a specific skill
|
|
2983
|
+
* @summary Get skill icon
|
|
2984
|
+
* @param {string} skill Skill name
|
|
2985
|
+
* @param {string} iconName Icon name
|
|
2986
|
+
* @param {string} ext Icon file extension
|
|
2987
|
+
* @param {*} [options] Override http request option.
|
|
2988
|
+
* @throws {RequiredError}
|
|
2989
|
+
*/
|
|
2990
|
+
getSkillIcon(skill: string, iconName: string, ext: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
2991
|
+
/**
|
|
2992
|
+
* Get the JSON schema for a specific skill
|
|
2993
|
+
* @summary Get skill schema
|
|
2994
|
+
* @param {string} skill Skill name
|
|
2995
|
+
* @param {*} [options] Override http request option.
|
|
2996
|
+
* @throws {RequiredError}
|
|
2997
|
+
*/
|
|
2998
|
+
getSkillSchema(skill: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
2999
|
+
/**
|
|
3000
|
+
* Returns a list of all available skills in the system
|
|
3001
|
+
* @summary Get all skills
|
|
3002
|
+
* @param {*} [options] Override http request option.
|
|
3003
|
+
* @throws {RequiredError}
|
|
3004
|
+
*/
|
|
3005
|
+
getSkillsMetadataSkillsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Skill>>>;
|
|
3006
|
+
};
|
|
3007
|
+
/**
|
|
3008
|
+
* MetadataApi - factory interface
|
|
3009
|
+
* @export
|
|
3010
|
+
*/
|
|
3011
|
+
export declare const MetadataApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3012
|
+
/**
|
|
3013
|
+
* Get the JSON schema for Agent model with all $ref references resolved
|
|
3014
|
+
* @summary Get agent schema
|
|
3015
|
+
* @param {*} [options] Override http request option.
|
|
3016
|
+
* @throws {RequiredError}
|
|
3017
|
+
*/
|
|
3018
|
+
getAgentSchema(options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
3019
|
+
/**
|
|
3020
|
+
* Returns a list of all available LLM models in the system
|
|
3021
|
+
* @summary Get all LLM models
|
|
3022
|
+
* @param {*} [options] Override http request option.
|
|
3023
|
+
* @throws {RequiredError}
|
|
3024
|
+
*/
|
|
3025
|
+
getLlmsMetadataLlmsGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<LLMModelInfoWithProviderName>>;
|
|
3026
|
+
/**
|
|
3027
|
+
* Get the icon for a specific skill
|
|
3028
|
+
* @summary Get skill icon
|
|
3029
|
+
* @param {string} skill Skill name
|
|
3030
|
+
* @param {string} iconName Icon name
|
|
3031
|
+
* @param {string} ext Icon file extension
|
|
3032
|
+
* @param {*} [options] Override http request option.
|
|
3033
|
+
* @throws {RequiredError}
|
|
3034
|
+
*/
|
|
3035
|
+
getSkillIcon(skill: string, iconName: string, ext: string, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
3036
|
+
/**
|
|
3037
|
+
* Get the JSON schema for a specific skill
|
|
3038
|
+
* @summary Get skill schema
|
|
3039
|
+
* @param {string} skill Skill name
|
|
3040
|
+
* @param {*} [options] Override http request option.
|
|
3041
|
+
* @throws {RequiredError}
|
|
3042
|
+
*/
|
|
3043
|
+
getSkillSchema(skill: string, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
3044
|
+
/**
|
|
3045
|
+
* Returns a list of all available skills in the system
|
|
3046
|
+
* @summary Get all skills
|
|
3047
|
+
* @param {*} [options] Override http request option.
|
|
3048
|
+
* @throws {RequiredError}
|
|
3049
|
+
*/
|
|
3050
|
+
getSkillsMetadataSkillsGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<Skill>>;
|
|
3051
|
+
};
|
|
3052
|
+
/**
|
|
3053
|
+
* MetadataApi - object-oriented interface
|
|
3054
|
+
* @export
|
|
3055
|
+
* @class MetadataApi
|
|
3056
|
+
* @extends {BaseAPI}
|
|
3057
|
+
*/
|
|
3058
|
+
export declare class MetadataApi extends BaseAPI {
|
|
3059
|
+
/**
|
|
3060
|
+
* Get the JSON schema for Agent model with all $ref references resolved
|
|
3061
|
+
* @summary Get agent schema
|
|
3062
|
+
* @param {*} [options] Override http request option.
|
|
3063
|
+
* @throws {RequiredError}
|
|
3064
|
+
* @memberof MetadataApi
|
|
3065
|
+
*/
|
|
3066
|
+
getAgentSchema(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
3067
|
+
/**
|
|
3068
|
+
* Returns a list of all available LLM models in the system
|
|
3069
|
+
* @summary Get all LLM models
|
|
3070
|
+
* @param {*} [options] Override http request option.
|
|
3071
|
+
* @throws {RequiredError}
|
|
3072
|
+
* @memberof MetadataApi
|
|
3073
|
+
*/
|
|
3074
|
+
getLlmsMetadataLlmsGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LLMModelInfoWithProviderName[], any>>;
|
|
3075
|
+
/**
|
|
3076
|
+
* Get the icon for a specific skill
|
|
3077
|
+
* @summary Get skill icon
|
|
3078
|
+
* @param {string} skill Skill name
|
|
3079
|
+
* @param {string} iconName Icon name
|
|
3080
|
+
* @param {string} ext Icon file extension
|
|
3081
|
+
* @param {*} [options] Override http request option.
|
|
3082
|
+
* @throws {RequiredError}
|
|
3083
|
+
* @memberof MetadataApi
|
|
3084
|
+
*/
|
|
3085
|
+
getSkillIcon(skill: string, iconName: string, ext: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
3086
|
+
/**
|
|
3087
|
+
* Get the JSON schema for a specific skill
|
|
3088
|
+
* @summary Get skill schema
|
|
3089
|
+
* @param {string} skill Skill name
|
|
3090
|
+
* @param {*} [options] Override http request option.
|
|
3091
|
+
* @throws {RequiredError}
|
|
3092
|
+
* @memberof MetadataApi
|
|
3093
|
+
*/
|
|
3094
|
+
getSkillSchema(skill: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
3095
|
+
/**
|
|
3096
|
+
* Returns a list of all available skills in the system
|
|
3097
|
+
* @summary Get all skills
|
|
3098
|
+
* @param {*} [options] Override http request option.
|
|
3099
|
+
* @throws {RequiredError}
|
|
3100
|
+
* @memberof MetadataApi
|
|
3101
|
+
*/
|
|
3102
|
+
getSkillsMetadataSkillsGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Skill[], any>>;
|
|
3103
|
+
}
|