@crestal/nation-sdk 0.8.94 → 0.8.97
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 +6 -3
- package/.openapi-generator/VERSION +1 -1
- package/README.md +8 -5
- package/api.ts +167 -75
- package/base.ts +1 -1
- package/common.ts +16 -3
- package/configuration.ts +1 -1
- package/dist/api.d.ts +148 -68
- package/dist/api.js +58 -21
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +7 -1
- package/dist/common.js +18 -4
- 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/Agent.md +15 -5
- package/docs/AgentApi.md +2 -2
- package/docs/{AgentAutonomous.md → AgentAutonomousInput.md} +9 -3
- package/docs/AgentAutonomousOutput.md +39 -0
- package/docs/AgentAutonomousStatus.md +13 -0
- package/docs/AgentDraft.md +7 -5
- package/docs/AgentResponse.md +15 -5
- package/docs/AgentUpdate.md +13 -5
- package/docs/AgentUserInput.md +7 -5
- package/docs/AgentVisibility.md +13 -0
- package/docs/AuthorType.md +6 -4
- package/docs/ChatApi.md +6 -6
- package/docs/{AppManagerRouterChatMessagesResponse.md → ChatMessagesResponse.md} +3 -3
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/{ValidationErrorLocInner.md → LocationInner.md} +3 -3
- package/docs/ManagerApi.md +2 -2
- package/docs/User.md +2 -0
- package/docs/ValidationError.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# AgentVisibility
|
|
2
|
+
|
|
3
|
+
Agent visibility levels with hierarchical ordering. Higher values indicate broader visibility: - PRIVATE (0): Only visible to owner - TEAM (10): Visible to team members - PUBLIC (20): Visible to everyone
|
|
4
|
+
|
|
5
|
+
## Enum
|
|
6
|
+
|
|
7
|
+
* `NUMBER_0` (value: `0`)
|
|
8
|
+
|
|
9
|
+
* `NUMBER_10` (value: `10`)
|
|
10
|
+
|
|
11
|
+
* `NUMBER_20` (value: `20`)
|
|
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/AuthorType.md
CHANGED
|
@@ -6,10 +6,12 @@ Type of message author.
|
|
|
6
6
|
|
|
7
7
|
* `Agent` (value: `'agent'`)
|
|
8
8
|
|
|
9
|
-
* `Trigger` (value: `'trigger'`)
|
|
10
|
-
|
|
11
9
|
* `Skill` (value: `'skill'`)
|
|
12
10
|
|
|
11
|
+
* `System` (value: `'system'`)
|
|
12
|
+
|
|
13
|
+
* `Trigger` (value: `'trigger'`)
|
|
14
|
+
|
|
13
15
|
* `Telegram` (value: `'telegram'`)
|
|
14
16
|
|
|
15
17
|
* `Twitter` (value: `'twitter'`)
|
|
@@ -18,12 +20,12 @@ Type of message author.
|
|
|
18
20
|
|
|
19
21
|
* `Web` (value: `'web'`)
|
|
20
22
|
|
|
21
|
-
* `System` (value: `'system'`)
|
|
22
|
-
|
|
23
23
|
* `Api` (value: `'api'`)
|
|
24
24
|
|
|
25
25
|
* `Xmtp` (value: `'xmtp'`)
|
|
26
26
|
|
|
27
27
|
* `X402` (value: `'x402'`)
|
|
28
28
|
|
|
29
|
+
* `Internal` (value: `'internal'`)
|
|
30
|
+
|
|
29
31
|
[[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/ChatApi.md
CHANGED
|
@@ -288,7 +288,7 @@ const { status, data } = await apiInstance.getMessageById(
|
|
|
288
288
|
[[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)
|
|
289
289
|
|
|
290
290
|
# **getSkillHistory**
|
|
291
|
-
>
|
|
291
|
+
> ChatMessagesResponse getSkillHistory()
|
|
292
292
|
|
|
293
293
|
Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
|
|
294
294
|
|
|
@@ -325,7 +325,7 @@ const { status, data } = await apiInstance.getSkillHistory(
|
|
|
325
325
|
|
|
326
326
|
### Return type
|
|
327
327
|
|
|
328
|
-
**
|
|
328
|
+
**ChatMessagesResponse**
|
|
329
329
|
|
|
330
330
|
### Authorization
|
|
331
331
|
|
|
@@ -398,7 +398,7 @@ const { status, data } = await apiInstance.listChatsForAgent(
|
|
|
398
398
|
[[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)
|
|
399
399
|
|
|
400
400
|
# **listMessagesInChat**
|
|
401
|
-
>
|
|
401
|
+
> ChatMessagesResponse listMessagesInChat()
|
|
402
402
|
|
|
403
403
|
Retrieve the message history for a specific chat thread with cursor-based pagination.
|
|
404
404
|
|
|
@@ -438,7 +438,7 @@ const { status, data } = await apiInstance.listMessagesInChat(
|
|
|
438
438
|
|
|
439
439
|
### Return type
|
|
440
440
|
|
|
441
|
-
**
|
|
441
|
+
**ChatMessagesResponse**
|
|
442
442
|
|
|
443
443
|
### Authorization
|
|
444
444
|
|
|
@@ -459,7 +459,7 @@ const { status, data } = await apiInstance.listMessagesInChat(
|
|
|
459
459
|
[[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)
|
|
460
460
|
|
|
461
461
|
# **listMessagesInDraft**
|
|
462
|
-
>
|
|
462
|
+
> ChatMessagesResponse listMessagesInDraft()
|
|
463
463
|
|
|
464
464
|
Retrieve the message history for the draft chat session of an agent with cursor-based pagination.
|
|
465
465
|
|
|
@@ -496,7 +496,7 @@ const { status, data } = await apiInstance.listMessagesInDraft(
|
|
|
496
496
|
|
|
497
497
|
### Return type
|
|
498
498
|
|
|
499
|
-
**
|
|
499
|
+
**ChatMessagesResponse**
|
|
500
500
|
|
|
501
501
|
### Authorization
|
|
502
502
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ChatMessagesResponse
|
|
2
2
|
|
|
3
3
|
Response model for chat messages with pagination.
|
|
4
4
|
|
|
@@ -13,9 +13,9 @@ Name | Type | Description | Notes
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import {
|
|
16
|
+
import { ChatMessagesResponse } from '@crestal/nation-sdk';
|
|
17
17
|
|
|
18
|
-
const instance:
|
|
18
|
+
const instance: ChatMessagesResponse = {
|
|
19
19
|
data,
|
|
20
20
|
has_more,
|
|
21
21
|
next_cursor,
|
|
@@ -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
|
|
31
|
-
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to
|
|
30
|
+
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2026-01-29T08:33:12.609+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2026-01-29T08:33:12.609+00:00]
|
|
32
32
|
**provider_name** | **string** | | [default to undefined]
|
|
33
33
|
|
|
34
34
|
## Example
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# LocationInner
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -9,9 +9,9 @@ Name | Type | Description | Notes
|
|
|
9
9
|
## Example
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
import {
|
|
12
|
+
import { LocationInner } from '@crestal/nation-sdk';
|
|
13
13
|
|
|
14
|
-
const instance:
|
|
14
|
+
const instance: LocationInner = {
|
|
15
15
|
};
|
|
16
16
|
```
|
|
17
17
|
|
package/docs/ManagerApi.md
CHANGED
|
@@ -8,7 +8,7 @@ All URIs are relative to *http://localhost*
|
|
|
8
8
|
|[**sendManagerMessage**](#sendmanagermessage) | **POST** /agents/{aid}/manager/messages | Chat with Agent Manager|
|
|
9
9
|
|
|
10
10
|
# **getManagerMessages**
|
|
11
|
-
>
|
|
11
|
+
> ChatMessagesResponse getManagerMessages()
|
|
12
12
|
|
|
13
13
|
Get the message history for an agent\'s manager chat session.
|
|
14
14
|
|
|
@@ -45,7 +45,7 @@ const { status, data } = await apiInstance.getManagerMessages(
|
|
|
45
45
|
|
|
46
46
|
### Return type
|
|
47
47
|
|
|
48
|
-
**
|
|
48
|
+
**ChatMessagesResponse**
|
|
49
49
|
|
|
50
50
|
### Authorization
|
|
51
51
|
|
package/docs/User.md
CHANGED
|
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**extra** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
15
15
|
**evm_wallet_address** | **string** | | [optional] [default to undefined]
|
|
16
16
|
**solana_wallet_address** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**server_wallet_address** | **string** | | [optional] [default to undefined]
|
|
17
18
|
**linked_accounts** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
18
19
|
**id** | **string** | Unique identifier for the user | [default to undefined]
|
|
19
20
|
**created_at** | **string** | Timestamp when this user was created | [default to undefined]
|
|
@@ -34,6 +35,7 @@ const instance: User = {
|
|
|
34
35
|
extra,
|
|
35
36
|
evm_wallet_address,
|
|
36
37
|
solana_wallet_address,
|
|
38
|
+
server_wallet_address,
|
|
37
39
|
linked_accounts,
|
|
38
40
|
id,
|
|
39
41
|
created_at,
|
package/docs/ValidationError.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**loc** | [**Array<
|
|
8
|
+
**loc** | [**Array<LocationInner>**](LocationInner.md) | | [default to undefined]
|
|
9
9
|
**msg** | **string** | | [default to undefined]
|
|
10
10
|
**type** | **string** | | [default to undefined]
|
|
11
11
|
|
package/index.ts
CHANGED