@crestal/nation-sdk 0.6.25 → 0.6.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -1
- package/README.md +4 -3
- package/api.ts +553 -213
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +549 -216
- package/dist/api.js +47 -8
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgentGenerateRequest.md +3 -1
- package/docs/AgentGenerateResponse.md +2 -2
- package/docs/AgentInput.md +95 -0
- package/docs/{Agent.md → AgentOutput.md} +3 -3
- package/docs/CreditAccount.md +16 -0
- package/docs/EventType.md +2 -0
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/TransactionType.md +2 -0
- package/docs/UserApi.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Nation IntentKit API
|
|
3
3
|
* API for Nation IntentKit services
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.6.
|
|
5
|
+
* The version of the OpenAPI document: 0.6.27
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,257 +13,499 @@ import type { Configuration } from './configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import type { RequestArgs } from './base';
|
|
15
15
|
import { BaseAPI } from './base';
|
|
16
|
+
/**
|
|
17
|
+
* Response model for agent API key generation.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AgentApiKeyResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface AgentApiKeyResponse {
|
|
22
|
+
/**
|
|
23
|
+
* The private API key for the agent (sk-)
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AgentApiKeyResponse
|
|
26
|
+
*/
|
|
27
|
+
'api_key': string;
|
|
28
|
+
/**
|
|
29
|
+
* The public API key for the agent (pk-)
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AgentApiKeyResponse
|
|
32
|
+
*/
|
|
33
|
+
'api_key_public': string;
|
|
34
|
+
/**
|
|
35
|
+
* The base URL for the API
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AgentApiKeyResponse
|
|
38
|
+
*/
|
|
39
|
+
'base_url': string;
|
|
40
|
+
/**
|
|
41
|
+
* API documentation URL
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AgentApiKeyResponse
|
|
44
|
+
*/
|
|
45
|
+
'api_doc': string;
|
|
46
|
+
/**
|
|
47
|
+
* OpenAPI JSON URL for AI integration
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof AgentApiKeyResponse
|
|
50
|
+
*/
|
|
51
|
+
'doc_for_ai': string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Response model for agent assets.
|
|
55
|
+
* @export
|
|
56
|
+
* @interface AgentAssetsResponse
|
|
57
|
+
*/
|
|
58
|
+
export interface AgentAssetsResponse {
|
|
59
|
+
/**
|
|
60
|
+
* ID of the agent
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof AgentAssetsResponse
|
|
63
|
+
*/
|
|
64
|
+
'agent_id': string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof AgentAssetsResponse
|
|
69
|
+
*/
|
|
70
|
+
'network_id': string | null;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof AgentAssetsResponse
|
|
75
|
+
*/
|
|
76
|
+
'wallet_address': string | null;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof AgentAssetsResponse
|
|
81
|
+
*/
|
|
82
|
+
'ticker': string | null;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof AgentAssetsResponse
|
|
87
|
+
*/
|
|
88
|
+
'token_address': string | null;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof AgentAssetsResponse
|
|
93
|
+
*/
|
|
94
|
+
'token_pool': string | null;
|
|
95
|
+
/**
|
|
96
|
+
* Total value locked, set to 0 for this version
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof AgentAssetsResponse
|
|
99
|
+
*/
|
|
100
|
+
'tvl'?: string;
|
|
101
|
+
/**
|
|
102
|
+
* List of assets with symbol and balance
|
|
103
|
+
* @type {Array<Asset>}
|
|
104
|
+
* @memberof AgentAssetsResponse
|
|
105
|
+
*/
|
|
106
|
+
'assets': Array<Asset>;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Autonomous agent configuration.
|
|
110
|
+
* @export
|
|
111
|
+
* @interface AgentAutonomous
|
|
112
|
+
*/
|
|
113
|
+
export interface AgentAutonomous {
|
|
114
|
+
/**
|
|
115
|
+
* Unique identifier for the autonomous configuration
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof AgentAutonomous
|
|
118
|
+
*/
|
|
119
|
+
'id'?: string;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof AgentAutonomous
|
|
124
|
+
*/
|
|
125
|
+
'name'?: string | null;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof AgentAutonomous
|
|
130
|
+
*/
|
|
131
|
+
'description'?: string | null;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {number}
|
|
135
|
+
* @memberof AgentAutonomous
|
|
136
|
+
*/
|
|
137
|
+
'minutes'?: number | null;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof AgentAutonomous
|
|
142
|
+
*/
|
|
143
|
+
'cron'?: string | null;
|
|
144
|
+
/**
|
|
145
|
+
* Special prompt used during autonomous operation
|
|
146
|
+
* @type {string}
|
|
147
|
+
* @memberof AgentAutonomous
|
|
148
|
+
*/
|
|
149
|
+
'prompt': string;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @type {boolean}
|
|
153
|
+
* @memberof AgentAutonomous
|
|
154
|
+
*/
|
|
155
|
+
'enabled'?: boolean | null;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Agent example configuration.
|
|
159
|
+
* @export
|
|
160
|
+
* @interface AgentExample
|
|
161
|
+
*/
|
|
162
|
+
export interface AgentExample {
|
|
163
|
+
/**
|
|
164
|
+
* Name of the example
|
|
165
|
+
* @type {string}
|
|
166
|
+
* @memberof AgentExample
|
|
167
|
+
*/
|
|
168
|
+
'name': string;
|
|
169
|
+
/**
|
|
170
|
+
* Description of the example
|
|
171
|
+
* @type {string}
|
|
172
|
+
* @memberof AgentExample
|
|
173
|
+
*/
|
|
174
|
+
'description': string;
|
|
175
|
+
/**
|
|
176
|
+
* Example prompt
|
|
177
|
+
* @type {string}
|
|
178
|
+
* @memberof AgentExample
|
|
179
|
+
*/
|
|
180
|
+
'prompt': string;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Request model for agent generation.
|
|
184
|
+
* @export
|
|
185
|
+
* @interface AgentGenerateRequest
|
|
186
|
+
*/
|
|
187
|
+
export interface AgentGenerateRequest {
|
|
188
|
+
/**
|
|
189
|
+
* Natural language description of the agent\'s desired capabilities
|
|
190
|
+
* @type {string}
|
|
191
|
+
* @memberof AgentGenerateRequest
|
|
192
|
+
*/
|
|
193
|
+
'prompt': string;
|
|
194
|
+
/**
|
|
195
|
+
*
|
|
196
|
+
* @type {AgentInput}
|
|
197
|
+
* @memberof AgentGenerateRequest
|
|
198
|
+
*/
|
|
199
|
+
'existing_agent'?: AgentInput | null;
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @type {string}
|
|
203
|
+
* @memberof AgentGenerateRequest
|
|
204
|
+
*/
|
|
205
|
+
'project_id'?: string | null;
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @type {boolean}
|
|
209
|
+
* @memberof AgentGenerateRequest
|
|
210
|
+
*/
|
|
211
|
+
'deploy'?: boolean | null;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Response model for agent generation.
|
|
215
|
+
* @export
|
|
216
|
+
* @interface AgentGenerateResponse
|
|
217
|
+
*/
|
|
218
|
+
export interface AgentGenerateResponse {
|
|
219
|
+
/**
|
|
220
|
+
* The generated agent schema
|
|
221
|
+
* @type {object}
|
|
222
|
+
* @memberof AgentGenerateResponse
|
|
223
|
+
*/
|
|
224
|
+
'agent': object;
|
|
225
|
+
/**
|
|
226
|
+
* Project ID for this conversation session
|
|
227
|
+
* @type {string}
|
|
228
|
+
* @memberof AgentGenerateResponse
|
|
229
|
+
*/
|
|
230
|
+
'project_id': string;
|
|
231
|
+
/**
|
|
232
|
+
* Human-readable summary of the generated agent
|
|
233
|
+
* @type {string}
|
|
234
|
+
* @memberof AgentGenerateResponse
|
|
235
|
+
*/
|
|
236
|
+
'summary': string;
|
|
237
|
+
/**
|
|
238
|
+
* Generated tags for the agent as ID objects: [{\'id\': 1}, {\'id\': 2}]
|
|
239
|
+
* @type {Array<{ [key: string]: number; }>}
|
|
240
|
+
* @memberof AgentGenerateResponse
|
|
241
|
+
*/
|
|
242
|
+
'tags'?: Array<{
|
|
243
|
+
[key: string]: number;
|
|
244
|
+
}>;
|
|
245
|
+
/**
|
|
246
|
+
*
|
|
247
|
+
* @type {Array<object>}
|
|
248
|
+
* @memberof AgentGenerateResponse
|
|
249
|
+
*/
|
|
250
|
+
'autonomous_tasks'?: Array<object> | null;
|
|
251
|
+
/**
|
|
252
|
+
*
|
|
253
|
+
* @type {Array<string>}
|
|
254
|
+
* @memberof AgentGenerateResponse
|
|
255
|
+
*/
|
|
256
|
+
'activated_skills'?: Array<string> | null;
|
|
257
|
+
}
|
|
16
258
|
/**
|
|
17
259
|
* Agent model.
|
|
18
260
|
* @export
|
|
19
|
-
* @interface
|
|
261
|
+
* @interface AgentInput
|
|
20
262
|
*/
|
|
21
|
-
export interface
|
|
263
|
+
export interface AgentInput {
|
|
22
264
|
/**
|
|
23
265
|
*
|
|
24
266
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
267
|
+
* @memberof AgentInput
|
|
26
268
|
*/
|
|
27
269
|
'name': string | null;
|
|
28
270
|
/**
|
|
29
271
|
*
|
|
30
272
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
273
|
+
* @memberof AgentInput
|
|
32
274
|
*/
|
|
33
275
|
'slug'?: string | null;
|
|
34
276
|
/**
|
|
35
277
|
*
|
|
36
278
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
279
|
+
* @memberof AgentInput
|
|
38
280
|
*/
|
|
39
281
|
'description'?: string | null;
|
|
40
282
|
/**
|
|
41
283
|
*
|
|
42
284
|
* @type {string}
|
|
43
|
-
* @memberof
|
|
285
|
+
* @memberof AgentInput
|
|
44
286
|
*/
|
|
45
287
|
'external_website'?: string | null;
|
|
46
288
|
/**
|
|
47
289
|
*
|
|
48
290
|
* @type {string}
|
|
49
|
-
* @memberof
|
|
291
|
+
* @memberof AgentInput
|
|
50
292
|
*/
|
|
51
293
|
'picture'?: string | null;
|
|
52
294
|
/**
|
|
53
295
|
*
|
|
54
296
|
* @type {string}
|
|
55
|
-
* @memberof
|
|
297
|
+
* @memberof AgentInput
|
|
56
298
|
*/
|
|
57
299
|
'ticker'?: string | null;
|
|
58
300
|
/**
|
|
59
301
|
*
|
|
60
302
|
* @type {string}
|
|
61
|
-
* @memberof
|
|
303
|
+
* @memberof AgentInput
|
|
62
304
|
*/
|
|
63
305
|
'token_address'?: string | null;
|
|
64
306
|
/**
|
|
65
307
|
*
|
|
66
308
|
* @type {string}
|
|
67
|
-
* @memberof
|
|
309
|
+
* @memberof AgentInput
|
|
68
310
|
*/
|
|
69
311
|
'token_pool'?: string | null;
|
|
70
312
|
/**
|
|
71
313
|
*
|
|
72
314
|
* @type {string}
|
|
73
|
-
* @memberof
|
|
315
|
+
* @memberof AgentInput
|
|
74
316
|
*/
|
|
75
|
-
'mode'?:
|
|
317
|
+
'mode'?: AgentInputModeEnum | null;
|
|
76
318
|
/**
|
|
77
319
|
*
|
|
78
|
-
* @type {
|
|
79
|
-
* @memberof
|
|
320
|
+
* @type {FeePercentage}
|
|
321
|
+
* @memberof AgentInput
|
|
80
322
|
*/
|
|
81
|
-
'fee_percentage'?:
|
|
323
|
+
'fee_percentage'?: FeePercentage | null;
|
|
82
324
|
/**
|
|
83
325
|
*
|
|
84
326
|
* @type {string}
|
|
85
|
-
* @memberof
|
|
327
|
+
* @memberof AgentInput
|
|
86
328
|
*/
|
|
87
329
|
'purpose': string | null;
|
|
88
330
|
/**
|
|
89
331
|
*
|
|
90
332
|
* @type {string}
|
|
91
|
-
* @memberof
|
|
333
|
+
* @memberof AgentInput
|
|
92
334
|
*/
|
|
93
335
|
'personality': string | null;
|
|
94
336
|
/**
|
|
95
337
|
*
|
|
96
338
|
* @type {string}
|
|
97
|
-
* @memberof
|
|
339
|
+
* @memberof AgentInput
|
|
98
340
|
*/
|
|
99
341
|
'principles': string | null;
|
|
100
342
|
/**
|
|
101
343
|
*
|
|
102
344
|
* @type {string}
|
|
103
|
-
* @memberof
|
|
345
|
+
* @memberof AgentInput
|
|
104
346
|
*/
|
|
105
347
|
'owner'?: string | null;
|
|
106
348
|
/**
|
|
107
349
|
*
|
|
108
350
|
* @type {string}
|
|
109
|
-
* @memberof
|
|
351
|
+
* @memberof AgentInput
|
|
110
352
|
*/
|
|
111
353
|
'upstream_id'?: string | null;
|
|
112
354
|
/**
|
|
113
355
|
*
|
|
114
356
|
* @type {object}
|
|
115
|
-
* @memberof
|
|
357
|
+
* @memberof AgentInput
|
|
116
358
|
*/
|
|
117
359
|
'upstream_extra'?: object | null;
|
|
118
360
|
/**
|
|
119
361
|
* AI model identifier to be used by this agent for processing requests.
|
|
120
362
|
* @type {string}
|
|
121
|
-
* @memberof
|
|
363
|
+
* @memberof AgentInput
|
|
122
364
|
*/
|
|
123
365
|
'model'?: string;
|
|
124
366
|
/**
|
|
125
367
|
*
|
|
126
368
|
* @type {string}
|
|
127
|
-
* @memberof
|
|
369
|
+
* @memberof AgentInput
|
|
128
370
|
*/
|
|
129
371
|
'prompt'?: string | null;
|
|
130
372
|
/**
|
|
131
373
|
*
|
|
132
374
|
* @type {string}
|
|
133
|
-
* @memberof
|
|
375
|
+
* @memberof AgentInput
|
|
134
376
|
*/
|
|
135
377
|
'prompt_append'?: string | null;
|
|
136
378
|
/**
|
|
137
379
|
*
|
|
138
380
|
* @type {number}
|
|
139
|
-
* @memberof
|
|
381
|
+
* @memberof AgentInput
|
|
140
382
|
*/
|
|
141
383
|
'temperature'?: number | null;
|
|
142
384
|
/**
|
|
143
385
|
*
|
|
144
386
|
* @type {number}
|
|
145
|
-
* @memberof
|
|
387
|
+
* @memberof AgentInput
|
|
146
388
|
*/
|
|
147
389
|
'frequency_penalty'?: number | null;
|
|
148
390
|
/**
|
|
149
391
|
*
|
|
150
392
|
* @type {number}
|
|
151
|
-
* @memberof
|
|
393
|
+
* @memberof AgentInput
|
|
152
394
|
*/
|
|
153
395
|
'presence_penalty'?: number | null;
|
|
154
396
|
/**
|
|
155
397
|
*
|
|
156
398
|
* @type {string}
|
|
157
|
-
* @memberof
|
|
399
|
+
* @memberof AgentInput
|
|
158
400
|
*/
|
|
159
|
-
'short_term_memory_strategy'?:
|
|
401
|
+
'short_term_memory_strategy'?: AgentInputShortTermMemoryStrategyEnum | null;
|
|
160
402
|
/**
|
|
161
403
|
*
|
|
162
404
|
* @type {Array<AgentAutonomous>}
|
|
163
|
-
* @memberof
|
|
405
|
+
* @memberof AgentInput
|
|
164
406
|
*/
|
|
165
407
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
166
408
|
/**
|
|
167
409
|
*
|
|
168
410
|
* @type {string}
|
|
169
|
-
* @memberof
|
|
411
|
+
* @memberof AgentInput
|
|
170
412
|
*/
|
|
171
413
|
'example_intro'?: string | null;
|
|
172
414
|
/**
|
|
173
415
|
*
|
|
174
416
|
* @type {Array<AgentExample>}
|
|
175
|
-
* @memberof
|
|
417
|
+
* @memberof AgentInput
|
|
176
418
|
*/
|
|
177
419
|
'examples'?: Array<AgentExample> | null;
|
|
178
420
|
/**
|
|
179
421
|
*
|
|
180
422
|
* @type {object}
|
|
181
|
-
* @memberof
|
|
423
|
+
* @memberof AgentInput
|
|
182
424
|
*/
|
|
183
425
|
'skills'?: object | null;
|
|
184
426
|
/**
|
|
185
427
|
*
|
|
186
428
|
* @type {string}
|
|
187
|
-
* @memberof
|
|
429
|
+
* @memberof AgentInput
|
|
188
430
|
*/
|
|
189
|
-
'wallet_provider'?:
|
|
431
|
+
'wallet_provider'?: AgentInputWalletProviderEnum | null;
|
|
190
432
|
/**
|
|
191
433
|
*
|
|
192
434
|
* @type {string}
|
|
193
|
-
* @memberof
|
|
435
|
+
* @memberof AgentInput
|
|
194
436
|
*/
|
|
195
437
|
'readonly_wallet_address'?: string | null;
|
|
196
438
|
/**
|
|
197
439
|
*
|
|
198
440
|
* @type {string}
|
|
199
|
-
* @memberof
|
|
441
|
+
* @memberof AgentInput
|
|
200
442
|
*/
|
|
201
|
-
'network_id'?:
|
|
443
|
+
'network_id'?: AgentInputNetworkIdEnum | null;
|
|
202
444
|
/**
|
|
203
445
|
*
|
|
204
446
|
* @type {string}
|
|
205
|
-
* @memberof
|
|
447
|
+
* @memberof AgentInput
|
|
206
448
|
*/
|
|
207
|
-
'cdp_network_id'?:
|
|
449
|
+
'cdp_network_id'?: AgentInputCdpNetworkIdEnum | null;
|
|
208
450
|
/**
|
|
209
451
|
*
|
|
210
452
|
* @type {boolean}
|
|
211
|
-
* @memberof
|
|
453
|
+
* @memberof AgentInput
|
|
212
454
|
*/
|
|
213
455
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
214
456
|
/**
|
|
215
457
|
*
|
|
216
458
|
* @type {string}
|
|
217
|
-
* @memberof
|
|
459
|
+
* @memberof AgentInput
|
|
218
460
|
*/
|
|
219
461
|
'telegram_entrypoint_prompt'?: string | null;
|
|
220
462
|
/**
|
|
221
463
|
*
|
|
222
464
|
* @type {object}
|
|
223
|
-
* @memberof
|
|
465
|
+
* @memberof AgentInput
|
|
224
466
|
*/
|
|
225
467
|
'telegram_config'?: object | null;
|
|
226
468
|
/**
|
|
227
469
|
*
|
|
228
470
|
* @type {string}
|
|
229
|
-
* @memberof
|
|
471
|
+
* @memberof AgentInput
|
|
230
472
|
*/
|
|
231
473
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
232
474
|
/**
|
|
233
475
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
234
476
|
* @type {string}
|
|
235
|
-
* @memberof
|
|
477
|
+
* @memberof AgentInput
|
|
236
478
|
*/
|
|
237
479
|
'id'?: string;
|
|
238
480
|
/**
|
|
239
481
|
* Timestamp when the agent was created, will ignore when importing
|
|
240
482
|
* @type {string}
|
|
241
|
-
* @memberof
|
|
483
|
+
* @memberof AgentInput
|
|
242
484
|
*/
|
|
243
485
|
'created_at'?: string;
|
|
244
486
|
/**
|
|
245
487
|
* Timestamp when the agent was last updated, will ignore when importing
|
|
246
488
|
* @type {string}
|
|
247
|
-
* @memberof
|
|
489
|
+
* @memberof AgentInput
|
|
248
490
|
*/
|
|
249
491
|
'updated_at'?: string;
|
|
250
492
|
}
|
|
251
|
-
export declare const
|
|
493
|
+
export declare const AgentInputModeEnum: {
|
|
252
494
|
readonly Public: "public";
|
|
253
495
|
readonly Private: "private";
|
|
254
496
|
};
|
|
255
|
-
export type
|
|
256
|
-
export declare const
|
|
497
|
+
export type AgentInputModeEnum = typeof AgentInputModeEnum[keyof typeof AgentInputModeEnum];
|
|
498
|
+
export declare const AgentInputShortTermMemoryStrategyEnum: {
|
|
257
499
|
readonly Trim: "trim";
|
|
258
500
|
readonly Summarize: "summarize";
|
|
259
501
|
};
|
|
260
|
-
export type
|
|
261
|
-
export declare const
|
|
502
|
+
export type AgentInputShortTermMemoryStrategyEnum = typeof AgentInputShortTermMemoryStrategyEnum[keyof typeof AgentInputShortTermMemoryStrategyEnum];
|
|
503
|
+
export declare const AgentInputWalletProviderEnum: {
|
|
262
504
|
readonly Cdp: "cdp";
|
|
263
505
|
readonly Readonly: "readonly";
|
|
264
506
|
};
|
|
265
|
-
export type
|
|
266
|
-
export declare const
|
|
507
|
+
export type AgentInputWalletProviderEnum = typeof AgentInputWalletProviderEnum[keyof typeof AgentInputWalletProviderEnum];
|
|
508
|
+
export declare const AgentInputNetworkIdEnum: {
|
|
267
509
|
readonly EthereumMainnet: "ethereum-mainnet";
|
|
268
510
|
readonly EthereumSepolia: "ethereum-sepolia";
|
|
269
511
|
readonly PolygonMainnet: "polygon-mainnet";
|
|
@@ -276,8 +518,8 @@ export declare const AgentNetworkIdEnum: {
|
|
|
276
518
|
readonly OptimismSepolia: "optimism-sepolia";
|
|
277
519
|
readonly Solana: "solana";
|
|
278
520
|
};
|
|
279
|
-
export type
|
|
280
|
-
export declare const
|
|
521
|
+
export type AgentInputNetworkIdEnum = typeof AgentInputNetworkIdEnum[keyof typeof AgentInputNetworkIdEnum];
|
|
522
|
+
export declare const AgentInputCdpNetworkIdEnum: {
|
|
281
523
|
readonly EthereumMainnet: "ethereum-mainnet";
|
|
282
524
|
readonly EthereumSepolia: "ethereum-sepolia";
|
|
283
525
|
readonly PolygonMainnet: "polygon-mainnet";
|
|
@@ -289,268 +531,309 @@ export declare const AgentCdpNetworkIdEnum: {
|
|
|
289
531
|
readonly OptimismMainnet: "optimism-mainnet";
|
|
290
532
|
readonly OptimismSepolia: "optimism-sepolia";
|
|
291
533
|
};
|
|
292
|
-
export type
|
|
534
|
+
export type AgentInputCdpNetworkIdEnum = typeof AgentInputCdpNetworkIdEnum[keyof typeof AgentInputCdpNetworkIdEnum];
|
|
293
535
|
/**
|
|
294
|
-
*
|
|
536
|
+
* Paginated response model for agents list. Contains a list of agents, a flag indicating if more items are available, and a cursor for pagination.
|
|
295
537
|
* @export
|
|
296
|
-
* @interface
|
|
538
|
+
* @interface AgentListResponse
|
|
297
539
|
*/
|
|
298
|
-
export interface
|
|
540
|
+
export interface AgentListResponse {
|
|
299
541
|
/**
|
|
300
|
-
*
|
|
542
|
+
* List of agents
|
|
543
|
+
* @type {Array<AgentResponse>}
|
|
544
|
+
* @memberof AgentListResponse
|
|
545
|
+
*/
|
|
546
|
+
'data': Array<AgentResponse>;
|
|
547
|
+
/**
|
|
548
|
+
* Indicates if there are more items
|
|
549
|
+
* @type {boolean}
|
|
550
|
+
* @memberof AgentListResponse
|
|
551
|
+
*/
|
|
552
|
+
'has_more': boolean;
|
|
553
|
+
/**
|
|
554
|
+
*
|
|
301
555
|
* @type {string}
|
|
302
|
-
* @memberof
|
|
556
|
+
* @memberof AgentListResponse
|
|
303
557
|
*/
|
|
304
|
-
'
|
|
558
|
+
'next_cursor'?: string | null;
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* Agent model.
|
|
562
|
+
* @export
|
|
563
|
+
* @interface AgentOutput
|
|
564
|
+
*/
|
|
565
|
+
export interface AgentOutput {
|
|
305
566
|
/**
|
|
306
|
-
*
|
|
567
|
+
*
|
|
307
568
|
* @type {string}
|
|
308
|
-
* @memberof
|
|
569
|
+
* @memberof AgentOutput
|
|
309
570
|
*/
|
|
310
|
-
'
|
|
571
|
+
'name': string | null;
|
|
311
572
|
/**
|
|
312
|
-
*
|
|
573
|
+
*
|
|
313
574
|
* @type {string}
|
|
314
|
-
* @memberof
|
|
575
|
+
* @memberof AgentOutput
|
|
315
576
|
*/
|
|
316
|
-
'
|
|
577
|
+
'slug'?: string | null;
|
|
317
578
|
/**
|
|
318
|
-
*
|
|
579
|
+
*
|
|
319
580
|
* @type {string}
|
|
320
|
-
* @memberof
|
|
581
|
+
* @memberof AgentOutput
|
|
321
582
|
*/
|
|
322
|
-
'
|
|
583
|
+
'description'?: string | null;
|
|
323
584
|
/**
|
|
324
|
-
*
|
|
585
|
+
*
|
|
586
|
+
* @type {string}
|
|
587
|
+
* @memberof AgentOutput
|
|
588
|
+
*/
|
|
589
|
+
'external_website'?: string | null;
|
|
590
|
+
/**
|
|
591
|
+
*
|
|
592
|
+
* @type {string}
|
|
593
|
+
* @memberof AgentOutput
|
|
594
|
+
*/
|
|
595
|
+
'picture'?: string | null;
|
|
596
|
+
/**
|
|
597
|
+
*
|
|
598
|
+
* @type {string}
|
|
599
|
+
* @memberof AgentOutput
|
|
600
|
+
*/
|
|
601
|
+
'ticker'?: string | null;
|
|
602
|
+
/**
|
|
603
|
+
*
|
|
604
|
+
* @type {string}
|
|
605
|
+
* @memberof AgentOutput
|
|
606
|
+
*/
|
|
607
|
+
'token_address'?: string | null;
|
|
608
|
+
/**
|
|
609
|
+
*
|
|
325
610
|
* @type {string}
|
|
326
|
-
* @memberof
|
|
611
|
+
* @memberof AgentOutput
|
|
327
612
|
*/
|
|
328
|
-
'
|
|
329
|
-
}
|
|
330
|
-
/**
|
|
331
|
-
* Response model for agent assets.
|
|
332
|
-
* @export
|
|
333
|
-
* @interface AgentAssetsResponse
|
|
334
|
-
*/
|
|
335
|
-
export interface AgentAssetsResponse {
|
|
613
|
+
'token_pool'?: string | null;
|
|
336
614
|
/**
|
|
337
|
-
*
|
|
615
|
+
*
|
|
338
616
|
* @type {string}
|
|
339
|
-
* @memberof
|
|
617
|
+
* @memberof AgentOutput
|
|
340
618
|
*/
|
|
341
|
-
'
|
|
619
|
+
'mode'?: AgentOutputModeEnum | null;
|
|
342
620
|
/**
|
|
343
621
|
*
|
|
344
622
|
* @type {string}
|
|
345
|
-
* @memberof
|
|
623
|
+
* @memberof AgentOutput
|
|
346
624
|
*/
|
|
347
|
-
'
|
|
625
|
+
'fee_percentage'?: string | null;
|
|
348
626
|
/**
|
|
349
627
|
*
|
|
350
628
|
* @type {string}
|
|
351
|
-
* @memberof
|
|
629
|
+
* @memberof AgentOutput
|
|
352
630
|
*/
|
|
353
|
-
'
|
|
631
|
+
'purpose': string | null;
|
|
354
632
|
/**
|
|
355
633
|
*
|
|
356
634
|
* @type {string}
|
|
357
|
-
* @memberof
|
|
635
|
+
* @memberof AgentOutput
|
|
358
636
|
*/
|
|
359
|
-
'
|
|
637
|
+
'personality': string | null;
|
|
360
638
|
/**
|
|
361
639
|
*
|
|
362
640
|
* @type {string}
|
|
363
|
-
* @memberof
|
|
641
|
+
* @memberof AgentOutput
|
|
364
642
|
*/
|
|
365
|
-
'
|
|
643
|
+
'principles': string | null;
|
|
366
644
|
/**
|
|
367
645
|
*
|
|
368
646
|
* @type {string}
|
|
369
|
-
* @memberof
|
|
647
|
+
* @memberof AgentOutput
|
|
370
648
|
*/
|
|
371
|
-
'
|
|
649
|
+
'owner'?: string | null;
|
|
372
650
|
/**
|
|
373
|
-
*
|
|
651
|
+
*
|
|
374
652
|
* @type {string}
|
|
375
|
-
* @memberof
|
|
653
|
+
* @memberof AgentOutput
|
|
376
654
|
*/
|
|
377
|
-
'
|
|
655
|
+
'upstream_id'?: string | null;
|
|
378
656
|
/**
|
|
379
|
-
*
|
|
380
|
-
* @type {
|
|
381
|
-
* @memberof
|
|
657
|
+
*
|
|
658
|
+
* @type {object}
|
|
659
|
+
* @memberof AgentOutput
|
|
382
660
|
*/
|
|
383
|
-
'
|
|
384
|
-
}
|
|
385
|
-
/**
|
|
386
|
-
* Autonomous agent configuration.
|
|
387
|
-
* @export
|
|
388
|
-
* @interface AgentAutonomous
|
|
389
|
-
*/
|
|
390
|
-
export interface AgentAutonomous {
|
|
661
|
+
'upstream_extra'?: object | null;
|
|
391
662
|
/**
|
|
392
|
-
*
|
|
663
|
+
* AI model identifier to be used by this agent for processing requests.
|
|
393
664
|
* @type {string}
|
|
394
|
-
* @memberof
|
|
665
|
+
* @memberof AgentOutput
|
|
395
666
|
*/
|
|
396
|
-
'
|
|
667
|
+
'model'?: string;
|
|
397
668
|
/**
|
|
398
669
|
*
|
|
399
670
|
* @type {string}
|
|
400
|
-
* @memberof
|
|
671
|
+
* @memberof AgentOutput
|
|
401
672
|
*/
|
|
402
|
-
'
|
|
673
|
+
'prompt'?: string | null;
|
|
403
674
|
/**
|
|
404
675
|
*
|
|
405
676
|
* @type {string}
|
|
406
|
-
* @memberof
|
|
677
|
+
* @memberof AgentOutput
|
|
407
678
|
*/
|
|
408
|
-
'
|
|
679
|
+
'prompt_append'?: string | null;
|
|
409
680
|
/**
|
|
410
681
|
*
|
|
411
682
|
* @type {number}
|
|
412
|
-
* @memberof
|
|
683
|
+
* @memberof AgentOutput
|
|
413
684
|
*/
|
|
414
|
-
'
|
|
685
|
+
'temperature'?: number | null;
|
|
415
686
|
/**
|
|
416
687
|
*
|
|
417
|
-
* @type {
|
|
418
|
-
* @memberof
|
|
419
|
-
*/
|
|
420
|
-
'cron'?: string | null;
|
|
421
|
-
/**
|
|
422
|
-
* Special prompt used during autonomous operation
|
|
423
|
-
* @type {string}
|
|
424
|
-
* @memberof AgentAutonomous
|
|
688
|
+
* @type {number}
|
|
689
|
+
* @memberof AgentOutput
|
|
425
690
|
*/
|
|
426
|
-
'
|
|
691
|
+
'frequency_penalty'?: number | null;
|
|
427
692
|
/**
|
|
428
693
|
*
|
|
429
|
-
* @type {
|
|
430
|
-
* @memberof
|
|
694
|
+
* @type {number}
|
|
695
|
+
* @memberof AgentOutput
|
|
431
696
|
*/
|
|
432
|
-
'
|
|
433
|
-
}
|
|
434
|
-
/**
|
|
435
|
-
* Agent example configuration.
|
|
436
|
-
* @export
|
|
437
|
-
* @interface AgentExample
|
|
438
|
-
*/
|
|
439
|
-
export interface AgentExample {
|
|
697
|
+
'presence_penalty'?: number | null;
|
|
440
698
|
/**
|
|
441
|
-
*
|
|
699
|
+
*
|
|
442
700
|
* @type {string}
|
|
443
|
-
* @memberof
|
|
701
|
+
* @memberof AgentOutput
|
|
444
702
|
*/
|
|
445
|
-
'
|
|
703
|
+
'short_term_memory_strategy'?: AgentOutputShortTermMemoryStrategyEnum | null;
|
|
446
704
|
/**
|
|
447
|
-
*
|
|
448
|
-
* @type {
|
|
449
|
-
* @memberof
|
|
705
|
+
*
|
|
706
|
+
* @type {Array<AgentAutonomous>}
|
|
707
|
+
* @memberof AgentOutput
|
|
450
708
|
*/
|
|
451
|
-
'
|
|
709
|
+
'autonomous'?: Array<AgentAutonomous> | null;
|
|
452
710
|
/**
|
|
453
|
-
*
|
|
711
|
+
*
|
|
454
712
|
* @type {string}
|
|
455
|
-
* @memberof
|
|
713
|
+
* @memberof AgentOutput
|
|
456
714
|
*/
|
|
457
|
-
'
|
|
458
|
-
}
|
|
459
|
-
/**
|
|
460
|
-
* Request model for agent generation.
|
|
461
|
-
* @export
|
|
462
|
-
* @interface AgentGenerateRequest
|
|
463
|
-
*/
|
|
464
|
-
export interface AgentGenerateRequest {
|
|
715
|
+
'example_intro'?: string | null;
|
|
465
716
|
/**
|
|
466
|
-
*
|
|
467
|
-
* @type {
|
|
468
|
-
* @memberof
|
|
717
|
+
*
|
|
718
|
+
* @type {Array<AgentExample>}
|
|
719
|
+
* @memberof AgentOutput
|
|
469
720
|
*/
|
|
470
|
-
'
|
|
721
|
+
'examples'?: Array<AgentExample> | null;
|
|
471
722
|
/**
|
|
472
723
|
*
|
|
473
|
-
* @type {
|
|
474
|
-
* @memberof
|
|
724
|
+
* @type {object}
|
|
725
|
+
* @memberof AgentOutput
|
|
475
726
|
*/
|
|
476
|
-
'
|
|
727
|
+
'skills'?: object | null;
|
|
477
728
|
/**
|
|
478
729
|
*
|
|
479
730
|
* @type {string}
|
|
480
|
-
* @memberof
|
|
731
|
+
* @memberof AgentOutput
|
|
481
732
|
*/
|
|
482
|
-
'
|
|
483
|
-
}
|
|
484
|
-
/**
|
|
485
|
-
* Response model for agent generation.
|
|
486
|
-
* @export
|
|
487
|
-
* @interface AgentGenerateResponse
|
|
488
|
-
*/
|
|
489
|
-
export interface AgentGenerateResponse {
|
|
733
|
+
'wallet_provider'?: AgentOutputWalletProviderEnum | null;
|
|
490
734
|
/**
|
|
491
|
-
*
|
|
492
|
-
* @type {
|
|
493
|
-
* @memberof
|
|
735
|
+
*
|
|
736
|
+
* @type {string}
|
|
737
|
+
* @memberof AgentOutput
|
|
494
738
|
*/
|
|
495
|
-
'
|
|
739
|
+
'readonly_wallet_address'?: string | null;
|
|
496
740
|
/**
|
|
497
|
-
*
|
|
741
|
+
*
|
|
498
742
|
* @type {string}
|
|
499
|
-
* @memberof
|
|
743
|
+
* @memberof AgentOutput
|
|
500
744
|
*/
|
|
501
|
-
'
|
|
745
|
+
'network_id'?: AgentOutputNetworkIdEnum | null;
|
|
502
746
|
/**
|
|
503
|
-
*
|
|
747
|
+
*
|
|
504
748
|
* @type {string}
|
|
505
|
-
* @memberof
|
|
749
|
+
* @memberof AgentOutput
|
|
506
750
|
*/
|
|
507
|
-
'
|
|
751
|
+
'cdp_network_id'?: AgentOutputCdpNetworkIdEnum | null;
|
|
508
752
|
/**
|
|
509
|
-
*
|
|
510
|
-
* @type {
|
|
511
|
-
* @memberof
|
|
753
|
+
*
|
|
754
|
+
* @type {boolean}
|
|
755
|
+
* @memberof AgentOutput
|
|
512
756
|
*/
|
|
513
|
-
'
|
|
514
|
-
[key: string]: number;
|
|
515
|
-
}>;
|
|
757
|
+
'telegram_entrypoint_enabled'?: boolean | null;
|
|
516
758
|
/**
|
|
517
|
-
*
|
|
518
|
-
* @type {
|
|
519
|
-
* @memberof
|
|
759
|
+
*
|
|
760
|
+
* @type {string}
|
|
761
|
+
* @memberof AgentOutput
|
|
520
762
|
*/
|
|
521
|
-
'
|
|
763
|
+
'telegram_entrypoint_prompt'?: string | null;
|
|
522
764
|
/**
|
|
523
|
-
*
|
|
524
|
-
* @type {
|
|
525
|
-
* @memberof
|
|
765
|
+
*
|
|
766
|
+
* @type {object}
|
|
767
|
+
* @memberof AgentOutput
|
|
526
768
|
*/
|
|
527
|
-
'
|
|
528
|
-
}
|
|
529
|
-
/**
|
|
530
|
-
* Paginated response model for agents list. Contains a list of agents, a flag indicating if more items are available, and a cursor for pagination.
|
|
531
|
-
* @export
|
|
532
|
-
* @interface AgentListResponse
|
|
533
|
-
*/
|
|
534
|
-
export interface AgentListResponse {
|
|
769
|
+
'telegram_config'?: object | null;
|
|
535
770
|
/**
|
|
536
|
-
*
|
|
537
|
-
* @type {
|
|
538
|
-
* @memberof
|
|
771
|
+
*
|
|
772
|
+
* @type {string}
|
|
773
|
+
* @memberof AgentOutput
|
|
539
774
|
*/
|
|
540
|
-
'
|
|
775
|
+
'xmtp_entrypoint_prompt'?: string | null;
|
|
541
776
|
/**
|
|
542
|
-
*
|
|
543
|
-
* @type {
|
|
544
|
-
* @memberof
|
|
777
|
+
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
778
|
+
* @type {string}
|
|
779
|
+
* @memberof AgentOutput
|
|
545
780
|
*/
|
|
546
|
-
'
|
|
781
|
+
'id'?: string;
|
|
547
782
|
/**
|
|
548
|
-
*
|
|
783
|
+
* Timestamp when the agent was created, will ignore when importing
|
|
549
784
|
* @type {string}
|
|
550
|
-
* @memberof
|
|
785
|
+
* @memberof AgentOutput
|
|
551
786
|
*/
|
|
552
|
-
'
|
|
787
|
+
'created_at'?: string;
|
|
788
|
+
/**
|
|
789
|
+
* Timestamp when the agent was last updated, will ignore when importing
|
|
790
|
+
* @type {string}
|
|
791
|
+
* @memberof AgentOutput
|
|
792
|
+
*/
|
|
793
|
+
'updated_at'?: string;
|
|
553
794
|
}
|
|
795
|
+
export declare const AgentOutputModeEnum: {
|
|
796
|
+
readonly Public: "public";
|
|
797
|
+
readonly Private: "private";
|
|
798
|
+
};
|
|
799
|
+
export type AgentOutputModeEnum = typeof AgentOutputModeEnum[keyof typeof AgentOutputModeEnum];
|
|
800
|
+
export declare const AgentOutputShortTermMemoryStrategyEnum: {
|
|
801
|
+
readonly Trim: "trim";
|
|
802
|
+
readonly Summarize: "summarize";
|
|
803
|
+
};
|
|
804
|
+
export type AgentOutputShortTermMemoryStrategyEnum = typeof AgentOutputShortTermMemoryStrategyEnum[keyof typeof AgentOutputShortTermMemoryStrategyEnum];
|
|
805
|
+
export declare const AgentOutputWalletProviderEnum: {
|
|
806
|
+
readonly Cdp: "cdp";
|
|
807
|
+
readonly Readonly: "readonly";
|
|
808
|
+
};
|
|
809
|
+
export type AgentOutputWalletProviderEnum = typeof AgentOutputWalletProviderEnum[keyof typeof AgentOutputWalletProviderEnum];
|
|
810
|
+
export declare const AgentOutputNetworkIdEnum: {
|
|
811
|
+
readonly EthereumMainnet: "ethereum-mainnet";
|
|
812
|
+
readonly EthereumSepolia: "ethereum-sepolia";
|
|
813
|
+
readonly PolygonMainnet: "polygon-mainnet";
|
|
814
|
+
readonly PolygonMumbai: "polygon-mumbai";
|
|
815
|
+
readonly BaseMainnet: "base-mainnet";
|
|
816
|
+
readonly BaseSepolia: "base-sepolia";
|
|
817
|
+
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
818
|
+
readonly ArbitrumSepolia: "arbitrum-sepolia";
|
|
819
|
+
readonly OptimismMainnet: "optimism-mainnet";
|
|
820
|
+
readonly OptimismSepolia: "optimism-sepolia";
|
|
821
|
+
readonly Solana: "solana";
|
|
822
|
+
};
|
|
823
|
+
export type AgentOutputNetworkIdEnum = typeof AgentOutputNetworkIdEnum[keyof typeof AgentOutputNetworkIdEnum];
|
|
824
|
+
export declare const AgentOutputCdpNetworkIdEnum: {
|
|
825
|
+
readonly EthereumMainnet: "ethereum-mainnet";
|
|
826
|
+
readonly EthereumSepolia: "ethereum-sepolia";
|
|
827
|
+
readonly PolygonMainnet: "polygon-mainnet";
|
|
828
|
+
readonly PolygonMumbai: "polygon-mumbai";
|
|
829
|
+
readonly BaseMainnet: "base-mainnet";
|
|
830
|
+
readonly BaseSepolia: "base-sepolia";
|
|
831
|
+
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
832
|
+
readonly ArbitrumSepolia: "arbitrum-sepolia";
|
|
833
|
+
readonly OptimismMainnet: "optimism-mainnet";
|
|
834
|
+
readonly OptimismSepolia: "optimism-sepolia";
|
|
835
|
+
};
|
|
836
|
+
export type AgentOutputCdpNetworkIdEnum = typeof AgentOutputCdpNetworkIdEnum[keyof typeof AgentOutputCdpNetworkIdEnum];
|
|
554
837
|
/**
|
|
555
838
|
* Response model for Agent API.
|
|
556
839
|
* @export
|
|
@@ -1632,6 +1915,54 @@ export interface CreditAccount {
|
|
|
1632
1915
|
* @memberof CreditAccount
|
|
1633
1916
|
*/
|
|
1634
1917
|
'last_event_id'?: string | null;
|
|
1918
|
+
/**
|
|
1919
|
+
* Total income from all credit transactions
|
|
1920
|
+
* @type {string}
|
|
1921
|
+
* @memberof CreditAccount
|
|
1922
|
+
*/
|
|
1923
|
+
'total_income'?: string;
|
|
1924
|
+
/**
|
|
1925
|
+
* Total income from free credit transactions
|
|
1926
|
+
* @type {string}
|
|
1927
|
+
* @memberof CreditAccount
|
|
1928
|
+
*/
|
|
1929
|
+
'total_free_income'?: string;
|
|
1930
|
+
/**
|
|
1931
|
+
* Total income from reward credit transactions
|
|
1932
|
+
* @type {string}
|
|
1933
|
+
* @memberof CreditAccount
|
|
1934
|
+
*/
|
|
1935
|
+
'total_reward_income'?: string;
|
|
1936
|
+
/**
|
|
1937
|
+
* Total income from permanent credit transactions
|
|
1938
|
+
* @type {string}
|
|
1939
|
+
* @memberof CreditAccount
|
|
1940
|
+
*/
|
|
1941
|
+
'total_permanent_income'?: string;
|
|
1942
|
+
/**
|
|
1943
|
+
* Total expense from all credit transactions
|
|
1944
|
+
* @type {string}
|
|
1945
|
+
* @memberof CreditAccount
|
|
1946
|
+
*/
|
|
1947
|
+
'total_expense'?: string;
|
|
1948
|
+
/**
|
|
1949
|
+
* Total expense from free credit transactions
|
|
1950
|
+
* @type {string}
|
|
1951
|
+
* @memberof CreditAccount
|
|
1952
|
+
*/
|
|
1953
|
+
'total_free_expense'?: string;
|
|
1954
|
+
/**
|
|
1955
|
+
* Total expense from reward credit transactions
|
|
1956
|
+
* @type {string}
|
|
1957
|
+
* @memberof CreditAccount
|
|
1958
|
+
*/
|
|
1959
|
+
'total_reward_expense'?: string;
|
|
1960
|
+
/**
|
|
1961
|
+
* Total expense from permanent credit transactions
|
|
1962
|
+
* @type {string}
|
|
1963
|
+
* @memberof CreditAccount
|
|
1964
|
+
*/
|
|
1965
|
+
'total_permanent_expense'?: string;
|
|
1635
1966
|
/**
|
|
1636
1967
|
* Timestamp when this account was created
|
|
1637
1968
|
* @type {string}
|
|
@@ -2380,6 +2711,7 @@ export declare const EventType: {
|
|
|
2380
2711
|
readonly Refund: "refund";
|
|
2381
2712
|
readonly Adjustment: "adjustment";
|
|
2382
2713
|
readonly Refill: "refill";
|
|
2714
|
+
readonly Withdraw: "withdraw";
|
|
2383
2715
|
readonly Reward: "reward";
|
|
2384
2716
|
readonly EventReward: "event_reward";
|
|
2385
2717
|
readonly RechargeBonus: "recharge_bonus";
|
|
@@ -2761,6 +3093,7 @@ export declare const TransactionType: {
|
|
|
2761
3093
|
readonly Refund: "refund";
|
|
2762
3094
|
readonly Adjustment: "adjustment";
|
|
2763
3095
|
readonly Refill: "refill";
|
|
3096
|
+
readonly Withdraw: "withdraw";
|
|
2764
3097
|
readonly Reward: "reward";
|
|
2765
3098
|
readonly EventReward: "event_reward";
|
|
2766
3099
|
readonly RechargeBonus: "recharge_bonus";
|
|
@@ -4511,7 +4844,7 @@ export declare const UserApiFp: (configuration?: Configuration) => {
|
|
|
4511
4844
|
* @param {*} [options] Override http request option.
|
|
4512
4845
|
* @throws {RequiredError}
|
|
4513
4846
|
*/
|
|
4514
|
-
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4847
|
+
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentOutput>>;
|
|
4515
4848
|
/**
|
|
4516
4849
|
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
|
|
4517
4850
|
* @summary Get User Agents
|
|
@@ -4534,7 +4867,7 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4534
4867
|
* @param {*} [options] Override http request option.
|
|
4535
4868
|
* @throws {RequiredError}
|
|
4536
4869
|
*/
|
|
4537
|
-
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
4870
|
+
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentOutput>;
|
|
4538
4871
|
/**
|
|
4539
4872
|
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
|
|
4540
4873
|
* @summary Get User Agents
|
|
@@ -4560,7 +4893,7 @@ export declare class UserApi extends BaseAPI {
|
|
|
4560
4893
|
* @throws {RequiredError}
|
|
4561
4894
|
* @memberof UserApi
|
|
4562
4895
|
*/
|
|
4563
|
-
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
4896
|
+
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentOutput, any>>;
|
|
4564
4897
|
/**
|
|
4565
4898
|
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
|
|
4566
4899
|
* @summary Get User Agents
|