@breign/client 1.0.191 → 1.0.193

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.
Files changed (37) hide show
  1. package/dist/apis/AiGatewayApi.d.ts +15 -1
  2. package/dist/apis/AiGatewayApi.js +34 -0
  3. package/dist/models/AiGatewaySystemOneAnswerUio.d.ts +68 -0
  4. package/dist/models/AiGatewaySystemOneAnswerUio.js +69 -0
  5. package/dist/models/AiGatewaySystemOneQuestionCriteriaUio.d.ts +23 -0
  6. package/dist/models/AiGatewaySystemOneQuestionCriteriaUio.js +37 -0
  7. package/dist/models/AiGatewaySystemOneQuestionUio.d.ts +54 -0
  8. package/dist/models/AiGatewaySystemOneQuestionUio.js +66 -0
  9. package/dist/models/AiGatewaySystemOneRequestStateUio.d.ts +23 -0
  10. package/dist/models/AiGatewaySystemOneRequestStateUio.js +37 -0
  11. package/dist/models/AiGatewaySystemOneRequestUio.d.ts +54 -0
  12. package/dist/models/AiGatewaySystemOneRequestUio.js +63 -0
  13. package/dist/models/AiGatewaySystemOneResponseUio.d.ts +48 -0
  14. package/dist/models/AiGatewaySystemOneResponseUio.js +61 -0
  15. package/dist/models/AiGatewaySystemOneResponseUsageUio.d.ts +38 -0
  16. package/dist/models/AiGatewaySystemOneResponseUsageUio.js +50 -0
  17. package/dist/models/ChatMessageUio.d.ts +7 -0
  18. package/dist/models/ChatMessageUio.js +3 -0
  19. package/dist/models/ConversationMessageQuestionnaireUio.d.ts +67 -0
  20. package/dist/models/ConversationMessageQuestionnaireUio.js +75 -0
  21. package/dist/models/ConversationMessagesInnerUio.d.ts +7 -0
  22. package/dist/models/ConversationMessagesInnerUio.js +3 -0
  23. package/dist/models/ModelDefinitionUio.d.ts +6 -0
  24. package/dist/models/ModelDefinitionUio.js +2 -0
  25. package/dist/models/ToolCallResultRequestUio.d.ts +7 -0
  26. package/dist/models/ToolCallResultRequestUio.js +3 -0
  27. package/dist/models/ToolCallUio.d.ts +1 -1
  28. package/dist/models/UserQuestionAnswerUio.d.ts +38 -0
  29. package/dist/models/UserQuestionAnswerUio.js +52 -0
  30. package/dist/models/UserQuestionOptionUio.d.ts +38 -0
  31. package/dist/models/UserQuestionOptionUio.js +54 -0
  32. package/dist/models/UserQuestionUio.d.ts +51 -0
  33. package/dist/models/UserQuestionUio.js +63 -0
  34. package/dist/models/index.d.ts +11 -0
  35. package/dist/models/index.js +11 -0
  36. package/dist/openapi.json +329 -1
  37. package/package.json +1 -1
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AiGatewayChatCompletionRequestUio, AiGatewayChatCompletionResponseUio, AiGatewayEmbeddingRequestUio, AiGatewayEmbeddingResponseUio, AiGatewayModelListUio, AiGatewayModelUio, AiGatewaySettingsUio, AiGatewaySettingsUpdateRequestUio, AiGatewayUsageUio, AiGatewayV1CreditsUio, AiGatewayV1GenerationUio, AiGatewayV1ModelEndpointsUio, AiGatewayV1ModelListUio, AiGatewayV1ReportUio, OpenAiChatCompletionRequestUio, OpenAiChatCompletionResponseUio } from '../models/index';
13
+ import type { AiGatewayChatCompletionRequestUio, AiGatewayChatCompletionResponseUio, AiGatewayEmbeddingRequestUio, AiGatewayEmbeddingResponseUio, AiGatewayModelListUio, AiGatewayModelUio, AiGatewaySettingsUio, AiGatewaySettingsUpdateRequestUio, AiGatewaySystemOneRequestUio, AiGatewaySystemOneResponseUio, AiGatewayUsageUio, AiGatewayV1CreditsUio, AiGatewayV1GenerationUio, AiGatewayV1ModelEndpointsUio, AiGatewayV1ModelListUio, AiGatewayV1ReportUio, OpenAiChatCompletionRequestUio, OpenAiChatCompletionResponseUio } from '../models/index';
14
14
  export interface CreateAiGatewayChatCompletionRequest {
15
15
  organizationId: string;
16
16
  aiGatewayChatCompletionRequestUio: AiGatewayChatCompletionRequestUio;
@@ -19,6 +19,10 @@ export interface CreateAiGatewayEmbeddingRequest {
19
19
  organizationId: string;
20
20
  aiGatewayEmbeddingRequestUio: AiGatewayEmbeddingRequestUio;
21
21
  }
22
+ export interface CreateAiGatewaySystemOneDecisionRequest {
23
+ organizationId: string;
24
+ aiGatewaySystemOneRequestUio: AiGatewaySystemOneRequestUio;
25
+ }
22
26
  export interface CreateOpenAiChatCompletionRequest {
23
27
  organizationId: string;
24
28
  openAiChatCompletionRequestUio: OpenAiChatCompletionRequestUio;
@@ -105,6 +109,16 @@ export declare class AiGatewayApi extends runtime.BaseAPI {
105
109
  * Create an embedding through the AI gateway
106
110
  */
107
111
  createAiGatewayEmbedding(organizationId: string, aiGatewayEmbeddingRequestUio: AiGatewayEmbeddingRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiGatewayEmbeddingResponseUio>;
112
+ /**
113
+ * Interroge un modèle de décision (capacité `hasDecision`) au format System One (Jev de TypeSafe AI, Ollama, vLLM) : des questions typées sur un état, auxquelles le modèle répond par des probabilités plutôt que par du texte. Les moteurs `openai` passent par la Decisions API, les moteurs `ollama`, `vllm` et `vllm-responses` par leur endpoint `/v1/systemone`. Aussi monté sous `/ai-gateway/v1/systemone`, pour qu\'un client System One puisse utiliser la passerelle comme URL de base. Toutes les erreurs utilisent l\'enveloppe OpenAI `{ error: { message } }`.
114
+ * Ask a decision model through the AI gateway
115
+ */
116
+ createAiGatewaySystemOneDecisionRaw(requestParameters: CreateAiGatewaySystemOneDecisionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AiGatewaySystemOneResponseUio>>;
117
+ /**
118
+ * Interroge un modèle de décision (capacité `hasDecision`) au format System One (Jev de TypeSafe AI, Ollama, vLLM) : des questions typées sur un état, auxquelles le modèle répond par des probabilités plutôt que par du texte. Les moteurs `openai` passent par la Decisions API, les moteurs `ollama`, `vllm` et `vllm-responses` par leur endpoint `/v1/systemone`. Aussi monté sous `/ai-gateway/v1/systemone`, pour qu\'un client System One puisse utiliser la passerelle comme URL de base. Toutes les erreurs utilisent l\'enveloppe OpenAI `{ error: { message } }`.
119
+ * Ask a decision model through the AI gateway
120
+ */
121
+ createAiGatewaySystemOneDecision(organizationId: string, aiGatewaySystemOneRequestUio: AiGatewaySystemOneRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiGatewaySystemOneResponseUio>;
108
122
  /**
109
123
  * OpenAI-compatible chat completion. Contrairement à `/ai-gateway/chat/completions`, la réponse OpenAI native est relayée sans transformation, `stream_options` est accepté, et la consommation de tokens est enregistrée dans les métriques de l\'organisation. Toutes les erreurs utilisent l\'enveloppe OpenAI `{ error: { message } }`.
110
124
  * Create a chat completion using the native OpenAI client
@@ -121,6 +121,40 @@ class AiGatewayApi extends runtime.BaseAPI {
121
121
  const response = await this.createAiGatewayEmbeddingRaw({ organizationId: organizationId, aiGatewayEmbeddingRequestUio: aiGatewayEmbeddingRequestUio }, initOverrides);
122
122
  return await response.value();
123
123
  }
124
+ /**
125
+ * Interroge un modèle de décision (capacité `hasDecision`) au format System One (Jev de TypeSafe AI, Ollama, vLLM) : des questions typées sur un état, auxquelles le modèle répond par des probabilités plutôt que par du texte. Les moteurs `openai` passent par la Decisions API, les moteurs `ollama`, `vllm` et `vllm-responses` par leur endpoint `/v1/systemone`. Aussi monté sous `/ai-gateway/v1/systemone`, pour qu\'un client System One puisse utiliser la passerelle comme URL de base. Toutes les erreurs utilisent l\'enveloppe OpenAI `{ error: { message } }`.
126
+ * Ask a decision model through the AI gateway
127
+ */
128
+ async createAiGatewaySystemOneDecisionRaw(requestParameters, initOverrides) {
129
+ if (requestParameters['organizationId'] == null) {
130
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling createAiGatewaySystemOneDecision().');
131
+ }
132
+ if (requestParameters['aiGatewaySystemOneRequestUio'] == null) {
133
+ throw new runtime.RequiredError('aiGatewaySystemOneRequestUio', 'Required parameter "aiGatewaySystemOneRequestUio" was null or undefined when calling createAiGatewaySystemOneDecision().');
134
+ }
135
+ const queryParameters = {};
136
+ const headerParameters = {};
137
+ headerParameters['Content-Type'] = 'application/json';
138
+ if (this.configuration && this.configuration.apiKey) {
139
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
140
+ }
141
+ const response = await this.request({
142
+ path: `/organizations/{organizationId}/ai-gateway/systemone`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
143
+ method: 'POST',
144
+ headers: headerParameters,
145
+ query: queryParameters,
146
+ body: (0, index_1.AiGatewaySystemOneRequestUioToJSON)(requestParameters['aiGatewaySystemOneRequestUio']),
147
+ }, initOverrides);
148
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AiGatewaySystemOneResponseUioFromJSON)(jsonValue));
149
+ }
150
+ /**
151
+ * Interroge un modèle de décision (capacité `hasDecision`) au format System One (Jev de TypeSafe AI, Ollama, vLLM) : des questions typées sur un état, auxquelles le modèle répond par des probabilités plutôt que par du texte. Les moteurs `openai` passent par la Decisions API, les moteurs `ollama`, `vllm` et `vllm-responses` par leur endpoint `/v1/systemone`. Aussi monté sous `/ai-gateway/v1/systemone`, pour qu\'un client System One puisse utiliser la passerelle comme URL de base. Toutes les erreurs utilisent l\'enveloppe OpenAI `{ error: { message } }`.
152
+ * Ask a decision model through the AI gateway
153
+ */
154
+ async createAiGatewaySystemOneDecision(organizationId, aiGatewaySystemOneRequestUio, initOverrides) {
155
+ const response = await this.createAiGatewaySystemOneDecisionRaw({ organizationId: organizationId, aiGatewaySystemOneRequestUio: aiGatewaySystemOneRequestUio }, initOverrides);
156
+ return await response.value();
157
+ }
124
158
  /**
125
159
  * OpenAI-compatible chat completion. Contrairement à `/ai-gateway/chat/completions`, la réponse OpenAI native est relayée sans transformation, `stream_options` est accepté, et la consommation de tokens est enregistrée dans les métriques de l\'organisation. Toutes les erreurs utilisent l\'enveloppe OpenAI `{ error: { message } }`.
126
160
  * Create a chat completion using the native OpenAI client
@@ -0,0 +1,68 @@
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 AiGatewaySystemOneAnswerUio
16
+ */
17
+ export interface AiGatewaySystemOneAnswerUio {
18
+ [key: string]: any | any;
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof AiGatewaySystemOneAnswerUio
23
+ */
24
+ type: AiGatewaySystemOneAnswerUioTypeEnum;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof AiGatewaySystemOneAnswerUio
29
+ */
30
+ choice?: string;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof AiGatewaySystemOneAnswerUio
35
+ */
36
+ noul?: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof AiGatewaySystemOneAnswerUio
41
+ */
42
+ score?: number;
43
+ /**
44
+ *
45
+ * @type {{ [key: string]: number; }}
46
+ * @memberof AiGatewaySystemOneAnswerUio
47
+ */
48
+ probabilities?: {
49
+ [key: string]: number;
50
+ };
51
+ }
52
+ /**
53
+ * @export
54
+ */
55
+ export declare const AiGatewaySystemOneAnswerUioTypeEnum: {
56
+ readonly Choice: "choice";
57
+ readonly Noul: "noul";
58
+ readonly Score: "score";
59
+ };
60
+ export type AiGatewaySystemOneAnswerUioTypeEnum = typeof AiGatewaySystemOneAnswerUioTypeEnum[keyof typeof AiGatewaySystemOneAnswerUioTypeEnum];
61
+ /**
62
+ * Check if a given object implements the AiGatewaySystemOneAnswerUio interface.
63
+ */
64
+ export declare function instanceOfAiGatewaySystemOneAnswerUio(value: object): value is AiGatewaySystemOneAnswerUio;
65
+ export declare function AiGatewaySystemOneAnswerUioFromJSON(json: any): AiGatewaySystemOneAnswerUio;
66
+ export declare function AiGatewaySystemOneAnswerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewaySystemOneAnswerUio;
67
+ export declare function AiGatewaySystemOneAnswerUioToJSON(json: any): AiGatewaySystemOneAnswerUio;
68
+ export declare function AiGatewaySystemOneAnswerUioToJSONTyped(value?: AiGatewaySystemOneAnswerUio | 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.AiGatewaySystemOneAnswerUioTypeEnum = void 0;
17
+ exports.instanceOfAiGatewaySystemOneAnswerUio = instanceOfAiGatewaySystemOneAnswerUio;
18
+ exports.AiGatewaySystemOneAnswerUioFromJSON = AiGatewaySystemOneAnswerUioFromJSON;
19
+ exports.AiGatewaySystemOneAnswerUioFromJSONTyped = AiGatewaySystemOneAnswerUioFromJSONTyped;
20
+ exports.AiGatewaySystemOneAnswerUioToJSON = AiGatewaySystemOneAnswerUioToJSON;
21
+ exports.AiGatewaySystemOneAnswerUioToJSONTyped = AiGatewaySystemOneAnswerUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.AiGatewaySystemOneAnswerUioTypeEnum = {
26
+ Choice: 'choice',
27
+ Noul: 'noul',
28
+ Score: 'score'
29
+ };
30
+ /**
31
+ * Check if a given object implements the AiGatewaySystemOneAnswerUio interface.
32
+ */
33
+ function instanceOfAiGatewaySystemOneAnswerUio(value) {
34
+ if (!('type' in value) || value['type'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function AiGatewaySystemOneAnswerUioFromJSON(json) {
39
+ return AiGatewaySystemOneAnswerUioFromJSONTyped(json, false);
40
+ }
41
+ function AiGatewaySystemOneAnswerUioFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ ...json,
47
+ 'type': json['type'],
48
+ 'choice': json['choice'] == null ? undefined : json['choice'],
49
+ 'noul': json['noul'] == null ? undefined : json['noul'],
50
+ 'score': json['score'] == null ? undefined : json['score'],
51
+ 'probabilities': json['probabilities'] == null ? undefined : json['probabilities'],
52
+ };
53
+ }
54
+ function AiGatewaySystemOneAnswerUioToJSON(json) {
55
+ return AiGatewaySystemOneAnswerUioToJSONTyped(json, false);
56
+ }
57
+ function AiGatewaySystemOneAnswerUioToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ ...value,
63
+ 'type': value['type'],
64
+ 'choice': value['choice'],
65
+ 'noul': value['noul'],
66
+ 'score': value['score'],
67
+ 'probabilities': value['probabilities'],
68
+ };
69
+ }
@@ -0,0 +1,23 @@
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
+ * @type AiGatewaySystemOneQuestionCriteriaUio
14
+ *
15
+ * @export
16
+ */
17
+ export type AiGatewaySystemOneQuestionCriteriaUio = Array<string> | {
18
+ [key: string]: string;
19
+ };
20
+ export declare function AiGatewaySystemOneQuestionCriteriaUioFromJSON(json: any): AiGatewaySystemOneQuestionCriteriaUio;
21
+ export declare function AiGatewaySystemOneQuestionCriteriaUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewaySystemOneQuestionCriteriaUio;
22
+ export declare function AiGatewaySystemOneQuestionCriteriaUioToJSON(json: any): any;
23
+ export declare function AiGatewaySystemOneQuestionCriteriaUioToJSONTyped(value?: AiGatewaySystemOneQuestionCriteriaUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,37 @@
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.AiGatewaySystemOneQuestionCriteriaUioFromJSON = AiGatewaySystemOneQuestionCriteriaUioFromJSON;
17
+ exports.AiGatewaySystemOneQuestionCriteriaUioFromJSONTyped = AiGatewaySystemOneQuestionCriteriaUioFromJSONTyped;
18
+ exports.AiGatewaySystemOneQuestionCriteriaUioToJSON = AiGatewaySystemOneQuestionCriteriaUioToJSON;
19
+ exports.AiGatewaySystemOneQuestionCriteriaUioToJSONTyped = AiGatewaySystemOneQuestionCriteriaUioToJSONTyped;
20
+ function AiGatewaySystemOneQuestionCriteriaUioFromJSON(json) {
21
+ return AiGatewaySystemOneQuestionCriteriaUioFromJSONTyped(json, false);
22
+ }
23
+ function AiGatewaySystemOneQuestionCriteriaUioFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {};
28
+ }
29
+ function AiGatewaySystemOneQuestionCriteriaUioToJSON(json) {
30
+ return AiGatewaySystemOneQuestionCriteriaUioToJSONTyped(json, false);
31
+ }
32
+ function AiGatewaySystemOneQuestionCriteriaUioToJSONTyped(value, ignoreDiscriminator = false) {
33
+ if (value == null) {
34
+ return value;
35
+ }
36
+ return {};
37
+ }
@@ -0,0 +1,54 @@
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 { AiGatewaySystemOneQuestionCriteriaUio } from './AiGatewaySystemOneQuestionCriteriaUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AiGatewaySystemOneQuestionUio
17
+ */
18
+ export interface AiGatewaySystemOneQuestionUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof AiGatewaySystemOneQuestionUio
23
+ */
24
+ type: AiGatewaySystemOneQuestionUioTypeEnum;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof AiGatewaySystemOneQuestionUio
29
+ */
30
+ instructions: string;
31
+ /**
32
+ *
33
+ * @type {AiGatewaySystemOneQuestionCriteriaUio}
34
+ * @memberof AiGatewaySystemOneQuestionUio
35
+ */
36
+ criteria?: AiGatewaySystemOneQuestionCriteriaUio;
37
+ }
38
+ /**
39
+ * @export
40
+ */
41
+ export declare const AiGatewaySystemOneQuestionUioTypeEnum: {
42
+ readonly Choice: "choice";
43
+ readonly Noul: "noul";
44
+ readonly Score: "score";
45
+ };
46
+ export type AiGatewaySystemOneQuestionUioTypeEnum = typeof AiGatewaySystemOneQuestionUioTypeEnum[keyof typeof AiGatewaySystemOneQuestionUioTypeEnum];
47
+ /**
48
+ * Check if a given object implements the AiGatewaySystemOneQuestionUio interface.
49
+ */
50
+ export declare function instanceOfAiGatewaySystemOneQuestionUio(value: object): value is AiGatewaySystemOneQuestionUio;
51
+ export declare function AiGatewaySystemOneQuestionUioFromJSON(json: any): AiGatewaySystemOneQuestionUio;
52
+ export declare function AiGatewaySystemOneQuestionUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewaySystemOneQuestionUio;
53
+ export declare function AiGatewaySystemOneQuestionUioToJSON(json: any): AiGatewaySystemOneQuestionUio;
54
+ export declare function AiGatewaySystemOneQuestionUioToJSONTyped(value?: AiGatewaySystemOneQuestionUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
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.AiGatewaySystemOneQuestionUioTypeEnum = void 0;
17
+ exports.instanceOfAiGatewaySystemOneQuestionUio = instanceOfAiGatewaySystemOneQuestionUio;
18
+ exports.AiGatewaySystemOneQuestionUioFromJSON = AiGatewaySystemOneQuestionUioFromJSON;
19
+ exports.AiGatewaySystemOneQuestionUioFromJSONTyped = AiGatewaySystemOneQuestionUioFromJSONTyped;
20
+ exports.AiGatewaySystemOneQuestionUioToJSON = AiGatewaySystemOneQuestionUioToJSON;
21
+ exports.AiGatewaySystemOneQuestionUioToJSONTyped = AiGatewaySystemOneQuestionUioToJSONTyped;
22
+ const AiGatewaySystemOneQuestionCriteriaUio_1 = require("./AiGatewaySystemOneQuestionCriteriaUio");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.AiGatewaySystemOneQuestionUioTypeEnum = {
27
+ Choice: 'choice',
28
+ Noul: 'noul',
29
+ Score: 'score'
30
+ };
31
+ /**
32
+ * Check if a given object implements the AiGatewaySystemOneQuestionUio interface.
33
+ */
34
+ function instanceOfAiGatewaySystemOneQuestionUio(value) {
35
+ if (!('type' in value) || value['type'] === undefined)
36
+ return false;
37
+ if (!('instructions' in value) || value['instructions'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function AiGatewaySystemOneQuestionUioFromJSON(json) {
42
+ return AiGatewaySystemOneQuestionUioFromJSONTyped(json, false);
43
+ }
44
+ function AiGatewaySystemOneQuestionUioFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'type': json['type'],
50
+ 'instructions': json['instructions'],
51
+ 'criteria': json['criteria'] == null ? undefined : (0, AiGatewaySystemOneQuestionCriteriaUio_1.AiGatewaySystemOneQuestionCriteriaUioFromJSON)(json['criteria']),
52
+ };
53
+ }
54
+ function AiGatewaySystemOneQuestionUioToJSON(json) {
55
+ return AiGatewaySystemOneQuestionUioToJSONTyped(json, false);
56
+ }
57
+ function AiGatewaySystemOneQuestionUioToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'type': value['type'],
63
+ 'instructions': value['instructions'],
64
+ 'criteria': (0, AiGatewaySystemOneQuestionCriteriaUio_1.AiGatewaySystemOneQuestionCriteriaUioToJSON)(value['criteria']),
65
+ };
66
+ }
@@ -0,0 +1,23 @@
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
+ * @type AiGatewaySystemOneRequestStateUio
14
+ * Entrée sur laquelle décider, texte ou objet JSON.
15
+ * @export
16
+ */
17
+ export type AiGatewaySystemOneRequestStateUio = string | {
18
+ [key: string]: any;
19
+ };
20
+ export declare function AiGatewaySystemOneRequestStateUioFromJSON(json: any): AiGatewaySystemOneRequestStateUio;
21
+ export declare function AiGatewaySystemOneRequestStateUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewaySystemOneRequestStateUio;
22
+ export declare function AiGatewaySystemOneRequestStateUioToJSON(json: any): any;
23
+ export declare function AiGatewaySystemOneRequestStateUioToJSONTyped(value?: AiGatewaySystemOneRequestStateUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,37 @@
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.AiGatewaySystemOneRequestStateUioFromJSON = AiGatewaySystemOneRequestStateUioFromJSON;
17
+ exports.AiGatewaySystemOneRequestStateUioFromJSONTyped = AiGatewaySystemOneRequestStateUioFromJSONTyped;
18
+ exports.AiGatewaySystemOneRequestStateUioToJSON = AiGatewaySystemOneRequestStateUioToJSON;
19
+ exports.AiGatewaySystemOneRequestStateUioToJSONTyped = AiGatewaySystemOneRequestStateUioToJSONTyped;
20
+ function AiGatewaySystemOneRequestStateUioFromJSON(json) {
21
+ return AiGatewaySystemOneRequestStateUioFromJSONTyped(json, false);
22
+ }
23
+ function AiGatewaySystemOneRequestStateUioFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {};
28
+ }
29
+ function AiGatewaySystemOneRequestStateUioToJSON(json) {
30
+ return AiGatewaySystemOneRequestStateUioToJSONTyped(json, false);
31
+ }
32
+ function AiGatewaySystemOneRequestStateUioToJSONTyped(value, ignoreDiscriminator = false) {
33
+ if (value == null) {
34
+ return value;
35
+ }
36
+ return {};
37
+ }
@@ -0,0 +1,54 @@
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 { AiGatewaySystemOneQuestionUio } from './AiGatewaySystemOneQuestionUio';
13
+ import type { AiGatewaySystemOneRequestStateUio } from './AiGatewaySystemOneRequestStateUio';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface AiGatewaySystemOneRequestUio
18
+ */
19
+ export interface AiGatewaySystemOneRequestUio {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof AiGatewaySystemOneRequestUio
24
+ */
25
+ model: string;
26
+ /**
27
+ *
28
+ * @type {AiGatewaySystemOneRequestStateUio}
29
+ * @memberof AiGatewaySystemOneRequestUio
30
+ */
31
+ state: AiGatewaySystemOneRequestStateUio;
32
+ /**
33
+ * Images encodées en base64 (PNG, JPEG ou WebP), partagées par toutes les questions.
34
+ * @type {Array<string>}
35
+ * @memberof AiGatewaySystemOneRequestUio
36
+ */
37
+ images?: Array<string>;
38
+ /**
39
+ *
40
+ * @type {{ [key: string]: AiGatewaySystemOneQuestionUio; }}
41
+ * @memberof AiGatewaySystemOneRequestUio
42
+ */
43
+ questions: {
44
+ [key: string]: AiGatewaySystemOneQuestionUio;
45
+ };
46
+ }
47
+ /**
48
+ * Check if a given object implements the AiGatewaySystemOneRequestUio interface.
49
+ */
50
+ export declare function instanceOfAiGatewaySystemOneRequestUio(value: object): value is AiGatewaySystemOneRequestUio;
51
+ export declare function AiGatewaySystemOneRequestUioFromJSON(json: any): AiGatewaySystemOneRequestUio;
52
+ export declare function AiGatewaySystemOneRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewaySystemOneRequestUio;
53
+ export declare function AiGatewaySystemOneRequestUioToJSON(json: any): AiGatewaySystemOneRequestUio;
54
+ export declare function AiGatewaySystemOneRequestUioToJSONTyped(value?: AiGatewaySystemOneRequestUio | 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.instanceOfAiGatewaySystemOneRequestUio = instanceOfAiGatewaySystemOneRequestUio;
17
+ exports.AiGatewaySystemOneRequestUioFromJSON = AiGatewaySystemOneRequestUioFromJSON;
18
+ exports.AiGatewaySystemOneRequestUioFromJSONTyped = AiGatewaySystemOneRequestUioFromJSONTyped;
19
+ exports.AiGatewaySystemOneRequestUioToJSON = AiGatewaySystemOneRequestUioToJSON;
20
+ exports.AiGatewaySystemOneRequestUioToJSONTyped = AiGatewaySystemOneRequestUioToJSONTyped;
21
+ const runtime_1 = require("../runtime");
22
+ const AiGatewaySystemOneQuestionUio_1 = require("./AiGatewaySystemOneQuestionUio");
23
+ const AiGatewaySystemOneRequestStateUio_1 = require("./AiGatewaySystemOneRequestStateUio");
24
+ /**
25
+ * Check if a given object implements the AiGatewaySystemOneRequestUio interface.
26
+ */
27
+ function instanceOfAiGatewaySystemOneRequestUio(value) {
28
+ if (!('model' in value) || value['model'] === undefined)
29
+ return false;
30
+ if (!('state' in value) || value['state'] === undefined)
31
+ return false;
32
+ if (!('questions' in value) || value['questions'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function AiGatewaySystemOneRequestUioFromJSON(json) {
37
+ return AiGatewaySystemOneRequestUioFromJSONTyped(json, false);
38
+ }
39
+ function AiGatewaySystemOneRequestUioFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'model': json['model'],
45
+ 'state': (0, AiGatewaySystemOneRequestStateUio_1.AiGatewaySystemOneRequestStateUioFromJSON)(json['state']),
46
+ 'images': json['images'] == null ? undefined : json['images'],
47
+ 'questions': ((0, runtime_1.mapValues)(json['questions'], AiGatewaySystemOneQuestionUio_1.AiGatewaySystemOneQuestionUioFromJSON)),
48
+ };
49
+ }
50
+ function AiGatewaySystemOneRequestUioToJSON(json) {
51
+ return AiGatewaySystemOneRequestUioToJSONTyped(json, false);
52
+ }
53
+ function AiGatewaySystemOneRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'model': value['model'],
59
+ 'state': (0, AiGatewaySystemOneRequestStateUio_1.AiGatewaySystemOneRequestStateUioToJSON)(value['state']),
60
+ 'images': value['images'],
61
+ 'questions': ((0, runtime_1.mapValues)(value['questions'], AiGatewaySystemOneQuestionUio_1.AiGatewaySystemOneQuestionUioToJSON)),
62
+ };
63
+ }
@@ -0,0 +1,48 @@
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 { AiGatewaySystemOneResponseUsageUio } from './AiGatewaySystemOneResponseUsageUio';
13
+ import type { AiGatewaySystemOneAnswerUio } from './AiGatewaySystemOneAnswerUio';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface AiGatewaySystemOneResponseUio
18
+ */
19
+ export interface AiGatewaySystemOneResponseUio {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof AiGatewaySystemOneResponseUio
24
+ */
25
+ model: string;
26
+ /**
27
+ *
28
+ * @type {{ [key: string]: AiGatewaySystemOneAnswerUio; }}
29
+ * @memberof AiGatewaySystemOneResponseUio
30
+ */
31
+ answers: {
32
+ [key: string]: AiGatewaySystemOneAnswerUio;
33
+ };
34
+ /**
35
+ *
36
+ * @type {AiGatewaySystemOneResponseUsageUio}
37
+ * @memberof AiGatewaySystemOneResponseUio
38
+ */
39
+ usage: AiGatewaySystemOneResponseUsageUio;
40
+ }
41
+ /**
42
+ * Check if a given object implements the AiGatewaySystemOneResponseUio interface.
43
+ */
44
+ export declare function instanceOfAiGatewaySystemOneResponseUio(value: object): value is AiGatewaySystemOneResponseUio;
45
+ export declare function AiGatewaySystemOneResponseUioFromJSON(json: any): AiGatewaySystemOneResponseUio;
46
+ export declare function AiGatewaySystemOneResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewaySystemOneResponseUio;
47
+ export declare function AiGatewaySystemOneResponseUioToJSON(json: any): AiGatewaySystemOneResponseUio;
48
+ export declare function AiGatewaySystemOneResponseUioToJSONTyped(value?: AiGatewaySystemOneResponseUio | null, ignoreDiscriminator?: boolean): any;