@crestal/nation-sdk 0.7.16 → 0.7.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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @crestal/nation-sdk@0.7.16
1
+ ## @crestal/nation-sdk@0.7.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.7.16 --save
39
+ npm install @crestal/nation-sdk@0.7.17 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -64,6 +64,7 @@ Class | Method | HTTP request | Description
64
64
  *AgentApi* | [**overrideAgentPublicInfo**](docs/AgentApi.md#overrideagentpublicinfo) | **PUT** /agents/{agent_id}/public-info | Override Agent Public Information
65
65
  *AgentApi* | [**publishAgent**](docs/AgentApi.md#publishagent) | **POST** /agents/{agent_id}/publish | Publish Agent
66
66
  *AgentApi* | [**resetAgentApiKey**](docs/AgentApi.md#resetagentapikey) | **POST** /agents/{agent_id}/api-key/reset | Reset Agent API Key
67
+ *AgentApi* | [**unpublishAgent**](docs/AgentApi.md#unpublishagent) | **POST** /agents/{agent_id}/unpublish | Unpublish Agent
67
68
  *AgentApi* | [**validateAgentCreate**](docs/AgentApi.md#validateagentcreate) | **POST** /agent/validate | Validate Agent Create
68
69
  *AgentApi* | [**validateAgentUpdate**](docs/AgentApi.md#validateagentupdate) | **POST** /agents/{agent_id}/validate | Validate Agent Update
69
70
  *ChatApi* | [**clearChatThreadMemory**](docs/ChatApi.md#clearchatthreadmemory) | **POST** /agents/{aid}/chats/{chat_id}/clear | Clear chat thread short-term memory
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.7.16
7
+ * The version of the OpenAPI document: 0.7.17
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4196,6 +4196,44 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
4196
4196
 
4197
4197
 
4198
4198
 
4199
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4200
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4201
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4202
+
4203
+ return {
4204
+ url: toPathString(localVarUrlObj),
4205
+ options: localVarRequestOptions,
4206
+ };
4207
+ },
4208
+ /**
4209
+ * Unpublish an agent by setting its state back to private.
4210
+ * @summary Unpublish Agent
4211
+ * @param {string} agentId ID of the agent to unpublish
4212
+ * @param {*} [options] Override http request option.
4213
+ * @throws {RequiredError}
4214
+ */
4215
+ unpublishAgent: async (agentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4216
+ // verify required parameter 'agentId' is not null or undefined
4217
+ assertParamExists('unpublishAgent', 'agentId', agentId)
4218
+ const localVarPath = `/agents/{agent_id}/unpublish`
4219
+ .replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
4220
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4221
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4222
+ let baseOptions;
4223
+ if (configuration) {
4224
+ baseOptions = configuration.baseOptions;
4225
+ }
4226
+
4227
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4228
+ const localVarHeaderParameter = {} as any;
4229
+ const localVarQueryParameter = {} as any;
4230
+
4231
+ // authentication HTTPBearer required
4232
+ // http bearer authentication required
4233
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4234
+
4235
+
4236
+
4199
4237
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4200
4238
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4201
4239
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -4472,6 +4510,19 @@ export const AgentApiFp = function(configuration?: Configuration) {
4472
4510
  const localVarOperationServerBasePath = operationServerMap['AgentApi.resetAgentApiKey']?.[localVarOperationServerIndex]?.url;
4473
4511
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4474
4512
  },
4513
+ /**
4514
+ * Unpublish an agent by setting its state back to private.
4515
+ * @summary Unpublish Agent
4516
+ * @param {string} agentId ID of the agent to unpublish
4517
+ * @param {*} [options] Override http request option.
4518
+ * @throws {RequiredError}
4519
+ */
4520
+ async unpublishAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>> {
4521
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unpublishAgent(agentId, options);
4522
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4523
+ const localVarOperationServerBasePath = operationServerMap['AgentApi.unpublishAgent']?.[localVarOperationServerIndex]?.url;
4524
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4525
+ },
4475
4526
  /**
4476
4527
  * Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
4477
4528
  * @summary Validate Agent Create
@@ -4647,6 +4698,16 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
4647
4698
  resetAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentApiKeyResponse> {
4648
4699
  return localVarFp.resetAgentApiKey(agentId, options).then((request) => request(axios, basePath));
4649
4700
  },
4701
+ /**
4702
+ * Unpublish an agent by setting its state back to private.
4703
+ * @summary Unpublish Agent
4704
+ * @param {string} agentId ID of the agent to unpublish
4705
+ * @param {*} [options] Override http request option.
4706
+ * @throws {RequiredError}
4707
+ */
4708
+ unpublishAgent(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<Agent> {
4709
+ return localVarFp.unpublishAgent(agentId, options).then((request) => request(axios, basePath));
4710
+ },
4650
4711
  /**
4651
4712
  * Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
4652
4713
  * @summary Validate Agent Create
@@ -4842,6 +4903,18 @@ export class AgentApi extends BaseAPI {
4842
4903
  return AgentApiFp(this.configuration).resetAgentApiKey(agentId, options).then((request) => request(this.axios, this.basePath));
4843
4904
  }
4844
4905
 
4906
+ /**
4907
+ * Unpublish an agent by setting its state back to private.
4908
+ * @summary Unpublish Agent
4909
+ * @param {string} agentId ID of the agent to unpublish
4910
+ * @param {*} [options] Override http request option.
4911
+ * @throws {RequiredError}
4912
+ * @memberof AgentApi
4913
+ */
4914
+ public unpublishAgent(agentId: string, options?: RawAxiosRequestConfig) {
4915
+ return AgentApiFp(this.configuration).unpublishAgent(agentId, options).then((request) => request(this.axios, this.basePath));
4916
+ }
4917
+
4845
4918
  /**
4846
4919
  * Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
4847
4920
  * @summary Validate Agent Create
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.7.16
7
+ * The version of the OpenAPI document: 0.7.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.7.16
7
+ * The version of the OpenAPI document: 0.7.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.7.16
7
+ * The version of the OpenAPI document: 0.7.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.7.16
5
+ * The version of the OpenAPI document: 0.7.17
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3688,6 +3688,14 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
3688
3688
  * @throws {RequiredError}
3689
3689
  */
3690
3690
  resetAgentApiKey: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3691
+ /**
3692
+ * Unpublish an agent by setting its state back to private.
3693
+ * @summary Unpublish Agent
3694
+ * @param {string} agentId ID of the agent to unpublish
3695
+ * @param {*} [options] Override http request option.
3696
+ * @throws {RequiredError}
3697
+ */
3698
+ unpublishAgent: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3691
3699
  /**
3692
3700
  * Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
3693
3701
  * @summary Validate Agent Create
@@ -3823,6 +3831,14 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
3823
3831
  * @throws {RequiredError}
3824
3832
  */
3825
3833
  resetAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentApiKeyResponse>>;
3834
+ /**
3835
+ * Unpublish an agent by setting its state back to private.
3836
+ * @summary Unpublish Agent
3837
+ * @param {string} agentId ID of the agent to unpublish
3838
+ * @param {*} [options] Override http request option.
3839
+ * @throws {RequiredError}
3840
+ */
3841
+ unpublishAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>>;
3826
3842
  /**
3827
3843
  * Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
3828
3844
  * @summary Validate Agent Create
@@ -3958,6 +3974,14 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
3958
3974
  * @throws {RequiredError}
3959
3975
  */
3960
3976
  resetAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentApiKeyResponse>;
3977
+ /**
3978
+ * Unpublish an agent by setting its state back to private.
3979
+ * @summary Unpublish Agent
3980
+ * @param {string} agentId ID of the agent to unpublish
3981
+ * @param {*} [options] Override http request option.
3982
+ * @throws {RequiredError}
3983
+ */
3984
+ unpublishAgent(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<Agent>;
3961
3985
  /**
3962
3986
  * Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
3963
3987
  * @summary Validate Agent Create
@@ -4108,6 +4132,15 @@ export declare class AgentApi extends BaseAPI {
4108
4132
  * @memberof AgentApi
4109
4133
  */
4110
4134
  resetAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentApiKeyResponse, any, {}>>;
4135
+ /**
4136
+ * Unpublish an agent by setting its state back to private.
4137
+ * @summary Unpublish Agent
4138
+ * @param {string} agentId ID of the agent to unpublish
4139
+ * @param {*} [options] Override http request option.
4140
+ * @throws {RequiredError}
4141
+ * @memberof AgentApi
4142
+ */
4143
+ unpublishAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Agent, any, {}>>;
4111
4144
  /**
4112
4145
  * Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
4113
4146
  * @summary Validate Agent Create
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.7.16
8
+ * The version of the OpenAPI document: 0.7.17
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -996,6 +996,53 @@ var AgentApiAxiosParamCreator = function (configuration) {
996
996
  });
997
997
  });
998
998
  },
999
+ /**
1000
+ * Unpublish an agent by setting its state back to private.
1001
+ * @summary Unpublish Agent
1002
+ * @param {string} agentId ID of the agent to unpublish
1003
+ * @param {*} [options] Override http request option.
1004
+ * @throws {RequiredError}
1005
+ */
1006
+ unpublishAgent: function (agentId_1) {
1007
+ var args_1 = [];
1008
+ for (var _i = 1; _i < arguments.length; _i++) {
1009
+ args_1[_i - 1] = arguments[_i];
1010
+ }
1011
+ return __awaiter(_this, __spreadArray([agentId_1], args_1, true), void 0, function (agentId, options) {
1012
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1013
+ if (options === void 0) { options = {}; }
1014
+ return __generator(this, function (_a) {
1015
+ switch (_a.label) {
1016
+ case 0:
1017
+ // verify required parameter 'agentId' is not null or undefined
1018
+ (0, common_1.assertParamExists)('unpublishAgent', 'agentId', agentId);
1019
+ localVarPath = "/agents/{agent_id}/unpublish"
1020
+ .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
1021
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1022
+ if (configuration) {
1023
+ baseOptions = configuration.baseOptions;
1024
+ }
1025
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1026
+ localVarHeaderParameter = {};
1027
+ localVarQueryParameter = {};
1028
+ // authentication HTTPBearer required
1029
+ // http bearer authentication required
1030
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
1031
+ case 1:
1032
+ // authentication HTTPBearer required
1033
+ // http bearer authentication required
1034
+ _a.sent();
1035
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1036
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1037
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1038
+ return [2 /*return*/, {
1039
+ url: (0, common_1.toPathString)(localVarUrlObj),
1040
+ options: localVarRequestOptions,
1041
+ }];
1042
+ }
1043
+ });
1044
+ });
1045
+ },
999
1046
  /**
1000
1047
  * Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
1001
1048
  * @summary Validate Agent Create
@@ -1409,6 +1456,29 @@ var AgentApiFp = function (configuration) {
1409
1456
  });
1410
1457
  });
1411
1458
  },
1459
+ /**
1460
+ * Unpublish an agent by setting its state back to private.
1461
+ * @summary Unpublish Agent
1462
+ * @param {string} agentId ID of the agent to unpublish
1463
+ * @param {*} [options] Override http request option.
1464
+ * @throws {RequiredError}
1465
+ */
1466
+ unpublishAgent: function (agentId, options) {
1467
+ return __awaiter(this, void 0, void 0, function () {
1468
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1469
+ var _a, _b, _c;
1470
+ return __generator(this, function (_d) {
1471
+ switch (_d.label) {
1472
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.unpublishAgent(agentId, options)];
1473
+ case 1:
1474
+ localVarAxiosArgs = _d.sent();
1475
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1476
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.unpublishAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1477
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1478
+ }
1479
+ });
1480
+ });
1481
+ },
1412
1482
  /**
1413
1483
  * Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
1414
1484
  * @summary Validate Agent Create
@@ -1604,6 +1674,16 @@ var AgentApiFactory = function (configuration, basePath, axios) {
1604
1674
  resetAgentApiKey: function (agentId, options) {
1605
1675
  return localVarFp.resetAgentApiKey(agentId, options).then(function (request) { return request(axios, basePath); });
1606
1676
  },
1677
+ /**
1678
+ * Unpublish an agent by setting its state back to private.
1679
+ * @summary Unpublish Agent
1680
+ * @param {string} agentId ID of the agent to unpublish
1681
+ * @param {*} [options] Override http request option.
1682
+ * @throws {RequiredError}
1683
+ */
1684
+ unpublishAgent: function (agentId, options) {
1685
+ return localVarFp.unpublishAgent(agentId, options).then(function (request) { return request(axios, basePath); });
1686
+ },
1607
1687
  /**
1608
1688
  * Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
1609
1689
  * @summary Validate Agent Create
@@ -1803,6 +1883,18 @@ var AgentApi = /** @class */ (function (_super) {
1803
1883
  var _this = this;
1804
1884
  return (0, exports.AgentApiFp)(this.configuration).resetAgentApiKey(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1805
1885
  };
1886
+ /**
1887
+ * Unpublish an agent by setting its state back to private.
1888
+ * @summary Unpublish Agent
1889
+ * @param {string} agentId ID of the agent to unpublish
1890
+ * @param {*} [options] Override http request option.
1891
+ * @throws {RequiredError}
1892
+ * @memberof AgentApi
1893
+ */
1894
+ AgentApi.prototype.unpublishAgent = function (agentId, options) {
1895
+ var _this = this;
1896
+ return (0, exports.AgentApiFp)(this.configuration).unpublishAgent(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1897
+ };
1806
1898
  /**
1807
1899
  * Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core or JSON schema validation - 500: Server error
1808
1900
  * @summary Validate Agent Create
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.7.16
5
+ * The version of the OpenAPI document: 0.7.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.7.16
8
+ * The version of the OpenAPI document: 0.7.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.7.16
5
+ * The version of the OpenAPI document: 0.7.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.7.16
8
+ * The version of the OpenAPI document: 0.7.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.7.16
5
+ * The version of the OpenAPI document: 0.7.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.7.16
8
+ * The version of the OpenAPI document: 0.7.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.7.16
5
+ * The version of the OpenAPI document: 0.7.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.7.16
8
+ * The version of the OpenAPI document: 0.7.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
@@ -17,6 +17,7 @@ All URIs are relative to *http://localhost*
17
17
  |[**overrideAgentPublicInfo**](#overrideagentpublicinfo) | **PUT** /agents/{agent_id}/public-info | Override Agent Public Information|
18
18
  |[**publishAgent**](#publishagent) | **POST** /agents/{agent_id}/publish | Publish Agent|
19
19
  |[**resetAgentApiKey**](#resetagentapikey) | **POST** /agents/{agent_id}/api-key/reset | Reset Agent API Key|
20
+ |[**unpublishAgent**](#unpublishagent) | **POST** /agents/{agent_id}/unpublish | Unpublish Agent|
20
21
  |[**validateAgentCreate**](#validateagentcreate) | **POST** /agent/validate | Validate Agent Create|
21
22
  |[**validateAgentUpdate**](#validateagentupdate) | **POST** /agents/{agent_id}/validate | Validate Agent Update|
22
23
 
@@ -732,6 +733,58 @@ const { status, data } = await apiInstance.resetAgentApiKey(
732
733
 
733
734
  [[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)
734
735
 
736
+ # **unpublishAgent**
737
+ > Agent unpublishAgent()
738
+
739
+ Unpublish an agent by setting its state back to private.
740
+
741
+ ### Example
742
+
743
+ ```typescript
744
+ import {
745
+ AgentApi,
746
+ Configuration
747
+ } from '@crestal/nation-sdk';
748
+
749
+ const configuration = new Configuration();
750
+ const apiInstance = new AgentApi(configuration);
751
+
752
+ let agentId: string; //ID of the agent to unpublish (default to undefined)
753
+
754
+ const { status, data } = await apiInstance.unpublishAgent(
755
+ agentId
756
+ );
757
+ ```
758
+
759
+ ### Parameters
760
+
761
+ |Name | Type | Description | Notes|
762
+ |------------- | ------------- | ------------- | -------------|
763
+ | **agentId** | [**string**] | ID of the agent to unpublish | defaults to undefined|
764
+
765
+
766
+ ### Return type
767
+
768
+ **Agent**
769
+
770
+ ### Authorization
771
+
772
+ [HTTPBearer](../README.md#HTTPBearer)
773
+
774
+ ### HTTP request headers
775
+
776
+ - **Content-Type**: Not defined
777
+ - **Accept**: application/json
778
+
779
+
780
+ ### HTTP response details
781
+ | Status code | Description | Response headers |
782
+ |-------------|-------------|------------------|
783
+ |**200** | Successful Response | - |
784
+ |**422** | Validation Error | - |
785
+
786
+ [[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)
787
+
735
788
  # **validateAgentCreate**
736
789
  > validateAgentCreate()
737
790
 
@@ -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-09-25T18:28:53.403+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-09-25T18:28:53.403+00:00]
30
+ **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-09-26T05:14:33.854+00:00]
31
+ **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-09-26T05:14:33.854+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.7.16
7
+ * The version of the OpenAPI document: 0.7.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.7.16",
3
+ "version": "0.7.17",
4
4
  "description": "OpenAPI client for @crestal/nation-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {