@crestal/nation-sdk 0.1.19 → 0.1.20
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 -0
- package/README.md +22 -4
- package/api.ts +1414 -104
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +657 -33
- package/dist/api.js +1632 -97
- 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/AgentApi.md +912 -13
- package/docs/AgentListResponse.md +25 -0
- package/docs/AgentSortOption.md +13 -0
- package/docs/CreditEvent.md +2 -0
- package/docs/CreditEventWithAgent.md +2 -0
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -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)
|
package/docs/CreditEvent.md
CHANGED
|
@@ -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-
|
|
31
|
-
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-07-
|
|
30
|
+
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-07-17T04:10:42.134+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-07-17T04:10:42.134+00:00]
|
|
32
32
|
**provider_name** | **string** | | [default to undefined]
|
|
33
33
|
|
|
34
34
|
## Example
|
package/index.ts
CHANGED