@breign/client 1.0.190 → 1.0.192

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 (34) hide show
  1. package/dist/apis/AiGatewayApi.d.ts +15 -1
  2. package/dist/apis/AiGatewayApi.js +34 -0
  3. package/dist/apis/TicketsApi.d.ts +15 -1
  4. package/dist/apis/TicketsApi.js +32 -0
  5. package/dist/models/AgentAtWorkProjectUio.d.ts +44 -0
  6. package/dist/models/AgentAtWorkProjectUio.js +58 -0
  7. package/dist/models/AgentAtWorkUio.d.ts +65 -0
  8. package/dist/models/AgentAtWorkUio.js +73 -0
  9. package/dist/models/AiGatewaySystemOneAnswerUio.d.ts +68 -0
  10. package/dist/models/AiGatewaySystemOneAnswerUio.js +69 -0
  11. package/dist/models/AiGatewaySystemOneQuestionCriteriaUio.d.ts +23 -0
  12. package/dist/models/AiGatewaySystemOneQuestionCriteriaUio.js +37 -0
  13. package/dist/models/AiGatewaySystemOneQuestionUio.d.ts +54 -0
  14. package/dist/models/AiGatewaySystemOneQuestionUio.js +66 -0
  15. package/dist/models/AiGatewaySystemOneRequestStateUio.d.ts +23 -0
  16. package/dist/models/AiGatewaySystemOneRequestStateUio.js +37 -0
  17. package/dist/models/AiGatewaySystemOneRequestUio.d.ts +54 -0
  18. package/dist/models/AiGatewaySystemOneRequestUio.js +63 -0
  19. package/dist/models/AiGatewaySystemOneResponseUio.d.ts +48 -0
  20. package/dist/models/AiGatewaySystemOneResponseUio.js +61 -0
  21. package/dist/models/AiGatewaySystemOneResponseUsageUio.d.ts +38 -0
  22. package/dist/models/AiGatewaySystemOneResponseUsageUio.js +50 -0
  23. package/dist/models/ModelDefinitionUio.d.ts +6 -0
  24. package/dist/models/ModelDefinitionUio.js +2 -0
  25. package/dist/models/ProjectAttentionUio.d.ts +6 -0
  26. package/dist/models/ProjectAttentionUio.js +4 -0
  27. package/dist/models/UpdateUserChatPreferencesRequestUio.d.ts +6 -0
  28. package/dist/models/UpdateUserChatPreferencesRequestUio.js +2 -0
  29. package/dist/models/UserChatPreferencesUio.d.ts +6 -0
  30. package/dist/models/UserChatPreferencesUio.js +4 -0
  31. package/dist/models/index.d.ts +9 -0
  32. package/dist/models/index.js +9 -0
  33. package/dist/openapi.json +327 -2
  34. 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
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AcceptTicketProposalRequestUio, ConversationTicketProposalUio, CreateTicketArtifactRequestUio, CreateTicketArtifactResponseUio, CreateTicketEventRequestUio, CreateTicketRequestUio, MemberTypeUio, SaveTicketArtifactVersionRequestUio, SetTicketAssigneesRequestUio, TicketAgentExecutionUio, TicketApprovalRequestUio, TicketArtifactDownloadUrlUio, TicketArtifactUio, TicketBoardUio, TicketEventUio, TicketReviewRequestUio, TicketSessionMessageRequestUio, TicketStatusUio, TicketThreadsUio, TicketUio, TicketUsageUio, UpdateTicketRequestUio } from '../models/index';
13
+ import type { AcceptTicketProposalRequestUio, AgentAtWorkUio, ConversationTicketProposalUio, CreateTicketArtifactRequestUio, CreateTicketArtifactResponseUio, CreateTicketEventRequestUio, CreateTicketRequestUio, MemberTypeUio, SaveTicketArtifactVersionRequestUio, SetTicketAssigneesRequestUio, TicketAgentExecutionUio, TicketApprovalRequestUio, TicketArtifactDownloadUrlUio, TicketArtifactUio, TicketBoardUio, TicketEventUio, TicketReviewRequestUio, TicketSessionMessageRequestUio, TicketStatusUio, TicketThreadsUio, TicketUio, TicketUsageUio, UpdateTicketRequestUio } from '../models/index';
14
14
  export interface AcceptTicketProposalRequest {
15
15
  proposalId: string;
16
16
  acceptTicketProposalRequestUio: AcceptTicketProposalRequestUio;
@@ -39,6 +39,10 @@ export interface DeleteTicketArtifactRequest {
39
39
  ticketId: string;
40
40
  artifactId: string;
41
41
  }
42
+ export interface GetAgentsAtWorkRequest {
43
+ organizationId: string;
44
+ limit?: number;
45
+ }
42
46
  export interface GetProjectBoardRequest {
43
47
  projectId: string;
44
48
  doneLimit?: number;
@@ -196,6 +200,16 @@ export declare class TicketsApi extends runtime.BaseAPI {
196
200
  * Remove an artifact from a ticket
197
201
  */
198
202
  deleteTicketArtifact(ticketId: string, artifactId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
203
+ /**
204
+ * Les agents qui travaillent, attendent une réponse ou sont bloqués sur les tickets ouverts dont l\'utilisateur est créateur, assigné ou relecteur. Ceux qui attendent une réponse d\'abord, puis du plus récent au plus ancien.
205
+ * List the agents at work on the caller\'s tickets
206
+ */
207
+ getAgentsAtWorkRaw(requestParameters: GetAgentsAtWorkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AgentAtWorkUio>>>;
208
+ /**
209
+ * Les agents qui travaillent, attendent une réponse ou sont bloqués sur les tickets ouverts dont l\'utilisateur est créateur, assigné ou relecteur. Ceux qui attendent une réponse d\'abord, puis du plus récent au plus ancien.
210
+ * List the agents at work on the caller\'s tickets
211
+ */
212
+ getAgentsAtWork(organizationId: string, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentAtWorkUio>>;
199
213
  /**
200
214
  * Tickets par colonne. Les colonnes ouvertes sont complètes ; done ne contient que les tickets terminés les plus récents, son total compte tous les terminés.
201
215
  * Get the board of a project
@@ -286,6 +286,38 @@ class TicketsApi extends runtime.BaseAPI {
286
286
  async deleteTicketArtifact(ticketId, artifactId, initOverrides) {
287
287
  await this.deleteTicketArtifactRaw({ ticketId: ticketId, artifactId: artifactId }, initOverrides);
288
288
  }
289
+ /**
290
+ * Les agents qui travaillent, attendent une réponse ou sont bloqués sur les tickets ouverts dont l\'utilisateur est créateur, assigné ou relecteur. Ceux qui attendent une réponse d\'abord, puis du plus récent au plus ancien.
291
+ * List the agents at work on the caller\'s tickets
292
+ */
293
+ async getAgentsAtWorkRaw(requestParameters, initOverrides) {
294
+ if (requestParameters['organizationId'] == null) {
295
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getAgentsAtWork().');
296
+ }
297
+ const queryParameters = {};
298
+ if (requestParameters['limit'] != null) {
299
+ queryParameters['limit'] = requestParameters['limit'];
300
+ }
301
+ const headerParameters = {};
302
+ if (this.configuration && this.configuration.apiKey) {
303
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
304
+ }
305
+ const response = await this.request({
306
+ path: `/organizations/{organizationId}/agents-at-work`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
307
+ method: 'GET',
308
+ headers: headerParameters,
309
+ query: queryParameters,
310
+ }, initOverrides);
311
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.AgentAtWorkUioFromJSON));
312
+ }
313
+ /**
314
+ * Les agents qui travaillent, attendent une réponse ou sont bloqués sur les tickets ouverts dont l\'utilisateur est créateur, assigné ou relecteur. Ceux qui attendent une réponse d\'abord, puis du plus récent au plus ancien.
315
+ * List the agents at work on the caller\'s tickets
316
+ */
317
+ async getAgentsAtWork(organizationId, limit, initOverrides) {
318
+ const response = await this.getAgentsAtWorkRaw({ organizationId: organizationId, limit: limit }, initOverrides);
319
+ return await response.value();
320
+ }
289
321
  /**
290
322
  * Tickets par colonne. Les colonnes ouvertes sont complètes ; done ne contient que les tickets terminés les plus récents, son total compte tous les terminés.
291
323
  * Get the board of a project
@@ -0,0 +1,44 @@
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 AgentAtWorkProjectUio
16
+ */
17
+ export interface AgentAtWorkProjectUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AgentAtWorkProjectUio
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AgentAtWorkProjectUio
28
+ */
29
+ key: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AgentAtWorkProjectUio
34
+ */
35
+ name: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the AgentAtWorkProjectUio interface.
39
+ */
40
+ export declare function instanceOfAgentAtWorkProjectUio(value: object): value is AgentAtWorkProjectUio;
41
+ export declare function AgentAtWorkProjectUioFromJSON(json: any): AgentAtWorkProjectUio;
42
+ export declare function AgentAtWorkProjectUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentAtWorkProjectUio;
43
+ export declare function AgentAtWorkProjectUioToJSON(json: any): AgentAtWorkProjectUio;
44
+ export declare function AgentAtWorkProjectUioToJSONTyped(value?: AgentAtWorkProjectUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAgentAtWorkProjectUio = instanceOfAgentAtWorkProjectUio;
17
+ exports.AgentAtWorkProjectUioFromJSON = AgentAtWorkProjectUioFromJSON;
18
+ exports.AgentAtWorkProjectUioFromJSONTyped = AgentAtWorkProjectUioFromJSONTyped;
19
+ exports.AgentAtWorkProjectUioToJSON = AgentAtWorkProjectUioToJSON;
20
+ exports.AgentAtWorkProjectUioToJSONTyped = AgentAtWorkProjectUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentAtWorkProjectUio interface.
23
+ */
24
+ function instanceOfAgentAtWorkProjectUio(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('key' in value) || value['key'] === undefined)
28
+ return false;
29
+ if (!('name' in value) || value['name'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function AgentAtWorkProjectUioFromJSON(json) {
34
+ return AgentAtWorkProjectUioFromJSONTyped(json, false);
35
+ }
36
+ function AgentAtWorkProjectUioFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'id': json['id'],
42
+ 'key': json['key'],
43
+ 'name': json['name'],
44
+ };
45
+ }
46
+ function AgentAtWorkProjectUioToJSON(json) {
47
+ return AgentAtWorkProjectUioToJSONTyped(json, false);
48
+ }
49
+ function AgentAtWorkProjectUioToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'id': value['id'],
55
+ 'key': value['key'],
56
+ 'name': value['name'],
57
+ };
58
+ }
@@ -0,0 +1,65 @@
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 { TicketParentRefUio } from './TicketParentRefUio';
13
+ import type { AgentAtWorkProjectUio } from './AgentAtWorkProjectUio';
14
+ import type { TicketAssigneeStateUio } from './TicketAssigneeStateUio';
15
+ /**
16
+ * Un agent assigné à un ticket ouvert qui concerne l'utilisateur (créateur, assigné ou relecteur), et qui travaille, attend une réponse ou est bloqué.
17
+ * @export
18
+ * @interface AgentAtWorkUio
19
+ */
20
+ export interface AgentAtWorkUio {
21
+ /**
22
+ *
23
+ * @type {TicketParentRefUio}
24
+ * @memberof AgentAtWorkUio
25
+ */
26
+ ticket: TicketParentRefUio;
27
+ /**
28
+ *
29
+ * @type {AgentAtWorkProjectUio}
30
+ * @memberof AgentAtWorkUio
31
+ */
32
+ project: AgentAtWorkProjectUio;
33
+ /**
34
+ *
35
+ * @type {string}
36
+ * @memberof AgentAtWorkUio
37
+ */
38
+ agentId: string;
39
+ /**
40
+ *
41
+ * @type {TicketAssigneeStateUio}
42
+ * @memberof AgentAtWorkUio
43
+ */
44
+ state: TicketAssigneeStateUio;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof AgentAtWorkUio
49
+ */
50
+ stateNote: string | null;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof AgentAtWorkUio
55
+ */
56
+ updatedAt: string;
57
+ }
58
+ /**
59
+ * Check if a given object implements the AgentAtWorkUio interface.
60
+ */
61
+ export declare function instanceOfAgentAtWorkUio(value: object): value is AgentAtWorkUio;
62
+ export declare function AgentAtWorkUioFromJSON(json: any): AgentAtWorkUio;
63
+ export declare function AgentAtWorkUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentAtWorkUio;
64
+ export declare function AgentAtWorkUioToJSON(json: any): AgentAtWorkUio;
65
+ export declare function AgentAtWorkUioToJSONTyped(value?: AgentAtWorkUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,73 @@
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.instanceOfAgentAtWorkUio = instanceOfAgentAtWorkUio;
17
+ exports.AgentAtWorkUioFromJSON = AgentAtWorkUioFromJSON;
18
+ exports.AgentAtWorkUioFromJSONTyped = AgentAtWorkUioFromJSONTyped;
19
+ exports.AgentAtWorkUioToJSON = AgentAtWorkUioToJSON;
20
+ exports.AgentAtWorkUioToJSONTyped = AgentAtWorkUioToJSONTyped;
21
+ const TicketParentRefUio_1 = require("./TicketParentRefUio");
22
+ const AgentAtWorkProjectUio_1 = require("./AgentAtWorkProjectUio");
23
+ const TicketAssigneeStateUio_1 = require("./TicketAssigneeStateUio");
24
+ /**
25
+ * Check if a given object implements the AgentAtWorkUio interface.
26
+ */
27
+ function instanceOfAgentAtWorkUio(value) {
28
+ if (!('ticket' in value) || value['ticket'] === undefined)
29
+ return false;
30
+ if (!('project' in value) || value['project'] === undefined)
31
+ return false;
32
+ if (!('agentId' in value) || value['agentId'] === undefined)
33
+ return false;
34
+ if (!('state' in value) || value['state'] === undefined)
35
+ return false;
36
+ if (!('stateNote' in value) || value['stateNote'] === undefined)
37
+ return false;
38
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function AgentAtWorkUioFromJSON(json) {
43
+ return AgentAtWorkUioFromJSONTyped(json, false);
44
+ }
45
+ function AgentAtWorkUioFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'ticket': (0, TicketParentRefUio_1.TicketParentRefUioFromJSON)(json['ticket']),
51
+ 'project': (0, AgentAtWorkProjectUio_1.AgentAtWorkProjectUioFromJSON)(json['project']),
52
+ 'agentId': json['agentId'],
53
+ 'state': (0, TicketAssigneeStateUio_1.TicketAssigneeStateUioFromJSON)(json['state']),
54
+ 'stateNote': json['stateNote'],
55
+ 'updatedAt': json['updatedAt'],
56
+ };
57
+ }
58
+ function AgentAtWorkUioToJSON(json) {
59
+ return AgentAtWorkUioToJSONTyped(json, false);
60
+ }
61
+ function AgentAtWorkUioToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'ticket': (0, TicketParentRefUio_1.TicketParentRefUioToJSON)(value['ticket']),
67
+ 'project': (0, AgentAtWorkProjectUio_1.AgentAtWorkProjectUioToJSON)(value['project']),
68
+ 'agentId': value['agentId'],
69
+ 'state': (0, TicketAssigneeStateUio_1.TicketAssigneeStateUioToJSON)(value['state']),
70
+ 'stateNote': value['stateNote'],
71
+ 'updatedAt': value['updatedAt'],
72
+ };
73
+ }
@@ -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;