@crestal/nation-sdk 0.8.29 → 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.29
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.29 --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.29
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).
@@ -94,15 +94,10 @@ export const AgentWalletProviderEnum = {
94
94
  export type AgentWalletProviderEnum = typeof AgentWalletProviderEnum[keyof typeof AgentWalletProviderEnum];
95
95
  export const AgentNetworkIdEnum = {
96
96
  BaseMainnet: 'base-mainnet',
97
- BaseSepolia: 'base-sepolia',
98
97
  EthereumMainnet: 'ethereum-mainnet',
99
- EthereumSepolia: 'ethereum-sepolia',
100
98
  PolygonMainnet: 'polygon-mainnet',
101
- PolygonMumbai: 'polygon-mumbai',
102
99
  ArbitrumMainnet: 'arbitrum-mainnet',
103
- ArbitrumSepolia: 'arbitrum-sepolia',
104
100
  OptimismMainnet: 'optimism-mainnet',
105
- OptimismSepolia: 'optimism-sepolia',
106
101
  Solana: 'solana'
107
102
  } as const;
108
103
 
@@ -229,15 +224,10 @@ export const AgentCreateWalletProviderEnum = {
229
224
  export type AgentCreateWalletProviderEnum = typeof AgentCreateWalletProviderEnum[keyof typeof AgentCreateWalletProviderEnum];
230
225
  export const AgentCreateNetworkIdEnum = {
231
226
  BaseMainnet: 'base-mainnet',
232
- BaseSepolia: 'base-sepolia',
233
227
  EthereumMainnet: 'ethereum-mainnet',
234
- EthereumSepolia: 'ethereum-sepolia',
235
228
  PolygonMainnet: 'polygon-mainnet',
236
- PolygonMumbai: 'polygon-mumbai',
237
229
  ArbitrumMainnet: 'arbitrum-mainnet',
238
- ArbitrumSepolia: 'arbitrum-sepolia',
239
230
  OptimismMainnet: 'optimism-mainnet',
240
- OptimismSepolia: 'optimism-sepolia',
241
231
  Solana: 'solana'
242
232
  } as const;
243
233
 
@@ -323,15 +313,10 @@ export const AgentDraftWalletProviderEnum = {
323
313
  export type AgentDraftWalletProviderEnum = typeof AgentDraftWalletProviderEnum[keyof typeof AgentDraftWalletProviderEnum];
324
314
  export const AgentDraftNetworkIdEnum = {
325
315
  BaseMainnet: 'base-mainnet',
326
- BaseSepolia: 'base-sepolia',
327
316
  EthereumMainnet: 'ethereum-mainnet',
328
- EthereumSepolia: 'ethereum-sepolia',
329
317
  PolygonMainnet: 'polygon-mainnet',
330
- PolygonMumbai: 'polygon-mumbai',
331
318
  ArbitrumMainnet: 'arbitrum-mainnet',
332
- ArbitrumSepolia: 'arbitrum-sepolia',
333
319
  OptimismMainnet: 'optimism-mainnet',
334
- OptimismSepolia: 'optimism-sepolia',
335
320
  Solana: 'solana'
336
321
  } as const;
337
322
 
@@ -538,15 +523,10 @@ export const AgentResponseWalletProviderEnum = {
538
523
  export type AgentResponseWalletProviderEnum = typeof AgentResponseWalletProviderEnum[keyof typeof AgentResponseWalletProviderEnum];
539
524
  export const AgentResponseNetworkIdEnum = {
540
525
  BaseMainnet: 'base-mainnet',
541
- BaseSepolia: 'base-sepolia',
542
526
  EthereumMainnet: 'ethereum-mainnet',
543
- EthereumSepolia: 'ethereum-sepolia',
544
527
  PolygonMainnet: 'polygon-mainnet',
545
- PolygonMumbai: 'polygon-mumbai',
546
528
  ArbitrumMainnet: 'arbitrum-mainnet',
547
- ArbitrumSepolia: 'arbitrum-sepolia',
548
529
  OptimismMainnet: 'optimism-mainnet',
549
- OptimismSepolia: 'optimism-sepolia',
550
530
  Solana: 'solana'
551
531
  } as const;
552
532
 
@@ -694,15 +674,10 @@ export const AgentUpdateWalletProviderEnum = {
694
674
  export type AgentUpdateWalletProviderEnum = typeof AgentUpdateWalletProviderEnum[keyof typeof AgentUpdateWalletProviderEnum];
695
675
  export const AgentUpdateNetworkIdEnum = {
696
676
  BaseMainnet: 'base-mainnet',
697
- BaseSepolia: 'base-sepolia',
698
677
  EthereumMainnet: 'ethereum-mainnet',
699
- EthereumSepolia: 'ethereum-sepolia',
700
678
  PolygonMainnet: 'polygon-mainnet',
701
- PolygonMumbai: 'polygon-mumbai',
702
679
  ArbitrumMainnet: 'arbitrum-mainnet',
703
- ArbitrumSepolia: 'arbitrum-sepolia',
704
680
  OptimismMainnet: 'optimism-mainnet',
705
- OptimismSepolia: 'optimism-sepolia',
706
681
  Solana: 'solana'
707
682
  } as const;
708
683
 
@@ -753,15 +728,10 @@ export const AgentUserInputWalletProviderEnum = {
753
728
  export type AgentUserInputWalletProviderEnum = typeof AgentUserInputWalletProviderEnum[keyof typeof AgentUserInputWalletProviderEnum];
754
729
  export const AgentUserInputNetworkIdEnum = {
755
730
  BaseMainnet: 'base-mainnet',
756
- BaseSepolia: 'base-sepolia',
757
731
  EthereumMainnet: 'ethereum-mainnet',
758
- EthereumSepolia: 'ethereum-sepolia',
759
732
  PolygonMainnet: 'polygon-mainnet',
760
- PolygonMumbai: 'polygon-mumbai',
761
733
  ArbitrumMainnet: 'arbitrum-mainnet',
762
- ArbitrumSepolia: 'arbitrum-sepolia',
763
734
  OptimismMainnet: 'optimism-mainnet',
764
- OptimismSepolia: 'optimism-sepolia',
765
735
  Solana: 'solana'
766
736
  } as const;
767
737
 
@@ -778,6 +748,14 @@ export type AgentUserInputShortTermMemoryStrategyEnum = typeof AgentUserInputSho
778
748
  */
779
749
  export interface Amount {
780
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
+ }
781
759
  /**
782
760
  * Model for individual asset with symbol and balance.
783
761
  */
@@ -1025,14 +1003,6 @@ export interface ChatMessageSkillCall {
1025
1003
  'credit_event_id'?: string;
1026
1004
  'credit_cost'?: string;
1027
1005
  }
1028
- /**
1029
- * Response model for chat messages with pagination.
1030
- */
1031
- export interface ChatMessagesResponse {
1032
- 'data': Array<ChatMessage>;
1033
- 'has_more'?: boolean;
1034
- 'next_cursor'?: string | null;
1035
- }
1036
1006
  /**
1037
1007
  * Request model for updating a chat thread.
1038
1008
  */
@@ -3032,7 +3002,7 @@ export const AgentApiFp = function(configuration?: Configuration) {
3032
3002
  * @param {*} [options] Override http request option.
3033
3003
  * @throws {RequiredError}
3034
3004
  */
3035
- 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>> {
3036
3006
  const localVarAxiosArgs = await localVarAxiosParamCreator.getSkillHistory(aid, cursor, limit, options);
3037
3007
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3038
3008
  const localVarOperationServerBasePath = operationServerMap['AgentApi.getSkillHistory']?.[localVarOperationServerIndex]?.url;
@@ -3249,7 +3219,7 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
3249
3219
  * @param {*} [options] Override http request option.
3250
3220
  * @throws {RequiredError}
3251
3221
  */
3252
- 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> {
3253
3223
  return localVarFp.getSkillHistory(aid, cursor, limit, options).then((request) => request(axios, basePath));
3254
3224
  },
3255
3225
  /**
@@ -4205,7 +4175,7 @@ export const ChatApiFp = function(configuration?: Configuration) {
4205
4175
  * @param {*} [options] Override http request option.
4206
4176
  * @throws {RequiredError}
4207
4177
  */
4208
- 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>> {
4209
4179
  const localVarAxiosArgs = await localVarAxiosParamCreator.getSkillHistory(aid, cursor, limit, options);
4210
4180
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4211
4181
  const localVarOperationServerBasePath = operationServerMap['ChatApi.getSkillHistory']?.[localVarOperationServerIndex]?.url;
@@ -4234,7 +4204,7 @@ export const ChatApiFp = function(configuration?: Configuration) {
4234
4204
  * @param {*} [options] Override http request option.
4235
4205
  * @throws {RequiredError}
4236
4206
  */
4237
- 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>> {
4238
4208
  const localVarAxiosArgs = await localVarAxiosParamCreator.listMessagesInChat(aid, chatId, cursor, limit, options);
4239
4209
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4240
4210
  const localVarOperationServerBasePath = operationServerMap['ChatApi.listMessagesInChat']?.[localVarOperationServerIndex]?.url;
@@ -4249,7 +4219,7 @@ export const ChatApiFp = function(configuration?: Configuration) {
4249
4219
  * @param {*} [options] Override http request option.
4250
4220
  * @throws {RequiredError}
4251
4221
  */
4252
- 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>> {
4253
4223
  const localVarAxiosArgs = await localVarAxiosParamCreator.listMessagesInDraft(aid, cursor, limit, options);
4254
4224
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4255
4225
  const localVarOperationServerBasePath = operationServerMap['ChatApi.listMessagesInDraft']?.[localVarOperationServerIndex]?.url;
@@ -4384,7 +4354,7 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
4384
4354
  * @param {*} [options] Override http request option.
4385
4355
  * @throws {RequiredError}
4386
4356
  */
4387
- 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> {
4388
4358
  return localVarFp.getSkillHistory(aid, cursor, limit, options).then((request) => request(axios, basePath));
4389
4359
  },
4390
4360
  /**
@@ -4407,7 +4377,7 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
4407
4377
  * @param {*} [options] Override http request option.
4408
4378
  * @throws {RequiredError}
4409
4379
  */
4410
- 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> {
4411
4381
  return localVarFp.listMessagesInChat(aid, chatId, cursor, limit, options).then((request) => request(axios, basePath));
4412
4382
  },
4413
4383
  /**
@@ -4419,7 +4389,7 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
4419
4389
  * @param {*} [options] Override http request option.
4420
4390
  * @throws {RequiredError}
4421
4391
  */
4422
- 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> {
4423
4393
  return localVarFp.listMessagesInDraft(aid, cursor, limit, options).then((request) => request(axios, basePath));
4424
4394
  },
4425
4395
  /**
@@ -6151,6 +6121,54 @@ export class HealthApi extends BaseAPI {
6151
6121
  */
6152
6122
  export const ManagerApiAxiosParamCreator = function (configuration?: Configuration) {
6153
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
+ },
6154
6172
  /**
6155
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\'.
6156
6174
  * @summary Chat with Agent Manager
@@ -6204,6 +6222,21 @@ export const ManagerApiAxiosParamCreator = function (configuration?: Configurati
6204
6222
  export const ManagerApiFp = function(configuration?: Configuration) {
6205
6223
  const localVarAxiosParamCreator = ManagerApiAxiosParamCreator(configuration)
6206
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
+ },
6207
6240
  /**
6208
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\'.
6209
6242
  * @summary Chat with Agent Manager
@@ -6227,6 +6260,18 @@ export const ManagerApiFp = function(configuration?: Configuration) {
6227
6260
  export const ManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
6228
6261
  const localVarFp = ManagerApiFp(configuration)
6229
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
+ },
6230
6275
  /**
6231
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\'.
6232
6277
  * @summary Chat with Agent Manager
@@ -6245,6 +6290,19 @@ export const ManagerApiFactory = function (configuration?: Configuration, basePa
6245
6290
  * ManagerApi - object-oriented interface
6246
6291
  */
6247
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
+
6248
6306
  /**
6249
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\'.
6250
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.29
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.29
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.29
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.29
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).
@@ -96,15 +96,10 @@ export declare const AgentWalletProviderEnum: {
96
96
  export type AgentWalletProviderEnum = typeof AgentWalletProviderEnum[keyof typeof AgentWalletProviderEnum];
97
97
  export declare const AgentNetworkIdEnum: {
98
98
  readonly BaseMainnet: "base-mainnet";
99
- readonly BaseSepolia: "base-sepolia";
100
99
  readonly EthereumMainnet: "ethereum-mainnet";
101
- readonly EthereumSepolia: "ethereum-sepolia";
102
100
  readonly PolygonMainnet: "polygon-mainnet";
103
- readonly PolygonMumbai: "polygon-mumbai";
104
101
  readonly ArbitrumMainnet: "arbitrum-mainnet";
105
- readonly ArbitrumSepolia: "arbitrum-sepolia";
106
102
  readonly OptimismMainnet: "optimism-mainnet";
107
- readonly OptimismSepolia: "optimism-sepolia";
108
103
  readonly Solana: "solana";
109
104
  };
110
105
  export type AgentNetworkIdEnum = typeof AgentNetworkIdEnum[keyof typeof AgentNetworkIdEnum];
@@ -232,15 +227,10 @@ export declare const AgentCreateWalletProviderEnum: {
232
227
  export type AgentCreateWalletProviderEnum = typeof AgentCreateWalletProviderEnum[keyof typeof AgentCreateWalletProviderEnum];
233
228
  export declare const AgentCreateNetworkIdEnum: {
234
229
  readonly BaseMainnet: "base-mainnet";
235
- readonly BaseSepolia: "base-sepolia";
236
230
  readonly EthereumMainnet: "ethereum-mainnet";
237
- readonly EthereumSepolia: "ethereum-sepolia";
238
231
  readonly PolygonMainnet: "polygon-mainnet";
239
- readonly PolygonMumbai: "polygon-mumbai";
240
232
  readonly ArbitrumMainnet: "arbitrum-mainnet";
241
- readonly ArbitrumSepolia: "arbitrum-sepolia";
242
233
  readonly OptimismMainnet: "optimism-mainnet";
243
- readonly OptimismSepolia: "optimism-sepolia";
244
234
  readonly Solana: "solana";
245
235
  };
246
236
  export type AgentCreateNetworkIdEnum = typeof AgentCreateNetworkIdEnum[keyof typeof AgentCreateNetworkIdEnum];
@@ -325,15 +315,10 @@ export declare const AgentDraftWalletProviderEnum: {
325
315
  export type AgentDraftWalletProviderEnum = typeof AgentDraftWalletProviderEnum[keyof typeof AgentDraftWalletProviderEnum];
326
316
  export declare const AgentDraftNetworkIdEnum: {
327
317
  readonly BaseMainnet: "base-mainnet";
328
- readonly BaseSepolia: "base-sepolia";
329
318
  readonly EthereumMainnet: "ethereum-mainnet";
330
- readonly EthereumSepolia: "ethereum-sepolia";
331
319
  readonly PolygonMainnet: "polygon-mainnet";
332
- readonly PolygonMumbai: "polygon-mumbai";
333
320
  readonly ArbitrumMainnet: "arbitrum-mainnet";
334
- readonly ArbitrumSepolia: "arbitrum-sepolia";
335
321
  readonly OptimismMainnet: "optimism-mainnet";
336
- readonly OptimismSepolia: "optimism-sepolia";
337
322
  readonly Solana: "solana";
338
323
  };
339
324
  export type AgentDraftNetworkIdEnum = typeof AgentDraftNetworkIdEnum[keyof typeof AgentDraftNetworkIdEnum];
@@ -555,15 +540,10 @@ export declare const AgentResponseWalletProviderEnum: {
555
540
  export type AgentResponseWalletProviderEnum = typeof AgentResponseWalletProviderEnum[keyof typeof AgentResponseWalletProviderEnum];
556
541
  export declare const AgentResponseNetworkIdEnum: {
557
542
  readonly BaseMainnet: "base-mainnet";
558
- readonly BaseSepolia: "base-sepolia";
559
543
  readonly EthereumMainnet: "ethereum-mainnet";
560
- readonly EthereumSepolia: "ethereum-sepolia";
561
544
  readonly PolygonMainnet: "polygon-mainnet";
562
- readonly PolygonMumbai: "polygon-mumbai";
563
545
  readonly ArbitrumMainnet: "arbitrum-mainnet";
564
- readonly ArbitrumSepolia: "arbitrum-sepolia";
565
546
  readonly OptimismMainnet: "optimism-mainnet";
566
- readonly OptimismSepolia: "optimism-sepolia";
567
547
  readonly Solana: "solana";
568
548
  };
569
549
  export type AgentResponseNetworkIdEnum = typeof AgentResponseNetworkIdEnum[keyof typeof AgentResponseNetworkIdEnum];
@@ -704,15 +684,10 @@ export declare const AgentUpdateWalletProviderEnum: {
704
684
  export type AgentUpdateWalletProviderEnum = typeof AgentUpdateWalletProviderEnum[keyof typeof AgentUpdateWalletProviderEnum];
705
685
  export declare const AgentUpdateNetworkIdEnum: {
706
686
  readonly BaseMainnet: "base-mainnet";
707
- readonly BaseSepolia: "base-sepolia";
708
687
  readonly EthereumMainnet: "ethereum-mainnet";
709
- readonly EthereumSepolia: "ethereum-sepolia";
710
688
  readonly PolygonMainnet: "polygon-mainnet";
711
- readonly PolygonMumbai: "polygon-mumbai";
712
689
  readonly ArbitrumMainnet: "arbitrum-mainnet";
713
- readonly ArbitrumSepolia: "arbitrum-sepolia";
714
690
  readonly OptimismMainnet: "optimism-mainnet";
715
- readonly OptimismSepolia: "optimism-sepolia";
716
691
  readonly Solana: "solana";
717
692
  };
718
693
  export type AgentUpdateNetworkIdEnum = typeof AgentUpdateNetworkIdEnum[keyof typeof AgentUpdateNetworkIdEnum];
@@ -762,15 +737,10 @@ export declare const AgentUserInputWalletProviderEnum: {
762
737
  export type AgentUserInputWalletProviderEnum = typeof AgentUserInputWalletProviderEnum[keyof typeof AgentUserInputWalletProviderEnum];
763
738
  export declare const AgentUserInputNetworkIdEnum: {
764
739
  readonly BaseMainnet: "base-mainnet";
765
- readonly BaseSepolia: "base-sepolia";
766
740
  readonly EthereumMainnet: "ethereum-mainnet";
767
- readonly EthereumSepolia: "ethereum-sepolia";
768
741
  readonly PolygonMainnet: "polygon-mainnet";
769
- readonly PolygonMumbai: "polygon-mumbai";
770
742
  readonly ArbitrumMainnet: "arbitrum-mainnet";
771
- readonly ArbitrumSepolia: "arbitrum-sepolia";
772
743
  readonly OptimismMainnet: "optimism-mainnet";
773
- readonly OptimismSepolia: "optimism-sepolia";
774
744
  readonly Solana: "solana";
775
745
  };
776
746
  export type AgentUserInputNetworkIdEnum = typeof AgentUserInputNetworkIdEnum[keyof typeof AgentUserInputNetworkIdEnum];
@@ -784,6 +754,14 @@ export type AgentUserInputShortTermMemoryStrategyEnum = typeof AgentUserInputSho
784
754
  */
785
755
  export interface Amount {
786
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
+ }
787
765
  /**
788
766
  * Model for individual asset with symbol and balance.
789
767
  */
@@ -1023,14 +1001,6 @@ export interface ChatMessageSkillCall {
1023
1001
  'credit_event_id'?: string;
1024
1002
  'credit_cost'?: string;
1025
1003
  }
1026
- /**
1027
- * Response model for chat messages with pagination.
1028
- */
1029
- export interface ChatMessagesResponse {
1030
- 'data': Array<ChatMessage>;
1031
- 'has_more'?: boolean;
1032
- 'next_cursor'?: string | null;
1033
- }
1034
1004
  /**
1035
1005
  * Request model for updating a chat thread.
1036
1006
  */
@@ -2392,7 +2362,7 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
2392
2362
  * @param {*} [options] Override http request option.
2393
2363
  * @throws {RequiredError}
2394
2364
  */
2395
- 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>>;
2396
2366
  /**
2397
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
2398
2368
  * @summary Import Agent
@@ -2544,7 +2514,7 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
2544
2514
  * @param {*} [options] Override http request option.
2545
2515
  * @throws {RequiredError}
2546
2516
  */
2547
- 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>;
2548
2518
  /**
2549
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
2550
2520
  * @summary Import Agent
@@ -2696,7 +2666,7 @@ export declare class AgentApi extends BaseAPI {
2696
2666
  * @param {*} [options] Override http request option.
2697
2667
  * @throws {RequiredError}
2698
2668
  */
2699
- 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, {}>>;
2700
2670
  /**
2701
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
2702
2672
  * @summary Import Agent
@@ -2947,7 +2917,7 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
2947
2917
  * @param {*} [options] Override http request option.
2948
2918
  * @throws {RequiredError}
2949
2919
  */
2950
- 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>>;
2951
2921
  /**
2952
2922
  * Retrieve all chat threads associated with a specific agent for the current user.
2953
2923
  * @summary List chat threads for an agent
@@ -2966,7 +2936,7 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
2966
2936
  * @param {*} [options] Override http request option.
2967
2937
  * @throws {RequiredError}
2968
2938
  */
2969
- 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>>;
2970
2940
  /**
2971
2941
  * Retrieve the message history for the draft chat session of an agent with cursor-based pagination.
2972
2942
  * @summary List messages in an agent draft session
@@ -2976,7 +2946,7 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
2976
2946
  * @param {*} [options] Override http request option.
2977
2947
  * @throws {RequiredError}
2978
2948
  */
2979
- 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>>;
2980
2950
  /**
2981
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.
2982
2952
  * @summary Retry a message in a chat thread
@@ -3072,7 +3042,7 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
3072
3042
  * @param {*} [options] Override http request option.
3073
3043
  * @throws {RequiredError}
3074
3044
  */
3075
- 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>;
3076
3046
  /**
3077
3047
  * Retrieve all chat threads associated with a specific agent for the current user.
3078
3048
  * @summary List chat threads for an agent
@@ -3091,7 +3061,7 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
3091
3061
  * @param {*} [options] Override http request option.
3092
3062
  * @throws {RequiredError}
3093
3063
  */
3094
- 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>;
3095
3065
  /**
3096
3066
  * Retrieve the message history for the draft chat session of an agent with cursor-based pagination.
3097
3067
  * @summary List messages in an agent draft session
@@ -3101,7 +3071,7 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
3101
3071
  * @param {*} [options] Override http request option.
3102
3072
  * @throws {RequiredError}
3103
3073
  */
3104
- 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>;
3105
3075
  /**
3106
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.
3107
3077
  * @summary Retry a message in a chat thread
@@ -3197,7 +3167,7 @@ export declare class ChatApi extends BaseAPI {
3197
3167
  * @param {*} [options] Override http request option.
3198
3168
  * @throws {RequiredError}
3199
3169
  */
3200
- 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, {}>>;
3201
3171
  /**
3202
3172
  * Retrieve all chat threads associated with a specific agent for the current user.
3203
3173
  * @summary List chat threads for an agent
@@ -3216,7 +3186,7 @@ export declare class ChatApi extends BaseAPI {
3216
3186
  * @param {*} [options] Override http request option.
3217
3187
  * @throws {RequiredError}
3218
3188
  */
3219
- 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, {}>>;
3220
3190
  /**
3221
3191
  * Retrieve the message history for the draft chat session of an agent with cursor-based pagination.
3222
3192
  * @summary List messages in an agent draft session
@@ -3226,7 +3196,7 @@ export declare class ChatApi extends BaseAPI {
3226
3196
  * @param {*} [options] Override http request option.
3227
3197
  * @throws {RequiredError}
3228
3198
  */
3229
- 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, {}>>;
3230
3200
  /**
3231
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.
3232
3202
  * @summary Retry a message in a chat thread
@@ -3962,6 +3932,16 @@ export declare class HealthApi extends BaseAPI {
3962
3932
  * ManagerApi - axios parameter creator
3963
3933
  */
3964
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>;
3965
3945
  /**
3966
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\'.
3967
3947
  * @summary Chat with Agent Manager
@@ -3976,6 +3956,16 @@ export declare const ManagerApiAxiosParamCreator: (configuration?: Configuration
3976
3956
  * ManagerApi - functional programming interface
3977
3957
  */
3978
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>>;
3979
3969
  /**
3980
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\'.
3981
3971
  * @summary Chat with Agent Manager
@@ -3990,6 +3980,16 @@ export declare const ManagerApiFp: (configuration?: Configuration) => {
3990
3980
  * ManagerApi - factory interface
3991
3981
  */
3992
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>;
3993
3993
  /**
3994
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\'.
3995
3995
  * @summary Chat with Agent Manager
@@ -4004,6 +4004,16 @@ export declare const ManagerApiFactory: (configuration?: Configuration, basePath
4004
4004
  * ManagerApi - object-oriented interface
4005
4005
  */
4006
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, {}>>;
4007
4017
  /**
4008
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\'.
4009
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.29
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).
@@ -99,15 +99,10 @@ exports.AgentWalletProviderEnum = {
99
99
  };
100
100
  exports.AgentNetworkIdEnum = {
101
101
  BaseMainnet: 'base-mainnet',
102
- BaseSepolia: 'base-sepolia',
103
102
  EthereumMainnet: 'ethereum-mainnet',
104
- EthereumSepolia: 'ethereum-sepolia',
105
103
  PolygonMainnet: 'polygon-mainnet',
106
- PolygonMumbai: 'polygon-mumbai',
107
104
  ArbitrumMainnet: 'arbitrum-mainnet',
108
- ArbitrumSepolia: 'arbitrum-sepolia',
109
105
  OptimismMainnet: 'optimism-mainnet',
110
- OptimismSepolia: 'optimism-sepolia',
111
106
  Solana: 'solana'
112
107
  };
113
108
  exports.AgentShortTermMemoryStrategyEnum = {
@@ -121,15 +116,10 @@ exports.AgentCreateWalletProviderEnum = {
121
116
  };
122
117
  exports.AgentCreateNetworkIdEnum = {
123
118
  BaseMainnet: 'base-mainnet',
124
- BaseSepolia: 'base-sepolia',
125
119
  EthereumMainnet: 'ethereum-mainnet',
126
- EthereumSepolia: 'ethereum-sepolia',
127
120
  PolygonMainnet: 'polygon-mainnet',
128
- PolygonMumbai: 'polygon-mumbai',
129
121
  ArbitrumMainnet: 'arbitrum-mainnet',
130
- ArbitrumSepolia: 'arbitrum-sepolia',
131
122
  OptimismMainnet: 'optimism-mainnet',
132
- OptimismSepolia: 'optimism-sepolia',
133
123
  Solana: 'solana'
134
124
  };
135
125
  exports.AgentCreateShortTermMemoryStrategyEnum = {
@@ -143,15 +133,10 @@ exports.AgentDraftWalletProviderEnum = {
143
133
  };
144
134
  exports.AgentDraftNetworkIdEnum = {
145
135
  BaseMainnet: 'base-mainnet',
146
- BaseSepolia: 'base-sepolia',
147
136
  EthereumMainnet: 'ethereum-mainnet',
148
- EthereumSepolia: 'ethereum-sepolia',
149
137
  PolygonMainnet: 'polygon-mainnet',
150
- PolygonMumbai: 'polygon-mumbai',
151
138
  ArbitrumMainnet: 'arbitrum-mainnet',
152
- ArbitrumSepolia: 'arbitrum-sepolia',
153
139
  OptimismMainnet: 'optimism-mainnet',
154
- OptimismSepolia: 'optimism-sepolia',
155
140
  Solana: 'solana'
156
141
  };
157
142
  exports.AgentDraftShortTermMemoryStrategyEnum = {
@@ -165,15 +150,10 @@ exports.AgentResponseWalletProviderEnum = {
165
150
  };
166
151
  exports.AgentResponseNetworkIdEnum = {
167
152
  BaseMainnet: 'base-mainnet',
168
- BaseSepolia: 'base-sepolia',
169
153
  EthereumMainnet: 'ethereum-mainnet',
170
- EthereumSepolia: 'ethereum-sepolia',
171
154
  PolygonMainnet: 'polygon-mainnet',
172
- PolygonMumbai: 'polygon-mumbai',
173
155
  ArbitrumMainnet: 'arbitrum-mainnet',
174
- ArbitrumSepolia: 'arbitrum-sepolia',
175
156
  OptimismMainnet: 'optimism-mainnet',
176
- OptimismSepolia: 'optimism-sepolia',
177
157
  Solana: 'solana'
178
158
  };
179
159
  exports.AgentResponseShortTermMemoryStrategyEnum = {
@@ -207,15 +187,10 @@ exports.AgentUpdateWalletProviderEnum = {
207
187
  };
208
188
  exports.AgentUpdateNetworkIdEnum = {
209
189
  BaseMainnet: 'base-mainnet',
210
- BaseSepolia: 'base-sepolia',
211
190
  EthereumMainnet: 'ethereum-mainnet',
212
- EthereumSepolia: 'ethereum-sepolia',
213
191
  PolygonMainnet: 'polygon-mainnet',
214
- PolygonMumbai: 'polygon-mumbai',
215
192
  ArbitrumMainnet: 'arbitrum-mainnet',
216
- ArbitrumSepolia: 'arbitrum-sepolia',
217
193
  OptimismMainnet: 'optimism-mainnet',
218
- OptimismSepolia: 'optimism-sepolia',
219
194
  Solana: 'solana'
220
195
  };
221
196
  exports.AgentUpdateShortTermMemoryStrategyEnum = {
@@ -229,15 +204,10 @@ exports.AgentUserInputWalletProviderEnum = {
229
204
  };
230
205
  exports.AgentUserInputNetworkIdEnum = {
231
206
  BaseMainnet: 'base-mainnet',
232
- BaseSepolia: 'base-sepolia',
233
207
  EthereumMainnet: 'ethereum-mainnet',
234
- EthereumSepolia: 'ethereum-sepolia',
235
208
  PolygonMainnet: 'polygon-mainnet',
236
- PolygonMumbai: 'polygon-mumbai',
237
209
  ArbitrumMainnet: 'arbitrum-mainnet',
238
- ArbitrumSepolia: 'arbitrum-sepolia',
239
210
  OptimismMainnet: 'optimism-mainnet',
240
- OptimismSepolia: 'optimism-sepolia',
241
211
  Solana: 'solana'
242
212
  };
243
213
  exports.AgentUserInputShortTermMemoryStrategyEnum = {
@@ -5197,6 +5167,61 @@ exports.HealthApi = HealthApi;
5197
5167
  var ManagerApiAxiosParamCreator = function (configuration) {
5198
5168
  var _this = this;
5199
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
+ },
5200
5225
  /**
5201
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\'.
5202
5227
  * @summary Chat with Agent Manager
@@ -5258,6 +5283,31 @@ exports.ManagerApiAxiosParamCreator = ManagerApiAxiosParamCreator;
5258
5283
  var ManagerApiFp = function (configuration) {
5259
5284
  var localVarAxiosParamCreator = (0, exports.ManagerApiAxiosParamCreator)(configuration);
5260
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
+ },
5261
5311
  /**
5262
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\'.
5263
5313
  * @summary Chat with Agent Manager
@@ -5291,6 +5341,18 @@ exports.ManagerApiFp = ManagerApiFp;
5291
5341
  var ManagerApiFactory = function (configuration, basePath, axios) {
5292
5342
  var localVarFp = (0, exports.ManagerApiFp)(configuration);
5293
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
+ },
5294
5356
  /**
5295
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\'.
5296
5358
  * @summary Chat with Agent Manager
@@ -5313,6 +5375,19 @@ var ManagerApi = /** @class */ (function (_super) {
5313
5375
  function ManagerApi() {
5314
5376
  return _super !== null && _super.apply(this, arguments) || this;
5315
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
+ };
5316
5391
  /**
5317
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\'.
5318
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.29
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.29
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.29
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.29
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.29
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.29
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.29
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.29
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-24T16:25:39.760+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-24T16:25:39.760+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-24T16:25:39.760+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-24T16:25:39.760+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.29
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.29",
3
+ "version": "0.8.31",
4
4
  "description": "OpenAPI client for @crestal/nation-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {