@crestal/nation-sdk 0.8.30 → 0.8.32
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.
- package/.openapi-generator/FILES +1 -1
- package/README.md +4 -3
- package/api.ts +107 -18
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +62 -21
- package/dist/api.js +108 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgentApi.md +2 -2
- package/docs/{ChatMessagesResponse.md → AppManagerRouterChatMessagesResponse.md} +3 -3
- package/docs/AuthorType.md +2 -0
- package/docs/ChatApi.md +6 -6
- package/docs/LLMModelInfoWithProviderNameInput.md +2 -2
- package/docs/LLMModelInfoWithProviderNameOutput.md +2 -2
- package/docs/ManagerApi.md +59 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -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.
|
|
1
|
+
## @crestal/nation-sdk@0.8.32
|
|
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.
|
|
39
|
+
npm install @crestal/nation-sdk@0.8.32 --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.
|
|
7
|
+
* The version of the OpenAPI document: 0.8.32
|
|
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
|
*/
|
|
@@ -784,7 +792,8 @@ export const AuthorType = {
|
|
|
784
792
|
Web: 'web',
|
|
785
793
|
System: 'system',
|
|
786
794
|
Api: 'api',
|
|
787
|
-
Xmtp: 'xmtp'
|
|
795
|
+
Xmtp: 'xmtp',
|
|
796
|
+
X402: 'x402'
|
|
788
797
|
} as const;
|
|
789
798
|
|
|
790
799
|
export type AuthorType = typeof AuthorType[keyof typeof AuthorType];
|
|
@@ -995,14 +1004,6 @@ export interface ChatMessageSkillCall {
|
|
|
995
1004
|
'credit_event_id'?: string;
|
|
996
1005
|
'credit_cost'?: string;
|
|
997
1006
|
}
|
|
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
1007
|
/**
|
|
1007
1008
|
* Request model for updating a chat thread.
|
|
1008
1009
|
*/
|
|
@@ -3002,7 +3003,7 @@ export const AgentApiFp = function(configuration?: Configuration) {
|
|
|
3002
3003
|
* @param {*} [options] Override http request option.
|
|
3003
3004
|
* @throws {RequiredError}
|
|
3004
3005
|
*/
|
|
3005
|
-
async getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
3006
|
+
async getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppManagerRouterChatMessagesResponse>> {
|
|
3006
3007
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getSkillHistory(aid, cursor, limit, options);
|
|
3007
3008
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3008
3009
|
const localVarOperationServerBasePath = operationServerMap['AgentApi.getSkillHistory']?.[localVarOperationServerIndex]?.url;
|
|
@@ -3219,7 +3220,7 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
|
|
|
3219
3220
|
* @param {*} [options] Override http request option.
|
|
3220
3221
|
* @throws {RequiredError}
|
|
3221
3222
|
*/
|
|
3222
|
-
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
3223
|
+
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AppManagerRouterChatMessagesResponse> {
|
|
3223
3224
|
return localVarFp.getSkillHistory(aid, cursor, limit, options).then((request) => request(axios, basePath));
|
|
3224
3225
|
},
|
|
3225
3226
|
/**
|
|
@@ -4175,7 +4176,7 @@ export const ChatApiFp = function(configuration?: Configuration) {
|
|
|
4175
4176
|
* @param {*} [options] Override http request option.
|
|
4176
4177
|
* @throws {RequiredError}
|
|
4177
4178
|
*/
|
|
4178
|
-
async getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4179
|
+
async getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppManagerRouterChatMessagesResponse>> {
|
|
4179
4180
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getSkillHistory(aid, cursor, limit, options);
|
|
4180
4181
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4181
4182
|
const localVarOperationServerBasePath = operationServerMap['ChatApi.getSkillHistory']?.[localVarOperationServerIndex]?.url;
|
|
@@ -4204,7 +4205,7 @@ export const ChatApiFp = function(configuration?: Configuration) {
|
|
|
4204
4205
|
* @param {*} [options] Override http request option.
|
|
4205
4206
|
* @throws {RequiredError}
|
|
4206
4207
|
*/
|
|
4207
|
-
async listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4208
|
+
async listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppManagerRouterChatMessagesResponse>> {
|
|
4208
4209
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listMessagesInChat(aid, chatId, cursor, limit, options);
|
|
4209
4210
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4210
4211
|
const localVarOperationServerBasePath = operationServerMap['ChatApi.listMessagesInChat']?.[localVarOperationServerIndex]?.url;
|
|
@@ -4219,7 +4220,7 @@ export const ChatApiFp = function(configuration?: Configuration) {
|
|
|
4219
4220
|
* @param {*} [options] Override http request option.
|
|
4220
4221
|
* @throws {RequiredError}
|
|
4221
4222
|
*/
|
|
4222
|
-
async listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4223
|
+
async listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppManagerRouterChatMessagesResponse>> {
|
|
4223
4224
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listMessagesInDraft(aid, cursor, limit, options);
|
|
4224
4225
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4225
4226
|
const localVarOperationServerBasePath = operationServerMap['ChatApi.listMessagesInDraft']?.[localVarOperationServerIndex]?.url;
|
|
@@ -4354,7 +4355,7 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
|
|
|
4354
4355
|
* @param {*} [options] Override http request option.
|
|
4355
4356
|
* @throws {RequiredError}
|
|
4356
4357
|
*/
|
|
4357
|
-
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
4358
|
+
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AppManagerRouterChatMessagesResponse> {
|
|
4358
4359
|
return localVarFp.getSkillHistory(aid, cursor, limit, options).then((request) => request(axios, basePath));
|
|
4359
4360
|
},
|
|
4360
4361
|
/**
|
|
@@ -4377,7 +4378,7 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
|
|
|
4377
4378
|
* @param {*} [options] Override http request option.
|
|
4378
4379
|
* @throws {RequiredError}
|
|
4379
4380
|
*/
|
|
4380
|
-
listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
4381
|
+
listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AppManagerRouterChatMessagesResponse> {
|
|
4381
4382
|
return localVarFp.listMessagesInChat(aid, chatId, cursor, limit, options).then((request) => request(axios, basePath));
|
|
4382
4383
|
},
|
|
4383
4384
|
/**
|
|
@@ -4389,7 +4390,7 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
|
|
|
4389
4390
|
* @param {*} [options] Override http request option.
|
|
4390
4391
|
* @throws {RequiredError}
|
|
4391
4392
|
*/
|
|
4392
|
-
listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
4393
|
+
listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AppManagerRouterChatMessagesResponse> {
|
|
4393
4394
|
return localVarFp.listMessagesInDraft(aid, cursor, limit, options).then((request) => request(axios, basePath));
|
|
4394
4395
|
},
|
|
4395
4396
|
/**
|
|
@@ -6121,6 +6122,54 @@ export class HealthApi extends BaseAPI {
|
|
|
6121
6122
|
*/
|
|
6122
6123
|
export const ManagerApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
6123
6124
|
return {
|
|
6125
|
+
/**
|
|
6126
|
+
* Get the message history for an agent\'s manager chat session.
|
|
6127
|
+
* @summary Get manager chat messages
|
|
6128
|
+
* @param {string} aid Agent ID
|
|
6129
|
+
* @param {string | null} [cursor] Cursor for pagination (message id)
|
|
6130
|
+
* @param {number} [limit] Maximum number of messages to return
|
|
6131
|
+
* @param {*} [options] Override http request option.
|
|
6132
|
+
* @throws {RequiredError}
|
|
6133
|
+
*/
|
|
6134
|
+
getManagerMessages: async (aid: string, cursor?: string | null, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6135
|
+
// verify required parameter 'aid' is not null or undefined
|
|
6136
|
+
assertParamExists('getManagerMessages', 'aid', aid)
|
|
6137
|
+
const localVarPath = `/agents/{aid}/manager/messages`
|
|
6138
|
+
.replace(`{${"aid"}}`, encodeURIComponent(String(aid)));
|
|
6139
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6140
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6141
|
+
let baseOptions;
|
|
6142
|
+
if (configuration) {
|
|
6143
|
+
baseOptions = configuration.baseOptions;
|
|
6144
|
+
}
|
|
6145
|
+
|
|
6146
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
6147
|
+
const localVarHeaderParameter = {} as any;
|
|
6148
|
+
const localVarQueryParameter = {} as any;
|
|
6149
|
+
|
|
6150
|
+
// authentication HTTPBearer required
|
|
6151
|
+
// http bearer authentication required
|
|
6152
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6153
|
+
|
|
6154
|
+
if (cursor !== undefined) {
|
|
6155
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
6156
|
+
}
|
|
6157
|
+
|
|
6158
|
+
if (limit !== undefined) {
|
|
6159
|
+
localVarQueryParameter['limit'] = limit;
|
|
6160
|
+
}
|
|
6161
|
+
|
|
6162
|
+
|
|
6163
|
+
|
|
6164
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6165
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6166
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6167
|
+
|
|
6168
|
+
return {
|
|
6169
|
+
url: toPathString(localVarUrlObj),
|
|
6170
|
+
options: localVarRequestOptions,
|
|
6171
|
+
};
|
|
6172
|
+
},
|
|
6124
6173
|
/**
|
|
6125
6174
|
* 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
6175
|
* @summary Chat with Agent Manager
|
|
@@ -6174,6 +6223,21 @@ export const ManagerApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
6174
6223
|
export const ManagerApiFp = function(configuration?: Configuration) {
|
|
6175
6224
|
const localVarAxiosParamCreator = ManagerApiAxiosParamCreator(configuration)
|
|
6176
6225
|
return {
|
|
6226
|
+
/**
|
|
6227
|
+
* Get the message history for an agent\'s manager chat session.
|
|
6228
|
+
* @summary Get manager chat messages
|
|
6229
|
+
* @param {string} aid Agent ID
|
|
6230
|
+
* @param {string | null} [cursor] Cursor for pagination (message id)
|
|
6231
|
+
* @param {number} [limit] Maximum number of messages to return
|
|
6232
|
+
* @param {*} [options] Override http request option.
|
|
6233
|
+
* @throws {RequiredError}
|
|
6234
|
+
*/
|
|
6235
|
+
async getManagerMessages(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppManagerRouterChatMessagesResponse>> {
|
|
6236
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getManagerMessages(aid, cursor, limit, options);
|
|
6237
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6238
|
+
const localVarOperationServerBasePath = operationServerMap['ManagerApi.getManagerMessages']?.[localVarOperationServerIndex]?.url;
|
|
6239
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6240
|
+
},
|
|
6177
6241
|
/**
|
|
6178
6242
|
* 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
6243
|
* @summary Chat with Agent Manager
|
|
@@ -6197,6 +6261,18 @@ export const ManagerApiFp = function(configuration?: Configuration) {
|
|
|
6197
6261
|
export const ManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
6198
6262
|
const localVarFp = ManagerApiFp(configuration)
|
|
6199
6263
|
return {
|
|
6264
|
+
/**
|
|
6265
|
+
* Get the message history for an agent\'s manager chat session.
|
|
6266
|
+
* @summary Get manager chat messages
|
|
6267
|
+
* @param {string} aid Agent ID
|
|
6268
|
+
* @param {string | null} [cursor] Cursor for pagination (message id)
|
|
6269
|
+
* @param {number} [limit] Maximum number of messages to return
|
|
6270
|
+
* @param {*} [options] Override http request option.
|
|
6271
|
+
* @throws {RequiredError}
|
|
6272
|
+
*/
|
|
6273
|
+
getManagerMessages(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AppManagerRouterChatMessagesResponse> {
|
|
6274
|
+
return localVarFp.getManagerMessages(aid, cursor, limit, options).then((request) => request(axios, basePath));
|
|
6275
|
+
},
|
|
6200
6276
|
/**
|
|
6201
6277
|
* 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
6278
|
* @summary Chat with Agent Manager
|
|
@@ -6215,6 +6291,19 @@ export const ManagerApiFactory = function (configuration?: Configuration, basePa
|
|
|
6215
6291
|
* ManagerApi - object-oriented interface
|
|
6216
6292
|
*/
|
|
6217
6293
|
export class ManagerApi extends BaseAPI {
|
|
6294
|
+
/**
|
|
6295
|
+
* Get the message history for an agent\'s manager chat session.
|
|
6296
|
+
* @summary Get manager chat messages
|
|
6297
|
+
* @param {string} aid Agent ID
|
|
6298
|
+
* @param {string | null} [cursor] Cursor for pagination (message id)
|
|
6299
|
+
* @param {number} [limit] Maximum number of messages to return
|
|
6300
|
+
* @param {*} [options] Override http request option.
|
|
6301
|
+
* @throws {RequiredError}
|
|
6302
|
+
*/
|
|
6303
|
+
public getManagerMessages(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
6304
|
+
return ManagerApiFp(this.configuration).getManagerMessages(aid, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
6305
|
+
}
|
|
6306
|
+
|
|
6218
6307
|
/**
|
|
6219
6308
|
* 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
6309
|
* @summary Chat with Agent Manager
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
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.
|
|
5
|
+
* The version of the OpenAPI document: 0.8.32
|
|
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
|
*/
|
|
@@ -790,6 +798,7 @@ export declare const AuthorType: {
|
|
|
790
798
|
readonly System: "system";
|
|
791
799
|
readonly Api: "api";
|
|
792
800
|
readonly Xmtp: "xmtp";
|
|
801
|
+
readonly X402: "x402";
|
|
793
802
|
};
|
|
794
803
|
export type AuthorType = typeof AuthorType[keyof typeof AuthorType];
|
|
795
804
|
/**
|
|
@@ -993,14 +1002,6 @@ export interface ChatMessageSkillCall {
|
|
|
993
1002
|
'credit_event_id'?: string;
|
|
994
1003
|
'credit_cost'?: string;
|
|
995
1004
|
}
|
|
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
1005
|
/**
|
|
1005
1006
|
* Request model for updating a chat thread.
|
|
1006
1007
|
*/
|
|
@@ -2362,7 +2363,7 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
|
2362
2363
|
* @param {*} [options] Override http request option.
|
|
2363
2364
|
* @throws {RequiredError}
|
|
2364
2365
|
*/
|
|
2365
|
-
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2366
|
+
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppManagerRouterChatMessagesResponse>>;
|
|
2366
2367
|
/**
|
|
2367
2368
|
* 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
2369
|
* @summary Import Agent
|
|
@@ -2514,7 +2515,7 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
|
|
|
2514
2515
|
* @param {*} [options] Override http request option.
|
|
2515
2516
|
* @throws {RequiredError}
|
|
2516
2517
|
*/
|
|
2517
|
-
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2518
|
+
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AppManagerRouterChatMessagesResponse>;
|
|
2518
2519
|
/**
|
|
2519
2520
|
* 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
2521
|
* @summary Import Agent
|
|
@@ -2666,7 +2667,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
2666
2667
|
* @param {*} [options] Override http request option.
|
|
2667
2668
|
* @throws {RequiredError}
|
|
2668
2669
|
*/
|
|
2669
|
-
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
2670
|
+
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AppManagerRouterChatMessagesResponse, any, {}>>;
|
|
2670
2671
|
/**
|
|
2671
2672
|
* 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
2673
|
* @summary Import Agent
|
|
@@ -2917,7 +2918,7 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
|
|
|
2917
2918
|
* @param {*} [options] Override http request option.
|
|
2918
2919
|
* @throws {RequiredError}
|
|
2919
2920
|
*/
|
|
2920
|
-
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2921
|
+
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppManagerRouterChatMessagesResponse>>;
|
|
2921
2922
|
/**
|
|
2922
2923
|
* Retrieve all chat threads associated with a specific agent for the current user.
|
|
2923
2924
|
* @summary List chat threads for an agent
|
|
@@ -2936,7 +2937,7 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
|
|
|
2936
2937
|
* @param {*} [options] Override http request option.
|
|
2937
2938
|
* @throws {RequiredError}
|
|
2938
2939
|
*/
|
|
2939
|
-
listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2940
|
+
listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppManagerRouterChatMessagesResponse>>;
|
|
2940
2941
|
/**
|
|
2941
2942
|
* Retrieve the message history for the draft chat session of an agent with cursor-based pagination.
|
|
2942
2943
|
* @summary List messages in an agent draft session
|
|
@@ -2946,7 +2947,7 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
|
|
|
2946
2947
|
* @param {*} [options] Override http request option.
|
|
2947
2948
|
* @throws {RequiredError}
|
|
2948
2949
|
*/
|
|
2949
|
-
listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2950
|
+
listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppManagerRouterChatMessagesResponse>>;
|
|
2950
2951
|
/**
|
|
2951
2952
|
* 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
2953
|
* @summary Retry a message in a chat thread
|
|
@@ -3042,7 +3043,7 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
|
|
|
3042
3043
|
* @param {*} [options] Override http request option.
|
|
3043
3044
|
* @throws {RequiredError}
|
|
3044
3045
|
*/
|
|
3045
|
-
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
3046
|
+
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AppManagerRouterChatMessagesResponse>;
|
|
3046
3047
|
/**
|
|
3047
3048
|
* Retrieve all chat threads associated with a specific agent for the current user.
|
|
3048
3049
|
* @summary List chat threads for an agent
|
|
@@ -3061,7 +3062,7 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
|
|
|
3061
3062
|
* @param {*} [options] Override http request option.
|
|
3062
3063
|
* @throws {RequiredError}
|
|
3063
3064
|
*/
|
|
3064
|
-
listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
3065
|
+
listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AppManagerRouterChatMessagesResponse>;
|
|
3065
3066
|
/**
|
|
3066
3067
|
* Retrieve the message history for the draft chat session of an agent with cursor-based pagination.
|
|
3067
3068
|
* @summary List messages in an agent draft session
|
|
@@ -3071,7 +3072,7 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
|
|
|
3071
3072
|
* @param {*} [options] Override http request option.
|
|
3072
3073
|
* @throws {RequiredError}
|
|
3073
3074
|
*/
|
|
3074
|
-
listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
3075
|
+
listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AppManagerRouterChatMessagesResponse>;
|
|
3075
3076
|
/**
|
|
3076
3077
|
* 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
3078
|
* @summary Retry a message in a chat thread
|
|
@@ -3167,7 +3168,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
3167
3168
|
* @param {*} [options] Override http request option.
|
|
3168
3169
|
* @throws {RequiredError}
|
|
3169
3170
|
*/
|
|
3170
|
-
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
3171
|
+
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AppManagerRouterChatMessagesResponse, any, {}>>;
|
|
3171
3172
|
/**
|
|
3172
3173
|
* Retrieve all chat threads associated with a specific agent for the current user.
|
|
3173
3174
|
* @summary List chat threads for an agent
|
|
@@ -3186,7 +3187,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
3186
3187
|
* @param {*} [options] Override http request option.
|
|
3187
3188
|
* @throws {RequiredError}
|
|
3188
3189
|
*/
|
|
3189
|
-
listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
3190
|
+
listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AppManagerRouterChatMessagesResponse, any, {}>>;
|
|
3190
3191
|
/**
|
|
3191
3192
|
* Retrieve the message history for the draft chat session of an agent with cursor-based pagination.
|
|
3192
3193
|
* @summary List messages in an agent draft session
|
|
@@ -3196,7 +3197,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
3196
3197
|
* @param {*} [options] Override http request option.
|
|
3197
3198
|
* @throws {RequiredError}
|
|
3198
3199
|
*/
|
|
3199
|
-
listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
3200
|
+
listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AppManagerRouterChatMessagesResponse, any, {}>>;
|
|
3200
3201
|
/**
|
|
3201
3202
|
* 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
3203
|
* @summary Retry a message in a chat thread
|
|
@@ -3932,6 +3933,16 @@ export declare class HealthApi extends BaseAPI {
|
|
|
3932
3933
|
* ManagerApi - axios parameter creator
|
|
3933
3934
|
*/
|
|
3934
3935
|
export declare const ManagerApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3936
|
+
/**
|
|
3937
|
+
* Get the message history for an agent\'s manager chat session.
|
|
3938
|
+
* @summary Get manager chat messages
|
|
3939
|
+
* @param {string} aid Agent ID
|
|
3940
|
+
* @param {string | null} [cursor] Cursor for pagination (message id)
|
|
3941
|
+
* @param {number} [limit] Maximum number of messages to return
|
|
3942
|
+
* @param {*} [options] Override http request option.
|
|
3943
|
+
* @throws {RequiredError}
|
|
3944
|
+
*/
|
|
3945
|
+
getManagerMessages: (aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3935
3946
|
/**
|
|
3936
3947
|
* 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
3948
|
* @summary Chat with Agent Manager
|
|
@@ -3946,6 +3957,16 @@ export declare const ManagerApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3946
3957
|
* ManagerApi - functional programming interface
|
|
3947
3958
|
*/
|
|
3948
3959
|
export declare const ManagerApiFp: (configuration?: Configuration) => {
|
|
3960
|
+
/**
|
|
3961
|
+
* Get the message history for an agent\'s manager chat session.
|
|
3962
|
+
* @summary Get manager chat messages
|
|
3963
|
+
* @param {string} aid Agent ID
|
|
3964
|
+
* @param {string | null} [cursor] Cursor for pagination (message id)
|
|
3965
|
+
* @param {number} [limit] Maximum number of messages to return
|
|
3966
|
+
* @param {*} [options] Override http request option.
|
|
3967
|
+
* @throws {RequiredError}
|
|
3968
|
+
*/
|
|
3969
|
+
getManagerMessages(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppManagerRouterChatMessagesResponse>>;
|
|
3949
3970
|
/**
|
|
3950
3971
|
* 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
3972
|
* @summary Chat with Agent Manager
|
|
@@ -3960,6 +3981,16 @@ export declare const ManagerApiFp: (configuration?: Configuration) => {
|
|
|
3960
3981
|
* ManagerApi - factory interface
|
|
3961
3982
|
*/
|
|
3962
3983
|
export declare const ManagerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3984
|
+
/**
|
|
3985
|
+
* Get the message history for an agent\'s manager chat session.
|
|
3986
|
+
* @summary Get manager chat messages
|
|
3987
|
+
* @param {string} aid Agent ID
|
|
3988
|
+
* @param {string | null} [cursor] Cursor for pagination (message id)
|
|
3989
|
+
* @param {number} [limit] Maximum number of messages to return
|
|
3990
|
+
* @param {*} [options] Override http request option.
|
|
3991
|
+
* @throws {RequiredError}
|
|
3992
|
+
*/
|
|
3993
|
+
getManagerMessages(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AppManagerRouterChatMessagesResponse>;
|
|
3963
3994
|
/**
|
|
3964
3995
|
* 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
3996
|
* @summary Chat with Agent Manager
|
|
@@ -3974,6 +4005,16 @@ export declare const ManagerApiFactory: (configuration?: Configuration, basePath
|
|
|
3974
4005
|
* ManagerApi - object-oriented interface
|
|
3975
4006
|
*/
|
|
3976
4007
|
export declare class ManagerApi extends BaseAPI {
|
|
4008
|
+
/**
|
|
4009
|
+
* Get the message history for an agent\'s manager chat session.
|
|
4010
|
+
* @summary Get manager chat messages
|
|
4011
|
+
* @param {string} aid Agent ID
|
|
4012
|
+
* @param {string | null} [cursor] Cursor for pagination (message id)
|
|
4013
|
+
* @param {number} [limit] Maximum number of messages to return
|
|
4014
|
+
* @param {*} [options] Override http request option.
|
|
4015
|
+
* @throws {RequiredError}
|
|
4016
|
+
*/
|
|
4017
|
+
getManagerMessages(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AppManagerRouterChatMessagesResponse, any, {}>>;
|
|
3977
4018
|
/**
|
|
3978
4019
|
* 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
4020
|
* @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.
|
|
8
|
+
* The version of the OpenAPI document: 0.8.32
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -226,7 +226,8 @@ exports.AuthorType = {
|
|
|
226
226
|
Web: 'web',
|
|
227
227
|
System: 'system',
|
|
228
228
|
Api: 'api',
|
|
229
|
-
Xmtp: 'xmtp'
|
|
229
|
+
Xmtp: 'xmtp',
|
|
230
|
+
X402: 'x402'
|
|
230
231
|
};
|
|
231
232
|
/**
|
|
232
233
|
* Type of chat message attachment.
|
|
@@ -5167,6 +5168,61 @@ exports.HealthApi = HealthApi;
|
|
|
5167
5168
|
var ManagerApiAxiosParamCreator = function (configuration) {
|
|
5168
5169
|
var _this = this;
|
|
5169
5170
|
return {
|
|
5171
|
+
/**
|
|
5172
|
+
* Get the message history for an agent\'s manager chat session.
|
|
5173
|
+
* @summary Get manager chat messages
|
|
5174
|
+
* @param {string} aid Agent ID
|
|
5175
|
+
* @param {string | null} [cursor] Cursor for pagination (message id)
|
|
5176
|
+
* @param {number} [limit] Maximum number of messages to return
|
|
5177
|
+
* @param {*} [options] Override http request option.
|
|
5178
|
+
* @throws {RequiredError}
|
|
5179
|
+
*/
|
|
5180
|
+
getManagerMessages: function (aid_1, cursor_1, limit_1) {
|
|
5181
|
+
var args_1 = [];
|
|
5182
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
5183
|
+
args_1[_i - 3] = arguments[_i];
|
|
5184
|
+
}
|
|
5185
|
+
return __awaiter(_this, __spreadArray([aid_1, cursor_1, limit_1], args_1, true), void 0, function (aid, cursor, limit, options) {
|
|
5186
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5187
|
+
if (options === void 0) { options = {}; }
|
|
5188
|
+
return __generator(this, function (_a) {
|
|
5189
|
+
switch (_a.label) {
|
|
5190
|
+
case 0:
|
|
5191
|
+
// verify required parameter 'aid' is not null or undefined
|
|
5192
|
+
(0, common_1.assertParamExists)('getManagerMessages', 'aid', aid);
|
|
5193
|
+
localVarPath = "/agents/{aid}/manager/messages"
|
|
5194
|
+
.replace("{".concat("aid", "}"), encodeURIComponent(String(aid)));
|
|
5195
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5196
|
+
if (configuration) {
|
|
5197
|
+
baseOptions = configuration.baseOptions;
|
|
5198
|
+
}
|
|
5199
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
5200
|
+
localVarHeaderParameter = {};
|
|
5201
|
+
localVarQueryParameter = {};
|
|
5202
|
+
// authentication HTTPBearer required
|
|
5203
|
+
// http bearer authentication required
|
|
5204
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
5205
|
+
case 1:
|
|
5206
|
+
// authentication HTTPBearer required
|
|
5207
|
+
// http bearer authentication required
|
|
5208
|
+
_a.sent();
|
|
5209
|
+
if (cursor !== undefined) {
|
|
5210
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
5211
|
+
}
|
|
5212
|
+
if (limit !== undefined) {
|
|
5213
|
+
localVarQueryParameter['limit'] = limit;
|
|
5214
|
+
}
|
|
5215
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5216
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5217
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5218
|
+
return [2 /*return*/, {
|
|
5219
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5220
|
+
options: localVarRequestOptions,
|
|
5221
|
+
}];
|
|
5222
|
+
}
|
|
5223
|
+
});
|
|
5224
|
+
});
|
|
5225
|
+
},
|
|
5170
5226
|
/**
|
|
5171
5227
|
* 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
5228
|
* @summary Chat with Agent Manager
|
|
@@ -5228,6 +5284,31 @@ exports.ManagerApiAxiosParamCreator = ManagerApiAxiosParamCreator;
|
|
|
5228
5284
|
var ManagerApiFp = function (configuration) {
|
|
5229
5285
|
var localVarAxiosParamCreator = (0, exports.ManagerApiAxiosParamCreator)(configuration);
|
|
5230
5286
|
return {
|
|
5287
|
+
/**
|
|
5288
|
+
* Get the message history for an agent\'s manager chat session.
|
|
5289
|
+
* @summary Get manager chat messages
|
|
5290
|
+
* @param {string} aid Agent ID
|
|
5291
|
+
* @param {string | null} [cursor] Cursor for pagination (message id)
|
|
5292
|
+
* @param {number} [limit] Maximum number of messages to return
|
|
5293
|
+
* @param {*} [options] Override http request option.
|
|
5294
|
+
* @throws {RequiredError}
|
|
5295
|
+
*/
|
|
5296
|
+
getManagerMessages: function (aid, cursor, limit, options) {
|
|
5297
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5298
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
5299
|
+
var _a, _b, _c;
|
|
5300
|
+
return __generator(this, function (_d) {
|
|
5301
|
+
switch (_d.label) {
|
|
5302
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getManagerMessages(aid, cursor, limit, options)];
|
|
5303
|
+
case 1:
|
|
5304
|
+
localVarAxiosArgs = _d.sent();
|
|
5305
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5306
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerApi.getManagerMessages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5307
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
5308
|
+
}
|
|
5309
|
+
});
|
|
5310
|
+
});
|
|
5311
|
+
},
|
|
5231
5312
|
/**
|
|
5232
5313
|
* 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
5314
|
* @summary Chat with Agent Manager
|
|
@@ -5261,6 +5342,18 @@ exports.ManagerApiFp = ManagerApiFp;
|
|
|
5261
5342
|
var ManagerApiFactory = function (configuration, basePath, axios) {
|
|
5262
5343
|
var localVarFp = (0, exports.ManagerApiFp)(configuration);
|
|
5263
5344
|
return {
|
|
5345
|
+
/**
|
|
5346
|
+
* Get the message history for an agent\'s manager chat session.
|
|
5347
|
+
* @summary Get manager chat messages
|
|
5348
|
+
* @param {string} aid Agent ID
|
|
5349
|
+
* @param {string | null} [cursor] Cursor for pagination (message id)
|
|
5350
|
+
* @param {number} [limit] Maximum number of messages to return
|
|
5351
|
+
* @param {*} [options] Override http request option.
|
|
5352
|
+
* @throws {RequiredError}
|
|
5353
|
+
*/
|
|
5354
|
+
getManagerMessages: function (aid, cursor, limit, options) {
|
|
5355
|
+
return localVarFp.getManagerMessages(aid, cursor, limit, options).then(function (request) { return request(axios, basePath); });
|
|
5356
|
+
},
|
|
5264
5357
|
/**
|
|
5265
5358
|
* 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
5359
|
* @summary Chat with Agent Manager
|
|
@@ -5283,6 +5376,19 @@ var ManagerApi = /** @class */ (function (_super) {
|
|
|
5283
5376
|
function ManagerApi() {
|
|
5284
5377
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
5285
5378
|
}
|
|
5379
|
+
/**
|
|
5380
|
+
* Get the message history for an agent\'s manager chat session.
|
|
5381
|
+
* @summary Get manager chat messages
|
|
5382
|
+
* @param {string} aid Agent ID
|
|
5383
|
+
* @param {string | null} [cursor] Cursor for pagination (message id)
|
|
5384
|
+
* @param {number} [limit] Maximum number of messages to return
|
|
5385
|
+
* @param {*} [options] Override http request option.
|
|
5386
|
+
* @throws {RequiredError}
|
|
5387
|
+
*/
|
|
5388
|
+
ManagerApi.prototype.getManagerMessages = function (aid, cursor, limit, options) {
|
|
5389
|
+
var _this = this;
|
|
5390
|
+
return (0, exports.ManagerApiFp)(this.configuration).getManagerMessages(aid, cursor, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5391
|
+
};
|
|
5286
5392
|
/**
|
|
5287
5393
|
* 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
5394
|
* @summary Chat with Agent Manager
|
package/dist/base.d.ts
CHANGED
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.
|
|
8
|
+
* The version of the OpenAPI document: 0.8.32
|
|
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
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.
|
|
8
|
+
* The version of the OpenAPI document: 0.8.32
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.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.
|
|
8
|
+
* The version of the OpenAPI document: 0.8.32
|
|
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
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.
|
|
8
|
+
* The version of the OpenAPI document: 0.8.32
|
|
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
|
-
>
|
|
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
|
-
**
|
|
501
|
+
**AppManagerRouterChatMessagesResponse**
|
|
502
502
|
|
|
503
503
|
### Authorization
|
|
504
504
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
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 {
|
|
16
|
+
import { AppManagerRouterChatMessagesResponse } from '@crestal/nation-sdk';
|
|
17
17
|
|
|
18
|
-
const instance:
|
|
18
|
+
const instance: AppManagerRouterChatMessagesResponse = {
|
|
19
19
|
data,
|
|
20
20
|
has_more,
|
|
21
21
|
next_cursor,
|
package/docs/AuthorType.md
CHANGED
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
|
-
>
|
|
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
|
-
**
|
|
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
|
-
>
|
|
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
|
-
**
|
|
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
|
-
>
|
|
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
|
-
**
|
|
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-
|
|
31
|
-
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-
|
|
30
|
+
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-10-28T16:47:40.173+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-28T16:47:40.173+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-
|
|
31
|
-
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-
|
|
30
|
+
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-10-28T16:47:40.173+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-28T16:47:40.173+00:00]
|
|
32
32
|
**provider_name** | **string** | | [default to undefined]
|
|
33
33
|
|
|
34
34
|
## Example
|
package/docs/ManagerApi.md
CHANGED
|
@@ -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