@crestal/nation-sdk 0.8.55 → 0.8.57

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.55
1
+ ## @crestal/nation-sdk@0.8.57
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.55 --save
39
+ npm install @crestal/nation-sdk@0.8.57 --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.55
7
+ * The version of the OpenAPI document: 0.8.57
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
@@ -6656,15 +6642,12 @@ export const X402ApiAxiosParamCreator = function (configuration?: Configuration)
6656
6642
  * 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
6643
  * @summary Chat by x402
6658
6644
  * @param {string} aid Agent ID
6659
- * @param {X402MessageRequest} x402MessageRequest
6660
6645
  * @param {*} [options] Override http request option.
6661
6646
  * @throws {RequiredError}
6662
6647
  */
6663
- chatByX402: async (aid: string, x402MessageRequest: X402MessageRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6648
+ chatByX402: async (aid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6664
6649
  // verify required parameter 'aid' is not null or undefined
6665
6650
  assertParamExists('chatByX402', 'aid', aid)
6666
- // verify required parameter 'x402MessageRequest' is not null or undefined
6667
- assertParamExists('chatByX402', 'x402MessageRequest', x402MessageRequest)
6668
6651
  const localVarPath = `/x/{aid}`
6669
6652
  .replace(`{${"aid"}}`, encodeURIComponent(String(aid)));
6670
6653
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -6680,12 +6663,9 @@ export const X402ApiAxiosParamCreator = function (configuration?: Configuration)
6680
6663
 
6681
6664
 
6682
6665
 
6683
- localVarHeaderParameter['Content-Type'] = 'application/json';
6684
-
6685
6666
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6686
6667
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6687
6668
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6688
- localVarRequestOptions.data = serializeDataIfNeeded(x402MessageRequest, localVarRequestOptions, configuration)
6689
6669
 
6690
6670
  return {
6691
6671
  url: toPathString(localVarUrlObj),
@@ -6705,12 +6685,11 @@ export const X402ApiFp = function(configuration?: Configuration) {
6705
6685
  * 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
6686
  * @summary Chat by x402
6707
6687
  * @param {string} aid Agent ID
6708
- * @param {X402MessageRequest} x402MessageRequest
6709
6688
  * @param {*} [options] Override http request option.
6710
6689
  * @throws {RequiredError}
6711
6690
  */
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);
6691
+ async chatByX402(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChatMessage>>> {
6692
+ const localVarAxiosArgs = await localVarAxiosParamCreator.chatByX402(aid, options);
6714
6693
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6715
6694
  const localVarOperationServerBasePath = operationServerMap['X402Api.chatByX402']?.[localVarOperationServerIndex]?.url;
6716
6695
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -6728,12 +6707,11 @@ export const X402ApiFactory = function (configuration?: Configuration, basePath?
6728
6707
  * 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
6708
  * @summary Chat by x402
6730
6709
  * @param {string} aid Agent ID
6731
- * @param {X402MessageRequest} x402MessageRequest
6732
6710
  * @param {*} [options] Override http request option.
6733
6711
  * @throws {RequiredError}
6734
6712
  */
6735
- chatByX402(aid: string, x402MessageRequest: X402MessageRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ChatMessage>> {
6736
- return localVarFp.chatByX402(aid, x402MessageRequest, options).then((request) => request(axios, basePath));
6713
+ chatByX402(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ChatMessage>> {
6714
+ return localVarFp.chatByX402(aid, options).then((request) => request(axios, basePath));
6737
6715
  },
6738
6716
  };
6739
6717
  };
@@ -6746,12 +6724,11 @@ export class X402Api extends BaseAPI {
6746
6724
  * 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
6725
  * @summary Chat by x402
6748
6726
  * @param {string} aid Agent ID
6749
- * @param {X402MessageRequest} x402MessageRequest
6750
6727
  * @param {*} [options] Override http request option.
6751
6728
  * @throws {RequiredError}
6752
6729
  */
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));
6730
+ public chatByX402(aid: string, options?: RawAxiosRequestConfig) {
6731
+ return X402ApiFp(this.configuration).chatByX402(aid, options).then((request) => request(this.axios, this.basePath));
6755
6732
  }
6756
6733
  }
6757
6734
 
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.55
7
+ * The version of the OpenAPI document: 0.8.57
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.55
7
+ * The version of the OpenAPI document: 0.8.57
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.55
6
+ * The version of the OpenAPI document: 0.8.57
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.8.55
5
+ * The version of the OpenAPI document: 0.8.57
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1521,20 +1521,6 @@ export interface ValidationError {
1521
1521
  }
1522
1522
  export interface ValidationErrorLocInner {
1523
1523
  }
1524
- /**
1525
- * Request agent for chat response.
1526
- */
1527
- export interface X402MessageRequest {
1528
- 'chat_id'?: string | null;
1529
- 'app_id'?: string | null;
1530
- /**
1531
- * Content of the message
1532
- */
1533
- 'message': string;
1534
- 'search_mode'?: boolean | null;
1535
- 'super_mode'?: boolean | null;
1536
- 'attachments'?: Array<ChatMessageAttachment> | null;
1537
- }
1538
1524
  /**
1539
1525
  * AgentApi - axios parameter creator
1540
1526
  */
@@ -3863,11 +3849,10 @@ export declare const X402ApiAxiosParamCreator: (configuration?: Configuration) =
3863
3849
  * 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.
3864
3850
  * @summary Chat by x402
3865
3851
  * @param {string} aid Agent ID
3866
- * @param {X402MessageRequest} x402MessageRequest
3867
3852
  * @param {*} [options] Override http request option.
3868
3853
  * @throws {RequiredError}
3869
3854
  */
3870
- chatByX402: (aid: string, x402MessageRequest: X402MessageRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3855
+ chatByX402: (aid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3871
3856
  };
3872
3857
  /**
3873
3858
  * X402Api - functional programming interface
@@ -3877,11 +3862,10 @@ export declare const X402ApiFp: (configuration?: Configuration) => {
3877
3862
  * 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.
3878
3863
  * @summary Chat by x402
3879
3864
  * @param {string} aid Agent ID
3880
- * @param {X402MessageRequest} x402MessageRequest
3881
3865
  * @param {*} [options] Override http request option.
3882
3866
  * @throws {RequiredError}
3883
3867
  */
3884
- chatByX402(aid: string, x402MessageRequest: X402MessageRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChatMessage>>>;
3868
+ chatByX402(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChatMessage>>>;
3885
3869
  };
3886
3870
  /**
3887
3871
  * X402Api - factory interface
@@ -3891,11 +3875,10 @@ export declare const X402ApiFactory: (configuration?: Configuration, basePath?:
3891
3875
  * 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.
3892
3876
  * @summary Chat by x402
3893
3877
  * @param {string} aid Agent ID
3894
- * @param {X402MessageRequest} x402MessageRequest
3895
3878
  * @param {*} [options] Override http request option.
3896
3879
  * @throws {RequiredError}
3897
3880
  */
3898
- chatByX402(aid: string, x402MessageRequest: X402MessageRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ChatMessage>>;
3881
+ chatByX402(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ChatMessage>>;
3899
3882
  };
3900
3883
  /**
3901
3884
  * X402Api - object-oriented interface
@@ -3905,9 +3888,8 @@ export declare class X402Api extends BaseAPI {
3905
3888
  * 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.
3906
3889
  * @summary Chat by x402
3907
3890
  * @param {string} aid Agent ID
3908
- * @param {X402MessageRequest} x402MessageRequest
3909
3891
  * @param {*} [options] Override http request option.
3910
3892
  * @throws {RequiredError}
3911
3893
  */
3912
- chatByX402(aid: string, x402MessageRequest: X402MessageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage[], any, {}>>;
3894
+ chatByX402(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage[], any, {}>>;
3913
3895
  }
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.8.55
8
+ * The version of the OpenAPI document: 0.8.57
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -6508,23 +6508,20 @@ var X402ApiAxiosParamCreator = function (configuration) {
6508
6508
  * 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.
6509
6509
  * @summary Chat by x402
6510
6510
  * @param {string} aid Agent ID
6511
- * @param {X402MessageRequest} x402MessageRequest
6512
6511
  * @param {*} [options] Override http request option.
6513
6512
  * @throws {RequiredError}
6514
6513
  */
6515
- chatByX402: function (aid_1, x402MessageRequest_1) {
6514
+ chatByX402: function (aid_1) {
6516
6515
  var args_1 = [];
6517
- for (var _i = 2; _i < arguments.length; _i++) {
6518
- args_1[_i - 2] = arguments[_i];
6516
+ for (var _i = 1; _i < arguments.length; _i++) {
6517
+ args_1[_i - 1] = arguments[_i];
6519
6518
  }
6520
- return __awaiter(_this, __spreadArray([aid_1, x402MessageRequest_1], args_1, true), void 0, function (aid, x402MessageRequest, options) {
6519
+ return __awaiter(_this, __spreadArray([aid_1], args_1, true), void 0, function (aid, options) {
6521
6520
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
6522
6521
  if (options === void 0) { options = {}; }
6523
6522
  return __generator(this, function (_a) {
6524
6523
  // verify required parameter 'aid' is not null or undefined
6525
6524
  (0, common_1.assertParamExists)('chatByX402', 'aid', aid);
6526
- // verify required parameter 'x402MessageRequest' is not null or undefined
6527
- (0, common_1.assertParamExists)('chatByX402', 'x402MessageRequest', x402MessageRequest);
6528
6525
  localVarPath = "/x/{aid}"
6529
6526
  .replace("{".concat("aid", "}"), encodeURIComponent(String(aid)));
6530
6527
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -6534,11 +6531,9 @@ var X402ApiAxiosParamCreator = function (configuration) {
6534
6531
  localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
6535
6532
  localVarHeaderParameter = {};
6536
6533
  localVarQueryParameter = {};
6537
- localVarHeaderParameter['Content-Type'] = 'application/json';
6538
6534
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6539
6535
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6540
6536
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6541
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(x402MessageRequest, localVarRequestOptions, configuration);
6542
6537
  return [2 /*return*/, {
6543
6538
  url: (0, common_1.toPathString)(localVarUrlObj),
6544
6539
  options: localVarRequestOptions,
@@ -6559,17 +6554,16 @@ var X402ApiFp = function (configuration) {
6559
6554
  * 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.
6560
6555
  * @summary Chat by x402
6561
6556
  * @param {string} aid Agent ID
6562
- * @param {X402MessageRequest} x402MessageRequest
6563
6557
  * @param {*} [options] Override http request option.
6564
6558
  * @throws {RequiredError}
6565
6559
  */
6566
- chatByX402: function (aid, x402MessageRequest, options) {
6560
+ chatByX402: function (aid, options) {
6567
6561
  return __awaiter(this, void 0, void 0, function () {
6568
6562
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
6569
6563
  var _a, _b, _c;
6570
6564
  return __generator(this, function (_d) {
6571
6565
  switch (_d.label) {
6572
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.chatByX402(aid, x402MessageRequest, options)];
6566
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.chatByX402(aid, options)];
6573
6567
  case 1:
6574
6568
  localVarAxiosArgs = _d.sent();
6575
6569
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -6592,12 +6586,11 @@ var X402ApiFactory = function (configuration, basePath, axios) {
6592
6586
  * 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.
6593
6587
  * @summary Chat by x402
6594
6588
  * @param {string} aid Agent ID
6595
- * @param {X402MessageRequest} x402MessageRequest
6596
6589
  * @param {*} [options] Override http request option.
6597
6590
  * @throws {RequiredError}
6598
6591
  */
6599
- chatByX402: function (aid, x402MessageRequest, options) {
6600
- return localVarFp.chatByX402(aid, x402MessageRequest, options).then(function (request) { return request(axios, basePath); });
6592
+ chatByX402: function (aid, options) {
6593
+ return localVarFp.chatByX402(aid, options).then(function (request) { return request(axios, basePath); });
6601
6594
  },
6602
6595
  };
6603
6596
  };
@@ -6614,13 +6607,12 @@ var X402Api = /** @class */ (function (_super) {
6614
6607
  * 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.
6615
6608
  * @summary Chat by x402
6616
6609
  * @param {string} aid Agent ID
6617
- * @param {X402MessageRequest} x402MessageRequest
6618
6610
  * @param {*} [options] Override http request option.
6619
6611
  * @throws {RequiredError}
6620
6612
  */
6621
- X402Api.prototype.chatByX402 = function (aid, x402MessageRequest, options) {
6613
+ X402Api.prototype.chatByX402 = function (aid, options) {
6622
6614
  var _this = this;
6623
- return (0, exports.X402ApiFp)(this.configuration).chatByX402(aid, x402MessageRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
6615
+ return (0, exports.X402ApiFp)(this.configuration).chatByX402(aid, options).then(function (request) { return request(_this.axios, _this.basePath); });
6624
6616
  };
6625
6617
  return X402Api;
6626
6618
  }(base_1.BaseAPI));
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.8.55
5
+ * The version of the OpenAPI document: 0.8.57
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.8.55
8
+ * The version of the OpenAPI document: 0.8.57
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.8.55
5
+ * The version of the OpenAPI document: 0.8.57
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.8.55
8
+ * The version of the OpenAPI document: 0.8.57
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.8.55
5
+ * The version of the OpenAPI document: 0.8.57
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.55
7
+ * The version of the OpenAPI document: 0.8.57
8
8
  *
9
9
  *
10
10
  * 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.8.55
5
+ * The version of the OpenAPI document: 0.8.57
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.8.55
8
+ * The version of the OpenAPI document: 0.8.57
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -27,8 +27,8 @@ Name | Type | Description | Notes
27
27
  **supports_presence_penalty** | **boolean** | | [optional] [default to true]
28
28
  **api_base** | **string** | | [optional] [default to undefined]
29
29
  **timeout** | **number** | | [optional] [default to 180]
30
- **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-11-05T10:48:25.171+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-11-05T10:48:25.171+00:00]
30
+ **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-11-05T16:53:17.940+00:00]
31
+ **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-11-05T16:53:17.940+00:00]
32
32
  **provider_name** | **string** | | [default to undefined]
33
33
 
34
34
  ## Example
package/docs/X402Api.md CHANGED
@@ -7,7 +7,7 @@ All URIs are relative to *http://localhost*
7
7
  |[**chatByX402**](#chatbyx402) | **POST** /x/{aid} | Chat by x402|
8
8
 
9
9
  # **chatByX402**
10
- > Array<ChatMessage> chatByX402(x402MessageRequest)
10
+ > Array<ChatMessage> chatByX402()
11
11
 
12
12
  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.
13
13
 
@@ -16,19 +16,16 @@ Send a new message to a specific chat thread. The response is a list of messages
16
16
  ```typescript
17
17
  import {
18
18
  X402Api,
19
- Configuration,
20
- X402MessageRequest
19
+ Configuration
21
20
  } from '@crestal/nation-sdk';
22
21
 
23
22
  const configuration = new Configuration();
24
23
  const apiInstance = new X402Api(configuration);
25
24
 
26
25
  let aid: string; //Agent ID (default to undefined)
27
- let x402MessageRequest: X402MessageRequest; //
28
26
 
29
27
  const { status, data } = await apiInstance.chatByX402(
30
- aid,
31
- x402MessageRequest
28
+ aid
32
29
  );
33
30
  ```
34
31
 
@@ -36,7 +33,6 @@ const { status, data } = await apiInstance.chatByX402(
36
33
 
37
34
  |Name | Type | Description | Notes|
38
35
  |------------- | ------------- | ------------- | -------------|
39
- | **x402MessageRequest** | **X402MessageRequest**| | |
40
36
  | **aid** | [**string**] | Agent ID | defaults to undefined|
41
37
 
42
38
 
@@ -50,7 +46,7 @@ No authorization required
50
46
 
51
47
  ### HTTP request headers
52
48
 
53
- - **Content-Type**: application/json
49
+ - **Content-Type**: Not defined
54
50
  - **Accept**: application/json
55
51
 
56
52
 
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.8.55
7
+ * The version of the OpenAPI document: 0.8.57
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crestal/nation-sdk",
3
- "version": "0.8.55",
3
+ "version": "0.8.57",
4
4
  "description": "OpenAPI client for @crestal/nation-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -1,31 +0,0 @@
1
- # X402MessageRequest
2
-
3
- Request agent for chat response.
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **chat_id** | **string** | | [optional] [default to undefined]
10
- **app_id** | **string** | | [optional] [default to undefined]
11
- **message** | **string** | Content of the message | [default to undefined]
12
- **search_mode** | **boolean** | | [optional] [default to undefined]
13
- **super_mode** | **boolean** | | [optional] [default to undefined]
14
- **attachments** | [**Array&lt;ChatMessageAttachment&gt;**](ChatMessageAttachment.md) | | [optional] [default to undefined]
15
-
16
- ## Example
17
-
18
- ```typescript
19
- import { X402MessageRequest } from '@crestal/nation-sdk';
20
-
21
- const instance: X402MessageRequest = {
22
- chat_id,
23
- app_id,
24
- message,
25
- search_mode,
26
- super_mode,
27
- attachments,
28
- };
29
- ```
30
-
31
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)