@crestal/nation-sdk 0.2.33 → 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.
@@ -39,7 +39,6 @@ docs/CreditEventsResponse.md
39
39
  docs/CreditTransactionResp.md
40
40
  docs/CreditTransactionsResponse.md
41
41
  docs/CreditType.md
42
- docs/DefaultApi.md
43
42
  docs/Direction.md
44
43
  docs/EventType.md
45
44
  docs/FeePercentage.md
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @crestal/nation-sdk@0.2.33
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.2.33 --save
39
+ npm install @crestal/nation-sdk@0.6.21 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -55,6 +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 Agent Assets
58
59
  *AgentApi* | [**getAgentStatistics**](docs/AgentApi.md#getagentstatistics) | **GET** /agents/{aid}/statistics | Get Agent Statistics
59
60
  *AgentApi* | [**getAgents**](docs/AgentApi.md#getagents) | **GET** /agents | Get Agents
60
61
  *AgentApi* | [**getSkillHistory**](docs/AgentApi.md#getskillhistory) | **GET** /agents/{aid}/skill/history | Skill History
@@ -79,7 +80,6 @@ Class | Method | HTTP request | Description
79
80
  *CreditApi* | [**listAgentIncomeEvents**](docs/CreditApi.md#listagentincomeevents) | **GET** /credit/agents/{agent_id}/events | List Agent Income
80
81
  *CreditApi* | [**listUserEvents**](docs/CreditApi.md#listuserevents) | **GET** /credit/user/events | List User Events
81
82
  *CreditApi* | [**listUserTransactions**](docs/CreditApi.md#listusertransactions) | **GET** /credit/user/transactions | List User Transactions
82
- *DefaultApi* | [**getAgentAssetsAgentsAgentIdAssetsGet**](docs/DefaultApi.md#getagentassetsagentsagentidassetsget) | **GET** /agents/{agent_id}/assets | Get agent assets
83
83
  *GeneratorApi* | [**generateAgent**](docs/GeneratorApi.md#generateagent) | **POST** /generator/agent/generate | Generate Agent from Natural Language Prompt
84
84
  *GeneratorApi* | [**getGenerationHistory**](docs/GeneratorApi.md#getgenerationhistory) | **GET** /generator/agent/generations/{project_id} | Get Generation Detail by Project ID
85
85
  *GeneratorApi* | [**getGenerations**](docs/GeneratorApi.md#getgenerations) | **GET** /generator/agent/generations | Get Generations List by User
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.33
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).
@@ -3063,6 +3063,40 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
3063
3063
 
3064
3064
 
3065
3065
 
3066
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3067
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3068
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3069
+
3070
+ return {
3071
+ url: toPathString(localVarUrlObj),
3072
+ options: localVarRequestOptions,
3073
+ };
3074
+ },
3075
+ /**
3076
+ * Get the assets and balances for an agent\'s wallet
3077
+ * @summary Get Agent Assets
3078
+ * @param {string} agentId ID of the agent
3079
+ * @param {*} [options] Override http request option.
3080
+ * @throws {RequiredError}
3081
+ */
3082
+ getAgentAssets: async (agentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3083
+ // verify required parameter 'agentId' is not null or undefined
3084
+ assertParamExists('getAgentAssets', 'agentId', agentId)
3085
+ const localVarPath = `/agents/{agent_id}/assets`
3086
+ .replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
3087
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3088
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3089
+ let baseOptions;
3090
+ if (configuration) {
3091
+ baseOptions = configuration.baseOptions;
3092
+ }
3093
+
3094
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3095
+ const localVarHeaderParameter = {} as any;
3096
+ const localVarQueryParameter = {} as any;
3097
+
3098
+
3099
+
3066
3100
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3067
3101
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3068
3102
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -3512,6 +3546,19 @@ export const AgentApiFp = function(configuration?: Configuration) {
3512
3546
  const localVarOperationServerBasePath = operationServerMap['AgentApi.getAgentApiKey']?.[localVarOperationServerIndex]?.url;
3513
3547
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3514
3548
  },
3549
+ /**
3550
+ * Get the assets and balances for an agent\'s wallet
3551
+ * @summary Get Agent Assets
3552
+ * @param {string} agentId ID of the agent
3553
+ * @param {*} [options] Override http request option.
3554
+ * @throws {RequiredError}
3555
+ */
3556
+ async getAgentAssets(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentAssetsResponse>> {
3557
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAgentAssets(agentId, options);
3558
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3559
+ const localVarOperationServerBasePath = operationServerMap['AgentApi.getAgentAssets']?.[localVarOperationServerIndex]?.url;
3560
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3561
+ },
3515
3562
  /**
3516
3563
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
3517
3564
  * @summary Get Agent Statistics
@@ -3687,6 +3734,16 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
3687
3734
  getAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentApiKeyResponse> {
3688
3735
  return localVarFp.getAgentApiKey(agentId, options).then((request) => request(axios, basePath));
3689
3736
  },
3737
+ /**
3738
+ * Get the assets and balances for an agent\'s wallet
3739
+ * @summary Get Agent Assets
3740
+ * @param {string} agentId ID of the agent
3741
+ * @param {*} [options] Override http request option.
3742
+ * @throws {RequiredError}
3743
+ */
3744
+ getAgentAssets(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentAssetsResponse> {
3745
+ return localVarFp.getAgentAssets(agentId, options).then((request) => request(axios, basePath));
3746
+ },
3690
3747
  /**
3691
3748
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
3692
3749
  * @summary Get Agent Statistics
@@ -3843,6 +3900,18 @@ export class AgentApi extends BaseAPI {
3843
3900
  return AgentApiFp(this.configuration).getAgentApiKey(agentId, options).then((request) => request(this.axios, this.basePath));
3844
3901
  }
3845
3902
 
3903
+ /**
3904
+ * Get the assets and balances for an agent\'s wallet
3905
+ * @summary Get Agent Assets
3906
+ * @param {string} agentId ID of the agent
3907
+ * @param {*} [options] Override http request option.
3908
+ * @throws {RequiredError}
3909
+ * @memberof AgentApi
3910
+ */
3911
+ public getAgentAssets(agentId: string, options?: RawAxiosRequestConfig) {
3912
+ return AgentApiFp(this.configuration).getAgentAssets(agentId, options).then((request) => request(this.axios, this.basePath));
3913
+ }
3914
+
3846
3915
  /**
3847
3916
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
3848
3917
  * @summary Get Agent Statistics
@@ -5286,118 +5355,6 @@ export class CreditApi extends BaseAPI {
5286
5355
 
5287
5356
 
5288
5357
 
5289
- /**
5290
- * DefaultApi - axios parameter creator
5291
- * @export
5292
- */
5293
- export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
5294
- return {
5295
- /**
5296
- * Get the assets and balances for an agent\'s wallet
5297
- * @summary Get agent assets
5298
- * @param {string} agentId ID of the agent
5299
- * @param {*} [options] Override http request option.
5300
- * @throws {RequiredError}
5301
- */
5302
- getAgentAssetsAgentsAgentIdAssetsGet: async (agentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5303
- // verify required parameter 'agentId' is not null or undefined
5304
- assertParamExists('getAgentAssetsAgentsAgentIdAssetsGet', 'agentId', agentId)
5305
- const localVarPath = `/agents/{agent_id}/assets`
5306
- .replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
5307
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5308
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5309
- let baseOptions;
5310
- if (configuration) {
5311
- baseOptions = configuration.baseOptions;
5312
- }
5313
-
5314
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5315
- const localVarHeaderParameter = {} as any;
5316
- const localVarQueryParameter = {} as any;
5317
-
5318
- // authentication HTTPBearer required
5319
- // http bearer authentication required
5320
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
5321
-
5322
-
5323
-
5324
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5325
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5326
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5327
-
5328
- return {
5329
- url: toPathString(localVarUrlObj),
5330
- options: localVarRequestOptions,
5331
- };
5332
- },
5333
- }
5334
- };
5335
-
5336
- /**
5337
- * DefaultApi - functional programming interface
5338
- * @export
5339
- */
5340
- export const DefaultApiFp = function(configuration?: Configuration) {
5341
- const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
5342
- return {
5343
- /**
5344
- * Get the assets and balances for an agent\'s wallet
5345
- * @summary Get agent assets
5346
- * @param {string} agentId ID of the agent
5347
- * @param {*} [options] Override http request option.
5348
- * @throws {RequiredError}
5349
- */
5350
- async getAgentAssetsAgentsAgentIdAssetsGet(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentAssetsResponse>> {
5351
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAgentAssetsAgentsAgentIdAssetsGet(agentId, options);
5352
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5353
- const localVarOperationServerBasePath = operationServerMap['DefaultApi.getAgentAssetsAgentsAgentIdAssetsGet']?.[localVarOperationServerIndex]?.url;
5354
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5355
- },
5356
- }
5357
- };
5358
-
5359
- /**
5360
- * DefaultApi - factory interface
5361
- * @export
5362
- */
5363
- export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
5364
- const localVarFp = DefaultApiFp(configuration)
5365
- return {
5366
- /**
5367
- * Get the assets and balances for an agent\'s wallet
5368
- * @summary Get agent assets
5369
- * @param {string} agentId ID of the agent
5370
- * @param {*} [options] Override http request option.
5371
- * @throws {RequiredError}
5372
- */
5373
- getAgentAssetsAgentsAgentIdAssetsGet(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentAssetsResponse> {
5374
- return localVarFp.getAgentAssetsAgentsAgentIdAssetsGet(agentId, options).then((request) => request(axios, basePath));
5375
- },
5376
- };
5377
- };
5378
-
5379
- /**
5380
- * DefaultApi - object-oriented interface
5381
- * @export
5382
- * @class DefaultApi
5383
- * @extends {BaseAPI}
5384
- */
5385
- export class DefaultApi extends BaseAPI {
5386
- /**
5387
- * Get the assets and balances for an agent\'s wallet
5388
- * @summary Get agent assets
5389
- * @param {string} agentId ID of the agent
5390
- * @param {*} [options] Override http request option.
5391
- * @throws {RequiredError}
5392
- * @memberof DefaultApi
5393
- */
5394
- public getAgentAssetsAgentsAgentIdAssetsGet(agentId: string, options?: RawAxiosRequestConfig) {
5395
- return DefaultApiFp(this.configuration).getAgentAssetsAgentsAgentIdAssetsGet(agentId, options).then((request) => request(this.axios, this.basePath));
5396
- }
5397
- }
5398
-
5399
-
5400
-
5401
5358
  /**
5402
5359
  * GeneratorApi - axios parameter creator
5403
5360
  * @export
package/base.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.33
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).
package/common.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.33
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).
package/configuration.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.33
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).
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.33
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).
@@ -2866,6 +2866,14 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
2866
2866
  * @throws {RequiredError}
2867
2867
  */
2868
2868
  getAgentApiKey: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2869
+ /**
2870
+ * Get the assets and balances for an agent\'s wallet
2871
+ * @summary Get Agent Assets
2872
+ * @param {string} agentId ID of the agent
2873
+ * @param {*} [options] Override http request option.
2874
+ * @throws {RequiredError}
2875
+ */
2876
+ getAgentAssets: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2869
2877
  /**
2870
2878
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
2871
2879
  * @summary Get Agent Statistics
@@ -2984,6 +2992,14 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
2984
2992
  * @throws {RequiredError}
2985
2993
  */
2986
2994
  getAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentApiKeyResponse>>;
2995
+ /**
2996
+ * Get the assets and balances for an agent\'s wallet
2997
+ * @summary Get Agent Assets
2998
+ * @param {string} agentId ID of the agent
2999
+ * @param {*} [options] Override http request option.
3000
+ * @throws {RequiredError}
3001
+ */
3002
+ getAgentAssets(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentAssetsResponse>>;
2987
3003
  /**
2988
3004
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
2989
3005
  * @summary Get Agent Statistics
@@ -3102,6 +3118,14 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
3102
3118
  * @throws {RequiredError}
3103
3119
  */
3104
3120
  getAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentApiKeyResponse>;
3121
+ /**
3122
+ * Get the assets and balances for an agent\'s wallet
3123
+ * @summary Get Agent Assets
3124
+ * @param {string} agentId ID of the agent
3125
+ * @param {*} [options] Override http request option.
3126
+ * @throws {RequiredError}
3127
+ */
3128
+ getAgentAssets(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentAssetsResponse>;
3105
3129
  /**
3106
3130
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
3107
3131
  * @summary Get Agent Statistics
@@ -3226,6 +3250,15 @@ export declare class AgentApi extends BaseAPI {
3226
3250
  * @memberof AgentApi
3227
3251
  */
3228
3252
  getAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentApiKeyResponse, any>>;
3253
+ /**
3254
+ * Get the assets and balances for an agent\'s wallet
3255
+ * @summary Get Agent Assets
3256
+ * @param {string} agentId ID of the agent
3257
+ * @param {*} [options] Override http request option.
3258
+ * @throws {RequiredError}
3259
+ * @memberof AgentApi
3260
+ */
3261
+ getAgentAssets(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentAssetsResponse, any>>;
3229
3262
  /**
3230
3263
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
3231
3264
  * @summary Get Agent Statistics
@@ -3939,65 +3972,6 @@ export declare class CreditApi extends BaseAPI {
3939
3972
  */
3940
3973
  listUserTransactions(txType?: Array<TransactionType> | null, creditDebit?: CreditDebit | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditTransactionsResponse, any>>;
3941
3974
  }
3942
- /**
3943
- * DefaultApi - axios parameter creator
3944
- * @export
3945
- */
3946
- export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
3947
- /**
3948
- * Get the assets and balances for an agent\'s wallet
3949
- * @summary Get agent assets
3950
- * @param {string} agentId ID of the agent
3951
- * @param {*} [options] Override http request option.
3952
- * @throws {RequiredError}
3953
- */
3954
- getAgentAssetsAgentsAgentIdAssetsGet: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3955
- };
3956
- /**
3957
- * DefaultApi - functional programming interface
3958
- * @export
3959
- */
3960
- export declare const DefaultApiFp: (configuration?: Configuration) => {
3961
- /**
3962
- * Get the assets and balances for an agent\'s wallet
3963
- * @summary Get agent assets
3964
- * @param {string} agentId ID of the agent
3965
- * @param {*} [options] Override http request option.
3966
- * @throws {RequiredError}
3967
- */
3968
- getAgentAssetsAgentsAgentIdAssetsGet(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentAssetsResponse>>;
3969
- };
3970
- /**
3971
- * DefaultApi - factory interface
3972
- * @export
3973
- */
3974
- export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3975
- /**
3976
- * Get the assets and balances for an agent\'s wallet
3977
- * @summary Get agent assets
3978
- * @param {string} agentId ID of the agent
3979
- * @param {*} [options] Override http request option.
3980
- * @throws {RequiredError}
3981
- */
3982
- getAgentAssetsAgentsAgentIdAssetsGet(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentAssetsResponse>;
3983
- };
3984
- /**
3985
- * DefaultApi - object-oriented interface
3986
- * @export
3987
- * @class DefaultApi
3988
- * @extends {BaseAPI}
3989
- */
3990
- export declare class DefaultApi extends BaseAPI {
3991
- /**
3992
- * Get the assets and balances for an agent\'s wallet
3993
- * @summary Get agent assets
3994
- * @param {string} agentId ID of the agent
3995
- * @param {*} [options] Override http request option.
3996
- * @throws {RequiredError}
3997
- * @memberof DefaultApi
3998
- */
3999
- getAgentAssetsAgentsAgentIdAssetsGet(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentAssetsResponse, any>>;
4000
- }
4001
3975
  /**
4002
3976
  * GeneratorApi - axios parameter creator
4003
3977
  * @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.33
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).
@@ -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.MetadataApiFp = exports.MetadataApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = exports.GeneratorApi = exports.GeneratorApiFactory = exports.GeneratorApiFp = exports.GeneratorApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = 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 = exports.OAuthApiFp = exports.OAuthApiAxiosParamCreator = exports.MetadataApi = exports.MetadataApiFactory = 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
@@ -512,6 +512,43 @@ var AgentApiAxiosParamCreator = function (configuration) {
512
512
  });
513
513
  });
514
514
  },
515
+ /**
516
+ * Get the assets and balances for an agent\'s wallet
517
+ * @summary Get Agent Assets
518
+ * @param {string} agentId ID of the agent
519
+ * @param {*} [options] Override http request option.
520
+ * @throws {RequiredError}
521
+ */
522
+ getAgentAssets: function (agentId_1) {
523
+ var args_1 = [];
524
+ for (var _i = 1; _i < arguments.length; _i++) {
525
+ args_1[_i - 1] = arguments[_i];
526
+ }
527
+ return __awaiter(_this, __spreadArray([agentId_1], args_1, true), void 0, function (agentId, options) {
528
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
529
+ if (options === void 0) { options = {}; }
530
+ return __generator(this, function (_a) {
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;
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
+ }];
549
+ });
550
+ });
551
+ },
515
552
  /**
516
553
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
517
554
  * @summary Get Agent Statistics
@@ -1050,6 +1087,29 @@ var AgentApiFp = function (configuration) {
1050
1087
  });
1051
1088
  });
1052
1089
  },
1090
+ /**
1091
+ * Get the assets and balances for an agent\'s wallet
1092
+ * @summary Get Agent Assets
1093
+ * @param {string} agentId ID of the agent
1094
+ * @param {*} [options] Override http request option.
1095
+ * @throws {RequiredError}
1096
+ */
1097
+ getAgentAssets: function (agentId, options) {
1098
+ return __awaiter(this, void 0, void 0, function () {
1099
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1100
+ var _a, _b, _c;
1101
+ return __generator(this, function (_d) {
1102
+ switch (_d.label) {
1103
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgentAssets(agentId, options)];
1104
+ case 1:
1105
+ localVarAxiosArgs = _d.sent();
1106
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1107
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.getAgentAssets']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1108
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1109
+ }
1110
+ });
1111
+ });
1112
+ },
1053
1113
  /**
1054
1114
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
1055
1115
  * @summary Get Agent Statistics
@@ -1315,6 +1375,16 @@ var AgentApiFactory = function (configuration, basePath, axios) {
1315
1375
  getAgentApiKey: function (agentId, options) {
1316
1376
  return localVarFp.getAgentApiKey(agentId, options).then(function (request) { return request(axios, basePath); });
1317
1377
  },
1378
+ /**
1379
+ * Get the assets and balances for an agent\'s wallet
1380
+ * @summary Get Agent Assets
1381
+ * @param {string} agentId ID of the agent
1382
+ * @param {*} [options] Override http request option.
1383
+ * @throws {RequiredError}
1384
+ */
1385
+ getAgentAssets: function (agentId, options) {
1386
+ return localVarFp.getAgentAssets(agentId, options).then(function (request) { return request(axios, basePath); });
1387
+ },
1318
1388
  /**
1319
1389
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
1320
1390
  * @summary Get Agent Statistics
@@ -1475,6 +1545,18 @@ var AgentApi = /** @class */ (function (_super) {
1475
1545
  var _this = this;
1476
1546
  return (0, exports.AgentApiFp)(this.configuration).getAgentApiKey(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1477
1547
  };
1548
+ /**
1549
+ * Get the assets and balances for an agent\'s wallet
1550
+ * @summary Get Agent Assets
1551
+ * @param {string} agentId ID of the agent
1552
+ * @param {*} [options] Override http request option.
1553
+ * @throws {RequiredError}
1554
+ * @memberof AgentApi
1555
+ */
1556
+ AgentApi.prototype.getAgentAssets = function (agentId, options) {
1557
+ var _this = this;
1558
+ return (0, exports.AgentApiFp)(this.configuration).getAgentAssets(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1559
+ };
1478
1560
  /**
1479
1561
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
1480
1562
  * @summary Get Agent Statistics
@@ -3197,142 +3279,6 @@ var CreditApi = /** @class */ (function (_super) {
3197
3279
  return CreditApi;
3198
3280
  }(base_1.BaseAPI));
3199
3281
  exports.CreditApi = CreditApi;
3200
- /**
3201
- * DefaultApi - axios parameter creator
3202
- * @export
3203
- */
3204
- var DefaultApiAxiosParamCreator = function (configuration) {
3205
- var _this = this;
3206
- return {
3207
- /**
3208
- * Get the assets and balances for an agent\'s wallet
3209
- * @summary Get agent assets
3210
- * @param {string} agentId ID of the agent
3211
- * @param {*} [options] Override http request option.
3212
- * @throws {RequiredError}
3213
- */
3214
- getAgentAssetsAgentsAgentIdAssetsGet: function (agentId_1) {
3215
- var args_1 = [];
3216
- for (var _i = 1; _i < arguments.length; _i++) {
3217
- args_1[_i - 1] = arguments[_i];
3218
- }
3219
- return __awaiter(_this, __spreadArray([agentId_1], args_1, true), void 0, function (agentId, options) {
3220
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3221
- if (options === void 0) { options = {}; }
3222
- return __generator(this, function (_a) {
3223
- switch (_a.label) {
3224
- case 0:
3225
- // verify required parameter 'agentId' is not null or undefined
3226
- (0, common_1.assertParamExists)('getAgentAssetsAgentsAgentIdAssetsGet', 'agentId', agentId);
3227
- localVarPath = "/agents/{agent_id}/assets"
3228
- .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
3229
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3230
- if (configuration) {
3231
- baseOptions = configuration.baseOptions;
3232
- }
3233
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3234
- localVarHeaderParameter = {};
3235
- localVarQueryParameter = {};
3236
- // authentication HTTPBearer required
3237
- // http bearer authentication required
3238
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
3239
- case 1:
3240
- // authentication HTTPBearer required
3241
- // http bearer authentication required
3242
- _a.sent();
3243
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3244
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3245
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3246
- return [2 /*return*/, {
3247
- url: (0, common_1.toPathString)(localVarUrlObj),
3248
- options: localVarRequestOptions,
3249
- }];
3250
- }
3251
- });
3252
- });
3253
- },
3254
- };
3255
- };
3256
- exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
3257
- /**
3258
- * DefaultApi - functional programming interface
3259
- * @export
3260
- */
3261
- var DefaultApiFp = function (configuration) {
3262
- var localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
3263
- return {
3264
- /**
3265
- * Get the assets and balances for an agent\'s wallet
3266
- * @summary Get agent assets
3267
- * @param {string} agentId ID of the agent
3268
- * @param {*} [options] Override http request option.
3269
- * @throws {RequiredError}
3270
- */
3271
- getAgentAssetsAgentsAgentIdAssetsGet: function (agentId, options) {
3272
- return __awaiter(this, void 0, void 0, function () {
3273
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3274
- var _a, _b, _c;
3275
- return __generator(this, function (_d) {
3276
- switch (_d.label) {
3277
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgentAssetsAgentsAgentIdAssetsGet(agentId, options)];
3278
- case 1:
3279
- localVarAxiosArgs = _d.sent();
3280
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3281
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.getAgentAssetsAgentsAgentIdAssetsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3282
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3283
- }
3284
- });
3285
- });
3286
- },
3287
- };
3288
- };
3289
- exports.DefaultApiFp = DefaultApiFp;
3290
- /**
3291
- * DefaultApi - factory interface
3292
- * @export
3293
- */
3294
- var DefaultApiFactory = function (configuration, basePath, axios) {
3295
- var localVarFp = (0, exports.DefaultApiFp)(configuration);
3296
- return {
3297
- /**
3298
- * Get the assets and balances for an agent\'s wallet
3299
- * @summary Get agent assets
3300
- * @param {string} agentId ID of the agent
3301
- * @param {*} [options] Override http request option.
3302
- * @throws {RequiredError}
3303
- */
3304
- getAgentAssetsAgentsAgentIdAssetsGet: function (agentId, options) {
3305
- return localVarFp.getAgentAssetsAgentsAgentIdAssetsGet(agentId, options).then(function (request) { return request(axios, basePath); });
3306
- },
3307
- };
3308
- };
3309
- exports.DefaultApiFactory = DefaultApiFactory;
3310
- /**
3311
- * DefaultApi - object-oriented interface
3312
- * @export
3313
- * @class DefaultApi
3314
- * @extends {BaseAPI}
3315
- */
3316
- var DefaultApi = /** @class */ (function (_super) {
3317
- __extends(DefaultApi, _super);
3318
- function DefaultApi() {
3319
- return _super !== null && _super.apply(this, arguments) || this;
3320
- }
3321
- /**
3322
- * Get the assets and balances for an agent\'s wallet
3323
- * @summary Get agent assets
3324
- * @param {string} agentId ID of the agent
3325
- * @param {*} [options] Override http request option.
3326
- * @throws {RequiredError}
3327
- * @memberof DefaultApi
3328
- */
3329
- DefaultApi.prototype.getAgentAssetsAgentsAgentIdAssetsGet = function (agentId, options) {
3330
- var _this = this;
3331
- return (0, exports.DefaultApiFp)(this.configuration).getAgentAssetsAgentsAgentIdAssetsGet(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3332
- };
3333
- return DefaultApi;
3334
- }(base_1.BaseAPI));
3335
- exports.DefaultApi = DefaultApi;
3336
3282
  /**
3337
3283
  * GeneratorApi - axios parameter creator
3338
3284
  * @export
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.2.33
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).
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.33
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
@@ -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.33
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).
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.33
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).
@@ -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.33
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).
@@ -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.33
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
@@ -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.33
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).
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.33
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,6 +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 Agent Assets|
11
12
  |[**getAgentStatistics**](#getagentstatistics) | **GET** /agents/{aid}/statistics | Get Agent Statistics|
12
13
  |[**getAgents**](#getagents) | **GET** /agents | Get Agents|
13
14
  |[**getSkillHistory**](#getskillhistory) | **GET** /agents/{aid}/skill/history | Skill History|
@@ -233,6 +234,58 @@ const { status, data } = await apiInstance.getAgentApiKey(
233
234
 
234
235
  [[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)
235
236
 
237
+ # **getAgentAssets**
238
+ > AgentAssetsResponse getAgentAssets()
239
+
240
+ Get the assets and balances for an agent\'s wallet
241
+
242
+ ### Example
243
+
244
+ ```typescript
245
+ import {
246
+ AgentApi,
247
+ Configuration
248
+ } from '@crestal/nation-sdk';
249
+
250
+ const configuration = new Configuration();
251
+ const apiInstance = new AgentApi(configuration);
252
+
253
+ let agentId: string; //ID of the agent (default to undefined)
254
+
255
+ const { status, data } = await apiInstance.getAgentAssets(
256
+ agentId
257
+ );
258
+ ```
259
+
260
+ ### Parameters
261
+
262
+ |Name | Type | Description | Notes|
263
+ |------------- | ------------- | ------------- | -------------|
264
+ | **agentId** | [**string**] | ID of the agent | defaults to undefined|
265
+
266
+
267
+ ### Return type
268
+
269
+ **AgentAssetsResponse**
270
+
271
+ ### Authorization
272
+
273
+ No authorization required
274
+
275
+ ### HTTP request headers
276
+
277
+ - **Content-Type**: Not defined
278
+ - **Accept**: application/json
279
+
280
+
281
+ ### HTTP response details
282
+ | Status code | Description | Response headers |
283
+ |-------------|-------------|------------------|
284
+ |**200** | Successful Response | - |
285
+ |**422** | Validation Error | - |
286
+
287
+ [[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)
288
+
236
289
  # **getAgentStatistics**
237
290
  > AgentStatisticsResponse getAgentStatistics()
238
291
 
@@ -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-28T10:10:22.919+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-08-28T10:10:22.919+00:00]
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
@@ -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.33
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).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crestal/nation-sdk",
3
- "version": "0.2.33",
3
+ "version": "0.6.21",
4
4
  "description": "OpenAPI client for @crestal/nation-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -1,60 +0,0 @@
1
- # DefaultApi
2
-
3
- All URIs are relative to *http://localhost*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**getAgentAssetsAgentsAgentIdAssetsGet**](#getagentassetsagentsagentidassetsget) | **GET** /agents/{agent_id}/assets | Get agent assets|
8
-
9
- # **getAgentAssetsAgentsAgentIdAssetsGet**
10
- > AgentAssetsResponse getAgentAssetsAgentsAgentIdAssetsGet()
11
-
12
- Get the assets and balances for an agent\'s wallet
13
-
14
- ### Example
15
-
16
- ```typescript
17
- import {
18
- DefaultApi,
19
- Configuration
20
- } from '@crestal/nation-sdk';
21
-
22
- const configuration = new Configuration();
23
- const apiInstance = new DefaultApi(configuration);
24
-
25
- let agentId: string; //ID of the agent (default to undefined)
26
-
27
- const { status, data } = await apiInstance.getAgentAssetsAgentsAgentIdAssetsGet(
28
- agentId
29
- );
30
- ```
31
-
32
- ### Parameters
33
-
34
- |Name | Type | Description | Notes|
35
- |------------- | ------------- | ------------- | -------------|
36
- | **agentId** | [**string**] | ID of the agent | defaults to undefined|
37
-
38
-
39
- ### Return type
40
-
41
- **AgentAssetsResponse**
42
-
43
- ### Authorization
44
-
45
- [HTTPBearer](../README.md#HTTPBearer)
46
-
47
- ### HTTP request headers
48
-
49
- - **Content-Type**: Not defined
50
- - **Accept**: application/json
51
-
52
-
53
- ### HTTP response details
54
- | Status code | Description | Response headers |
55
- |-------------|-------------|------------------|
56
- |**200** | Successful Response | - |
57
- |**422** | Validation Error | - |
58
-
59
- [[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)
60
-