@crestal/nation-sdk 0.2.34 → 0.6.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/README.md +3 -3
- package/api.ts +5 -9
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +5 -5
- package/dist/api.js +22 -32
- 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 +2 -2
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @crestal/nation-sdk@0.
|
|
1
|
+
## @crestal/nation-sdk@0.6.21
|
|
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.
|
|
39
|
+
npm install @crestal/nation-sdk@0.6.21 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -55,7 +55,7 @@ Class | Method | HTTP request | Description
|
|
|
55
55
|
*AgentApi* | [**exportAgent**](docs/AgentApi.md#exportagent) | **GET** /agents/{agent_id}/export | Export Agent
|
|
56
56
|
*AgentApi* | [**getAgent**](docs/AgentApi.md#getagent) | **GET** /agents/{agent_id} | Get Agent
|
|
57
57
|
*AgentApi* | [**getAgentApiKey**](docs/AgentApi.md#getagentapikey) | **GET** /agents/{agent_id}/api-key | Get Agent API Key
|
|
58
|
-
*AgentApi* | [**getAgentAssets**](docs/AgentApi.md#getagentassets) | **GET** /agents/{agent_id}/assets | Get
|
|
58
|
+
*AgentApi* | [**getAgentAssets**](docs/AgentApi.md#getagentassets) | **GET** /agents/{agent_id}/assets | Get Agent Assets
|
|
59
59
|
*AgentApi* | [**getAgentStatistics**](docs/AgentApi.md#getagentstatistics) | **GET** /agents/{aid}/statistics | Get Agent Statistics
|
|
60
60
|
*AgentApi* | [**getAgents**](docs/AgentApi.md#getagents) | **GET** /agents | Get Agents
|
|
61
61
|
*AgentApi* | [**getSkillHistory**](docs/AgentApi.md#getskillhistory) | **GET** /agents/{aid}/skill/history | Skill History
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 0.6.21
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3074,7 +3074,7 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3074
3074
|
},
|
|
3075
3075
|
/**
|
|
3076
3076
|
* Get the assets and balances for an agent\'s wallet
|
|
3077
|
-
* @summary Get
|
|
3077
|
+
* @summary Get Agent Assets
|
|
3078
3078
|
* @param {string} agentId ID of the agent
|
|
3079
3079
|
* @param {*} [options] Override http request option.
|
|
3080
3080
|
* @throws {RequiredError}
|
|
@@ -3095,10 +3095,6 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3095
3095
|
const localVarHeaderParameter = {} as any;
|
|
3096
3096
|
const localVarQueryParameter = {} as any;
|
|
3097
3097
|
|
|
3098
|
-
// authentication HTTPBearer required
|
|
3099
|
-
// http bearer authentication required
|
|
3100
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3101
|
-
|
|
3102
3098
|
|
|
3103
3099
|
|
|
3104
3100
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -3552,7 +3548,7 @@ export const AgentApiFp = function(configuration?: Configuration) {
|
|
|
3552
3548
|
},
|
|
3553
3549
|
/**
|
|
3554
3550
|
* Get the assets and balances for an agent\'s wallet
|
|
3555
|
-
* @summary Get
|
|
3551
|
+
* @summary Get Agent Assets
|
|
3556
3552
|
* @param {string} agentId ID of the agent
|
|
3557
3553
|
* @param {*} [options] Override http request option.
|
|
3558
3554
|
* @throws {RequiredError}
|
|
@@ -3740,7 +3736,7 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
|
|
|
3740
3736
|
},
|
|
3741
3737
|
/**
|
|
3742
3738
|
* Get the assets and balances for an agent\'s wallet
|
|
3743
|
-
* @summary Get
|
|
3739
|
+
* @summary Get Agent Assets
|
|
3744
3740
|
* @param {string} agentId ID of the agent
|
|
3745
3741
|
* @param {*} [options] Override http request option.
|
|
3746
3742
|
* @throws {RequiredError}
|
|
@@ -3906,7 +3902,7 @@ export class AgentApi extends BaseAPI {
|
|
|
3906
3902
|
|
|
3907
3903
|
/**
|
|
3908
3904
|
* Get the assets and balances for an agent\'s wallet
|
|
3909
|
-
* @summary Get
|
|
3905
|
+
* @summary Get Agent Assets
|
|
3910
3906
|
* @param {string} agentId ID of the agent
|
|
3911
3907
|
* @param {*} [options] Override http request option.
|
|
3912
3908
|
* @throws {RequiredError}
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 0.6.21
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2868,7 +2868,7 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2868
2868
|
getAgentApiKey: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2869
2869
|
/**
|
|
2870
2870
|
* Get the assets and balances for an agent\'s wallet
|
|
2871
|
-
* @summary Get
|
|
2871
|
+
* @summary Get Agent Assets
|
|
2872
2872
|
* @param {string} agentId ID of the agent
|
|
2873
2873
|
* @param {*} [options] Override http request option.
|
|
2874
2874
|
* @throws {RequiredError}
|
|
@@ -2994,7 +2994,7 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
|
2994
2994
|
getAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentApiKeyResponse>>;
|
|
2995
2995
|
/**
|
|
2996
2996
|
* Get the assets and balances for an agent\'s wallet
|
|
2997
|
-
* @summary Get
|
|
2997
|
+
* @summary Get Agent Assets
|
|
2998
2998
|
* @param {string} agentId ID of the agent
|
|
2999
2999
|
* @param {*} [options] Override http request option.
|
|
3000
3000
|
* @throws {RequiredError}
|
|
@@ -3120,7 +3120,7 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
|
|
|
3120
3120
|
getAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentApiKeyResponse>;
|
|
3121
3121
|
/**
|
|
3122
3122
|
* Get the assets and balances for an agent\'s wallet
|
|
3123
|
-
* @summary Get
|
|
3123
|
+
* @summary Get Agent Assets
|
|
3124
3124
|
* @param {string} agentId ID of the agent
|
|
3125
3125
|
* @param {*} [options] Override http request option.
|
|
3126
3126
|
* @throws {RequiredError}
|
|
@@ -3252,7 +3252,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
3252
3252
|
getAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentApiKeyResponse, any>>;
|
|
3253
3253
|
/**
|
|
3254
3254
|
* Get the assets and balances for an agent\'s wallet
|
|
3255
|
-
* @summary Get
|
|
3255
|
+
* @summary Get Agent Assets
|
|
3256
3256
|
* @param {string} agentId ID of the agent
|
|
3257
3257
|
* @param {*} [options] Override http request option.
|
|
3258
3258
|
* @throws {RequiredError}
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 0.6.21
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -514,7 +514,7 @@ var AgentApiAxiosParamCreator = function (configuration) {
|
|
|
514
514
|
},
|
|
515
515
|
/**
|
|
516
516
|
* Get the assets and balances for an agent\'s wallet
|
|
517
|
-
* @summary Get
|
|
517
|
+
* @summary Get Agent Assets
|
|
518
518
|
* @param {string} agentId ID of the agent
|
|
519
519
|
* @param {*} [options] Override http request option.
|
|
520
520
|
* @throws {RequiredError}
|
|
@@ -528,34 +528,24 @@ var AgentApiAxiosParamCreator = function (configuration) {
|
|
|
528
528
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
529
529
|
if (options === void 0) { options = {}; }
|
|
530
530
|
return __generator(this, function (_a) {
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
if (configuration) {
|
|
539
|
-
baseOptions = configuration.baseOptions;
|
|
540
|
-
}
|
|
541
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
542
|
-
localVarHeaderParameter = {};
|
|
543
|
-
localVarQueryParameter = {};
|
|
544
|
-
// authentication HTTPBearer required
|
|
545
|
-
// http bearer authentication required
|
|
546
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
547
|
-
case 1:
|
|
548
|
-
// authentication HTTPBearer required
|
|
549
|
-
// http bearer authentication required
|
|
550
|
-
_a.sent();
|
|
551
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
552
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
553
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
554
|
-
return [2 /*return*/, {
|
|
555
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
556
|
-
options: localVarRequestOptions,
|
|
557
|
-
}];
|
|
531
|
+
// verify required parameter 'agentId' is not null or undefined
|
|
532
|
+
(0, common_1.assertParamExists)('getAgentAssets', 'agentId', agentId);
|
|
533
|
+
localVarPath = "/agents/{agent_id}/assets"
|
|
534
|
+
.replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
|
|
535
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
536
|
+
if (configuration) {
|
|
537
|
+
baseOptions = configuration.baseOptions;
|
|
558
538
|
}
|
|
539
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
540
|
+
localVarHeaderParameter = {};
|
|
541
|
+
localVarQueryParameter = {};
|
|
542
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
543
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
544
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
545
|
+
return [2 /*return*/, {
|
|
546
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
547
|
+
options: localVarRequestOptions,
|
|
548
|
+
}];
|
|
559
549
|
});
|
|
560
550
|
});
|
|
561
551
|
},
|
|
@@ -1099,7 +1089,7 @@ var AgentApiFp = function (configuration) {
|
|
|
1099
1089
|
},
|
|
1100
1090
|
/**
|
|
1101
1091
|
* Get the assets and balances for an agent\'s wallet
|
|
1102
|
-
* @summary Get
|
|
1092
|
+
* @summary Get Agent Assets
|
|
1103
1093
|
* @param {string} agentId ID of the agent
|
|
1104
1094
|
* @param {*} [options] Override http request option.
|
|
1105
1095
|
* @throws {RequiredError}
|
|
@@ -1387,7 +1377,7 @@ var AgentApiFactory = function (configuration, basePath, axios) {
|
|
|
1387
1377
|
},
|
|
1388
1378
|
/**
|
|
1389
1379
|
* Get the assets and balances for an agent\'s wallet
|
|
1390
|
-
* @summary Get
|
|
1380
|
+
* @summary Get Agent Assets
|
|
1391
1381
|
* @param {string} agentId ID of the agent
|
|
1392
1382
|
* @param {*} [options] Override http request option.
|
|
1393
1383
|
* @throws {RequiredError}
|
|
@@ -1557,7 +1547,7 @@ var AgentApi = /** @class */ (function (_super) {
|
|
|
1557
1547
|
};
|
|
1558
1548
|
/**
|
|
1559
1549
|
* Get the assets and balances for an agent\'s wallet
|
|
1560
|
-
* @summary Get
|
|
1550
|
+
* @summary Get Agent Assets
|
|
1561
1551
|
* @param {string} agentId ID of the agent
|
|
1562
1552
|
* @param {*} [options] Override http request option.
|
|
1563
1553
|
* @throws {RequiredError}
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 0.6.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
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.
|
|
8
|
+
* The version of the OpenAPI document: 0.6.21
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 0.6.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
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.
|
|
8
|
+
* The version of the OpenAPI document: 0.6.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
|
@@ -8,7 +8,7 @@ All URIs are relative to *http://localhost*
|
|
|
8
8
|
|[**exportAgent**](#exportagent) | **GET** /agents/{agent_id}/export | Export Agent|
|
|
9
9
|
|[**getAgent**](#getagent) | **GET** /agents/{agent_id} | Get Agent|
|
|
10
10
|
|[**getAgentApiKey**](#getagentapikey) | **GET** /agents/{agent_id}/api-key | Get Agent API Key|
|
|
11
|
-
|[**getAgentAssets**](#getagentassets) | **GET** /agents/{agent_id}/assets | Get
|
|
11
|
+
|[**getAgentAssets**](#getagentassets) | **GET** /agents/{agent_id}/assets | Get Agent Assets|
|
|
12
12
|
|[**getAgentStatistics**](#getagentstatistics) | **GET** /agents/{aid}/statistics | Get Agent Statistics|
|
|
13
13
|
|[**getAgents**](#getagents) | **GET** /agents | Get Agents|
|
|
14
14
|
|[**getSkillHistory**](#getskillhistory) | **GET** /agents/{aid}/skill/history | Skill History|
|
|
@@ -270,7 +270,7 @@ const { status, data } = await apiInstance.getAgentAssets(
|
|
|
270
270
|
|
|
271
271
|
### Authorization
|
|
272
272
|
|
|
273
|
-
|
|
273
|
+
No authorization required
|
|
274
274
|
|
|
275
275
|
### HTTP request headers
|
|
276
276
|
|
|
@@ -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-28T13:45:39.144+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-08-28T13:45:39.144+00:00]
|
|
32
32
|
**provider_name** | **string** | | [default to undefined]
|
|
33
33
|
|
|
34
34
|
## Example
|
package/index.ts
CHANGED