@crestal/nation-sdk 0.8.56 → 0.8.58

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.
@@ -71,7 +71,6 @@ docs/UserApi.md
71
71
  docs/ValidationError.md
72
72
  docs/ValidationErrorLocInner.md
73
73
  docs/X402Api.md
74
- docs/X402MessageRequest.md
75
74
  git_push.sh
76
75
  index.ts
77
76
  package.json
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @crestal/nation-sdk@0.8.56
1
+ ## @crestal/nation-sdk@0.8.58
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @crestal/nation-sdk@0.8.56 --save
39
+ npm install @crestal/nation-sdk@0.8.58 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -173,7 +173,6 @@ Class | Method | HTTP request | Description
173
173
  - [UserAgentListResponse](docs/UserAgentListResponse.md)
174
174
  - [ValidationError](docs/ValidationError.md)
175
175
  - [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)
176
- - [X402MessageRequest](docs/X402MessageRequest.md)
177
176
 
178
177
 
179
178
  <a id="documentation-for-authorization"></a>
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.8.56
7
+ * The version of the OpenAPI document: 0.8.58
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1564,20 +1564,6 @@ export interface ValidationError {
1564
1564
  }
1565
1565
  export interface ValidationErrorLocInner {
1566
1566
  }
1567
- /**
1568
- * Request agent for chat response.
1569
- */
1570
- export interface X402MessageRequest {
1571
- 'chat_id'?: string | null;
1572
- 'app_id'?: string | null;
1573
- /**
1574
- * Content of the message
1575
- */
1576
- 'message': string;
1577
- 'search_mode'?: boolean | null;
1578
- 'super_mode'?: boolean | null;
1579
- 'attachments'?: Array<ChatMessageAttachment> | null;
1580
- }
1581
1567
 
1582
1568
  /**
1583
1569
  * AgentApi - axios parameter creator
@@ -1587,11 +1573,13 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
1587
1573
  /**
1588
1574
  * Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Agent limit reached, invalid agent ID format, or agent ID already exists - 422: Invalid agent configuration from JSON schema validation - 500: Database error
1589
1575
  * @summary Create Agent
1590
- * @param {AgentUpdate} [agentUpdate]
1576
+ * @param {AgentUpdate} agentUpdate
1591
1577
  * @param {*} [options] Override http request option.
1592
1578
  * @throws {RequiredError}
1593
1579
  */
1594
- createAgent: async (agentUpdate?: AgentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1580
+ createAgent: async (agentUpdate: AgentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1581
+ // verify required parameter 'agentUpdate' is not null or undefined
1582
+ assertParamExists('createAgent', 'agentUpdate', agentUpdate)
1595
1583
  const localVarPath = `/agents`;
1596
1584
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1597
1585
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2007,13 +1995,15 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
2007
1995
  * Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `data` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 422: Invalid agent configuration from JSON schema validation - 500: Database error
2008
1996
  * @summary Override Agent
2009
1997
  * @param {string} agentId ID of the agent to update
2010
- * @param {AgentUpdate} [agentUpdate]
1998
+ * @param {AgentUpdate} agentUpdate
2011
1999
  * @param {*} [options] Override http request option.
2012
2000
  * @throws {RequiredError}
2013
2001
  */
2014
- overrideAgent: async (agentId: string, agentUpdate?: AgentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2002
+ overrideAgent: async (agentId: string, agentUpdate: AgentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2015
2003
  // verify required parameter 'agentId' is not null or undefined
2016
2004
  assertParamExists('overrideAgent', 'agentId', agentId)
2005
+ // verify required parameter 'agentUpdate' is not null or undefined
2006
+ assertParamExists('overrideAgent', 'agentUpdate', agentUpdate)
2017
2007
  const localVarPath = `/agents/{agent_id}`
2018
2008
  .replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
2019
2009
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -2049,13 +2039,15 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
2049
2039
  * Override agent public information with the provided values.
2050
2040
  * @summary Override Agent Public Information
2051
2041
  * @param {string} agentId ID of the agent to update
2052
- * @param {AgentPublicInfo} [agentPublicInfo]
2042
+ * @param {AgentPublicInfo} agentPublicInfo
2053
2043
  * @param {*} [options] Override http request option.
2054
2044
  * @throws {RequiredError}
2055
2045
  */
2056
- overrideAgentPublicInfo: async (agentId: string, agentPublicInfo?: AgentPublicInfo, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2046
+ overrideAgentPublicInfo: async (agentId: string, agentPublicInfo: AgentPublicInfo, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2057
2047
  // verify required parameter 'agentId' is not null or undefined
2058
2048
  assertParamExists('overrideAgentPublicInfo', 'agentId', agentId)
2049
+ // verify required parameter 'agentPublicInfo' is not null or undefined
2050
+ assertParamExists('overrideAgentPublicInfo', 'agentPublicInfo', agentPublicInfo)
2059
2051
  const localVarPath = `/agents/{agent_id}/public-info`
2060
2052
  .replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
2061
2053
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -2204,11 +2196,13 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
2204
2196
  /**
2205
2197
  * 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
2206
2198
  * @summary Validate Agent Create
2207
- * @param {AgentUpdate} [agentUpdate]
2199
+ * @param {AgentUpdate} agentUpdate
2208
2200
  * @param {*} [options] Override http request option.
2209
2201
  * @throws {RequiredError}
2210
2202
  */
2211
- validateAgentCreate: async (agentUpdate?: AgentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2203
+ validateAgentCreate: async (agentUpdate: AgentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2204
+ // verify required parameter 'agentUpdate' is not null or undefined
2205
+ assertParamExists('validateAgentCreate', 'agentUpdate', agentUpdate)
2212
2206
  const localVarPath = `/agent/validate`;
2213
2207
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2214
2208
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2243,13 +2237,15 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
2243
2237
  * 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 - 500: Server error
2244
2238
  * @summary Validate Agent Update
2245
2239
  * @param {string} agentId Agent ID
2246
- * @param {AgentUpdate} [agentUpdate]
2240
+ * @param {AgentUpdate} agentUpdate
2247
2241
  * @param {*} [options] Override http request option.
2248
2242
  * @throws {RequiredError}
2249
2243
  */
2250
- validateAgentUpdate: async (agentId: string, agentUpdate?: AgentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2244
+ validateAgentUpdate: async (agentId: string, agentUpdate: AgentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2251
2245
  // verify required parameter 'agentId' is not null or undefined
2252
2246
  assertParamExists('validateAgentUpdate', 'agentId', agentId)
2247
+ // verify required parameter 'agentUpdate' is not null or undefined
2248
+ assertParamExists('validateAgentUpdate', 'agentUpdate', agentUpdate)
2253
2249
  const localVarPath = `/agents/{agent_id}/validate`
2254
2250
  .replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
2255
2251
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -2293,11 +2289,11 @@ export const AgentApiFp = function(configuration?: Configuration) {
2293
2289
  /**
2294
2290
  * Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Agent limit reached, invalid agent ID format, or agent ID already exists - 422: Invalid agent configuration from JSON schema validation - 500: Database error
2295
2291
  * @summary Create Agent
2296
- * @param {AgentUpdate} [agentUpdate]
2292
+ * @param {AgentUpdate} agentUpdate
2297
2293
  * @param {*} [options] Override http request option.
2298
2294
  * @throws {RequiredError}
2299
2295
  */
2300
- async createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentResponse>> {
2296
+ async createAgent(agentUpdate: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentResponse>> {
2301
2297
  const localVarAxiosArgs = await localVarAxiosParamCreator.createAgent(agentUpdate, options);
2302
2298
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2303
2299
  const localVarOperationServerBasePath = operationServerMap['AgentApi.createAgent']?.[localVarOperationServerIndex]?.url;
@@ -2432,11 +2428,11 @@ export const AgentApiFp = function(configuration?: Configuration) {
2432
2428
  * Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `data` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 422: Invalid agent configuration from JSON schema validation - 500: Database error
2433
2429
  * @summary Override Agent
2434
2430
  * @param {string} agentId ID of the agent to update
2435
- * @param {AgentUpdate} [agentUpdate]
2431
+ * @param {AgentUpdate} agentUpdate
2436
2432
  * @param {*} [options] Override http request option.
2437
2433
  * @throws {RequiredError}
2438
2434
  */
2439
- async overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentResponse>> {
2435
+ async overrideAgent(agentId: string, agentUpdate: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentResponse>> {
2440
2436
  const localVarAxiosArgs = await localVarAxiosParamCreator.overrideAgent(agentId, agentUpdate, options);
2441
2437
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2442
2438
  const localVarOperationServerBasePath = operationServerMap['AgentApi.overrideAgent']?.[localVarOperationServerIndex]?.url;
@@ -2446,11 +2442,11 @@ export const AgentApiFp = function(configuration?: Configuration) {
2446
2442
  * Override agent public information with the provided values.
2447
2443
  * @summary Override Agent Public Information
2448
2444
  * @param {string} agentId ID of the agent to update
2449
- * @param {AgentPublicInfo} [agentPublicInfo]
2445
+ * @param {AgentPublicInfo} agentPublicInfo
2450
2446
  * @param {*} [options] Override http request option.
2451
2447
  * @throws {RequiredError}
2452
2448
  */
2453
- async overrideAgentPublicInfo(agentId: string, agentPublicInfo?: AgentPublicInfo, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>> {
2449
+ async overrideAgentPublicInfo(agentId: string, agentPublicInfo: AgentPublicInfo, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>> {
2454
2450
  const localVarAxiosArgs = await localVarAxiosParamCreator.overrideAgentPublicInfo(agentId, agentPublicInfo, options);
2455
2451
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2456
2452
  const localVarOperationServerBasePath = operationServerMap['AgentApi.overrideAgentPublicInfo']?.[localVarOperationServerIndex]?.url;
@@ -2498,11 +2494,11 @@ export const AgentApiFp = function(configuration?: Configuration) {
2498
2494
  /**
2499
2495
  * 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
2500
2496
  * @summary Validate Agent Create
2501
- * @param {AgentUpdate} [agentUpdate]
2497
+ * @param {AgentUpdate} agentUpdate
2502
2498
  * @param {*} [options] Override http request option.
2503
2499
  * @throws {RequiredError}
2504
2500
  */
2505
- async validateAgentCreate(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2501
+ async validateAgentCreate(agentUpdate: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2506
2502
  const localVarAxiosArgs = await localVarAxiosParamCreator.validateAgentCreate(agentUpdate, options);
2507
2503
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2508
2504
  const localVarOperationServerBasePath = operationServerMap['AgentApi.validateAgentCreate']?.[localVarOperationServerIndex]?.url;
@@ -2512,11 +2508,11 @@ export const AgentApiFp = function(configuration?: Configuration) {
2512
2508
  * 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 - 500: Server error
2513
2509
  * @summary Validate Agent Update
2514
2510
  * @param {string} agentId Agent ID
2515
- * @param {AgentUpdate} [agentUpdate]
2511
+ * @param {AgentUpdate} agentUpdate
2516
2512
  * @param {*} [options] Override http request option.
2517
2513
  * @throws {RequiredError}
2518
2514
  */
2519
- async validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2515
+ async validateAgentUpdate(agentId: string, agentUpdate: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2520
2516
  const localVarAxiosArgs = await localVarAxiosParamCreator.validateAgentUpdate(agentId, agentUpdate, options);
2521
2517
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2522
2518
  const localVarOperationServerBasePath = operationServerMap['AgentApi.validateAgentUpdate']?.[localVarOperationServerIndex]?.url;
@@ -2534,11 +2530,11 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
2534
2530
  /**
2535
2531
  * Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Agent limit reached, invalid agent ID format, or agent ID already exists - 422: Invalid agent configuration from JSON schema validation - 500: Database error
2536
2532
  * @summary Create Agent
2537
- * @param {AgentUpdate} [agentUpdate]
2533
+ * @param {AgentUpdate} agentUpdate
2538
2534
  * @param {*} [options] Override http request option.
2539
2535
  * @throws {RequiredError}
2540
2536
  */
2541
- createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<AgentResponse> {
2537
+ createAgent(agentUpdate: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<AgentResponse> {
2542
2538
  return localVarFp.createAgent(agentUpdate, options).then((request) => request(axios, basePath));
2543
2539
  },
2544
2540
  /**
@@ -2643,22 +2639,22 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
2643
2639
  * Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `data` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 422: Invalid agent configuration from JSON schema validation - 500: Database error
2644
2640
  * @summary Override Agent
2645
2641
  * @param {string} agentId ID of the agent to update
2646
- * @param {AgentUpdate} [agentUpdate]
2642
+ * @param {AgentUpdate} agentUpdate
2647
2643
  * @param {*} [options] Override http request option.
2648
2644
  * @throws {RequiredError}
2649
2645
  */
2650
- overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<AgentResponse> {
2646
+ overrideAgent(agentId: string, agentUpdate: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<AgentResponse> {
2651
2647
  return localVarFp.overrideAgent(agentId, agentUpdate, options).then((request) => request(axios, basePath));
2652
2648
  },
2653
2649
  /**
2654
2650
  * Override agent public information with the provided values.
2655
2651
  * @summary Override Agent Public Information
2656
2652
  * @param {string} agentId ID of the agent to update
2657
- * @param {AgentPublicInfo} [agentPublicInfo]
2653
+ * @param {AgentPublicInfo} agentPublicInfo
2658
2654
  * @param {*} [options] Override http request option.
2659
2655
  * @throws {RequiredError}
2660
2656
  */
2661
- overrideAgentPublicInfo(agentId: string, agentPublicInfo?: AgentPublicInfo, options?: RawAxiosRequestConfig): AxiosPromise<Agent> {
2657
+ overrideAgentPublicInfo(agentId: string, agentPublicInfo: AgentPublicInfo, options?: RawAxiosRequestConfig): AxiosPromise<Agent> {
2662
2658
  return localVarFp.overrideAgentPublicInfo(agentId, agentPublicInfo, options).then((request) => request(axios, basePath));
2663
2659
  },
2664
2660
  /**
@@ -2694,22 +2690,22 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
2694
2690
  /**
2695
2691
  * 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
2696
2692
  * @summary Validate Agent Create
2697
- * @param {AgentUpdate} [agentUpdate]
2693
+ * @param {AgentUpdate} agentUpdate
2698
2694
  * @param {*} [options] Override http request option.
2699
2695
  * @throws {RequiredError}
2700
2696
  */
2701
- validateAgentCreate(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2697
+ validateAgentCreate(agentUpdate: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2702
2698
  return localVarFp.validateAgentCreate(agentUpdate, options).then((request) => request(axios, basePath));
2703
2699
  },
2704
2700
  /**
2705
2701
  * 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 - 500: Server error
2706
2702
  * @summary Validate Agent Update
2707
2703
  * @param {string} agentId Agent ID
2708
- * @param {AgentUpdate} [agentUpdate]
2704
+ * @param {AgentUpdate} agentUpdate
2709
2705
  * @param {*} [options] Override http request option.
2710
2706
  * @throws {RequiredError}
2711
2707
  */
2712
- validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2708
+ validateAgentUpdate(agentId: string, agentUpdate: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2713
2709
  return localVarFp.validateAgentUpdate(agentId, agentUpdate, options).then((request) => request(axios, basePath));
2714
2710
  },
2715
2711
  };
@@ -2722,11 +2718,11 @@ export class AgentApi extends BaseAPI {
2722
2718
  /**
2723
2719
  * Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Agent limit reached, invalid agent ID format, or agent ID already exists - 422: Invalid agent configuration from JSON schema validation - 500: Database error
2724
2720
  * @summary Create Agent
2725
- * @param {AgentUpdate} [agentUpdate]
2721
+ * @param {AgentUpdate} agentUpdate
2726
2722
  * @param {*} [options] Override http request option.
2727
2723
  * @throws {RequiredError}
2728
2724
  */
2729
- public createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
2725
+ public createAgent(agentUpdate: AgentUpdate, options?: RawAxiosRequestConfig) {
2730
2726
  return AgentApiFp(this.configuration).createAgent(agentUpdate, options).then((request) => request(this.axios, this.basePath));
2731
2727
  }
2732
2728
 
@@ -2841,11 +2837,11 @@ export class AgentApi extends BaseAPI {
2841
2837
  * Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `data` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 422: Invalid agent configuration from JSON schema validation - 500: Database error
2842
2838
  * @summary Override Agent
2843
2839
  * @param {string} agentId ID of the agent to update
2844
- * @param {AgentUpdate} [agentUpdate]
2840
+ * @param {AgentUpdate} agentUpdate
2845
2841
  * @param {*} [options] Override http request option.
2846
2842
  * @throws {RequiredError}
2847
2843
  */
2848
- public overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
2844
+ public overrideAgent(agentId: string, agentUpdate: AgentUpdate, options?: RawAxiosRequestConfig) {
2849
2845
  return AgentApiFp(this.configuration).overrideAgent(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
2850
2846
  }
2851
2847
 
@@ -2853,11 +2849,11 @@ export class AgentApi extends BaseAPI {
2853
2849
  * Override agent public information with the provided values.
2854
2850
  * @summary Override Agent Public Information
2855
2851
  * @param {string} agentId ID of the agent to update
2856
- * @param {AgentPublicInfo} [agentPublicInfo]
2852
+ * @param {AgentPublicInfo} agentPublicInfo
2857
2853
  * @param {*} [options] Override http request option.
2858
2854
  * @throws {RequiredError}
2859
2855
  */
2860
- public overrideAgentPublicInfo(agentId: string, agentPublicInfo?: AgentPublicInfo, options?: RawAxiosRequestConfig) {
2856
+ public overrideAgentPublicInfo(agentId: string, agentPublicInfo: AgentPublicInfo, options?: RawAxiosRequestConfig) {
2861
2857
  return AgentApiFp(this.configuration).overrideAgentPublicInfo(agentId, agentPublicInfo, options).then((request) => request(this.axios, this.basePath));
2862
2858
  }
2863
2859
 
@@ -2897,11 +2893,11 @@ export class AgentApi extends BaseAPI {
2897
2893
  /**
2898
2894
  * 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
2899
2895
  * @summary Validate Agent Create
2900
- * @param {AgentUpdate} [agentUpdate]
2896
+ * @param {AgentUpdate} agentUpdate
2901
2897
  * @param {*} [options] Override http request option.
2902
2898
  * @throws {RequiredError}
2903
2899
  */
2904
- public validateAgentCreate(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
2900
+ public validateAgentCreate(agentUpdate: AgentUpdate, options?: RawAxiosRequestConfig) {
2905
2901
  return AgentApiFp(this.configuration).validateAgentCreate(agentUpdate, options).then((request) => request(this.axios, this.basePath));
2906
2902
  }
2907
2903
 
@@ -2909,11 +2905,11 @@ export class AgentApi extends BaseAPI {
2909
2905
  * 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 - 500: Server error
2910
2906
  * @summary Validate Agent Update
2911
2907
  * @param {string} agentId Agent ID
2912
- * @param {AgentUpdate} [agentUpdate]
2908
+ * @param {AgentUpdate} agentUpdate
2913
2909
  * @param {*} [options] Override http request option.
2914
2910
  * @throws {RequiredError}
2915
2911
  */
2916
- public validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
2912
+ public validateAgentUpdate(agentId: string, agentUpdate: AgentUpdate, options?: RawAxiosRequestConfig) {
2917
2913
  return AgentApiFp(this.configuration).validateAgentUpdate(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
2918
2914
  }
2919
2915
  }
@@ -6656,15 +6652,12 @@ export const X402ApiAxiosParamCreator = function (configuration?: Configuration)
6656
6652
  * Send a new message to a specific chat thread. The response is a list of messages generated by the agent. The response does not include the original user message. It could be skill calls, agent messages, or system error messages. The last message is the agent\'s final response.
6657
6653
  * @summary Chat by x402
6658
6654
  * @param {string} aid Agent ID
6659
- * @param {X402MessageRequest} x402MessageRequest
6660
6655
  * @param {*} [options] Override http request option.
6661
6656
  * @throws {RequiredError}
6662
6657
  */
6663
- chatByX402: async (aid: string, x402MessageRequest: X402MessageRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6658
+ chatByX402: async (aid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6664
6659
  // verify required parameter 'aid' is not null or undefined
6665
6660
  assertParamExists('chatByX402', 'aid', aid)
6666
- // verify required parameter 'x402MessageRequest' is not null or undefined
6667
- assertParamExists('chatByX402', 'x402MessageRequest', x402MessageRequest)
6668
6661
  const localVarPath = `/x/{aid}`
6669
6662
  .replace(`{${"aid"}}`, encodeURIComponent(String(aid)));
6670
6663
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -6680,12 +6673,9 @@ export const X402ApiAxiosParamCreator = function (configuration?: Configuration)
6680
6673
 
6681
6674
 
6682
6675
 
6683
- localVarHeaderParameter['Content-Type'] = 'application/json';
6684
-
6685
6676
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6686
6677
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6687
6678
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6688
- localVarRequestOptions.data = serializeDataIfNeeded(x402MessageRequest, localVarRequestOptions, configuration)
6689
6679
 
6690
6680
  return {
6691
6681
  url: toPathString(localVarUrlObj),
@@ -6705,12 +6695,11 @@ export const X402ApiFp = function(configuration?: Configuration) {
6705
6695
  * Send a new message to a specific chat thread. The response is a list of messages generated by the agent. The response does not include the original user message. It could be skill calls, agent messages, or system error messages. The last message is the agent\'s final response.
6706
6696
  * @summary Chat by x402
6707
6697
  * @param {string} aid Agent ID
6708
- * @param {X402MessageRequest} x402MessageRequest
6709
6698
  * @param {*} [options] Override http request option.
6710
6699
  * @throws {RequiredError}
6711
6700
  */
6712
- async chatByX402(aid: string, x402MessageRequest: X402MessageRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChatMessage>>> {
6713
- const localVarAxiosArgs = await localVarAxiosParamCreator.chatByX402(aid, x402MessageRequest, options);
6701
+ async chatByX402(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChatMessage>>> {
6702
+ const localVarAxiosArgs = await localVarAxiosParamCreator.chatByX402(aid, options);
6714
6703
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6715
6704
  const localVarOperationServerBasePath = operationServerMap['X402Api.chatByX402']?.[localVarOperationServerIndex]?.url;
6716
6705
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -6728,12 +6717,11 @@ export const X402ApiFactory = function (configuration?: Configuration, basePath?
6728
6717
  * Send a new message to a specific chat thread. The response is a list of messages generated by the agent. The response does not include the original user message. It could be skill calls, agent messages, or system error messages. The last message is the agent\'s final response.
6729
6718
  * @summary Chat by x402
6730
6719
  * @param {string} aid Agent ID
6731
- * @param {X402MessageRequest} x402MessageRequest
6732
6720
  * @param {*} [options] Override http request option.
6733
6721
  * @throws {RequiredError}
6734
6722
  */
6735
- chatByX402(aid: string, x402MessageRequest: X402MessageRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ChatMessage>> {
6736
- return localVarFp.chatByX402(aid, x402MessageRequest, options).then((request) => request(axios, basePath));
6723
+ chatByX402(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ChatMessage>> {
6724
+ return localVarFp.chatByX402(aid, options).then((request) => request(axios, basePath));
6737
6725
  },
6738
6726
  };
6739
6727
  };
@@ -6746,12 +6734,11 @@ export class X402Api extends BaseAPI {
6746
6734
  * Send a new message to a specific chat thread. The response is a list of messages generated by the agent. The response does not include the original user message. It could be skill calls, agent messages, or system error messages. The last message is the agent\'s final response.
6747
6735
  * @summary Chat by x402
6748
6736
  * @param {string} aid Agent ID
6749
- * @param {X402MessageRequest} x402MessageRequest
6750
6737
  * @param {*} [options] Override http request option.
6751
6738
  * @throws {RequiredError}
6752
6739
  */
6753
- public chatByX402(aid: string, x402MessageRequest: X402MessageRequest, options?: RawAxiosRequestConfig) {
6754
- return X402ApiFp(this.configuration).chatByX402(aid, x402MessageRequest, options).then((request) => request(this.axios, this.basePath));
6740
+ public chatByX402(aid: string, options?: RawAxiosRequestConfig) {
6741
+ return X402ApiFp(this.configuration).chatByX402(aid, options).then((request) => request(this.axios, this.basePath));
6755
6742
  }
6756
6743
  }
6757
6744
 
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.8.56
7
+ * The version of the OpenAPI document: 0.8.58
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.8.56
7
+ * The version of the OpenAPI document: 0.8.58
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * Nation IntentKit API
4
4
  * API for Nation IntentKit services
5
5
  *
6
- * The version of the OpenAPI document: 0.8.56
6
+ * The version of the OpenAPI document: 0.8.58
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).