@crestal/nation-sdk 0.8.16 → 0.8.17

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.
@@ -17,6 +17,7 @@ docs/AgentDraft.md
17
17
  docs/AgentExample.md
18
18
  docs/AgentGenerateRequest.md
19
19
  docs/AgentGenerateResponse.md
20
+ docs/AgentLinkedAccountsResponse.md
20
21
  docs/AgentListResponse.md
21
22
  docs/AgentPublicInfo.md
22
23
  docs/AgentResponse.md
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @crestal/nation-sdk@0.8.16
1
+ ## @crestal/nation-sdk@0.8.17
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.8.16 --save
39
+ npm install @crestal/nation-sdk@0.8.17 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -56,6 +56,7 @@ Class | Method | HTTP request | Description
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
58
  *AgentApi* | [**getAgentAssets**](docs/AgentApi.md#getagentassets) | **GET** /agents/{agent_id}/assets | Get Agent Assets
59
+ *AgentApi* | [**getAgentLinkedAccounts**](docs/AgentApi.md#getagentlinkedaccounts) | **GET** /agents/{agent_id}/linked | Get Agent Linked Accounts
59
60
  *AgentApi* | [**getAgentStatistics**](docs/AgentApi.md#getagentstatistics) | **GET** /agents/{aid}/statistics | Get Agent Statistics
60
61
  *AgentApi* | [**getAgents**](docs/AgentApi.md#getagents) | **GET** /agents | Get Agents
61
62
  *AgentApi* | [**getSkillHistory**](docs/AgentApi.md#getskillhistory) | **GET** /agents/{aid}/skill/history | Skill History
@@ -127,6 +128,7 @@ Class | Method | HTTP request | Description
127
128
  - [AgentExample](docs/AgentExample.md)
128
129
  - [AgentGenerateRequest](docs/AgentGenerateRequest.md)
129
130
  - [AgentGenerateResponse](docs/AgentGenerateResponse.md)
131
+ - [AgentLinkedAccountsResponse](docs/AgentLinkedAccountsResponse.md)
130
132
  - [AgentListResponse](docs/AgentListResponse.md)
131
133
  - [AgentPublicInfo](docs/AgentPublicInfo.md)
132
134
  - [AgentResponse](docs/AgentResponse.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.8.16
7
+ * The version of the OpenAPI document: 0.8.17
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -395,6 +395,29 @@ export interface AgentGenerateResponse {
395
395
  'autonomous_tasks'?: Array<{ [key: string]: any; }> | null;
396
396
  'activated_skills'?: Array<string> | null;
397
397
  }
398
+ /**
399
+ * Response model for agent linked account information.
400
+ */
401
+ export interface AgentLinkedAccountsResponse {
402
+ 'evm_wallet_address'?: string | null;
403
+ 'solana_wallet_address'?: string | null;
404
+ /**
405
+ * Whether the agent has Twitter linked
406
+ */
407
+ 'has_twitter_linked'?: boolean;
408
+ 'linked_twitter_username'?: string | null;
409
+ 'linked_twitter_name'?: string | null;
410
+ /**
411
+ * Whether the agent has Twitter self key
412
+ */
413
+ 'has_twitter_self_key'?: boolean;
414
+ /**
415
+ * Whether the agent has Telegram self key
416
+ */
417
+ 'has_telegram_self_key'?: boolean;
418
+ 'linked_telegram_username'?: string | null;
419
+ 'linked_telegram_name'?: string | null;
420
+ }
398
421
  /**
399
422
  * Paginated response model for agents list. Contains a list of agents, a flag indicating if more items are available, and a cursor for pagination.
400
423
  */
@@ -2351,6 +2374,44 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
2351
2374
 
2352
2375
 
2353
2376
 
2377
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2378
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2379
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2380
+
2381
+ return {
2382
+ url: toPathString(localVarUrlObj),
2383
+ options: localVarRequestOptions,
2384
+ };
2385
+ },
2386
+ /**
2387
+ * Get linked account information for an agent.
2388
+ * @summary Get Agent Linked Accounts
2389
+ * @param {string} agentId ID of the agent to retrieve linked account information for
2390
+ * @param {*} [options] Override http request option.
2391
+ * @throws {RequiredError}
2392
+ */
2393
+ getAgentLinkedAccounts: async (agentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2394
+ // verify required parameter 'agentId' is not null or undefined
2395
+ assertParamExists('getAgentLinkedAccounts', 'agentId', agentId)
2396
+ const localVarPath = `/agents/{agent_id}/linked`
2397
+ .replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
2398
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2399
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2400
+ let baseOptions;
2401
+ if (configuration) {
2402
+ baseOptions = configuration.baseOptions;
2403
+ }
2404
+
2405
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2406
+ const localVarHeaderParameter = {} as any;
2407
+ const localVarQueryParameter = {} as any;
2408
+
2409
+ // authentication HTTPBearer required
2410
+ // http bearer authentication required
2411
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2412
+
2413
+
2414
+
2354
2415
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2355
2416
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2356
2417
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -2903,6 +2964,19 @@ export const AgentApiFp = function(configuration?: Configuration) {
2903
2964
  const localVarOperationServerBasePath = operationServerMap['AgentApi.getAgentAssets']?.[localVarOperationServerIndex]?.url;
2904
2965
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2905
2966
  },
2967
+ /**
2968
+ * Get linked account information for an agent.
2969
+ * @summary Get Agent Linked Accounts
2970
+ * @param {string} agentId ID of the agent to retrieve linked account information for
2971
+ * @param {*} [options] Override http request option.
2972
+ * @throws {RequiredError}
2973
+ */
2974
+ async getAgentLinkedAccounts(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentLinkedAccountsResponse>> {
2975
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAgentLinkedAccounts(agentId, options);
2976
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2977
+ const localVarOperationServerBasePath = operationServerMap['AgentApi.getAgentLinkedAccounts']?.[localVarOperationServerIndex]?.url;
2978
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2979
+ },
2906
2980
  /**
2907
2981
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
2908
2982
  * @summary Get Agent Statistics
@@ -3116,6 +3190,16 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
3116
3190
  getAgentAssets(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentAssetsResponse> {
3117
3191
  return localVarFp.getAgentAssets(agentId, options).then((request) => request(axios, basePath));
3118
3192
  },
3193
+ /**
3194
+ * Get linked account information for an agent.
3195
+ * @summary Get Agent Linked Accounts
3196
+ * @param {string} agentId ID of the agent to retrieve linked account information for
3197
+ * @param {*} [options] Override http request option.
3198
+ * @throws {RequiredError}
3199
+ */
3200
+ getAgentLinkedAccounts(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentLinkedAccountsResponse> {
3201
+ return localVarFp.getAgentLinkedAccounts(agentId, options).then((request) => request(axios, basePath));
3202
+ },
3119
3203
  /**
3120
3204
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
3121
3205
  * @summary Get Agent Statistics
@@ -3299,6 +3383,17 @@ export class AgentApi extends BaseAPI {
3299
3383
  return AgentApiFp(this.configuration).getAgentAssets(agentId, options).then((request) => request(this.axios, this.basePath));
3300
3384
  }
3301
3385
 
3386
+ /**
3387
+ * Get linked account information for an agent.
3388
+ * @summary Get Agent Linked Accounts
3389
+ * @param {string} agentId ID of the agent to retrieve linked account information for
3390
+ * @param {*} [options] Override http request option.
3391
+ * @throws {RequiredError}
3392
+ */
3393
+ public getAgentLinkedAccounts(agentId: string, options?: RawAxiosRequestConfig) {
3394
+ return AgentApiFp(this.configuration).getAgentLinkedAccounts(agentId, options).then((request) => request(this.axios, this.basePath));
3395
+ }
3396
+
3302
3397
  /**
3303
3398
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
3304
3399
  * @summary Get Agent Statistics
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.8.16
7
+ * The version of the OpenAPI document: 0.8.17
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.8.16
7
+ * The version of the OpenAPI document: 0.8.17
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.8.16
7
+ * The version of the OpenAPI document: 0.8.17
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.8.16
5
+ * The version of the OpenAPI document: 0.8.17
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -400,6 +400,29 @@ export interface AgentGenerateResponse {
400
400
  }> | null;
401
401
  'activated_skills'?: Array<string> | null;
402
402
  }
403
+ /**
404
+ * Response model for agent linked account information.
405
+ */
406
+ export interface AgentLinkedAccountsResponse {
407
+ 'evm_wallet_address'?: string | null;
408
+ 'solana_wallet_address'?: string | null;
409
+ /**
410
+ * Whether the agent has Twitter linked
411
+ */
412
+ 'has_twitter_linked'?: boolean;
413
+ 'linked_twitter_username'?: string | null;
414
+ 'linked_twitter_name'?: string | null;
415
+ /**
416
+ * Whether the agent has Twitter self key
417
+ */
418
+ 'has_twitter_self_key'?: boolean;
419
+ /**
420
+ * Whether the agent has Telegram self key
421
+ */
422
+ 'has_telegram_self_key'?: boolean;
423
+ 'linked_telegram_username'?: string | null;
424
+ 'linked_telegram_name'?: string | null;
425
+ }
403
426
  /**
404
427
  * Paginated response model for agents list. Contains a list of agents, a flag indicating if more items are available, and a cursor for pagination.
405
428
  */
@@ -2162,6 +2185,14 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
2162
2185
  * @throws {RequiredError}
2163
2186
  */
2164
2187
  getAgentAssets: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2188
+ /**
2189
+ * Get linked account information for an agent.
2190
+ * @summary Get Agent Linked Accounts
2191
+ * @param {string} agentId ID of the agent to retrieve linked account information for
2192
+ * @param {*} [options] Override http request option.
2193
+ * @throws {RequiredError}
2194
+ */
2195
+ getAgentLinkedAccounts: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2165
2196
  /**
2166
2197
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
2167
2198
  * @summary Get Agent Statistics
@@ -2306,6 +2337,14 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
2306
2337
  * @throws {RequiredError}
2307
2338
  */
2308
2339
  getAgentAssets(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentAssetsResponse>>;
2340
+ /**
2341
+ * Get linked account information for an agent.
2342
+ * @summary Get Agent Linked Accounts
2343
+ * @param {string} agentId ID of the agent to retrieve linked account information for
2344
+ * @param {*} [options] Override http request option.
2345
+ * @throws {RequiredError}
2346
+ */
2347
+ getAgentLinkedAccounts(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentLinkedAccountsResponse>>;
2309
2348
  /**
2310
2349
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
2311
2350
  * @summary Get Agent Statistics
@@ -2450,6 +2489,14 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
2450
2489
  * @throws {RequiredError}
2451
2490
  */
2452
2491
  getAgentAssets(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentAssetsResponse>;
2492
+ /**
2493
+ * Get linked account information for an agent.
2494
+ * @summary Get Agent Linked Accounts
2495
+ * @param {string} agentId ID of the agent to retrieve linked account information for
2496
+ * @param {*} [options] Override http request option.
2497
+ * @throws {RequiredError}
2498
+ */
2499
+ getAgentLinkedAccounts(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentLinkedAccountsResponse>;
2453
2500
  /**
2454
2501
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
2455
2502
  * @summary Get Agent Statistics
@@ -2594,6 +2641,14 @@ export declare class AgentApi extends BaseAPI {
2594
2641
  * @throws {RequiredError}
2595
2642
  */
2596
2643
  getAgentAssets(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentAssetsResponse, any, {}>>;
2644
+ /**
2645
+ * Get linked account information for an agent.
2646
+ * @summary Get Agent Linked Accounts
2647
+ * @param {string} agentId ID of the agent to retrieve linked account information for
2648
+ * @param {*} [options] Override http request option.
2649
+ * @throws {RequiredError}
2650
+ */
2651
+ getAgentLinkedAccounts(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentLinkedAccountsResponse, any, {}>>;
2597
2652
  /**
2598
2653
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
2599
2654
  * @summary Get Agent Statistics
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.16
8
+ * The version of the OpenAPI document: 0.8.17
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -605,6 +605,53 @@ var AgentApiAxiosParamCreator = function (configuration) {
605
605
  });
606
606
  });
607
607
  },
608
+ /**
609
+ * Get linked account information for an agent.
610
+ * @summary Get Agent Linked Accounts
611
+ * @param {string} agentId ID of the agent to retrieve linked account information for
612
+ * @param {*} [options] Override http request option.
613
+ * @throws {RequiredError}
614
+ */
615
+ getAgentLinkedAccounts: function (agentId_1) {
616
+ var args_1 = [];
617
+ for (var _i = 1; _i < arguments.length; _i++) {
618
+ args_1[_i - 1] = arguments[_i];
619
+ }
620
+ return __awaiter(_this, __spreadArray([agentId_1], args_1, true), void 0, function (agentId, options) {
621
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
622
+ if (options === void 0) { options = {}; }
623
+ return __generator(this, function (_a) {
624
+ switch (_a.label) {
625
+ case 0:
626
+ // verify required parameter 'agentId' is not null or undefined
627
+ (0, common_1.assertParamExists)('getAgentLinkedAccounts', 'agentId', agentId);
628
+ localVarPath = "/agents/{agent_id}/linked"
629
+ .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
630
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
631
+ if (configuration) {
632
+ baseOptions = configuration.baseOptions;
633
+ }
634
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
635
+ localVarHeaderParameter = {};
636
+ localVarQueryParameter = {};
637
+ // authentication HTTPBearer required
638
+ // http bearer authentication required
639
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
640
+ case 1:
641
+ // authentication HTTPBearer required
642
+ // http bearer authentication required
643
+ _a.sent();
644
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
645
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
646
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
647
+ return [2 /*return*/, {
648
+ url: (0, common_1.toPathString)(localVarUrlObj),
649
+ options: localVarRequestOptions,
650
+ }];
651
+ }
652
+ });
653
+ });
654
+ },
608
655
  /**
609
656
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
610
657
  * @summary Get Agent Statistics
@@ -1271,6 +1318,29 @@ var AgentApiFp = function (configuration) {
1271
1318
  });
1272
1319
  });
1273
1320
  },
1321
+ /**
1322
+ * Get linked account information for an agent.
1323
+ * @summary Get Agent Linked Accounts
1324
+ * @param {string} agentId ID of the agent to retrieve linked account information for
1325
+ * @param {*} [options] Override http request option.
1326
+ * @throws {RequiredError}
1327
+ */
1328
+ getAgentLinkedAccounts: function (agentId, options) {
1329
+ return __awaiter(this, void 0, void 0, function () {
1330
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1331
+ var _a, _b, _c;
1332
+ return __generator(this, function (_d) {
1333
+ switch (_d.label) {
1334
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgentLinkedAccounts(agentId, options)];
1335
+ case 1:
1336
+ localVarAxiosArgs = _d.sent();
1337
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1338
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.getAgentLinkedAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1339
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1340
+ }
1341
+ });
1342
+ });
1343
+ },
1274
1344
  /**
1275
1345
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
1276
1346
  * @summary Get Agent Statistics
@@ -1594,6 +1664,16 @@ var AgentApiFactory = function (configuration, basePath, axios) {
1594
1664
  getAgentAssets: function (agentId, options) {
1595
1665
  return localVarFp.getAgentAssets(agentId, options).then(function (request) { return request(axios, basePath); });
1596
1666
  },
1667
+ /**
1668
+ * Get linked account information for an agent.
1669
+ * @summary Get Agent Linked Accounts
1670
+ * @param {string} agentId ID of the agent to retrieve linked account information for
1671
+ * @param {*} [options] Override http request option.
1672
+ * @throws {RequiredError}
1673
+ */
1674
+ getAgentLinkedAccounts: function (agentId, options) {
1675
+ return localVarFp.getAgentLinkedAccounts(agentId, options).then(function (request) { return request(axios, basePath); });
1676
+ },
1597
1677
  /**
1598
1678
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
1599
1679
  * @summary Get Agent Statistics
@@ -1781,6 +1861,17 @@ var AgentApi = /** @class */ (function (_super) {
1781
1861
  var _this = this;
1782
1862
  return (0, exports.AgentApiFp)(this.configuration).getAgentAssets(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1783
1863
  };
1864
+ /**
1865
+ * Get linked account information for an agent.
1866
+ * @summary Get Agent Linked Accounts
1867
+ * @param {string} agentId ID of the agent to retrieve linked account information for
1868
+ * @param {*} [options] Override http request option.
1869
+ * @throws {RequiredError}
1870
+ */
1871
+ AgentApi.prototype.getAgentLinkedAccounts = function (agentId, options) {
1872
+ var _this = this;
1873
+ return (0, exports.AgentApiFp)(this.configuration).getAgentLinkedAccounts(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1874
+ };
1784
1875
  /**
1785
1876
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
1786
1877
  * @summary Get Agent Statistics
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.8.16
5
+ * The version of the OpenAPI document: 0.8.17
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.8.16
8
+ * The version of the OpenAPI document: 0.8.17
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.8.16
5
+ * The version of the OpenAPI document: 0.8.17
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.8.16
8
+ * The version of the OpenAPI document: 0.8.17
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.8.16
5
+ * The version of the OpenAPI document: 0.8.17
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.8.16
8
+ * The version of the OpenAPI document: 0.8.17
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.8.16
5
+ * The version of the OpenAPI document: 0.8.17
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.8.16
8
+ * The version of the OpenAPI document: 0.8.17
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/AgentApi.md CHANGED
@@ -9,6 +9,7 @@ All URIs are relative to *http://localhost*
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
11
  |[**getAgentAssets**](#getagentassets) | **GET** /agents/{agent_id}/assets | Get Agent Assets|
12
+ |[**getAgentLinkedAccounts**](#getagentlinkedaccounts) | **GET** /agents/{agent_id}/linked | Get Agent Linked Accounts|
12
13
  |[**getAgentStatistics**](#getagentstatistics) | **GET** /agents/{aid}/statistics | Get Agent Statistics|
13
14
  |[**getAgents**](#getagents) | **GET** /agents | Get Agents|
14
15
  |[**getSkillHistory**](#getskillhistory) | **GET** /agents/{aid}/skill/history | Skill History|
@@ -280,6 +281,58 @@ const { status, data } = await apiInstance.getAgentAssets(
280
281
  - **Accept**: application/json
281
282
 
282
283
 
284
+ ### HTTP response details
285
+ | Status code | Description | Response headers |
286
+ |-------------|-------------|------------------|
287
+ |**200** | Successful Response | - |
288
+ |**422** | Validation Error | - |
289
+
290
+ [[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)
291
+
292
+ # **getAgentLinkedAccounts**
293
+ > AgentLinkedAccountsResponse getAgentLinkedAccounts()
294
+
295
+ Get linked account information for an agent.
296
+
297
+ ### Example
298
+
299
+ ```typescript
300
+ import {
301
+ AgentApi,
302
+ Configuration
303
+ } from '@crestal/nation-sdk';
304
+
305
+ const configuration = new Configuration();
306
+ const apiInstance = new AgentApi(configuration);
307
+
308
+ let agentId: string; //ID of the agent to retrieve linked account information for (default to undefined)
309
+
310
+ const { status, data } = await apiInstance.getAgentLinkedAccounts(
311
+ agentId
312
+ );
313
+ ```
314
+
315
+ ### Parameters
316
+
317
+ |Name | Type | Description | Notes|
318
+ |------------- | ------------- | ------------- | -------------|
319
+ | **agentId** | [**string**] | ID of the agent to retrieve linked account information for | defaults to undefined|
320
+
321
+
322
+ ### Return type
323
+
324
+ **AgentLinkedAccountsResponse**
325
+
326
+ ### Authorization
327
+
328
+ [HTTPBearer](../README.md#HTTPBearer)
329
+
330
+ ### HTTP request headers
331
+
332
+ - **Content-Type**: Not defined
333
+ - **Accept**: application/json
334
+
335
+
283
336
  ### HTTP response details
284
337
  | Status code | Description | Response headers |
285
338
  |-------------|-------------|------------------|
@@ -0,0 +1,37 @@
1
+ # AgentLinkedAccountsResponse
2
+
3
+ Response model for agent linked account information.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **evm_wallet_address** | **string** | | [optional] [default to undefined]
10
+ **solana_wallet_address** | **string** | | [optional] [default to undefined]
11
+ **has_twitter_linked** | **boolean** | Whether the agent has Twitter linked | [optional] [default to false]
12
+ **linked_twitter_username** | **string** | | [optional] [default to undefined]
13
+ **linked_twitter_name** | **string** | | [optional] [default to undefined]
14
+ **has_twitter_self_key** | **boolean** | Whether the agent has Twitter self key | [optional] [default to false]
15
+ **has_telegram_self_key** | **boolean** | Whether the agent has Telegram self key | [optional] [default to false]
16
+ **linked_telegram_username** | **string** | | [optional] [default to undefined]
17
+ **linked_telegram_name** | **string** | | [optional] [default to undefined]
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import { AgentLinkedAccountsResponse } from '@crestal/nation-sdk';
23
+
24
+ const instance: AgentLinkedAccountsResponse = {
25
+ evm_wallet_address,
26
+ solana_wallet_address,
27
+ has_twitter_linked,
28
+ linked_twitter_username,
29
+ linked_twitter_name,
30
+ has_twitter_self_key,
31
+ has_telegram_self_key,
32
+ linked_telegram_username,
33
+ linked_telegram_name,
34
+ };
35
+ ```
36
+
37
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -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-10-16T02:05:26.831+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-16T02:05:26.831+00:00]
30
+ **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-10-16T02:40:51.276+00:00]
31
+ **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-16T02:40:51.276+00:00]
32
32
  **provider_name** | **string** | | [default to undefined]
33
33
 
34
34
  ## Example
@@ -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-10-16T02:05:26.831+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-16T02:05:26.831+00:00]
30
+ **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-10-16T02:40:51.276+00:00]
31
+ **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-16T02:40:51.276+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.8.16
7
+ * The version of the OpenAPI document: 0.8.17
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.8.16",
3
+ "version": "0.8.17",
4
4
  "description": "OpenAPI client for @crestal/nation-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {