@breign/client 1.0.182 → 1.0.184
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/AdminApi.d.ts +14 -1
- package/dist/apis/AdminApi.js +31 -0
- package/dist/apis/EngineApi.d.ts +15 -1
- package/dist/apis/EngineApi.js +34 -0
- package/dist/apis/TicketsApi.d.ts +16 -1
- package/dist/apis/TicketsApi.js +37 -0
- package/dist/models/AiGatewayInternalSettingsSummaryUio.d.ts +7 -0
- package/dist/models/AiGatewayInternalSettingsSummaryUio.js +3 -0
- package/dist/models/AiGatewayModelTokenQuotaUio.d.ts +1 -1
- package/dist/models/AiGatewaySettingsUio.d.ts +7 -0
- package/dist/models/AiGatewaySettingsUio.js +3 -0
- package/dist/models/AiGatewaySettingsUpdateRequestUio.d.ts +7 -0
- package/dist/models/AiGatewaySettingsUpdateRequestUio.js +3 -0
- package/dist/models/AiGatewayUserBudgetUio.d.ts +58 -0
- package/dist/models/AiGatewayUserBudgetUio.js +67 -0
- package/dist/models/InboxItemKindUio.d.ts +2 -1
- package/dist/models/InboxItemKindUio.js +2 -1
- package/dist/models/ModelDefinitionUio.d.ts +1 -1
- package/dist/models/TicketApprovalDecisionUio.d.ts +26 -0
- package/dist/models/TicketApprovalDecisionUio.js +52 -0
- package/dist/models/TicketApprovalRequestUio.d.ts +39 -0
- package/dist/models/TicketApprovalRequestUio.js +53 -0
- package/dist/models/TicketEventKindUio.d.ts +2 -1
- package/dist/models/TicketEventKindUio.js +2 -1
- package/dist/models/TicketEventUio.d.ts +1 -1
- package/dist/models/TokenPriceSuggestionRequestUio.d.ts +39 -0
- package/dist/models/TokenPriceSuggestionRequestUio.js +55 -0
- package/dist/models/TokenPriceSuggestionUio.d.ts +70 -0
- package/dist/models/TokenPriceSuggestionUio.js +72 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/openapi.json +275 -7
- package/package.json +1 -1
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AiGatewayInternalSettingsSummaryUio, BodyWithMessageUio, DeletePlatformEngineResponseUio, ModelUio, OrganisationPlatformEngineUsageUio, OrganizationUio, PlatformEngineAccessUio, PlatformEngineUsageUio, ProviderCreateRequestUio, ProviderUio, ToolPresetCreateRequestUio, ToolPresetDeleteAllResponseUio, ToolPresetImportRequestUio, ToolPresetImportResponseUio, ToolPresetPageUio, ToolPresetUio, ToolPresetUpdateRequestUio } from '../models/index';
|
|
13
|
+
import type { AiGatewayInternalSettingsSummaryUio, BodyWithMessageUio, DeletePlatformEngineResponseUio, ModelUio, OrganisationPlatformEngineUsageUio, OrganizationUio, PlatformEngineAccessUio, PlatformEngineUsageUio, ProviderCreateRequestUio, ProviderUio, TokenPriceSuggestionRequestUio, TokenPriceSuggestionUio, ToolPresetCreateRequestUio, ToolPresetDeleteAllResponseUio, ToolPresetImportRequestUio, ToolPresetImportResponseUio, ToolPresetPageUio, ToolPresetUio, ToolPresetUpdateRequestUio } from '../models/index';
|
|
14
14
|
export interface CreateAdminToolPresetRequest {
|
|
15
15
|
toolPresetCreateRequestUio: ToolPresetCreateRequestUio;
|
|
16
16
|
}
|
|
@@ -48,6 +48,9 @@ export interface SetPlatformEngineAccessRequest {
|
|
|
48
48
|
id: string;
|
|
49
49
|
platformEngineAccessUio: PlatformEngineAccessUio;
|
|
50
50
|
}
|
|
51
|
+
export interface SuggestPlatformTokenPricesRequest {
|
|
52
|
+
tokenPriceSuggestionRequestUio: TokenPriceSuggestionRequestUio;
|
|
53
|
+
}
|
|
51
54
|
export interface UpdateAdminToolPresetRequest {
|
|
52
55
|
toolPresetId: string;
|
|
53
56
|
toolPresetUpdateRequestUio: ToolPresetUpdateRequestUio;
|
|
@@ -214,6 +217,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
214
217
|
* Set platform engine access
|
|
215
218
|
*/
|
|
216
219
|
setPlatformEngineAccess(id: string, platformEngineAccessUio: PlatformEngineAccessUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlatformEngineAccessUio>;
|
|
220
|
+
/**
|
|
221
|
+
* Superadmin. Prix au million de tokens proposés pour des modèles : tarifs Breign déjà enregistrés, sinon catalogue public (models.dev), dans leur devise d\'origine.
|
|
222
|
+
* Suggest token prices for platform engine models
|
|
223
|
+
*/
|
|
224
|
+
suggestPlatformTokenPricesRaw(requestParameters: SuggestPlatformTokenPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<TokenPriceSuggestionUio>>>;
|
|
225
|
+
/**
|
|
226
|
+
* Superadmin. Prix au million de tokens proposés pour des modèles : tarifs Breign déjà enregistrés, sinon catalogue public (models.dev), dans leur devise d\'origine.
|
|
227
|
+
* Suggest token prices for platform engine models
|
|
228
|
+
*/
|
|
229
|
+
suggestPlatformTokenPrices(tokenPriceSuggestionRequestUio: TokenPriceSuggestionRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TokenPriceSuggestionUio>>;
|
|
217
230
|
/**
|
|
218
231
|
* Partial update — only the provided properties are modified
|
|
219
232
|
* Update a tool preset
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -515,6 +515,37 @@ class AdminApi extends runtime.BaseAPI {
|
|
|
515
515
|
const response = await this.setPlatformEngineAccessRaw({ id: id, platformEngineAccessUio: platformEngineAccessUio }, initOverrides);
|
|
516
516
|
return await response.value();
|
|
517
517
|
}
|
|
518
|
+
/**
|
|
519
|
+
* Superadmin. Prix au million de tokens proposés pour des modèles : tarifs Breign déjà enregistrés, sinon catalogue public (models.dev), dans leur devise d\'origine.
|
|
520
|
+
* Suggest token prices for platform engine models
|
|
521
|
+
*/
|
|
522
|
+
async suggestPlatformTokenPricesRaw(requestParameters, initOverrides) {
|
|
523
|
+
if (requestParameters['tokenPriceSuggestionRequestUio'] == null) {
|
|
524
|
+
throw new runtime.RequiredError('tokenPriceSuggestionRequestUio', 'Required parameter "tokenPriceSuggestionRequestUio" was null or undefined when calling suggestPlatformTokenPrices().');
|
|
525
|
+
}
|
|
526
|
+
const queryParameters = {};
|
|
527
|
+
const headerParameters = {};
|
|
528
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
529
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
530
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
531
|
+
}
|
|
532
|
+
const response = await this.request({
|
|
533
|
+
path: `/admin/platform-engines/token-price-suggestions`,
|
|
534
|
+
method: 'POST',
|
|
535
|
+
headers: headerParameters,
|
|
536
|
+
query: queryParameters,
|
|
537
|
+
body: (0, index_1.TokenPriceSuggestionRequestUioToJSON)(requestParameters['tokenPriceSuggestionRequestUio']),
|
|
538
|
+
}, initOverrides);
|
|
539
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.TokenPriceSuggestionUioFromJSON));
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* Superadmin. Prix au million de tokens proposés pour des modèles : tarifs Breign déjà enregistrés, sinon catalogue public (models.dev), dans leur devise d\'origine.
|
|
543
|
+
* Suggest token prices for platform engine models
|
|
544
|
+
*/
|
|
545
|
+
async suggestPlatformTokenPrices(tokenPriceSuggestionRequestUio, initOverrides) {
|
|
546
|
+
const response = await this.suggestPlatformTokenPricesRaw({ tokenPriceSuggestionRequestUio: tokenPriceSuggestionRequestUio }, initOverrides);
|
|
547
|
+
return await response.value();
|
|
548
|
+
}
|
|
518
549
|
/**
|
|
519
550
|
* Partial update — only the provided properties are modified
|
|
520
551
|
* Update a tool preset
|
package/dist/apis/EngineApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BodyWithMessageUio, DefaultEngineRequestUio, DeleteProvider200ResponseUio, EmbeddingProviderUio, ModelUio, ModelUserAccessUio, OrganizationModelAccessUio, ProviderCreateRequestUio, ProviderUio, ProviderValiationRequestUio, SetModelUserAccessUio } from '../models/index';
|
|
13
|
+
import type { BodyWithMessageUio, DefaultEngineRequestUio, DeleteProvider200ResponseUio, EmbeddingProviderUio, ModelUio, ModelUserAccessUio, OrganizationModelAccessUio, ProviderCreateRequestUio, ProviderUio, ProviderValiationRequestUio, SetModelUserAccessUio, TokenPriceSuggestionRequestUio, TokenPriceSuggestionUio } from '../models/index';
|
|
14
14
|
export interface CreateProviderRequest {
|
|
15
15
|
organizationId: string;
|
|
16
16
|
providerCreateRequestUio: ProviderCreateRequestUio;
|
|
@@ -37,6 +37,10 @@ export interface SetModelUserAccessRequest {
|
|
|
37
37
|
providerId: string;
|
|
38
38
|
setModelUserAccessUio: SetModelUserAccessUio;
|
|
39
39
|
}
|
|
40
|
+
export interface SuggestOrganizationTokenPricesRequest {
|
|
41
|
+
organizationId: string;
|
|
42
|
+
tokenPriceSuggestionRequestUio: TokenPriceSuggestionRequestUio;
|
|
43
|
+
}
|
|
40
44
|
export interface UpdateDefaultEngineRequest {
|
|
41
45
|
defaultEngineRequestUio: DefaultEngineRequestUio;
|
|
42
46
|
}
|
|
@@ -124,6 +128,16 @@ export declare class EngineApi extends runtime.BaseAPI {
|
|
|
124
128
|
* Restrict a model to some members
|
|
125
129
|
*/
|
|
126
130
|
setModelUserAccess(organizationId: string, providerId: string, setModelUserAccessUio: SetModelUserAccessUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ModelUserAccessUio>;
|
|
131
|
+
/**
|
|
132
|
+
* Admin d\'organisation. Prix au million de tokens proposés pour des modèles, en euros : tarifs Breign, sinon catalogue public (models.dev) converti au taux BCE du jour. C\'est en euros que se comptent les budgets des utilisateurs. Un prix dont la devise ne se convertit pas est omis.
|
|
133
|
+
* Suggest token prices for organization engine models
|
|
134
|
+
*/
|
|
135
|
+
suggestOrganizationTokenPricesRaw(requestParameters: SuggestOrganizationTokenPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<TokenPriceSuggestionUio>>>;
|
|
136
|
+
/**
|
|
137
|
+
* Admin d\'organisation. Prix au million de tokens proposés pour des modèles, en euros : tarifs Breign, sinon catalogue public (models.dev) converti au taux BCE du jour. C\'est en euros que se comptent les budgets des utilisateurs. Un prix dont la devise ne se convertit pas est omis.
|
|
138
|
+
* Suggest token prices for organization engine models
|
|
139
|
+
*/
|
|
140
|
+
suggestOrganizationTokenPrices(organizationId: string, tokenPriceSuggestionRequestUio: TokenPriceSuggestionRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TokenPriceSuggestionUio>>;
|
|
127
141
|
/**
|
|
128
142
|
* Update the default engine for an organization
|
|
129
143
|
* Update the default engine for an organization
|
package/dist/apis/EngineApi.js
CHANGED
|
@@ -278,6 +278,40 @@ class EngineApi extends runtime.BaseAPI {
|
|
|
278
278
|
const response = await this.setModelUserAccessRaw({ organizationId: organizationId, providerId: providerId, setModelUserAccessUio: setModelUserAccessUio }, initOverrides);
|
|
279
279
|
return await response.value();
|
|
280
280
|
}
|
|
281
|
+
/**
|
|
282
|
+
* Admin d\'organisation. Prix au million de tokens proposés pour des modèles, en euros : tarifs Breign, sinon catalogue public (models.dev) converti au taux BCE du jour. C\'est en euros que se comptent les budgets des utilisateurs. Un prix dont la devise ne se convertit pas est omis.
|
|
283
|
+
* Suggest token prices for organization engine models
|
|
284
|
+
*/
|
|
285
|
+
async suggestOrganizationTokenPricesRaw(requestParameters, initOverrides) {
|
|
286
|
+
if (requestParameters['organizationId'] == null) {
|
|
287
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling suggestOrganizationTokenPrices().');
|
|
288
|
+
}
|
|
289
|
+
if (requestParameters['tokenPriceSuggestionRequestUio'] == null) {
|
|
290
|
+
throw new runtime.RequiredError('tokenPriceSuggestionRequestUio', 'Required parameter "tokenPriceSuggestionRequestUio" was null or undefined when calling suggestOrganizationTokenPrices().');
|
|
291
|
+
}
|
|
292
|
+
const queryParameters = {};
|
|
293
|
+
const headerParameters = {};
|
|
294
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
295
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
296
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
297
|
+
}
|
|
298
|
+
const response = await this.request({
|
|
299
|
+
path: `/organizations/{organizationId}/engines/token-price-suggestions`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
300
|
+
method: 'POST',
|
|
301
|
+
headers: headerParameters,
|
|
302
|
+
query: queryParameters,
|
|
303
|
+
body: (0, index_1.TokenPriceSuggestionRequestUioToJSON)(requestParameters['tokenPriceSuggestionRequestUio']),
|
|
304
|
+
}, initOverrides);
|
|
305
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.TokenPriceSuggestionUioFromJSON));
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Admin d\'organisation. Prix au million de tokens proposés pour des modèles, en euros : tarifs Breign, sinon catalogue public (models.dev) converti au taux BCE du jour. C\'est en euros que se comptent les budgets des utilisateurs. Un prix dont la devise ne se convertit pas est omis.
|
|
309
|
+
* Suggest token prices for organization engine models
|
|
310
|
+
*/
|
|
311
|
+
async suggestOrganizationTokenPrices(organizationId, tokenPriceSuggestionRequestUio, initOverrides) {
|
|
312
|
+
const response = await this.suggestOrganizationTokenPricesRaw({ organizationId: organizationId, tokenPriceSuggestionRequestUio: tokenPriceSuggestionRequestUio }, initOverrides);
|
|
313
|
+
return await response.value();
|
|
314
|
+
}
|
|
281
315
|
/**
|
|
282
316
|
* Update the default engine for an organization
|
|
283
317
|
* Update the default engine for an organization
|
|
@@ -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, TicketArtifactDownloadUrlUio, TicketArtifactUio, TicketBoardUio, TicketEventUio, TicketReviewRequestUio, TicketStatusUio, TicketUio, TicketUsageUio, UpdateTicketRequestUio } from '../models/index';
|
|
13
|
+
import type { AcceptTicketProposalRequestUio, ConversationTicketProposalUio, CreateTicketArtifactRequestUio, CreateTicketArtifactResponseUio, CreateTicketEventRequestUio, CreateTicketRequestUio, MemberTypeUio, SaveTicketArtifactVersionRequestUio, SetTicketAssigneesRequestUio, TicketAgentExecutionUio, TicketApprovalRequestUio, TicketArtifactDownloadUrlUio, TicketArtifactUio, TicketBoardUio, TicketEventUio, TicketReviewRequestUio, TicketStatusUio, TicketUio, TicketUsageUio, UpdateTicketRequestUio } from '../models/index';
|
|
14
14
|
export interface AcceptTicketProposalRequest {
|
|
15
15
|
proposalId: string;
|
|
16
16
|
acceptTicketProposalRequestUio: AcceptTicketProposalRequestUio;
|
|
@@ -30,6 +30,11 @@ export interface CreateTicketCommentRequest {
|
|
|
30
30
|
ticketId: string;
|
|
31
31
|
createTicketEventRequestUio: CreateTicketEventRequestUio;
|
|
32
32
|
}
|
|
33
|
+
export interface DecideTicketApprovalRequest {
|
|
34
|
+
ticketId: string;
|
|
35
|
+
eventId: string;
|
|
36
|
+
ticketApprovalRequestUio: TicketApprovalRequestUio;
|
|
37
|
+
}
|
|
33
38
|
export interface DeleteTicketArtifactRequest {
|
|
34
39
|
ticketId: string;
|
|
35
40
|
artifactId: string;
|
|
@@ -161,6 +166,16 @@ export declare class TicketsApi extends runtime.BaseAPI {
|
|
|
161
166
|
* Comment on a ticket
|
|
162
167
|
*/
|
|
163
168
|
createTicketComment(ticketId: string, createTicketEventRequestUio: CreateTicketEventRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketEventUio>;
|
|
169
|
+
/**
|
|
170
|
+
* Réponse de l\'humain visé (ou d\'un responsable du projet) à une demande d\'approbation d\'un agent. Le statut du ticket ne change pas ; l\'agent est réveillé avec la réponse.
|
|
171
|
+
* Answer an agent\'s approval request
|
|
172
|
+
*/
|
|
173
|
+
decideTicketApprovalRaw(requestParameters: DecideTicketApprovalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TicketUio>>;
|
|
174
|
+
/**
|
|
175
|
+
* Réponse de l\'humain visé (ou d\'un responsable du projet) à une demande d\'approbation d\'un agent. Le statut du ticket ne change pas ; l\'agent est réveillé avec la réponse.
|
|
176
|
+
* Answer an agent\'s approval request
|
|
177
|
+
*/
|
|
178
|
+
decideTicketApproval(ticketId: string, eventId: string, ticketApprovalRequestUio: TicketApprovalRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketUio>;
|
|
164
179
|
/**
|
|
165
180
|
* Retire l\'artefact et supprime le fichier téléversé.
|
|
166
181
|
* Remove an artifact from a ticket
|
package/dist/apis/TicketsApi.js
CHANGED
|
@@ -218,6 +218,43 @@ class TicketsApi extends runtime.BaseAPI {
|
|
|
218
218
|
const response = await this.createTicketCommentRaw({ ticketId: ticketId, createTicketEventRequestUio: createTicketEventRequestUio }, initOverrides);
|
|
219
219
|
return await response.value();
|
|
220
220
|
}
|
|
221
|
+
/**
|
|
222
|
+
* Réponse de l\'humain visé (ou d\'un responsable du projet) à une demande d\'approbation d\'un agent. Le statut du ticket ne change pas ; l\'agent est réveillé avec la réponse.
|
|
223
|
+
* Answer an agent\'s approval request
|
|
224
|
+
*/
|
|
225
|
+
async decideTicketApprovalRaw(requestParameters, initOverrides) {
|
|
226
|
+
if (requestParameters['ticketId'] == null) {
|
|
227
|
+
throw new runtime.RequiredError('ticketId', 'Required parameter "ticketId" was null or undefined when calling decideTicketApproval().');
|
|
228
|
+
}
|
|
229
|
+
if (requestParameters['eventId'] == null) {
|
|
230
|
+
throw new runtime.RequiredError('eventId', 'Required parameter "eventId" was null or undefined when calling decideTicketApproval().');
|
|
231
|
+
}
|
|
232
|
+
if (requestParameters['ticketApprovalRequestUio'] == null) {
|
|
233
|
+
throw new runtime.RequiredError('ticketApprovalRequestUio', 'Required parameter "ticketApprovalRequestUio" was null or undefined when calling decideTicketApproval().');
|
|
234
|
+
}
|
|
235
|
+
const queryParameters = {};
|
|
236
|
+
const headerParameters = {};
|
|
237
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
238
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
239
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
240
|
+
}
|
|
241
|
+
const response = await this.request({
|
|
242
|
+
path: `/tickets/{ticketId}/approvals/{eventId}`.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId']))).replace(`{${"eventId"}}`, encodeURIComponent(String(requestParameters['eventId']))),
|
|
243
|
+
method: 'POST',
|
|
244
|
+
headers: headerParameters,
|
|
245
|
+
query: queryParameters,
|
|
246
|
+
body: (0, index_1.TicketApprovalRequestUioToJSON)(requestParameters['ticketApprovalRequestUio']),
|
|
247
|
+
}, initOverrides);
|
|
248
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TicketUioFromJSON)(jsonValue));
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Réponse de l\'humain visé (ou d\'un responsable du projet) à une demande d\'approbation d\'un agent. Le statut du ticket ne change pas ; l\'agent est réveillé avec la réponse.
|
|
252
|
+
* Answer an agent\'s approval request
|
|
253
|
+
*/
|
|
254
|
+
async decideTicketApproval(ticketId, eventId, ticketApprovalRequestUio, initOverrides) {
|
|
255
|
+
const response = await this.decideTicketApprovalRaw({ ticketId: ticketId, eventId: eventId, ticketApprovalRequestUio: ticketApprovalRequestUio }, initOverrides);
|
|
256
|
+
return await response.value();
|
|
257
|
+
}
|
|
221
258
|
/**
|
|
222
259
|
* Retire l\'artefact et supprime le fichier téléversé.
|
|
223
260
|
* Remove an artifact from a ticket
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AiGatewayUserBudgetUio } from './AiGatewayUserBudgetUio';
|
|
12
13
|
import type { AiGatewayModelTokenQuotaUio } from './AiGatewayModelTokenQuotaUio';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -34,6 +35,12 @@ export interface AiGatewayInternalSettingsSummaryUio {
|
|
|
34
35
|
* @memberof AiGatewayInternalSettingsSummaryUio
|
|
35
36
|
*/
|
|
36
37
|
modelTokenQuotas: Array<AiGatewayModelTokenQuotaUio>;
|
|
38
|
+
/**
|
|
39
|
+
* Budgets en euros par utilisateur (moteurs à clé propre seulement ; vide côté plateforme).
|
|
40
|
+
* @type {Array<AiGatewayUserBudgetUio>}
|
|
41
|
+
* @memberof AiGatewayInternalSettingsSummaryUio
|
|
42
|
+
*/
|
|
43
|
+
userBudgets?: Array<AiGatewayUserBudgetUio>;
|
|
37
44
|
/**
|
|
38
45
|
*
|
|
39
46
|
* @type {Date}
|
|
@@ -18,6 +18,7 @@ exports.AiGatewayInternalSettingsSummaryUioFromJSON = AiGatewayInternalSettingsS
|
|
|
18
18
|
exports.AiGatewayInternalSettingsSummaryUioFromJSONTyped = AiGatewayInternalSettingsSummaryUioFromJSONTyped;
|
|
19
19
|
exports.AiGatewayInternalSettingsSummaryUioToJSON = AiGatewayInternalSettingsSummaryUioToJSON;
|
|
20
20
|
exports.AiGatewayInternalSettingsSummaryUioToJSONTyped = AiGatewayInternalSettingsSummaryUioToJSONTyped;
|
|
21
|
+
const AiGatewayUserBudgetUio_1 = require("./AiGatewayUserBudgetUio");
|
|
21
22
|
const AiGatewayModelTokenQuotaUio_1 = require("./AiGatewayModelTokenQuotaUio");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the AiGatewayInternalSettingsSummaryUio interface.
|
|
@@ -46,6 +47,7 @@ function AiGatewayInternalSettingsSummaryUioFromJSONTyped(json, ignoreDiscrimina
|
|
|
46
47
|
'organizationId': json['organizationId'],
|
|
47
48
|
'gatewayRpm': json['gatewayRpm'],
|
|
48
49
|
'modelTokenQuotas': (json['modelTokenQuotas'].map(AiGatewayModelTokenQuotaUio_1.AiGatewayModelTokenQuotaUioFromJSON)),
|
|
50
|
+
'userBudgets': json['userBudgets'] == null ? undefined : (json['userBudgets'].map(AiGatewayUserBudgetUio_1.AiGatewayUserBudgetUioFromJSON)),
|
|
49
51
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
50
52
|
'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
|
|
51
53
|
'maxQuotaRatio': json['maxQuotaRatio'],
|
|
@@ -62,6 +64,7 @@ function AiGatewayInternalSettingsSummaryUioToJSONTyped(value, ignoreDiscriminat
|
|
|
62
64
|
'organizationId': value['organizationId'],
|
|
63
65
|
'gatewayRpm': value['gatewayRpm'],
|
|
64
66
|
'modelTokenQuotas': (value['modelTokenQuotas'].map(AiGatewayModelTokenQuotaUio_1.AiGatewayModelTokenQuotaUioToJSON)),
|
|
67
|
+
'userBudgets': value['userBudgets'] == null ? undefined : (value['userBudgets'].map(AiGatewayUserBudgetUio_1.AiGatewayUserBudgetUioToJSON)),
|
|
65
68
|
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
66
69
|
'updatedBy': value['updatedBy'],
|
|
67
70
|
'maxQuotaRatio': value['maxQuotaRatio'],
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface AiGatewayModelTokenQuotaUio {
|
|
18
18
|
/**
|
|
19
|
-
* Breign user id this quota applies to
|
|
19
|
+
* Breign user id this quota applies to, or `*` for every user (each one separately). A quota on a specific user overrides the `*` one for that user.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof AiGatewayModelTokenQuotaUio
|
|
22
22
|
*/
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AiGatewayUserBudgetUio } from './AiGatewayUserBudgetUio';
|
|
12
13
|
import type { AiGatewayModelTokenQuotaUio } from './AiGatewayModelTokenQuotaUio';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -34,6 +35,12 @@ export interface AiGatewaySettingsUio {
|
|
|
34
35
|
* @memberof AiGatewaySettingsUio
|
|
35
36
|
*/
|
|
36
37
|
modelTokenQuotas: Array<AiGatewayModelTokenQuotaUio>;
|
|
38
|
+
/**
|
|
39
|
+
* Budgets en euros par utilisateur (moteurs à clé propre seulement ; vide côté plateforme).
|
|
40
|
+
* @type {Array<AiGatewayUserBudgetUio>}
|
|
41
|
+
* @memberof AiGatewaySettingsUio
|
|
42
|
+
*/
|
|
43
|
+
userBudgets?: Array<AiGatewayUserBudgetUio>;
|
|
37
44
|
/**
|
|
38
45
|
*
|
|
39
46
|
* @type {Date}
|
|
@@ -18,6 +18,7 @@ exports.AiGatewaySettingsUioFromJSON = AiGatewaySettingsUioFromJSON;
|
|
|
18
18
|
exports.AiGatewaySettingsUioFromJSONTyped = AiGatewaySettingsUioFromJSONTyped;
|
|
19
19
|
exports.AiGatewaySettingsUioToJSON = AiGatewaySettingsUioToJSON;
|
|
20
20
|
exports.AiGatewaySettingsUioToJSONTyped = AiGatewaySettingsUioToJSONTyped;
|
|
21
|
+
const AiGatewayUserBudgetUio_1 = require("./AiGatewayUserBudgetUio");
|
|
21
22
|
const AiGatewayModelTokenQuotaUio_1 = require("./AiGatewayModelTokenQuotaUio");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the AiGatewaySettingsUio interface.
|
|
@@ -44,6 +45,7 @@ function AiGatewaySettingsUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
45
|
'organizationId': json['organizationId'],
|
|
45
46
|
'gatewayRpm': json['gatewayRpm'],
|
|
46
47
|
'modelTokenQuotas': (json['modelTokenQuotas'].map(AiGatewayModelTokenQuotaUio_1.AiGatewayModelTokenQuotaUioFromJSON)),
|
|
48
|
+
'userBudgets': json['userBudgets'] == null ? undefined : (json['userBudgets'].map(AiGatewayUserBudgetUio_1.AiGatewayUserBudgetUioFromJSON)),
|
|
47
49
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
48
50
|
'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
|
|
49
51
|
};
|
|
@@ -59,6 +61,7 @@ function AiGatewaySettingsUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
59
61
|
'organizationId': value['organizationId'],
|
|
60
62
|
'gatewayRpm': value['gatewayRpm'],
|
|
61
63
|
'modelTokenQuotas': (value['modelTokenQuotas'].map(AiGatewayModelTokenQuotaUio_1.AiGatewayModelTokenQuotaUioToJSON)),
|
|
64
|
+
'userBudgets': value['userBudgets'] == null ? undefined : (value['userBudgets'].map(AiGatewayUserBudgetUio_1.AiGatewayUserBudgetUioToJSON)),
|
|
62
65
|
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
63
66
|
'updatedBy': value['updatedBy'],
|
|
64
67
|
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AiGatewayUserBudgetUio } from './AiGatewayUserBudgetUio';
|
|
12
13
|
import type { AiGatewayModelTokenQuotaUio } from './AiGatewayModelTokenQuotaUio';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -28,6 +29,12 @@ export interface AiGatewaySettingsUpdateRequestUio {
|
|
|
28
29
|
* @memberof AiGatewaySettingsUpdateRequestUio
|
|
29
30
|
*/
|
|
30
31
|
modelTokenQuotas?: Array<AiGatewayModelTokenQuotaUio>;
|
|
32
|
+
/**
|
|
33
|
+
* Remplace tous les budgets. Refusé sur les réglages plateforme.
|
|
34
|
+
* @type {Array<AiGatewayUserBudgetUio>}
|
|
35
|
+
* @memberof AiGatewaySettingsUpdateRequestUio
|
|
36
|
+
*/
|
|
37
|
+
userBudgets?: Array<AiGatewayUserBudgetUio>;
|
|
31
38
|
}
|
|
32
39
|
/**
|
|
33
40
|
* Check if a given object implements the AiGatewaySettingsUpdateRequestUio interface.
|
|
@@ -18,6 +18,7 @@ exports.AiGatewaySettingsUpdateRequestUioFromJSON = AiGatewaySettingsUpdateReque
|
|
|
18
18
|
exports.AiGatewaySettingsUpdateRequestUioFromJSONTyped = AiGatewaySettingsUpdateRequestUioFromJSONTyped;
|
|
19
19
|
exports.AiGatewaySettingsUpdateRequestUioToJSON = AiGatewaySettingsUpdateRequestUioToJSON;
|
|
20
20
|
exports.AiGatewaySettingsUpdateRequestUioToJSONTyped = AiGatewaySettingsUpdateRequestUioToJSONTyped;
|
|
21
|
+
const AiGatewayUserBudgetUio_1 = require("./AiGatewayUserBudgetUio");
|
|
21
22
|
const AiGatewayModelTokenQuotaUio_1 = require("./AiGatewayModelTokenQuotaUio");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the AiGatewaySettingsUpdateRequestUio interface.
|
|
@@ -35,6 +36,7 @@ function AiGatewaySettingsUpdateRequestUioFromJSONTyped(json, ignoreDiscriminato
|
|
|
35
36
|
return {
|
|
36
37
|
'gatewayRpm': json['gatewayRpm'] == null ? undefined : json['gatewayRpm'],
|
|
37
38
|
'modelTokenQuotas': json['modelTokenQuotas'] == null ? undefined : (json['modelTokenQuotas'].map(AiGatewayModelTokenQuotaUio_1.AiGatewayModelTokenQuotaUioFromJSON)),
|
|
39
|
+
'userBudgets': json['userBudgets'] == null ? undefined : (json['userBudgets'].map(AiGatewayUserBudgetUio_1.AiGatewayUserBudgetUioFromJSON)),
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
42
|
function AiGatewaySettingsUpdateRequestUioToJSON(json) {
|
|
@@ -47,5 +49,6 @@ function AiGatewaySettingsUpdateRequestUioToJSONTyped(value, ignoreDiscriminator
|
|
|
47
49
|
return {
|
|
48
50
|
'gatewayRpm': value['gatewayRpm'],
|
|
49
51
|
'modelTokenQuotas': value['modelTokenQuotas'] == null ? undefined : (value['modelTokenQuotas'].map(AiGatewayModelTokenQuotaUio_1.AiGatewayModelTokenQuotaUioToJSON)),
|
|
52
|
+
'userBudgets': value['userBudgets'] == null ? undefined : (value['userBudgets'].map(AiGatewayUserBudgetUio_1.AiGatewayUserBudgetUioToJSON)),
|
|
50
53
|
};
|
|
51
54
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 AiGatewayUserBudgetUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AiGatewayUserBudgetUio {
|
|
18
|
+
/**
|
|
19
|
+
* Breign user id this budget applies to, or `*` for every user (each one separately). A budget on a specific user overrides the `*` one for that user.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AiGatewayUserBudgetUio
|
|
22
|
+
*/
|
|
23
|
+
userId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Budget en euros pour la période, tous modèles à clé propre de l'organisation confondus. Une consommation sans prix en euros n'y compte pas.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AiGatewayUserBudgetUio
|
|
28
|
+
*/
|
|
29
|
+
amount: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AiGatewayUserBudgetUio
|
|
34
|
+
*/
|
|
35
|
+
period: AiGatewayUserBudgetUioPeriodEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Euros déjà consommés sur la période en cours (réponse seulement). Absent pour `*` : chaque utilisateur a sa propre consommation.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AiGatewayUserBudgetUio
|
|
40
|
+
*/
|
|
41
|
+
readonly used?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const AiGatewayUserBudgetUioPeriodEnum: {
|
|
47
|
+
readonly Day: "day";
|
|
48
|
+
readonly Month: "month";
|
|
49
|
+
};
|
|
50
|
+
export type AiGatewayUserBudgetUioPeriodEnum = typeof AiGatewayUserBudgetUioPeriodEnum[keyof typeof AiGatewayUserBudgetUioPeriodEnum];
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the AiGatewayUserBudgetUio interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfAiGatewayUserBudgetUio(value: object): value is AiGatewayUserBudgetUio;
|
|
55
|
+
export declare function AiGatewayUserBudgetUioFromJSON(json: any): AiGatewayUserBudgetUio;
|
|
56
|
+
export declare function AiGatewayUserBudgetUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayUserBudgetUio;
|
|
57
|
+
export declare function AiGatewayUserBudgetUioToJSON(json: any): AiGatewayUserBudgetUio;
|
|
58
|
+
export declare function AiGatewayUserBudgetUioToJSONTyped(value?: Omit<AiGatewayUserBudgetUio, 'used'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.AiGatewayUserBudgetUioPeriodEnum = void 0;
|
|
17
|
+
exports.instanceOfAiGatewayUserBudgetUio = instanceOfAiGatewayUserBudgetUio;
|
|
18
|
+
exports.AiGatewayUserBudgetUioFromJSON = AiGatewayUserBudgetUioFromJSON;
|
|
19
|
+
exports.AiGatewayUserBudgetUioFromJSONTyped = AiGatewayUserBudgetUioFromJSONTyped;
|
|
20
|
+
exports.AiGatewayUserBudgetUioToJSON = AiGatewayUserBudgetUioToJSON;
|
|
21
|
+
exports.AiGatewayUserBudgetUioToJSONTyped = AiGatewayUserBudgetUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AiGatewayUserBudgetUioPeriodEnum = {
|
|
26
|
+
Day: 'day',
|
|
27
|
+
Month: 'month'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the AiGatewayUserBudgetUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfAiGatewayUserBudgetUio(value) {
|
|
33
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('period' in value) || value['period'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function AiGatewayUserBudgetUioFromJSON(json) {
|
|
42
|
+
return AiGatewayUserBudgetUioFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AiGatewayUserBudgetUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'userId': json['userId'],
|
|
50
|
+
'amount': json['amount'],
|
|
51
|
+
'period': json['period'],
|
|
52
|
+
'used': json['used'] == null ? undefined : json['used'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function AiGatewayUserBudgetUioToJSON(json) {
|
|
56
|
+
return AiGatewayUserBudgetUioToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function AiGatewayUserBudgetUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'userId': value['userId'],
|
|
64
|
+
'amount': value['amount'],
|
|
65
|
+
'period': value['period'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* question, ticket_proposal, review et
|
|
13
|
+
* question, ticket_proposal, review, go_ahead et approval sont des actions (onglet « À traiter ») ; mention a son propre onglet.
|
|
14
14
|
* @export
|
|
15
15
|
*/
|
|
16
16
|
export declare const InboxItemKindUio: {
|
|
@@ -18,6 +18,7 @@ export declare const InboxItemKindUio: {
|
|
|
18
18
|
readonly TicketProposal: "ticket_proposal";
|
|
19
19
|
readonly Review: "review";
|
|
20
20
|
readonly GoAhead: "go_ahead";
|
|
21
|
+
readonly Approval: "approval";
|
|
21
22
|
readonly Mention: "mention";
|
|
22
23
|
};
|
|
23
24
|
export type InboxItemKindUio = typeof InboxItemKindUio[keyof typeof InboxItemKindUio];
|
|
@@ -20,7 +20,7 @@ exports.InboxItemKindUioFromJSONTyped = InboxItemKindUioFromJSONTyped;
|
|
|
20
20
|
exports.InboxItemKindUioToJSON = InboxItemKindUioToJSON;
|
|
21
21
|
exports.InboxItemKindUioToJSONTyped = InboxItemKindUioToJSONTyped;
|
|
22
22
|
/**
|
|
23
|
-
* question, ticket_proposal, review et
|
|
23
|
+
* question, ticket_proposal, review, go_ahead et approval sont des actions (onglet « À traiter ») ; mention a son propre onglet.
|
|
24
24
|
* @export
|
|
25
25
|
*/
|
|
26
26
|
exports.InboxItemKindUio = {
|
|
@@ -28,6 +28,7 @@ exports.InboxItemKindUio = {
|
|
|
28
28
|
TicketProposal: 'ticket_proposal',
|
|
29
29
|
Review: 'review',
|
|
30
30
|
GoAhead: 'go_ahead',
|
|
31
|
+
Approval: 'approval',
|
|
31
32
|
Mention: 'mention'
|
|
32
33
|
};
|
|
33
34
|
function instanceOfInboxItemKindUio(value) {
|
|
@@ -76,7 +76,7 @@ export interface ModelDefinitionUio {
|
|
|
76
76
|
*/
|
|
77
77
|
maxTokens?: number;
|
|
78
78
|
/**
|
|
79
|
-
* Prix d'un million de tokens en entrée. Défini par le superadmin sur un moteur plateforme.
|
|
79
|
+
* Prix d'un million de tokens en entrée. Défini par le superadmin sur un moteur plateforme, ou par l'admin d'organisation sur ses moteurs à clé propre (compté dans les budgets en euros).
|
|
80
80
|
* @type {number}
|
|
81
81
|
* @memberof ModelDefinitionUio
|
|
82
82
|
*/
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
* approve = l'agent peut agir ; changes = il corrige puis redemande (commentaire requis) ; reject = il renonce.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const TicketApprovalDecisionUio: {
|
|
17
|
+
readonly Approve: "approve";
|
|
18
|
+
readonly Changes: "changes";
|
|
19
|
+
readonly Reject: "reject";
|
|
20
|
+
};
|
|
21
|
+
export type TicketApprovalDecisionUio = typeof TicketApprovalDecisionUio[keyof typeof TicketApprovalDecisionUio];
|
|
22
|
+
export declare function instanceOfTicketApprovalDecisionUio(value: any): boolean;
|
|
23
|
+
export declare function TicketApprovalDecisionUioFromJSON(json: any): TicketApprovalDecisionUio;
|
|
24
|
+
export declare function TicketApprovalDecisionUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): TicketApprovalDecisionUio;
|
|
25
|
+
export declare function TicketApprovalDecisionUioToJSON(value?: TicketApprovalDecisionUio | null): any;
|
|
26
|
+
export declare function TicketApprovalDecisionUioToJSONTyped(value: any, ignoreDiscriminator: boolean): TicketApprovalDecisionUio;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.TicketApprovalDecisionUio = void 0;
|
|
17
|
+
exports.instanceOfTicketApprovalDecisionUio = instanceOfTicketApprovalDecisionUio;
|
|
18
|
+
exports.TicketApprovalDecisionUioFromJSON = TicketApprovalDecisionUioFromJSON;
|
|
19
|
+
exports.TicketApprovalDecisionUioFromJSONTyped = TicketApprovalDecisionUioFromJSONTyped;
|
|
20
|
+
exports.TicketApprovalDecisionUioToJSON = TicketApprovalDecisionUioToJSON;
|
|
21
|
+
exports.TicketApprovalDecisionUioToJSONTyped = TicketApprovalDecisionUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* approve = l'agent peut agir ; changes = il corrige puis redemande (commentaire requis) ; reject = il renonce.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.TicketApprovalDecisionUio = {
|
|
27
|
+
Approve: 'approve',
|
|
28
|
+
Changes: 'changes',
|
|
29
|
+
Reject: 'reject'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfTicketApprovalDecisionUio(value) {
|
|
32
|
+
for (const key in exports.TicketApprovalDecisionUio) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.TicketApprovalDecisionUio, key)) {
|
|
34
|
+
if (exports.TicketApprovalDecisionUio[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function TicketApprovalDecisionUioFromJSON(json) {
|
|
42
|
+
return TicketApprovalDecisionUioFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function TicketApprovalDecisionUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function TicketApprovalDecisionUioToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function TicketApprovalDecisionUioToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|