@meeco/svx-api-sdk 1.0.0-stage.20240430145443.1d5661a → 1.0.0-stage.20240624095554.3e253ce
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/.openapi-generator/FILES +2 -0
- package/lib/esm/apis/ConnectionsApi.js +69 -69
- package/lib/esm/apis/HelpersApi.js +14 -8
- package/lib/esm/apis/ItemsApi.js +24 -24
- package/lib/esm/apis/OrganisationsApi.js +176 -176
- package/lib/esm/apis/SecurityRightsApi.js +80 -80
- package/lib/esm/apis/SharesApi.js +24 -24
- package/lib/esm/apis/TenantsApi.js +174 -174
- package/lib/esm/apis/VerifiableCredentialsApi.js +12 -6
- package/lib/esm/apis/VerifiablePresentationsApi.js +1 -0
- package/lib/esm/models/ATOMBlobInfo.js +8 -0
- package/lib/esm/models/ATOMBlobPublicInfo.js +6 -0
- package/lib/esm/models/ATOMFileStorageBackend.js +45 -0
- package/lib/esm/models/ATOMFileStorageConfiguration.js +46 -0
- package/lib/esm/models/VCCredentialTypeModelDtoSchema.js +6 -0
- package/lib/esm/models/VCCredentialTypeSchemaDto.js +6 -0
- package/lib/esm/models/VCInputDescriptorsDto.js +3 -0
- package/lib/esm/models/VCPresentationDefinitionDto.js +0 -3
- package/lib/esm/models/VCPresentationDefinitionToSchemaModel.js +3 -0
- package/lib/esm/models/VCVerifyPresentationRequestResponseDto.js +3 -2
- package/lib/esm/models/index.js +2 -0
- package/lib/types/apis/ConnectionsApi.d.ts +36 -36
- package/lib/types/apis/HelpersApi.d.ts +8 -7
- package/lib/types/apis/ItemsApi.d.ts +18 -18
- package/lib/types/apis/OrganisationsApi.d.ts +82 -82
- package/lib/types/apis/SecurityRightsApi.d.ts +28 -28
- package/lib/types/apis/SharesApi.d.ts +16 -16
- package/lib/types/apis/TenantsApi.d.ts +82 -82
- package/lib/types/apis/VerifiableCredentialsApi.d.ts +6 -4
- package/lib/types/apis/VerifiablePresentationsApi.d.ts +1 -0
- package/lib/types/models/ATOMBlobInfo.d.ts +18 -0
- package/lib/types/models/ATOMBlobPublicInfo.d.ts +12 -0
- package/lib/types/models/ATOMFileStorageBackend.d.ts +37 -0
- package/lib/types/models/ATOMFileStorageConfiguration.d.ts +38 -0
- package/lib/types/models/VCCredentialTypeModelDtoSchema.d.ts +12 -0
- package/lib/types/models/VCCredentialTypeSchemaDto.d.ts +12 -0
- package/lib/types/models/VCInputDescriptorsDto.d.ts +7 -0
- package/lib/types/models/VCPresentationDefinitionDto.d.ts +0 -7
- package/lib/types/models/VCPresentationDefinitionToSchemaModel.d.ts +6 -0
- package/lib/types/models/VCVerifyPresentationRequestResponseDto.d.ts +7 -1
- package/lib/types/models/index.d.ts +2 -0
- package/lib/umd/apis/ConnectionsApi.js +69 -69
- package/lib/umd/apis/HelpersApi.js +14 -8
- package/lib/umd/apis/ItemsApi.js +24 -24
- package/lib/umd/apis/OrganisationsApi.js +176 -176
- package/lib/umd/apis/SecurityRightsApi.js +80 -80
- package/lib/umd/apis/SharesApi.js +24 -24
- package/lib/umd/apis/TenantsApi.js +174 -174
- package/lib/umd/apis/VerifiableCredentialsApi.js +12 -6
- package/lib/umd/apis/VerifiablePresentationsApi.js +1 -0
- package/lib/umd/models/ATOMBlobInfo.js +8 -0
- package/lib/umd/models/ATOMBlobPublicInfo.js +6 -0
- package/lib/umd/models/ATOMFileStorageBackend.js +52 -0
- package/lib/umd/models/ATOMFileStorageConfiguration.js +53 -0
- package/lib/umd/models/VCCredentialTypeModelDtoSchema.js +6 -0
- package/lib/umd/models/VCCredentialTypeSchemaDto.js +6 -0
- package/lib/umd/models/VCInputDescriptorsDto.js +3 -0
- package/lib/umd/models/VCPresentationDefinitionDto.js +0 -3
- package/lib/umd/models/VCPresentationDefinitionToSchemaModel.js +3 -0
- package/lib/umd/models/VCVerifyPresentationRequestResponseDto.js +3 -2
- package/lib/umd/models/index.js +2 -0
- package/package.json +1 -1
|
@@ -229,15 +229,33 @@ export class OrganisationsApi extends runtime.BaseAPI {
|
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
231
|
/**
|
|
232
|
-
*
|
|
233
|
-
*
|
|
232
|
+
* List admins of an organisation. It is also possible to request a list of archived admins of the organisation, that is, users who used to have organisation security rights for the given organisation, but do not have them now. In order to execute this action the current user must have * security right `atom:org:list_org_admins` for the organisation with the ID in parameter `org_id` or * security right `atom:tenant:list_admins_of_all_orgs_of_tenant` for the parent tenant of the organisation `org_id` or * global security right `atom:global:list_admins_of_all_orgs
|
|
233
|
+
* List admins of an organisation
|
|
234
234
|
*/
|
|
235
|
-
|
|
235
|
+
orgsOrgIdAdminsGetRaw(requestParameters, initOverrides) {
|
|
236
236
|
return __awaiter(this, void 0, void 0, function* () {
|
|
237
|
-
if (requestParameters.
|
|
238
|
-
throw new runtime.RequiredError('
|
|
237
|
+
if (requestParameters.orgId === null || requestParameters.orgId === undefined) {
|
|
238
|
+
throw new runtime.RequiredError('orgId', 'Required parameter requestParameters.orgId was null or undefined when calling orgsOrgIdAdminsGet.');
|
|
239
239
|
}
|
|
240
240
|
const queryParameters = {};
|
|
241
|
+
if (requestParameters.status !== undefined) {
|
|
242
|
+
queryParameters['status'] = requestParameters.status;
|
|
243
|
+
}
|
|
244
|
+
if (requestParameters.email !== undefined) {
|
|
245
|
+
queryParameters['email'] = requestParameters.email;
|
|
246
|
+
}
|
|
247
|
+
if (requestParameters.perPage !== undefined) {
|
|
248
|
+
queryParameters['per_page'] = requestParameters.perPage;
|
|
249
|
+
}
|
|
250
|
+
if (requestParameters.page !== undefined) {
|
|
251
|
+
queryParameters['page'] = requestParameters.page;
|
|
252
|
+
}
|
|
253
|
+
if (requestParameters.order !== undefined) {
|
|
254
|
+
queryParameters['order'] = requestParameters.order;
|
|
255
|
+
}
|
|
256
|
+
if (requestParameters.nextPageAfter !== undefined) {
|
|
257
|
+
queryParameters['next_page_after'] = requestParameters.nextPageAfter;
|
|
258
|
+
}
|
|
241
259
|
const headerParameters = {};
|
|
242
260
|
if (this.configuration && this.configuration.accessToken) {
|
|
243
261
|
const token = this.configuration.accessToken;
|
|
@@ -247,32 +265,35 @@ export class OrganisationsApi extends runtime.BaseAPI {
|
|
|
247
265
|
}
|
|
248
266
|
}
|
|
249
267
|
const response = yield this.request({
|
|
250
|
-
path: `/orgs/{
|
|
251
|
-
method: '
|
|
268
|
+
path: `/orgs/{org_id}/admins`.replace(`{${"org_id"}}`, encodeURIComponent(String(requestParameters.orgId))),
|
|
269
|
+
method: 'GET',
|
|
252
270
|
headers: headerParameters,
|
|
253
271
|
query: queryParameters,
|
|
254
272
|
}, initOverrides);
|
|
255
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
273
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ATOMPaginatedAdminListFromJSON(jsonValue));
|
|
256
274
|
});
|
|
257
275
|
}
|
|
258
276
|
/**
|
|
259
|
-
*
|
|
260
|
-
*
|
|
277
|
+
* List admins of an organisation. It is also possible to request a list of archived admins of the organisation, that is, users who used to have organisation security rights for the given organisation, but do not have them now. In order to execute this action the current user must have * security right `atom:org:list_org_admins` for the organisation with the ID in parameter `org_id` or * security right `atom:tenant:list_admins_of_all_orgs_of_tenant` for the parent tenant of the organisation `org_id` or * global security right `atom:global:list_admins_of_all_orgs
|
|
278
|
+
* List admins of an organisation
|
|
261
279
|
*/
|
|
262
|
-
|
|
280
|
+
orgsOrgIdAdminsGet(orgId, status, email, perPage, page, order, nextPageAfter, initOverrides) {
|
|
263
281
|
return __awaiter(this, void 0, void 0, function* () {
|
|
264
|
-
const response = yield this.
|
|
282
|
+
const response = yield this.orgsOrgIdAdminsGetRaw({ orgId: orgId, status: status, email: email, perPage: perPage, page: page, order: order, nextPageAfter: nextPageAfter }, initOverrides);
|
|
265
283
|
return yield response.value();
|
|
266
284
|
});
|
|
267
285
|
}
|
|
268
286
|
/**
|
|
269
|
-
*
|
|
270
|
-
*
|
|
287
|
+
* Remove a user from admins of the given organisation, and put the admin into the registry of former admins of that organisation. In order to execute this action the current user must one of the following security rights: * `atom:global:assign_org_sr_to_user` * `atom:tenant:assign_org_sr_to_user` * `atom:org:assign_org_sr_to_user`
|
|
288
|
+
* Archive an organisation admin
|
|
271
289
|
*/
|
|
272
|
-
|
|
290
|
+
orgsOrgIdAdminsOrgAdminIdArchivePostRaw(requestParameters, initOverrides) {
|
|
273
291
|
return __awaiter(this, void 0, void 0, function* () {
|
|
274
|
-
if (requestParameters.
|
|
275
|
-
throw new runtime.RequiredError('
|
|
292
|
+
if (requestParameters.orgId === null || requestParameters.orgId === undefined) {
|
|
293
|
+
throw new runtime.RequiredError('orgId', 'Required parameter requestParameters.orgId was null or undefined when calling orgsOrgIdAdminsOrgAdminIdArchivePost.');
|
|
294
|
+
}
|
|
295
|
+
if (requestParameters.orgAdminId === null || requestParameters.orgAdminId === undefined) {
|
|
296
|
+
throw new runtime.RequiredError('orgAdminId', 'Required parameter requestParameters.orgAdminId was null or undefined when calling orgsOrgIdAdminsOrgAdminIdArchivePost.');
|
|
276
297
|
}
|
|
277
298
|
const queryParameters = {};
|
|
278
299
|
const headerParameters = {};
|
|
@@ -284,8 +305,8 @@ export class OrganisationsApi extends runtime.BaseAPI {
|
|
|
284
305
|
}
|
|
285
306
|
}
|
|
286
307
|
const response = yield this.request({
|
|
287
|
-
path: `/orgs/{
|
|
288
|
-
method: '
|
|
308
|
+
path: `/orgs/{org_id}/admins/{org_admin_id}/archive`.replace(`{${"org_id"}}`, encodeURIComponent(String(requestParameters.orgId))).replace(`{${"org_admin_id"}}`, encodeURIComponent(String(requestParameters.orgAdminId))),
|
|
309
|
+
method: 'POST',
|
|
289
310
|
headers: headerParameters,
|
|
290
311
|
query: queryParameters,
|
|
291
312
|
}, initOverrides);
|
|
@@ -293,22 +314,25 @@ export class OrganisationsApi extends runtime.BaseAPI {
|
|
|
293
314
|
});
|
|
294
315
|
}
|
|
295
316
|
/**
|
|
296
|
-
*
|
|
297
|
-
*
|
|
317
|
+
* Remove a user from admins of the given organisation, and put the admin into the registry of former admins of that organisation. In order to execute this action the current user must one of the following security rights: * `atom:global:assign_org_sr_to_user` * `atom:tenant:assign_org_sr_to_user` * `atom:org:assign_org_sr_to_user`
|
|
318
|
+
* Archive an organisation admin
|
|
298
319
|
*/
|
|
299
|
-
|
|
320
|
+
orgsOrgIdAdminsOrgAdminIdArchivePost(orgId, orgAdminId, initOverrides) {
|
|
300
321
|
return __awaiter(this, void 0, void 0, function* () {
|
|
301
|
-
yield this.
|
|
322
|
+
yield this.orgsOrgIdAdminsOrgAdminIdArchivePostRaw({ orgId: orgId, orgAdminId: orgAdminId }, initOverrides);
|
|
302
323
|
});
|
|
303
324
|
}
|
|
304
325
|
/**
|
|
305
|
-
*
|
|
306
|
-
*
|
|
326
|
+
* Remove a user from organisation admins. In order to execute this action the current user must one of the following security rights: * `atom:global:assign_org_sr_to_user` * `atom:tenant:assign_org_sr_to_user` * `atom:org:assign_org_sr_to_user`
|
|
327
|
+
* Remove a user from organisation admins
|
|
307
328
|
*/
|
|
308
|
-
|
|
329
|
+
orgsOrgIdAdminsOrgAdminIdDeleteRaw(requestParameters, initOverrides) {
|
|
309
330
|
return __awaiter(this, void 0, void 0, function* () {
|
|
310
|
-
if (requestParameters.
|
|
311
|
-
throw new runtime.RequiredError('
|
|
331
|
+
if (requestParameters.orgId === null || requestParameters.orgId === undefined) {
|
|
332
|
+
throw new runtime.RequiredError('orgId', 'Required parameter requestParameters.orgId was null or undefined when calling orgsOrgIdAdminsOrgAdminIdDelete.');
|
|
333
|
+
}
|
|
334
|
+
if (requestParameters.orgAdminId === null || requestParameters.orgAdminId === undefined) {
|
|
335
|
+
throw new runtime.RequiredError('orgAdminId', 'Required parameter requestParameters.orgAdminId was null or undefined when calling orgsOrgIdAdminsOrgAdminIdDelete.');
|
|
312
336
|
}
|
|
313
337
|
const queryParameters = {};
|
|
314
338
|
const headerParameters = {};
|
|
@@ -320,39 +344,37 @@ export class OrganisationsApi extends runtime.BaseAPI {
|
|
|
320
344
|
}
|
|
321
345
|
}
|
|
322
346
|
const response = yield this.request({
|
|
323
|
-
path: `/orgs/{
|
|
324
|
-
method: '
|
|
347
|
+
path: `/orgs/{org_id}/admins/{org_admin_id}`.replace(`{${"org_id"}}`, encodeURIComponent(String(requestParameters.orgId))).replace(`{${"org_admin_id"}}`, encodeURIComponent(String(requestParameters.orgAdminId))),
|
|
348
|
+
method: 'DELETE',
|
|
325
349
|
headers: headerParameters,
|
|
326
350
|
query: queryParameters,
|
|
327
351
|
}, initOverrides);
|
|
328
|
-
return new runtime.
|
|
352
|
+
return new runtime.VoidApiResponse(response);
|
|
329
353
|
});
|
|
330
354
|
}
|
|
331
355
|
/**
|
|
332
|
-
*
|
|
333
|
-
*
|
|
356
|
+
* Remove a user from organisation admins. In order to execute this action the current user must one of the following security rights: * `atom:global:assign_org_sr_to_user` * `atom:tenant:assign_org_sr_to_user` * `atom:org:assign_org_sr_to_user`
|
|
357
|
+
* Remove a user from organisation admins
|
|
334
358
|
*/
|
|
335
|
-
|
|
359
|
+
orgsOrgIdAdminsOrgAdminIdDelete(orgId, orgAdminId, initOverrides) {
|
|
336
360
|
return __awaiter(this, void 0, void 0, function* () {
|
|
337
|
-
|
|
338
|
-
return yield response.value();
|
|
361
|
+
yield this.orgsOrgIdAdminsOrgAdminIdDeleteRaw({ orgId: orgId, orgAdminId: orgAdminId }, initOverrides);
|
|
339
362
|
});
|
|
340
363
|
}
|
|
341
364
|
/**
|
|
342
|
-
*
|
|
343
|
-
*
|
|
365
|
+
* Show an admin of a given organisation. In order to execute this action the current user must have * security right `atom:org:list_org_admins` for the organisation with the ID in parameter `org_id` or * security right `atom:tenant:list_admins_of_all_orgs_of_tenant` for the parent tenant of the organisation `org_id` or * global security right `atom:global:list_admins_of_all_orgs
|
|
366
|
+
* Show an admin of a given organisation
|
|
344
367
|
*/
|
|
345
|
-
|
|
368
|
+
orgsOrgIdAdminsOrgAdminIdGetRaw(requestParameters, initOverrides) {
|
|
346
369
|
return __awaiter(this, void 0, void 0, function* () {
|
|
347
|
-
if (requestParameters.
|
|
348
|
-
throw new runtime.RequiredError('
|
|
370
|
+
if (requestParameters.orgId === null || requestParameters.orgId === undefined) {
|
|
371
|
+
throw new runtime.RequiredError('orgId', 'Required parameter requestParameters.orgId was null or undefined when calling orgsOrgIdAdminsOrgAdminIdGet.');
|
|
349
372
|
}
|
|
350
|
-
if (requestParameters.
|
|
351
|
-
throw new runtime.RequiredError('
|
|
373
|
+
if (requestParameters.orgAdminId === null || requestParameters.orgAdminId === undefined) {
|
|
374
|
+
throw new runtime.RequiredError('orgAdminId', 'Required parameter requestParameters.orgAdminId was null or undefined when calling orgsOrgIdAdminsOrgAdminIdGet.');
|
|
352
375
|
}
|
|
353
376
|
const queryParameters = {};
|
|
354
377
|
const headerParameters = {};
|
|
355
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
356
378
|
if (this.configuration && this.configuration.accessToken) {
|
|
357
379
|
const token = this.configuration.accessToken;
|
|
358
380
|
const tokenString = yield token("SVX-JWT", []);
|
|
@@ -361,33 +383,35 @@ export class OrganisationsApi extends runtime.BaseAPI {
|
|
|
361
383
|
}
|
|
362
384
|
}
|
|
363
385
|
const response = yield this.request({
|
|
364
|
-
path: `/orgs/{
|
|
365
|
-
method: '
|
|
386
|
+
path: `/orgs/{org_id}/admins/{org_admin_id}`.replace(`{${"org_id"}}`, encodeURIComponent(String(requestParameters.orgId))).replace(`{${"org_admin_id"}}`, encodeURIComponent(String(requestParameters.orgAdminId))),
|
|
387
|
+
method: 'GET',
|
|
366
388
|
headers: headerParameters,
|
|
367
389
|
query: queryParameters,
|
|
368
|
-
body: ATOMCreateOrUpdateOrgRequestToJSON(requestParameters.aTOMCreateOrUpdateOrgRequest),
|
|
369
390
|
}, initOverrides);
|
|
370
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
391
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ATOMAdminFromJSON(jsonValue));
|
|
371
392
|
});
|
|
372
393
|
}
|
|
373
394
|
/**
|
|
374
|
-
*
|
|
375
|
-
*
|
|
395
|
+
* Show an admin of a given organisation. In order to execute this action the current user must have * security right `atom:org:list_org_admins` for the organisation with the ID in parameter `org_id` or * security right `atom:tenant:list_admins_of_all_orgs_of_tenant` for the parent tenant of the organisation `org_id` or * global security right `atom:global:list_admins_of_all_orgs
|
|
396
|
+
* Show an admin of a given organisation
|
|
376
397
|
*/
|
|
377
|
-
|
|
398
|
+
orgsOrgIdAdminsOrgAdminIdGet(orgId, orgAdminId, initOverrides) {
|
|
378
399
|
return __awaiter(this, void 0, void 0, function* () {
|
|
379
|
-
const response = yield this.
|
|
400
|
+
const response = yield this.orgsOrgIdAdminsOrgAdminIdGetRaw({ orgId: orgId, orgAdminId: orgAdminId }, initOverrides);
|
|
380
401
|
return yield response.value();
|
|
381
402
|
});
|
|
382
403
|
}
|
|
383
404
|
/**
|
|
384
|
-
*
|
|
385
|
-
* Restore an organisation
|
|
405
|
+
* Reinstate an archived user and make him/her a org admin again. In order to execute this action the current user must one of the following security rights: * `atom:org:assign_org_sr_to_user` * `atom:tenant:assign_org_sr_to_user` * `atom:global:assign_org_sr_to_user`
|
|
406
|
+
* Restore an archived organisation admin
|
|
386
407
|
*/
|
|
387
|
-
|
|
408
|
+
orgsOrgIdAdminsOrgAdminIdRestorePostRaw(requestParameters, initOverrides) {
|
|
388
409
|
return __awaiter(this, void 0, void 0, function* () {
|
|
389
|
-
if (requestParameters.
|
|
390
|
-
throw new runtime.RequiredError('
|
|
410
|
+
if (requestParameters.orgId === null || requestParameters.orgId === undefined) {
|
|
411
|
+
throw new runtime.RequiredError('orgId', 'Required parameter requestParameters.orgId was null or undefined when calling orgsOrgIdAdminsOrgAdminIdRestorePost.');
|
|
412
|
+
}
|
|
413
|
+
if (requestParameters.orgAdminId === null || requestParameters.orgAdminId === undefined) {
|
|
414
|
+
throw new runtime.RequiredError('orgAdminId', 'Required parameter requestParameters.orgAdminId was null or undefined when calling orgsOrgIdAdminsOrgAdminIdRestorePost.');
|
|
391
415
|
}
|
|
392
416
|
const queryParameters = {};
|
|
393
417
|
const headerParameters = {};
|
|
@@ -399,52 +423,37 @@ export class OrganisationsApi extends runtime.BaseAPI {
|
|
|
399
423
|
}
|
|
400
424
|
}
|
|
401
425
|
const response = yield this.request({
|
|
402
|
-
path: `/orgs/{
|
|
426
|
+
path: `/orgs/{org_id}/admins/{org_admin_id}/restore`.replace(`{${"org_id"}}`, encodeURIComponent(String(requestParameters.orgId))).replace(`{${"org_admin_id"}}`, encodeURIComponent(String(requestParameters.orgAdminId))),
|
|
403
427
|
method: 'POST',
|
|
404
428
|
headers: headerParameters,
|
|
405
429
|
query: queryParameters,
|
|
406
430
|
}, initOverrides);
|
|
407
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
431
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ATOMAdminFromJSON(jsonValue));
|
|
408
432
|
});
|
|
409
433
|
}
|
|
410
434
|
/**
|
|
411
|
-
*
|
|
412
|
-
* Restore an organisation
|
|
435
|
+
* Reinstate an archived user and make him/her a org admin again. In order to execute this action the current user must one of the following security rights: * `atom:org:assign_org_sr_to_user` * `atom:tenant:assign_org_sr_to_user` * `atom:global:assign_org_sr_to_user`
|
|
436
|
+
* Restore an archived organisation admin
|
|
413
437
|
*/
|
|
414
|
-
|
|
438
|
+
orgsOrgIdAdminsOrgAdminIdRestorePost(orgId, orgAdminId, initOverrides) {
|
|
415
439
|
return __awaiter(this, void 0, void 0, function* () {
|
|
416
|
-
const response = yield this.
|
|
440
|
+
const response = yield this.orgsOrgIdAdminsOrgAdminIdRestorePostRaw({ orgId: orgId, orgAdminId: orgAdminId }, initOverrides);
|
|
417
441
|
return yield response.value();
|
|
418
442
|
});
|
|
419
443
|
}
|
|
420
444
|
/**
|
|
421
|
-
* List
|
|
422
|
-
* List
|
|
445
|
+
* List organisation security rights of a organisation admin. In order to execute this action the current user must have security right `atom:org:list_org_admin_sr` for the organisation with the ID in parameter `org_id` or `atom:tenant:list_org_admin_sr` for the tenant that the organisation belongs to, or global security right `atom:global:list_admin_sr_of_any_admin`\"
|
|
446
|
+
* List security rights of an organisation admin
|
|
423
447
|
*/
|
|
424
|
-
|
|
448
|
+
orgsOrgIdAdminsOrgAdminIdSecurityRightsGetRaw(requestParameters, initOverrides) {
|
|
425
449
|
return __awaiter(this, void 0, void 0, function* () {
|
|
426
450
|
if (requestParameters.orgId === null || requestParameters.orgId === undefined) {
|
|
427
|
-
throw new runtime.RequiredError('orgId', 'Required parameter requestParameters.orgId was null or undefined when calling
|
|
428
|
-
}
|
|
429
|
-
const queryParameters = {};
|
|
430
|
-
if (requestParameters.status !== undefined) {
|
|
431
|
-
queryParameters['status'] = requestParameters.status;
|
|
432
|
-
}
|
|
433
|
-
if (requestParameters.email !== undefined) {
|
|
434
|
-
queryParameters['email'] = requestParameters.email;
|
|
435
|
-
}
|
|
436
|
-
if (requestParameters.perPage !== undefined) {
|
|
437
|
-
queryParameters['per_page'] = requestParameters.perPage;
|
|
438
|
-
}
|
|
439
|
-
if (requestParameters.page !== undefined) {
|
|
440
|
-
queryParameters['page'] = requestParameters.page;
|
|
441
|
-
}
|
|
442
|
-
if (requestParameters.order !== undefined) {
|
|
443
|
-
queryParameters['order'] = requestParameters.order;
|
|
451
|
+
throw new runtime.RequiredError('orgId', 'Required parameter requestParameters.orgId was null or undefined when calling orgsOrgIdAdminsOrgAdminIdSecurityRightsGet.');
|
|
444
452
|
}
|
|
445
|
-
if (requestParameters.
|
|
446
|
-
|
|
453
|
+
if (requestParameters.orgAdminId === null || requestParameters.orgAdminId === undefined) {
|
|
454
|
+
throw new runtime.RequiredError('orgAdminId', 'Required parameter requestParameters.orgAdminId was null or undefined when calling orgsOrgIdAdminsOrgAdminIdSecurityRightsGet.');
|
|
447
455
|
}
|
|
456
|
+
const queryParameters = {};
|
|
448
457
|
const headerParameters = {};
|
|
449
458
|
if (this.configuration && this.configuration.accessToken) {
|
|
450
459
|
const token = this.configuration.accessToken;
|
|
@@ -454,38 +463,42 @@ export class OrganisationsApi extends runtime.BaseAPI {
|
|
|
454
463
|
}
|
|
455
464
|
}
|
|
456
465
|
const response = yield this.request({
|
|
457
|
-
path: `/orgs/{org_id}/admins`.replace(`{${"org_id"}}`, encodeURIComponent(String(requestParameters.orgId))),
|
|
466
|
+
path: `/orgs/{org_id}/admins/{org_admin_id}/security_rights`.replace(`{${"org_id"}}`, encodeURIComponent(String(requestParameters.orgId))).replace(`{${"org_admin_id"}}`, encodeURIComponent(String(requestParameters.orgAdminId))),
|
|
458
467
|
method: 'GET',
|
|
459
468
|
headers: headerParameters,
|
|
460
469
|
query: queryParameters,
|
|
461
470
|
}, initOverrides);
|
|
462
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
471
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ATOMSecurityRightsFromJSON(jsonValue));
|
|
463
472
|
});
|
|
464
473
|
}
|
|
465
474
|
/**
|
|
466
|
-
* List
|
|
467
|
-
* List
|
|
475
|
+
* List organisation security rights of a organisation admin. In order to execute this action the current user must have security right `atom:org:list_org_admin_sr` for the organisation with the ID in parameter `org_id` or `atom:tenant:list_org_admin_sr` for the tenant that the organisation belongs to, or global security right `atom:global:list_admin_sr_of_any_admin`\"
|
|
476
|
+
* List security rights of an organisation admin
|
|
468
477
|
*/
|
|
469
|
-
|
|
478
|
+
orgsOrgIdAdminsOrgAdminIdSecurityRightsGet(orgId, orgAdminId, initOverrides) {
|
|
470
479
|
return __awaiter(this, void 0, void 0, function* () {
|
|
471
|
-
const response = yield this.
|
|
480
|
+
const response = yield this.orgsOrgIdAdminsOrgAdminIdSecurityRightsGetRaw({ orgId: orgId, orgAdminId: orgAdminId }, initOverrides);
|
|
472
481
|
return yield response.value();
|
|
473
482
|
});
|
|
474
483
|
}
|
|
475
484
|
/**
|
|
476
|
-
*
|
|
477
|
-
*
|
|
485
|
+
* Assign organisation security rights to an organisation admin. The endpoint can process security rights of 2 categories: * `for_org = true` and `for_tenant = false` * `for_org = true` and `for_tenant = true`, in this case the security right will be assigned to the tenant which organisation belongs to In order to execute this action the current user must have one of the following security rights: * security right `atom:org:assign_org_sr_to_user` for the organisation with the ID in parameter `org_id` * security right `atom:tenant:assign_org_sr_to_user` for the tenant that the organisation belongs to * global security right `atom:global:assign_org_sr_to_user`\"
|
|
486
|
+
* Assign organisation security rights to an organisation admin
|
|
478
487
|
*/
|
|
479
|
-
|
|
488
|
+
orgsOrgIdAdminsOrgAdminIdSecurityRightsPostRaw(requestParameters, initOverrides) {
|
|
480
489
|
return __awaiter(this, void 0, void 0, function* () {
|
|
481
490
|
if (requestParameters.orgId === null || requestParameters.orgId === undefined) {
|
|
482
|
-
throw new runtime.RequiredError('orgId', 'Required parameter requestParameters.orgId was null or undefined when calling
|
|
491
|
+
throw new runtime.RequiredError('orgId', 'Required parameter requestParameters.orgId was null or undefined when calling orgsOrgIdAdminsOrgAdminIdSecurityRightsPost.');
|
|
483
492
|
}
|
|
484
|
-
if (requestParameters.
|
|
485
|
-
throw new runtime.RequiredError('
|
|
493
|
+
if (requestParameters.orgAdminId === null || requestParameters.orgAdminId === undefined) {
|
|
494
|
+
throw new runtime.RequiredError('orgAdminId', 'Required parameter requestParameters.orgAdminId was null or undefined when calling orgsOrgIdAdminsOrgAdminIdSecurityRightsPost.');
|
|
495
|
+
}
|
|
496
|
+
if (requestParameters.aTOMAssignSecurityRightsRequest === null || requestParameters.aTOMAssignSecurityRightsRequest === undefined) {
|
|
497
|
+
throw new runtime.RequiredError('aTOMAssignSecurityRightsRequest', 'Required parameter requestParameters.aTOMAssignSecurityRightsRequest was null or undefined when calling orgsOrgIdAdminsOrgAdminIdSecurityRightsPost.');
|
|
486
498
|
}
|
|
487
499
|
const queryParameters = {};
|
|
488
500
|
const headerParameters = {};
|
|
501
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
489
502
|
if (this.configuration && this.configuration.accessToken) {
|
|
490
503
|
const token = this.configuration.accessToken;
|
|
491
504
|
const tokenString = yield token("SVX-JWT", []);
|
|
@@ -494,34 +507,32 @@ export class OrganisationsApi extends runtime.BaseAPI {
|
|
|
494
507
|
}
|
|
495
508
|
}
|
|
496
509
|
const response = yield this.request({
|
|
497
|
-
path: `/orgs/{org_id}/admins/{
|
|
510
|
+
path: `/orgs/{org_id}/admins/{org_admin_id}/security_rights`.replace(`{${"org_id"}}`, encodeURIComponent(String(requestParameters.orgId))).replace(`{${"org_admin_id"}}`, encodeURIComponent(String(requestParameters.orgAdminId))),
|
|
498
511
|
method: 'POST',
|
|
499
512
|
headers: headerParameters,
|
|
500
513
|
query: queryParameters,
|
|
514
|
+
body: ATOMAssignSecurityRightsRequestToJSON(requestParameters.aTOMAssignSecurityRightsRequest),
|
|
501
515
|
}, initOverrides);
|
|
502
516
|
return new runtime.VoidApiResponse(response);
|
|
503
517
|
});
|
|
504
518
|
}
|
|
505
519
|
/**
|
|
506
|
-
*
|
|
507
|
-
*
|
|
520
|
+
* Assign organisation security rights to an organisation admin. The endpoint can process security rights of 2 categories: * `for_org = true` and `for_tenant = false` * `for_org = true` and `for_tenant = true`, in this case the security right will be assigned to the tenant which organisation belongs to In order to execute this action the current user must have one of the following security rights: * security right `atom:org:assign_org_sr_to_user` for the organisation with the ID in parameter `org_id` * security right `atom:tenant:assign_org_sr_to_user` for the tenant that the organisation belongs to * global security right `atom:global:assign_org_sr_to_user`\"
|
|
521
|
+
* Assign organisation security rights to an organisation admin
|
|
508
522
|
*/
|
|
509
|
-
|
|
523
|
+
orgsOrgIdAdminsOrgAdminIdSecurityRightsPost(orgId, orgAdminId, aTOMAssignSecurityRightsRequest, initOverrides) {
|
|
510
524
|
return __awaiter(this, void 0, void 0, function* () {
|
|
511
|
-
yield this.
|
|
525
|
+
yield this.orgsOrgIdAdminsOrgAdminIdSecurityRightsPostRaw({ orgId: orgId, orgAdminId: orgAdminId, aTOMAssignSecurityRightsRequest: aTOMAssignSecurityRightsRequest }, initOverrides);
|
|
512
526
|
});
|
|
513
527
|
}
|
|
514
528
|
/**
|
|
515
|
-
*
|
|
516
|
-
*
|
|
529
|
+
* Archive an organisation. In order to execute this action the current user must have security right `atom:tenant:create_org` for the tenant of the organisation.
|
|
530
|
+
* Archive an organisation
|
|
517
531
|
*/
|
|
518
|
-
|
|
532
|
+
orgsOrgIdArchivePostRaw(requestParameters, initOverrides) {
|
|
519
533
|
return __awaiter(this, void 0, void 0, function* () {
|
|
520
534
|
if (requestParameters.orgId === null || requestParameters.orgId === undefined) {
|
|
521
|
-
throw new runtime.RequiredError('orgId', 'Required parameter requestParameters.orgId was null or undefined when calling
|
|
522
|
-
}
|
|
523
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
524
|
-
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling orgsOrgIdAdminsIdDelete.');
|
|
535
|
+
throw new runtime.RequiredError('orgId', 'Required parameter requestParameters.orgId was null or undefined when calling orgsOrgIdArchivePost.');
|
|
525
536
|
}
|
|
526
537
|
const queryParameters = {};
|
|
527
538
|
const headerParameters = {};
|
|
@@ -533,34 +544,32 @@ export class OrganisationsApi extends runtime.BaseAPI {
|
|
|
533
544
|
}
|
|
534
545
|
}
|
|
535
546
|
const response = yield this.request({
|
|
536
|
-
path: `/orgs/{org_id}/
|
|
537
|
-
method: '
|
|
547
|
+
path: `/orgs/{org_id}/archive`.replace(`{${"org_id"}}`, encodeURIComponent(String(requestParameters.orgId))),
|
|
548
|
+
method: 'POST',
|
|
538
549
|
headers: headerParameters,
|
|
539
550
|
query: queryParameters,
|
|
540
551
|
}, initOverrides);
|
|
541
|
-
return new runtime.
|
|
552
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ATOMOneOrgFromJSON(jsonValue));
|
|
542
553
|
});
|
|
543
554
|
}
|
|
544
555
|
/**
|
|
545
|
-
*
|
|
546
|
-
*
|
|
556
|
+
* Archive an organisation. In order to execute this action the current user must have security right `atom:tenant:create_org` for the tenant of the organisation.
|
|
557
|
+
* Archive an organisation
|
|
547
558
|
*/
|
|
548
|
-
|
|
559
|
+
orgsOrgIdArchivePost(orgId, initOverrides) {
|
|
549
560
|
return __awaiter(this, void 0, void 0, function* () {
|
|
550
|
-
yield this.
|
|
561
|
+
const response = yield this.orgsOrgIdArchivePostRaw({ orgId: orgId }, initOverrides);
|
|
562
|
+
return yield response.value();
|
|
551
563
|
});
|
|
552
564
|
}
|
|
553
565
|
/**
|
|
554
|
-
*
|
|
555
|
-
*
|
|
566
|
+
* Delete an organisation. In order to execute this action the current user must have security right `atom:tenant:create_org` for the tenant of the organisation.
|
|
567
|
+
* Delete an organisation
|
|
556
568
|
*/
|
|
557
|
-
|
|
569
|
+
orgsOrgIdDeleteRaw(requestParameters, initOverrides) {
|
|
558
570
|
return __awaiter(this, void 0, void 0, function* () {
|
|
559
571
|
if (requestParameters.orgId === null || requestParameters.orgId === undefined) {
|
|
560
|
-
throw new runtime.RequiredError('orgId', 'Required parameter requestParameters.orgId was null or undefined when calling
|
|
561
|
-
}
|
|
562
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
563
|
-
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling orgsOrgIdAdminsIdGet.');
|
|
572
|
+
throw new runtime.RequiredError('orgId', 'Required parameter requestParameters.orgId was null or undefined when calling orgsOrgIdDelete.');
|
|
564
573
|
}
|
|
565
574
|
const queryParameters = {};
|
|
566
575
|
const headerParameters = {};
|
|
@@ -572,35 +581,31 @@ export class OrganisationsApi extends runtime.BaseAPI {
|
|
|
572
581
|
}
|
|
573
582
|
}
|
|
574
583
|
const response = yield this.request({
|
|
575
|
-
path: `/orgs/{org_id}
|
|
576
|
-
method: '
|
|
584
|
+
path: `/orgs/{org_id}`.replace(`{${"org_id"}}`, encodeURIComponent(String(requestParameters.orgId))),
|
|
585
|
+
method: 'DELETE',
|
|
577
586
|
headers: headerParameters,
|
|
578
587
|
query: queryParameters,
|
|
579
588
|
}, initOverrides);
|
|
580
|
-
return new runtime.
|
|
589
|
+
return new runtime.VoidApiResponse(response);
|
|
581
590
|
});
|
|
582
591
|
}
|
|
583
592
|
/**
|
|
584
|
-
*
|
|
585
|
-
*
|
|
593
|
+
* Delete an organisation. In order to execute this action the current user must have security right `atom:tenant:create_org` for the tenant of the organisation.
|
|
594
|
+
* Delete an organisation
|
|
586
595
|
*/
|
|
587
|
-
|
|
596
|
+
orgsOrgIdDelete(orgId, initOverrides) {
|
|
588
597
|
return __awaiter(this, void 0, void 0, function* () {
|
|
589
|
-
|
|
590
|
-
return yield response.value();
|
|
598
|
+
yield this.orgsOrgIdDeleteRaw({ orgId: orgId }, initOverrides);
|
|
591
599
|
});
|
|
592
600
|
}
|
|
593
601
|
/**
|
|
594
|
-
*
|
|
595
|
-
*
|
|
602
|
+
* Show an organisation. In order to execute this action the current user must have * global security `atom:global:view_all_orgs` or * security right `atom:tenant:view_tenant_orgs` for the tenant * security right `atom:org:view_org` for the org with the ID in parameter `org_id`
|
|
603
|
+
* View an organisation
|
|
596
604
|
*/
|
|
597
|
-
|
|
605
|
+
orgsOrgIdGetRaw(requestParameters, initOverrides) {
|
|
598
606
|
return __awaiter(this, void 0, void 0, function* () {
|
|
599
607
|
if (requestParameters.orgId === null || requestParameters.orgId === undefined) {
|
|
600
|
-
throw new runtime.RequiredError('orgId', 'Required parameter requestParameters.orgId was null or undefined when calling
|
|
601
|
-
}
|
|
602
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
603
|
-
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling orgsOrgIdAdminsIdRestorePost.');
|
|
608
|
+
throw new runtime.RequiredError('orgId', 'Required parameter requestParameters.orgId was null or undefined when calling orgsOrgIdGet.');
|
|
604
609
|
}
|
|
605
610
|
const queryParameters = {};
|
|
606
611
|
const headerParameters = {};
|
|
@@ -612,38 +617,39 @@ export class OrganisationsApi extends runtime.BaseAPI {
|
|
|
612
617
|
}
|
|
613
618
|
}
|
|
614
619
|
const response = yield this.request({
|
|
615
|
-
path: `/orgs/{org_id}
|
|
616
|
-
method: '
|
|
620
|
+
path: `/orgs/{org_id}`.replace(`{${"org_id"}}`, encodeURIComponent(String(requestParameters.orgId))),
|
|
621
|
+
method: 'GET',
|
|
617
622
|
headers: headerParameters,
|
|
618
623
|
query: queryParameters,
|
|
619
624
|
}, initOverrides);
|
|
620
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
625
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ATOMOneOrgFromJSON(jsonValue));
|
|
621
626
|
});
|
|
622
627
|
}
|
|
623
628
|
/**
|
|
624
|
-
*
|
|
625
|
-
*
|
|
629
|
+
* Show an organisation. In order to execute this action the current user must have * global security `atom:global:view_all_orgs` or * security right `atom:tenant:view_tenant_orgs` for the tenant * security right `atom:org:view_org` for the org with the ID in parameter `org_id`
|
|
630
|
+
* View an organisation
|
|
626
631
|
*/
|
|
627
|
-
|
|
632
|
+
orgsOrgIdGet(orgId, initOverrides) {
|
|
628
633
|
return __awaiter(this, void 0, void 0, function* () {
|
|
629
|
-
const response = yield this.
|
|
634
|
+
const response = yield this.orgsOrgIdGetRaw({ orgId: orgId }, initOverrides);
|
|
630
635
|
return yield response.value();
|
|
631
636
|
});
|
|
632
637
|
}
|
|
633
638
|
/**
|
|
634
|
-
*
|
|
635
|
-
*
|
|
639
|
+
* Update an organisation. In order to execute this action the current user must have security right `atom:tenant:create_org` for the tenant with the ID in parameter `tenant_id`.
|
|
640
|
+
* Update an organisation
|
|
636
641
|
*/
|
|
637
|
-
|
|
642
|
+
orgsOrgIdPutRaw(requestParameters, initOverrides) {
|
|
638
643
|
return __awaiter(this, void 0, void 0, function* () {
|
|
639
644
|
if (requestParameters.orgId === null || requestParameters.orgId === undefined) {
|
|
640
|
-
throw new runtime.RequiredError('orgId', 'Required parameter requestParameters.orgId was null or undefined when calling
|
|
645
|
+
throw new runtime.RequiredError('orgId', 'Required parameter requestParameters.orgId was null or undefined when calling orgsOrgIdPut.');
|
|
641
646
|
}
|
|
642
|
-
if (requestParameters.
|
|
643
|
-
throw new runtime.RequiredError('
|
|
647
|
+
if (requestParameters.aTOMCreateOrUpdateOrgRequest === null || requestParameters.aTOMCreateOrUpdateOrgRequest === undefined) {
|
|
648
|
+
throw new runtime.RequiredError('aTOMCreateOrUpdateOrgRequest', 'Required parameter requestParameters.aTOMCreateOrUpdateOrgRequest was null or undefined when calling orgsOrgIdPut.');
|
|
644
649
|
}
|
|
645
650
|
const queryParameters = {};
|
|
646
651
|
const headerParameters = {};
|
|
652
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
647
653
|
if (this.configuration && this.configuration.accessToken) {
|
|
648
654
|
const token = this.configuration.accessToken;
|
|
649
655
|
const tokenString = yield token("SVX-JWT", []);
|
|
@@ -652,42 +658,36 @@ export class OrganisationsApi extends runtime.BaseAPI {
|
|
|
652
658
|
}
|
|
653
659
|
}
|
|
654
660
|
const response = yield this.request({
|
|
655
|
-
path: `/orgs/{org_id}
|
|
656
|
-
method: '
|
|
661
|
+
path: `/orgs/{org_id}`.replace(`{${"org_id"}}`, encodeURIComponent(String(requestParameters.orgId))),
|
|
662
|
+
method: 'PUT',
|
|
657
663
|
headers: headerParameters,
|
|
658
664
|
query: queryParameters,
|
|
665
|
+
body: ATOMCreateOrUpdateOrgRequestToJSON(requestParameters.aTOMCreateOrUpdateOrgRequest),
|
|
659
666
|
}, initOverrides);
|
|
660
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
667
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ATOMOneOrgFromJSON(jsonValue));
|
|
661
668
|
});
|
|
662
669
|
}
|
|
663
670
|
/**
|
|
664
|
-
*
|
|
665
|
-
*
|
|
671
|
+
* Update an organisation. In order to execute this action the current user must have security right `atom:tenant:create_org` for the tenant with the ID in parameter `tenant_id`.
|
|
672
|
+
* Update an organisation
|
|
666
673
|
*/
|
|
667
|
-
|
|
674
|
+
orgsOrgIdPut(orgId, aTOMCreateOrUpdateOrgRequest, initOverrides) {
|
|
668
675
|
return __awaiter(this, void 0, void 0, function* () {
|
|
669
|
-
const response = yield this.
|
|
676
|
+
const response = yield this.orgsOrgIdPutRaw({ orgId: orgId, aTOMCreateOrUpdateOrgRequest: aTOMCreateOrUpdateOrgRequest }, initOverrides);
|
|
670
677
|
return yield response.value();
|
|
671
678
|
});
|
|
672
679
|
}
|
|
673
680
|
/**
|
|
674
|
-
*
|
|
675
|
-
*
|
|
681
|
+
* Restore an organisation. In order to execute this action the current user must have security right `atom:tenant:create_org` for the tenant of the organisation.
|
|
682
|
+
* Restore an organisation
|
|
676
683
|
*/
|
|
677
|
-
|
|
684
|
+
orgsOrgIdRestorePostRaw(requestParameters, initOverrides) {
|
|
678
685
|
return __awaiter(this, void 0, void 0, function* () {
|
|
679
686
|
if (requestParameters.orgId === null || requestParameters.orgId === undefined) {
|
|
680
|
-
throw new runtime.RequiredError('orgId', 'Required parameter requestParameters.orgId was null or undefined when calling
|
|
681
|
-
}
|
|
682
|
-
if (requestParameters.orgAdminId === null || requestParameters.orgAdminId === undefined) {
|
|
683
|
-
throw new runtime.RequiredError('orgAdminId', 'Required parameter requestParameters.orgAdminId was null or undefined when calling orgsOrgIdAdminsOrgAdminIdSecurityRightsPost.');
|
|
684
|
-
}
|
|
685
|
-
if (requestParameters.aTOMAssignSecurityRightsRequest === null || requestParameters.aTOMAssignSecurityRightsRequest === undefined) {
|
|
686
|
-
throw new runtime.RequiredError('aTOMAssignSecurityRightsRequest', 'Required parameter requestParameters.aTOMAssignSecurityRightsRequest was null or undefined when calling orgsOrgIdAdminsOrgAdminIdSecurityRightsPost.');
|
|
687
|
+
throw new runtime.RequiredError('orgId', 'Required parameter requestParameters.orgId was null or undefined when calling orgsOrgIdRestorePost.');
|
|
687
688
|
}
|
|
688
689
|
const queryParameters = {};
|
|
689
690
|
const headerParameters = {};
|
|
690
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
691
691
|
if (this.configuration && this.configuration.accessToken) {
|
|
692
692
|
const token = this.configuration.accessToken;
|
|
693
693
|
const tokenString = yield token("SVX-JWT", []);
|
|
@@ -696,22 +696,22 @@ export class OrganisationsApi extends runtime.BaseAPI {
|
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
698
|
const response = yield this.request({
|
|
699
|
-
path: `/orgs/{org_id}/
|
|
699
|
+
path: `/orgs/{org_id}/restore`.replace(`{${"org_id"}}`, encodeURIComponent(String(requestParameters.orgId))),
|
|
700
700
|
method: 'POST',
|
|
701
701
|
headers: headerParameters,
|
|
702
702
|
query: queryParameters,
|
|
703
|
-
body: ATOMAssignSecurityRightsRequestToJSON(requestParameters.aTOMAssignSecurityRightsRequest),
|
|
704
703
|
}, initOverrides);
|
|
705
|
-
return new runtime.
|
|
704
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ATOMOneOrgFromJSON(jsonValue));
|
|
706
705
|
});
|
|
707
706
|
}
|
|
708
707
|
/**
|
|
709
|
-
*
|
|
710
|
-
*
|
|
708
|
+
* Restore an organisation. In order to execute this action the current user must have security right `atom:tenant:create_org` for the tenant of the organisation.
|
|
709
|
+
* Restore an organisation
|
|
711
710
|
*/
|
|
712
|
-
|
|
711
|
+
orgsOrgIdRestorePost(orgId, initOverrides) {
|
|
713
712
|
return __awaiter(this, void 0, void 0, function* () {
|
|
714
|
-
yield this.
|
|
713
|
+
const response = yield this.orgsOrgIdRestorePostRaw({ orgId: orgId }, initOverrides);
|
|
714
|
+
return yield response.value();
|
|
715
715
|
});
|
|
716
716
|
}
|
|
717
717
|
/**
|