@crestal/nation-sdk 0.1.21 → 0.1.23

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/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.1.21
8
+ * The version of the OpenAPI document: 0.1.23
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -84,13 +84,49 @@ 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.MetadataApi = exports.MetadataApiFactory = exports.MetadataApiFp = exports.MetadataApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = 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.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 = void 0;
87
+ exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.MetadataApi = exports.MetadataApiFactory = exports.MetadataApiFp = exports.MetadataApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = 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.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
88
  var axios_1 = require("axios");
89
89
  // Some imports not used depending on template conditions
90
90
  // @ts-ignore
91
91
  var common_1 = require("./common");
92
92
  // @ts-ignore
93
93
  var base_1 = require("./base");
94
+ exports.AgentModeEnum = {
95
+ Public: 'public',
96
+ Private: 'private'
97
+ };
98
+ exports.AgentShortTermMemoryStrategyEnum = {
99
+ Trim: 'trim',
100
+ Summarize: 'summarize'
101
+ };
102
+ exports.AgentWalletProviderEnum = {
103
+ Cdp: 'cdp'
104
+ };
105
+ exports.AgentNetworkIdEnum = {
106
+ EthereumMainnet: 'ethereum-mainnet',
107
+ EthereumSepolia: 'ethereum-sepolia',
108
+ PolygonMainnet: 'polygon-mainnet',
109
+ PolygonMumbai: 'polygon-mumbai',
110
+ BaseMainnet: 'base-mainnet',
111
+ BaseSepolia: 'base-sepolia',
112
+ ArbitrumMainnet: 'arbitrum-mainnet',
113
+ ArbitrumSepolia: 'arbitrum-sepolia',
114
+ OptimismMainnet: 'optimism-mainnet',
115
+ OptimismSepolia: 'optimism-sepolia',
116
+ Solana: 'solana'
117
+ };
118
+ exports.AgentCdpNetworkIdEnum = {
119
+ EthereumMainnet: 'ethereum-mainnet',
120
+ EthereumSepolia: 'ethereum-sepolia',
121
+ PolygonMainnet: 'polygon-mainnet',
122
+ PolygonMumbai: 'polygon-mumbai',
123
+ BaseMainnet: 'base-mainnet',
124
+ BaseSepolia: 'base-sepolia',
125
+ ArbitrumMainnet: 'arbitrum-mainnet',
126
+ ArbitrumSepolia: 'arbitrum-sepolia',
127
+ OptimismMainnet: 'optimism-mainnet',
128
+ OptimismSepolia: 'optimism-sepolia'
129
+ };
94
130
  exports.AgentResponseModeEnum = {
95
131
  Public: 'public',
96
132
  Private: 'private'
@@ -3312,3 +3348,238 @@ var MetadataApi = /** @class */ (function (_super) {
3312
3348
  return MetadataApi;
3313
3349
  }(base_1.BaseAPI));
3314
3350
  exports.MetadataApi = MetadataApi;
3351
+ /**
3352
+ * UserApi - axios parameter creator
3353
+ * @export
3354
+ */
3355
+ var UserApiAxiosParamCreator = function (configuration) {
3356
+ var _this = this;
3357
+ return {
3358
+ /**
3359
+ * Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
3360
+ * @summary Get User Agent By Id
3361
+ * @param {string} agentId Agent ID
3362
+ * @param {*} [options] Override http request option.
3363
+ * @throws {RequiredError}
3364
+ */
3365
+ getUserAgentById: function (agentId_1) {
3366
+ var args_1 = [];
3367
+ for (var _i = 1; _i < arguments.length; _i++) {
3368
+ args_1[_i - 1] = arguments[_i];
3369
+ }
3370
+ return __awaiter(_this, __spreadArray([agentId_1], args_1, true), void 0, function (agentId, options) {
3371
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3372
+ if (options === void 0) { options = {}; }
3373
+ return __generator(this, function (_a) {
3374
+ switch (_a.label) {
3375
+ case 0:
3376
+ // verify required parameter 'agentId' is not null or undefined
3377
+ (0, common_1.assertParamExists)('getUserAgentById', 'agentId', agentId);
3378
+ localVarPath = "/user/agents/{agent_id}"
3379
+ .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
3380
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3381
+ if (configuration) {
3382
+ baseOptions = configuration.baseOptions;
3383
+ }
3384
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3385
+ localVarHeaderParameter = {};
3386
+ localVarQueryParameter = {};
3387
+ // authentication HTTPBearer required
3388
+ // http bearer authentication required
3389
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
3390
+ case 1:
3391
+ // authentication HTTPBearer required
3392
+ // http bearer authentication required
3393
+ _a.sent();
3394
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3395
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3396
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3397
+ return [2 /*return*/, {
3398
+ url: (0, common_1.toPathString)(localVarUrlObj),
3399
+ options: localVarRequestOptions,
3400
+ }];
3401
+ }
3402
+ });
3403
+ });
3404
+ },
3405
+ /**
3406
+ * Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
3407
+ * @summary Get User Agents
3408
+ * @param {string | null} [cursor] Cursor for pagination
3409
+ * @param {number} [limit] Maximum number of agents to return
3410
+ * @param {*} [options] Override http request option.
3411
+ * @throws {RequiredError}
3412
+ */
3413
+ getUserAgents: function (cursor_1, limit_1) {
3414
+ var args_1 = [];
3415
+ for (var _i = 2; _i < arguments.length; _i++) {
3416
+ args_1[_i - 2] = arguments[_i];
3417
+ }
3418
+ return __awaiter(_this, __spreadArray([cursor_1, limit_1], args_1, true), void 0, function (cursor, limit, options) {
3419
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3420
+ if (options === void 0) { options = {}; }
3421
+ return __generator(this, function (_a) {
3422
+ switch (_a.label) {
3423
+ case 0:
3424
+ localVarPath = "/user/agents";
3425
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3426
+ if (configuration) {
3427
+ baseOptions = configuration.baseOptions;
3428
+ }
3429
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3430
+ localVarHeaderParameter = {};
3431
+ localVarQueryParameter = {};
3432
+ // authentication HTTPBearer required
3433
+ // http bearer authentication required
3434
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
3435
+ case 1:
3436
+ // authentication HTTPBearer required
3437
+ // http bearer authentication required
3438
+ _a.sent();
3439
+ if (cursor !== undefined) {
3440
+ localVarQueryParameter['cursor'] = cursor;
3441
+ }
3442
+ if (limit !== undefined) {
3443
+ localVarQueryParameter['limit'] = limit;
3444
+ }
3445
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3446
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3447
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3448
+ return [2 /*return*/, {
3449
+ url: (0, common_1.toPathString)(localVarUrlObj),
3450
+ options: localVarRequestOptions,
3451
+ }];
3452
+ }
3453
+ });
3454
+ });
3455
+ },
3456
+ };
3457
+ };
3458
+ exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
3459
+ /**
3460
+ * UserApi - functional programming interface
3461
+ * @export
3462
+ */
3463
+ var UserApiFp = function (configuration) {
3464
+ var localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration);
3465
+ return {
3466
+ /**
3467
+ * Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
3468
+ * @summary Get User Agent By Id
3469
+ * @param {string} agentId Agent ID
3470
+ * @param {*} [options] Override http request option.
3471
+ * @throws {RequiredError}
3472
+ */
3473
+ getUserAgentById: function (agentId, options) {
3474
+ return __awaiter(this, void 0, void 0, function () {
3475
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3476
+ var _a, _b, _c;
3477
+ return __generator(this, function (_d) {
3478
+ switch (_d.label) {
3479
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUserAgentById(agentId, options)];
3480
+ case 1:
3481
+ localVarAxiosArgs = _d.sent();
3482
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3483
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.getUserAgentById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3484
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3485
+ }
3486
+ });
3487
+ });
3488
+ },
3489
+ /**
3490
+ * Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
3491
+ * @summary Get User Agents
3492
+ * @param {string | null} [cursor] Cursor for pagination
3493
+ * @param {number} [limit] Maximum number of agents to return
3494
+ * @param {*} [options] Override http request option.
3495
+ * @throws {RequiredError}
3496
+ */
3497
+ getUserAgents: function (cursor, limit, options) {
3498
+ return __awaiter(this, void 0, void 0, function () {
3499
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3500
+ var _a, _b, _c;
3501
+ return __generator(this, function (_d) {
3502
+ switch (_d.label) {
3503
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUserAgents(cursor, limit, options)];
3504
+ case 1:
3505
+ localVarAxiosArgs = _d.sent();
3506
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3507
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.getUserAgents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3508
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3509
+ }
3510
+ });
3511
+ });
3512
+ },
3513
+ };
3514
+ };
3515
+ exports.UserApiFp = UserApiFp;
3516
+ /**
3517
+ * UserApi - factory interface
3518
+ * @export
3519
+ */
3520
+ var UserApiFactory = function (configuration, basePath, axios) {
3521
+ var localVarFp = (0, exports.UserApiFp)(configuration);
3522
+ return {
3523
+ /**
3524
+ * Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
3525
+ * @summary Get User Agent By Id
3526
+ * @param {string} agentId Agent ID
3527
+ * @param {*} [options] Override http request option.
3528
+ * @throws {RequiredError}
3529
+ */
3530
+ getUserAgentById: function (agentId, options) {
3531
+ return localVarFp.getUserAgentById(agentId, options).then(function (request) { return request(axios, basePath); });
3532
+ },
3533
+ /**
3534
+ * Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
3535
+ * @summary Get User Agents
3536
+ * @param {string | null} [cursor] Cursor for pagination
3537
+ * @param {number} [limit] Maximum number of agents to return
3538
+ * @param {*} [options] Override http request option.
3539
+ * @throws {RequiredError}
3540
+ */
3541
+ getUserAgents: function (cursor, limit, options) {
3542
+ return localVarFp.getUserAgents(cursor, limit, options).then(function (request) { return request(axios, basePath); });
3543
+ },
3544
+ };
3545
+ };
3546
+ exports.UserApiFactory = UserApiFactory;
3547
+ /**
3548
+ * UserApi - object-oriented interface
3549
+ * @export
3550
+ * @class UserApi
3551
+ * @extends {BaseAPI}
3552
+ */
3553
+ var UserApi = /** @class */ (function (_super) {
3554
+ __extends(UserApi, _super);
3555
+ function UserApi() {
3556
+ return _super !== null && _super.apply(this, arguments) || this;
3557
+ }
3558
+ /**
3559
+ * Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
3560
+ * @summary Get User Agent By Id
3561
+ * @param {string} agentId Agent ID
3562
+ * @param {*} [options] Override http request option.
3563
+ * @throws {RequiredError}
3564
+ * @memberof UserApi
3565
+ */
3566
+ UserApi.prototype.getUserAgentById = function (agentId, options) {
3567
+ var _this = this;
3568
+ return (0, exports.UserApiFp)(this.configuration).getUserAgentById(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3569
+ };
3570
+ /**
3571
+ * Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
3572
+ * @summary Get User Agents
3573
+ * @param {string | null} [cursor] Cursor for pagination
3574
+ * @param {number} [limit] Maximum number of agents to return
3575
+ * @param {*} [options] Override http request option.
3576
+ * @throws {RequiredError}
3577
+ * @memberof UserApi
3578
+ */
3579
+ UserApi.prototype.getUserAgents = function (cursor, limit, options) {
3580
+ var _this = this;
3581
+ return (0, exports.UserApiFp)(this.configuration).getUserAgents(cursor, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
3582
+ };
3583
+ return UserApi;
3584
+ }(base_1.BaseAPI));
3585
+ exports.UserApi = UserApi;
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.1.21
5
+ * The version of the OpenAPI document: 0.1.23
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.1.21
8
+ * The version of the OpenAPI document: 0.1.23
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.1.21
5
+ * The version of the OpenAPI document: 0.1.23
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.1.21
8
+ * The version of the OpenAPI document: 0.1.23
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.1.21
5
+ * The version of the OpenAPI document: 0.1.23
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.1.21
8
+ * The version of the OpenAPI document: 0.1.23
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.1.21
5
+ * The version of the OpenAPI document: 0.1.23
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.1.21
8
+ * The version of the OpenAPI document: 0.1.23
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/Agent.md ADDED
@@ -0,0 +1,99 @@
1
+ # Agent
2
+
3
+ Agent model.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **name** | **string** | | [default to undefined]
10
+ **slug** | **string** | | [optional] [default to undefined]
11
+ **description** | **string** | | [optional] [default to undefined]
12
+ **external_website** | **string** | | [optional] [default to undefined]
13
+ **picture** | **string** | | [optional] [default to undefined]
14
+ **ticker** | **string** | | [optional] [default to undefined]
15
+ **token_address** | **string** | | [optional] [default to undefined]
16
+ **token_pool** | **string** | | [optional] [default to undefined]
17
+ **mode** | **string** | | [optional] [default to undefined]
18
+ **fee_percentage** | **string** | | [optional] [default to undefined]
19
+ **purpose** | **string** | | [default to undefined]
20
+ **personality** | **string** | | [default to undefined]
21
+ **principles** | **string** | | [default to undefined]
22
+ **owner** | **string** | | [optional] [default to undefined]
23
+ **upstream_id** | **string** | | [optional] [default to undefined]
24
+ **upstream_extra** | **object** | | [optional] [default to undefined]
25
+ **model** | **string** | AI model identifier to be used by this agent for processing requests. Available models: gpt-4o, gpt-4o-mini, deepseek-chat, deepseek-reasoner, grok-2, eternalai, reigent, venice-uncensored | [optional] [default to 'gpt-4.1-mini']
26
+ **prompt** | **string** | | [optional] [default to undefined]
27
+ **prompt_append** | **string** | | [optional] [default to undefined]
28
+ **temperature** | **number** | | [optional] [default to undefined]
29
+ **frequency_penalty** | **number** | | [optional] [default to undefined]
30
+ **presence_penalty** | **number** | | [optional] [default to undefined]
31
+ **short_term_memory_strategy** | **string** | | [optional] [default to undefined]
32
+ **autonomous** | [**Array&lt;AgentAutonomous&gt;**](AgentAutonomous.md) | | [optional] [default to undefined]
33
+ **example_intro** | **string** | | [optional] [default to undefined]
34
+ **examples** | [**Array&lt;AgentExample&gt;**](AgentExample.md) | | [optional] [default to undefined]
35
+ **skills** | **object** | | [optional] [default to undefined]
36
+ **wallet_provider** | **string** | | [optional] [default to undefined]
37
+ **network_id** | **string** | | [optional] [default to undefined]
38
+ **cdp_network_id** | **string** | | [optional] [default to undefined]
39
+ **twitter_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
40
+ **twitter_entrypoint_prompt** | **string** | | [optional] [default to undefined]
41
+ **twitter_config** | **object** | | [optional] [default to undefined]
42
+ **telegram_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
43
+ **telegram_entrypoint_prompt** | **string** | | [optional] [default to undefined]
44
+ **telegram_config** | **object** | | [optional] [default to undefined]
45
+ **id** | **string** | Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens | [optional] [default to undefined]
46
+ **number** | **number** | | [optional] [default to undefined]
47
+ **created_at** | **string** | Timestamp when the agent was created, will ignore when importing | [optional] [default to undefined]
48
+ **updated_at** | **string** | Timestamp when the agent was last updated, will ignore when importing | [optional] [default to undefined]
49
+
50
+ ## Example
51
+
52
+ ```typescript
53
+ import { Agent } from '@crestal/nation-sdk';
54
+
55
+ const instance: Agent = {
56
+ name,
57
+ slug,
58
+ description,
59
+ external_website,
60
+ picture,
61
+ ticker,
62
+ token_address,
63
+ token_pool,
64
+ mode,
65
+ fee_percentage,
66
+ purpose,
67
+ personality,
68
+ principles,
69
+ owner,
70
+ upstream_id,
71
+ upstream_extra,
72
+ model,
73
+ prompt,
74
+ prompt_append,
75
+ temperature,
76
+ frequency_penalty,
77
+ presence_penalty,
78
+ short_term_memory_strategy,
79
+ autonomous,
80
+ example_intro,
81
+ examples,
82
+ skills,
83
+ wallet_provider,
84
+ network_id,
85
+ cdp_network_id,
86
+ twitter_entrypoint_enabled,
87
+ twitter_entrypoint_prompt,
88
+ twitter_config,
89
+ telegram_entrypoint_enabled,
90
+ telegram_entrypoint_prompt,
91
+ telegram_config,
92
+ id,
93
+ number,
94
+ created_at,
95
+ updated_at,
96
+ };
97
+ ```
98
+
99
+ [[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-07-17T08:51:32.738+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-07-17T08:51:32.738+00:00]
30
+ **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-07-18T11:19:37.384+00:00]
31
+ **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-07-18T11:19:37.384+00:00]
32
32
  **provider_name** | **string** | | [default to undefined]
33
33
 
34
34
  ## Example
@@ -0,0 +1,116 @@
1
+ # UserApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getUserAgentById**](#getuseragentbyid) | **GET** /user/agents/{agent_id} | Get User Agent By Id|
8
+ |[**getUserAgents**](#getuseragents) | **GET** /user/agents | Get User Agents|
9
+
10
+ # **getUserAgentById**
11
+ > Agent getUserAgentById()
12
+
13
+ Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ UserApi,
20
+ Configuration
21
+ } from '@crestal/nation-sdk';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new UserApi(configuration);
25
+
26
+ let agentId: string; //Agent ID (default to undefined)
27
+
28
+ const { status, data } = await apiInstance.getUserAgentById(
29
+ agentId
30
+ );
31
+ ```
32
+
33
+ ### Parameters
34
+
35
+ |Name | Type | Description | Notes|
36
+ |------------- | ------------- | ------------- | -------------|
37
+ | **agentId** | [**string**] | Agent ID | defaults to undefined|
38
+
39
+
40
+ ### Return type
41
+
42
+ **Agent**
43
+
44
+ ### Authorization
45
+
46
+ [HTTPBearer](../README.md#HTTPBearer)
47
+
48
+ ### HTTP request headers
49
+
50
+ - **Content-Type**: Not defined
51
+ - **Accept**: application/json
52
+
53
+
54
+ ### HTTP response details
55
+ | Status code | Description | Response headers |
56
+ |-------------|-------------|------------------|
57
+ |**200** | Successful Response | - |
58
+ |**422** | Validation Error | - |
59
+
60
+ [[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)
61
+
62
+ # **getUserAgents**
63
+ > AgentListResponse getUserAgents()
64
+
65
+ Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
66
+
67
+ ### Example
68
+
69
+ ```typescript
70
+ import {
71
+ UserApi,
72
+ Configuration
73
+ } from '@crestal/nation-sdk';
74
+
75
+ const configuration = new Configuration();
76
+ const apiInstance = new UserApi(configuration);
77
+
78
+ let cursor: string; //Cursor for pagination (optional) (default to undefined)
79
+ let limit: number; //Maximum number of agents to return (optional) (default to 20)
80
+
81
+ const { status, data } = await apiInstance.getUserAgents(
82
+ cursor,
83
+ limit
84
+ );
85
+ ```
86
+
87
+ ### Parameters
88
+
89
+ |Name | Type | Description | Notes|
90
+ |------------- | ------------- | ------------- | -------------|
91
+ | **cursor** | [**string**] | Cursor for pagination | (optional) defaults to undefined|
92
+ | **limit** | [**number**] | Maximum number of agents to return | (optional) defaults to 20|
93
+
94
+
95
+ ### Return type
96
+
97
+ **AgentListResponse**
98
+
99
+ ### Authorization
100
+
101
+ [HTTPBearer](../README.md#HTTPBearer)
102
+
103
+ ### HTTP request headers
104
+
105
+ - **Content-Type**: Not defined
106
+ - **Accept**: application/json
107
+
108
+
109
+ ### HTTP response details
110
+ | Status code | Description | Response headers |
111
+ |-------------|-------------|------------------|
112
+ |**200** | Successful Response | - |
113
+ |**422** | Validation Error | - |
114
+
115
+ [[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)
116
+
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.1.21
7
+ * The version of the OpenAPI document: 0.1.23
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.1.21",
3
+ "version": "0.1.23",
4
4
  "description": "OpenAPI client for @crestal/nation-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {