@breign/client 1.0.105 → 1.0.107
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/models/AuthCodeConfirmRequestUio.d.ts +4 -4
- package/dist/models/AuthCodeConfirmRequestUio.js +4 -6
- package/dist/models/AuthCodeRequestUio.d.ts +13 -6
- package/dist/models/AuthCodeRequestUio.js +13 -6
- package/dist/models/AuthCodeRequestUserUio.d.ts +32 -0
- package/dist/models/AuthCodeRequestUserUio.js +50 -0
- package/dist/models/ChatMessageUio.d.ts +14 -0
- package/dist/models/ChatMessageUio.js +10 -0
- package/dist/models/OrganizationMemberUio.d.ts +3 -3
- package/dist/models/OrganizationMemberUio.js +3 -3
- 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/UserUio.d.ts +3 -3
- package/dist/models/UserUio.js +3 -3
- package/dist/models/index.d.ts +3 -2
- package/dist/models/index.js +3 -2
- package/dist/openapi.json +178 -59
- package/package.json +1 -1
- package/dist/models/AuthTypeUio.d.ts +0 -24
- package/dist/models/AuthTypeUio.js +0 -50
- package/dist/models/OrganizationMemberUserUio.d.ts +0 -32
- package/dist/models/OrganizationMemberUserUio.js +0 -50
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;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { AuthCodeRequestUserUio } from './AuthCodeRequestUserUio';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -18,10 +18,10 @@ import type { UserUio } from './UserUio';
|
|
|
18
18
|
export interface AuthCodeConfirmRequestUio {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {AuthCodeRequestUserUio}
|
|
22
22
|
* @memberof AuthCodeConfirmRequestUio
|
|
23
23
|
*/
|
|
24
|
-
user:
|
|
24
|
+
user: AuthCodeRequestUserUio;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
@@ -33,7 +33,7 @@ export interface AuthCodeConfirmRequestUio {
|
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof AuthCodeConfirmRequestUio
|
|
35
35
|
*/
|
|
36
|
-
name
|
|
36
|
+
name?: string;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* Check if a given object implements the AuthCodeConfirmRequestUio interface.
|
|
@@ -18,7 +18,7 @@ exports.AuthCodeConfirmRequestUioFromJSON = AuthCodeConfirmRequestUioFromJSON;
|
|
|
18
18
|
exports.AuthCodeConfirmRequestUioFromJSONTyped = AuthCodeConfirmRequestUioFromJSONTyped;
|
|
19
19
|
exports.AuthCodeConfirmRequestUioToJSON = AuthCodeConfirmRequestUioToJSON;
|
|
20
20
|
exports.AuthCodeConfirmRequestUioToJSONTyped = AuthCodeConfirmRequestUioToJSONTyped;
|
|
21
|
-
const
|
|
21
|
+
const AuthCodeRequestUserUio_1 = require("./AuthCodeRequestUserUio");
|
|
22
22
|
/**
|
|
23
23
|
* Check if a given object implements the AuthCodeConfirmRequestUio interface.
|
|
24
24
|
*/
|
|
@@ -27,8 +27,6 @@ function instanceOfAuthCodeConfirmRequestUio(value) {
|
|
|
27
27
|
return false;
|
|
28
28
|
if (!('code' in value) || value['code'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
31
|
-
return false;
|
|
32
30
|
return true;
|
|
33
31
|
}
|
|
34
32
|
function AuthCodeConfirmRequestUioFromJSON(json) {
|
|
@@ -39,9 +37,9 @@ function AuthCodeConfirmRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
37
|
return json;
|
|
40
38
|
}
|
|
41
39
|
return {
|
|
42
|
-
'user': (0,
|
|
40
|
+
'user': (0, AuthCodeRequestUserUio_1.AuthCodeRequestUserUioFromJSON)(json['user']),
|
|
43
41
|
'code': json['code'],
|
|
44
|
-
'name': json['name'],
|
|
42
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
45
43
|
};
|
|
46
44
|
}
|
|
47
45
|
function AuthCodeConfirmRequestUioToJSON(json) {
|
|
@@ -52,7 +50,7 @@ function AuthCodeConfirmRequestUioToJSONTyped(value, ignoreDiscriminator = false
|
|
|
52
50
|
return value;
|
|
53
51
|
}
|
|
54
52
|
return {
|
|
55
|
-
'user': (0,
|
|
53
|
+
'user': (0, AuthCodeRequestUserUio_1.AuthCodeRequestUserUioToJSON)(value['user']),
|
|
56
54
|
'code': value['code'],
|
|
57
55
|
'name': value['name'],
|
|
58
56
|
};
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
13
|
-
import type { AuthTypeUio } from './AuthTypeUio';
|
|
12
|
+
import type { AuthCodeRequestUserUio } from './AuthCodeRequestUserUio';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
16
15
|
* @export
|
|
@@ -19,17 +18,25 @@ import type { AuthTypeUio } from './AuthTypeUio';
|
|
|
19
18
|
export interface AuthCodeRequestUio {
|
|
20
19
|
/**
|
|
21
20
|
*
|
|
22
|
-
* @type {
|
|
21
|
+
* @type {AuthCodeRequestUserUio}
|
|
23
22
|
* @memberof AuthCodeRequestUio
|
|
24
23
|
*/
|
|
25
|
-
user:
|
|
24
|
+
user: AuthCodeRequestUserUio;
|
|
26
25
|
/**
|
|
27
26
|
*
|
|
28
|
-
* @type {
|
|
27
|
+
* @type {string}
|
|
29
28
|
* @memberof AuthCodeRequestUio
|
|
30
29
|
*/
|
|
31
|
-
type:
|
|
30
|
+
type: AuthCodeRequestUioTypeEnum;
|
|
32
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const AuthCodeRequestUioTypeEnum: {
|
|
36
|
+
readonly ApiKey: "API_KEY";
|
|
37
|
+
readonly Jwt: "JWT";
|
|
38
|
+
};
|
|
39
|
+
export type AuthCodeRequestUioTypeEnum = typeof AuthCodeRequestUioTypeEnum[keyof typeof AuthCodeRequestUioTypeEnum];
|
|
33
40
|
/**
|
|
34
41
|
* Check if a given object implements the AuthCodeRequestUio interface.
|
|
35
42
|
*/
|
|
@@ -13,13 +13,20 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AuthCodeRequestUioTypeEnum = void 0;
|
|
16
17
|
exports.instanceOfAuthCodeRequestUio = instanceOfAuthCodeRequestUio;
|
|
17
18
|
exports.AuthCodeRequestUioFromJSON = AuthCodeRequestUioFromJSON;
|
|
18
19
|
exports.AuthCodeRequestUioFromJSONTyped = AuthCodeRequestUioFromJSONTyped;
|
|
19
20
|
exports.AuthCodeRequestUioToJSON = AuthCodeRequestUioToJSON;
|
|
20
21
|
exports.AuthCodeRequestUioToJSONTyped = AuthCodeRequestUioToJSONTyped;
|
|
21
|
-
const
|
|
22
|
-
|
|
22
|
+
const AuthCodeRequestUserUio_1 = require("./AuthCodeRequestUserUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AuthCodeRequestUioTypeEnum = {
|
|
27
|
+
ApiKey: 'API_KEY',
|
|
28
|
+
Jwt: 'JWT'
|
|
29
|
+
};
|
|
23
30
|
/**
|
|
24
31
|
* Check if a given object implements the AuthCodeRequestUio interface.
|
|
25
32
|
*/
|
|
@@ -38,8 +45,8 @@ function AuthCodeRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
45
|
return json;
|
|
39
46
|
}
|
|
40
47
|
return {
|
|
41
|
-
'user': (0,
|
|
42
|
-
'type':
|
|
48
|
+
'user': (0, AuthCodeRequestUserUio_1.AuthCodeRequestUserUioFromJSON)(json['user']),
|
|
49
|
+
'type': json['type'],
|
|
43
50
|
};
|
|
44
51
|
}
|
|
45
52
|
function AuthCodeRequestUioToJSON(json) {
|
|
@@ -50,7 +57,7 @@ function AuthCodeRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
57
|
return value;
|
|
51
58
|
}
|
|
52
59
|
return {
|
|
53
|
-
'user': (0,
|
|
54
|
-
'type':
|
|
60
|
+
'user': (0, AuthCodeRequestUserUio_1.AuthCodeRequestUserUioToJSON)(value['user']),
|
|
61
|
+
'type': value['type'],
|
|
55
62
|
};
|
|
56
63
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 AuthCodeRequestUserUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AuthCodeRequestUserUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AuthCodeRequestUserUio
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AuthCodeRequestUserUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAuthCodeRequestUserUio(value: object): value is AuthCodeRequestUserUio;
|
|
29
|
+
export declare function AuthCodeRequestUserUioFromJSON(json: any): AuthCodeRequestUserUio;
|
|
30
|
+
export declare function AuthCodeRequestUserUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthCodeRequestUserUio;
|
|
31
|
+
export declare function AuthCodeRequestUserUioToJSON(json: any): AuthCodeRequestUserUio;
|
|
32
|
+
export declare function AuthCodeRequestUserUioToJSONTyped(value?: AuthCodeRequestUserUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfAuthCodeRequestUserUio = instanceOfAuthCodeRequestUserUio;
|
|
17
|
+
exports.AuthCodeRequestUserUioFromJSON = AuthCodeRequestUserUioFromJSON;
|
|
18
|
+
exports.AuthCodeRequestUserUioFromJSONTyped = AuthCodeRequestUserUioFromJSONTyped;
|
|
19
|
+
exports.AuthCodeRequestUserUioToJSON = AuthCodeRequestUserUioToJSON;
|
|
20
|
+
exports.AuthCodeRequestUserUioToJSONTyped = AuthCodeRequestUserUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AuthCodeRequestUserUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAuthCodeRequestUserUio(value) {
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AuthCodeRequestUserUioFromJSON(json) {
|
|
30
|
+
return AuthCodeRequestUserUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AuthCodeRequestUserUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'email': json['email'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AuthCodeRequestUserUioToJSON(json) {
|
|
41
|
+
return AuthCodeRequestUserUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AuthCodeRequestUserUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'email': value['email'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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)),
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { AuthCodeRequestUserUio } from './AuthCodeRequestUserUio';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -36,10 +36,10 @@ export interface OrganizationMemberUio {
|
|
|
36
36
|
createdAt: string;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
|
-
* @type {
|
|
39
|
+
* @type {AuthCodeRequestUserUio}
|
|
40
40
|
* @memberof OrganizationMemberUio
|
|
41
41
|
*/
|
|
42
|
-
user:
|
|
42
|
+
user: AuthCodeRequestUserUio;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
45
|
* Check if a given object implements the OrganizationMemberUio interface.
|
|
@@ -18,7 +18,7 @@ exports.OrganizationMemberUioFromJSON = OrganizationMemberUioFromJSON;
|
|
|
18
18
|
exports.OrganizationMemberUioFromJSONTyped = OrganizationMemberUioFromJSONTyped;
|
|
19
19
|
exports.OrganizationMemberUioToJSON = OrganizationMemberUioToJSON;
|
|
20
20
|
exports.OrganizationMemberUioToJSONTyped = OrganizationMemberUioToJSONTyped;
|
|
21
|
-
const
|
|
21
|
+
const AuthCodeRequestUserUio_1 = require("./AuthCodeRequestUserUio");
|
|
22
22
|
/**
|
|
23
23
|
* Check if a given object implements the OrganizationMemberUio interface.
|
|
24
24
|
*/
|
|
@@ -44,7 +44,7 @@ function OrganizationMemberUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'id': json['id'],
|
|
45
45
|
'role': json['role'],
|
|
46
46
|
'createdAt': json['createdAt'],
|
|
47
|
-
'user': (0,
|
|
47
|
+
'user': (0, AuthCodeRequestUserUio_1.AuthCodeRequestUserUioFromJSON)(json['user']),
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
function OrganizationMemberUioToJSON(json) {
|
|
@@ -58,6 +58,6 @@ function OrganizationMemberUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
58
|
'id': value['id'],
|
|
59
59
|
'role': value['role'],
|
|
60
60
|
'createdAt': value['createdAt'],
|
|
61
|
-
'user': (0,
|
|
61
|
+
'user': (0, AuthCodeRequestUserUio_1.AuthCodeRequestUserUioToJSON)(value['user']),
|
|
62
62
|
};
|
|
63
63
|
}
|