@breign/client 1.0.126 → 1.0.127
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/AiGatewayApi.d.ts +100 -0
- package/dist/apis/AiGatewayApi.js +248 -0
- package/dist/apis/AppApi.d.ts +17 -3
- package/dist/apis/AppApi.js +36 -2
- package/dist/apis/AuthApi.d.ts +40 -1
- package/dist/apis/AuthApi.js +82 -0
- package/dist/apis/ConfigurationApi.d.ts +16 -3
- package/dist/apis/ConfigurationApi.js +33 -2
- package/dist/apis/ConversationsApi.d.ts +32 -3
- package/dist/apis/ConversationsApi.js +76 -2
- package/dist/apis/EngineApi.d.ts +17 -16
- package/dist/apis/EngineApi.js +33 -30
- package/dist/apis/EnginesApi.d.ts +3 -3
- package/dist/apis/EnginesApi.js +4 -4
- package/dist/apis/OrganizationsApi.d.ts +10 -111
- package/dist/apis/OrganizationsApi.js +12 -264
- package/dist/apis/PromptsApi.d.ts +3 -3
- package/dist/apis/PromptsApi.js +1 -1
- package/dist/apis/ToolsApi.d.ts +1 -2
- package/dist/apis/ToolsApi.js +3 -6
- package/dist/apis/UsersApi.d.ts +127 -0
- package/dist/apis/UsersApi.js +308 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AiGatewayChatCompletionRequestUio.d.ts +57 -0
- package/dist/models/AiGatewayChatCompletionRequestUio.js +61 -0
- package/dist/models/AiGatewayChatCompletionResponseUio.d.ts +47 -0
- package/dist/models/AiGatewayChatCompletionResponseUio.js +54 -0
- package/dist/models/AiGatewayEmbeddingRequestUio.d.ts +38 -0
- package/dist/models/AiGatewayEmbeddingRequestUio.js +54 -0
- package/dist/models/AiGatewayEmbeddingResponseUio.d.ts +47 -0
- package/dist/models/AiGatewayEmbeddingResponseUio.js +54 -0
- package/dist/models/AiGatewayErrorUio.d.ts +33 -0
- package/dist/models/AiGatewayErrorUio.js +51 -0
- package/dist/models/AiGatewayMessageUio.d.ts +47 -0
- package/dist/models/AiGatewayMessageUio.js +63 -0
- package/dist/models/AiGatewayModelListDataInnerUio.d.ts +57 -0
- package/dist/models/AiGatewayModelListDataInnerUio.js +69 -0
- package/dist/models/AiGatewayModelListUio.d.ts +46 -0
- package/dist/models/AiGatewayModelListUio.js +62 -0
- package/dist/models/AiGatewayModelUio.d.ts +57 -0
- package/dist/models/AiGatewayModelUio.js +69 -0
- package/dist/models/ApiKeyCreateRequestUio.d.ts +32 -0
- package/dist/models/ApiKeyCreateRequestUio.js +50 -0
- package/dist/models/ApiKeyCreatedUio.d.ts +44 -0
- package/dist/models/{ApiKeyUio.js → ApiKeyCreatedUio.js} +13 -13
- package/dist/models/ApiKeyRefUio.d.ts +38 -0
- package/dist/models/ApiKeyRefUio.js +54 -0
- package/dist/models/AppInstanceEphemeralCreateRequestUio.d.ts +1 -1
- package/dist/models/AppInstanceEphemeralCreateRequestUio.js +3 -1
- package/dist/models/AppReplaceRequestUio.d.ts +94 -0
- package/dist/models/AppReplaceRequestUio.js +82 -0
- package/dist/models/AppTextToSpeechResponseUio.d.ts +3 -3
- package/dist/models/AppTextToSpeechResponseUio.js +3 -3
- package/dist/models/AppUpdateRequestEphemeralInstancesUio.d.ts +38 -0
- package/dist/models/AppUpdateRequestEphemeralInstancesUio.js +50 -0
- package/dist/models/AppUpdateRequestUio.d.ts +12 -12
- package/dist/models/AppUpdateRequestUio.js +3 -3
- package/dist/models/AttachmentProcessedRequestUio.d.ts +50 -0
- package/dist/models/AttachmentProcessedRequestUio.js +62 -0
- package/dist/models/AuthCodeConfirmRequestUio.d.ts +1 -1
- package/dist/models/AuthCodeConfirmRequestUio.js +3 -1
- package/dist/models/AuthCodeConfirmResponseUio.d.ts +15 -3
- package/dist/models/AuthCodeConfirmResponseUio.js +6 -3
- package/dist/models/ConfigurationDefaultFillerPhrasesUio.d.ts +7 -6
- package/dist/models/ConfigurationDefaultFillerPhrasesUio.js +7 -8
- package/dist/models/ConfigurationDefaultFillerPhrasesUpdateRequestUio.d.ts +39 -0
- package/dist/models/ConfigurationDefaultFillerPhrasesUpdateRequestUio.js +55 -0
- package/dist/models/ContextLocationRequestUio.d.ts +38 -0
- package/dist/models/ContextLocationRequestUio.js +54 -0
- package/dist/models/ConversationDetailUio.d.ts +101 -0
- package/dist/models/ConversationDetailUio.js +75 -0
- package/dist/models/DeleteOrganizationUser200ResponseUio.d.ts +32 -0
- package/dist/models/DeleteOrganizationUser200ResponseUio.js +50 -0
- package/dist/models/DeleteProvider200ResponseKnowledgeBasesAffectedInnerUio.d.ts +50 -0
- package/dist/models/DeleteProvider200ResponseKnowledgeBasesAffectedInnerUio.js +54 -0
- package/dist/models/DeleteProvider200ResponseUio.d.ts +45 -0
- package/dist/models/DeleteProvider200ResponseUio.js +55 -0
- package/dist/models/EmbeddingProviderModelsInnerUio.d.ts +44 -0
- package/dist/models/EmbeddingProviderModelsInnerUio.js +58 -0
- package/dist/models/EmbeddingProviderUio.d.ts +57 -0
- package/dist/models/EmbeddingProviderUio.js +65 -0
- package/dist/models/FillerPhraseUio.d.ts +38 -0
- package/dist/models/FillerPhraseUio.js +54 -0
- package/dist/models/GetJwks200ResponseUio.d.ts +34 -0
- package/dist/models/GetJwks200ResponseUio.js +50 -0
- package/dist/models/MarkAttachmentProcessed400ResponseUio.d.ts +40 -0
- package/dist/models/MarkAttachmentProcessed400ResponseUio.js +52 -0
- package/dist/models/MessageUio.d.ts +7 -1
- package/dist/models/MessageUio.js +2 -0
- package/dist/models/OpenAiChatCompletionRequestStreamOptionsUio.d.ts +32 -0
- package/dist/models/OpenAiChatCompletionRequestStreamOptionsUio.js +48 -0
- package/dist/models/OpenAiChatCompletionRequestUio.d.ts +64 -0
- package/dist/models/OpenAiChatCompletionRequestUio.js +64 -0
- package/dist/models/OpenAiChatCompletionResponseUio.d.ts +67 -0
- package/dist/models/OpenAiChatCompletionResponseUio.js +60 -0
- package/dist/models/OrganizationMemberUio.d.ts +3 -3
- package/dist/models/OrganizationMemberUio.js +3 -3
- package/dist/models/OrganizationMemberUserUio.d.ts +32 -0
- package/dist/models/OrganizationMemberUserUio.js +50 -0
- package/dist/models/PinRequestUio.d.ts +3 -3
- package/dist/models/PinRequestUio.js +3 -3
- package/dist/models/ProviderValiationRequestUio.d.ts +1 -1
- package/dist/models/ProviderValiationRequestUio.js +1 -3
- package/dist/models/SetContextLocation400ResponseUio.d.ts +40 -0
- package/dist/models/SetContextLocation400ResponseUio.js +52 -0
- package/dist/models/TTSRequestUio.d.ts +1 -1
- package/dist/models/TTSRequestUio.js +1 -3
- package/dist/models/UserCreateRequestUio.d.ts +45 -0
- package/dist/models/UserCreateRequestUio.js +57 -0
- package/dist/models/UserDetailUio.d.ts +88 -0
- package/dist/models/UserDetailUio.js +80 -0
- package/dist/models/UserIdentifierRequestUio.d.ts +32 -0
- package/dist/models/UserIdentifierRequestUio.js +50 -0
- package/dist/models/UserIdentifierUio.d.ts +38 -0
- package/dist/models/UserIdentifierUio.js +52 -0
- package/dist/models/UserLockRequestUio.d.ts +32 -0
- package/dist/models/UserLockRequestUio.js +50 -0
- package/dist/models/UserUpdateRequestUio.d.ts +63 -0
- package/dist/models/UserUpdateRequestUio.js +59 -0
- package/dist/models/index.d.ts +37 -14
- package/dist/models/index.js +37 -14
- package/dist/openapi.json +3811 -2508
- package/package.json +1 -1
- package/dist/models/AccessRoleCreateRequestUio.d.ts +0 -45
- package/dist/models/AccessRoleCreateRequestUio.js +0 -55
- package/dist/models/AccessRolePermissionsRequestUio.d.ts +0 -33
- package/dist/models/AccessRolePermissionsRequestUio.js +0 -51
- package/dist/models/AccessRoleUio.d.ts +0 -75
- package/dist/models/AccessRoleUio.js +0 -75
- package/dist/models/AccessRoleUpdateRequestUio.d.ts +0 -38
- package/dist/models/AccessRoleUpdateRequestUio.js +0 -52
- package/dist/models/ApiKeyUio.d.ts +0 -44
- package/dist/models/AudioFile1Uio.d.ts +0 -45
- package/dist/models/AudioFile1Uio.js +0 -59
- package/dist/models/Conversation1Uio.d.ts +0 -46
- package/dist/models/Conversation1Uio.js +0 -60
- package/dist/models/OrganizationPermissionKeyUio.d.ts +0 -59
- package/dist/models/OrganizationPermissionKeyUio.js +0 -85
- package/dist/models/PermissionEntryUio.d.ts +0 -39
- package/dist/models/PermissionEntryUio.js +0 -55
- package/dist/models/ProviderSimpleUio.d.ts +0 -57
- package/dist/models/ProviderSimpleUio.js +0 -65
- package/dist/models/UserAccessRolesRequestUio.d.ts +0 -32
- package/dist/models/UserAccessRolesRequestUio.js +0 -50
- package/dist/models/UserAccessUio.d.ts +0 -39
- package/dist/models/UserAccessUio.js +0 -55
- package/dist/models/UserDirectPermissionsRequestUio.d.ts +0 -33
- package/dist/models/UserDirectPermissionsRequestUio.js +0 -51
- package/dist/models/UserUio.d.ts +0 -87
- package/dist/models/UserUio.js +0 -67
|
@@ -0,0 +1,60 @@
|
|
|
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.instanceOfOpenAiChatCompletionResponseUio = instanceOfOpenAiChatCompletionResponseUio;
|
|
17
|
+
exports.OpenAiChatCompletionResponseUioFromJSON = OpenAiChatCompletionResponseUioFromJSON;
|
|
18
|
+
exports.OpenAiChatCompletionResponseUioFromJSONTyped = OpenAiChatCompletionResponseUioFromJSONTyped;
|
|
19
|
+
exports.OpenAiChatCompletionResponseUioToJSON = OpenAiChatCompletionResponseUioToJSON;
|
|
20
|
+
exports.OpenAiChatCompletionResponseUioToJSONTyped = OpenAiChatCompletionResponseUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the OpenAiChatCompletionResponseUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfOpenAiChatCompletionResponseUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function OpenAiChatCompletionResponseUioFromJSON(json) {
|
|
28
|
+
return OpenAiChatCompletionResponseUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function OpenAiChatCompletionResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
...json,
|
|
36
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
37
|
+
'object': json['object'] == null ? undefined : json['object'],
|
|
38
|
+
'created': json['created'] == null ? undefined : json['created'],
|
|
39
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
40
|
+
'choices': json['choices'] == null ? undefined : json['choices'],
|
|
41
|
+
'usage': json['usage'] == null ? undefined : json['usage'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function OpenAiChatCompletionResponseUioToJSON(json) {
|
|
45
|
+
return OpenAiChatCompletionResponseUioToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function OpenAiChatCompletionResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
...value,
|
|
53
|
+
'id': value['id'],
|
|
54
|
+
'object': value['object'],
|
|
55
|
+
'created': value['created'],
|
|
56
|
+
'model': value['model'],
|
|
57
|
+
'choices': value['choices'],
|
|
58
|
+
'usage': value['usage'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -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 { OrganizationMemberUserUio } from './OrganizationMemberUserUio';
|
|
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 {OrganizationMemberUserUio}
|
|
40
40
|
* @memberof OrganizationMemberUio
|
|
41
41
|
*/
|
|
42
|
-
user:
|
|
42
|
+
user: OrganizationMemberUserUio;
|
|
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 OrganizationMemberUserUio_1 = require("./OrganizationMemberUserUio");
|
|
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, OrganizationMemberUserUio_1.OrganizationMemberUserUioFromJSON)(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, OrganizationMemberUserUio_1.OrganizationMemberUserUioToJSON)(value['user']),
|
|
62
62
|
};
|
|
63
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 OrganizationMemberUserUio
|
|
16
|
+
*/
|
|
17
|
+
export interface OrganizationMemberUserUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OrganizationMemberUserUio
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the OrganizationMemberUserUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfOrganizationMemberUserUio(value: object): value is OrganizationMemberUserUio;
|
|
29
|
+
export declare function OrganizationMemberUserUioFromJSON(json: any): OrganizationMemberUserUio;
|
|
30
|
+
export declare function OrganizationMemberUserUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationMemberUserUio;
|
|
31
|
+
export declare function OrganizationMemberUserUioToJSON(json: any): OrganizationMemberUserUio;
|
|
32
|
+
export declare function OrganizationMemberUserUioToJSONTyped(value?: OrganizationMemberUserUio | 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.instanceOfOrganizationMemberUserUio = instanceOfOrganizationMemberUserUio;
|
|
17
|
+
exports.OrganizationMemberUserUioFromJSON = OrganizationMemberUserUioFromJSON;
|
|
18
|
+
exports.OrganizationMemberUserUioFromJSONTyped = OrganizationMemberUserUioFromJSONTyped;
|
|
19
|
+
exports.OrganizationMemberUserUioToJSON = OrganizationMemberUserUioToJSON;
|
|
20
|
+
exports.OrganizationMemberUserUioToJSONTyped = OrganizationMemberUserUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the OrganizationMemberUserUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfOrganizationMemberUserUio(value) {
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function OrganizationMemberUserUioFromJSON(json) {
|
|
30
|
+
return OrganizationMemberUserUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function OrganizationMemberUserUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'email': json['email'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function OrganizationMemberUserUioToJSON(json) {
|
|
41
|
+
return OrganizationMemberUserUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function OrganizationMemberUserUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'email': value['email'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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 { UserIdentifierRequestUio } from './UserIdentifierRequestUio';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -18,10 +18,10 @@ import type { UserUio } from './UserUio';
|
|
|
18
18
|
export interface PinRequestUio {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {UserIdentifierRequestUio}
|
|
22
22
|
* @memberof PinRequestUio
|
|
23
23
|
*/
|
|
24
|
-
user:
|
|
24
|
+
user: UserIdentifierRequestUio;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
@@ -18,7 +18,7 @@ exports.PinRequestUioFromJSON = PinRequestUioFromJSON;
|
|
|
18
18
|
exports.PinRequestUioFromJSONTyped = PinRequestUioFromJSONTyped;
|
|
19
19
|
exports.PinRequestUioToJSON = PinRequestUioToJSON;
|
|
20
20
|
exports.PinRequestUioToJSONTyped = PinRequestUioToJSONTyped;
|
|
21
|
-
const
|
|
21
|
+
const UserIdentifierRequestUio_1 = require("./UserIdentifierRequestUio");
|
|
22
22
|
/**
|
|
23
23
|
* Check if a given object implements the PinRequestUio interface.
|
|
24
24
|
*/
|
|
@@ -37,7 +37,7 @@ function PinRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
return json;
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
|
-
'user': (0,
|
|
40
|
+
'user': (0, UserIdentifierRequestUio_1.UserIdentifierRequestUioFromJSON)(json['user']),
|
|
41
41
|
'pin': json['pin'],
|
|
42
42
|
};
|
|
43
43
|
}
|
|
@@ -49,7 +49,7 @@ function PinRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
49
|
return value;
|
|
50
50
|
}
|
|
51
51
|
return {
|
|
52
|
-
'user': (0,
|
|
52
|
+
'user': (0, UserIdentifierRequestUio_1.UserIdentifierRequestUioToJSON)(value['user']),
|
|
53
53
|
'pin': value['pin'],
|
|
54
54
|
};
|
|
55
55
|
}
|
|
@@ -22,8 +22,6 @@ exports.ProviderValiationRequestUioToJSONTyped = ProviderValiationRequestUioToJS
|
|
|
22
22
|
* Check if a given object implements the ProviderValiationRequestUio interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfProviderValiationRequestUio(value) {
|
|
25
|
-
if (!('organizationId' in value) || value['organizationId'] === undefined)
|
|
26
|
-
return false;
|
|
27
25
|
if (!('providerType' in value) || value['providerType'] === undefined)
|
|
28
26
|
return false;
|
|
29
27
|
if (!('apiKey' in value) || value['apiKey'] === undefined)
|
|
@@ -38,7 +36,7 @@ function ProviderValiationRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
36
|
return json;
|
|
39
37
|
}
|
|
40
38
|
return {
|
|
41
|
-
'organizationId': json['organizationId'],
|
|
39
|
+
'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
|
|
42
40
|
'providerType': json['providerType'],
|
|
43
41
|
'apiKey': json['apiKey'],
|
|
44
42
|
};
|
|
@@ -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 SetContextLocation400ResponseUio
|
|
16
|
+
*/
|
|
17
|
+
export interface SetContextLocation400ResponseUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SetContextLocation400ResponseUio
|
|
22
|
+
*/
|
|
23
|
+
error: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {{ [key: string]: Array<string>; }}
|
|
27
|
+
* @memberof SetContextLocation400ResponseUio
|
|
28
|
+
*/
|
|
29
|
+
details?: {
|
|
30
|
+
[key: string]: Array<string>;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the SetContextLocation400ResponseUio interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfSetContextLocation400ResponseUio(value: object): value is SetContextLocation400ResponseUio;
|
|
37
|
+
export declare function SetContextLocation400ResponseUioFromJSON(json: any): SetContextLocation400ResponseUio;
|
|
38
|
+
export declare function SetContextLocation400ResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetContextLocation400ResponseUio;
|
|
39
|
+
export declare function SetContextLocation400ResponseUioToJSON(json: any): SetContextLocation400ResponseUio;
|
|
40
|
+
export declare function SetContextLocation400ResponseUioToJSONTyped(value?: SetContextLocation400ResponseUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfSetContextLocation400ResponseUio = instanceOfSetContextLocation400ResponseUio;
|
|
17
|
+
exports.SetContextLocation400ResponseUioFromJSON = SetContextLocation400ResponseUioFromJSON;
|
|
18
|
+
exports.SetContextLocation400ResponseUioFromJSONTyped = SetContextLocation400ResponseUioFromJSONTyped;
|
|
19
|
+
exports.SetContextLocation400ResponseUioToJSON = SetContextLocation400ResponseUioToJSON;
|
|
20
|
+
exports.SetContextLocation400ResponseUioToJSONTyped = SetContextLocation400ResponseUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SetContextLocation400ResponseUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSetContextLocation400ResponseUio(value) {
|
|
25
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function SetContextLocation400ResponseUioFromJSON(json) {
|
|
30
|
+
return SetContextLocation400ResponseUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function SetContextLocation400ResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'error': json['error'],
|
|
38
|
+
'details': json['details'] == null ? undefined : json['details'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function SetContextLocation400ResponseUioToJSON(json) {
|
|
42
|
+
return SetContextLocation400ResponseUioToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function SetContextLocation400ResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'error': value['error'],
|
|
50
|
+
'details': value['details'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -27,8 +27,6 @@ function instanceOfTTSRequestUio(value) {
|
|
|
27
27
|
return false;
|
|
28
28
|
if (!('provider' in value) || value['provider'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
-
if (!('voiceId' in value) || value['voiceId'] === undefined)
|
|
31
|
-
return false;
|
|
32
30
|
return true;
|
|
33
31
|
}
|
|
34
32
|
function TTSRequestUioFromJSON(json) {
|
|
@@ -41,7 +39,7 @@ function TTSRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
39
|
return {
|
|
42
40
|
'text': json['text'],
|
|
43
41
|
'provider': (0, TextToSpeechProviderUio_1.TextToSpeechProviderUioFromJSON)(json['provider']),
|
|
44
|
-
'voiceId': json['voiceId'],
|
|
42
|
+
'voiceId': json['voiceId'] == null ? undefined : json['voiceId'],
|
|
45
43
|
};
|
|
46
44
|
}
|
|
47
45
|
function TTSRequestUioToJSON(json) {
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
import type { UserIdentifierRequestUio } from './UserIdentifierRequestUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UserCreateRequestUio
|
|
17
|
+
*/
|
|
18
|
+
export interface UserCreateRequestUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {UserIdentifierRequestUio}
|
|
22
|
+
* @memberof UserCreateRequestUio
|
|
23
|
+
*/
|
|
24
|
+
user: UserIdentifierRequestUio;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof UserCreateRequestUio
|
|
29
|
+
*/
|
|
30
|
+
canCreateAgents: boolean;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof UserCreateRequestUio
|
|
35
|
+
*/
|
|
36
|
+
maxAgents?: number | null;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the UserCreateRequestUio interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfUserCreateRequestUio(value: object): value is UserCreateRequestUio;
|
|
42
|
+
export declare function UserCreateRequestUioFromJSON(json: any): UserCreateRequestUio;
|
|
43
|
+
export declare function UserCreateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserCreateRequestUio;
|
|
44
|
+
export declare function UserCreateRequestUioToJSON(json: any): UserCreateRequestUio;
|
|
45
|
+
export declare function UserCreateRequestUioToJSONTyped(value?: UserCreateRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfUserCreateRequestUio = instanceOfUserCreateRequestUio;
|
|
17
|
+
exports.UserCreateRequestUioFromJSON = UserCreateRequestUioFromJSON;
|
|
18
|
+
exports.UserCreateRequestUioFromJSONTyped = UserCreateRequestUioFromJSONTyped;
|
|
19
|
+
exports.UserCreateRequestUioToJSON = UserCreateRequestUioToJSON;
|
|
20
|
+
exports.UserCreateRequestUioToJSONTyped = UserCreateRequestUioToJSONTyped;
|
|
21
|
+
const UserIdentifierRequestUio_1 = require("./UserIdentifierRequestUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UserCreateRequestUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUserCreateRequestUio(value) {
|
|
26
|
+
if (!('user' in value) || value['user'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('canCreateAgents' in value) || value['canCreateAgents'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function UserCreateRequestUioFromJSON(json) {
|
|
33
|
+
return UserCreateRequestUioFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function UserCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'user': (0, UserIdentifierRequestUio_1.UserIdentifierRequestUioFromJSON)(json['user']),
|
|
41
|
+
'canCreateAgents': json['canCreateAgents'],
|
|
42
|
+
'maxAgents': json['maxAgents'] == null ? undefined : json['maxAgents'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function UserCreateRequestUioToJSON(json) {
|
|
46
|
+
return UserCreateRequestUioToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function UserCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'user': (0, UserIdentifierRequestUio_1.UserIdentifierRequestUioToJSON)(value['user']),
|
|
54
|
+
'canCreateAgents': value['canCreateAgents'],
|
|
55
|
+
'maxAgents': value['maxAgents'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
import type { UserIdentifierUio } from './UserIdentifierUio';
|
|
13
|
+
import type { ApiKeyRefUio } from './ApiKeyRefUio';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface UserDetailUio
|
|
18
|
+
*/
|
|
19
|
+
export interface UserDetailUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof UserDetailUio
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {UserIdentifierUio}
|
|
29
|
+
* @memberof UserDetailUio
|
|
30
|
+
*/
|
|
31
|
+
user: UserIdentifierUio;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof UserDetailUio
|
|
36
|
+
*/
|
|
37
|
+
isAdmin: boolean;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof UserDetailUio
|
|
42
|
+
*/
|
|
43
|
+
canCreateAgents: boolean;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof UserDetailUio
|
|
48
|
+
*/
|
|
49
|
+
maxAgents?: number | null;
|
|
50
|
+
/**
|
|
51
|
+
* Identifiants des agents auxquels l'utilisateur a accès
|
|
52
|
+
* @type {Array<string>}
|
|
53
|
+
* @memberof UserDetailUio
|
|
54
|
+
*/
|
|
55
|
+
agents: Array<string>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<ApiKeyRefUio>}
|
|
59
|
+
* @memberof UserDetailUio
|
|
60
|
+
*/
|
|
61
|
+
apiKeys: Array<ApiKeyRefUio>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Date}
|
|
65
|
+
* @memberof UserDetailUio
|
|
66
|
+
*/
|
|
67
|
+
createdAt?: Date;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {boolean}
|
|
71
|
+
* @memberof UserDetailUio
|
|
72
|
+
*/
|
|
73
|
+
locked?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {Date}
|
|
77
|
+
* @memberof UserDetailUio
|
|
78
|
+
*/
|
|
79
|
+
lockDate?: Date;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the UserDetailUio interface.
|
|
83
|
+
*/
|
|
84
|
+
export declare function instanceOfUserDetailUio(value: object): value is UserDetailUio;
|
|
85
|
+
export declare function UserDetailUioFromJSON(json: any): UserDetailUio;
|
|
86
|
+
export declare function UserDetailUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserDetailUio;
|
|
87
|
+
export declare function UserDetailUioToJSON(json: any): UserDetailUio;
|
|
88
|
+
export declare function UserDetailUioToJSONTyped(value?: UserDetailUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,80 @@
|
|
|
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.instanceOfUserDetailUio = instanceOfUserDetailUio;
|
|
17
|
+
exports.UserDetailUioFromJSON = UserDetailUioFromJSON;
|
|
18
|
+
exports.UserDetailUioFromJSONTyped = UserDetailUioFromJSONTyped;
|
|
19
|
+
exports.UserDetailUioToJSON = UserDetailUioToJSON;
|
|
20
|
+
exports.UserDetailUioToJSONTyped = UserDetailUioToJSONTyped;
|
|
21
|
+
const UserIdentifierUio_1 = require("./UserIdentifierUio");
|
|
22
|
+
const ApiKeyRefUio_1 = require("./ApiKeyRefUio");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the UserDetailUio interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfUserDetailUio(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('user' in value) || value['user'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('isAdmin' in value) || value['isAdmin'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('canCreateAgents' in value) || value['canCreateAgents'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('agents' in value) || value['agents'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('apiKeys' in value) || value['apiKeys'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function UserDetailUioFromJSON(json) {
|
|
42
|
+
return UserDetailUioFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function UserDetailUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'],
|
|
50
|
+
'user': (0, UserIdentifierUio_1.UserIdentifierUioFromJSON)(json['user']),
|
|
51
|
+
'isAdmin': json['isAdmin'],
|
|
52
|
+
'canCreateAgents': json['canCreateAgents'],
|
|
53
|
+
'maxAgents': json['maxAgents'] == null ? undefined : json['maxAgents'],
|
|
54
|
+
'agents': json['agents'],
|
|
55
|
+
'apiKeys': (json['apiKeys'].map(ApiKeyRefUio_1.ApiKeyRefUioFromJSON)),
|
|
56
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
57
|
+
'locked': json['locked'] == null ? undefined : json['locked'],
|
|
58
|
+
'lockDate': json['lockDate'] == null ? undefined : (new Date(json['lockDate'])),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function UserDetailUioToJSON(json) {
|
|
62
|
+
return UserDetailUioToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function UserDetailUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'id': value['id'],
|
|
70
|
+
'user': (0, UserIdentifierUio_1.UserIdentifierUioToJSON)(value['user']),
|
|
71
|
+
'isAdmin': value['isAdmin'],
|
|
72
|
+
'canCreateAgents': value['canCreateAgents'],
|
|
73
|
+
'maxAgents': value['maxAgents'],
|
|
74
|
+
'agents': value['agents'],
|
|
75
|
+
'apiKeys': (value['apiKeys'].map(ApiKeyRefUio_1.ApiKeyRefUioToJSON)),
|
|
76
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
77
|
+
'locked': value['locked'],
|
|
78
|
+
'lockDate': value['lockDate'] == null ? undefined : ((value['lockDate']).toISOString()),
|
|
79
|
+
};
|
|
80
|
+
}
|