@crestal/nation-sdk 0.1.19 → 0.1.21

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/dist/base.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.1.19
5
+ * The version of the OpenAPI document: 0.1.21
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.1.19
8
+ * The version of the OpenAPI document: 0.1.21
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.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.1.19
5
+ * The version of the OpenAPI document: 0.1.21
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.1.19
8
+ * The version of the OpenAPI document: 0.1.21
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.1.19
5
+ * The version of the OpenAPI document: 0.1.21
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.1.19
8
+ * The version of the OpenAPI document: 0.1.21
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.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.1.19
5
+ * The version of the OpenAPI document: 0.1.21
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.1.19
8
+ * The version of the OpenAPI document: 0.1.21
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/AgentApi.md CHANGED
@@ -4,14 +4,21 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**createAgent**](#createagent) | **POST** /agents | Create a new agent|
8
- |[**getAgentById**](#getagentbyid) | **GET** /agents/{aid} | Get agent by ID|
7
+ |[**createAgent**](#createagent) | **POST** /agents | Create Agent|
8
+ |[**exportAgent**](#exportagent) | **GET** /agents/{agent_id}/export | Export Agent|
9
+ |[**getAgent**](#getagent) | **GET** /agents/{agent_id} | Get Agent|
9
10
  |[**getAgentStatistics**](#getagentstatistics) | **GET** /agents/{aid}/statistics | Get Agent Statistics|
11
+ |[**getAgents**](#getagents) | **GET** /agents | Get Agents|
12
+ |[**importAgent**](#importagent) | **PUT** /agents/{agent_id}/import | Import Agent|
13
+ |[**overrideAgent**](#overrideagent) | **PUT** /agents/{agent_id} | Override Agent|
14
+ |[**updateAgent**](#updateagent) | **PATCH** /agents/{agent_id} | Update Agent|
15
+ |[**validateAgentCreate**](#validateagentcreate) | **POST** /agent/validate | Validate Agent Create|
16
+ |[**validateAgentUpdate**](#validateagentupdate) | **POST** /agents/{agent_id}/validate | Validate Agent Update|
10
17
 
11
18
  # **createAgent**
12
- > AgentResponse createAgent(agentUpdate)
19
+ > AgentResponse createAgent()
13
20
 
14
- Create a new agent owned by the current user. The agent will be initialized with the provided details.
21
+ Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format or agent ID already exists - 500: Database error
15
22
 
16
23
  ### Example
17
24
 
@@ -25,7 +32,7 @@ import {
25
32
  const configuration = new Configuration();
26
33
  const apiInstance = new AgentApi(configuration);
27
34
 
28
- let agentUpdate: AgentUpdate; //
35
+ let agentUpdate: AgentUpdate; // (optional)
29
36
 
30
37
  const { status, data } = await apiInstance.createAgent(
31
38
  agentUpdate
@@ -53,6 +60,61 @@ const { status, data } = await apiInstance.createAgent(
53
60
  - **Accept**: application/json
54
61
 
55
62
 
63
+ ### HTTP response details
64
+ | Status code | Description | Response headers |
65
+ |-------------|-------------|------------------|
66
+ |**200** | Agent already exists | - |
67
+ |**201** | Agent created | - |
68
+ |**400** | Other client errors except format error | - |
69
+ |**422** | Invalid agent configuration | - |
70
+ |**500** | Server error | - |
71
+
72
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
73
+
74
+ # **exportAgent**
75
+ > any exportAgent()
76
+
77
+ Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
78
+
79
+ ### Example
80
+
81
+ ```typescript
82
+ import {
83
+ AgentApi,
84
+ Configuration
85
+ } from '@crestal/nation-sdk';
86
+
87
+ const configuration = new Configuration();
88
+ const apiInstance = new AgentApi(configuration);
89
+
90
+ let agentId: string; //ID of the agent to export (default to undefined)
91
+
92
+ const { status, data } = await apiInstance.exportAgent(
93
+ agentId
94
+ );
95
+ ```
96
+
97
+ ### Parameters
98
+
99
+ |Name | Type | Description | Notes|
100
+ |------------- | ------------- | ------------- | -------------|
101
+ | **agentId** | [**string**] | ID of the agent to export | defaults to undefined|
102
+
103
+
104
+ ### Return type
105
+
106
+ **any**
107
+
108
+ ### Authorization
109
+
110
+ [HTTPBearer](../README.md#HTTPBearer)
111
+
112
+ ### HTTP request headers
113
+
114
+ - **Content-Type**: Not defined
115
+ - **Accept**: application/json
116
+
117
+
56
118
  ### HTTP response details
57
119
  | Status code | Description | Response headers |
58
120
  |-------------|-------------|------------------|
@@ -61,10 +123,10 @@ const { status, data } = await apiInstance.createAgent(
61
123
 
62
124
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
63
125
 
64
- # **getAgentById**
65
- > AgentResponse getAgentById()
126
+ # **getAgent**
127
+ > any getAgent()
66
128
 
67
- Retrieve a specific agent by its ID. Returns 404 if not found.
129
+ Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
68
130
 
69
131
  ### Example
70
132
 
@@ -77,10 +139,10 @@ import {
77
139
  const configuration = new Configuration();
78
140
  const apiInstance = new AgentApi(configuration);
79
141
 
80
- let aid: string; //Agent ID (default to undefined)
142
+ let agentId: string; //ID of the agent to retrieve (default to undefined)
81
143
 
82
- const { status, data } = await apiInstance.getAgentById(
83
- aid
144
+ const { status, data } = await apiInstance.getAgent(
145
+ agentId
84
146
  );
85
147
  ```
86
148
 
@@ -88,12 +150,12 @@ const { status, data } = await apiInstance.getAgentById(
88
150
 
89
151
  |Name | Type | Description | Notes|
90
152
  |------------- | ------------- | ------------- | -------------|
91
- | **aid** | [**string**] | Agent ID | defaults to undefined|
153
+ | **agentId** | [**string**] | ID of the agent to retrieve | defaults to undefined|
92
154
 
93
155
 
94
156
  ### Return type
95
157
 
96
- **AgentResponse**
158
+ **any**
97
159
 
98
160
  ### Authorization
99
161
 
@@ -165,3 +227,337 @@ No authorization required
165
227
 
166
228
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
167
229
 
230
+ # **getAgents**
231
+ > AgentListResponse getAgents()
232
+
233
+ Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
234
+
235
+ ### Example
236
+
237
+ ```typescript
238
+ import {
239
+ AgentApi,
240
+ Configuration
241
+ } from '@crestal/nation-sdk';
242
+
243
+ const configuration = new Configuration();
244
+ const apiInstance = new AgentApi(configuration);
245
+
246
+ let sort: AgentSortOption; //Sort order for agents list (optional) (default to undefined)
247
+ let cursor: string; //Cursor for pagination (optional) (default to undefined)
248
+ let limit: number; //Maximum number of agents to return (optional) (default to 20)
249
+
250
+ const { status, data } = await apiInstance.getAgents(
251
+ sort,
252
+ cursor,
253
+ limit
254
+ );
255
+ ```
256
+
257
+ ### Parameters
258
+
259
+ |Name | Type | Description | Notes|
260
+ |------------- | ------------- | ------------- | -------------|
261
+ | **sort** | **AgentSortOption** | Sort order for agents list | (optional) defaults to undefined|
262
+ | **cursor** | [**string**] | Cursor for pagination | (optional) defaults to undefined|
263
+ | **limit** | [**number**] | Maximum number of agents to return | (optional) defaults to 20|
264
+
265
+
266
+ ### Return type
267
+
268
+ **AgentListResponse**
269
+
270
+ ### Authorization
271
+
272
+ No authorization required
273
+
274
+ ### HTTP request headers
275
+
276
+ - **Content-Type**: Not defined
277
+ - **Accept**: application/json
278
+
279
+
280
+ ### HTTP response details
281
+ | Status code | Description | Response headers |
282
+ |-------------|-------------|------------------|
283
+ |**200** | Successful Response | - |
284
+ |**422** | Validation Error | - |
285
+
286
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
287
+
288
+ # **importAgent**
289
+ > string importAgent()
290
+
291
+ Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
292
+
293
+ ### Example
294
+
295
+ ```typescript
296
+ import {
297
+ AgentApi,
298
+ Configuration
299
+ } from '@crestal/nation-sdk';
300
+
301
+ const configuration = new Configuration();
302
+ const apiInstance = new AgentApi(configuration);
303
+
304
+ let agentId: string; // (default to undefined)
305
+ let file: File; //YAML file containing agent configuration (default to undefined)
306
+
307
+ const { status, data } = await apiInstance.importAgent(
308
+ agentId,
309
+ file
310
+ );
311
+ ```
312
+
313
+ ### Parameters
314
+
315
+ |Name | Type | Description | Notes|
316
+ |------------- | ------------- | ------------- | -------------|
317
+ | **agentId** | [**string**] | | defaults to undefined|
318
+ | **file** | [**File**] | YAML file containing agent configuration | defaults to undefined|
319
+
320
+
321
+ ### Return type
322
+
323
+ **string**
324
+
325
+ ### Authorization
326
+
327
+ [HTTPBearer](../README.md#HTTPBearer)
328
+
329
+ ### HTTP request headers
330
+
331
+ - **Content-Type**: multipart/form-data
332
+ - **Accept**: text/plain, application/json
333
+
334
+
335
+ ### HTTP response details
336
+ | Status code | Description | Response headers |
337
+ |-------------|-------------|------------------|
338
+ |**200** | Successful Response | - |
339
+ |**422** | Validation Error | - |
340
+
341
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
342
+
343
+ # **overrideAgent**
344
+ > any overrideAgent()
345
+
346
+ Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
347
+
348
+ ### Example
349
+
350
+ ```typescript
351
+ import {
352
+ AgentApi,
353
+ Configuration,
354
+ AgentUpdate
355
+ } from '@crestal/nation-sdk';
356
+
357
+ const configuration = new Configuration();
358
+ const apiInstance = new AgentApi(configuration);
359
+
360
+ let agentId: string; //ID of the agent to update (default to undefined)
361
+ let agentUpdate: AgentUpdate; // (optional)
362
+
363
+ const { status, data } = await apiInstance.overrideAgent(
364
+ agentId,
365
+ agentUpdate
366
+ );
367
+ ```
368
+
369
+ ### Parameters
370
+
371
+ |Name | Type | Description | Notes|
372
+ |------------- | ------------- | ------------- | -------------|
373
+ | **agentUpdate** | **AgentUpdate**| | |
374
+ | **agentId** | [**string**] | ID of the agent to update | defaults to undefined|
375
+
376
+
377
+ ### Return type
378
+
379
+ **any**
380
+
381
+ ### Authorization
382
+
383
+ [HTTPBearer](../README.md#HTTPBearer)
384
+
385
+ ### HTTP request headers
386
+
387
+ - **Content-Type**: application/json
388
+ - **Accept**: application/json
389
+
390
+
391
+ ### HTTP response details
392
+ | Status code | Description | Response headers |
393
+ |-------------|-------------|------------------|
394
+ |**200** | Successful Response | - |
395
+ |**422** | Validation Error | - |
396
+
397
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
398
+
399
+ # **updateAgent**
400
+ > any updateAgent()
401
+
402
+ Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
403
+
404
+ ### Example
405
+
406
+ ```typescript
407
+ import {
408
+ AgentApi,
409
+ Configuration,
410
+ AgentUpdate
411
+ } from '@crestal/nation-sdk';
412
+
413
+ const configuration = new Configuration();
414
+ const apiInstance = new AgentApi(configuration);
415
+
416
+ let agentId: string; //ID of the agent to update (default to undefined)
417
+ let agentUpdate: AgentUpdate; // (optional)
418
+
419
+ const { status, data } = await apiInstance.updateAgent(
420
+ agentId,
421
+ agentUpdate
422
+ );
423
+ ```
424
+
425
+ ### Parameters
426
+
427
+ |Name | Type | Description | Notes|
428
+ |------------- | ------------- | ------------- | -------------|
429
+ | **agentUpdate** | **AgentUpdate**| | |
430
+ | **agentId** | [**string**] | ID of the agent to update | defaults to undefined|
431
+
432
+
433
+ ### Return type
434
+
435
+ **any**
436
+
437
+ ### Authorization
438
+
439
+ [HTTPBearer](../README.md#HTTPBearer)
440
+
441
+ ### HTTP request headers
442
+
443
+ - **Content-Type**: application/json
444
+ - **Accept**: application/json
445
+
446
+
447
+ ### HTTP response details
448
+ | Status code | Description | Response headers |
449
+ |-------------|-------------|------------------|
450
+ |**200** | Successful Response | - |
451
+ |**422** | Validation Error | - |
452
+
453
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
454
+
455
+ # **validateAgentCreate**
456
+ > validateAgentCreate()
457
+
458
+ Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
459
+
460
+ ### Example
461
+
462
+ ```typescript
463
+ import {
464
+ AgentApi,
465
+ Configuration,
466
+ AgentUpdate
467
+ } from '@crestal/nation-sdk';
468
+
469
+ const configuration = new Configuration();
470
+ const apiInstance = new AgentApi(configuration);
471
+
472
+ let agentUpdate: AgentUpdate; // (optional)
473
+
474
+ const { status, data } = await apiInstance.validateAgentCreate(
475
+ agentUpdate
476
+ );
477
+ ```
478
+
479
+ ### Parameters
480
+
481
+ |Name | Type | Description | Notes|
482
+ |------------- | ------------- | ------------- | -------------|
483
+ | **agentUpdate** | **AgentUpdate**| | |
484
+
485
+
486
+ ### Return type
487
+
488
+ void (empty response body)
489
+
490
+ ### Authorization
491
+
492
+ [HTTPBearer](../README.md#HTTPBearer)
493
+
494
+ ### HTTP request headers
495
+
496
+ - **Content-Type**: application/json
497
+ - **Accept**: application/json
498
+
499
+
500
+ ### HTTP response details
501
+ | Status code | Description | Response headers |
502
+ |-------------|-------------|------------------|
503
+ |**204** | Successful Response | - |
504
+ |**422** | Validation Error | - |
505
+
506
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
507
+
508
+ # **validateAgentUpdate**
509
+ > validateAgentUpdate()
510
+
511
+ Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
512
+
513
+ ### Example
514
+
515
+ ```typescript
516
+ import {
517
+ AgentApi,
518
+ Configuration,
519
+ AgentUpdate
520
+ } from '@crestal/nation-sdk';
521
+
522
+ const configuration = new Configuration();
523
+ const apiInstance = new AgentApi(configuration);
524
+
525
+ let agentId: string; //Agent ID (default to undefined)
526
+ let agentUpdate: AgentUpdate; // (optional)
527
+
528
+ const { status, data } = await apiInstance.validateAgentUpdate(
529
+ agentId,
530
+ agentUpdate
531
+ );
532
+ ```
533
+
534
+ ### Parameters
535
+
536
+ |Name | Type | Description | Notes|
537
+ |------------- | ------------- | ------------- | -------------|
538
+ | **agentUpdate** | **AgentUpdate**| | |
539
+ | **agentId** | [**string**] | Agent ID | defaults to undefined|
540
+
541
+
542
+ ### Return type
543
+
544
+ void (empty response body)
545
+
546
+ ### Authorization
547
+
548
+ [HTTPBearer](../README.md#HTTPBearer)
549
+
550
+ ### HTTP request headers
551
+
552
+ - **Content-Type**: application/json
553
+ - **Accept**: application/json
554
+
555
+
556
+ ### HTTP response details
557
+ | Status code | Description | Response headers |
558
+ |-------------|-------------|------------------|
559
+ |**204** | Successful Response | - |
560
+ |**422** | Validation Error | - |
561
+
562
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
563
+
@@ -0,0 +1,25 @@
1
+ # AgentListResponse
2
+
3
+ Paginated response model for agents list. Contains a list of agents, a flag indicating if more items are available, and a cursor for pagination.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **data** | [**Array<AgentResponse>**](AgentResponse.md) | List of agents | [default to undefined]
10
+ **has_more** | **boolean** | Indicates if there are more items | [default to undefined]
11
+ **next_cursor** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { AgentListResponse } from '@crestal/nation-sdk';
17
+
18
+ const instance: AgentListResponse = {
19
+ data,
20
+ has_more,
21
+ next_cursor,
22
+ };
23
+ ```
24
+
25
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,13 @@
1
+ # AgentSortOption
2
+
3
+ Sort options for agents list.
4
+
5
+ ## Enum
6
+
7
+ * `CreatedAtDesc` (value: `'created_at desc'`)
8
+
9
+ * `CreatedAtAsc` (value: `'created_at asc'`)
10
+
11
+ * `UpdatedAtDesc` (value: `'updated_at desc'`)
12
+
13
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
13
13
  **upstream_type** | [**UpstreamType**](UpstreamType.md) | Type of upstream transaction | [default to undefined]
14
14
  **upstream_tx_id** | **string** | Upstream transaction ID if any | [default to undefined]
15
15
  **agent_id** | **string** | | [optional] [default to undefined]
16
+ **agent_wallet_address** | **string** | | [optional] [default to undefined]
16
17
  **start_message_id** | **string** | | [optional] [default to undefined]
17
18
  **message_id** | **string** | | [optional] [default to undefined]
18
19
  **model** | **string** | | [optional] [default to undefined]
@@ -61,6 +62,7 @@ const instance: CreditEvent = {
61
62
  upstream_type,
62
63
  upstream_tx_id,
63
64
  agent_id,
65
+ agent_wallet_address,
64
66
  start_message_id,
65
67
  message_id,
66
68
  model,
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
13
13
  **upstream_type** | [**UpstreamType**](UpstreamType.md) | Type of upstream transaction | [default to undefined]
14
14
  **upstream_tx_id** | **string** | Upstream transaction ID if any | [default to undefined]
15
15
  **agent_id** | **string** | | [optional] [default to undefined]
16
+ **agent_wallet_address** | **string** | | [optional] [default to undefined]
16
17
  **start_message_id** | **string** | | [optional] [default to undefined]
17
18
  **message_id** | **string** | | [optional] [default to undefined]
18
19
  **model** | **string** | | [optional] [default to undefined]
@@ -62,6 +63,7 @@ const instance: CreditEventWithAgent = {
62
63
  upstream_type,
63
64
  upstream_tx_id,
64
65
  agent_id,
66
+ agent_wallet_address,
65
67
  start_message_id,
66
68
  message_id,
67
69
  model,
@@ -27,8 +27,8 @@ Name | Type | Description | Notes
27
27
  **supports_presence_penalty** | **boolean** | | [optional] [default to true]
28
28
  **api_base** | **string** | | [optional] [default to undefined]
29
29
  **timeout** | **number** | | [optional] [default to 180]
30
- **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-07-15T02:38:33.048+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-07-15T02:38:33.048+00:00]
30
+ **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-07-17T08:51:32.738+00:00]
31
+ **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-07-17T08:51:32.738+00:00]
32
32
  **provider_name** | **string** | | [default to undefined]
33
33
 
34
34
  ## Example
package/index.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.1.19
7
+ * The version of the OpenAPI document: 0.1.21
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crestal/nation-sdk",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "description": "OpenAPI client for @crestal/nation-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {