@breign/client 1.0.104 → 1.0.106
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/dist/apis/AgentApi.d.ts +10 -1
- package/dist/apis/AgentApi.js +13 -3
- package/dist/apis/AppApi.d.ts +10 -1
- package/dist/apis/AppApi.js +13 -3
- package/dist/apis/ConversationsApi.d.ts +10 -1
- package/dist/apis/ConversationsApi.js +13 -3
- package/dist/apis/PromptsApi.d.ts +16 -1
- package/dist/apis/PromptsApi.js +37 -0
- package/dist/apis/ScheduledTasksApi.d.ts +13 -0
- package/dist/apis/ScheduledTasksApi.js +39 -0
- package/dist/models/ChatMessageUio.d.ts +14 -0
- package/dist/models/ChatMessageUio.js +10 -0
- package/dist/models/SetMessageReaction200ResponseUio.d.ts +46 -0
- package/dist/models/SetMessageReaction200ResponseUio.js +62 -0
- package/dist/models/SetMessageReactionRequestUio.d.ts +40 -0
- package/dist/models/SetMessageReactionRequestUio.js +58 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/openapi.json +178 -0
- package/package.json +1 -1
package/dist/apis/AgentApi.d.ts
CHANGED
|
@@ -85,6 +85,7 @@ export interface GetConversationsForAgentRequest {
|
|
|
85
85
|
lastMessageFrom?: Date;
|
|
86
86
|
lastMessageTo?: Date;
|
|
87
87
|
sortOrder?: GetConversationsForAgentSortOrderEnum;
|
|
88
|
+
messageReaction?: GetConversationsForAgentMessageReactionEnum;
|
|
88
89
|
}
|
|
89
90
|
export interface GetFlowRequest {
|
|
90
91
|
agentId: string;
|
|
@@ -326,7 +327,7 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
326
327
|
* Get conversations for an agent
|
|
327
328
|
* Get conversations for an agent
|
|
328
329
|
*/
|
|
329
|
-
getConversationsForAgent(agentId: string, page?: number, search?: string, appId?: string, instanceId?: string, lastMessageFrom?: Date, lastMessageTo?: Date, sortOrder?: GetConversationsForAgentSortOrderEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChatUio>>;
|
|
330
|
+
getConversationsForAgent(agentId: string, page?: number, search?: string, appId?: string, instanceId?: string, lastMessageFrom?: Date, lastMessageTo?: Date, sortOrder?: GetConversationsForAgentSortOrderEnum, messageReaction?: GetConversationsForAgentMessageReactionEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChatUio>>;
|
|
330
331
|
/**
|
|
331
332
|
* Retrieves a specific conversation flow by ID
|
|
332
333
|
* Get a specific flow
|
|
@@ -516,6 +517,14 @@ export declare const GetConversationsForAgentSortOrderEnum: {
|
|
|
516
517
|
readonly Desc: "desc";
|
|
517
518
|
};
|
|
518
519
|
export type GetConversationsForAgentSortOrderEnum = typeof GetConversationsForAgentSortOrderEnum[keyof typeof GetConversationsForAgentSortOrderEnum];
|
|
520
|
+
/**
|
|
521
|
+
* @export
|
|
522
|
+
*/
|
|
523
|
+
export declare const GetConversationsForAgentMessageReactionEnum: {
|
|
524
|
+
readonly Positive: "positive";
|
|
525
|
+
readonly Negative: "negative";
|
|
526
|
+
};
|
|
527
|
+
export type GetConversationsForAgentMessageReactionEnum = typeof GetConversationsForAgentMessageReactionEnum[keyof typeof GetConversationsForAgentMessageReactionEnum];
|
|
519
528
|
/**
|
|
520
529
|
* @export
|
|
521
530
|
*/
|
package/dist/apis/AgentApi.js
CHANGED
|
@@ -46,7 +46,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
46
46
|
};
|
|
47
47
|
})();
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.ListOrganizationAgentsProviderSourceEnum = exports.GetConversationsForAgentSortOrderEnum = exports.GetAgentsProviderSourceEnum = exports.AgentApi = void 0;
|
|
49
|
+
exports.ListOrganizationAgentsProviderSourceEnum = exports.GetConversationsForAgentMessageReactionEnum = exports.GetConversationsForAgentSortOrderEnum = exports.GetAgentsProviderSourceEnum = exports.AgentApi = void 0;
|
|
50
50
|
const runtime = __importStar(require("../runtime"));
|
|
51
51
|
const index_1 = require("../models/index");
|
|
52
52
|
/**
|
|
@@ -601,6 +601,9 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
601
601
|
if (requestParameters['sortOrder'] != null) {
|
|
602
602
|
queryParameters['sortOrder'] = requestParameters['sortOrder'];
|
|
603
603
|
}
|
|
604
|
+
if (requestParameters['messageReaction'] != null) {
|
|
605
|
+
queryParameters['messageReaction'] = requestParameters['messageReaction'];
|
|
606
|
+
}
|
|
604
607
|
const headerParameters = {};
|
|
605
608
|
if (this.configuration && this.configuration.apiKey) {
|
|
606
609
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
@@ -617,8 +620,8 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
617
620
|
* Get conversations for an agent
|
|
618
621
|
* Get conversations for an agent
|
|
619
622
|
*/
|
|
620
|
-
async getConversationsForAgent(agentId, page, search, appId, instanceId, lastMessageFrom, lastMessageTo, sortOrder, initOverrides) {
|
|
621
|
-
const response = await this.getConversationsForAgentRaw({ agentId: agentId, page: page, search: search, appId: appId, instanceId: instanceId, lastMessageFrom: lastMessageFrom, lastMessageTo: lastMessageTo, sortOrder: sortOrder }, initOverrides);
|
|
623
|
+
async getConversationsForAgent(agentId, page, search, appId, instanceId, lastMessageFrom, lastMessageTo, sortOrder, messageReaction, initOverrides) {
|
|
624
|
+
const response = await this.getConversationsForAgentRaw({ agentId: agentId, page: page, search: search, appId: appId, instanceId: instanceId, lastMessageFrom: lastMessageFrom, lastMessageTo: lastMessageTo, sortOrder: sortOrder, messageReaction: messageReaction }, initOverrides);
|
|
622
625
|
return await response.value();
|
|
623
626
|
}
|
|
624
627
|
/**
|
|
@@ -1203,6 +1206,13 @@ exports.GetConversationsForAgentSortOrderEnum = {
|
|
|
1203
1206
|
Asc: 'asc',
|
|
1204
1207
|
Desc: 'desc'
|
|
1205
1208
|
};
|
|
1209
|
+
/**
|
|
1210
|
+
* @export
|
|
1211
|
+
*/
|
|
1212
|
+
exports.GetConversationsForAgentMessageReactionEnum = {
|
|
1213
|
+
Positive: 'positive',
|
|
1214
|
+
Negative: 'negative'
|
|
1215
|
+
};
|
|
1206
1216
|
/**
|
|
1207
1217
|
* @export
|
|
1208
1218
|
*/
|
package/dist/apis/AppApi.d.ts
CHANGED
|
@@ -80,6 +80,7 @@ export interface GetAppConfigurationPropertyRequest {
|
|
|
80
80
|
export interface GetAppConversationsRequest {
|
|
81
81
|
appId: string;
|
|
82
82
|
page?: number;
|
|
83
|
+
messageReaction?: GetAppConversationsMessageReactionEnum;
|
|
83
84
|
}
|
|
84
85
|
export interface GetAppProbeRequest {
|
|
85
86
|
appId: string;
|
|
@@ -319,7 +320,7 @@ export declare class AppApi extends runtime.BaseAPI {
|
|
|
319
320
|
* Get paginated conversations for an app
|
|
320
321
|
* Get conversations for an app
|
|
321
322
|
*/
|
|
322
|
-
getAppConversations(appId: string, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ConversationUio>>;
|
|
323
|
+
getAppConversations(appId: string, page?: number, messageReaction?: GetAppConversationsMessageReactionEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ConversationUio>>;
|
|
323
324
|
/**
|
|
324
325
|
* Probe the app
|
|
325
326
|
* Probe the app
|
|
@@ -493,3 +494,11 @@ export declare class AppApi extends runtime.BaseAPI {
|
|
|
493
494
|
*/
|
|
494
495
|
updateAppProfilePicture(appId: string, fileCreationRequestUio: FileCreationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<S3UploadBodyUio>;
|
|
495
496
|
}
|
|
497
|
+
/**
|
|
498
|
+
* @export
|
|
499
|
+
*/
|
|
500
|
+
export declare const GetAppConversationsMessageReactionEnum: {
|
|
501
|
+
readonly Positive: "positive";
|
|
502
|
+
readonly Negative: "negative";
|
|
503
|
+
};
|
|
504
|
+
export type GetAppConversationsMessageReactionEnum = typeof GetAppConversationsMessageReactionEnum[keyof typeof GetAppConversationsMessageReactionEnum];
|
package/dist/apis/AppApi.js
CHANGED
|
@@ -46,7 +46,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
46
46
|
};
|
|
47
47
|
})();
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.AppApi = void 0;
|
|
49
|
+
exports.GetAppConversationsMessageReactionEnum = exports.AppApi = void 0;
|
|
50
50
|
const runtime = __importStar(require("../runtime"));
|
|
51
51
|
const index_1 = require("../models/index");
|
|
52
52
|
/**
|
|
@@ -580,6 +580,9 @@ class AppApi extends runtime.BaseAPI {
|
|
|
580
580
|
if (requestParameters['page'] != null) {
|
|
581
581
|
queryParameters['page'] = requestParameters['page'];
|
|
582
582
|
}
|
|
583
|
+
if (requestParameters['messageReaction'] != null) {
|
|
584
|
+
queryParameters['messageReaction'] = requestParameters['messageReaction'];
|
|
585
|
+
}
|
|
583
586
|
const headerParameters = {};
|
|
584
587
|
if (this.configuration && this.configuration.apiKey) {
|
|
585
588
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
@@ -596,8 +599,8 @@ class AppApi extends runtime.BaseAPI {
|
|
|
596
599
|
* Get paginated conversations for an app
|
|
597
600
|
* Get conversations for an app
|
|
598
601
|
*/
|
|
599
|
-
async getAppConversations(appId, page, initOverrides) {
|
|
600
|
-
const response = await this.getAppConversationsRaw({ appId: appId, page: page }, initOverrides);
|
|
602
|
+
async getAppConversations(appId, page, messageReaction, initOverrides) {
|
|
603
|
+
const response = await this.getAppConversationsRaw({ appId: appId, page: page, messageReaction: messageReaction }, initOverrides);
|
|
601
604
|
return await response.value();
|
|
602
605
|
}
|
|
603
606
|
/**
|
|
@@ -1180,3 +1183,10 @@ class AppApi extends runtime.BaseAPI {
|
|
|
1180
1183
|
}
|
|
1181
1184
|
}
|
|
1182
1185
|
exports.AppApi = AppApi;
|
|
1186
|
+
/**
|
|
1187
|
+
* @export
|
|
1188
|
+
*/
|
|
1189
|
+
exports.GetAppConversationsMessageReactionEnum = {
|
|
1190
|
+
Positive: 'positive',
|
|
1191
|
+
Negative: 'negative'
|
|
1192
|
+
};
|
|
@@ -48,6 +48,7 @@ export interface GetContextCustomVariableRequest {
|
|
|
48
48
|
export interface GetConversationsRequest {
|
|
49
49
|
organizationId?: string;
|
|
50
50
|
providerSource?: GetConversationsProviderSourceEnum;
|
|
51
|
+
messageReaction?: GetConversationsMessageReactionEnum;
|
|
51
52
|
}
|
|
52
53
|
export interface UpdateAttachmentStatusRequest {
|
|
53
54
|
conversationId: string;
|
|
@@ -170,7 +171,7 @@ export declare class ConversationsApi extends runtime.BaseAPI {
|
|
|
170
171
|
* Retrieve a list of conversations for the authenticated user.
|
|
171
172
|
* List conversations
|
|
172
173
|
*/
|
|
173
|
-
getConversations(organizationId?: string, providerSource?: GetConversationsProviderSourceEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ConversationSummaryUio>>;
|
|
174
|
+
getConversations(organizationId?: string, providerSource?: GetConversationsProviderSourceEnum, messageReaction?: GetConversationsMessageReactionEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ConversationSummaryUio>>;
|
|
174
175
|
/**
|
|
175
176
|
* Change the status of an attachment to \'PROCESSING\' after it has been uploaded.
|
|
176
177
|
* Update the status of an uploaded attachment
|
|
@@ -216,3 +217,11 @@ export declare const GetConversationsProviderSourceEnum: {
|
|
|
216
217
|
readonly Internal: "INTERNAL";
|
|
217
218
|
};
|
|
218
219
|
export type GetConversationsProviderSourceEnum = typeof GetConversationsProviderSourceEnum[keyof typeof GetConversationsProviderSourceEnum];
|
|
220
|
+
/**
|
|
221
|
+
* @export
|
|
222
|
+
*/
|
|
223
|
+
export declare const GetConversationsMessageReactionEnum: {
|
|
224
|
+
readonly Positive: "positive";
|
|
225
|
+
readonly Negative: "negative";
|
|
226
|
+
};
|
|
227
|
+
export type GetConversationsMessageReactionEnum = typeof GetConversationsMessageReactionEnum[keyof typeof GetConversationsMessageReactionEnum];
|
|
@@ -46,7 +46,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
46
46
|
};
|
|
47
47
|
})();
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.GetConversationsProviderSourceEnum = exports.DeleteAllConversationsProviderSourceEnum = exports.ConversationsApi = void 0;
|
|
49
|
+
exports.GetConversationsMessageReactionEnum = exports.GetConversationsProviderSourceEnum = exports.DeleteAllConversationsProviderSourceEnum = exports.ConversationsApi = void 0;
|
|
50
50
|
const runtime = __importStar(require("../runtime"));
|
|
51
51
|
const index_1 = require("../models/index");
|
|
52
52
|
/**
|
|
@@ -340,6 +340,9 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
340
340
|
if (requestParameters['providerSource'] != null) {
|
|
341
341
|
queryParameters['providerSource'] = requestParameters['providerSource'];
|
|
342
342
|
}
|
|
343
|
+
if (requestParameters['messageReaction'] != null) {
|
|
344
|
+
queryParameters['messageReaction'] = requestParameters['messageReaction'];
|
|
345
|
+
}
|
|
343
346
|
const headerParameters = {};
|
|
344
347
|
if (this.configuration && this.configuration.apiKey) {
|
|
345
348
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
@@ -356,8 +359,8 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
356
359
|
* Retrieve a list of conversations for the authenticated user.
|
|
357
360
|
* List conversations
|
|
358
361
|
*/
|
|
359
|
-
async getConversations(organizationId, providerSource, initOverrides) {
|
|
360
|
-
const response = await this.getConversationsRaw({ organizationId: organizationId, providerSource: providerSource }, initOverrides);
|
|
362
|
+
async getConversations(organizationId, providerSource, messageReaction, initOverrides) {
|
|
363
|
+
const response = await this.getConversationsRaw({ organizationId: organizationId, providerSource: providerSource, messageReaction: messageReaction }, initOverrides);
|
|
361
364
|
return await response.value();
|
|
362
365
|
}
|
|
363
366
|
/**
|
|
@@ -474,3 +477,10 @@ exports.GetConversationsProviderSourceEnum = {
|
|
|
474
477
|
External: 'EXTERNAL',
|
|
475
478
|
Internal: 'INTERNAL'
|
|
476
479
|
};
|
|
480
|
+
/**
|
|
481
|
+
* @export
|
|
482
|
+
*/
|
|
483
|
+
exports.GetConversationsMessageReactionEnum = {
|
|
484
|
+
Positive: 'positive',
|
|
485
|
+
Negative: 'negative'
|
|
486
|
+
};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BodyWithIdUio, ChatMessageUio, Conversation1Uio, MessageUio, PromptCreateRequestUio, PromptCreateResponseUio, PromptFlowCreateRequestUio, PromptFlowCreateResponseUio } from '../models/index';
|
|
13
|
+
import type { BodyWithIdUio, ChatMessageUio, Conversation1Uio, MessageUio, PromptCreateRequestUio, PromptCreateResponseUio, PromptFlowCreateRequestUio, PromptFlowCreateResponseUio, SetMessageReaction200ResponseUio, SetMessageReactionRequestUio } from '../models/index';
|
|
14
14
|
export interface CreateConversationRequest {
|
|
15
15
|
agentId: string;
|
|
16
16
|
promptFlowCreateRequestUio: PromptFlowCreateRequestUio;
|
|
@@ -43,6 +43,11 @@ export interface SendMessageToConversationRequest {
|
|
|
43
43
|
messageUio: MessageUio;
|
|
44
44
|
async?: boolean;
|
|
45
45
|
}
|
|
46
|
+
export interface SetMessageReactionRequest {
|
|
47
|
+
conversationId: string;
|
|
48
|
+
messageId: string;
|
|
49
|
+
setMessageReactionRequestUio: SetMessageReactionRequestUio;
|
|
50
|
+
}
|
|
46
51
|
/**
|
|
47
52
|
*
|
|
48
53
|
*/
|
|
@@ -117,4 +122,14 @@ export declare class PromptsApi extends runtime.BaseAPI {
|
|
|
117
122
|
* Send a message to an existing conversation
|
|
118
123
|
*/
|
|
119
124
|
sendMessageToConversation(conversationId: string, messageUio: MessageUio, async?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PromptCreateResponseUio>;
|
|
125
|
+
/**
|
|
126
|
+
* Set or clear user reaction (thumb up/down) on a conversation message.
|
|
127
|
+
* Set reaction on a message
|
|
128
|
+
*/
|
|
129
|
+
setMessageReactionRaw(requestParameters: SetMessageReactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SetMessageReaction200ResponseUio>>;
|
|
130
|
+
/**
|
|
131
|
+
* Set or clear user reaction (thumb up/down) on a conversation message.
|
|
132
|
+
* Set reaction on a message
|
|
133
|
+
*/
|
|
134
|
+
setMessageReaction(conversationId: string, messageId: string, setMessageReactionRequestUio: SetMessageReactionRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SetMessageReaction200ResponseUio>;
|
|
120
135
|
}
|
package/dist/apis/PromptsApi.js
CHANGED
|
@@ -296,5 +296,42 @@ class PromptsApi extends runtime.BaseAPI {
|
|
|
296
296
|
const response = await this.sendMessageToConversationRaw({ conversationId: conversationId, messageUio: messageUio, async: async }, initOverrides);
|
|
297
297
|
return await response.value();
|
|
298
298
|
}
|
|
299
|
+
/**
|
|
300
|
+
* Set or clear user reaction (thumb up/down) on a conversation message.
|
|
301
|
+
* Set reaction on a message
|
|
302
|
+
*/
|
|
303
|
+
async setMessageReactionRaw(requestParameters, initOverrides) {
|
|
304
|
+
if (requestParameters['conversationId'] == null) {
|
|
305
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling setMessageReaction().');
|
|
306
|
+
}
|
|
307
|
+
if (requestParameters['messageId'] == null) {
|
|
308
|
+
throw new runtime.RequiredError('messageId', 'Required parameter "messageId" was null or undefined when calling setMessageReaction().');
|
|
309
|
+
}
|
|
310
|
+
if (requestParameters['setMessageReactionRequestUio'] == null) {
|
|
311
|
+
throw new runtime.RequiredError('setMessageReactionRequestUio', 'Required parameter "setMessageReactionRequestUio" was null or undefined when calling setMessageReaction().');
|
|
312
|
+
}
|
|
313
|
+
const queryParameters = {};
|
|
314
|
+
const headerParameters = {};
|
|
315
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
316
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
317
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
318
|
+
}
|
|
319
|
+
const response = await this.request({
|
|
320
|
+
path: `/conversations/{conversationId}/messages/{messageId}/reaction`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))).replace(`{${"messageId"}}`, encodeURIComponent(String(requestParameters['messageId']))),
|
|
321
|
+
method: 'PATCH',
|
|
322
|
+
headers: headerParameters,
|
|
323
|
+
query: queryParameters,
|
|
324
|
+
body: (0, index_1.SetMessageReactionRequestUioToJSON)(requestParameters['setMessageReactionRequestUio']),
|
|
325
|
+
}, initOverrides);
|
|
326
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SetMessageReaction200ResponseUioFromJSON)(jsonValue));
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Set or clear user reaction (thumb up/down) on a conversation message.
|
|
330
|
+
* Set reaction on a message
|
|
331
|
+
*/
|
|
332
|
+
async setMessageReaction(conversationId, messageId, setMessageReactionRequestUio, initOverrides) {
|
|
333
|
+
const response = await this.setMessageReactionRaw({ conversationId: conversationId, messageId: messageId, setMessageReactionRequestUio: setMessageReactionRequestUio }, initOverrides);
|
|
334
|
+
return await response.value();
|
|
335
|
+
}
|
|
299
336
|
}
|
|
300
337
|
exports.PromptsApi = PromptsApi;
|
|
@@ -28,6 +28,11 @@ export interface GetScheduledTaskRunRequest {
|
|
|
28
28
|
taskId: string;
|
|
29
29
|
runId: string;
|
|
30
30
|
}
|
|
31
|
+
export interface ListAgentScheduledTaskRunsRequest {
|
|
32
|
+
agentId: string;
|
|
33
|
+
from: Date;
|
|
34
|
+
to: Date;
|
|
35
|
+
}
|
|
31
36
|
export interface ListScheduledTaskRunsRequest {
|
|
32
37
|
agentId: string;
|
|
33
38
|
taskId: string;
|
|
@@ -91,6 +96,14 @@ export declare class ScheduledTasksApi extends runtime.BaseAPI {
|
|
|
91
96
|
* Get a specific scheduled task run by ID
|
|
92
97
|
*/
|
|
93
98
|
getScheduledTaskRun(agentId: string, taskId: string, runId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTaskRunUio>;
|
|
99
|
+
/**
|
|
100
|
+
* List all runs for an agent\'s scheduled tasks within a date range
|
|
101
|
+
*/
|
|
102
|
+
listAgentScheduledTaskRunsRaw(requestParameters: ListAgentScheduledTaskRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScheduledTaskRunListUio>>;
|
|
103
|
+
/**
|
|
104
|
+
* List all runs for an agent\'s scheduled tasks within a date range
|
|
105
|
+
*/
|
|
106
|
+
listAgentScheduledTaskRuns(agentId: string, from: Date, to: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTaskRunListUio>;
|
|
94
107
|
/**
|
|
95
108
|
* List runs for a scheduled task
|
|
96
109
|
*/
|
|
@@ -177,6 +177,45 @@ class ScheduledTasksApi extends runtime.BaseAPI {
|
|
|
177
177
|
const response = await this.getScheduledTaskRunRaw({ agentId: agentId, taskId: taskId, runId: runId }, initOverrides);
|
|
178
178
|
return await response.value();
|
|
179
179
|
}
|
|
180
|
+
/**
|
|
181
|
+
* List all runs for an agent\'s scheduled tasks within a date range
|
|
182
|
+
*/
|
|
183
|
+
async listAgentScheduledTaskRunsRaw(requestParameters, initOverrides) {
|
|
184
|
+
if (requestParameters['agentId'] == null) {
|
|
185
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling listAgentScheduledTaskRuns().');
|
|
186
|
+
}
|
|
187
|
+
if (requestParameters['from'] == null) {
|
|
188
|
+
throw new runtime.RequiredError('from', 'Required parameter "from" was null or undefined when calling listAgentScheduledTaskRuns().');
|
|
189
|
+
}
|
|
190
|
+
if (requestParameters['to'] == null) {
|
|
191
|
+
throw new runtime.RequiredError('to', 'Required parameter "to" was null or undefined when calling listAgentScheduledTaskRuns().');
|
|
192
|
+
}
|
|
193
|
+
const queryParameters = {};
|
|
194
|
+
if (requestParameters['from'] != null) {
|
|
195
|
+
queryParameters['from'] = requestParameters['from'].toISOString();
|
|
196
|
+
}
|
|
197
|
+
if (requestParameters['to'] != null) {
|
|
198
|
+
queryParameters['to'] = requestParameters['to'].toISOString();
|
|
199
|
+
}
|
|
200
|
+
const headerParameters = {};
|
|
201
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
202
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
203
|
+
}
|
|
204
|
+
const response = await this.request({
|
|
205
|
+
path: `/agents/{agentId}/scheduled-tasks/runs`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
206
|
+
method: 'GET',
|
|
207
|
+
headers: headerParameters,
|
|
208
|
+
query: queryParameters,
|
|
209
|
+
}, initOverrides);
|
|
210
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ScheduledTaskRunListUioFromJSON)(jsonValue));
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* List all runs for an agent\'s scheduled tasks within a date range
|
|
214
|
+
*/
|
|
215
|
+
async listAgentScheduledTaskRuns(agentId, from, to, initOverrides) {
|
|
216
|
+
const response = await this.listAgentScheduledTaskRunsRaw({ agentId: agentId, from: from, to: to }, initOverrides);
|
|
217
|
+
return await response.value();
|
|
218
|
+
}
|
|
180
219
|
/**
|
|
181
220
|
* List runs for a scheduled task
|
|
182
221
|
*/
|
|
@@ -41,6 +41,12 @@ export interface ChatMessageUio {
|
|
|
41
41
|
* @memberof ChatMessageUio
|
|
42
42
|
*/
|
|
43
43
|
content: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ChatMessageUio
|
|
48
|
+
*/
|
|
49
|
+
reaction?: ChatMessageUioReactionEnum | null;
|
|
44
50
|
/**
|
|
45
51
|
*
|
|
46
52
|
* @type {boolean}
|
|
@@ -138,6 +144,14 @@ export interface ChatMessageUio {
|
|
|
138
144
|
*/
|
|
139
145
|
usage?: TokenUsageUio;
|
|
140
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* @export
|
|
149
|
+
*/
|
|
150
|
+
export declare const ChatMessageUioReactionEnum: {
|
|
151
|
+
readonly Positive: "positive";
|
|
152
|
+
readonly Negative: "negative";
|
|
153
|
+
};
|
|
154
|
+
export type ChatMessageUioReactionEnum = typeof ChatMessageUioReactionEnum[keyof typeof ChatMessageUioReactionEnum];
|
|
141
155
|
/**
|
|
142
156
|
* Check if a given object implements the ChatMessageUio interface.
|
|
143
157
|
*/
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ChatMessageUioReactionEnum = void 0;
|
|
16
17
|
exports.instanceOfChatMessageUio = instanceOfChatMessageUio;
|
|
17
18
|
exports.ChatMessageUioFromJSON = ChatMessageUioFromJSON;
|
|
18
19
|
exports.ChatMessageUioFromJSONTyped = ChatMessageUioFromJSONTyped;
|
|
@@ -26,6 +27,13 @@ const FileAttachmentUio_1 = require("./FileAttachmentUio");
|
|
|
26
27
|
const ChatMessageAudioInnerUio_1 = require("./ChatMessageAudioInnerUio");
|
|
27
28
|
const ToolResultsUio_1 = require("./ToolResultsUio");
|
|
28
29
|
const TokenUsageUio_1 = require("./TokenUsageUio");
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.ChatMessageUioReactionEnum = {
|
|
34
|
+
Positive: 'positive',
|
|
35
|
+
Negative: 'negative'
|
|
36
|
+
};
|
|
29
37
|
/**
|
|
30
38
|
* Check if a given object implements the ChatMessageUio interface.
|
|
31
39
|
*/
|
|
@@ -51,6 +59,7 @@ function ChatMessageUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
59
|
'id': json['id'],
|
|
52
60
|
'role': (0, ChatMessageRoleUio_1.ChatMessageRoleUioFromJSON)(json['role']),
|
|
53
61
|
'content': json['content'],
|
|
62
|
+
'reaction': json['reaction'] == null ? undefined : json['reaction'],
|
|
54
63
|
'askConfirmation': json['askConfirmation'] == null ? undefined : json['askConfirmation'],
|
|
55
64
|
'confirmationLink': json['confirmationLink'] == null ? undefined : json['confirmationLink'],
|
|
56
65
|
'toolResults': json['toolResults'] == null ? undefined : (json['toolResults'].map(ToolResultsUio_1.ToolResultsUioFromJSON)),
|
|
@@ -80,6 +89,7 @@ function ChatMessageUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
80
89
|
'id': value['id'],
|
|
81
90
|
'role': (0, ChatMessageRoleUio_1.ChatMessageRoleUioToJSON)(value['role']),
|
|
82
91
|
'content': value['content'],
|
|
92
|
+
'reaction': value['reaction'],
|
|
83
93
|
'askConfirmation': value['askConfirmation'],
|
|
84
94
|
'confirmationLink': value['confirmationLink'],
|
|
85
95
|
'toolResults': value['toolResults'] == null ? undefined : (value['toolResults'].map(ToolResultsUio_1.ToolResultsUioToJSON)),
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SetMessageReaction200ResponseUio
|
|
16
|
+
*/
|
|
17
|
+
export interface SetMessageReaction200ResponseUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SetMessageReaction200ResponseUio
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SetMessageReaction200ResponseUio
|
|
28
|
+
*/
|
|
29
|
+
reaction: SetMessageReaction200ResponseUioReactionEnum | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const SetMessageReaction200ResponseUioReactionEnum: {
|
|
35
|
+
readonly Positive: "positive";
|
|
36
|
+
readonly Negative: "negative";
|
|
37
|
+
};
|
|
38
|
+
export type SetMessageReaction200ResponseUioReactionEnum = typeof SetMessageReaction200ResponseUioReactionEnum[keyof typeof SetMessageReaction200ResponseUioReactionEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the SetMessageReaction200ResponseUio interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfSetMessageReaction200ResponseUio(value: object): value is SetMessageReaction200ResponseUio;
|
|
43
|
+
export declare function SetMessageReaction200ResponseUioFromJSON(json: any): SetMessageReaction200ResponseUio;
|
|
44
|
+
export declare function SetMessageReaction200ResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetMessageReaction200ResponseUio;
|
|
45
|
+
export declare function SetMessageReaction200ResponseUioToJSON(json: any): SetMessageReaction200ResponseUio;
|
|
46
|
+
export declare function SetMessageReaction200ResponseUioToJSONTyped(value?: SetMessageReaction200ResponseUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SetMessageReaction200ResponseUioReactionEnum = void 0;
|
|
17
|
+
exports.instanceOfSetMessageReaction200ResponseUio = instanceOfSetMessageReaction200ResponseUio;
|
|
18
|
+
exports.SetMessageReaction200ResponseUioFromJSON = SetMessageReaction200ResponseUioFromJSON;
|
|
19
|
+
exports.SetMessageReaction200ResponseUioFromJSONTyped = SetMessageReaction200ResponseUioFromJSONTyped;
|
|
20
|
+
exports.SetMessageReaction200ResponseUioToJSON = SetMessageReaction200ResponseUioToJSON;
|
|
21
|
+
exports.SetMessageReaction200ResponseUioToJSONTyped = SetMessageReaction200ResponseUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.SetMessageReaction200ResponseUioReactionEnum = {
|
|
26
|
+
Positive: 'positive',
|
|
27
|
+
Negative: 'negative'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the SetMessageReaction200ResponseUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfSetMessageReaction200ResponseUio(value) {
|
|
33
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('reaction' in value) || value['reaction'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function SetMessageReaction200ResponseUioFromJSON(json) {
|
|
40
|
+
return SetMessageReaction200ResponseUioFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function SetMessageReaction200ResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'reaction': json['reaction'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function SetMessageReaction200ResponseUioToJSON(json) {
|
|
52
|
+
return SetMessageReaction200ResponseUioToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function SetMessageReaction200ResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'id': value['id'],
|
|
60
|
+
'reaction': value['reaction'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SetMessageReactionRequestUio
|
|
16
|
+
*/
|
|
17
|
+
export interface SetMessageReactionRequestUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SetMessageReactionRequestUio
|
|
22
|
+
*/
|
|
23
|
+
reaction: SetMessageReactionRequestUioReactionEnum | null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const SetMessageReactionRequestUioReactionEnum: {
|
|
29
|
+
readonly Positive: "positive";
|
|
30
|
+
readonly Negative: "negative";
|
|
31
|
+
};
|
|
32
|
+
export type SetMessageReactionRequestUioReactionEnum = typeof SetMessageReactionRequestUioReactionEnum[keyof typeof SetMessageReactionRequestUioReactionEnum];
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the SetMessageReactionRequestUio interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfSetMessageReactionRequestUio(value: object): value is SetMessageReactionRequestUio;
|
|
37
|
+
export declare function SetMessageReactionRequestUioFromJSON(json: any): SetMessageReactionRequestUio;
|
|
38
|
+
export declare function SetMessageReactionRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetMessageReactionRequestUio;
|
|
39
|
+
export declare function SetMessageReactionRequestUioToJSON(json: any): SetMessageReactionRequestUio;
|
|
40
|
+
export declare function SetMessageReactionRequestUioToJSONTyped(value?: SetMessageReactionRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SetMessageReactionRequestUioReactionEnum = void 0;
|
|
17
|
+
exports.instanceOfSetMessageReactionRequestUio = instanceOfSetMessageReactionRequestUio;
|
|
18
|
+
exports.SetMessageReactionRequestUioFromJSON = SetMessageReactionRequestUioFromJSON;
|
|
19
|
+
exports.SetMessageReactionRequestUioFromJSONTyped = SetMessageReactionRequestUioFromJSONTyped;
|
|
20
|
+
exports.SetMessageReactionRequestUioToJSON = SetMessageReactionRequestUioToJSON;
|
|
21
|
+
exports.SetMessageReactionRequestUioToJSONTyped = SetMessageReactionRequestUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.SetMessageReactionRequestUioReactionEnum = {
|
|
26
|
+
Positive: 'positive',
|
|
27
|
+
Negative: 'negative'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the SetMessageReactionRequestUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfSetMessageReactionRequestUio(value) {
|
|
33
|
+
if (!('reaction' in value) || value['reaction'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function SetMessageReactionRequestUioFromJSON(json) {
|
|
38
|
+
return SetMessageReactionRequestUioFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function SetMessageReactionRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'reaction': json['reaction'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function SetMessageReactionRequestUioToJSON(json) {
|
|
49
|
+
return SetMessageReactionRequestUioToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function SetMessageReactionRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'reaction': value['reaction'],
|
|
57
|
+
};
|
|
58
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -244,6 +244,8 @@ export * from './ScheduledTaskUio';
|
|
|
244
244
|
export * from './SequenceContentsUio';
|
|
245
245
|
export * from './SequenceCreateRequestUio';
|
|
246
246
|
export * from './SequenceUio';
|
|
247
|
+
export * from './SetMessageReaction200ResponseUio';
|
|
248
|
+
export * from './SetMessageReactionRequestUio';
|
|
247
249
|
export * from './SetTokenRequestUio';
|
|
248
250
|
export * from './SetupToolRequestUio';
|
|
249
251
|
export * from './SimpleAgentUio';
|
package/dist/models/index.js
CHANGED
|
@@ -262,6 +262,8 @@ __exportStar(require("./ScheduledTaskUio"), exports);
|
|
|
262
262
|
__exportStar(require("./SequenceContentsUio"), exports);
|
|
263
263
|
__exportStar(require("./SequenceCreateRequestUio"), exports);
|
|
264
264
|
__exportStar(require("./SequenceUio"), exports);
|
|
265
|
+
__exportStar(require("./SetMessageReaction200ResponseUio"), exports);
|
|
266
|
+
__exportStar(require("./SetMessageReactionRequestUio"), exports);
|
|
265
267
|
__exportStar(require("./SetTokenRequestUio"), exports);
|
|
266
268
|
__exportStar(require("./SetupToolRequestUio"), exports);
|
|
267
269
|
__exportStar(require("./SimpleAgentUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -1507,6 +1507,14 @@
|
|
|
1507
1507
|
"enum" : [ "asc", "desc" ],
|
|
1508
1508
|
"type" : "string"
|
|
1509
1509
|
}
|
|
1510
|
+
}, {
|
|
1511
|
+
"description" : "Filter conversations that have at least one message with this reaction",
|
|
1512
|
+
"in" : "query",
|
|
1513
|
+
"name" : "messageReaction",
|
|
1514
|
+
"schema" : {
|
|
1515
|
+
"enum" : [ "positive", "negative" ],
|
|
1516
|
+
"type" : "string"
|
|
1517
|
+
}
|
|
1510
1518
|
} ],
|
|
1511
1519
|
"responses" : {
|
|
1512
1520
|
"200" : {
|
|
@@ -2163,6 +2171,62 @@
|
|
|
2163
2171
|
"tags" : [ "scheduledTasks" ]
|
|
2164
2172
|
}
|
|
2165
2173
|
},
|
|
2174
|
+
"/agents/{agentId}/scheduled-tasks/runs" : {
|
|
2175
|
+
"get" : {
|
|
2176
|
+
"operationId" : "listAgentScheduledTaskRuns",
|
|
2177
|
+
"parameters" : [ {
|
|
2178
|
+
"description" : "ID of the agent",
|
|
2179
|
+
"in" : "path",
|
|
2180
|
+
"name" : "agentId",
|
|
2181
|
+
"required" : true,
|
|
2182
|
+
"schema" : {
|
|
2183
|
+
"format" : "uuid",
|
|
2184
|
+
"type" : "string"
|
|
2185
|
+
}
|
|
2186
|
+
}, {
|
|
2187
|
+
"description" : "Start of the date range (inclusive)",
|
|
2188
|
+
"in" : "query",
|
|
2189
|
+
"name" : "from",
|
|
2190
|
+
"required" : true,
|
|
2191
|
+
"schema" : {
|
|
2192
|
+
"format" : "date-time",
|
|
2193
|
+
"type" : "string"
|
|
2194
|
+
}
|
|
2195
|
+
}, {
|
|
2196
|
+
"description" : "End of the date range (exclusive)",
|
|
2197
|
+
"in" : "query",
|
|
2198
|
+
"name" : "to",
|
|
2199
|
+
"required" : true,
|
|
2200
|
+
"schema" : {
|
|
2201
|
+
"format" : "date-time",
|
|
2202
|
+
"type" : "string"
|
|
2203
|
+
}
|
|
2204
|
+
} ],
|
|
2205
|
+
"responses" : {
|
|
2206
|
+
"200" : {
|
|
2207
|
+
"content" : {
|
|
2208
|
+
"application/json" : {
|
|
2209
|
+
"schema" : {
|
|
2210
|
+
"$ref" : "#/components/schemas/ScheduledTaskRunList"
|
|
2211
|
+
}
|
|
2212
|
+
}
|
|
2213
|
+
},
|
|
2214
|
+
"description" : "List of runs for all tasks of the agent in the given date range"
|
|
2215
|
+
},
|
|
2216
|
+
"400" : {
|
|
2217
|
+
"description" : "Missing or invalid from/to parameters"
|
|
2218
|
+
},
|
|
2219
|
+
"401" : {
|
|
2220
|
+
"description" : "Unauthorized"
|
|
2221
|
+
},
|
|
2222
|
+
"403" : {
|
|
2223
|
+
"description" : "Forbidden"
|
|
2224
|
+
}
|
|
2225
|
+
},
|
|
2226
|
+
"summary" : "List all runs for an agent's scheduled tasks within a date range",
|
|
2227
|
+
"tags" : [ "scheduledTasks" ]
|
|
2228
|
+
}
|
|
2229
|
+
},
|
|
2166
2230
|
"/agents/{agentId}/scheduled-tasks/{taskId}/runs" : {
|
|
2167
2231
|
"get" : {
|
|
2168
2232
|
"operationId" : "listScheduledTaskRuns",
|
|
@@ -3412,6 +3476,14 @@
|
|
|
3412
3476
|
"default" : 0,
|
|
3413
3477
|
"type" : "integer"
|
|
3414
3478
|
}
|
|
3479
|
+
}, {
|
|
3480
|
+
"description" : "Filter conversations that have at least one message with this reaction",
|
|
3481
|
+
"in" : "query",
|
|
3482
|
+
"name" : "messageReaction",
|
|
3483
|
+
"schema" : {
|
|
3484
|
+
"enum" : [ "positive", "negative" ],
|
|
3485
|
+
"type" : "string"
|
|
3486
|
+
}
|
|
3415
3487
|
} ],
|
|
3416
3488
|
"responses" : {
|
|
3417
3489
|
"200" : {
|
|
@@ -4228,6 +4300,14 @@
|
|
|
4228
4300
|
"enum" : [ "EXTERNAL", "INTERNAL" ],
|
|
4229
4301
|
"type" : "string"
|
|
4230
4302
|
}
|
|
4303
|
+
}, {
|
|
4304
|
+
"description" : "Filter conversations that have at least one message with this reaction",
|
|
4305
|
+
"in" : "query",
|
|
4306
|
+
"name" : "messageReaction",
|
|
4307
|
+
"schema" : {
|
|
4308
|
+
"enum" : [ "positive", "negative" ],
|
|
4309
|
+
"type" : "string"
|
|
4310
|
+
}
|
|
4231
4311
|
} ],
|
|
4232
4312
|
"responses" : {
|
|
4233
4313
|
"200" : {
|
|
@@ -9478,6 +9558,65 @@
|
|
|
9478
9558
|
"tags" : [ "prompts" ]
|
|
9479
9559
|
}
|
|
9480
9560
|
},
|
|
9561
|
+
"/conversations/{conversationId}/messages/{messageId}/reaction" : {
|
|
9562
|
+
"patch" : {
|
|
9563
|
+
"description" : "Set or clear user reaction (thumb up/down) on a conversation message.",
|
|
9564
|
+
"operationId" : "setMessageReaction",
|
|
9565
|
+
"parameters" : [ {
|
|
9566
|
+
"description" : "The ID of the conversation",
|
|
9567
|
+
"in" : "path",
|
|
9568
|
+
"name" : "conversationId",
|
|
9569
|
+
"required" : true,
|
|
9570
|
+
"schema" : {
|
|
9571
|
+
"type" : "string"
|
|
9572
|
+
}
|
|
9573
|
+
}, {
|
|
9574
|
+
"description" : "The ID of the message",
|
|
9575
|
+
"in" : "path",
|
|
9576
|
+
"name" : "messageId",
|
|
9577
|
+
"required" : true,
|
|
9578
|
+
"schema" : {
|
|
9579
|
+
"type" : "string"
|
|
9580
|
+
}
|
|
9581
|
+
} ],
|
|
9582
|
+
"requestBody" : {
|
|
9583
|
+
"content" : {
|
|
9584
|
+
"application/json" : {
|
|
9585
|
+
"schema" : {
|
|
9586
|
+
"$ref" : "#/components/schemas/setMessageReaction_request"
|
|
9587
|
+
}
|
|
9588
|
+
}
|
|
9589
|
+
},
|
|
9590
|
+
"required" : true
|
|
9591
|
+
},
|
|
9592
|
+
"responses" : {
|
|
9593
|
+
"200" : {
|
|
9594
|
+
"content" : {
|
|
9595
|
+
"application/json" : {
|
|
9596
|
+
"schema" : {
|
|
9597
|
+
"$ref" : "#/components/schemas/setMessageReaction_200_response"
|
|
9598
|
+
}
|
|
9599
|
+
}
|
|
9600
|
+
},
|
|
9601
|
+
"description" : "Reaction updated successfully"
|
|
9602
|
+
},
|
|
9603
|
+
"400" : {
|
|
9604
|
+
"description" : "Invalid request"
|
|
9605
|
+
},
|
|
9606
|
+
"401" : {
|
|
9607
|
+
"description" : "Unauthorized"
|
|
9608
|
+
},
|
|
9609
|
+
"403" : {
|
|
9610
|
+
"description" : "Forbidden - User cannot access this conversation"
|
|
9611
|
+
},
|
|
9612
|
+
"404" : {
|
|
9613
|
+
"description" : "Conversation or message not found"
|
|
9614
|
+
}
|
|
9615
|
+
},
|
|
9616
|
+
"summary" : "Set reaction on a message",
|
|
9617
|
+
"tags" : [ "prompts" ]
|
|
9618
|
+
}
|
|
9619
|
+
},
|
|
9481
9620
|
"/apps/{appId}/languages/{language}/fillers/{fillerId}/audio" : {
|
|
9482
9621
|
"get" : {
|
|
9483
9622
|
"description" : "Get audio filler by ID",
|
|
@@ -9773,6 +9912,15 @@
|
|
|
9773
9912
|
"type" : "string"
|
|
9774
9913
|
}
|
|
9775
9914
|
},
|
|
9915
|
+
"messageReaction" : {
|
|
9916
|
+
"description" : "Filter conversations that have at least one message with this reaction",
|
|
9917
|
+
"in" : "query",
|
|
9918
|
+
"name" : "messageReaction",
|
|
9919
|
+
"schema" : {
|
|
9920
|
+
"enum" : [ "positive", "negative" ],
|
|
9921
|
+
"type" : "string"
|
|
9922
|
+
}
|
|
9923
|
+
},
|
|
9776
9924
|
"ephemeral" : {
|
|
9777
9925
|
"description" : "If true, the resource will not appear in history and will be deleted after a certain time.",
|
|
9778
9926
|
"in" : "query",
|
|
@@ -11375,6 +11523,11 @@
|
|
|
11375
11523
|
"content" : {
|
|
11376
11524
|
"type" : "string"
|
|
11377
11525
|
},
|
|
11526
|
+
"reaction" : {
|
|
11527
|
+
"enum" : [ "positive", "negative" ],
|
|
11528
|
+
"nullable" : true,
|
|
11529
|
+
"type" : "string"
|
|
11530
|
+
},
|
|
11378
11531
|
"askConfirmation" : {
|
|
11379
11532
|
"type" : "boolean"
|
|
11380
11533
|
},
|
|
@@ -14999,6 +15152,31 @@
|
|
|
14999
15152
|
},
|
|
15000
15153
|
"type" : "object"
|
|
15001
15154
|
},
|
|
15155
|
+
"setMessageReaction_request" : {
|
|
15156
|
+
"properties" : {
|
|
15157
|
+
"reaction" : {
|
|
15158
|
+
"enum" : [ "positive", "negative" ],
|
|
15159
|
+
"nullable" : true,
|
|
15160
|
+
"type" : "string"
|
|
15161
|
+
}
|
|
15162
|
+
},
|
|
15163
|
+
"required" : [ "reaction" ],
|
|
15164
|
+
"type" : "object"
|
|
15165
|
+
},
|
|
15166
|
+
"setMessageReaction_200_response" : {
|
|
15167
|
+
"properties" : {
|
|
15168
|
+
"id" : {
|
|
15169
|
+
"type" : "string"
|
|
15170
|
+
},
|
|
15171
|
+
"reaction" : {
|
|
15172
|
+
"enum" : [ "positive", "negative" ],
|
|
15173
|
+
"nullable" : true,
|
|
15174
|
+
"type" : "string"
|
|
15175
|
+
}
|
|
15176
|
+
},
|
|
15177
|
+
"required" : [ "id", "reaction" ],
|
|
15178
|
+
"type" : "object"
|
|
15179
|
+
},
|
|
15002
15180
|
"KnowledgeBase_files_inner" : {
|
|
15003
15181
|
"properties" : {
|
|
15004
15182
|
"id" : {
|