@crestal/nation-sdk 0.7.12 → 0.7.14

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.7.12
8
+ * The version of the OpenAPI document: 0.7.14
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -852,6 +852,103 @@ var AgentApiAxiosParamCreator = function (configuration) {
852
852
  });
853
853
  });
854
854
  },
855
+ /**
856
+ * Override agent public information with the provided values.
857
+ * @summary Override Agent Public Information
858
+ * @param {string} agentId ID of the agent to update
859
+ * @param {AgentPublicInfo} [agentPublicInfo]
860
+ * @param {*} [options] Override http request option.
861
+ * @throws {RequiredError}
862
+ */
863
+ overrideAgentPublicInfo: function (agentId_1, agentPublicInfo_1) {
864
+ var args_1 = [];
865
+ for (var _i = 2; _i < arguments.length; _i++) {
866
+ args_1[_i - 2] = arguments[_i];
867
+ }
868
+ return __awaiter(_this, __spreadArray([agentId_1, agentPublicInfo_1], args_1, true), void 0, function (agentId, agentPublicInfo, options) {
869
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
870
+ if (options === void 0) { options = {}; }
871
+ return __generator(this, function (_a) {
872
+ switch (_a.label) {
873
+ case 0:
874
+ // verify required parameter 'agentId' is not null or undefined
875
+ (0, common_1.assertParamExists)('overrideAgentPublicInfo', 'agentId', agentId);
876
+ localVarPath = "/agents/{agent_id}/public-info"
877
+ .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
878
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
879
+ if (configuration) {
880
+ baseOptions = configuration.baseOptions;
881
+ }
882
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
883
+ localVarHeaderParameter = {};
884
+ localVarQueryParameter = {};
885
+ // authentication HTTPBearer required
886
+ // http bearer authentication required
887
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
888
+ case 1:
889
+ // authentication HTTPBearer required
890
+ // http bearer authentication required
891
+ _a.sent();
892
+ localVarHeaderParameter['Content-Type'] = 'application/json';
893
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
894
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
895
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
896
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(agentPublicInfo, localVarRequestOptions, configuration);
897
+ return [2 /*return*/, {
898
+ url: (0, common_1.toPathString)(localVarUrlObj),
899
+ options: localVarRequestOptions,
900
+ }];
901
+ }
902
+ });
903
+ });
904
+ },
905
+ /**
906
+ * Publish an agent if its public information passes strict validation.
907
+ * @summary Publish Agent
908
+ * @param {string} agentId ID of the agent to publish
909
+ * @param {*} [options] Override http request option.
910
+ * @throws {RequiredError}
911
+ */
912
+ publishAgent: function (agentId_1) {
913
+ var args_1 = [];
914
+ for (var _i = 1; _i < arguments.length; _i++) {
915
+ args_1[_i - 1] = arguments[_i];
916
+ }
917
+ return __awaiter(_this, __spreadArray([agentId_1], args_1, true), void 0, function (agentId, options) {
918
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
919
+ if (options === void 0) { options = {}; }
920
+ return __generator(this, function (_a) {
921
+ switch (_a.label) {
922
+ case 0:
923
+ // verify required parameter 'agentId' is not null or undefined
924
+ (0, common_1.assertParamExists)('publishAgent', 'agentId', agentId);
925
+ localVarPath = "/agents/{agent_id}/publish"
926
+ .replace("{".concat("agent_id", "}"), encodeURIComponent(String(agentId)));
927
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
928
+ if (configuration) {
929
+ baseOptions = configuration.baseOptions;
930
+ }
931
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
932
+ localVarHeaderParameter = {};
933
+ localVarQueryParameter = {};
934
+ // authentication HTTPBearer required
935
+ // http bearer authentication required
936
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
937
+ case 1:
938
+ // authentication HTTPBearer required
939
+ // http bearer authentication required
940
+ _a.sent();
941
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
942
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
943
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
944
+ return [2 /*return*/, {
945
+ url: (0, common_1.toPathString)(localVarUrlObj),
946
+ options: localVarRequestOptions,
947
+ }];
948
+ }
949
+ });
950
+ });
951
+ },
855
952
  /**
856
953
  * Reset (regenerate) the API keys for an agent. Generates new private (sk-) and public (pk-) API keys for the agent, revoking any existing keys. Private API key can access all skills (public and owner-only). Public API key can only access public skills. **Path Parameters:** * `agent_id` - ID of the agent **Returns:** * `AgentApiKeyResponse` - New API key information including private key, public key, and API documentation URLs **Raises:** * `HTTPException`: - 403: Not authorized to access this agent - 404: Agent not found - 500: Database error
857
954
  * @summary Reset Agent API Key
@@ -1242,6 +1339,53 @@ var AgentApiFp = function (configuration) {
1242
1339
  });
1243
1340
  });
1244
1341
  },
1342
+ /**
1343
+ * Override agent public information with the provided values.
1344
+ * @summary Override Agent Public Information
1345
+ * @param {string} agentId ID of the agent to update
1346
+ * @param {AgentPublicInfo} [agentPublicInfo]
1347
+ * @param {*} [options] Override http request option.
1348
+ * @throws {RequiredError}
1349
+ */
1350
+ overrideAgentPublicInfo: function (agentId, agentPublicInfo, options) {
1351
+ return __awaiter(this, void 0, void 0, function () {
1352
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1353
+ var _a, _b, _c;
1354
+ return __generator(this, function (_d) {
1355
+ switch (_d.label) {
1356
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.overrideAgentPublicInfo(agentId, agentPublicInfo, options)];
1357
+ case 1:
1358
+ localVarAxiosArgs = _d.sent();
1359
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1360
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.overrideAgentPublicInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1361
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1362
+ }
1363
+ });
1364
+ });
1365
+ },
1366
+ /**
1367
+ * Publish an agent if its public information passes strict validation.
1368
+ * @summary Publish Agent
1369
+ * @param {string} agentId ID of the agent to publish
1370
+ * @param {*} [options] Override http request option.
1371
+ * @throws {RequiredError}
1372
+ */
1373
+ publishAgent: function (agentId, options) {
1374
+ return __awaiter(this, void 0, void 0, function () {
1375
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1376
+ var _a, _b, _c;
1377
+ return __generator(this, function (_d) {
1378
+ switch (_d.label) {
1379
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.publishAgent(agentId, options)];
1380
+ case 1:
1381
+ localVarAxiosArgs = _d.sent();
1382
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1383
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.publishAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1384
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1385
+ }
1386
+ });
1387
+ });
1388
+ },
1245
1389
  /**
1246
1390
  * Reset (regenerate) the API keys for an agent. Generates new private (sk-) and public (pk-) API keys for the agent, revoking any existing keys. Private API key can access all skills (public and owner-only). Public API key can only access public skills. **Path Parameters:** * `agent_id` - ID of the agent **Returns:** * `AgentApiKeyResponse` - New API key information including private key, public key, and API documentation URLs **Raises:** * `HTTPException`: - 403: Not authorized to access this agent - 404: Agent not found - 500: Database error
1247
1391
  * @summary Reset Agent API Key
@@ -1429,6 +1573,27 @@ var AgentApiFactory = function (configuration, basePath, axios) {
1429
1573
  overrideAgent: function (agentId, agentUpdate, options) {
1430
1574
  return localVarFp.overrideAgent(agentId, agentUpdate, options).then(function (request) { return request(axios, basePath); });
1431
1575
  },
1576
+ /**
1577
+ * Override agent public information with the provided values.
1578
+ * @summary Override Agent Public Information
1579
+ * @param {string} agentId ID of the agent to update
1580
+ * @param {AgentPublicInfo} [agentPublicInfo]
1581
+ * @param {*} [options] Override http request option.
1582
+ * @throws {RequiredError}
1583
+ */
1584
+ overrideAgentPublicInfo: function (agentId, agentPublicInfo, options) {
1585
+ return localVarFp.overrideAgentPublicInfo(agentId, agentPublicInfo, options).then(function (request) { return request(axios, basePath); });
1586
+ },
1587
+ /**
1588
+ * Publish an agent if its public information passes strict validation.
1589
+ * @summary Publish Agent
1590
+ * @param {string} agentId ID of the agent to publish
1591
+ * @param {*} [options] Override http request option.
1592
+ * @throws {RequiredError}
1593
+ */
1594
+ publishAgent: function (agentId, options) {
1595
+ return localVarFp.publishAgent(agentId, options).then(function (request) { return request(axios, basePath); });
1596
+ },
1432
1597
  /**
1433
1598
  * Reset (regenerate) the API keys for an agent. Generates new private (sk-) and public (pk-) API keys for the agent, revoking any existing keys. Private API key can access all skills (public and owner-only). Public API key can only access public skills. **Path Parameters:** * `agent_id` - ID of the agent **Returns:** * `AgentApiKeyResponse` - New API key information including private key, public key, and API documentation URLs **Raises:** * `HTTPException`: - 403: Not authorized to access this agent - 404: Agent not found - 500: Database error
1434
1599
  * @summary Reset Agent API Key
@@ -1601,6 +1766,31 @@ var AgentApi = /** @class */ (function (_super) {
1601
1766
  var _this = this;
1602
1767
  return (0, exports.AgentApiFp)(this.configuration).overrideAgent(agentId, agentUpdate, options).then(function (request) { return request(_this.axios, _this.basePath); });
1603
1768
  };
1769
+ /**
1770
+ * Override agent public information with the provided values.
1771
+ * @summary Override Agent Public Information
1772
+ * @param {string} agentId ID of the agent to update
1773
+ * @param {AgentPublicInfo} [agentPublicInfo]
1774
+ * @param {*} [options] Override http request option.
1775
+ * @throws {RequiredError}
1776
+ * @memberof AgentApi
1777
+ */
1778
+ AgentApi.prototype.overrideAgentPublicInfo = function (agentId, agentPublicInfo, options) {
1779
+ var _this = this;
1780
+ return (0, exports.AgentApiFp)(this.configuration).overrideAgentPublicInfo(agentId, agentPublicInfo, options).then(function (request) { return request(_this.axios, _this.basePath); });
1781
+ };
1782
+ /**
1783
+ * Publish an agent if its public information passes strict validation.
1784
+ * @summary Publish Agent
1785
+ * @param {string} agentId ID of the agent to publish
1786
+ * @param {*} [options] Override http request option.
1787
+ * @throws {RequiredError}
1788
+ * @memberof AgentApi
1789
+ */
1790
+ AgentApi.prototype.publishAgent = function (agentId, options) {
1791
+ var _this = this;
1792
+ return (0, exports.AgentApiFp)(this.configuration).publishAgent(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1793
+ };
1604
1794
  /**
1605
1795
  * Reset (regenerate) the API keys for an agent. Generates new private (sk-) and public (pk-) API keys for the agent, revoking any existing keys. Private API key can access all skills (public and owner-only). Public API key can only access public skills. **Path Parameters:** * `agent_id` - ID of the agent **Returns:** * `AgentApiKeyResponse` - New API key information including private key, public key, and API documentation URLs **Raises:** * `HTTPException`: - 403: Not authorized to access this agent - 404: Agent not found - 500: Database error
1606
1796
  * @summary Reset Agent API Key
@@ -4488,6 +4678,92 @@ exports.HealthApi = HealthApi;
4488
4678
  var MetadataApiAxiosParamCreator = function (configuration) {
4489
4679
  var _this = this;
4490
4680
  return {
4681
+ /**
4682
+ * Get the JSON schema for AgentPublicInfo with custom adjustments
4683
+ * @summary Get public agent schema
4684
+ * @param {*} [options] Override http request option.
4685
+ * @throws {RequiredError}
4686
+ */
4687
+ getAgentPublicSchema: function () {
4688
+ var args_1 = [];
4689
+ for (var _i = 0; _i < arguments.length; _i++) {
4690
+ args_1[_i] = arguments[_i];
4691
+ }
4692
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
4693
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4694
+ if (options === void 0) { options = {}; }
4695
+ return __generator(this, function (_a) {
4696
+ switch (_a.label) {
4697
+ case 0:
4698
+ localVarPath = "/metadata/agent/public.json";
4699
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4700
+ if (configuration) {
4701
+ baseOptions = configuration.baseOptions;
4702
+ }
4703
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
4704
+ localVarHeaderParameter = {};
4705
+ localVarQueryParameter = {};
4706
+ // authentication HTTPBearer required
4707
+ // http bearer authentication required
4708
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
4709
+ case 1:
4710
+ // authentication HTTPBearer required
4711
+ // http bearer authentication required
4712
+ _a.sent();
4713
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4714
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4715
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4716
+ return [2 /*return*/, {
4717
+ url: (0, common_1.toPathString)(localVarUrlObj),
4718
+ options: localVarRequestOptions,
4719
+ }];
4720
+ }
4721
+ });
4722
+ });
4723
+ },
4724
+ /**
4725
+ * Get the JSON schema for AgentPublicInfo with strict field requirements
4726
+ * @summary Get strict public agent schema
4727
+ * @param {*} [options] Override http request option.
4728
+ * @throws {RequiredError}
4729
+ */
4730
+ getAgentPublicStrictSchema: function () {
4731
+ var args_1 = [];
4732
+ for (var _i = 0; _i < arguments.length; _i++) {
4733
+ args_1[_i] = arguments[_i];
4734
+ }
4735
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
4736
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4737
+ if (options === void 0) { options = {}; }
4738
+ return __generator(this, function (_a) {
4739
+ switch (_a.label) {
4740
+ case 0:
4741
+ localVarPath = "/metadata/agent/public-strict.json";
4742
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4743
+ if (configuration) {
4744
+ baseOptions = configuration.baseOptions;
4745
+ }
4746
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
4747
+ localVarHeaderParameter = {};
4748
+ localVarQueryParameter = {};
4749
+ // authentication HTTPBearer required
4750
+ // http bearer authentication required
4751
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
4752
+ case 1:
4753
+ // authentication HTTPBearer required
4754
+ // http bearer authentication required
4755
+ _a.sent();
4756
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4757
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4758
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4759
+ return [2 /*return*/, {
4760
+ url: (0, common_1.toPathString)(localVarUrlObj),
4761
+ options: localVarRequestOptions,
4762
+ }];
4763
+ }
4764
+ });
4765
+ });
4766
+ },
4491
4767
  /**
4492
4768
  * Get the JSON schema for Agent model with all $ref references resolved
4493
4769
  * @summary Get agent schema
@@ -4679,6 +4955,50 @@ exports.MetadataApiAxiosParamCreator = MetadataApiAxiosParamCreator;
4679
4955
  var MetadataApiFp = function (configuration) {
4680
4956
  var localVarAxiosParamCreator = (0, exports.MetadataApiAxiosParamCreator)(configuration);
4681
4957
  return {
4958
+ /**
4959
+ * Get the JSON schema for AgentPublicInfo with custom adjustments
4960
+ * @summary Get public agent schema
4961
+ * @param {*} [options] Override http request option.
4962
+ * @throws {RequiredError}
4963
+ */
4964
+ getAgentPublicSchema: function (options) {
4965
+ return __awaiter(this, void 0, void 0, function () {
4966
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
4967
+ var _a, _b, _c;
4968
+ return __generator(this, function (_d) {
4969
+ switch (_d.label) {
4970
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgentPublicSchema(options)];
4971
+ case 1:
4972
+ localVarAxiosArgs = _d.sent();
4973
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4974
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetadataApi.getAgentPublicSchema']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4975
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
4976
+ }
4977
+ });
4978
+ });
4979
+ },
4980
+ /**
4981
+ * Get the JSON schema for AgentPublicInfo with strict field requirements
4982
+ * @summary Get strict public agent schema
4983
+ * @param {*} [options] Override http request option.
4984
+ * @throws {RequiredError}
4985
+ */
4986
+ getAgentPublicStrictSchema: function (options) {
4987
+ return __awaiter(this, void 0, void 0, function () {
4988
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
4989
+ var _a, _b, _c;
4990
+ return __generator(this, function (_d) {
4991
+ switch (_d.label) {
4992
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgentPublicStrictSchema(options)];
4993
+ case 1:
4994
+ localVarAxiosArgs = _d.sent();
4995
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4996
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetadataApi.getAgentPublicStrictSchema']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4997
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
4998
+ }
4999
+ });
5000
+ });
5001
+ },
4682
5002
  /**
4683
5003
  * Get the JSON schema for Agent model with all $ref references resolved
4684
5004
  * @summary Get agent schema
@@ -4803,6 +5123,24 @@ exports.MetadataApiFp = MetadataApiFp;
4803
5123
  var MetadataApiFactory = function (configuration, basePath, axios) {
4804
5124
  var localVarFp = (0, exports.MetadataApiFp)(configuration);
4805
5125
  return {
5126
+ /**
5127
+ * Get the JSON schema for AgentPublicInfo with custom adjustments
5128
+ * @summary Get public agent schema
5129
+ * @param {*} [options] Override http request option.
5130
+ * @throws {RequiredError}
5131
+ */
5132
+ getAgentPublicSchema: function (options) {
5133
+ return localVarFp.getAgentPublicSchema(options).then(function (request) { return request(axios, basePath); });
5134
+ },
5135
+ /**
5136
+ * Get the JSON schema for AgentPublicInfo with strict field requirements
5137
+ * @summary Get strict public agent schema
5138
+ * @param {*} [options] Override http request option.
5139
+ * @throws {RequiredError}
5140
+ */
5141
+ getAgentPublicStrictSchema: function (options) {
5142
+ return localVarFp.getAgentPublicStrictSchema(options).then(function (request) { return request(axios, basePath); });
5143
+ },
4806
5144
  /**
4807
5145
  * Get the JSON schema for Agent model with all $ref references resolved
4808
5146
  * @summary Get agent schema
@@ -4866,6 +5204,28 @@ var MetadataApi = /** @class */ (function (_super) {
4866
5204
  function MetadataApi() {
4867
5205
  return _super !== null && _super.apply(this, arguments) || this;
4868
5206
  }
5207
+ /**
5208
+ * Get the JSON schema for AgentPublicInfo with custom adjustments
5209
+ * @summary Get public agent schema
5210
+ * @param {*} [options] Override http request option.
5211
+ * @throws {RequiredError}
5212
+ * @memberof MetadataApi
5213
+ */
5214
+ MetadataApi.prototype.getAgentPublicSchema = function (options) {
5215
+ var _this = this;
5216
+ return (0, exports.MetadataApiFp)(this.configuration).getAgentPublicSchema(options).then(function (request) { return request(_this.axios, _this.basePath); });
5217
+ };
5218
+ /**
5219
+ * Get the JSON schema for AgentPublicInfo with strict field requirements
5220
+ * @summary Get strict public agent schema
5221
+ * @param {*} [options] Override http request option.
5222
+ * @throws {RequiredError}
5223
+ * @memberof MetadataApi
5224
+ */
5225
+ MetadataApi.prototype.getAgentPublicStrictSchema = function (options) {
5226
+ var _this = this;
5227
+ return (0, exports.MetadataApiFp)(this.configuration).getAgentPublicStrictSchema(options).then(function (request) { return request(_this.axios, _this.basePath); });
5228
+ };
4869
5229
  /**
4870
5230
  * Get the JSON schema for Agent model with all $ref references resolved
4871
5231
  * @summary Get agent schema
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.12
5
+ * The version of the OpenAPI document: 0.7.14
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.12
8
+ * The version of the OpenAPI document: 0.7.14
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.12
5
+ * The version of the OpenAPI document: 0.7.14
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.12
8
+ * The version of the OpenAPI document: 0.7.14
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.12
5
+ * The version of the OpenAPI document: 0.7.14
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.12
8
+ * The version of the OpenAPI document: 0.7.14
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.12
5
+ * The version of the OpenAPI document: 0.7.14
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.12
8
+ * The version of the OpenAPI document: 0.7.14
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/Agent.md CHANGED
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
14
14
  **fee_percentage** | **string** | | [optional] [default to undefined]
15
15
  **example_intro** | **string** | | [optional] [default to undefined]
16
16
  **examples** | [**Array&lt;AgentExample&gt;**](AgentExample.md) | | [optional] [default to undefined]
17
+ **public_extra** | **object** | | [optional] [default to undefined]
17
18
  **name** | **string** | | [default to undefined]
18
19
  **picture** | **string** | | [optional] [default to undefined]
19
20
  **purpose** | **string** | | [optional] [default to undefined]
@@ -45,6 +46,8 @@ Name | Type | Description | Notes
45
46
  **assets** | **object** | | [optional] [default to undefined]
46
47
  **account_snapshot** | [**CreditAccount**](CreditAccount.md) | | [optional] [default to undefined]
47
48
  **extra** | **object** | | [optional] [default to undefined]
49
+ **deployed_at** | **string** | | [optional] [default to undefined]
50
+ **public_info_updated_at** | **string** | | [optional] [default to undefined]
48
51
  **created_at** | **string** | Timestamp when the agent was created, will ignore when importing | [optional] [default to undefined]
49
52
  **updated_at** | **string** | Timestamp when the agent was last updated, will ignore when importing | [optional] [default to undefined]
50
53
 
@@ -62,6 +65,7 @@ const instance: Agent = {
62
65
  fee_percentage,
63
66
  example_intro,
64
67
  examples,
68
+ public_extra,
65
69
  name,
66
70
  picture,
67
71
  purpose,
@@ -93,6 +97,8 @@ const instance: Agent = {
93
97
  assets,
94
98
  account_snapshot,
95
99
  extra,
100
+ deployed_at,
101
+ public_info_updated_at,
96
102
  created_at,
97
103
  updated_at,
98
104
  };
package/docs/AgentApi.md CHANGED
@@ -14,6 +14,8 @@ All URIs are relative to *http://localhost*
14
14
  |[**getSkillHistory**](#getskillhistory) | **GET** /agents/{aid}/skill/history | Skill History|
15
15
  |[**importAgent**](#importagent) | **PUT** /agents/{agent_id}/import | Import Agent|
16
16
  |[**overrideAgent**](#overrideagent) | **PUT** /agents/{agent_id} | Override Agent|
17
+ |[**overrideAgentPublicInfo**](#overrideagentpublicinfo) | **PUT** /agents/{agent_id}/public-info | Override Agent Public Information|
18
+ |[**publishAgent**](#publishagent) | **POST** /agents/{agent_id}/publish | Publish Agent|
17
19
  |[**resetAgentApiKey**](#resetagentapikey) | **POST** /agents/{agent_id}/api-key/reset | Reset Agent API Key|
18
20
  |[**validateAgentCreate**](#validateagentcreate) | **POST** /agent/validate | Validate Agent Create|
19
21
  |[**validateAgentUpdate**](#validateagentupdate) | **POST** /agents/{agent_id}/validate | Validate Agent Update|
@@ -559,6 +561,114 @@ const { status, data } = await apiInstance.overrideAgent(
559
561
  - **Accept**: application/json
560
562
 
561
563
 
564
+ ### HTTP response details
565
+ | Status code | Description | Response headers |
566
+ |-------------|-------------|------------------|
567
+ |**200** | Successful Response | - |
568
+ |**422** | Validation Error | - |
569
+
570
+ [[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)
571
+
572
+ # **overrideAgentPublicInfo**
573
+ > Agent overrideAgentPublicInfo()
574
+
575
+ Override agent public information with the provided values.
576
+
577
+ ### Example
578
+
579
+ ```typescript
580
+ import {
581
+ AgentApi,
582
+ Configuration,
583
+ AgentPublicInfo
584
+ } from '@crestal/nation-sdk';
585
+
586
+ const configuration = new Configuration();
587
+ const apiInstance = new AgentApi(configuration);
588
+
589
+ let agentId: string; //ID of the agent to update (default to undefined)
590
+ let agentPublicInfo: AgentPublicInfo; // (optional)
591
+
592
+ const { status, data } = await apiInstance.overrideAgentPublicInfo(
593
+ agentId,
594
+ agentPublicInfo
595
+ );
596
+ ```
597
+
598
+ ### Parameters
599
+
600
+ |Name | Type | Description | Notes|
601
+ |------------- | ------------- | ------------- | -------------|
602
+ | **agentPublicInfo** | **AgentPublicInfo**| | |
603
+ | **agentId** | [**string**] | ID of the agent to update | defaults to undefined|
604
+
605
+
606
+ ### Return type
607
+
608
+ **Agent**
609
+
610
+ ### Authorization
611
+
612
+ [HTTPBearer](../README.md#HTTPBearer)
613
+
614
+ ### HTTP request headers
615
+
616
+ - **Content-Type**: application/json
617
+ - **Accept**: application/json
618
+
619
+
620
+ ### HTTP response details
621
+ | Status code | Description | Response headers |
622
+ |-------------|-------------|------------------|
623
+ |**200** | Successful Response | - |
624
+ |**422** | Validation Error | - |
625
+
626
+ [[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)
627
+
628
+ # **publishAgent**
629
+ > Agent publishAgent()
630
+
631
+ Publish an agent if its public information passes strict validation.
632
+
633
+ ### Example
634
+
635
+ ```typescript
636
+ import {
637
+ AgentApi,
638
+ Configuration
639
+ } from '@crestal/nation-sdk';
640
+
641
+ const configuration = new Configuration();
642
+ const apiInstance = new AgentApi(configuration);
643
+
644
+ let agentId: string; //ID of the agent to publish (default to undefined)
645
+
646
+ const { status, data } = await apiInstance.publishAgent(
647
+ agentId
648
+ );
649
+ ```
650
+
651
+ ### Parameters
652
+
653
+ |Name | Type | Description | Notes|
654
+ |------------- | ------------- | ------------- | -------------|
655
+ | **agentId** | [**string**] | ID of the agent to publish | defaults to undefined|
656
+
657
+
658
+ ### Return type
659
+
660
+ **Agent**
661
+
662
+ ### Authorization
663
+
664
+ [HTTPBearer](../README.md#HTTPBearer)
665
+
666
+ ### HTTP request headers
667
+
668
+ - **Content-Type**: Not defined
669
+ - **Accept**: application/json
670
+
671
+
562
672
  ### HTTP response details
563
673
  | Status code | Description | Response headers |
564
674
  |-------------|-------------|------------------|