@crestal/nation-sdk 0.2.31 → 0.2.32
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 +1 -0
- package/README.md +3 -2
- package/api.ts +25 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +21 -1
- package/dist/api.js +16 -3
- 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/ChatMessage.md +2 -0
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/SystemMessageType.md +19 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @crestal/nation-sdk@0.2.
|
|
1
|
+
## @crestal/nation-sdk@0.2.32
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @crestal/nation-sdk@0.2.
|
|
39
|
+
npm install @crestal/nation-sdk@0.2.32 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -135,6 +135,7 @@ Class | Method | HTTP request | Description
|
|
|
135
135
|
- [LLMProvider](docs/LLMProvider.md)
|
|
136
136
|
- [OwnerType](docs/OwnerType.md)
|
|
137
137
|
- [Skill](docs/Skill.md)
|
|
138
|
+
- [SystemMessageType](docs/SystemMessageType.md)
|
|
138
139
|
- [TransactionType](docs/TransactionType.md)
|
|
139
140
|
- [TwitterAuthResponse](docs/TwitterAuthResponse.md)
|
|
140
141
|
- [UpstreamType](docs/UpstreamType.md)
|
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.2.
|
|
7
|
+
* The version of the OpenAPI document: 0.2.32
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1334,6 +1334,12 @@ export interface ChatMessage {
|
|
|
1334
1334
|
* @memberof ChatMessage
|
|
1335
1335
|
*/
|
|
1336
1336
|
'super_mode'?: boolean | null;
|
|
1337
|
+
/**
|
|
1338
|
+
*
|
|
1339
|
+
* @type {SystemMessageType}
|
|
1340
|
+
* @memberof ChatMessage
|
|
1341
|
+
*/
|
|
1342
|
+
'error_type'?: SystemMessageType | null;
|
|
1337
1343
|
/**
|
|
1338
1344
|
* Timestamp when this message was created
|
|
1339
1345
|
* @type {string}
|
|
@@ -2670,6 +2676,24 @@ export interface Skill {
|
|
|
2670
2676
|
*/
|
|
2671
2677
|
'updated_at': string;
|
|
2672
2678
|
}
|
|
2679
|
+
/**
|
|
2680
|
+
* Type of system message.
|
|
2681
|
+
* @export
|
|
2682
|
+
* @enum {string}
|
|
2683
|
+
*/
|
|
2684
|
+
|
|
2685
|
+
export const SystemMessageType = {
|
|
2686
|
+
ServiceFeeError: 'service_fee_error',
|
|
2687
|
+
DailyUsageLimitExceeded: 'daily_usage_limit_exceeded',
|
|
2688
|
+
InsufficientBalance: 'insufficient_balance',
|
|
2689
|
+
AgentInternalError: 'agent_internal_error',
|
|
2690
|
+
StepLimitExceeded: 'step_limit_exceeded',
|
|
2691
|
+
SkillInterrupted: 'skill_interrupted'
|
|
2692
|
+
} as const;
|
|
2693
|
+
|
|
2694
|
+
export type SystemMessageType = typeof SystemMessageType[keyof typeof SystemMessageType];
|
|
2695
|
+
|
|
2696
|
+
|
|
2673
2697
|
/**
|
|
2674
2698
|
* Type of credit transaction.
|
|
2675
2699
|
* @export
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
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.2.
|
|
5
|
+
* The version of the OpenAPI document: 0.2.32
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1300,6 +1300,12 @@ export interface ChatMessage {
|
|
|
1300
1300
|
* @memberof ChatMessage
|
|
1301
1301
|
*/
|
|
1302
1302
|
'super_mode'?: boolean | null;
|
|
1303
|
+
/**
|
|
1304
|
+
*
|
|
1305
|
+
* @type {SystemMessageType}
|
|
1306
|
+
* @memberof ChatMessage
|
|
1307
|
+
*/
|
|
1308
|
+
'error_type'?: SystemMessageType | null;
|
|
1303
1309
|
/**
|
|
1304
1310
|
* Timestamp when this message was created
|
|
1305
1311
|
* @type {string}
|
|
@@ -2594,6 +2600,20 @@ export interface Skill {
|
|
|
2594
2600
|
*/
|
|
2595
2601
|
'updated_at': string;
|
|
2596
2602
|
}
|
|
2603
|
+
/**
|
|
2604
|
+
* Type of system message.
|
|
2605
|
+
* @export
|
|
2606
|
+
* @enum {string}
|
|
2607
|
+
*/
|
|
2608
|
+
export declare const SystemMessageType: {
|
|
2609
|
+
readonly ServiceFeeError: "service_fee_error";
|
|
2610
|
+
readonly DailyUsageLimitExceeded: "daily_usage_limit_exceeded";
|
|
2611
|
+
readonly InsufficientBalance: "insufficient_balance";
|
|
2612
|
+
readonly AgentInternalError: "agent_internal_error";
|
|
2613
|
+
readonly StepLimitExceeded: "step_limit_exceeded";
|
|
2614
|
+
readonly SkillInterrupted: "skill_interrupted";
|
|
2615
|
+
};
|
|
2616
|
+
export type SystemMessageType = typeof SystemMessageType[keyof typeof SystemMessageType];
|
|
2597
2617
|
/**
|
|
2598
2618
|
* Type of credit transaction.
|
|
2599
2619
|
* @export
|
package/dist/api.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.2.
|
|
8
|
+
* The version of the OpenAPI document: 0.2.32
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -84,8 +84,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
84
84
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
85
|
};
|
|
86
86
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
|
-
exports.
|
|
88
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.OAuthApi = void 0;
|
|
87
|
+
exports.OAuthApiFp = exports.OAuthApiAxiosParamCreator = exports.MetadataApi = exports.MetadataApiFactory = exports.MetadataApiFp = exports.MetadataApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = exports.GeneratorApi = exports.GeneratorApiFactory = exports.GeneratorApiFp = exports.GeneratorApiAxiosParamCreator = exports.CreditApi = exports.CreditApiFactory = exports.CreditApiFp = exports.CreditApiAxiosParamCreator = exports.ChatApi = exports.ChatApiFactory = exports.ChatApiFp = exports.ChatApiAxiosParamCreator = exports.AgentApi = exports.AgentApiFactory = exports.AgentApiFp = exports.AgentApiAxiosParamCreator = exports.UpstreamType = exports.TransactionType = exports.SystemMessageType = exports.OwnerType = exports.LLMProvider = exports.EventType = exports.Direction = exports.CreditType = exports.CreditDebit = exports.ChatMessageAttachmentType = exports.AuthorType = exports.AgentUpdateCdpNetworkIdEnum = exports.AgentUpdateNetworkIdEnum = exports.AgentUpdateWalletProviderEnum = exports.AgentUpdateShortTermMemoryStrategyEnum = exports.AgentUpdateModeEnum = exports.AgentSortOption = exports.AgentResponseWalletProviderEnum = exports.AgentResponseModeEnum = exports.AgentCdpNetworkIdEnum = exports.AgentNetworkIdEnum = exports.AgentWalletProviderEnum = exports.AgentShortTermMemoryStrategyEnum = exports.AgentModeEnum = void 0;
|
|
88
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.OAuthApi = exports.OAuthApiFactory = void 0;
|
|
89
89
|
var axios_1 = require("axios");
|
|
90
90
|
// Some imports not used depending on template conditions
|
|
91
91
|
// @ts-ignore
|
|
@@ -281,6 +281,19 @@ exports.OwnerType = {
|
|
|
281
281
|
Agent: 'agent',
|
|
282
282
|
Platform: 'platform'
|
|
283
283
|
};
|
|
284
|
+
/**
|
|
285
|
+
* Type of system message.
|
|
286
|
+
* @export
|
|
287
|
+
* @enum {string}
|
|
288
|
+
*/
|
|
289
|
+
exports.SystemMessageType = {
|
|
290
|
+
ServiceFeeError: 'service_fee_error',
|
|
291
|
+
DailyUsageLimitExceeded: 'daily_usage_limit_exceeded',
|
|
292
|
+
InsufficientBalance: 'insufficient_balance',
|
|
293
|
+
AgentInternalError: 'agent_internal_error',
|
|
294
|
+
StepLimitExceeded: 'step_limit_exceeded',
|
|
295
|
+
SkillInterrupted: 'skill_interrupted'
|
|
296
|
+
};
|
|
284
297
|
/**
|
|
285
298
|
* Type of credit transaction.
|
|
286
299
|
* @export
|
package/dist/base.d.ts
CHANGED
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.2.
|
|
8
|
+
* The version of the OpenAPI document: 0.2.32
|
|
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
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.2.
|
|
8
|
+
* The version of the OpenAPI document: 0.2.32
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.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.2.
|
|
8
|
+
* The version of the OpenAPI document: 0.2.32
|
|
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
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.2.
|
|
8
|
+
* The version of the OpenAPI document: 0.2.32
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/docs/ChatMessage.md
CHANGED
|
@@ -27,6 +27,7 @@ Name | Type | Description | Notes
|
|
|
27
27
|
**app_id** | **string** | | [optional] [default to undefined]
|
|
28
28
|
**search_mode** | **boolean** | | [optional] [default to undefined]
|
|
29
29
|
**super_mode** | **boolean** | | [optional] [default to undefined]
|
|
30
|
+
**error_type** | [**SystemMessageType**](SystemMessageType.md) | | [optional] [default to undefined]
|
|
30
31
|
**created_at** | **string** | Timestamp when this message was created | [default to undefined]
|
|
31
32
|
|
|
32
33
|
## Example
|
|
@@ -56,6 +57,7 @@ const instance: ChatMessage = {
|
|
|
56
57
|
app_id,
|
|
57
58
|
search_mode,
|
|
58
59
|
super_mode,
|
|
60
|
+
error_type,
|
|
59
61
|
created_at,
|
|
60
62
|
};
|
|
61
63
|
```
|
|
@@ -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-08-
|
|
31
|
-
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-08-
|
|
30
|
+
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-08-22T07:10:29.789+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-08-22T07:10:29.789+00:00]
|
|
32
32
|
**provider_name** | **string** | | [default to undefined]
|
|
33
33
|
|
|
34
34
|
## Example
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# SystemMessageType
|
|
2
|
+
|
|
3
|
+
Type of system message.
|
|
4
|
+
|
|
5
|
+
## Enum
|
|
6
|
+
|
|
7
|
+
* `ServiceFeeError` (value: `'service_fee_error'`)
|
|
8
|
+
|
|
9
|
+
* `DailyUsageLimitExceeded` (value: `'daily_usage_limit_exceeded'`)
|
|
10
|
+
|
|
11
|
+
* `InsufficientBalance` (value: `'insufficient_balance'`)
|
|
12
|
+
|
|
13
|
+
* `AgentInternalError` (value: `'agent_internal_error'`)
|
|
14
|
+
|
|
15
|
+
* `StepLimitExceeded` (value: `'step_limit_exceeded'`)
|
|
16
|
+
|
|
17
|
+
* `SkillInterrupted` (value: `'skill_interrupted'`)
|
|
18
|
+
|
|
19
|
+
[[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/index.ts
CHANGED