@crestal/nation-sdk 0.7.13 → 0.7.15

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.
@@ -18,6 +18,7 @@ docs/AgentExample.md
18
18
  docs/AgentGenerateRequest.md
19
19
  docs/AgentGenerateResponse.md
20
20
  docs/AgentListResponse.md
21
+ docs/AgentPublicInfo.md
21
22
  docs/AgentResponse.md
22
23
  docs/AgentSortOption.md
23
24
  docs/AgentState.md
@@ -47,6 +48,7 @@ docs/CreditType.md
47
48
  docs/Direction.md
48
49
  docs/DraftApi.md
49
50
  docs/EventType.md
51
+ docs/FeePercentage.md
50
52
  docs/FileUploadResponse.md
51
53
  docs/GenerationDetailResponse.md
52
54
  docs/GenerationsListResponse.md
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @crestal/nation-sdk@0.7.13
1
+ ## @crestal/nation-sdk@0.7.15
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.13 --save
39
+ npm install @crestal/nation-sdk@0.7.15 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -61,6 +61,8 @@ Class | Method | HTTP request | Description
61
61
  *AgentApi* | [**getSkillHistory**](docs/AgentApi.md#getskillhistory) | **GET** /agents/{aid}/skill/history | Skill History
62
62
  *AgentApi* | [**importAgent**](docs/AgentApi.md#importagent) | **PUT** /agents/{agent_id}/import | Import Agent
63
63
  *AgentApi* | [**overrideAgent**](docs/AgentApi.md#overrideagent) | **PUT** /agents/{agent_id} | Override Agent
64
+ *AgentApi* | [**overrideAgentPublicInfo**](docs/AgentApi.md#overrideagentpublicinfo) | **PUT** /agents/{agent_id}/public-info | Override Agent Public Information
65
+ *AgentApi* | [**publishAgent**](docs/AgentApi.md#publishagent) | **POST** /agents/{agent_id}/publish | Publish Agent
64
66
  *AgentApi* | [**resetAgentApiKey**](docs/AgentApi.md#resetagentapikey) | **POST** /agents/{agent_id}/api-key/reset | Reset Agent API Key
65
67
  *AgentApi* | [**validateAgentCreate**](docs/AgentApi.md#validateagentcreate) | **POST** /agent/validate | Validate Agent Create
66
68
  *AgentApi* | [**validateAgentUpdate**](docs/AgentApi.md#validateagentupdate) | **POST** /agents/{agent_id}/validate | Validate Agent Update
@@ -91,6 +93,8 @@ Class | Method | HTTP request | Description
91
93
  *GeneratorApi* | [**getGenerationHistory**](docs/GeneratorApi.md#getgenerationhistory) | **GET** /generator/agent/generations/{project_id} | Get Generation Detail by Project ID
92
94
  *GeneratorApi* | [**getGenerations**](docs/GeneratorApi.md#getgenerations) | **GET** /generator/agent/generations | Get Generations List by User
93
95
  *HealthApi* | [**healthCheck**](docs/HealthApi.md#healthcheck) | **GET** /health | Health check endpoint
96
+ *MetadataApi* | [**getAgentPublicSchema**](docs/MetadataApi.md#getagentpublicschema) | **GET** /metadata/agent/public.json | Get public agent schema
97
+ *MetadataApi* | [**getAgentPublicStrictSchema**](docs/MetadataApi.md#getagentpublicstrictschema) | **GET** /metadata/agent/public-strict.json | Get strict public agent schema
94
98
  *MetadataApi* | [**getAgentSchema**](docs/MetadataApi.md#getagentschema) | **GET** /metadata/agent/schema.json | Get agent schema
95
99
  *MetadataApi* | [**getLlms**](docs/MetadataApi.md#getllms) | **GET** /metadata/llms | Get all LLM models
96
100
  *MetadataApi* | [**getSkillIcon**](docs/MetadataApi.md#getskillicon) | **GET** /metadata/skills/{skill}/{icon_name}.{ext} | Get skill icon
@@ -117,6 +121,7 @@ Class | Method | HTTP request | Description
117
121
  - [AgentGenerateRequest](docs/AgentGenerateRequest.md)
118
122
  - [AgentGenerateResponse](docs/AgentGenerateResponse.md)
119
123
  - [AgentListResponse](docs/AgentListResponse.md)
124
+ - [AgentPublicInfo](docs/AgentPublicInfo.md)
120
125
  - [AgentResponse](docs/AgentResponse.md)
121
126
  - [AgentSortOption](docs/AgentSortOption.md)
122
127
  - [AgentState](docs/AgentState.md)
@@ -143,6 +148,7 @@ Class | Method | HTTP request | Description
143
148
  - [CreditType](docs/CreditType.md)
144
149
  - [Direction](docs/Direction.md)
145
150
  - [EventType](docs/EventType.md)
151
+ - [FeePercentage](docs/FeePercentage.md)
146
152
  - [FileUploadResponse](docs/FileUploadResponse.md)
147
153
  - [GenerationDetailResponse](docs/GenerationDetailResponse.md)
148
154
  - [GenerationsListResponse](docs/GenerationsListResponse.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.7.13
7
+ * The version of the OpenAPI document: 0.7.15
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -77,6 +77,12 @@ export interface Agent {
77
77
  * @memberof Agent
78
78
  */
79
79
  'examples'?: Array<AgentExample> | null;
80
+ /**
81
+ *
82
+ * @type {object}
83
+ * @memberof Agent
84
+ */
85
+ 'public_extra'?: object | null;
80
86
  /**
81
87
  *
82
88
  * @type {string}
@@ -263,6 +269,18 @@ export interface Agent {
263
269
  * @memberof Agent
264
270
  */
265
271
  'extra'?: object | null;
272
+ /**
273
+ *
274
+ * @type {string}
275
+ * @memberof Agent
276
+ */
277
+ 'deployed_at'?: string | null;
278
+ /**
279
+ *
280
+ * @type {string}
281
+ * @memberof Agent
282
+ */
283
+ 'public_info_updated_at'?: string | null;
266
284
  /**
267
285
  * Timestamp when the agent was created, will ignore when importing
268
286
  * @type {string}
@@ -997,6 +1015,67 @@ export interface AgentListResponse {
997
1015
  */
998
1016
  'next_cursor'?: string | null;
999
1017
  }
1018
+ /**
1019
+ * Public information of the agent.
1020
+ * @export
1021
+ * @interface AgentPublicInfo
1022
+ */
1023
+ export interface AgentPublicInfo {
1024
+ /**
1025
+ *
1026
+ * @type {string}
1027
+ * @memberof AgentPublicInfo
1028
+ */
1029
+ 'description'?: string | null;
1030
+ /**
1031
+ *
1032
+ * @type {string}
1033
+ * @memberof AgentPublicInfo
1034
+ */
1035
+ 'external_website'?: string | null;
1036
+ /**
1037
+ *
1038
+ * @type {string}
1039
+ * @memberof AgentPublicInfo
1040
+ */
1041
+ 'ticker'?: string | null;
1042
+ /**
1043
+ *
1044
+ * @type {string}
1045
+ * @memberof AgentPublicInfo
1046
+ */
1047
+ 'token_address'?: string | null;
1048
+ /**
1049
+ *
1050
+ * @type {string}
1051
+ * @memberof AgentPublicInfo
1052
+ */
1053
+ 'token_pool'?: string | null;
1054
+ /**
1055
+ *
1056
+ * @type {FeePercentage}
1057
+ * @memberof AgentPublicInfo
1058
+ */
1059
+ 'fee_percentage'?: FeePercentage | null;
1060
+ /**
1061
+ *
1062
+ * @type {string}
1063
+ * @memberof AgentPublicInfo
1064
+ */
1065
+ 'example_intro'?: string | null;
1066
+ /**
1067
+ *
1068
+ * @type {Array<AgentExample>}
1069
+ * @memberof AgentPublicInfo
1070
+ */
1071
+ 'examples'?: Array<AgentExample> | null;
1072
+ /**
1073
+ *
1074
+ * @type {object}
1075
+ * @memberof AgentPublicInfo
1076
+ */
1077
+ 'public_extra'?: object | null;
1078
+ }
1000
1079
  /**
1001
1080
  * Agent response model that excludes sensitive fields from JSON output and schema.
1002
1081
  * @export
@@ -1051,6 +1130,12 @@ export interface AgentResponse {
1051
1130
  * @memberof AgentResponse
1052
1131
  */
1053
1132
  'examples'?: Array<AgentExample> | null;
1133
+ /**
1134
+ *
1135
+ * @type {object}
1136
+ * @memberof AgentResponse
1137
+ */
1138
+ 'public_extra'?: object | null;
1054
1139
  /**
1055
1140
  *
1056
1141
  * @type {string}
@@ -1177,6 +1262,18 @@ export interface AgentResponse {
1177
1262
  * @memberof AgentResponse
1178
1263
  */
1179
1264
  'extra'?: object | null;
1265
+ /**
1266
+ *
1267
+ * @type {string}
1268
+ * @memberof AgentResponse
1269
+ */
1270
+ 'deployed_at'?: string | null;
1271
+ /**
1272
+ *
1273
+ * @type {string}
1274
+ * @memberof AgentResponse
1275
+ */
1276
+ 'public_info_updated_at'?: string | null;
1180
1277
  /**
1181
1278
  * Timestamp when the agent was created, will ignore when importing
1182
1279
  * @type {string}
@@ -3067,6 +3164,13 @@ export const EventType = {
3067
3164
  export type EventType = typeof EventType[keyof typeof EventType];
3068
3165
 
3069
3166
 
3167
+ /**
3168
+ * Fee percentage of the agent
3169
+ * @export
3170
+ * @interface FeePercentage
3171
+ */
3172
+ export interface FeePercentage {
3173
+ }
3070
3174
  /**
3071
3175
  * Response model for file upload.
3072
3176
  * @export
@@ -3983,6 +4087,86 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
3983
4087
  options: localVarRequestOptions,
3984
4088
  };
3985
4089
  },
4090
+ /**
4091
+ * Override agent public information with the provided values.
4092
+ * @summary Override Agent Public Information
4093
+ * @param {string} agentId ID of the agent to update
4094
+ * @param {AgentPublicInfo} [agentPublicInfo]
4095
+ * @param {*} [options] Override http request option.
4096
+ * @throws {RequiredError}
4097
+ */
4098
+ overrideAgentPublicInfo: async (agentId: string, agentPublicInfo?: AgentPublicInfo, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4099
+ // verify required parameter 'agentId' is not null or undefined
4100
+ assertParamExists('overrideAgentPublicInfo', 'agentId', agentId)
4101
+ const localVarPath = `/agents/{agent_id}/public-info`
4102
+ .replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
4103
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4104
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4105
+ let baseOptions;
4106
+ if (configuration) {
4107
+ baseOptions = configuration.baseOptions;
4108
+ }
4109
+
4110
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
4111
+ const localVarHeaderParameter = {} as any;
4112
+ const localVarQueryParameter = {} as any;
4113
+
4114
+ // authentication HTTPBearer required
4115
+ // http bearer authentication required
4116
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4117
+
4118
+
4119
+
4120
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4121
+
4122
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4123
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4124
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4125
+ localVarRequestOptions.data = serializeDataIfNeeded(agentPublicInfo, localVarRequestOptions, configuration)
4126
+
4127
+ return {
4128
+ url: toPathString(localVarUrlObj),
4129
+ options: localVarRequestOptions,
4130
+ };
4131
+ },
4132
+ /**
4133
+ * Publish an agent if its public information passes strict validation.
4134
+ * @summary Publish Agent
4135
+ * @param {string} agentId ID of the agent to publish
4136
+ * @param {*} [options] Override http request option.
4137
+ * @throws {RequiredError}
4138
+ */
4139
+ publishAgent: async (agentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4140
+ // verify required parameter 'agentId' is not null or undefined
4141
+ assertParamExists('publishAgent', 'agentId', agentId)
4142
+ const localVarPath = `/agents/{agent_id}/publish`
4143
+ .replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
4144
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4145
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4146
+ let baseOptions;
4147
+ if (configuration) {
4148
+ baseOptions = configuration.baseOptions;
4149
+ }
4150
+
4151
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4152
+ const localVarHeaderParameter = {} as any;
4153
+ const localVarQueryParameter = {} as any;
4154
+
4155
+ // authentication HTTPBearer required
4156
+ // http bearer authentication required
4157
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4158
+
4159
+
4160
+
4161
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4162
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4163
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4164
+
4165
+ return {
4166
+ url: toPathString(localVarUrlObj),
4167
+ options: localVarRequestOptions,
4168
+ };
4169
+ },
3986
4170
  /**
3987
4171
  * 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
3988
4172
  * @summary Reset Agent API Key
@@ -4248,6 +4432,33 @@ export const AgentApiFp = function(configuration?: Configuration) {
4248
4432
  const localVarOperationServerBasePath = operationServerMap['AgentApi.overrideAgent']?.[localVarOperationServerIndex]?.url;
4249
4433
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4250
4434
  },
4435
+ /**
4436
+ * Override agent public information with the provided values.
4437
+ * @summary Override Agent Public Information
4438
+ * @param {string} agentId ID of the agent to update
4439
+ * @param {AgentPublicInfo} [agentPublicInfo]
4440
+ * @param {*} [options] Override http request option.
4441
+ * @throws {RequiredError}
4442
+ */
4443
+ async overrideAgentPublicInfo(agentId: string, agentPublicInfo?: AgentPublicInfo, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>> {
4444
+ const localVarAxiosArgs = await localVarAxiosParamCreator.overrideAgentPublicInfo(agentId, agentPublicInfo, options);
4445
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4446
+ const localVarOperationServerBasePath = operationServerMap['AgentApi.overrideAgentPublicInfo']?.[localVarOperationServerIndex]?.url;
4447
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4448
+ },
4449
+ /**
4450
+ * Publish an agent if its public information passes strict validation.
4451
+ * @summary Publish Agent
4452
+ * @param {string} agentId ID of the agent to publish
4453
+ * @param {*} [options] Override http request option.
4454
+ * @throws {RequiredError}
4455
+ */
4456
+ async publishAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>> {
4457
+ const localVarAxiosArgs = await localVarAxiosParamCreator.publishAgent(agentId, options);
4458
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4459
+ const localVarOperationServerBasePath = operationServerMap['AgentApi.publishAgent']?.[localVarOperationServerIndex]?.url;
4460
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4461
+ },
4251
4462
  /**
4252
4463
  * 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
4253
4464
  * @summary Reset Agent API Key
@@ -4405,6 +4616,27 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
4405
4616
  overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<AgentResponse> {
4406
4617
  return localVarFp.overrideAgent(agentId, agentUpdate, options).then((request) => request(axios, basePath));
4407
4618
  },
4619
+ /**
4620
+ * Override agent public information with the provided values.
4621
+ * @summary Override Agent Public Information
4622
+ * @param {string} agentId ID of the agent to update
4623
+ * @param {AgentPublicInfo} [agentPublicInfo]
4624
+ * @param {*} [options] Override http request option.
4625
+ * @throws {RequiredError}
4626
+ */
4627
+ overrideAgentPublicInfo(agentId: string, agentPublicInfo?: AgentPublicInfo, options?: RawAxiosRequestConfig): AxiosPromise<Agent> {
4628
+ return localVarFp.overrideAgentPublicInfo(agentId, agentPublicInfo, options).then((request) => request(axios, basePath));
4629
+ },
4630
+ /**
4631
+ * Publish an agent if its public information passes strict validation.
4632
+ * @summary Publish Agent
4633
+ * @param {string} agentId ID of the agent to publish
4634
+ * @param {*} [options] Override http request option.
4635
+ * @throws {RequiredError}
4636
+ */
4637
+ publishAgent(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<Agent> {
4638
+ return localVarFp.publishAgent(agentId, options).then((request) => request(axios, basePath));
4639
+ },
4408
4640
  /**
4409
4641
  * 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
4410
4642
  * @summary Reset Agent API Key
@@ -4573,6 +4805,31 @@ export class AgentApi extends BaseAPI {
4573
4805
  return AgentApiFp(this.configuration).overrideAgent(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
4574
4806
  }
4575
4807
 
4808
+ /**
4809
+ * Override agent public information with the provided values.
4810
+ * @summary Override Agent Public Information
4811
+ * @param {string} agentId ID of the agent to update
4812
+ * @param {AgentPublicInfo} [agentPublicInfo]
4813
+ * @param {*} [options] Override http request option.
4814
+ * @throws {RequiredError}
4815
+ * @memberof AgentApi
4816
+ */
4817
+ public overrideAgentPublicInfo(agentId: string, agentPublicInfo?: AgentPublicInfo, options?: RawAxiosRequestConfig) {
4818
+ return AgentApiFp(this.configuration).overrideAgentPublicInfo(agentId, agentPublicInfo, options).then((request) => request(this.axios, this.basePath));
4819
+ }
4820
+
4821
+ /**
4822
+ * Publish an agent if its public information passes strict validation.
4823
+ * @summary Publish Agent
4824
+ * @param {string} agentId ID of the agent to publish
4825
+ * @param {*} [options] Override http request option.
4826
+ * @throws {RequiredError}
4827
+ * @memberof AgentApi
4828
+ */
4829
+ public publishAgent(agentId: string, options?: RawAxiosRequestConfig) {
4830
+ return AgentApiFp(this.configuration).publishAgent(agentId, options).then((request) => request(this.axios, this.basePath));
4831
+ }
4832
+
4576
4833
  /**
4577
4834
  * 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
4578
4835
  * @summary Reset Agent API Key
@@ -6949,6 +7206,74 @@ export class HealthApi extends BaseAPI {
6949
7206
  */
6950
7207
  export const MetadataApiAxiosParamCreator = function (configuration?: Configuration) {
6951
7208
  return {
7209
+ /**
7210
+ * Get the JSON schema for AgentPublicInfo with custom adjustments
7211
+ * @summary Get public agent schema
7212
+ * @param {*} [options] Override http request option.
7213
+ * @throws {RequiredError}
7214
+ */
7215
+ getAgentPublicSchema: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7216
+ const localVarPath = `/metadata/agent/public.json`;
7217
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7218
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7219
+ let baseOptions;
7220
+ if (configuration) {
7221
+ baseOptions = configuration.baseOptions;
7222
+ }
7223
+
7224
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7225
+ const localVarHeaderParameter = {} as any;
7226
+ const localVarQueryParameter = {} as any;
7227
+
7228
+ // authentication HTTPBearer required
7229
+ // http bearer authentication required
7230
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7231
+
7232
+
7233
+
7234
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7235
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7236
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7237
+
7238
+ return {
7239
+ url: toPathString(localVarUrlObj),
7240
+ options: localVarRequestOptions,
7241
+ };
7242
+ },
7243
+ /**
7244
+ * Get the JSON schema for AgentPublicInfo with strict field requirements
7245
+ * @summary Get strict public agent schema
7246
+ * @param {*} [options] Override http request option.
7247
+ * @throws {RequiredError}
7248
+ */
7249
+ getAgentPublicStrictSchema: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7250
+ const localVarPath = `/metadata/agent/public-strict.json`;
7251
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7252
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7253
+ let baseOptions;
7254
+ if (configuration) {
7255
+ baseOptions = configuration.baseOptions;
7256
+ }
7257
+
7258
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7259
+ const localVarHeaderParameter = {} as any;
7260
+ const localVarQueryParameter = {} as any;
7261
+
7262
+ // authentication HTTPBearer required
7263
+ // http bearer authentication required
7264
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7265
+
7266
+
7267
+
7268
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7269
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7270
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7271
+
7272
+ return {
7273
+ url: toPathString(localVarUrlObj),
7274
+ options: localVarRequestOptions,
7275
+ };
7276
+ },
6952
7277
  /**
6953
7278
  * Get the JSON schema for Agent model with all $ref references resolved
6954
7279
  * @summary Get agent schema
@@ -7125,6 +7450,30 @@ export const MetadataApiAxiosParamCreator = function (configuration?: Configurat
7125
7450
  export const MetadataApiFp = function(configuration?: Configuration) {
7126
7451
  const localVarAxiosParamCreator = MetadataApiAxiosParamCreator(configuration)
7127
7452
  return {
7453
+ /**
7454
+ * Get the JSON schema for AgentPublicInfo with custom adjustments
7455
+ * @summary Get public agent schema
7456
+ * @param {*} [options] Override http request option.
7457
+ * @throws {RequiredError}
7458
+ */
7459
+ async getAgentPublicSchema(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
7460
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAgentPublicSchema(options);
7461
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7462
+ const localVarOperationServerBasePath = operationServerMap['MetadataApi.getAgentPublicSchema']?.[localVarOperationServerIndex]?.url;
7463
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7464
+ },
7465
+ /**
7466
+ * Get the JSON schema for AgentPublicInfo with strict field requirements
7467
+ * @summary Get strict public agent schema
7468
+ * @param {*} [options] Override http request option.
7469
+ * @throws {RequiredError}
7470
+ */
7471
+ async getAgentPublicStrictSchema(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
7472
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAgentPublicStrictSchema(options);
7473
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7474
+ const localVarOperationServerBasePath = operationServerMap['MetadataApi.getAgentPublicStrictSchema']?.[localVarOperationServerIndex]?.url;
7475
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7476
+ },
7128
7477
  /**
7129
7478
  * Get the JSON schema for Agent model with all $ref references resolved
7130
7479
  * @summary Get agent schema
@@ -7199,6 +7548,24 @@ export const MetadataApiFp = function(configuration?: Configuration) {
7199
7548
  export const MetadataApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
7200
7549
  const localVarFp = MetadataApiFp(configuration)
7201
7550
  return {
7551
+ /**
7552
+ * Get the JSON schema for AgentPublicInfo with custom adjustments
7553
+ * @summary Get public agent schema
7554
+ * @param {*} [options] Override http request option.
7555
+ * @throws {RequiredError}
7556
+ */
7557
+ getAgentPublicSchema(options?: RawAxiosRequestConfig): AxiosPromise<any> {
7558
+ return localVarFp.getAgentPublicSchema(options).then((request) => request(axios, basePath));
7559
+ },
7560
+ /**
7561
+ * Get the JSON schema for AgentPublicInfo with strict field requirements
7562
+ * @summary Get strict public agent schema
7563
+ * @param {*} [options] Override http request option.
7564
+ * @throws {RequiredError}
7565
+ */
7566
+ getAgentPublicStrictSchema(options?: RawAxiosRequestConfig): AxiosPromise<any> {
7567
+ return localVarFp.getAgentPublicStrictSchema(options).then((request) => request(axios, basePath));
7568
+ },
7202
7569
  /**
7203
7570
  * Get the JSON schema for Agent model with all $ref references resolved
7204
7571
  * @summary Get agent schema
@@ -7258,6 +7625,28 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP
7258
7625
  * @extends {BaseAPI}
7259
7626
  */
7260
7627
  export class MetadataApi extends BaseAPI {
7628
+ /**
7629
+ * Get the JSON schema for AgentPublicInfo with custom adjustments
7630
+ * @summary Get public agent schema
7631
+ * @param {*} [options] Override http request option.
7632
+ * @throws {RequiredError}
7633
+ * @memberof MetadataApi
7634
+ */
7635
+ public getAgentPublicSchema(options?: RawAxiosRequestConfig) {
7636
+ return MetadataApiFp(this.configuration).getAgentPublicSchema(options).then((request) => request(this.axios, this.basePath));
7637
+ }
7638
+
7639
+ /**
7640
+ * Get the JSON schema for AgentPublicInfo with strict field requirements
7641
+ * @summary Get strict public agent schema
7642
+ * @param {*} [options] Override http request option.
7643
+ * @throws {RequiredError}
7644
+ * @memberof MetadataApi
7645
+ */
7646
+ public getAgentPublicStrictSchema(options?: RawAxiosRequestConfig) {
7647
+ return MetadataApiFp(this.configuration).getAgentPublicStrictSchema(options).then((request) => request(this.axios, this.basePath));
7648
+ }
7649
+
7261
7650
  /**
7262
7651
  * Get the JSON schema for Agent model with all $ref references resolved
7263
7652
  * @summary Get agent schema
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.13
7
+ * The version of the OpenAPI document: 0.7.15
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.13
7
+ * The version of the OpenAPI document: 0.7.15
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.13
7
+ * The version of the OpenAPI document: 0.7.15
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).