@breign/client 1.0.180 → 1.0.182
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 +33 -10
- package/dist/apis/AdminApi.js +70 -15
- package/dist/apis/EngineApi.d.ts +29 -1
- package/dist/apis/EngineApi.js +66 -0
- package/dist/apis/SupportApi.d.ts +59 -0
- package/dist/apis/SupportApi.js +154 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/ModelUserAccessUio.d.ts +50 -0
- package/dist/models/ModelUserAccessUio.js +62 -0
- package/dist/models/OrganisationPlatformEngineUsageModelsInnerUio.d.ts +56 -0
- package/dist/models/OrganisationPlatformEngineUsageModelsInnerUio.js +66 -0
- package/dist/models/OrganisationPlatformEngineUsageUio.d.ts +7 -0
- package/dist/models/OrganisationPlatformEngineUsageUio.js +5 -0
- package/dist/models/OrganizationModelAccessUio.d.ts +33 -0
- package/dist/models/OrganizationModelAccessUio.js +51 -0
- package/dist/models/OrganizationUio.d.ts +0 -6
- package/dist/models/OrganizationUio.js +0 -2
- package/dist/models/PlatformEngineAccessModelsInnerUio.d.ts +38 -0
- package/dist/models/PlatformEngineAccessModelsInnerUio.js +54 -0
- package/dist/models/PlatformEngineAccessUio.d.ts +33 -0
- package/dist/models/PlatformEngineAccessUio.js +51 -0
- package/dist/models/SetModelUserAccessUio.d.ts +44 -0
- package/dist/models/SetModelUserAccessUio.js +58 -0
- package/dist/models/SupportRequestAcceptedUio.d.ts +38 -0
- package/dist/models/SupportRequestAcceptedUio.js +54 -0
- package/dist/models/SupportRequestAttachmentUio.d.ts +44 -0
- package/dist/models/SupportRequestAttachmentUio.js +58 -0
- package/dist/models/SupportRequestCreateUio.d.ts +85 -0
- package/dist/models/SupportRequestCreateUio.js +90 -0
- package/dist/models/SupportSettingsUio.d.ts +44 -0
- package/dist/models/SupportSettingsUio.js +58 -0
- package/dist/models/index.d.ts +10 -1
- package/dist/models/index.js +10 -1
- package/dist/openapi.json +517 -57
- package/package.json +1 -1
- package/dist/models/AllowPlatformEnginesUio.d.ts +0 -32
- package/dist/models/AllowPlatformEnginesUio.js +0 -50
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,
|
|
13
|
+
import type { AiGatewayInternalSettingsSummaryUio, BodyWithMessageUio, DeletePlatformEngineResponseUio, ModelUio, OrganisationPlatformEngineUsageUio, OrganizationUio, PlatformEngineAccessUio, PlatformEngineUsageUio, ProviderCreateRequestUio, ProviderUio, ToolPresetCreateRequestUio, ToolPresetDeleteAllResponseUio, ToolPresetImportRequestUio, ToolPresetImportResponseUio, ToolPresetPageUio, ToolPresetUio, ToolPresetUpdateRequestUio } from '../models/index';
|
|
14
14
|
export interface CreateAdminToolPresetRequest {
|
|
15
15
|
toolPresetCreateRequestUio: ToolPresetCreateRequestUio;
|
|
16
16
|
}
|
|
@@ -32,6 +32,9 @@ export interface GetAdminToolPresetsRequest {
|
|
|
32
32
|
export interface GetOrganisationPlatformEngineUsageRequest {
|
|
33
33
|
orgId: string;
|
|
34
34
|
}
|
|
35
|
+
export interface GetPlatformEngineAccessRequest {
|
|
36
|
+
id: string;
|
|
37
|
+
}
|
|
35
38
|
export interface GetPlatformEngineUsageRequest {
|
|
36
39
|
id: string;
|
|
37
40
|
}
|
|
@@ -41,9 +44,9 @@ export interface ImportAdminToolPresetsRequest {
|
|
|
41
44
|
export interface ListPlatformEngineAvailableModelsRequest {
|
|
42
45
|
id: string;
|
|
43
46
|
}
|
|
44
|
-
export interface
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
export interface SetPlatformEngineAccessRequest {
|
|
48
|
+
id: string;
|
|
49
|
+
platformEngineAccessUio: PlatformEngineAccessUio;
|
|
47
50
|
}
|
|
48
51
|
export interface UpdateAdminToolPresetRequest {
|
|
49
52
|
toolPresetId: string;
|
|
@@ -131,6 +134,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
131
134
|
* Get organisation platform engine usage
|
|
132
135
|
*/
|
|
133
136
|
getOrganisationPlatformEngineUsage(orgId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganisationPlatformEngineUsageUio>;
|
|
137
|
+
/**
|
|
138
|
+
* Superadmin. Organisations qui ont accès à chaque modèle du moteur plateforme.
|
|
139
|
+
* Get platform engine access
|
|
140
|
+
*/
|
|
141
|
+
getPlatformEngineAccessRaw(requestParameters: GetPlatformEngineAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlatformEngineAccessUio>>;
|
|
142
|
+
/**
|
|
143
|
+
* Superadmin. Organisations qui ont accès à chaque modèle du moteur plateforme.
|
|
144
|
+
* Get platform engine access
|
|
145
|
+
*/
|
|
146
|
+
getPlatformEngineAccess(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlatformEngineAccessUio>;
|
|
134
147
|
/**
|
|
135
148
|
* Superadmin. Ce qui casse si l\'on supprime ce moteur ou l\'un de ses modèles.
|
|
136
149
|
* Get platform engine usage
|
|
@@ -151,6 +164,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
151
164
|
* Import tool presets
|
|
152
165
|
*/
|
|
153
166
|
importAdminToolPresets(toolPresetImportRequestUio: ToolPresetImportRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ToolPresetImportResponseUio>;
|
|
167
|
+
/**
|
|
168
|
+
* Superadmin. Toutes les organisations de la plateforme, avec leurs membres.
|
|
169
|
+
* List all organisations
|
|
170
|
+
*/
|
|
171
|
+
listAdminOrganisationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<OrganizationUio>>>;
|
|
172
|
+
/**
|
|
173
|
+
* Superadmin. Toutes les organisations de la plateforme, avec leurs membres.
|
|
174
|
+
* List all organisations
|
|
175
|
+
*/
|
|
176
|
+
listAdminOrganisations(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<OrganizationUio>>;
|
|
154
177
|
/**
|
|
155
178
|
* Superadmin. Plafonds des modèles Breign de toutes les organisations, en une requête ; une organisation absente n\'en a aucun. `maxQuotaRatio` est l\'usage du quota le plus entamé sur sa période en cours (null sans quota).
|
|
156
179
|
* List Breign model limit settings of every organisation
|
|
@@ -182,15 +205,15 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
182
205
|
*/
|
|
183
206
|
listPlatformEngines(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProviderUio>>;
|
|
184
207
|
/**
|
|
185
|
-
* Superadmin.
|
|
186
|
-
*
|
|
208
|
+
* Superadmin. Remplace, pour chaque modèle listé, les organisations qui y ont accès. Les modèles absents du corps gardent leurs organisations.
|
|
209
|
+
* Set platform engine access
|
|
187
210
|
*/
|
|
188
|
-
|
|
211
|
+
setPlatformEngineAccessRaw(requestParameters: SetPlatformEngineAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlatformEngineAccessUio>>;
|
|
189
212
|
/**
|
|
190
|
-
* Superadmin.
|
|
191
|
-
*
|
|
213
|
+
* Superadmin. Remplace, pour chaque modèle listé, les organisations qui y ont accès. Les modèles absents du corps gardent leurs organisations.
|
|
214
|
+
* Set platform engine access
|
|
192
215
|
*/
|
|
193
|
-
|
|
216
|
+
setPlatformEngineAccess(id: string, platformEngineAccessUio: PlatformEngineAccessUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlatformEngineAccessUio>;
|
|
194
217
|
/**
|
|
195
218
|
* Partial update — only the provided properties are modified
|
|
196
219
|
* Update a tool preset
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -285,6 +285,35 @@ class AdminApi extends runtime.BaseAPI {
|
|
|
285
285
|
const response = await this.getOrganisationPlatformEngineUsageRaw({ orgId: orgId }, initOverrides);
|
|
286
286
|
return await response.value();
|
|
287
287
|
}
|
|
288
|
+
/**
|
|
289
|
+
* Superadmin. Organisations qui ont accès à chaque modèle du moteur plateforme.
|
|
290
|
+
* Get platform engine access
|
|
291
|
+
*/
|
|
292
|
+
async getPlatformEngineAccessRaw(requestParameters, initOverrides) {
|
|
293
|
+
if (requestParameters['id'] == null) {
|
|
294
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getPlatformEngineAccess().');
|
|
295
|
+
}
|
|
296
|
+
const queryParameters = {};
|
|
297
|
+
const headerParameters = {};
|
|
298
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
299
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
300
|
+
}
|
|
301
|
+
const response = await this.request({
|
|
302
|
+
path: `/admin/platform-engines/{id}/access`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
303
|
+
method: 'GET',
|
|
304
|
+
headers: headerParameters,
|
|
305
|
+
query: queryParameters,
|
|
306
|
+
}, initOverrides);
|
|
307
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PlatformEngineAccessUioFromJSON)(jsonValue));
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Superadmin. Organisations qui ont accès à chaque modèle du moteur plateforme.
|
|
311
|
+
* Get platform engine access
|
|
312
|
+
*/
|
|
313
|
+
async getPlatformEngineAccess(id, initOverrides) {
|
|
314
|
+
const response = await this.getPlatformEngineAccessRaw({ id: id }, initOverrides);
|
|
315
|
+
return await response.value();
|
|
316
|
+
}
|
|
288
317
|
/**
|
|
289
318
|
* Superadmin. Ce qui casse si l\'on supprime ce moteur ou l\'un de ses modèles.
|
|
290
319
|
* Get platform engine usage
|
|
@@ -345,6 +374,32 @@ class AdminApi extends runtime.BaseAPI {
|
|
|
345
374
|
const response = await this.importAdminToolPresetsRaw({ toolPresetImportRequestUio: toolPresetImportRequestUio }, initOverrides);
|
|
346
375
|
return await response.value();
|
|
347
376
|
}
|
|
377
|
+
/**
|
|
378
|
+
* Superadmin. Toutes les organisations de la plateforme, avec leurs membres.
|
|
379
|
+
* List all organisations
|
|
380
|
+
*/
|
|
381
|
+
async listAdminOrganisationsRaw(initOverrides) {
|
|
382
|
+
const queryParameters = {};
|
|
383
|
+
const headerParameters = {};
|
|
384
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
385
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
386
|
+
}
|
|
387
|
+
const response = await this.request({
|
|
388
|
+
path: `/admin/organisations`,
|
|
389
|
+
method: 'GET',
|
|
390
|
+
headers: headerParameters,
|
|
391
|
+
query: queryParameters,
|
|
392
|
+
}, initOverrides);
|
|
393
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.OrganizationUioFromJSON));
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* Superadmin. Toutes les organisations de la plateforme, avec leurs membres.
|
|
397
|
+
* List all organisations
|
|
398
|
+
*/
|
|
399
|
+
async listAdminOrganisations(initOverrides) {
|
|
400
|
+
const response = await this.listAdminOrganisationsRaw(initOverrides);
|
|
401
|
+
return await response.value();
|
|
402
|
+
}
|
|
348
403
|
/**
|
|
349
404
|
* Superadmin. Plafonds des modèles Breign de toutes les organisations, en une requête ; une organisation absente n\'en a aucun. `maxQuotaRatio` est l\'usage du quota le plus entamé sur sa période en cours (null sans quota).
|
|
350
405
|
* List Breign model limit settings of every organisation
|
|
@@ -427,15 +482,15 @@ class AdminApi extends runtime.BaseAPI {
|
|
|
427
482
|
return await response.value();
|
|
428
483
|
}
|
|
429
484
|
/**
|
|
430
|
-
* Superadmin.
|
|
431
|
-
*
|
|
485
|
+
* Superadmin. Remplace, pour chaque modèle listé, les organisations qui y ont accès. Les modèles absents du corps gardent leurs organisations.
|
|
486
|
+
* Set platform engine access
|
|
432
487
|
*/
|
|
433
|
-
async
|
|
434
|
-
if (requestParameters['
|
|
435
|
-
throw new runtime.RequiredError('
|
|
488
|
+
async setPlatformEngineAccessRaw(requestParameters, initOverrides) {
|
|
489
|
+
if (requestParameters['id'] == null) {
|
|
490
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling setPlatformEngineAccess().');
|
|
436
491
|
}
|
|
437
|
-
if (requestParameters['
|
|
438
|
-
throw new runtime.RequiredError('
|
|
492
|
+
if (requestParameters['platformEngineAccessUio'] == null) {
|
|
493
|
+
throw new runtime.RequiredError('platformEngineAccessUio', 'Required parameter "platformEngineAccessUio" was null or undefined when calling setPlatformEngineAccess().');
|
|
439
494
|
}
|
|
440
495
|
const queryParameters = {};
|
|
441
496
|
const headerParameters = {};
|
|
@@ -444,20 +499,20 @@ class AdminApi extends runtime.BaseAPI {
|
|
|
444
499
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
445
500
|
}
|
|
446
501
|
const response = await this.request({
|
|
447
|
-
path: `/admin/
|
|
448
|
-
method: '
|
|
502
|
+
path: `/admin/platform-engines/{id}/access`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
503
|
+
method: 'PUT',
|
|
449
504
|
headers: headerParameters,
|
|
450
505
|
query: queryParameters,
|
|
451
|
-
body: (0, index_1.
|
|
506
|
+
body: (0, index_1.PlatformEngineAccessUioToJSON)(requestParameters['platformEngineAccessUio']),
|
|
452
507
|
}, initOverrides);
|
|
453
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
508
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PlatformEngineAccessUioFromJSON)(jsonValue));
|
|
454
509
|
}
|
|
455
510
|
/**
|
|
456
|
-
* Superadmin.
|
|
457
|
-
*
|
|
511
|
+
* Superadmin. Remplace, pour chaque modèle listé, les organisations qui y ont accès. Les modèles absents du corps gardent leurs organisations.
|
|
512
|
+
* Set platform engine access
|
|
458
513
|
*/
|
|
459
|
-
async
|
|
460
|
-
const response = await this.
|
|
514
|
+
async setPlatformEngineAccess(id, platformEngineAccessUio, initOverrides) {
|
|
515
|
+
const response = await this.setPlatformEngineAccessRaw({ id: id, platformEngineAccessUio: platformEngineAccessUio }, initOverrides);
|
|
461
516
|
return await response.value();
|
|
462
517
|
}
|
|
463
518
|
/**
|
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, ProviderCreateRequestUio, ProviderUio, ProviderValiationRequestUio } from '../models/index';
|
|
13
|
+
import type { BodyWithMessageUio, DefaultEngineRequestUio, DeleteProvider200ResponseUio, EmbeddingProviderUio, ModelUio, ModelUserAccessUio, OrganizationModelAccessUio, ProviderCreateRequestUio, ProviderUio, ProviderValiationRequestUio, SetModelUserAccessUio } from '../models/index';
|
|
14
14
|
export interface CreateProviderRequest {
|
|
15
15
|
organizationId: string;
|
|
16
16
|
providerCreateRequestUio: ProviderCreateRequestUio;
|
|
@@ -23,12 +23,20 @@ export interface GetEngineProvidersWithEmbeddingRequest {
|
|
|
23
23
|
organizationId: string;
|
|
24
24
|
requiredModelId?: string;
|
|
25
25
|
}
|
|
26
|
+
export interface GetOrganizationModelAccessRequest {
|
|
27
|
+
organizationId: string;
|
|
28
|
+
}
|
|
26
29
|
export interface GetProviderRequest {
|
|
27
30
|
providerId: string;
|
|
28
31
|
}
|
|
29
32
|
export interface GetProvidersRequest {
|
|
30
33
|
organizationId: string;
|
|
31
34
|
}
|
|
35
|
+
export interface SetModelUserAccessRequest {
|
|
36
|
+
organizationId: string;
|
|
37
|
+
providerId: string;
|
|
38
|
+
setModelUserAccessUio: SetModelUserAccessUio;
|
|
39
|
+
}
|
|
32
40
|
export interface UpdateDefaultEngineRequest {
|
|
33
41
|
defaultEngineRequestUio: DefaultEngineRequestUio;
|
|
34
42
|
}
|
|
@@ -76,6 +84,16 @@ export declare class EngineApi extends runtime.BaseAPI {
|
|
|
76
84
|
* Get engine providers with embedding support
|
|
77
85
|
*/
|
|
78
86
|
getEngineProvidersWithEmbedding(organizationId: string, requiredModelId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<EmbeddingProviderUio>>;
|
|
87
|
+
/**
|
|
88
|
+
* Admin de l\'organisation. Modèles réservés à certains membres.
|
|
89
|
+
* List model user restrictions of an organization
|
|
90
|
+
*/
|
|
91
|
+
getOrganizationModelAccessRaw(requestParameters: GetOrganizationModelAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationModelAccessUio>>;
|
|
92
|
+
/**
|
|
93
|
+
* Admin de l\'organisation. Modèles réservés à certains membres.
|
|
94
|
+
* List model user restrictions of an organization
|
|
95
|
+
*/
|
|
96
|
+
getOrganizationModelAccess(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationModelAccessUio>;
|
|
79
97
|
/**
|
|
80
98
|
* Get a provider by id
|
|
81
99
|
* Get a provider
|
|
@@ -96,6 +114,16 @@ export declare class EngineApi extends runtime.BaseAPI {
|
|
|
96
114
|
* Get providers for an organization
|
|
97
115
|
*/
|
|
98
116
|
getProviders(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProviderUio>>;
|
|
117
|
+
/**
|
|
118
|
+
* Admin de l\'organisation. Réserve un modèle (de l\'organisation ou plateforme ouvert à l\'organisation) à certains membres, ou le rouvre à tous avec `restrictToUsers: false`.
|
|
119
|
+
* Restrict a model to some members
|
|
120
|
+
*/
|
|
121
|
+
setModelUserAccessRaw(requestParameters: SetModelUserAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ModelUserAccessUio>>;
|
|
122
|
+
/**
|
|
123
|
+
* Admin de l\'organisation. Réserve un modèle (de l\'organisation ou plateforme ouvert à l\'organisation) à certains membres, ou le rouvre à tous avec `restrictToUsers: false`.
|
|
124
|
+
* Restrict a model to some members
|
|
125
|
+
*/
|
|
126
|
+
setModelUserAccess(organizationId: string, providerId: string, setModelUserAccessUio: SetModelUserAccessUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ModelUserAccessUio>;
|
|
99
127
|
/**
|
|
100
128
|
* Update the default engine for an organization
|
|
101
129
|
* Update the default engine for an organization
|
package/dist/apis/EngineApi.js
CHANGED
|
@@ -154,6 +154,35 @@ class EngineApi extends runtime.BaseAPI {
|
|
|
154
154
|
const response = await this.getEngineProvidersWithEmbeddingRaw({ organizationId: organizationId, requiredModelId: requiredModelId }, initOverrides);
|
|
155
155
|
return await response.value();
|
|
156
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* Admin de l\'organisation. Modèles réservés à certains membres.
|
|
159
|
+
* List model user restrictions of an organization
|
|
160
|
+
*/
|
|
161
|
+
async getOrganizationModelAccessRaw(requestParameters, initOverrides) {
|
|
162
|
+
if (requestParameters['organizationId'] == null) {
|
|
163
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getOrganizationModelAccess().');
|
|
164
|
+
}
|
|
165
|
+
const queryParameters = {};
|
|
166
|
+
const headerParameters = {};
|
|
167
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
168
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
169
|
+
}
|
|
170
|
+
const response = await this.request({
|
|
171
|
+
path: `/organizations/{organizationId}/engines/access`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
172
|
+
method: 'GET',
|
|
173
|
+
headers: headerParameters,
|
|
174
|
+
query: queryParameters,
|
|
175
|
+
}, initOverrides);
|
|
176
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationModelAccessUioFromJSON)(jsonValue));
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Admin de l\'organisation. Modèles réservés à certains membres.
|
|
180
|
+
* List model user restrictions of an organization
|
|
181
|
+
*/
|
|
182
|
+
async getOrganizationModelAccess(organizationId, initOverrides) {
|
|
183
|
+
const response = await this.getOrganizationModelAccessRaw({ organizationId: organizationId }, initOverrides);
|
|
184
|
+
return await response.value();
|
|
185
|
+
}
|
|
157
186
|
/**
|
|
158
187
|
* Get a provider by id
|
|
159
188
|
* Get a provider
|
|
@@ -212,6 +241,43 @@ class EngineApi extends runtime.BaseAPI {
|
|
|
212
241
|
const response = await this.getProvidersRaw({ organizationId: organizationId }, initOverrides);
|
|
213
242
|
return await response.value();
|
|
214
243
|
}
|
|
244
|
+
/**
|
|
245
|
+
* Admin de l\'organisation. Réserve un modèle (de l\'organisation ou plateforme ouvert à l\'organisation) à certains membres, ou le rouvre à tous avec `restrictToUsers: false`.
|
|
246
|
+
* Restrict a model to some members
|
|
247
|
+
*/
|
|
248
|
+
async setModelUserAccessRaw(requestParameters, initOverrides) {
|
|
249
|
+
if (requestParameters['organizationId'] == null) {
|
|
250
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling setModelUserAccess().');
|
|
251
|
+
}
|
|
252
|
+
if (requestParameters['providerId'] == null) {
|
|
253
|
+
throw new runtime.RequiredError('providerId', 'Required parameter "providerId" was null or undefined when calling setModelUserAccess().');
|
|
254
|
+
}
|
|
255
|
+
if (requestParameters['setModelUserAccessUio'] == null) {
|
|
256
|
+
throw new runtime.RequiredError('setModelUserAccessUio', 'Required parameter "setModelUserAccessUio" was null or undefined when calling setModelUserAccess().');
|
|
257
|
+
}
|
|
258
|
+
const queryParameters = {};
|
|
259
|
+
const headerParameters = {};
|
|
260
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
261
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
262
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
263
|
+
}
|
|
264
|
+
const response = await this.request({
|
|
265
|
+
path: `/organizations/{organizationId}/engines/providers/{providerId}/access`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"providerId"}}`, encodeURIComponent(String(requestParameters['providerId']))),
|
|
266
|
+
method: 'PUT',
|
|
267
|
+
headers: headerParameters,
|
|
268
|
+
query: queryParameters,
|
|
269
|
+
body: (0, index_1.SetModelUserAccessUioToJSON)(requestParameters['setModelUserAccessUio']),
|
|
270
|
+
}, initOverrides);
|
|
271
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ModelUserAccessUioFromJSON)(jsonValue));
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Admin de l\'organisation. Réserve un modèle (de l\'organisation ou plateforme ouvert à l\'organisation) à certains membres, ou le rouvre à tous avec `restrictToUsers: false`.
|
|
275
|
+
* Restrict a model to some members
|
|
276
|
+
*/
|
|
277
|
+
async setModelUserAccess(organizationId, providerId, setModelUserAccessUio, initOverrides) {
|
|
278
|
+
const response = await this.setModelUserAccessRaw({ organizationId: organizationId, providerId: providerId, setModelUserAccessUio: setModelUserAccessUio }, initOverrides);
|
|
279
|
+
return await response.value();
|
|
280
|
+
}
|
|
215
281
|
/**
|
|
216
282
|
* Update the default engine for an organization
|
|
217
283
|
* Update the default engine for an organization
|
|
@@ -0,0 +1,59 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { SupportRequestAcceptedUio, SupportRequestCreateUio, SupportSettingsUio } from '../models/index';
|
|
14
|
+
export interface CreateOrganizationSupportRequestRequest {
|
|
15
|
+
organizationId: string;
|
|
16
|
+
supportRequestCreateUio: SupportRequestCreateUio;
|
|
17
|
+
}
|
|
18
|
+
export interface GetOrganizationSupportSettingsRequest {
|
|
19
|
+
organizationId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface UpdateOrganizationSupportSettingsRequest {
|
|
22
|
+
organizationId: string;
|
|
23
|
+
supportSettingsUio: SupportSettingsUio;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class SupportApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Au nom de l\'utilisateur connecté, membre de l\'organisation : la demande, avec son identité et son organisation, est mise en file sur l\'automatisation du formulaire, comme un appel de son webhook.
|
|
31
|
+
* Send a support request from the support page form
|
|
32
|
+
*/
|
|
33
|
+
createOrganizationSupportRequestRaw(requestParameters: CreateOrganizationSupportRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupportRequestAcceptedUio>>;
|
|
34
|
+
/**
|
|
35
|
+
* Au nom de l\'utilisateur connecté, membre de l\'organisation : la demande, avec son identité et son organisation, est mise en file sur l\'automatisation du formulaire, comme un appel de son webhook.
|
|
36
|
+
* Send a support request from the support page form
|
|
37
|
+
*/
|
|
38
|
+
createOrganizationSupportRequest(organizationId: string, supportRequestCreateUio: SupportRequestCreateUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupportRequestAcceptedUio>;
|
|
39
|
+
/**
|
|
40
|
+
* Lisibles par les membres de l\'organisation, pour afficher la page Support.
|
|
41
|
+
* Get the support page settings of an organization
|
|
42
|
+
*/
|
|
43
|
+
getOrganizationSupportSettingsRaw(requestParameters: GetOrganizationSupportSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupportSettingsUio>>;
|
|
44
|
+
/**
|
|
45
|
+
* Lisibles par les membres de l\'organisation, pour afficher la page Support.
|
|
46
|
+
* Get the support page settings of an organization
|
|
47
|
+
*/
|
|
48
|
+
getOrganizationSupportSettings(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupportSettingsUio>;
|
|
49
|
+
/**
|
|
50
|
+
* Réservé aux superadmins.
|
|
51
|
+
* Update the support page settings of an organization
|
|
52
|
+
*/
|
|
53
|
+
updateOrganizationSupportSettingsRaw(requestParameters: UpdateOrganizationSupportSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupportSettingsUio>>;
|
|
54
|
+
/**
|
|
55
|
+
* Réservé aux superadmins.
|
|
56
|
+
* Update the support page settings of an organization
|
|
57
|
+
*/
|
|
58
|
+
updateOrganizationSupportSettings(organizationId: string, supportSettingsUio: SupportSettingsUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupportSettingsUio>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.SupportApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class SupportApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Au nom de l\'utilisateur connecté, membre de l\'organisation : la demande, avec son identité et son organisation, est mise en file sur l\'automatisation du formulaire, comme un appel de son webhook.
|
|
58
|
+
* Send a support request from the support page form
|
|
59
|
+
*/
|
|
60
|
+
async createOrganizationSupportRequestRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['organizationId'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling createOrganizationSupportRequest().');
|
|
63
|
+
}
|
|
64
|
+
if (requestParameters['supportRequestCreateUio'] == null) {
|
|
65
|
+
throw new runtime.RequiredError('supportRequestCreateUio', 'Required parameter "supportRequestCreateUio" was null or undefined when calling createOrganizationSupportRequest().');
|
|
66
|
+
}
|
|
67
|
+
const queryParameters = {};
|
|
68
|
+
const headerParameters = {};
|
|
69
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
70
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
71
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
72
|
+
}
|
|
73
|
+
const response = await this.request({
|
|
74
|
+
path: `/organizations/{organizationId}/support-requests`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
75
|
+
method: 'POST',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
body: (0, index_1.SupportRequestCreateUioToJSON)(requestParameters['supportRequestCreateUio']),
|
|
79
|
+
}, initOverrides);
|
|
80
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SupportRequestAcceptedUioFromJSON)(jsonValue));
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Au nom de l\'utilisateur connecté, membre de l\'organisation : la demande, avec son identité et son organisation, est mise en file sur l\'automatisation du formulaire, comme un appel de son webhook.
|
|
84
|
+
* Send a support request from the support page form
|
|
85
|
+
*/
|
|
86
|
+
async createOrganizationSupportRequest(organizationId, supportRequestCreateUio, initOverrides) {
|
|
87
|
+
const response = await this.createOrganizationSupportRequestRaw({ organizationId: organizationId, supportRequestCreateUio: supportRequestCreateUio }, initOverrides);
|
|
88
|
+
return await response.value();
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Lisibles par les membres de l\'organisation, pour afficher la page Support.
|
|
92
|
+
* Get the support page settings of an organization
|
|
93
|
+
*/
|
|
94
|
+
async getOrganizationSupportSettingsRaw(requestParameters, initOverrides) {
|
|
95
|
+
if (requestParameters['organizationId'] == null) {
|
|
96
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getOrganizationSupportSettings().');
|
|
97
|
+
}
|
|
98
|
+
const queryParameters = {};
|
|
99
|
+
const headerParameters = {};
|
|
100
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
101
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
102
|
+
}
|
|
103
|
+
const response = await this.request({
|
|
104
|
+
path: `/organizations/{organizationId}/support-settings`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
105
|
+
method: 'GET',
|
|
106
|
+
headers: headerParameters,
|
|
107
|
+
query: queryParameters,
|
|
108
|
+
}, initOverrides);
|
|
109
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SupportSettingsUioFromJSON)(jsonValue));
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Lisibles par les membres de l\'organisation, pour afficher la page Support.
|
|
113
|
+
* Get the support page settings of an organization
|
|
114
|
+
*/
|
|
115
|
+
async getOrganizationSupportSettings(organizationId, initOverrides) {
|
|
116
|
+
const response = await this.getOrganizationSupportSettingsRaw({ organizationId: organizationId }, initOverrides);
|
|
117
|
+
return await response.value();
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Réservé aux superadmins.
|
|
121
|
+
* Update the support page settings of an organization
|
|
122
|
+
*/
|
|
123
|
+
async updateOrganizationSupportSettingsRaw(requestParameters, initOverrides) {
|
|
124
|
+
if (requestParameters['organizationId'] == null) {
|
|
125
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling updateOrganizationSupportSettings().');
|
|
126
|
+
}
|
|
127
|
+
if (requestParameters['supportSettingsUio'] == null) {
|
|
128
|
+
throw new runtime.RequiredError('supportSettingsUio', 'Required parameter "supportSettingsUio" was null or undefined when calling updateOrganizationSupportSettings().');
|
|
129
|
+
}
|
|
130
|
+
const queryParameters = {};
|
|
131
|
+
const headerParameters = {};
|
|
132
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
133
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
134
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
135
|
+
}
|
|
136
|
+
const response = await this.request({
|
|
137
|
+
path: `/organizations/{organizationId}/support-settings`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
138
|
+
method: 'PUT',
|
|
139
|
+
headers: headerParameters,
|
|
140
|
+
query: queryParameters,
|
|
141
|
+
body: (0, index_1.SupportSettingsUioToJSON)(requestParameters['supportSettingsUio']),
|
|
142
|
+
}, initOverrides);
|
|
143
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SupportSettingsUioFromJSON)(jsonValue));
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Réservé aux superadmins.
|
|
147
|
+
* Update the support page settings of an organization
|
|
148
|
+
*/
|
|
149
|
+
async updateOrganizationSupportSettings(organizationId, supportSettingsUio, initOverrides) {
|
|
150
|
+
const response = await this.updateOrganizationSupportSettingsRaw({ organizationId: organizationId, supportSettingsUio: supportSettingsUio }, initOverrides);
|
|
151
|
+
return await response.value();
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
exports.SupportApi = SupportApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from './PromptsApi';
|
|
|
27
27
|
export * from './RemotesApi';
|
|
28
28
|
export * from './ScheduledTasksApi';
|
|
29
29
|
export * from './SkillsApi';
|
|
30
|
+
export * from './SupportApi';
|
|
30
31
|
export * from './TicketsApi';
|
|
31
32
|
export * from './ToolsApi';
|
|
32
33
|
export * from './UsersApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -45,6 +45,7 @@ __exportStar(require("./PromptsApi"), exports);
|
|
|
45
45
|
__exportStar(require("./RemotesApi"), exports);
|
|
46
46
|
__exportStar(require("./ScheduledTasksApi"), exports);
|
|
47
47
|
__exportStar(require("./SkillsApi"), exports);
|
|
48
|
+
__exportStar(require("./SupportApi"), exports);
|
|
48
49
|
__exportStar(require("./TicketsApi"), exports);
|
|
49
50
|
__exportStar(require("./ToolsApi"), exports);
|
|
50
51
|
__exportStar(require("./UsersApi"), exports);
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
* Restriction d'un modèle à certains membres d'une organisation.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ModelUserAccessUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ModelUserAccessUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ModelUserAccessUio
|
|
22
|
+
*/
|
|
23
|
+
providerId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ModelUserAccessUio
|
|
28
|
+
*/
|
|
29
|
+
modelId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Vrai ⇒ seuls `userIds` et les admins de l'organisation peuvent utiliser le modèle.
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ModelUserAccessUio
|
|
34
|
+
*/
|
|
35
|
+
restrictToUsers: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof ModelUserAccessUio
|
|
40
|
+
*/
|
|
41
|
+
userIds: Array<string>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ModelUserAccessUio interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfModelUserAccessUio(value: object): value is ModelUserAccessUio;
|
|
47
|
+
export declare function ModelUserAccessUioFromJSON(json: any): ModelUserAccessUio;
|
|
48
|
+
export declare function ModelUserAccessUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelUserAccessUio;
|
|
49
|
+
export declare function ModelUserAccessUioToJSON(json: any): ModelUserAccessUio;
|
|
50
|
+
export declare function ModelUserAccessUioToJSONTyped(value?: ModelUserAccessUio | null, ignoreDiscriminator?: boolean): any;
|