@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/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Nation IntentKit API
|
|
5
5
|
* API for Nation IntentKit services
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.6.
|
|
7
|
+
* The version of the OpenAPI document: 0.6.27
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -23,261 +23,501 @@ import type { RequestArgs } from './base';
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* Response model for agent API key generation.
|
|
28
|
+
* @export
|
|
29
|
+
* @interface AgentApiKeyResponse
|
|
30
|
+
*/
|
|
31
|
+
export interface AgentApiKeyResponse {
|
|
32
|
+
/**
|
|
33
|
+
* The private API key for the agent (sk-)
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AgentApiKeyResponse
|
|
36
|
+
*/
|
|
37
|
+
'api_key': string;
|
|
38
|
+
/**
|
|
39
|
+
* The public API key for the agent (pk-)
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AgentApiKeyResponse
|
|
42
|
+
*/
|
|
43
|
+
'api_key_public': string;
|
|
44
|
+
/**
|
|
45
|
+
* The base URL for the API
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof AgentApiKeyResponse
|
|
48
|
+
*/
|
|
49
|
+
'base_url': string;
|
|
50
|
+
/**
|
|
51
|
+
* API documentation URL
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof AgentApiKeyResponse
|
|
54
|
+
*/
|
|
55
|
+
'api_doc': string;
|
|
56
|
+
/**
|
|
57
|
+
* OpenAPI JSON URL for AI integration
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof AgentApiKeyResponse
|
|
60
|
+
*/
|
|
61
|
+
'doc_for_ai': string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Response model for agent assets.
|
|
65
|
+
* @export
|
|
66
|
+
* @interface AgentAssetsResponse
|
|
67
|
+
*/
|
|
68
|
+
export interface AgentAssetsResponse {
|
|
69
|
+
/**
|
|
70
|
+
* ID of the agent
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof AgentAssetsResponse
|
|
73
|
+
*/
|
|
74
|
+
'agent_id': string;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof AgentAssetsResponse
|
|
79
|
+
*/
|
|
80
|
+
'network_id': string | null;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof AgentAssetsResponse
|
|
85
|
+
*/
|
|
86
|
+
'wallet_address': string | null;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof AgentAssetsResponse
|
|
91
|
+
*/
|
|
92
|
+
'ticker': string | null;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof AgentAssetsResponse
|
|
97
|
+
*/
|
|
98
|
+
'token_address': string | null;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof AgentAssetsResponse
|
|
103
|
+
*/
|
|
104
|
+
'token_pool': string | null;
|
|
105
|
+
/**
|
|
106
|
+
* Total value locked, set to 0 for this version
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof AgentAssetsResponse
|
|
109
|
+
*/
|
|
110
|
+
'tvl'?: string;
|
|
111
|
+
/**
|
|
112
|
+
* List of assets with symbol and balance
|
|
113
|
+
* @type {Array<Asset>}
|
|
114
|
+
* @memberof AgentAssetsResponse
|
|
115
|
+
*/
|
|
116
|
+
'assets': Array<Asset>;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Autonomous agent configuration.
|
|
120
|
+
* @export
|
|
121
|
+
* @interface AgentAutonomous
|
|
122
|
+
*/
|
|
123
|
+
export interface AgentAutonomous {
|
|
124
|
+
/**
|
|
125
|
+
* Unique identifier for the autonomous configuration
|
|
126
|
+
* @type {string}
|
|
127
|
+
* @memberof AgentAutonomous
|
|
128
|
+
*/
|
|
129
|
+
'id'?: string;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {string}
|
|
133
|
+
* @memberof AgentAutonomous
|
|
134
|
+
*/
|
|
135
|
+
'name'?: string | null;
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @type {string}
|
|
139
|
+
* @memberof AgentAutonomous
|
|
140
|
+
*/
|
|
141
|
+
'description'?: string | null;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {number}
|
|
145
|
+
* @memberof AgentAutonomous
|
|
146
|
+
*/
|
|
147
|
+
'minutes'?: number | null;
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* @type {string}
|
|
151
|
+
* @memberof AgentAutonomous
|
|
152
|
+
*/
|
|
153
|
+
'cron'?: string | null;
|
|
154
|
+
/**
|
|
155
|
+
* Special prompt used during autonomous operation
|
|
156
|
+
* @type {string}
|
|
157
|
+
* @memberof AgentAutonomous
|
|
158
|
+
*/
|
|
159
|
+
'prompt': string;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @type {boolean}
|
|
163
|
+
* @memberof AgentAutonomous
|
|
164
|
+
*/
|
|
165
|
+
'enabled'?: boolean | null;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Agent example configuration.
|
|
169
|
+
* @export
|
|
170
|
+
* @interface AgentExample
|
|
171
|
+
*/
|
|
172
|
+
export interface AgentExample {
|
|
173
|
+
/**
|
|
174
|
+
* Name of the example
|
|
175
|
+
* @type {string}
|
|
176
|
+
* @memberof AgentExample
|
|
177
|
+
*/
|
|
178
|
+
'name': string;
|
|
179
|
+
/**
|
|
180
|
+
* Description of the example
|
|
181
|
+
* @type {string}
|
|
182
|
+
* @memberof AgentExample
|
|
183
|
+
*/
|
|
184
|
+
'description': string;
|
|
185
|
+
/**
|
|
186
|
+
* Example prompt
|
|
187
|
+
* @type {string}
|
|
188
|
+
* @memberof AgentExample
|
|
189
|
+
*/
|
|
190
|
+
'prompt': string;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Request model for agent generation.
|
|
194
|
+
* @export
|
|
195
|
+
* @interface AgentGenerateRequest
|
|
196
|
+
*/
|
|
197
|
+
export interface AgentGenerateRequest {
|
|
198
|
+
/**
|
|
199
|
+
* Natural language description of the agent\'s desired capabilities
|
|
200
|
+
* @type {string}
|
|
201
|
+
* @memberof AgentGenerateRequest
|
|
202
|
+
*/
|
|
203
|
+
'prompt': string;
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
* @type {AgentInput}
|
|
207
|
+
* @memberof AgentGenerateRequest
|
|
208
|
+
*/
|
|
209
|
+
'existing_agent'?: AgentInput | null;
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @type {string}
|
|
213
|
+
* @memberof AgentGenerateRequest
|
|
214
|
+
*/
|
|
215
|
+
'project_id'?: string | null;
|
|
216
|
+
/**
|
|
217
|
+
*
|
|
218
|
+
* @type {boolean}
|
|
219
|
+
* @memberof AgentGenerateRequest
|
|
220
|
+
*/
|
|
221
|
+
'deploy'?: boolean | null;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Response model for agent generation.
|
|
225
|
+
* @export
|
|
226
|
+
* @interface AgentGenerateResponse
|
|
227
|
+
*/
|
|
228
|
+
export interface AgentGenerateResponse {
|
|
229
|
+
/**
|
|
230
|
+
* The generated agent schema
|
|
231
|
+
* @type {object}
|
|
232
|
+
* @memberof AgentGenerateResponse
|
|
233
|
+
*/
|
|
234
|
+
'agent': object;
|
|
235
|
+
/**
|
|
236
|
+
* Project ID for this conversation session
|
|
237
|
+
* @type {string}
|
|
238
|
+
* @memberof AgentGenerateResponse
|
|
239
|
+
*/
|
|
240
|
+
'project_id': string;
|
|
241
|
+
/**
|
|
242
|
+
* Human-readable summary of the generated agent
|
|
243
|
+
* @type {string}
|
|
244
|
+
* @memberof AgentGenerateResponse
|
|
245
|
+
*/
|
|
246
|
+
'summary': string;
|
|
247
|
+
/**
|
|
248
|
+
* Generated tags for the agent as ID objects: [{\'id\': 1}, {\'id\': 2}]
|
|
249
|
+
* @type {Array<{ [key: string]: number; }>}
|
|
250
|
+
* @memberof AgentGenerateResponse
|
|
251
|
+
*/
|
|
252
|
+
'tags'?: Array<{ [key: string]: number; }>;
|
|
253
|
+
/**
|
|
254
|
+
*
|
|
255
|
+
* @type {Array<object>}
|
|
256
|
+
* @memberof AgentGenerateResponse
|
|
257
|
+
*/
|
|
258
|
+
'autonomous_tasks'?: Array<object> | null;
|
|
259
|
+
/**
|
|
260
|
+
*
|
|
261
|
+
* @type {Array<string>}
|
|
262
|
+
* @memberof AgentGenerateResponse
|
|
263
|
+
*/
|
|
264
|
+
'activated_skills'?: Array<string> | null;
|
|
265
|
+
}
|
|
26
266
|
/**
|
|
27
267
|
* Agent model.
|
|
28
268
|
* @export
|
|
29
|
-
* @interface
|
|
269
|
+
* @interface AgentInput
|
|
30
270
|
*/
|
|
31
|
-
export interface
|
|
271
|
+
export interface AgentInput {
|
|
32
272
|
/**
|
|
33
273
|
*
|
|
34
274
|
* @type {string}
|
|
35
|
-
* @memberof
|
|
275
|
+
* @memberof AgentInput
|
|
36
276
|
*/
|
|
37
277
|
'name': string | null;
|
|
38
278
|
/**
|
|
39
279
|
*
|
|
40
280
|
* @type {string}
|
|
41
|
-
* @memberof
|
|
281
|
+
* @memberof AgentInput
|
|
42
282
|
*/
|
|
43
283
|
'slug'?: string | null;
|
|
44
284
|
/**
|
|
45
285
|
*
|
|
46
286
|
* @type {string}
|
|
47
|
-
* @memberof
|
|
287
|
+
* @memberof AgentInput
|
|
48
288
|
*/
|
|
49
289
|
'description'?: string | null;
|
|
50
290
|
/**
|
|
51
291
|
*
|
|
52
292
|
* @type {string}
|
|
53
|
-
* @memberof
|
|
293
|
+
* @memberof AgentInput
|
|
54
294
|
*/
|
|
55
295
|
'external_website'?: string | null;
|
|
56
296
|
/**
|
|
57
297
|
*
|
|
58
298
|
* @type {string}
|
|
59
|
-
* @memberof
|
|
299
|
+
* @memberof AgentInput
|
|
60
300
|
*/
|
|
61
301
|
'picture'?: string | null;
|
|
62
302
|
/**
|
|
63
303
|
*
|
|
64
304
|
* @type {string}
|
|
65
|
-
* @memberof
|
|
305
|
+
* @memberof AgentInput
|
|
66
306
|
*/
|
|
67
307
|
'ticker'?: string | null;
|
|
68
308
|
/**
|
|
69
309
|
*
|
|
70
310
|
* @type {string}
|
|
71
|
-
* @memberof
|
|
311
|
+
* @memberof AgentInput
|
|
72
312
|
*/
|
|
73
313
|
'token_address'?: string | null;
|
|
74
314
|
/**
|
|
75
315
|
*
|
|
76
316
|
* @type {string}
|
|
77
|
-
* @memberof
|
|
317
|
+
* @memberof AgentInput
|
|
78
318
|
*/
|
|
79
319
|
'token_pool'?: string | null;
|
|
80
320
|
/**
|
|
81
321
|
*
|
|
82
322
|
* @type {string}
|
|
83
|
-
* @memberof
|
|
323
|
+
* @memberof AgentInput
|
|
84
324
|
*/
|
|
85
|
-
'mode'?:
|
|
325
|
+
'mode'?: AgentInputModeEnum | null;
|
|
86
326
|
/**
|
|
87
327
|
*
|
|
88
|
-
* @type {
|
|
89
|
-
* @memberof
|
|
328
|
+
* @type {FeePercentage}
|
|
329
|
+
* @memberof AgentInput
|
|
90
330
|
*/
|
|
91
|
-
'fee_percentage'?:
|
|
331
|
+
'fee_percentage'?: FeePercentage | null;
|
|
92
332
|
/**
|
|
93
333
|
*
|
|
94
334
|
* @type {string}
|
|
95
|
-
* @memberof
|
|
335
|
+
* @memberof AgentInput
|
|
96
336
|
*/
|
|
97
337
|
'purpose': string | null;
|
|
98
338
|
/**
|
|
99
339
|
*
|
|
100
340
|
* @type {string}
|
|
101
|
-
* @memberof
|
|
341
|
+
* @memberof AgentInput
|
|
102
342
|
*/
|
|
103
343
|
'personality': string | null;
|
|
104
344
|
/**
|
|
105
345
|
*
|
|
106
346
|
* @type {string}
|
|
107
|
-
* @memberof
|
|
347
|
+
* @memberof AgentInput
|
|
108
348
|
*/
|
|
109
349
|
'principles': string | null;
|
|
110
350
|
/**
|
|
111
351
|
*
|
|
112
352
|
* @type {string}
|
|
113
|
-
* @memberof
|
|
353
|
+
* @memberof AgentInput
|
|
114
354
|
*/
|
|
115
355
|
'owner'?: string | null;
|
|
116
356
|
/**
|
|
117
357
|
*
|
|
118
358
|
* @type {string}
|
|
119
|
-
* @memberof
|
|
359
|
+
* @memberof AgentInput
|
|
120
360
|
*/
|
|
121
361
|
'upstream_id'?: string | null;
|
|
122
362
|
/**
|
|
123
363
|
*
|
|
124
364
|
* @type {object}
|
|
125
|
-
* @memberof
|
|
365
|
+
* @memberof AgentInput
|
|
126
366
|
*/
|
|
127
367
|
'upstream_extra'?: object | null;
|
|
128
368
|
/**
|
|
129
369
|
* AI model identifier to be used by this agent for processing requests.
|
|
130
370
|
* @type {string}
|
|
131
|
-
* @memberof
|
|
371
|
+
* @memberof AgentInput
|
|
132
372
|
*/
|
|
133
373
|
'model'?: string;
|
|
134
374
|
/**
|
|
135
375
|
*
|
|
136
376
|
* @type {string}
|
|
137
|
-
* @memberof
|
|
377
|
+
* @memberof AgentInput
|
|
138
378
|
*/
|
|
139
379
|
'prompt'?: string | null;
|
|
140
380
|
/**
|
|
141
381
|
*
|
|
142
382
|
* @type {string}
|
|
143
|
-
* @memberof
|
|
383
|
+
* @memberof AgentInput
|
|
144
384
|
*/
|
|
145
385
|
'prompt_append'?: string | null;
|
|
146
386
|
/**
|
|
147
387
|
*
|
|
148
388
|
* @type {number}
|
|
149
|
-
* @memberof
|
|
389
|
+
* @memberof AgentInput
|
|
150
390
|
*/
|
|
151
391
|
'temperature'?: number | null;
|
|
152
392
|
/**
|
|
153
393
|
*
|
|
154
394
|
* @type {number}
|
|
155
|
-
* @memberof
|
|
395
|
+
* @memberof AgentInput
|
|
156
396
|
*/
|
|
157
397
|
'frequency_penalty'?: number | null;
|
|
158
398
|
/**
|
|
159
399
|
*
|
|
160
400
|
* @type {number}
|
|
161
|
-
* @memberof
|
|
401
|
+
* @memberof AgentInput
|
|
162
402
|
*/
|
|
163
403
|
'presence_penalty'?: number | null;
|
|
164
404
|
/**
|
|
165
405
|
*
|
|
166
406
|
* @type {string}
|
|
167
|
-
* @memberof
|
|
407
|
+
* @memberof AgentInput
|
|
168
408
|
*/
|
|
169
|
-
'short_term_memory_strategy'?:
|
|
409
|
+
'short_term_memory_strategy'?: AgentInputShortTermMemoryStrategyEnum | null;
|
|
170
410
|
/**
|
|
171
411
|
*
|
|
172
412
|
* @type {Array<AgentAutonomous>}
|
|
173
|
-
* @memberof
|
|
413
|
+
* @memberof AgentInput
|
|
174
414
|
*/
|
|
175
415
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
176
416
|
/**
|
|
177
417
|
*
|
|
178
418
|
* @type {string}
|
|
179
|
-
* @memberof
|
|
419
|
+
* @memberof AgentInput
|
|
180
420
|
*/
|
|
181
421
|
'example_intro'?: string | null;
|
|
182
422
|
/**
|
|
183
423
|
*
|
|
184
424
|
* @type {Array<AgentExample>}
|
|
185
|
-
* @memberof
|
|
425
|
+
* @memberof AgentInput
|
|
186
426
|
*/
|
|
187
427
|
'examples'?: Array<AgentExample> | null;
|
|
188
428
|
/**
|
|
189
429
|
*
|
|
190
430
|
* @type {object}
|
|
191
|
-
* @memberof
|
|
431
|
+
* @memberof AgentInput
|
|
192
432
|
*/
|
|
193
433
|
'skills'?: object | null;
|
|
194
434
|
/**
|
|
195
435
|
*
|
|
196
436
|
* @type {string}
|
|
197
|
-
* @memberof
|
|
437
|
+
* @memberof AgentInput
|
|
198
438
|
*/
|
|
199
|
-
'wallet_provider'?:
|
|
439
|
+
'wallet_provider'?: AgentInputWalletProviderEnum | null;
|
|
200
440
|
/**
|
|
201
441
|
*
|
|
202
442
|
* @type {string}
|
|
203
|
-
* @memberof
|
|
443
|
+
* @memberof AgentInput
|
|
204
444
|
*/
|
|
205
445
|
'readonly_wallet_address'?: string | null;
|
|
206
446
|
/**
|
|
207
447
|
*
|
|
208
448
|
* @type {string}
|
|
209
|
-
* @memberof
|
|
449
|
+
* @memberof AgentInput
|
|
210
450
|
*/
|
|
211
|
-
'network_id'?:
|
|
451
|
+
'network_id'?: AgentInputNetworkIdEnum | null;
|
|
212
452
|
/**
|
|
213
453
|
*
|
|
214
454
|
* @type {string}
|
|
215
|
-
* @memberof
|
|
455
|
+
* @memberof AgentInput
|
|
216
456
|
*/
|
|
217
|
-
'cdp_network_id'?:
|
|
457
|
+
'cdp_network_id'?: AgentInputCdpNetworkIdEnum | null;
|
|
218
458
|
/**
|
|
219
459
|
*
|
|
220
460
|
* @type {boolean}
|
|
221
|
-
* @memberof
|
|
461
|
+
* @memberof AgentInput
|
|
222
462
|
*/
|
|
223
463
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
224
464
|
/**
|
|
225
465
|
*
|
|
226
466
|
* @type {string}
|
|
227
|
-
* @memberof
|
|
467
|
+
* @memberof AgentInput
|
|
228
468
|
*/
|
|
229
469
|
'telegram_entrypoint_prompt'?: string | null;
|
|
230
470
|
/**
|
|
231
471
|
*
|
|
232
472
|
* @type {object}
|
|
233
|
-
* @memberof
|
|
473
|
+
* @memberof AgentInput
|
|
234
474
|
*/
|
|
235
475
|
'telegram_config'?: object | null;
|
|
236
476
|
/**
|
|
237
477
|
*
|
|
238
478
|
* @type {string}
|
|
239
|
-
* @memberof
|
|
479
|
+
* @memberof AgentInput
|
|
240
480
|
*/
|
|
241
481
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
242
482
|
/**
|
|
243
483
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
244
484
|
* @type {string}
|
|
245
|
-
* @memberof
|
|
485
|
+
* @memberof AgentInput
|
|
246
486
|
*/
|
|
247
487
|
'id'?: string;
|
|
248
488
|
/**
|
|
249
489
|
* Timestamp when the agent was created, will ignore when importing
|
|
250
490
|
* @type {string}
|
|
251
|
-
* @memberof
|
|
491
|
+
* @memberof AgentInput
|
|
252
492
|
*/
|
|
253
493
|
'created_at'?: string;
|
|
254
494
|
/**
|
|
255
495
|
* Timestamp when the agent was last updated, will ignore when importing
|
|
256
496
|
* @type {string}
|
|
257
|
-
* @memberof
|
|
497
|
+
* @memberof AgentInput
|
|
258
498
|
*/
|
|
259
499
|
'updated_at'?: string;
|
|
260
500
|
}
|
|
261
501
|
|
|
262
|
-
export const
|
|
502
|
+
export const AgentInputModeEnum = {
|
|
263
503
|
Public: 'public',
|
|
264
504
|
Private: 'private'
|
|
265
505
|
} as const;
|
|
266
506
|
|
|
267
|
-
export type
|
|
268
|
-
export const
|
|
507
|
+
export type AgentInputModeEnum = typeof AgentInputModeEnum[keyof typeof AgentInputModeEnum];
|
|
508
|
+
export const AgentInputShortTermMemoryStrategyEnum = {
|
|
269
509
|
Trim: 'trim',
|
|
270
510
|
Summarize: 'summarize'
|
|
271
511
|
} as const;
|
|
272
512
|
|
|
273
|
-
export type
|
|
274
|
-
export const
|
|
513
|
+
export type AgentInputShortTermMemoryStrategyEnum = typeof AgentInputShortTermMemoryStrategyEnum[keyof typeof AgentInputShortTermMemoryStrategyEnum];
|
|
514
|
+
export const AgentInputWalletProviderEnum = {
|
|
275
515
|
Cdp: 'cdp',
|
|
276
516
|
Readonly: 'readonly'
|
|
277
517
|
} as const;
|
|
278
518
|
|
|
279
|
-
export type
|
|
280
|
-
export const
|
|
519
|
+
export type AgentInputWalletProviderEnum = typeof AgentInputWalletProviderEnum[keyof typeof AgentInputWalletProviderEnum];
|
|
520
|
+
export const AgentInputNetworkIdEnum = {
|
|
281
521
|
EthereumMainnet: 'ethereum-mainnet',
|
|
282
522
|
EthereumSepolia: 'ethereum-sepolia',
|
|
283
523
|
PolygonMainnet: 'polygon-mainnet',
|
|
@@ -291,8 +531,8 @@ export const AgentNetworkIdEnum = {
|
|
|
291
531
|
Solana: 'solana'
|
|
292
532
|
} as const;
|
|
293
533
|
|
|
294
|
-
export type
|
|
295
|
-
export const
|
|
534
|
+
export type AgentInputNetworkIdEnum = typeof AgentInputNetworkIdEnum[keyof typeof AgentInputNetworkIdEnum];
|
|
535
|
+
export const AgentInputCdpNetworkIdEnum = {
|
|
296
536
|
EthereumMainnet: 'ethereum-mainnet',
|
|
297
537
|
EthereumSepolia: 'ethereum-sepolia',
|
|
298
538
|
PolygonMainnet: 'polygon-mainnet',
|
|
@@ -305,267 +545,317 @@ export const AgentCdpNetworkIdEnum = {
|
|
|
305
545
|
OptimismSepolia: 'optimism-sepolia'
|
|
306
546
|
} as const;
|
|
307
547
|
|
|
308
|
-
export type
|
|
548
|
+
export type AgentInputCdpNetworkIdEnum = typeof AgentInputCdpNetworkIdEnum[keyof typeof AgentInputCdpNetworkIdEnum];
|
|
309
549
|
|
|
310
550
|
/**
|
|
311
|
-
*
|
|
551
|
+
* Paginated response model for agents list. Contains a list of agents, a flag indicating if more items are available, and a cursor for pagination.
|
|
312
552
|
* @export
|
|
313
|
-
* @interface
|
|
553
|
+
* @interface AgentListResponse
|
|
314
554
|
*/
|
|
315
|
-
export interface
|
|
555
|
+
export interface AgentListResponse {
|
|
316
556
|
/**
|
|
317
|
-
*
|
|
557
|
+
* List of agents
|
|
558
|
+
* @type {Array<AgentResponse>}
|
|
559
|
+
* @memberof AgentListResponse
|
|
560
|
+
*/
|
|
561
|
+
'data': Array<AgentResponse>;
|
|
562
|
+
/**
|
|
563
|
+
* Indicates if there are more items
|
|
564
|
+
* @type {boolean}
|
|
565
|
+
* @memberof AgentListResponse
|
|
566
|
+
*/
|
|
567
|
+
'has_more': boolean;
|
|
568
|
+
/**
|
|
569
|
+
*
|
|
318
570
|
* @type {string}
|
|
319
|
-
* @memberof
|
|
571
|
+
* @memberof AgentListResponse
|
|
320
572
|
*/
|
|
321
|
-
'
|
|
573
|
+
'next_cursor'?: string | null;
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* Agent model.
|
|
577
|
+
* @export
|
|
578
|
+
* @interface AgentOutput
|
|
579
|
+
*/
|
|
580
|
+
export interface AgentOutput {
|
|
322
581
|
/**
|
|
323
|
-
*
|
|
582
|
+
*
|
|
324
583
|
* @type {string}
|
|
325
|
-
* @memberof
|
|
584
|
+
* @memberof AgentOutput
|
|
326
585
|
*/
|
|
327
|
-
'
|
|
586
|
+
'name': string | null;
|
|
328
587
|
/**
|
|
329
|
-
*
|
|
588
|
+
*
|
|
330
589
|
* @type {string}
|
|
331
|
-
* @memberof
|
|
590
|
+
* @memberof AgentOutput
|
|
332
591
|
*/
|
|
333
|
-
'
|
|
592
|
+
'slug'?: string | null;
|
|
334
593
|
/**
|
|
335
|
-
*
|
|
594
|
+
*
|
|
336
595
|
* @type {string}
|
|
337
|
-
* @memberof
|
|
596
|
+
* @memberof AgentOutput
|
|
338
597
|
*/
|
|
339
|
-
'
|
|
598
|
+
'description'?: string | null;
|
|
340
599
|
/**
|
|
341
|
-
*
|
|
600
|
+
*
|
|
342
601
|
* @type {string}
|
|
343
|
-
* @memberof
|
|
602
|
+
* @memberof AgentOutput
|
|
344
603
|
*/
|
|
345
|
-
'
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
604
|
+
'external_website'?: string | null;
|
|
605
|
+
/**
|
|
606
|
+
*
|
|
607
|
+
* @type {string}
|
|
608
|
+
* @memberof AgentOutput
|
|
609
|
+
*/
|
|
610
|
+
'picture'?: string | null;
|
|
611
|
+
/**
|
|
612
|
+
*
|
|
613
|
+
* @type {string}
|
|
614
|
+
* @memberof AgentOutput
|
|
615
|
+
*/
|
|
616
|
+
'ticker'?: string | null;
|
|
617
|
+
/**
|
|
618
|
+
*
|
|
619
|
+
* @type {string}
|
|
620
|
+
* @memberof AgentOutput
|
|
621
|
+
*/
|
|
622
|
+
'token_address'?: string | null;
|
|
353
623
|
/**
|
|
354
|
-
*
|
|
624
|
+
*
|
|
355
625
|
* @type {string}
|
|
356
|
-
* @memberof
|
|
626
|
+
* @memberof AgentOutput
|
|
357
627
|
*/
|
|
358
|
-
'
|
|
628
|
+
'token_pool'?: string | null;
|
|
359
629
|
/**
|
|
360
630
|
*
|
|
361
631
|
* @type {string}
|
|
362
|
-
* @memberof
|
|
632
|
+
* @memberof AgentOutput
|
|
363
633
|
*/
|
|
364
|
-
'
|
|
634
|
+
'mode'?: AgentOutputModeEnum | null;
|
|
365
635
|
/**
|
|
366
636
|
*
|
|
367
637
|
* @type {string}
|
|
368
|
-
* @memberof
|
|
638
|
+
* @memberof AgentOutput
|
|
369
639
|
*/
|
|
370
|
-
'
|
|
640
|
+
'fee_percentage'?: string | null;
|
|
371
641
|
/**
|
|
372
642
|
*
|
|
373
643
|
* @type {string}
|
|
374
|
-
* @memberof
|
|
644
|
+
* @memberof AgentOutput
|
|
375
645
|
*/
|
|
376
|
-
'
|
|
646
|
+
'purpose': string | null;
|
|
377
647
|
/**
|
|
378
648
|
*
|
|
379
649
|
* @type {string}
|
|
380
|
-
* @memberof
|
|
650
|
+
* @memberof AgentOutput
|
|
381
651
|
*/
|
|
382
|
-
'
|
|
652
|
+
'personality': string | null;
|
|
383
653
|
/**
|
|
384
654
|
*
|
|
385
655
|
* @type {string}
|
|
386
|
-
* @memberof
|
|
656
|
+
* @memberof AgentOutput
|
|
387
657
|
*/
|
|
388
|
-
'
|
|
658
|
+
'principles': string | null;
|
|
389
659
|
/**
|
|
390
|
-
*
|
|
660
|
+
*
|
|
391
661
|
* @type {string}
|
|
392
|
-
* @memberof
|
|
662
|
+
* @memberof AgentOutput
|
|
393
663
|
*/
|
|
394
|
-
'
|
|
664
|
+
'owner'?: string | null;
|
|
395
665
|
/**
|
|
396
|
-
*
|
|
397
|
-
* @type {
|
|
398
|
-
* @memberof
|
|
666
|
+
*
|
|
667
|
+
* @type {string}
|
|
668
|
+
* @memberof AgentOutput
|
|
399
669
|
*/
|
|
400
|
-
'
|
|
401
|
-
}
|
|
402
|
-
/**
|
|
403
|
-
* Autonomous agent configuration.
|
|
404
|
-
* @export
|
|
405
|
-
* @interface AgentAutonomous
|
|
406
|
-
*/
|
|
407
|
-
export interface AgentAutonomous {
|
|
670
|
+
'upstream_id'?: string | null;
|
|
408
671
|
/**
|
|
409
|
-
*
|
|
672
|
+
*
|
|
673
|
+
* @type {object}
|
|
674
|
+
* @memberof AgentOutput
|
|
675
|
+
*/
|
|
676
|
+
'upstream_extra'?: object | null;
|
|
677
|
+
/**
|
|
678
|
+
* AI model identifier to be used by this agent for processing requests.
|
|
410
679
|
* @type {string}
|
|
411
|
-
* @memberof
|
|
680
|
+
* @memberof AgentOutput
|
|
412
681
|
*/
|
|
413
|
-
'
|
|
682
|
+
'model'?: string;
|
|
414
683
|
/**
|
|
415
684
|
*
|
|
416
685
|
* @type {string}
|
|
417
|
-
* @memberof
|
|
686
|
+
* @memberof AgentOutput
|
|
418
687
|
*/
|
|
419
|
-
'
|
|
688
|
+
'prompt'?: string | null;
|
|
420
689
|
/**
|
|
421
690
|
*
|
|
422
691
|
* @type {string}
|
|
423
|
-
* @memberof
|
|
692
|
+
* @memberof AgentOutput
|
|
424
693
|
*/
|
|
425
|
-
'
|
|
694
|
+
'prompt_append'?: string | null;
|
|
426
695
|
/**
|
|
427
696
|
*
|
|
428
697
|
* @type {number}
|
|
429
|
-
* @memberof
|
|
698
|
+
* @memberof AgentOutput
|
|
430
699
|
*/
|
|
431
|
-
'
|
|
700
|
+
'temperature'?: number | null;
|
|
432
701
|
/**
|
|
433
702
|
*
|
|
434
|
-
* @type {
|
|
435
|
-
* @memberof
|
|
436
|
-
*/
|
|
437
|
-
'cron'?: string | null;
|
|
438
|
-
/**
|
|
439
|
-
* Special prompt used during autonomous operation
|
|
440
|
-
* @type {string}
|
|
441
|
-
* @memberof AgentAutonomous
|
|
703
|
+
* @type {number}
|
|
704
|
+
* @memberof AgentOutput
|
|
442
705
|
*/
|
|
443
|
-
'
|
|
706
|
+
'frequency_penalty'?: number | null;
|
|
444
707
|
/**
|
|
445
708
|
*
|
|
446
|
-
* @type {
|
|
447
|
-
* @memberof
|
|
709
|
+
* @type {number}
|
|
710
|
+
* @memberof AgentOutput
|
|
448
711
|
*/
|
|
449
|
-
'
|
|
450
|
-
}
|
|
451
|
-
/**
|
|
452
|
-
* Agent example configuration.
|
|
453
|
-
* @export
|
|
454
|
-
* @interface AgentExample
|
|
455
|
-
*/
|
|
456
|
-
export interface AgentExample {
|
|
712
|
+
'presence_penalty'?: number | null;
|
|
457
713
|
/**
|
|
458
|
-
*
|
|
714
|
+
*
|
|
459
715
|
* @type {string}
|
|
460
|
-
* @memberof
|
|
716
|
+
* @memberof AgentOutput
|
|
461
717
|
*/
|
|
462
|
-
'
|
|
718
|
+
'short_term_memory_strategy'?: AgentOutputShortTermMemoryStrategyEnum | null;
|
|
463
719
|
/**
|
|
464
|
-
*
|
|
465
|
-
* @type {
|
|
466
|
-
* @memberof
|
|
720
|
+
*
|
|
721
|
+
* @type {Array<AgentAutonomous>}
|
|
722
|
+
* @memberof AgentOutput
|
|
467
723
|
*/
|
|
468
|
-
'
|
|
724
|
+
'autonomous'?: Array<AgentAutonomous> | null;
|
|
469
725
|
/**
|
|
470
|
-
*
|
|
726
|
+
*
|
|
471
727
|
* @type {string}
|
|
472
|
-
* @memberof
|
|
728
|
+
* @memberof AgentOutput
|
|
473
729
|
*/
|
|
474
|
-
'
|
|
475
|
-
}
|
|
476
|
-
/**
|
|
477
|
-
* Request model for agent generation.
|
|
478
|
-
* @export
|
|
479
|
-
* @interface AgentGenerateRequest
|
|
480
|
-
*/
|
|
481
|
-
export interface AgentGenerateRequest {
|
|
730
|
+
'example_intro'?: string | null;
|
|
482
731
|
/**
|
|
483
|
-
*
|
|
484
|
-
* @type {
|
|
485
|
-
* @memberof
|
|
732
|
+
*
|
|
733
|
+
* @type {Array<AgentExample>}
|
|
734
|
+
* @memberof AgentOutput
|
|
486
735
|
*/
|
|
487
|
-
'
|
|
736
|
+
'examples'?: Array<AgentExample> | null;
|
|
488
737
|
/**
|
|
489
738
|
*
|
|
490
|
-
* @type {
|
|
491
|
-
* @memberof
|
|
739
|
+
* @type {object}
|
|
740
|
+
* @memberof AgentOutput
|
|
492
741
|
*/
|
|
493
|
-
'
|
|
742
|
+
'skills'?: object | null;
|
|
494
743
|
/**
|
|
495
744
|
*
|
|
496
745
|
* @type {string}
|
|
497
|
-
* @memberof
|
|
746
|
+
* @memberof AgentOutput
|
|
498
747
|
*/
|
|
499
|
-
'
|
|
500
|
-
}
|
|
501
|
-
/**
|
|
502
|
-
* Response model for agent generation.
|
|
503
|
-
* @export
|
|
504
|
-
* @interface AgentGenerateResponse
|
|
505
|
-
*/
|
|
506
|
-
export interface AgentGenerateResponse {
|
|
748
|
+
'wallet_provider'?: AgentOutputWalletProviderEnum | null;
|
|
507
749
|
/**
|
|
508
|
-
*
|
|
509
|
-
* @type {
|
|
510
|
-
* @memberof
|
|
750
|
+
*
|
|
751
|
+
* @type {string}
|
|
752
|
+
* @memberof AgentOutput
|
|
511
753
|
*/
|
|
512
|
-
'
|
|
754
|
+
'readonly_wallet_address'?: string | null;
|
|
513
755
|
/**
|
|
514
|
-
*
|
|
756
|
+
*
|
|
515
757
|
* @type {string}
|
|
516
|
-
* @memberof
|
|
758
|
+
* @memberof AgentOutput
|
|
517
759
|
*/
|
|
518
|
-
'
|
|
760
|
+
'network_id'?: AgentOutputNetworkIdEnum | null;
|
|
519
761
|
/**
|
|
520
|
-
*
|
|
762
|
+
*
|
|
521
763
|
* @type {string}
|
|
522
|
-
* @memberof
|
|
764
|
+
* @memberof AgentOutput
|
|
523
765
|
*/
|
|
524
|
-
'
|
|
766
|
+
'cdp_network_id'?: AgentOutputCdpNetworkIdEnum | null;
|
|
525
767
|
/**
|
|
526
|
-
*
|
|
527
|
-
* @type {
|
|
528
|
-
* @memberof
|
|
768
|
+
*
|
|
769
|
+
* @type {boolean}
|
|
770
|
+
* @memberof AgentOutput
|
|
529
771
|
*/
|
|
530
|
-
'
|
|
772
|
+
'telegram_entrypoint_enabled'?: boolean | null;
|
|
531
773
|
/**
|
|
532
|
-
*
|
|
533
|
-
* @type {
|
|
534
|
-
* @memberof
|
|
774
|
+
*
|
|
775
|
+
* @type {string}
|
|
776
|
+
* @memberof AgentOutput
|
|
535
777
|
*/
|
|
536
|
-
'
|
|
778
|
+
'telegram_entrypoint_prompt'?: string | null;
|
|
537
779
|
/**
|
|
538
|
-
*
|
|
539
|
-
* @type {
|
|
540
|
-
* @memberof
|
|
780
|
+
*
|
|
781
|
+
* @type {object}
|
|
782
|
+
* @memberof AgentOutput
|
|
541
783
|
*/
|
|
542
|
-
'
|
|
543
|
-
}
|
|
544
|
-
/**
|
|
545
|
-
* Paginated response model for agents list. Contains a list of agents, a flag indicating if more items are available, and a cursor for pagination.
|
|
546
|
-
* @export
|
|
547
|
-
* @interface AgentListResponse
|
|
548
|
-
*/
|
|
549
|
-
export interface AgentListResponse {
|
|
784
|
+
'telegram_config'?: object | null;
|
|
550
785
|
/**
|
|
551
|
-
*
|
|
552
|
-
* @type {
|
|
553
|
-
* @memberof
|
|
786
|
+
*
|
|
787
|
+
* @type {string}
|
|
788
|
+
* @memberof AgentOutput
|
|
554
789
|
*/
|
|
555
|
-
'
|
|
790
|
+
'xmtp_entrypoint_prompt'?: string | null;
|
|
556
791
|
/**
|
|
557
|
-
*
|
|
558
|
-
* @type {
|
|
559
|
-
* @memberof
|
|
792
|
+
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
793
|
+
* @type {string}
|
|
794
|
+
* @memberof AgentOutput
|
|
560
795
|
*/
|
|
561
|
-
'
|
|
796
|
+
'id'?: string;
|
|
562
797
|
/**
|
|
563
|
-
*
|
|
798
|
+
* Timestamp when the agent was created, will ignore when importing
|
|
564
799
|
* @type {string}
|
|
565
|
-
* @memberof
|
|
800
|
+
* @memberof AgentOutput
|
|
566
801
|
*/
|
|
567
|
-
'
|
|
802
|
+
'created_at'?: string;
|
|
803
|
+
/**
|
|
804
|
+
* Timestamp when the agent was last updated, will ignore when importing
|
|
805
|
+
* @type {string}
|
|
806
|
+
* @memberof AgentOutput
|
|
807
|
+
*/
|
|
808
|
+
'updated_at'?: string;
|
|
568
809
|
}
|
|
810
|
+
|
|
811
|
+
export const AgentOutputModeEnum = {
|
|
812
|
+
Public: 'public',
|
|
813
|
+
Private: 'private'
|
|
814
|
+
} as const;
|
|
815
|
+
|
|
816
|
+
export type AgentOutputModeEnum = typeof AgentOutputModeEnum[keyof typeof AgentOutputModeEnum];
|
|
817
|
+
export const AgentOutputShortTermMemoryStrategyEnum = {
|
|
818
|
+
Trim: 'trim',
|
|
819
|
+
Summarize: 'summarize'
|
|
820
|
+
} as const;
|
|
821
|
+
|
|
822
|
+
export type AgentOutputShortTermMemoryStrategyEnum = typeof AgentOutputShortTermMemoryStrategyEnum[keyof typeof AgentOutputShortTermMemoryStrategyEnum];
|
|
823
|
+
export const AgentOutputWalletProviderEnum = {
|
|
824
|
+
Cdp: 'cdp',
|
|
825
|
+
Readonly: 'readonly'
|
|
826
|
+
} as const;
|
|
827
|
+
|
|
828
|
+
export type AgentOutputWalletProviderEnum = typeof AgentOutputWalletProviderEnum[keyof typeof AgentOutputWalletProviderEnum];
|
|
829
|
+
export const AgentOutputNetworkIdEnum = {
|
|
830
|
+
EthereumMainnet: 'ethereum-mainnet',
|
|
831
|
+
EthereumSepolia: 'ethereum-sepolia',
|
|
832
|
+
PolygonMainnet: 'polygon-mainnet',
|
|
833
|
+
PolygonMumbai: 'polygon-mumbai',
|
|
834
|
+
BaseMainnet: 'base-mainnet',
|
|
835
|
+
BaseSepolia: 'base-sepolia',
|
|
836
|
+
ArbitrumMainnet: 'arbitrum-mainnet',
|
|
837
|
+
ArbitrumSepolia: 'arbitrum-sepolia',
|
|
838
|
+
OptimismMainnet: 'optimism-mainnet',
|
|
839
|
+
OptimismSepolia: 'optimism-sepolia',
|
|
840
|
+
Solana: 'solana'
|
|
841
|
+
} as const;
|
|
842
|
+
|
|
843
|
+
export type AgentOutputNetworkIdEnum = typeof AgentOutputNetworkIdEnum[keyof typeof AgentOutputNetworkIdEnum];
|
|
844
|
+
export const AgentOutputCdpNetworkIdEnum = {
|
|
845
|
+
EthereumMainnet: 'ethereum-mainnet',
|
|
846
|
+
EthereumSepolia: 'ethereum-sepolia',
|
|
847
|
+
PolygonMainnet: 'polygon-mainnet',
|
|
848
|
+
PolygonMumbai: 'polygon-mumbai',
|
|
849
|
+
BaseMainnet: 'base-mainnet',
|
|
850
|
+
BaseSepolia: 'base-sepolia',
|
|
851
|
+
ArbitrumMainnet: 'arbitrum-mainnet',
|
|
852
|
+
ArbitrumSepolia: 'arbitrum-sepolia',
|
|
853
|
+
OptimismMainnet: 'optimism-mainnet',
|
|
854
|
+
OptimismSepolia: 'optimism-sepolia'
|
|
855
|
+
} as const;
|
|
856
|
+
|
|
857
|
+
export type AgentOutputCdpNetworkIdEnum = typeof AgentOutputCdpNetworkIdEnum[keyof typeof AgentOutputCdpNetworkIdEnum];
|
|
858
|
+
|
|
569
859
|
/**
|
|
570
860
|
* Response model for Agent API.
|
|
571
861
|
* @export
|
|
@@ -1674,6 +1964,54 @@ export interface CreditAccount {
|
|
|
1674
1964
|
* @memberof CreditAccount
|
|
1675
1965
|
*/
|
|
1676
1966
|
'last_event_id'?: string | null;
|
|
1967
|
+
/**
|
|
1968
|
+
* Total income from all credit transactions
|
|
1969
|
+
* @type {string}
|
|
1970
|
+
* @memberof CreditAccount
|
|
1971
|
+
*/
|
|
1972
|
+
'total_income'?: string;
|
|
1973
|
+
/**
|
|
1974
|
+
* Total income from free credit transactions
|
|
1975
|
+
* @type {string}
|
|
1976
|
+
* @memberof CreditAccount
|
|
1977
|
+
*/
|
|
1978
|
+
'total_free_income'?: string;
|
|
1979
|
+
/**
|
|
1980
|
+
* Total income from reward credit transactions
|
|
1981
|
+
* @type {string}
|
|
1982
|
+
* @memberof CreditAccount
|
|
1983
|
+
*/
|
|
1984
|
+
'total_reward_income'?: string;
|
|
1985
|
+
/**
|
|
1986
|
+
* Total income from permanent credit transactions
|
|
1987
|
+
* @type {string}
|
|
1988
|
+
* @memberof CreditAccount
|
|
1989
|
+
*/
|
|
1990
|
+
'total_permanent_income'?: string;
|
|
1991
|
+
/**
|
|
1992
|
+
* Total expense from all credit transactions
|
|
1993
|
+
* @type {string}
|
|
1994
|
+
* @memberof CreditAccount
|
|
1995
|
+
*/
|
|
1996
|
+
'total_expense'?: string;
|
|
1997
|
+
/**
|
|
1998
|
+
* Total expense from free credit transactions
|
|
1999
|
+
* @type {string}
|
|
2000
|
+
* @memberof CreditAccount
|
|
2001
|
+
*/
|
|
2002
|
+
'total_free_expense'?: string;
|
|
2003
|
+
/**
|
|
2004
|
+
* Total expense from reward credit transactions
|
|
2005
|
+
* @type {string}
|
|
2006
|
+
* @memberof CreditAccount
|
|
2007
|
+
*/
|
|
2008
|
+
'total_reward_expense'?: string;
|
|
2009
|
+
/**
|
|
2010
|
+
* Total expense from permanent credit transactions
|
|
2011
|
+
* @type {string}
|
|
2012
|
+
* @memberof CreditAccount
|
|
2013
|
+
*/
|
|
2014
|
+
'total_permanent_expense'?: string;
|
|
1677
2015
|
/**
|
|
1678
2016
|
* Timestamp when this account was created
|
|
1679
2017
|
* @type {string}
|
|
@@ -2443,6 +2781,7 @@ export const EventType = {
|
|
|
2443
2781
|
Refund: 'refund',
|
|
2444
2782
|
Adjustment: 'adjustment',
|
|
2445
2783
|
Refill: 'refill',
|
|
2784
|
+
Withdraw: 'withdraw',
|
|
2446
2785
|
Reward: 'reward',
|
|
2447
2786
|
EventReward: 'event_reward',
|
|
2448
2787
|
RechargeBonus: 'recharge_bonus'
|
|
@@ -2842,6 +3181,7 @@ export const TransactionType = {
|
|
|
2842
3181
|
Refund: 'refund',
|
|
2843
3182
|
Adjustment: 'adjustment',
|
|
2844
3183
|
Refill: 'refill',
|
|
3184
|
+
Withdraw: 'withdraw',
|
|
2845
3185
|
Reward: 'reward',
|
|
2846
3186
|
EventReward: 'event_reward',
|
|
2847
3187
|
RechargeBonus: 'recharge_bonus'
|
|
@@ -6488,7 +6828,7 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
6488
6828
|
* @param {*} [options] Override http request option.
|
|
6489
6829
|
* @throws {RequiredError}
|
|
6490
6830
|
*/
|
|
6491
|
-
async getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
6831
|
+
async getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentOutput>> {
|
|
6492
6832
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAgentById(agentId, options);
|
|
6493
6833
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6494
6834
|
const localVarOperationServerBasePath = operationServerMap['UserApi.getUserAgentById']?.[localVarOperationServerIndex]?.url;
|
|
@@ -6525,7 +6865,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
6525
6865
|
* @param {*} [options] Override http request option.
|
|
6526
6866
|
* @throws {RequiredError}
|
|
6527
6867
|
*/
|
|
6528
|
-
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
6868
|
+
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentOutput> {
|
|
6529
6869
|
return localVarFp.getUserAgentById(agentId, options).then((request) => request(axios, basePath));
|
|
6530
6870
|
},
|
|
6531
6871
|
/**
|