@crestal/nation-sdk 0.8.30 → 0.8.31

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.
@@ -27,6 +27,7 @@ docs/AgentStatistics.md
27
27
  docs/AgentUpdate.md
28
28
  docs/AgentUserInput.md
29
29
  docs/Amount.md
30
+ docs/AppManagerRouterChatMessagesResponse.md
30
31
  docs/AssetInput.md
31
32
  docs/AssetOutput.md
32
33
  docs/AuthorType.md
@@ -48,7 +49,6 @@ docs/ChatMessageAttachment.md
48
49
  docs/ChatMessageAttachmentType.md
49
50
  docs/ChatMessageRequest.md
50
51
  docs/ChatMessageSkillCall.md
51
- docs/ChatMessagesResponse.md
52
52
  docs/ChatUpdateRequest.md
53
53
  docs/CreditAccount.md
54
54
  docs/CreditAmount.md
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @crestal/nation-sdk@0.8.30
1
+ ## @crestal/nation-sdk@0.8.31
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.30 --save
39
+ npm install @crestal/nation-sdk@0.8.31 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -99,6 +99,7 @@ Class | Method | HTTP request | Description
99
99
  *GeneratorApi* | [**getGenerationHistory**](docs/GeneratorApi.md#getgenerationhistory) | **GET** /generator/agent/generations/{project_id} | Get Generation Detail by Project ID
100
100
  *GeneratorApi* | [**getGenerations**](docs/GeneratorApi.md#getgenerations) | **GET** /generator/agent/generations | Get Generations List by User
101
101
  *HealthApi* | [**healthCheck**](docs/HealthApi.md#healthcheck) | **GET** /health | Health check endpoint
102
+ *ManagerApi* | [**getManagerMessages**](docs/ManagerApi.md#getmanagermessages) | **GET** /agents/{aid}/manager/messages | Get manager chat messages
102
103
  *ManagerApi* | [**sendManagerMessage**](docs/ManagerApi.md#sendmanagermessage) | **POST** /agents/{aid}/manager/messages | Chat with Agent Manager
103
104
  *MetadataApi* | [**getAgentPublicSchema**](docs/MetadataApi.md#getagentpublicschema) | **GET** /metadata/agent/public.json | Get public agent schema
104
105
  *MetadataApi* | [**getAgentPublicStrictSchema**](docs/MetadataApi.md#getagentpublicstrictschema) | **GET** /metadata/agent/public-strict.json | Get strict public agent schema
@@ -139,6 +140,7 @@ Class | Method | HTTP request | Description
139
140
  - [AgentUpdate](docs/AgentUpdate.md)
140
141
  - [AgentUserInput](docs/AgentUserInput.md)
141
142
  - [Amount](docs/Amount.md)
143
+ - [AppManagerRouterChatMessagesResponse](docs/AppManagerRouterChatMessagesResponse.md)
142
144
  - [AssetInput](docs/AssetInput.md)
143
145
  - [AssetOutput](docs/AssetOutput.md)
144
146
  - [AuthorType](docs/AuthorType.md)
@@ -159,7 +161,6 @@ Class | Method | HTTP request | Description
159
161
  - [ChatMessageAttachmentType](docs/ChatMessageAttachmentType.md)
160
162
  - [ChatMessageRequest](docs/ChatMessageRequest.md)
161
163
  - [ChatMessageSkillCall](docs/ChatMessageSkillCall.md)
162
- - [ChatMessagesResponse](docs/ChatMessagesResponse.md)
163
164
  - [ChatUpdateRequest](docs/ChatUpdateRequest.md)
164
165
  - [CreditAccount](docs/CreditAccount.md)
165
166
  - [CreditAmount](docs/CreditAmount.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.8.30
7
+ * The version of the OpenAPI document: 0.8.31
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -748,6 +748,14 @@ export type AgentUserInputShortTermMemoryStrategyEnum = typeof AgentUserInputSho
748
748
  */
749
749
  export interface Amount {
750
750
  }
751
+ /**
752
+ * Response model for chat messages with pagination.
753
+ */
754
+ export interface AppManagerRouterChatMessagesResponse {
755
+ 'data': Array<ChatMessage>;
756
+ 'has_more'?: boolean;
757
+ 'next_cursor'?: string | null;
758
+ }
751
759
  /**
752
760
  * Model for individual asset with symbol and balance.
753
761
  */
@@ -995,14 +1003,6 @@ export interface ChatMessageSkillCall {
995
1003
  'credit_event_id'?: string;
996
1004
  'credit_cost'?: string;
997
1005
  }
998
- /**
999
- * Response model for chat messages with pagination.
1000
- */
1001
- export interface ChatMessagesResponse {
1002
- 'data': Array<ChatMessage>;
1003
- 'has_more'?: boolean;
1004
- 'next_cursor'?: string | null;
1005
- }
1006
1006
  /**
1007
1007
  * Request model for updating a chat thread.
1008
1008
  */
@@ -3002,7 +3002,7 @@ export const AgentApiFp = function(configuration?: Configuration) {
3002
3002
  * @param {*} [options] Override http request option.
3003
3003
  * @throws {RequiredError}
3004
3004
  */
3005
- async getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessagesResponse>> {
3005
+ async getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppManagerRouterChatMessagesResponse>> {
3006
3006
  const localVarAxiosArgs = await localVarAxiosParamCreator.getSkillHistory(aid, cursor, limit, options);
3007
3007
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3008
3008
  const localVarOperationServerBasePath = operationServerMap['AgentApi.getSkillHistory']?.[localVarOperationServerIndex]?.url;
@@ -3219,7 +3219,7 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
3219
3219
  * @param {*} [options] Override http request option.
3220
3220
  * @throws {RequiredError}
3221
3221
  */
3222
- getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessagesResponse> {
3222
+ getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AppManagerRouterChatMessagesResponse> {
3223
3223
  return localVarFp.getSkillHistory(aid, cursor, limit, options).then((request) => request(axios, basePath));
3224
3224
  },
3225
3225
  /**
@@ -4175,7 +4175,7 @@ export const ChatApiFp = function(configuration?: Configuration) {
4175
4175
  * @param {*} [options] Override http request option.
4176
4176
  * @throws {RequiredError}
4177
4177
  */
4178
- async getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessagesResponse>> {
4178
+ async getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppManagerRouterChatMessagesResponse>> {
4179
4179
  const localVarAxiosArgs = await localVarAxiosParamCreator.getSkillHistory(aid, cursor, limit, options);
4180
4180
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4181
4181
  const localVarOperationServerBasePath = operationServerMap['ChatApi.getSkillHistory']?.[localVarOperationServerIndex]?.url;
@@ -4204,7 +4204,7 @@ export const ChatApiFp = function(configuration?: Configuration) {
4204
4204
  * @param {*} [options] Override http request option.
4205
4205
  * @throws {RequiredError}
4206
4206
  */
4207
- async listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessagesResponse>> {
4207
+ async listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppManagerRouterChatMessagesResponse>> {
4208
4208
  const localVarAxiosArgs = await localVarAxiosParamCreator.listMessagesInChat(aid, chatId, cursor, limit, options);
4209
4209
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4210
4210
  const localVarOperationServerBasePath = operationServerMap['ChatApi.listMessagesInChat']?.[localVarOperationServerIndex]?.url;
@@ -4219,7 +4219,7 @@ export const ChatApiFp = function(configuration?: Configuration) {
4219
4219
  * @param {*} [options] Override http request option.
4220
4220
  * @throws {RequiredError}
4221
4221
  */
4222
- async listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessagesResponse>> {
4222
+ async listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppManagerRouterChatMessagesResponse>> {
4223
4223
  const localVarAxiosArgs = await localVarAxiosParamCreator.listMessagesInDraft(aid, cursor, limit, options);
4224
4224
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4225
4225
  const localVarOperationServerBasePath = operationServerMap['ChatApi.listMessagesInDraft']?.[localVarOperationServerIndex]?.url;
@@ -4354,7 +4354,7 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
4354
4354
  * @param {*} [options] Override http request option.
4355
4355
  * @throws {RequiredError}
4356
4356
  */
4357
- getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessagesResponse> {
4357
+ getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AppManagerRouterChatMessagesResponse> {
4358
4358
  return localVarFp.getSkillHistory(aid, cursor, limit, options).then((request) => request(axios, basePath));
4359
4359
  },
4360
4360
  /**
@@ -4377,7 +4377,7 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
4377
4377
  * @param {*} [options] Override http request option.
4378
4378
  * @throws {RequiredError}
4379
4379
  */
4380
- listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessagesResponse> {
4380
+ listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AppManagerRouterChatMessagesResponse> {
4381
4381
  return localVarFp.listMessagesInChat(aid, chatId, cursor, limit, options).then((request) => request(axios, basePath));
4382
4382
  },
4383
4383
  /**
@@ -4389,7 +4389,7 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
4389
4389
  * @param {*} [options] Override http request option.
4390
4390
  * @throws {RequiredError}
4391
4391
  */
4392
- listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessagesResponse> {
4392
+ listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AppManagerRouterChatMessagesResponse> {
4393
4393
  return localVarFp.listMessagesInDraft(aid, cursor, limit, options).then((request) => request(axios, basePath));
4394
4394
  },
4395
4395
  /**
@@ -6121,6 +6121,54 @@ export class HealthApi extends BaseAPI {
6121
6121
  */
6122
6122
  export const ManagerApiAxiosParamCreator = function (configuration?: Configuration) {
6123
6123
  return {
6124
+ /**
6125
+ * Get the message history for an agent\'s manager chat session.
6126
+ * @summary Get manager chat messages
6127
+ * @param {string} aid Agent ID
6128
+ * @param {string | null} [cursor] Cursor for pagination (message id)
6129
+ * @param {number} [limit] Maximum number of messages to return
6130
+ * @param {*} [options] Override http request option.
6131
+ * @throws {RequiredError}
6132
+ */
6133
+ getManagerMessages: async (aid: string, cursor?: string | null, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6134
+ // verify required parameter 'aid' is not null or undefined
6135
+ assertParamExists('getManagerMessages', 'aid', aid)
6136
+ const localVarPath = `/agents/{aid}/manager/messages`
6137
+ .replace(`{${"aid"}}`, encodeURIComponent(String(aid)));
6138
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6139
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6140
+ let baseOptions;
6141
+ if (configuration) {
6142
+ baseOptions = configuration.baseOptions;
6143
+ }
6144
+
6145
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6146
+ const localVarHeaderParameter = {} as any;
6147
+ const localVarQueryParameter = {} as any;
6148
+
6149
+ // authentication HTTPBearer required
6150
+ // http bearer authentication required
6151
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
6152
+
6153
+ if (cursor !== undefined) {
6154
+ localVarQueryParameter['cursor'] = cursor;
6155
+ }
6156
+
6157
+ if (limit !== undefined) {
6158
+ localVarQueryParameter['limit'] = limit;
6159
+ }
6160
+
6161
+
6162
+
6163
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6164
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6165
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6166
+
6167
+ return {
6168
+ url: toPathString(localVarUrlObj),
6169
+ options: localVarRequestOptions,
6170
+ };
6171
+ },
6124
6172
  /**
6125
6173
  * Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
6126
6174
  * @summary Chat with Agent Manager
@@ -6174,6 +6222,21 @@ export const ManagerApiAxiosParamCreator = function (configuration?: Configurati
6174
6222
  export const ManagerApiFp = function(configuration?: Configuration) {
6175
6223
  const localVarAxiosParamCreator = ManagerApiAxiosParamCreator(configuration)
6176
6224
  return {
6225
+ /**
6226
+ * Get the message history for an agent\'s manager chat session.
6227
+ * @summary Get manager chat messages
6228
+ * @param {string} aid Agent ID
6229
+ * @param {string | null} [cursor] Cursor for pagination (message id)
6230
+ * @param {number} [limit] Maximum number of messages to return
6231
+ * @param {*} [options] Override http request option.
6232
+ * @throws {RequiredError}
6233
+ */
6234
+ async getManagerMessages(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppManagerRouterChatMessagesResponse>> {
6235
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getManagerMessages(aid, cursor, limit, options);
6236
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6237
+ const localVarOperationServerBasePath = operationServerMap['ManagerApi.getManagerMessages']?.[localVarOperationServerIndex]?.url;
6238
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6239
+ },
6177
6240
  /**
6178
6241
  * Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
6179
6242
  * @summary Chat with Agent Manager
@@ -6197,6 +6260,18 @@ export const ManagerApiFp = function(configuration?: Configuration) {
6197
6260
  export const ManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
6198
6261
  const localVarFp = ManagerApiFp(configuration)
6199
6262
  return {
6263
+ /**
6264
+ * Get the message history for an agent\'s manager chat session.
6265
+ * @summary Get manager chat messages
6266
+ * @param {string} aid Agent ID
6267
+ * @param {string | null} [cursor] Cursor for pagination (message id)
6268
+ * @param {number} [limit] Maximum number of messages to return
6269
+ * @param {*} [options] Override http request option.
6270
+ * @throws {RequiredError}
6271
+ */
6272
+ getManagerMessages(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AppManagerRouterChatMessagesResponse> {
6273
+ return localVarFp.getManagerMessages(aid, cursor, limit, options).then((request) => request(axios, basePath));
6274
+ },
6200
6275
  /**
6201
6276
  * Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
6202
6277
  * @summary Chat with Agent Manager
@@ -6215,6 +6290,19 @@ export const ManagerApiFactory = function (configuration?: Configuration, basePa
6215
6290
  * ManagerApi - object-oriented interface
6216
6291
  */
6217
6292
  export class ManagerApi extends BaseAPI {
6293
+ /**
6294
+ * Get the message history for an agent\'s manager chat session.
6295
+ * @summary Get manager chat messages
6296
+ * @param {string} aid Agent ID
6297
+ * @param {string | null} [cursor] Cursor for pagination (message id)
6298
+ * @param {number} [limit] Maximum number of messages to return
6299
+ * @param {*} [options] Override http request option.
6300
+ * @throws {RequiredError}
6301
+ */
6302
+ public getManagerMessages(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
6303
+ return ManagerApiFp(this.configuration).getManagerMessages(aid, cursor, limit, options).then((request) => request(this.axios, this.basePath));
6304
+ }
6305
+
6218
6306
  /**
6219
6307
  * Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
6220
6308
  * @summary Chat with Agent Manager
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.30
7
+ * The version of the OpenAPI document: 0.8.31
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.30
7
+ * The version of the OpenAPI document: 0.8.31
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.8.30
7
+ * The version of the OpenAPI document: 0.8.31
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.8.30
5
+ * The version of the OpenAPI document: 0.8.31
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -754,6 +754,14 @@ export type AgentUserInputShortTermMemoryStrategyEnum = typeof AgentUserInputSho
754
754
  */
755
755
  export interface Amount {
756
756
  }
757
+ /**
758
+ * Response model for chat messages with pagination.
759
+ */
760
+ export interface AppManagerRouterChatMessagesResponse {
761
+ 'data': Array<ChatMessage>;
762
+ 'has_more'?: boolean;
763
+ 'next_cursor'?: string | null;
764
+ }
757
765
  /**
758
766
  * Model for individual asset with symbol and balance.
759
767
  */
@@ -993,14 +1001,6 @@ export interface ChatMessageSkillCall {
993
1001
  'credit_event_id'?: string;
994
1002
  'credit_cost'?: string;
995
1003
  }
996
- /**
997
- * Response model for chat messages with pagination.
998
- */
999
- export interface ChatMessagesResponse {
1000
- 'data': Array<ChatMessage>;
1001
- 'has_more'?: boolean;
1002
- 'next_cursor'?: string | null;
1003
- }
1004
1004
  /**
1005
1005
  * Request model for updating a chat thread.
1006
1006
  */
@@ -2362,7 +2362,7 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
2362
2362
  * @param {*} [options] Override http request option.
2363
2363
  * @throws {RequiredError}
2364
2364
  */
2365
- getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessagesResponse>>;
2365
+ getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppManagerRouterChatMessagesResponse>>;
2366
2366
  /**
2367
2367
  * Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
2368
2368
  * @summary Import Agent
@@ -2514,7 +2514,7 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
2514
2514
  * @param {*} [options] Override http request option.
2515
2515
  * @throws {RequiredError}
2516
2516
  */
2517
- getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessagesResponse>;
2517
+ getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AppManagerRouterChatMessagesResponse>;
2518
2518
  /**
2519
2519
  * Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
2520
2520
  * @summary Import Agent
@@ -2666,7 +2666,7 @@ export declare class AgentApi extends BaseAPI {
2666
2666
  * @param {*} [options] Override http request option.
2667
2667
  * @throws {RequiredError}
2668
2668
  */
2669
- getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any, {}>>;
2669
+ getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AppManagerRouterChatMessagesResponse, any, {}>>;
2670
2670
  /**
2671
2671
  * Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
2672
2672
  * @summary Import Agent
@@ -2917,7 +2917,7 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
2917
2917
  * @param {*} [options] Override http request option.
2918
2918
  * @throws {RequiredError}
2919
2919
  */
2920
- getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessagesResponse>>;
2920
+ getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppManagerRouterChatMessagesResponse>>;
2921
2921
  /**
2922
2922
  * Retrieve all chat threads associated with a specific agent for the current user.
2923
2923
  * @summary List chat threads for an agent
@@ -2936,7 +2936,7 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
2936
2936
  * @param {*} [options] Override http request option.
2937
2937
  * @throws {RequiredError}
2938
2938
  */
2939
- listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessagesResponse>>;
2939
+ listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppManagerRouterChatMessagesResponse>>;
2940
2940
  /**
2941
2941
  * Retrieve the message history for the draft chat session of an agent with cursor-based pagination.
2942
2942
  * @summary List messages in an agent draft session
@@ -2946,7 +2946,7 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
2946
2946
  * @param {*} [options] Override http request option.
2947
2947
  * @throws {RequiredError}
2948
2948
  */
2949
- listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessagesResponse>>;
2949
+ listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppManagerRouterChatMessagesResponse>>;
2950
2950
  /**
2951
2951
  * Retry sending the last message in a specific chat thread. If the last message is from an agent/system, returns all messages after the last user message. If the last message is from a user, generates a new agent response. Only works with non-streaming mode.
2952
2952
  * @summary Retry a message in a chat thread
@@ -3042,7 +3042,7 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
3042
3042
  * @param {*} [options] Override http request option.
3043
3043
  * @throws {RequiredError}
3044
3044
  */
3045
- getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessagesResponse>;
3045
+ getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AppManagerRouterChatMessagesResponse>;
3046
3046
  /**
3047
3047
  * Retrieve all chat threads associated with a specific agent for the current user.
3048
3048
  * @summary List chat threads for an agent
@@ -3061,7 +3061,7 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
3061
3061
  * @param {*} [options] Override http request option.
3062
3062
  * @throws {RequiredError}
3063
3063
  */
3064
- listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessagesResponse>;
3064
+ listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AppManagerRouterChatMessagesResponse>;
3065
3065
  /**
3066
3066
  * Retrieve the message history for the draft chat session of an agent with cursor-based pagination.
3067
3067
  * @summary List messages in an agent draft session
@@ -3071,7 +3071,7 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
3071
3071
  * @param {*} [options] Override http request option.
3072
3072
  * @throws {RequiredError}
3073
3073
  */
3074
- listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessagesResponse>;
3074
+ listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AppManagerRouterChatMessagesResponse>;
3075
3075
  /**
3076
3076
  * Retry sending the last message in a specific chat thread. If the last message is from an agent/system, returns all messages after the last user message. If the last message is from a user, generates a new agent response. Only works with non-streaming mode.
3077
3077
  * @summary Retry a message in a chat thread
@@ -3167,7 +3167,7 @@ export declare class ChatApi extends BaseAPI {
3167
3167
  * @param {*} [options] Override http request option.
3168
3168
  * @throws {RequiredError}
3169
3169
  */
3170
- getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any, {}>>;
3170
+ getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AppManagerRouterChatMessagesResponse, any, {}>>;
3171
3171
  /**
3172
3172
  * Retrieve all chat threads associated with a specific agent for the current user.
3173
3173
  * @summary List chat threads for an agent
@@ -3186,7 +3186,7 @@ export declare class ChatApi extends BaseAPI {
3186
3186
  * @param {*} [options] Override http request option.
3187
3187
  * @throws {RequiredError}
3188
3188
  */
3189
- listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any, {}>>;
3189
+ listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AppManagerRouterChatMessagesResponse, any, {}>>;
3190
3190
  /**
3191
3191
  * Retrieve the message history for the draft chat session of an agent with cursor-based pagination.
3192
3192
  * @summary List messages in an agent draft session
@@ -3196,7 +3196,7 @@ export declare class ChatApi extends BaseAPI {
3196
3196
  * @param {*} [options] Override http request option.
3197
3197
  * @throws {RequiredError}
3198
3198
  */
3199
- listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any, {}>>;
3199
+ listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AppManagerRouterChatMessagesResponse, any, {}>>;
3200
3200
  /**
3201
3201
  * Retry sending the last message in a specific chat thread. If the last message is from an agent/system, returns all messages after the last user message. If the last message is from a user, generates a new agent response. Only works with non-streaming mode.
3202
3202
  * @summary Retry a message in a chat thread
@@ -3932,6 +3932,16 @@ export declare class HealthApi extends BaseAPI {
3932
3932
  * ManagerApi - axios parameter creator
3933
3933
  */
3934
3934
  export declare const ManagerApiAxiosParamCreator: (configuration?: Configuration) => {
3935
+ /**
3936
+ * Get the message history for an agent\'s manager chat session.
3937
+ * @summary Get manager chat messages
3938
+ * @param {string} aid Agent ID
3939
+ * @param {string | null} [cursor] Cursor for pagination (message id)
3940
+ * @param {number} [limit] Maximum number of messages to return
3941
+ * @param {*} [options] Override http request option.
3942
+ * @throws {RequiredError}
3943
+ */
3944
+ getManagerMessages: (aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3935
3945
  /**
3936
3946
  * Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
3937
3947
  * @summary Chat with Agent Manager
@@ -3946,6 +3956,16 @@ export declare const ManagerApiAxiosParamCreator: (configuration?: Configuration
3946
3956
  * ManagerApi - functional programming interface
3947
3957
  */
3948
3958
  export declare const ManagerApiFp: (configuration?: Configuration) => {
3959
+ /**
3960
+ * Get the message history for an agent\'s manager chat session.
3961
+ * @summary Get manager chat messages
3962
+ * @param {string} aid Agent ID
3963
+ * @param {string | null} [cursor] Cursor for pagination (message id)
3964
+ * @param {number} [limit] Maximum number of messages to return
3965
+ * @param {*} [options] Override http request option.
3966
+ * @throws {RequiredError}
3967
+ */
3968
+ getManagerMessages(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppManagerRouterChatMessagesResponse>>;
3949
3969
  /**
3950
3970
  * Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
3951
3971
  * @summary Chat with Agent Manager
@@ -3960,6 +3980,16 @@ export declare const ManagerApiFp: (configuration?: Configuration) => {
3960
3980
  * ManagerApi - factory interface
3961
3981
  */
3962
3982
  export declare const ManagerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3983
+ /**
3984
+ * Get the message history for an agent\'s manager chat session.
3985
+ * @summary Get manager chat messages
3986
+ * @param {string} aid Agent ID
3987
+ * @param {string | null} [cursor] Cursor for pagination (message id)
3988
+ * @param {number} [limit] Maximum number of messages to return
3989
+ * @param {*} [options] Override http request option.
3990
+ * @throws {RequiredError}
3991
+ */
3992
+ getManagerMessages(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AppManagerRouterChatMessagesResponse>;
3963
3993
  /**
3964
3994
  * Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
3965
3995
  * @summary Chat with Agent Manager
@@ -3974,6 +4004,16 @@ export declare const ManagerApiFactory: (configuration?: Configuration, basePath
3974
4004
  * ManagerApi - object-oriented interface
3975
4005
  */
3976
4006
  export declare class ManagerApi extends BaseAPI {
4007
+ /**
4008
+ * Get the message history for an agent\'s manager chat session.
4009
+ * @summary Get manager chat messages
4010
+ * @param {string} aid Agent ID
4011
+ * @param {string | null} [cursor] Cursor for pagination (message id)
4012
+ * @param {number} [limit] Maximum number of messages to return
4013
+ * @param {*} [options] Override http request option.
4014
+ * @throws {RequiredError}
4015
+ */
4016
+ getManagerMessages(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AppManagerRouterChatMessagesResponse, any, {}>>;
3977
4017
  /**
3978
4018
  * Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
3979
4019
  * @summary Chat with Agent Manager
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.30
8
+ * The version of the OpenAPI document: 0.8.31
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5167,6 +5167,61 @@ exports.HealthApi = HealthApi;
5167
5167
  var ManagerApiAxiosParamCreator = function (configuration) {
5168
5168
  var _this = this;
5169
5169
  return {
5170
+ /**
5171
+ * Get the message history for an agent\'s manager chat session.
5172
+ * @summary Get manager chat messages
5173
+ * @param {string} aid Agent ID
5174
+ * @param {string | null} [cursor] Cursor for pagination (message id)
5175
+ * @param {number} [limit] Maximum number of messages to return
5176
+ * @param {*} [options] Override http request option.
5177
+ * @throws {RequiredError}
5178
+ */
5179
+ getManagerMessages: function (aid_1, cursor_1, limit_1) {
5180
+ var args_1 = [];
5181
+ for (var _i = 3; _i < arguments.length; _i++) {
5182
+ args_1[_i - 3] = arguments[_i];
5183
+ }
5184
+ return __awaiter(_this, __spreadArray([aid_1, cursor_1, limit_1], args_1, true), void 0, function (aid, cursor, limit, options) {
5185
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
5186
+ if (options === void 0) { options = {}; }
5187
+ return __generator(this, function (_a) {
5188
+ switch (_a.label) {
5189
+ case 0:
5190
+ // verify required parameter 'aid' is not null or undefined
5191
+ (0, common_1.assertParamExists)('getManagerMessages', 'aid', aid);
5192
+ localVarPath = "/agents/{aid}/manager/messages"
5193
+ .replace("{".concat("aid", "}"), encodeURIComponent(String(aid)));
5194
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5195
+ if (configuration) {
5196
+ baseOptions = configuration.baseOptions;
5197
+ }
5198
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
5199
+ localVarHeaderParameter = {};
5200
+ localVarQueryParameter = {};
5201
+ // authentication HTTPBearer required
5202
+ // http bearer authentication required
5203
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
5204
+ case 1:
5205
+ // authentication HTTPBearer required
5206
+ // http bearer authentication required
5207
+ _a.sent();
5208
+ if (cursor !== undefined) {
5209
+ localVarQueryParameter['cursor'] = cursor;
5210
+ }
5211
+ if (limit !== undefined) {
5212
+ localVarQueryParameter['limit'] = limit;
5213
+ }
5214
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5215
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5216
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5217
+ return [2 /*return*/, {
5218
+ url: (0, common_1.toPathString)(localVarUrlObj),
5219
+ options: localVarRequestOptions,
5220
+ }];
5221
+ }
5222
+ });
5223
+ });
5224
+ },
5170
5225
  /**
5171
5226
  * Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
5172
5227
  * @summary Chat with Agent Manager
@@ -5228,6 +5283,31 @@ exports.ManagerApiAxiosParamCreator = ManagerApiAxiosParamCreator;
5228
5283
  var ManagerApiFp = function (configuration) {
5229
5284
  var localVarAxiosParamCreator = (0, exports.ManagerApiAxiosParamCreator)(configuration);
5230
5285
  return {
5286
+ /**
5287
+ * Get the message history for an agent\'s manager chat session.
5288
+ * @summary Get manager chat messages
5289
+ * @param {string} aid Agent ID
5290
+ * @param {string | null} [cursor] Cursor for pagination (message id)
5291
+ * @param {number} [limit] Maximum number of messages to return
5292
+ * @param {*} [options] Override http request option.
5293
+ * @throws {RequiredError}
5294
+ */
5295
+ getManagerMessages: function (aid, cursor, limit, options) {
5296
+ return __awaiter(this, void 0, void 0, function () {
5297
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
5298
+ var _a, _b, _c;
5299
+ return __generator(this, function (_d) {
5300
+ switch (_d.label) {
5301
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getManagerMessages(aid, cursor, limit, options)];
5302
+ case 1:
5303
+ localVarAxiosArgs = _d.sent();
5304
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5305
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerApi.getManagerMessages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5306
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
5307
+ }
5308
+ });
5309
+ });
5310
+ },
5231
5311
  /**
5232
5312
  * Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
5233
5313
  * @summary Chat with Agent Manager
@@ -5261,6 +5341,18 @@ exports.ManagerApiFp = ManagerApiFp;
5261
5341
  var ManagerApiFactory = function (configuration, basePath, axios) {
5262
5342
  var localVarFp = (0, exports.ManagerApiFp)(configuration);
5263
5343
  return {
5344
+ /**
5345
+ * Get the message history for an agent\'s manager chat session.
5346
+ * @summary Get manager chat messages
5347
+ * @param {string} aid Agent ID
5348
+ * @param {string | null} [cursor] Cursor for pagination (message id)
5349
+ * @param {number} [limit] Maximum number of messages to return
5350
+ * @param {*} [options] Override http request option.
5351
+ * @throws {RequiredError}
5352
+ */
5353
+ getManagerMessages: function (aid, cursor, limit, options) {
5354
+ return localVarFp.getManagerMessages(aid, cursor, limit, options).then(function (request) { return request(axios, basePath); });
5355
+ },
5264
5356
  /**
5265
5357
  * Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
5266
5358
  * @summary Chat with Agent Manager
@@ -5283,6 +5375,19 @@ var ManagerApi = /** @class */ (function (_super) {
5283
5375
  function ManagerApi() {
5284
5376
  return _super !== null && _super.apply(this, arguments) || this;
5285
5377
  }
5378
+ /**
5379
+ * Get the message history for an agent\'s manager chat session.
5380
+ * @summary Get manager chat messages
5381
+ * @param {string} aid Agent ID
5382
+ * @param {string | null} [cursor] Cursor for pagination (message id)
5383
+ * @param {number} [limit] Maximum number of messages to return
5384
+ * @param {*} [options] Override http request option.
5385
+ * @throws {RequiredError}
5386
+ */
5387
+ ManagerApi.prototype.getManagerMessages = function (aid, cursor, limit, options) {
5388
+ var _this = this;
5389
+ return (0, exports.ManagerApiFp)(this.configuration).getManagerMessages(aid, cursor, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
5390
+ };
5286
5391
  /**
5287
5392
  * Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
5288
5393
  * @summary Chat with Agent Manager
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.30
5
+ * The version of the OpenAPI document: 0.8.31
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.30
8
+ * The version of the OpenAPI document: 0.8.31
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.30
5
+ * The version of the OpenAPI document: 0.8.31
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.30
8
+ * The version of the OpenAPI document: 0.8.31
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.30
5
+ * The version of the OpenAPI document: 0.8.31
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.8.30
8
+ * The version of the OpenAPI document: 0.8.31
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.8.30
5
+ * The version of the OpenAPI document: 0.8.31
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.30
8
+ * The version of the OpenAPI document: 0.8.31
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/AgentApi.md CHANGED
@@ -461,7 +461,7 @@ No authorization required
461
461
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
462
462
 
463
463
  # **getSkillHistory**
464
- > ChatMessagesResponse getSkillHistory()
464
+ > AppManagerRouterChatMessagesResponse getSkillHistory()
465
465
 
466
466
  Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
467
467
 
@@ -498,7 +498,7 @@ const { status, data } = await apiInstance.getSkillHistory(
498
498
 
499
499
  ### Return type
500
500
 
501
- **ChatMessagesResponse**
501
+ **AppManagerRouterChatMessagesResponse**
502
502
 
503
503
  ### Authorization
504
504
 
@@ -1,4 +1,4 @@
1
- # ChatMessagesResponse
1
+ # AppManagerRouterChatMessagesResponse
2
2
 
3
3
  Response model for chat messages with pagination.
4
4
 
@@ -13,9 +13,9 @@ Name | Type | Description | Notes
13
13
  ## Example
14
14
 
15
15
  ```typescript
16
- import { ChatMessagesResponse } from '@crestal/nation-sdk';
16
+ import { AppManagerRouterChatMessagesResponse } from '@crestal/nation-sdk';
17
17
 
18
- const instance: ChatMessagesResponse = {
18
+ const instance: AppManagerRouterChatMessagesResponse = {
19
19
  data,
20
20
  has_more,
21
21
  next_cursor,
package/docs/ChatApi.md CHANGED
@@ -288,7 +288,7 @@ const { status, data } = await apiInstance.getMessageById(
288
288
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
289
289
 
290
290
  # **getSkillHistory**
291
- > ChatMessagesResponse getSkillHistory()
291
+ > AppManagerRouterChatMessagesResponse getSkillHistory()
292
292
 
293
293
  Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
294
294
 
@@ -325,7 +325,7 @@ const { status, data } = await apiInstance.getSkillHistory(
325
325
 
326
326
  ### Return type
327
327
 
328
- **ChatMessagesResponse**
328
+ **AppManagerRouterChatMessagesResponse**
329
329
 
330
330
  ### Authorization
331
331
 
@@ -398,7 +398,7 @@ const { status, data } = await apiInstance.listChatsForAgent(
398
398
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
399
399
 
400
400
  # **listMessagesInChat**
401
- > ChatMessagesResponse listMessagesInChat()
401
+ > AppManagerRouterChatMessagesResponse listMessagesInChat()
402
402
 
403
403
  Retrieve the message history for a specific chat thread with cursor-based pagination.
404
404
 
@@ -438,7 +438,7 @@ const { status, data } = await apiInstance.listMessagesInChat(
438
438
 
439
439
  ### Return type
440
440
 
441
- **ChatMessagesResponse**
441
+ **AppManagerRouterChatMessagesResponse**
442
442
 
443
443
  ### Authorization
444
444
 
@@ -459,7 +459,7 @@ const { status, data } = await apiInstance.listMessagesInChat(
459
459
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
460
460
 
461
461
  # **listMessagesInDraft**
462
- > ChatMessagesResponse listMessagesInDraft()
462
+ > AppManagerRouterChatMessagesResponse listMessagesInDraft()
463
463
 
464
464
  Retrieve the message history for the draft chat session of an agent with cursor-based pagination.
465
465
 
@@ -496,7 +496,7 @@ const { status, data } = await apiInstance.listMessagesInDraft(
496
496
 
497
497
  ### Return type
498
498
 
499
- **ChatMessagesResponse**
499
+ **AppManagerRouterChatMessagesResponse**
500
500
 
501
501
  ### Authorization
502
502
 
@@ -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-10-27T10:11:21.423+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-27T10:11:21.423+00:00]
30
+ **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-10-28T05:11:24.764+00:00]
31
+ **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-28T05:11:24.764+00:00]
32
32
  **provider_name** | **string** | | [default to undefined]
33
33
 
34
34
  ## Example
@@ -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-10-27T10:11:21.423+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-27T10:11:21.423+00:00]
30
+ **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-10-28T05:11:24.764+00:00]
31
+ **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-28T05:11:24.764+00:00]
32
32
  **provider_name** | **string** | | [default to undefined]
33
33
 
34
34
  ## Example
@@ -4,8 +4,67 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**getManagerMessages**](#getmanagermessages) | **GET** /agents/{aid}/manager/messages | Get manager chat messages|
7
8
  |[**sendManagerMessage**](#sendmanagermessage) | **POST** /agents/{aid}/manager/messages | Chat with Agent Manager|
8
9
 
10
+ # **getManagerMessages**
11
+ > AppManagerRouterChatMessagesResponse getManagerMessages()
12
+
13
+ Get the message history for an agent\'s manager chat session.
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ ManagerApi,
20
+ Configuration
21
+ } from '@crestal/nation-sdk';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new ManagerApi(configuration);
25
+
26
+ let aid: string; //Agent ID (default to undefined)
27
+ let cursor: string; //Cursor for pagination (message id) (optional) (default to undefined)
28
+ let limit: number; //Maximum number of messages to return (optional) (default to 20)
29
+
30
+ const { status, data } = await apiInstance.getManagerMessages(
31
+ aid,
32
+ cursor,
33
+ limit
34
+ );
35
+ ```
36
+
37
+ ### Parameters
38
+
39
+ |Name | Type | Description | Notes|
40
+ |------------- | ------------- | ------------- | -------------|
41
+ | **aid** | [**string**] | Agent ID | defaults to undefined|
42
+ | **cursor** | [**string**] | Cursor for pagination (message id) | (optional) defaults to undefined|
43
+ | **limit** | [**number**] | Maximum number of messages to return | (optional) defaults to 20|
44
+
45
+
46
+ ### Return type
47
+
48
+ **AppManagerRouterChatMessagesResponse**
49
+
50
+ ### Authorization
51
+
52
+ [HTTPBearer](../README.md#HTTPBearer)
53
+
54
+ ### HTTP request headers
55
+
56
+ - **Content-Type**: Not defined
57
+ - **Accept**: application/json
58
+
59
+
60
+ ### HTTP response details
61
+ | Status code | Description | Response headers |
62
+ |-------------|-------------|------------------|
63
+ |**200** | Successful Response | - |
64
+ |**422** | Validation Error | - |
65
+
66
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
67
+
9
68
  # **sendManagerMessage**
10
69
  > Array<ChatMessage> sendManagerMessage(managerMessageRequest)
11
70
 
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.30
7
+ * The version of the OpenAPI document: 0.8.31
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.30",
3
+ "version": "0.8.31",
4
4
  "description": "OpenAPI client for @crestal/nation-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {