@breign/client 1.0.125 → 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/KnowledgeApi.d.ts +127 -61
- package/dist/apis/KnowledgeApi.js +257 -108
- 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/ChunkCreateRequestContentInnerUio.d.ts +1 -1
- package/dist/models/ChunkCreateRequestContentInnerUio.js +1 -3
- package/dist/models/ChunkCreateRequestUio.d.ts +3 -3
- package/dist/models/ChunkCreateRequestUio.js +10 -4
- 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/CreateKnowledgeBaseRequestEmbeddingConfigUio.d.ts +44 -0
- package/dist/models/CreateKnowledgeBaseRequestEmbeddingConfigUio.js +58 -0
- package/dist/models/CreateKnowledgeBaseRequestUio.d.ts +59 -0
- package/dist/models/CreateKnowledgeBaseRequestUio.js +65 -0
- package/dist/models/CreateKnowledgeBaseResponseUio.d.ts +46 -0
- package/dist/models/CreateKnowledgeBaseResponseUio.js +62 -0
- package/dist/models/DeleteKnowledgeSitePage200ResponseUio.d.ts +38 -0
- package/dist/models/DeleteKnowledgeSitePage200ResponseUio.js +52 -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/FileCreationResponseUio.d.ts +1 -0
- package/dist/models/FileCreationResponseUio.js +2 -1
- package/dist/models/FileUio.d.ts +5 -3
- package/dist/models/FileUio.js +4 -4
- package/dist/models/FileWithDownloadUrlUio.d.ts +5 -3
- package/dist/models/FileWithDownloadUrlUio.js +4 -4
- 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/ImageKnowledgeUio.d.ts +13 -6
- package/dist/models/ImageKnowledgeUio.js +23 -6
- package/dist/models/KnowledgeBaseConfigurationUio.d.ts +14 -0
- package/dist/models/KnowledgeBaseConfigurationUio.js +10 -1
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio.d.ts +45 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio.js +57 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationUio.d.ts +22 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationUio.js +50 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestUio.d.ts +157 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestUio.js +102 -0
- package/dist/models/KnowledgeBaseUio.d.ts +6 -62
- package/dist/models/KnowledgeBaseUio.js +2 -22
- package/dist/models/KnowledgeFileCreationRequestUio.d.ts +68 -0
- package/dist/models/KnowledgeFileCreationRequestUio.js +64 -0
- package/dist/models/KnowledgeFileParsingCallbackRequestUio.d.ts +51 -0
- package/dist/models/KnowledgeFileParsingCallbackRequestUio.js +58 -0
- package/dist/models/KnowledgeFileSummaryUio.d.ts +2 -3
- package/dist/models/KnowledgeFileSummaryUio.js +2 -3
- package/dist/models/KnowledgeFileUio.d.ts +140 -0
- package/dist/models/KnowledgeFileUio.js +92 -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/UploadedStatusUpdateRequestUio.d.ts +39 -0
- package/dist/models/UploadedStatusUpdateRequestUio.js +57 -0
- 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 +48 -20
- package/dist/models/index.js +48 -20
- package/dist/openapi.json +3768 -2025
- 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/FileFormDataUio.d.ts +0 -38
- package/dist/models/FileFormDataUio.js +0 -50
- package/dist/models/FileStatusUpdateRequestUio.d.ts +0 -33
- package/dist/models/FileStatusUpdateRequestUio.js +0 -51
- package/dist/models/KnowledgeBaseFilesInnerUio.d.ts +0 -44
- package/dist/models/KnowledgeBaseFilesInnerUio.js +0 -58
- package/dist/models/KnowledgeBasePrivacyUio.d.ts +0 -25
- package/dist/models/KnowledgeBasePrivacyUio.js +0 -51
- package/dist/models/KnowledgeFilePagePreviewUio.d.ts +0 -44
- package/dist/models/KnowledgeFilePagePreviewUio.js +0 -56
- package/dist/models/KnowledgeFileSummaryKnowledgeBaseIdUio.d.ts +0 -21
- package/dist/models/KnowledgeFileSummaryKnowledgeBaseIdUio.js +0 -37
- 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,54 @@
|
|
|
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.instanceOfAiGatewayChatCompletionResponseUio = instanceOfAiGatewayChatCompletionResponseUio;
|
|
17
|
+
exports.AiGatewayChatCompletionResponseUioFromJSON = AiGatewayChatCompletionResponseUioFromJSON;
|
|
18
|
+
exports.AiGatewayChatCompletionResponseUioFromJSONTyped = AiGatewayChatCompletionResponseUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewayChatCompletionResponseUioToJSON = AiGatewayChatCompletionResponseUioToJSON;
|
|
20
|
+
exports.AiGatewayChatCompletionResponseUioToJSONTyped = AiGatewayChatCompletionResponseUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AiGatewayChatCompletionResponseUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAiGatewayChatCompletionResponseUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AiGatewayChatCompletionResponseUioFromJSON(json) {
|
|
28
|
+
return AiGatewayChatCompletionResponseUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AiGatewayChatCompletionResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
...json,
|
|
36
|
+
'text': json['text'] == null ? undefined : json['text'],
|
|
37
|
+
'finishReason': json['finishReason'] == null ? undefined : json['finishReason'],
|
|
38
|
+
'usage': json['usage'] == null ? undefined : json['usage'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AiGatewayChatCompletionResponseUioToJSON(json) {
|
|
42
|
+
return AiGatewayChatCompletionResponseUioToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AiGatewayChatCompletionResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
...value,
|
|
50
|
+
'text': value['text'],
|
|
51
|
+
'finishReason': value['finishReason'],
|
|
52
|
+
'usage': value['usage'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 AiGatewayEmbeddingRequestUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AiGatewayEmbeddingRequestUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AiGatewayEmbeddingRequestUio
|
|
22
|
+
*/
|
|
23
|
+
model: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AiGatewayEmbeddingRequestUio
|
|
28
|
+
*/
|
|
29
|
+
input: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AiGatewayEmbeddingRequestUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAiGatewayEmbeddingRequestUio(value: object): value is AiGatewayEmbeddingRequestUio;
|
|
35
|
+
export declare function AiGatewayEmbeddingRequestUioFromJSON(json: any): AiGatewayEmbeddingRequestUio;
|
|
36
|
+
export declare function AiGatewayEmbeddingRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayEmbeddingRequestUio;
|
|
37
|
+
export declare function AiGatewayEmbeddingRequestUioToJSON(json: any): AiGatewayEmbeddingRequestUio;
|
|
38
|
+
export declare function AiGatewayEmbeddingRequestUioToJSONTyped(value?: AiGatewayEmbeddingRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfAiGatewayEmbeddingRequestUio = instanceOfAiGatewayEmbeddingRequestUio;
|
|
17
|
+
exports.AiGatewayEmbeddingRequestUioFromJSON = AiGatewayEmbeddingRequestUioFromJSON;
|
|
18
|
+
exports.AiGatewayEmbeddingRequestUioFromJSONTyped = AiGatewayEmbeddingRequestUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewayEmbeddingRequestUioToJSON = AiGatewayEmbeddingRequestUioToJSON;
|
|
20
|
+
exports.AiGatewayEmbeddingRequestUioToJSONTyped = AiGatewayEmbeddingRequestUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AiGatewayEmbeddingRequestUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAiGatewayEmbeddingRequestUio(value) {
|
|
25
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('input' in value) || value['input'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AiGatewayEmbeddingRequestUioFromJSON(json) {
|
|
32
|
+
return AiGatewayEmbeddingRequestUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AiGatewayEmbeddingRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'model': json['model'],
|
|
40
|
+
'input': json['input'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AiGatewayEmbeddingRequestUioToJSON(json) {
|
|
44
|
+
return AiGatewayEmbeddingRequestUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AiGatewayEmbeddingRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'model': value['model'],
|
|
52
|
+
'input': value['input'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 AiGatewayEmbeddingResponseUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AiGatewayEmbeddingResponseUio {
|
|
18
|
+
[key: string]: any | any;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<number>}
|
|
22
|
+
* @memberof AiGatewayEmbeddingResponseUio
|
|
23
|
+
*/
|
|
24
|
+
embedding?: Array<number>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AiGatewayEmbeddingResponseUio
|
|
29
|
+
*/
|
|
30
|
+
value?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {{ [key: string]: any; }}
|
|
34
|
+
* @memberof AiGatewayEmbeddingResponseUio
|
|
35
|
+
*/
|
|
36
|
+
usage?: {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the AiGatewayEmbeddingResponseUio interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfAiGatewayEmbeddingResponseUio(value: object): value is AiGatewayEmbeddingResponseUio;
|
|
44
|
+
export declare function AiGatewayEmbeddingResponseUioFromJSON(json: any): AiGatewayEmbeddingResponseUio;
|
|
45
|
+
export declare function AiGatewayEmbeddingResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayEmbeddingResponseUio;
|
|
46
|
+
export declare function AiGatewayEmbeddingResponseUioToJSON(json: any): AiGatewayEmbeddingResponseUio;
|
|
47
|
+
export declare function AiGatewayEmbeddingResponseUioToJSONTyped(value?: AiGatewayEmbeddingResponseUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfAiGatewayEmbeddingResponseUio = instanceOfAiGatewayEmbeddingResponseUio;
|
|
17
|
+
exports.AiGatewayEmbeddingResponseUioFromJSON = AiGatewayEmbeddingResponseUioFromJSON;
|
|
18
|
+
exports.AiGatewayEmbeddingResponseUioFromJSONTyped = AiGatewayEmbeddingResponseUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewayEmbeddingResponseUioToJSON = AiGatewayEmbeddingResponseUioToJSON;
|
|
20
|
+
exports.AiGatewayEmbeddingResponseUioToJSONTyped = AiGatewayEmbeddingResponseUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AiGatewayEmbeddingResponseUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAiGatewayEmbeddingResponseUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AiGatewayEmbeddingResponseUioFromJSON(json) {
|
|
28
|
+
return AiGatewayEmbeddingResponseUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AiGatewayEmbeddingResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
...json,
|
|
36
|
+
'embedding': json['embedding'] == null ? undefined : json['embedding'],
|
|
37
|
+
'value': json['value'] == null ? undefined : json['value'],
|
|
38
|
+
'usage': json['usage'] == null ? undefined : json['usage'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AiGatewayEmbeddingResponseUioToJSON(json) {
|
|
42
|
+
return AiGatewayEmbeddingResponseUioToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AiGatewayEmbeddingResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
...value,
|
|
50
|
+
'embedding': value['embedding'],
|
|
51
|
+
'value': value['value'],
|
|
52
|
+
'usage': value['usage'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { DeleteMessageAudio200ResponseUio } from './DeleteMessageAudio200ResponseUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AiGatewayErrorUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AiGatewayErrorUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {DeleteMessageAudio200ResponseUio}
|
|
22
|
+
* @memberof AiGatewayErrorUio
|
|
23
|
+
*/
|
|
24
|
+
error: DeleteMessageAudio200ResponseUio;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AiGatewayErrorUio interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAiGatewayErrorUio(value: object): value is AiGatewayErrorUio;
|
|
30
|
+
export declare function AiGatewayErrorUioFromJSON(json: any): AiGatewayErrorUio;
|
|
31
|
+
export declare function AiGatewayErrorUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayErrorUio;
|
|
32
|
+
export declare function AiGatewayErrorUioToJSON(json: any): AiGatewayErrorUio;
|
|
33
|
+
export declare function AiGatewayErrorUioToJSONTyped(value?: AiGatewayErrorUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfAiGatewayErrorUio = instanceOfAiGatewayErrorUio;
|
|
17
|
+
exports.AiGatewayErrorUioFromJSON = AiGatewayErrorUioFromJSON;
|
|
18
|
+
exports.AiGatewayErrorUioFromJSONTyped = AiGatewayErrorUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewayErrorUioToJSON = AiGatewayErrorUioToJSON;
|
|
20
|
+
exports.AiGatewayErrorUioToJSONTyped = AiGatewayErrorUioToJSONTyped;
|
|
21
|
+
const DeleteMessageAudio200ResponseUio_1 = require("./DeleteMessageAudio200ResponseUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AiGatewayErrorUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAiGatewayErrorUio(value) {
|
|
26
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function AiGatewayErrorUioFromJSON(json) {
|
|
31
|
+
return AiGatewayErrorUioFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function AiGatewayErrorUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'error': (0, DeleteMessageAudio200ResponseUio_1.DeleteMessageAudio200ResponseUioFromJSON)(json['error']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AiGatewayErrorUioToJSON(json) {
|
|
42
|
+
return AiGatewayErrorUioToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AiGatewayErrorUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'error': (0, DeleteMessageAudio200ResponseUio_1.DeleteMessageAudio200ResponseUioToJSON)(value['error']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 AiGatewayMessageUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AiGatewayMessageUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AiGatewayMessageUio
|
|
22
|
+
*/
|
|
23
|
+
role: AiGatewayMessageUioRoleEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AiGatewayMessageUio
|
|
28
|
+
*/
|
|
29
|
+
content: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const AiGatewayMessageUioRoleEnum: {
|
|
35
|
+
readonly User: "user";
|
|
36
|
+
readonly System: "system";
|
|
37
|
+
readonly Assistant: "assistant";
|
|
38
|
+
};
|
|
39
|
+
export type AiGatewayMessageUioRoleEnum = typeof AiGatewayMessageUioRoleEnum[keyof typeof AiGatewayMessageUioRoleEnum];
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the AiGatewayMessageUio interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfAiGatewayMessageUio(value: object): value is AiGatewayMessageUio;
|
|
44
|
+
export declare function AiGatewayMessageUioFromJSON(json: any): AiGatewayMessageUio;
|
|
45
|
+
export declare function AiGatewayMessageUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayMessageUio;
|
|
46
|
+
export declare function AiGatewayMessageUioToJSON(json: any): AiGatewayMessageUio;
|
|
47
|
+
export declare function AiGatewayMessageUioToJSONTyped(value?: AiGatewayMessageUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.AiGatewayMessageUioRoleEnum = void 0;
|
|
17
|
+
exports.instanceOfAiGatewayMessageUio = instanceOfAiGatewayMessageUio;
|
|
18
|
+
exports.AiGatewayMessageUioFromJSON = AiGatewayMessageUioFromJSON;
|
|
19
|
+
exports.AiGatewayMessageUioFromJSONTyped = AiGatewayMessageUioFromJSONTyped;
|
|
20
|
+
exports.AiGatewayMessageUioToJSON = AiGatewayMessageUioToJSON;
|
|
21
|
+
exports.AiGatewayMessageUioToJSONTyped = AiGatewayMessageUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AiGatewayMessageUioRoleEnum = {
|
|
26
|
+
User: 'user',
|
|
27
|
+
System: 'system',
|
|
28
|
+
Assistant: 'assistant'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AiGatewayMessageUio interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfAiGatewayMessageUio(value) {
|
|
34
|
+
if (!('role' in value) || value['role'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function AiGatewayMessageUioFromJSON(json) {
|
|
41
|
+
return AiGatewayMessageUioFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AiGatewayMessageUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'role': json['role'],
|
|
49
|
+
'content': json['content'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function AiGatewayMessageUioToJSON(json) {
|
|
53
|
+
return AiGatewayMessageUioToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function AiGatewayMessageUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'role': value['role'],
|
|
61
|
+
'content': value['content'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 AiGatewayModelListDataInnerUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AiGatewayModelListDataInnerUio {
|
|
18
|
+
/**
|
|
19
|
+
* Identifiant du modèle côté provider (`modelId`) — la valeur à renvoyer dans `model` sur les endpoints de complétion et d'embedding.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AiGatewayModelListDataInnerUio
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AiGatewayModelListDataInnerUio
|
|
28
|
+
*/
|
|
29
|
+
object: AiGatewayModelListDataInnerUioObjectEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AiGatewayModelListDataInnerUio
|
|
34
|
+
*/
|
|
35
|
+
created: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AiGatewayModelListDataInnerUio
|
|
40
|
+
*/
|
|
41
|
+
ownedBy: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const AiGatewayModelListDataInnerUioObjectEnum: {
|
|
47
|
+
readonly Model: "model";
|
|
48
|
+
};
|
|
49
|
+
export type AiGatewayModelListDataInnerUioObjectEnum = typeof AiGatewayModelListDataInnerUioObjectEnum[keyof typeof AiGatewayModelListDataInnerUioObjectEnum];
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the AiGatewayModelListDataInnerUio interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfAiGatewayModelListDataInnerUio(value: object): value is AiGatewayModelListDataInnerUio;
|
|
54
|
+
export declare function AiGatewayModelListDataInnerUioFromJSON(json: any): AiGatewayModelListDataInnerUio;
|
|
55
|
+
export declare function AiGatewayModelListDataInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayModelListDataInnerUio;
|
|
56
|
+
export declare function AiGatewayModelListDataInnerUioToJSON(json: any): AiGatewayModelListDataInnerUio;
|
|
57
|
+
export declare function AiGatewayModelListDataInnerUioToJSONTyped(value?: AiGatewayModelListDataInnerUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
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.AiGatewayModelListDataInnerUioObjectEnum = void 0;
|
|
17
|
+
exports.instanceOfAiGatewayModelListDataInnerUio = instanceOfAiGatewayModelListDataInnerUio;
|
|
18
|
+
exports.AiGatewayModelListDataInnerUioFromJSON = AiGatewayModelListDataInnerUioFromJSON;
|
|
19
|
+
exports.AiGatewayModelListDataInnerUioFromJSONTyped = AiGatewayModelListDataInnerUioFromJSONTyped;
|
|
20
|
+
exports.AiGatewayModelListDataInnerUioToJSON = AiGatewayModelListDataInnerUioToJSON;
|
|
21
|
+
exports.AiGatewayModelListDataInnerUioToJSONTyped = AiGatewayModelListDataInnerUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AiGatewayModelListDataInnerUioObjectEnum = {
|
|
26
|
+
Model: 'model'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the AiGatewayModelListDataInnerUio interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfAiGatewayModelListDataInnerUio(value) {
|
|
32
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('object' in value) || value['object'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('created' in value) || value['created'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('ownedBy' in value) || value['ownedBy'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function AiGatewayModelListDataInnerUioFromJSON(json) {
|
|
43
|
+
return AiGatewayModelListDataInnerUioFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function AiGatewayModelListDataInnerUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': json['id'],
|
|
51
|
+
'object': json['object'],
|
|
52
|
+
'created': json['created'],
|
|
53
|
+
'ownedBy': json['owned_by'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function AiGatewayModelListDataInnerUioToJSON(json) {
|
|
57
|
+
return AiGatewayModelListDataInnerUioToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function AiGatewayModelListDataInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'object': value['object'],
|
|
66
|
+
'created': value['created'],
|
|
67
|
+
'owned_by': value['ownedBy'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -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
|
+
import type { AiGatewayModelListDataInnerUio } from './AiGatewayModelListDataInnerUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AiGatewayModelListUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AiGatewayModelListUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AiGatewayModelListUio
|
|
23
|
+
*/
|
|
24
|
+
object: AiGatewayModelListUioObjectEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<AiGatewayModelListDataInnerUio>}
|
|
28
|
+
* @memberof AiGatewayModelListUio
|
|
29
|
+
*/
|
|
30
|
+
data: Array<AiGatewayModelListDataInnerUio>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const AiGatewayModelListUioObjectEnum: {
|
|
36
|
+
readonly List: "list";
|
|
37
|
+
};
|
|
38
|
+
export type AiGatewayModelListUioObjectEnum = typeof AiGatewayModelListUioObjectEnum[keyof typeof AiGatewayModelListUioObjectEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the AiGatewayModelListUio interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfAiGatewayModelListUio(value: object): value is AiGatewayModelListUio;
|
|
43
|
+
export declare function AiGatewayModelListUioFromJSON(json: any): AiGatewayModelListUio;
|
|
44
|
+
export declare function AiGatewayModelListUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayModelListUio;
|
|
45
|
+
export declare function AiGatewayModelListUioToJSON(json: any): AiGatewayModelListUio;
|
|
46
|
+
export declare function AiGatewayModelListUioToJSONTyped(value?: AiGatewayModelListUio | 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.AiGatewayModelListUioObjectEnum = void 0;
|
|
17
|
+
exports.instanceOfAiGatewayModelListUio = instanceOfAiGatewayModelListUio;
|
|
18
|
+
exports.AiGatewayModelListUioFromJSON = AiGatewayModelListUioFromJSON;
|
|
19
|
+
exports.AiGatewayModelListUioFromJSONTyped = AiGatewayModelListUioFromJSONTyped;
|
|
20
|
+
exports.AiGatewayModelListUioToJSON = AiGatewayModelListUioToJSON;
|
|
21
|
+
exports.AiGatewayModelListUioToJSONTyped = AiGatewayModelListUioToJSONTyped;
|
|
22
|
+
const AiGatewayModelListDataInnerUio_1 = require("./AiGatewayModelListDataInnerUio");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AiGatewayModelListUioObjectEnum = {
|
|
27
|
+
List: 'list'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the AiGatewayModelListUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfAiGatewayModelListUio(value) {
|
|
33
|
+
if (!('object' in value) || value['object'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function AiGatewayModelListUioFromJSON(json) {
|
|
40
|
+
return AiGatewayModelListUioFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AiGatewayModelListUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'object': json['object'],
|
|
48
|
+
'data': (json['data'].map(AiGatewayModelListDataInnerUio_1.AiGatewayModelListDataInnerUioFromJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function AiGatewayModelListUioToJSON(json) {
|
|
52
|
+
return AiGatewayModelListUioToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function AiGatewayModelListUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'object': value['object'],
|
|
60
|
+
'data': (value['data'].map(AiGatewayModelListDataInnerUio_1.AiGatewayModelListDataInnerUioToJSON)),
|
|
61
|
+
};
|
|
62
|
+
}
|