@meeco/svx-api-sdk 1.0.0-stage.20240502114933.d123429 → 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
|
@@ -79,16 +79,17 @@ export class TenantsApi extends runtime.BaseAPI {
|
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
83
|
-
*
|
|
82
|
+
* Create a tenant. In order to execute this action the current user must have security right `atom:global:create_tenant`.
|
|
83
|
+
* Create a tenant
|
|
84
84
|
*/
|
|
85
|
-
|
|
85
|
+
tenantsPostRaw(requestParameters, initOverrides) {
|
|
86
86
|
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
-
if (requestParameters.
|
|
88
|
-
throw new runtime.RequiredError('
|
|
87
|
+
if (requestParameters.aTOMCreateOrUpdateTenantRequest === null || requestParameters.aTOMCreateOrUpdateTenantRequest === undefined) {
|
|
88
|
+
throw new runtime.RequiredError('aTOMCreateOrUpdateTenantRequest', 'Required parameter requestParameters.aTOMCreateOrUpdateTenantRequest was null or undefined when calling tenantsPost.');
|
|
89
89
|
}
|
|
90
90
|
const queryParameters = {};
|
|
91
91
|
const headerParameters = {};
|
|
92
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
92
93
|
if (this.configuration && this.configuration.accessToken) {
|
|
93
94
|
const token = this.configuration.accessToken;
|
|
94
95
|
const tokenString = yield token("SVX-JWT", []);
|
|
@@ -97,34 +98,53 @@ export class TenantsApi extends runtime.BaseAPI {
|
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
100
|
const response = yield this.request({
|
|
100
|
-
path: `/tenants
|
|
101
|
+
path: `/tenants`,
|
|
101
102
|
method: 'POST',
|
|
102
103
|
headers: headerParameters,
|
|
103
104
|
query: queryParameters,
|
|
105
|
+
body: ATOMCreateOrUpdateTenantRequestToJSON(requestParameters.aTOMCreateOrUpdateTenantRequest),
|
|
104
106
|
}, initOverrides);
|
|
105
107
|
return new runtime.JSONApiResponse(response, (jsonValue) => ATOMOneTenantFromJSON(jsonValue));
|
|
106
108
|
});
|
|
107
109
|
}
|
|
108
110
|
/**
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
+
* Create a tenant. In order to execute this action the current user must have security right `atom:global:create_tenant`.
|
|
112
|
+
* Create a tenant
|
|
111
113
|
*/
|
|
112
|
-
|
|
114
|
+
tenantsPost(aTOMCreateOrUpdateTenantRequest, initOverrides) {
|
|
113
115
|
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
-
const response = yield this.
|
|
116
|
+
const response = yield this.tenantsPostRaw({ aTOMCreateOrUpdateTenantRequest: aTOMCreateOrUpdateTenantRequest }, initOverrides);
|
|
115
117
|
return yield response.value();
|
|
116
118
|
});
|
|
117
119
|
}
|
|
118
120
|
/**
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
+
* List admins of a tenant. In order to execute this action the current user must have In order to execute this action the current user must have security right `atom:tenant:list_tenant_admins` for the tenant with the ID in parameter `tenant_id`
|
|
122
|
+
* List admins of a tenant
|
|
121
123
|
*/
|
|
122
|
-
|
|
124
|
+
tenantsTenantIdAdminsGetRaw(requestParameters, initOverrides) {
|
|
123
125
|
return __awaiter(this, void 0, void 0, function* () {
|
|
124
|
-
if (requestParameters.
|
|
125
|
-
throw new runtime.RequiredError('
|
|
126
|
+
if (requestParameters.tenantId === null || requestParameters.tenantId === undefined) {
|
|
127
|
+
throw new runtime.RequiredError('tenantId', 'Required parameter requestParameters.tenantId was null or undefined when calling tenantsTenantIdAdminsGet.');
|
|
126
128
|
}
|
|
127
129
|
const queryParameters = {};
|
|
130
|
+
if (requestParameters.status !== undefined) {
|
|
131
|
+
queryParameters['status'] = requestParameters.status;
|
|
132
|
+
}
|
|
133
|
+
if (requestParameters.email !== undefined) {
|
|
134
|
+
queryParameters['email'] = requestParameters.email;
|
|
135
|
+
}
|
|
136
|
+
if (requestParameters.perPage !== undefined) {
|
|
137
|
+
queryParameters['per_page'] = requestParameters.perPage;
|
|
138
|
+
}
|
|
139
|
+
if (requestParameters.order !== undefined) {
|
|
140
|
+
queryParameters['order'] = requestParameters.order;
|
|
141
|
+
}
|
|
142
|
+
if (requestParameters.page !== undefined) {
|
|
143
|
+
queryParameters['page'] = requestParameters.page;
|
|
144
|
+
}
|
|
145
|
+
if (requestParameters.nextPageAfter !== undefined) {
|
|
146
|
+
queryParameters['next_page_after'] = requestParameters.nextPageAfter;
|
|
147
|
+
}
|
|
128
148
|
const headerParameters = {};
|
|
129
149
|
if (this.configuration && this.configuration.accessToken) {
|
|
130
150
|
const token = this.configuration.accessToken;
|
|
@@ -134,31 +154,35 @@ export class TenantsApi extends runtime.BaseAPI {
|
|
|
134
154
|
}
|
|
135
155
|
}
|
|
136
156
|
const response = yield this.request({
|
|
137
|
-
path: `/tenants/{
|
|
138
|
-
method: '
|
|
157
|
+
path: `/tenants/{tenant_id}/admins`.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters.tenantId))),
|
|
158
|
+
method: 'GET',
|
|
139
159
|
headers: headerParameters,
|
|
140
160
|
query: queryParameters,
|
|
141
161
|
}, initOverrides);
|
|
142
|
-
return new runtime.
|
|
162
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ATOMPaginatedAdminListFromJSON(jsonValue));
|
|
143
163
|
});
|
|
144
164
|
}
|
|
145
165
|
/**
|
|
146
|
-
*
|
|
147
|
-
*
|
|
166
|
+
* List admins of a tenant. In order to execute this action the current user must have In order to execute this action the current user must have security right `atom:tenant:list_tenant_admins` for the tenant with the ID in parameter `tenant_id`
|
|
167
|
+
* List admins of a tenant
|
|
148
168
|
*/
|
|
149
|
-
|
|
169
|
+
tenantsTenantIdAdminsGet(tenantId, status, email, perPage, order, page, nextPageAfter, initOverrides) {
|
|
150
170
|
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
-
yield this.
|
|
171
|
+
const response = yield this.tenantsTenantIdAdminsGetRaw({ tenantId: tenantId, status: status, email: email, perPage: perPage, order: order, page: page, nextPageAfter: nextPageAfter }, initOverrides);
|
|
172
|
+
return yield response.value();
|
|
152
173
|
});
|
|
153
174
|
}
|
|
154
175
|
/**
|
|
155
|
-
*
|
|
156
|
-
*
|
|
176
|
+
* Remove a user from admins of the given tenant, and put the admin into the registry of former admins of that tenant. In order to execute this action the current user must have one of the following security rights: * `atom:global:assign_tenant_sr_to_tenant_admin` * `atom:tenant:assign_tenant_sr_to_tenant_admin`
|
|
177
|
+
* Archive a tenant admin
|
|
157
178
|
*/
|
|
158
|
-
|
|
179
|
+
tenantsTenantIdAdminsTenantAdminIdArchivePostRaw(requestParameters, initOverrides) {
|
|
159
180
|
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
-
if (requestParameters.
|
|
161
|
-
throw new runtime.RequiredError('
|
|
181
|
+
if (requestParameters.tenantId === null || requestParameters.tenantId === undefined) {
|
|
182
|
+
throw new runtime.RequiredError('tenantId', 'Required parameter requestParameters.tenantId was null or undefined when calling tenantsTenantIdAdminsTenantAdminIdArchivePost.');
|
|
183
|
+
}
|
|
184
|
+
if (requestParameters.tenantAdminId === null || requestParameters.tenantAdminId === undefined) {
|
|
185
|
+
throw new runtime.RequiredError('tenantAdminId', 'Required parameter requestParameters.tenantAdminId was null or undefined when calling tenantsTenantIdAdminsTenantAdminIdArchivePost.');
|
|
162
186
|
}
|
|
163
187
|
const queryParameters = {};
|
|
164
188
|
const headerParameters = {};
|
|
@@ -170,8 +194,8 @@ export class TenantsApi extends runtime.BaseAPI {
|
|
|
170
194
|
}
|
|
171
195
|
}
|
|
172
196
|
const response = yield this.request({
|
|
173
|
-
path: `/tenants/{
|
|
174
|
-
method: '
|
|
197
|
+
path: `/tenants/{tenant_id}/admins/{tenant_admin_id}/archive`.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters.tenantId))).replace(`{${"tenant_admin_id"}}`, encodeURIComponent(String(requestParameters.tenantAdminId))),
|
|
198
|
+
method: 'POST',
|
|
175
199
|
headers: headerParameters,
|
|
176
200
|
query: queryParameters,
|
|
177
201
|
}, initOverrides);
|
|
@@ -179,29 +203,28 @@ export class TenantsApi extends runtime.BaseAPI {
|
|
|
179
203
|
});
|
|
180
204
|
}
|
|
181
205
|
/**
|
|
182
|
-
*
|
|
183
|
-
*
|
|
206
|
+
* Remove a user from admins of the given tenant, and put the admin into the registry of former admins of that tenant. In order to execute this action the current user must have one of the following security rights: * `atom:global:assign_tenant_sr_to_tenant_admin` * `atom:tenant:assign_tenant_sr_to_tenant_admin`
|
|
207
|
+
* Archive a tenant admin
|
|
184
208
|
*/
|
|
185
|
-
|
|
209
|
+
tenantsTenantIdAdminsTenantAdminIdArchivePost(tenantId, tenantAdminId, initOverrides) {
|
|
186
210
|
return __awaiter(this, void 0, void 0, function* () {
|
|
187
|
-
yield this.
|
|
211
|
+
yield this.tenantsTenantIdAdminsTenantAdminIdArchivePostRaw({ tenantId: tenantId, tenantAdminId: tenantAdminId }, initOverrides);
|
|
188
212
|
});
|
|
189
213
|
}
|
|
190
214
|
/**
|
|
191
|
-
*
|
|
192
|
-
*
|
|
215
|
+
* Remove tenant admin privileges from a tenant admin. In order to execute this action the current user must have one of the following security rights: * `atom:global:assign_tenant_sr_to_tenant_admin` * `atom:tenant:assign_tenant_sr_to_tenant_admin`
|
|
216
|
+
* Remove a user from tenant admins
|
|
193
217
|
*/
|
|
194
|
-
|
|
218
|
+
tenantsTenantIdAdminsTenantAdminIdDeleteRaw(requestParameters, initOverrides) {
|
|
195
219
|
return __awaiter(this, void 0, void 0, function* () {
|
|
196
|
-
if (requestParameters.
|
|
197
|
-
throw new runtime.RequiredError('
|
|
220
|
+
if (requestParameters.tenantId === null || requestParameters.tenantId === undefined) {
|
|
221
|
+
throw new runtime.RequiredError('tenantId', 'Required parameter requestParameters.tenantId was null or undefined when calling tenantsTenantIdAdminsTenantAdminIdDelete.');
|
|
198
222
|
}
|
|
199
|
-
if (requestParameters.
|
|
200
|
-
throw new runtime.RequiredError('
|
|
223
|
+
if (requestParameters.tenantAdminId === null || requestParameters.tenantAdminId === undefined) {
|
|
224
|
+
throw new runtime.RequiredError('tenantAdminId', 'Required parameter requestParameters.tenantAdminId was null or undefined when calling tenantsTenantIdAdminsTenantAdminIdDelete.');
|
|
201
225
|
}
|
|
202
226
|
const queryParameters = {};
|
|
203
227
|
const headerParameters = {};
|
|
204
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
205
228
|
if (this.configuration && this.configuration.accessToken) {
|
|
206
229
|
const token = this.configuration.accessToken;
|
|
207
230
|
const tokenString = yield token("SVX-JWT", []);
|
|
@@ -210,33 +233,34 @@ export class TenantsApi extends runtime.BaseAPI {
|
|
|
210
233
|
}
|
|
211
234
|
}
|
|
212
235
|
const response = yield this.request({
|
|
213
|
-
path: `/tenants/{
|
|
214
|
-
method: '
|
|
236
|
+
path: `/tenants/{tenant_id}/admins/{tenant_admin_id}`.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters.tenantId))).replace(`{${"tenant_admin_id"}}`, encodeURIComponent(String(requestParameters.tenantAdminId))),
|
|
237
|
+
method: 'DELETE',
|
|
215
238
|
headers: headerParameters,
|
|
216
239
|
query: queryParameters,
|
|
217
|
-
body: ATOMCreateOrUpdateTenantRequestToJSON(requestParameters.aTOMCreateOrUpdateTenantRequest),
|
|
218
240
|
}, initOverrides);
|
|
219
|
-
return new runtime.
|
|
241
|
+
return new runtime.VoidApiResponse(response);
|
|
220
242
|
});
|
|
221
243
|
}
|
|
222
244
|
/**
|
|
223
|
-
*
|
|
224
|
-
*
|
|
245
|
+
* Remove tenant admin privileges from a tenant admin. In order to execute this action the current user must have one of the following security rights: * `atom:global:assign_tenant_sr_to_tenant_admin` * `atom:tenant:assign_tenant_sr_to_tenant_admin`
|
|
246
|
+
* Remove a user from tenant admins
|
|
225
247
|
*/
|
|
226
|
-
|
|
248
|
+
tenantsTenantIdAdminsTenantAdminIdDelete(tenantId, tenantAdminId, initOverrides) {
|
|
227
249
|
return __awaiter(this, void 0, void 0, function* () {
|
|
228
|
-
|
|
229
|
-
return yield response.value();
|
|
250
|
+
yield this.tenantsTenantIdAdminsTenantAdminIdDeleteRaw({ tenantId: tenantId, tenantAdminId: tenantAdminId }, initOverrides);
|
|
230
251
|
});
|
|
231
252
|
}
|
|
232
253
|
/**
|
|
233
|
-
*
|
|
234
|
-
*
|
|
254
|
+
* Show an admin of a given tenant In order to execute this action the current user must have security right `atom:tenant:list_tenant_admins` for the tenant with the ID in parameter `tenant_id`
|
|
255
|
+
* Show an admin of a given tenant
|
|
235
256
|
*/
|
|
236
|
-
|
|
257
|
+
tenantsTenantIdAdminsTenantAdminIdGetRaw(requestParameters, initOverrides) {
|
|
237
258
|
return __awaiter(this, void 0, void 0, function* () {
|
|
238
|
-
if (requestParameters.
|
|
239
|
-
throw new runtime.RequiredError('
|
|
259
|
+
if (requestParameters.tenantId === null || requestParameters.tenantId === undefined) {
|
|
260
|
+
throw new runtime.RequiredError('tenantId', 'Required parameter requestParameters.tenantId was null or undefined when calling tenantsTenantIdAdminsTenantAdminIdGet.');
|
|
261
|
+
}
|
|
262
|
+
if (requestParameters.tenantAdminId === null || requestParameters.tenantAdminId === undefined) {
|
|
263
|
+
throw new runtime.RequiredError('tenantAdminId', 'Required parameter requestParameters.tenantAdminId was null or undefined when calling tenantsTenantIdAdminsTenantAdminIdGet.');
|
|
240
264
|
}
|
|
241
265
|
const queryParameters = {};
|
|
242
266
|
const headerParameters = {};
|
|
@@ -248,36 +272,38 @@ export class TenantsApi extends runtime.BaseAPI {
|
|
|
248
272
|
}
|
|
249
273
|
}
|
|
250
274
|
const response = yield this.request({
|
|
251
|
-
path: `/tenants/{
|
|
252
|
-
method: '
|
|
275
|
+
path: `/tenants/{tenant_id}/admins/{tenant_admin_id}`.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters.tenantId))).replace(`{${"tenant_admin_id"}}`, encodeURIComponent(String(requestParameters.tenantAdminId))),
|
|
276
|
+
method: 'GET',
|
|
253
277
|
headers: headerParameters,
|
|
254
278
|
query: queryParameters,
|
|
255
279
|
}, initOverrides);
|
|
256
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
280
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ATOMAdminFromJSON(jsonValue));
|
|
257
281
|
});
|
|
258
282
|
}
|
|
259
283
|
/**
|
|
260
|
-
*
|
|
261
|
-
*
|
|
284
|
+
* Show an admin of a given tenant In order to execute this action the current user must have security right `atom:tenant:list_tenant_admins` for the tenant with the ID in parameter `tenant_id`
|
|
285
|
+
* Show an admin of a given tenant
|
|
262
286
|
*/
|
|
263
|
-
|
|
287
|
+
tenantsTenantIdAdminsTenantAdminIdGet(tenantId, tenantAdminId, initOverrides) {
|
|
264
288
|
return __awaiter(this, void 0, void 0, function* () {
|
|
265
|
-
const response = yield this.
|
|
289
|
+
const response = yield this.tenantsTenantIdAdminsTenantAdminIdGetRaw({ tenantId: tenantId, tenantAdminId: tenantAdminId }, initOverrides);
|
|
266
290
|
return yield response.value();
|
|
267
291
|
});
|
|
268
292
|
}
|
|
269
293
|
/**
|
|
270
|
-
*
|
|
271
|
-
*
|
|
294
|
+
* Reinstate an archived user and make him/her a tenant admin again. In order to execute this action the current user must have one of the following security rights: * `atom:tenant:assign_tenant_sr_to_tenant_admin` * `atom:global:assign_tenant_sr_to_tenant_admin`
|
|
295
|
+
* Restore an archived tenant admin
|
|
272
296
|
*/
|
|
273
|
-
|
|
297
|
+
tenantsTenantIdAdminsTenantAdminIdRestorePostRaw(requestParameters, initOverrides) {
|
|
274
298
|
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
-
if (requestParameters.
|
|
276
|
-
throw new runtime.RequiredError('
|
|
299
|
+
if (requestParameters.tenantId === null || requestParameters.tenantId === undefined) {
|
|
300
|
+
throw new runtime.RequiredError('tenantId', 'Required parameter requestParameters.tenantId was null or undefined when calling tenantsTenantIdAdminsTenantAdminIdRestorePost.');
|
|
301
|
+
}
|
|
302
|
+
if (requestParameters.tenantAdminId === null || requestParameters.tenantAdminId === undefined) {
|
|
303
|
+
throw new runtime.RequiredError('tenantAdminId', 'Required parameter requestParameters.tenantAdminId was null or undefined when calling tenantsTenantIdAdminsTenantAdminIdRestorePost.');
|
|
277
304
|
}
|
|
278
305
|
const queryParameters = {};
|
|
279
306
|
const headerParameters = {};
|
|
280
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
281
307
|
if (this.configuration && this.configuration.accessToken) {
|
|
282
308
|
const token = this.configuration.accessToken;
|
|
283
309
|
const tokenString = yield token("SVX-JWT", []);
|
|
@@ -286,54 +312,42 @@ export class TenantsApi extends runtime.BaseAPI {
|
|
|
286
312
|
}
|
|
287
313
|
}
|
|
288
314
|
const response = yield this.request({
|
|
289
|
-
path: `/tenants`,
|
|
315
|
+
path: `/tenants/{tenant_id}/admins/{tenant_admin_id}/restore`.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters.tenantId))).replace(`{${"tenant_admin_id"}}`, encodeURIComponent(String(requestParameters.tenantAdminId))),
|
|
290
316
|
method: 'POST',
|
|
291
317
|
headers: headerParameters,
|
|
292
318
|
query: queryParameters,
|
|
293
|
-
body: ATOMCreateOrUpdateTenantRequestToJSON(requestParameters.aTOMCreateOrUpdateTenantRequest),
|
|
294
319
|
}, initOverrides);
|
|
295
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
320
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ATOMAdminFromJSON(jsonValue));
|
|
296
321
|
});
|
|
297
322
|
}
|
|
298
323
|
/**
|
|
299
|
-
*
|
|
300
|
-
*
|
|
324
|
+
* Reinstate an archived user and make him/her a tenant admin again. In order to execute this action the current user must have one of the following security rights: * `atom:tenant:assign_tenant_sr_to_tenant_admin` * `atom:global:assign_tenant_sr_to_tenant_admin`
|
|
325
|
+
* Restore an archived tenant admin
|
|
301
326
|
*/
|
|
302
|
-
|
|
327
|
+
tenantsTenantIdAdminsTenantAdminIdRestorePost(tenantId, tenantAdminId, initOverrides) {
|
|
303
328
|
return __awaiter(this, void 0, void 0, function* () {
|
|
304
|
-
const response = yield this.
|
|
329
|
+
const response = yield this.tenantsTenantIdAdminsTenantAdminIdRestorePostRaw({ tenantId: tenantId, tenantAdminId: tenantAdminId }, initOverrides);
|
|
305
330
|
return yield response.value();
|
|
306
331
|
});
|
|
307
332
|
}
|
|
308
333
|
/**
|
|
309
|
-
*
|
|
310
|
-
*
|
|
334
|
+
* Assign tenant security rights to a user. The user we are assigning security rights to does not need to be known by ATOM. In order to execute this action the current user must have security right `atom:tenant:assign_tenant_sr_to_tenant_admin` for the tenant with the ID in parameter `tenant_id`.
|
|
335
|
+
* Assign tenant security rights to a tenant admin
|
|
311
336
|
*/
|
|
312
|
-
|
|
337
|
+
tenantsTenantIdAdminsTenantAdminIdSecurityRightsPostRaw(requestParameters, initOverrides) {
|
|
313
338
|
return __awaiter(this, void 0, void 0, function* () {
|
|
314
339
|
if (requestParameters.tenantId === null || requestParameters.tenantId === undefined) {
|
|
315
|
-
throw new runtime.RequiredError('tenantId', 'Required parameter requestParameters.tenantId was null or undefined when calling
|
|
316
|
-
}
|
|
317
|
-
const queryParameters = {};
|
|
318
|
-
if (requestParameters.status !== undefined) {
|
|
319
|
-
queryParameters['status'] = requestParameters.status;
|
|
320
|
-
}
|
|
321
|
-
if (requestParameters.email !== undefined) {
|
|
322
|
-
queryParameters['email'] = requestParameters.email;
|
|
323
|
-
}
|
|
324
|
-
if (requestParameters.perPage !== undefined) {
|
|
325
|
-
queryParameters['per_page'] = requestParameters.perPage;
|
|
326
|
-
}
|
|
327
|
-
if (requestParameters.order !== undefined) {
|
|
328
|
-
queryParameters['order'] = requestParameters.order;
|
|
340
|
+
throw new runtime.RequiredError('tenantId', 'Required parameter requestParameters.tenantId was null or undefined when calling tenantsTenantIdAdminsTenantAdminIdSecurityRightsPost.');
|
|
329
341
|
}
|
|
330
|
-
if (requestParameters.
|
|
331
|
-
|
|
342
|
+
if (requestParameters.tenantAdminId === null || requestParameters.tenantAdminId === undefined) {
|
|
343
|
+
throw new runtime.RequiredError('tenantAdminId', 'Required parameter requestParameters.tenantAdminId was null or undefined when calling tenantsTenantIdAdminsTenantAdminIdSecurityRightsPost.');
|
|
332
344
|
}
|
|
333
|
-
if (requestParameters.
|
|
334
|
-
|
|
345
|
+
if (requestParameters.aTOMAssignSecurityRightsRequest === null || requestParameters.aTOMAssignSecurityRightsRequest === undefined) {
|
|
346
|
+
throw new runtime.RequiredError('aTOMAssignSecurityRightsRequest', 'Required parameter requestParameters.aTOMAssignSecurityRightsRequest was null or undefined when calling tenantsTenantIdAdminsTenantAdminIdSecurityRightsPost.');
|
|
335
347
|
}
|
|
348
|
+
const queryParameters = {};
|
|
336
349
|
const headerParameters = {};
|
|
350
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
337
351
|
if (this.configuration && this.configuration.accessToken) {
|
|
338
352
|
const token = this.configuration.accessToken;
|
|
339
353
|
const tokenString = yield token("SVX-JWT", []);
|
|
@@ -342,35 +356,32 @@ export class TenantsApi extends runtime.BaseAPI {
|
|
|
342
356
|
}
|
|
343
357
|
}
|
|
344
358
|
const response = yield this.request({
|
|
345
|
-
path: `/tenants/{tenant_id}/admins`.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters.tenantId))),
|
|
346
|
-
method: '
|
|
359
|
+
path: `/tenants/{tenant_id}/admins/{tenant_admin_id}/security_rights`.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters.tenantId))).replace(`{${"tenant_admin_id"}}`, encodeURIComponent(String(requestParameters.tenantAdminId))),
|
|
360
|
+
method: 'POST',
|
|
347
361
|
headers: headerParameters,
|
|
348
362
|
query: queryParameters,
|
|
363
|
+
body: ATOMAssignSecurityRightsRequestToJSON(requestParameters.aTOMAssignSecurityRightsRequest),
|
|
349
364
|
}, initOverrides);
|
|
350
|
-
return new runtime.
|
|
365
|
+
return new runtime.VoidApiResponse(response);
|
|
351
366
|
});
|
|
352
367
|
}
|
|
353
368
|
/**
|
|
354
|
-
*
|
|
355
|
-
*
|
|
369
|
+
* Assign tenant security rights to a user. The user we are assigning security rights to does not need to be known by ATOM. In order to execute this action the current user must have security right `atom:tenant:assign_tenant_sr_to_tenant_admin` for the tenant with the ID in parameter `tenant_id`.
|
|
370
|
+
* Assign tenant security rights to a tenant admin
|
|
356
371
|
*/
|
|
357
|
-
|
|
372
|
+
tenantsTenantIdAdminsTenantAdminIdSecurityRightsPost(tenantId, tenantAdminId, aTOMAssignSecurityRightsRequest, initOverrides) {
|
|
358
373
|
return __awaiter(this, void 0, void 0, function* () {
|
|
359
|
-
|
|
360
|
-
return yield response.value();
|
|
374
|
+
yield this.tenantsTenantIdAdminsTenantAdminIdSecurityRightsPostRaw({ tenantId: tenantId, tenantAdminId: tenantAdminId, aTOMAssignSecurityRightsRequest: aTOMAssignSecurityRightsRequest }, initOverrides);
|
|
361
375
|
});
|
|
362
376
|
}
|
|
363
377
|
/**
|
|
364
|
-
*
|
|
365
|
-
* Archive a tenant
|
|
378
|
+
* Archive a tenant. In order to execute this action the current user must have security right `atom:global:create_tenant`.
|
|
379
|
+
* Archive a tenant
|
|
366
380
|
*/
|
|
367
|
-
|
|
381
|
+
tenantsTenantIdArchivePostRaw(requestParameters, initOverrides) {
|
|
368
382
|
return __awaiter(this, void 0, void 0, function* () {
|
|
369
383
|
if (requestParameters.tenantId === null || requestParameters.tenantId === undefined) {
|
|
370
|
-
throw new runtime.RequiredError('tenantId', 'Required parameter requestParameters.tenantId was null or undefined when calling
|
|
371
|
-
}
|
|
372
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
373
|
-
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling tenantsTenantIdAdminsIdArchivePost.');
|
|
384
|
+
throw new runtime.RequiredError('tenantId', 'Required parameter requestParameters.tenantId was null or undefined when calling tenantsTenantIdArchivePost.');
|
|
374
385
|
}
|
|
375
386
|
const queryParameters = {};
|
|
376
387
|
const headerParameters = {};
|
|
@@ -382,34 +393,32 @@ export class TenantsApi extends runtime.BaseAPI {
|
|
|
382
393
|
}
|
|
383
394
|
}
|
|
384
395
|
const response = yield this.request({
|
|
385
|
-
path: `/tenants/{tenant_id}/
|
|
396
|
+
path: `/tenants/{tenant_id}/archive`.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters.tenantId))),
|
|
386
397
|
method: 'POST',
|
|
387
398
|
headers: headerParameters,
|
|
388
399
|
query: queryParameters,
|
|
389
400
|
}, initOverrides);
|
|
390
|
-
return new runtime.
|
|
401
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ATOMOneTenantFromJSON(jsonValue));
|
|
391
402
|
});
|
|
392
403
|
}
|
|
393
404
|
/**
|
|
394
|
-
*
|
|
395
|
-
* Archive a tenant
|
|
405
|
+
* Archive a tenant. In order to execute this action the current user must have security right `atom:global:create_tenant`.
|
|
406
|
+
* Archive a tenant
|
|
396
407
|
*/
|
|
397
|
-
|
|
408
|
+
tenantsTenantIdArchivePost(tenantId, initOverrides) {
|
|
398
409
|
return __awaiter(this, void 0, void 0, function* () {
|
|
399
|
-
yield this.
|
|
410
|
+
const response = yield this.tenantsTenantIdArchivePostRaw({ tenantId: tenantId }, initOverrides);
|
|
411
|
+
return yield response.value();
|
|
400
412
|
});
|
|
401
413
|
}
|
|
402
414
|
/**
|
|
403
|
-
*
|
|
404
|
-
*
|
|
415
|
+
* Delete a tenant. In order to execute this action the current user must have security right `atom:global:create_tenant`.
|
|
416
|
+
* Delete a tenant
|
|
405
417
|
*/
|
|
406
|
-
|
|
418
|
+
tenantsTenantIdDeleteRaw(requestParameters, initOverrides) {
|
|
407
419
|
return __awaiter(this, void 0, void 0, function* () {
|
|
408
420
|
if (requestParameters.tenantId === null || requestParameters.tenantId === undefined) {
|
|
409
|
-
throw new runtime.RequiredError('tenantId', 'Required parameter requestParameters.tenantId was null or undefined when calling
|
|
410
|
-
}
|
|
411
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
412
|
-
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling tenantsTenantIdAdminsIdDelete.');
|
|
421
|
+
throw new runtime.RequiredError('tenantId', 'Required parameter requestParameters.tenantId was null or undefined when calling tenantsTenantIdDelete.');
|
|
413
422
|
}
|
|
414
423
|
const queryParameters = {};
|
|
415
424
|
const headerParameters = {};
|
|
@@ -421,7 +430,7 @@ export class TenantsApi extends runtime.BaseAPI {
|
|
|
421
430
|
}
|
|
422
431
|
}
|
|
423
432
|
const response = yield this.request({
|
|
424
|
-
path: `/tenants/{tenant_id}
|
|
433
|
+
path: `/tenants/{tenant_id}`.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters.tenantId))),
|
|
425
434
|
method: 'DELETE',
|
|
426
435
|
headers: headerParameters,
|
|
427
436
|
query: queryParameters,
|
|
@@ -430,25 +439,22 @@ export class TenantsApi extends runtime.BaseAPI {
|
|
|
430
439
|
});
|
|
431
440
|
}
|
|
432
441
|
/**
|
|
433
|
-
*
|
|
434
|
-
*
|
|
442
|
+
* Delete a tenant. In order to execute this action the current user must have security right `atom:global:create_tenant`.
|
|
443
|
+
* Delete a tenant
|
|
435
444
|
*/
|
|
436
|
-
|
|
445
|
+
tenantsTenantIdDelete(tenantId, initOverrides) {
|
|
437
446
|
return __awaiter(this, void 0, void 0, function* () {
|
|
438
|
-
yield this.
|
|
447
|
+
yield this.tenantsTenantIdDeleteRaw({ tenantId: tenantId }, initOverrides);
|
|
439
448
|
});
|
|
440
449
|
}
|
|
441
450
|
/**
|
|
442
|
-
* Show
|
|
443
|
-
* Show
|
|
451
|
+
* Show a tenant. In order to execute this action the current user must have either global security right `atom:global:view_all_tenants` or tenant security right `atom:tenant:view_tenant`.
|
|
452
|
+
* Show a tenant
|
|
444
453
|
*/
|
|
445
|
-
|
|
454
|
+
tenantsTenantIdGetRaw(requestParameters, initOverrides) {
|
|
446
455
|
return __awaiter(this, void 0, void 0, function* () {
|
|
447
456
|
if (requestParameters.tenantId === null || requestParameters.tenantId === undefined) {
|
|
448
|
-
throw new runtime.RequiredError('tenantId', 'Required parameter requestParameters.tenantId was null or undefined when calling
|
|
449
|
-
}
|
|
450
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
451
|
-
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling tenantsTenantIdAdminsIdGet.');
|
|
457
|
+
throw new runtime.RequiredError('tenantId', 'Required parameter requestParameters.tenantId was null or undefined when calling tenantsTenantIdGet.');
|
|
452
458
|
}
|
|
453
459
|
const queryParameters = {};
|
|
454
460
|
const headerParameters = {};
|
|
@@ -460,38 +466,38 @@ export class TenantsApi extends runtime.BaseAPI {
|
|
|
460
466
|
}
|
|
461
467
|
}
|
|
462
468
|
const response = yield this.request({
|
|
463
|
-
path: `/tenants/{tenant_id}
|
|
469
|
+
path: `/tenants/{tenant_id}`.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters.tenantId))),
|
|
464
470
|
method: 'GET',
|
|
465
471
|
headers: headerParameters,
|
|
466
472
|
query: queryParameters,
|
|
467
473
|
}, initOverrides);
|
|
468
|
-
return new runtime.
|
|
474
|
+
return new runtime.VoidApiResponse(response);
|
|
469
475
|
});
|
|
470
476
|
}
|
|
471
477
|
/**
|
|
472
|
-
* Show
|
|
473
|
-
* Show
|
|
478
|
+
* Show a tenant. In order to execute this action the current user must have either global security right `atom:global:view_all_tenants` or tenant security right `atom:tenant:view_tenant`.
|
|
479
|
+
* Show a tenant
|
|
474
480
|
*/
|
|
475
|
-
|
|
481
|
+
tenantsTenantIdGet(tenantId, initOverrides) {
|
|
476
482
|
return __awaiter(this, void 0, void 0, function* () {
|
|
477
|
-
|
|
478
|
-
return yield response.value();
|
|
483
|
+
yield this.tenantsTenantIdGetRaw({ tenantId: tenantId }, initOverrides);
|
|
479
484
|
});
|
|
480
485
|
}
|
|
481
486
|
/**
|
|
482
|
-
*
|
|
483
|
-
*
|
|
487
|
+
* Update a tenant. In order to execute this action the current user must have security right `atom:global:create_tenant`. It is possible to modify 3 fields: * `name` * `logo_url` * `color`
|
|
488
|
+
* Update a tenant
|
|
484
489
|
*/
|
|
485
|
-
|
|
490
|
+
tenantsTenantIdPutRaw(requestParameters, initOverrides) {
|
|
486
491
|
return __awaiter(this, void 0, void 0, function* () {
|
|
487
492
|
if (requestParameters.tenantId === null || requestParameters.tenantId === undefined) {
|
|
488
|
-
throw new runtime.RequiredError('tenantId', 'Required parameter requestParameters.tenantId was null or undefined when calling
|
|
493
|
+
throw new runtime.RequiredError('tenantId', 'Required parameter requestParameters.tenantId was null or undefined when calling tenantsTenantIdPut.');
|
|
489
494
|
}
|
|
490
|
-
if (requestParameters.
|
|
491
|
-
throw new runtime.RequiredError('
|
|
495
|
+
if (requestParameters.aTOMCreateOrUpdateTenantRequest === null || requestParameters.aTOMCreateOrUpdateTenantRequest === undefined) {
|
|
496
|
+
throw new runtime.RequiredError('aTOMCreateOrUpdateTenantRequest', 'Required parameter requestParameters.aTOMCreateOrUpdateTenantRequest was null or undefined when calling tenantsTenantIdPut.');
|
|
492
497
|
}
|
|
493
498
|
const queryParameters = {};
|
|
494
499
|
const headerParameters = {};
|
|
500
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
495
501
|
if (this.configuration && this.configuration.accessToken) {
|
|
496
502
|
const token = this.configuration.accessToken;
|
|
497
503
|
const tokenString = yield token("SVX-JWT", []);
|
|
@@ -500,42 +506,36 @@ export class TenantsApi extends runtime.BaseAPI {
|
|
|
500
506
|
}
|
|
501
507
|
}
|
|
502
508
|
const response = yield this.request({
|
|
503
|
-
path: `/tenants/{tenant_id}
|
|
504
|
-
method: '
|
|
509
|
+
path: `/tenants/{tenant_id}`.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters.tenantId))),
|
|
510
|
+
method: 'PUT',
|
|
505
511
|
headers: headerParameters,
|
|
506
512
|
query: queryParameters,
|
|
513
|
+
body: ATOMCreateOrUpdateTenantRequestToJSON(requestParameters.aTOMCreateOrUpdateTenantRequest),
|
|
507
514
|
}, initOverrides);
|
|
508
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
515
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ATOMOneTenantFromJSON(jsonValue));
|
|
509
516
|
});
|
|
510
517
|
}
|
|
511
518
|
/**
|
|
512
|
-
*
|
|
513
|
-
*
|
|
519
|
+
* Update a tenant. In order to execute this action the current user must have security right `atom:global:create_tenant`. It is possible to modify 3 fields: * `name` * `logo_url` * `color`
|
|
520
|
+
* Update a tenant
|
|
514
521
|
*/
|
|
515
|
-
|
|
522
|
+
tenantsTenantIdPut(tenantId, aTOMCreateOrUpdateTenantRequest, initOverrides) {
|
|
516
523
|
return __awaiter(this, void 0, void 0, function* () {
|
|
517
|
-
const response = yield this.
|
|
524
|
+
const response = yield this.tenantsTenantIdPutRaw({ tenantId: tenantId, aTOMCreateOrUpdateTenantRequest: aTOMCreateOrUpdateTenantRequest }, initOverrides);
|
|
518
525
|
return yield response.value();
|
|
519
526
|
});
|
|
520
527
|
}
|
|
521
528
|
/**
|
|
522
|
-
*
|
|
523
|
-
*
|
|
529
|
+
* Restore a tenant. In order to execute this action the current user must have security right `atom:global:create_tenant`.
|
|
530
|
+
* Restore a tenant
|
|
524
531
|
*/
|
|
525
|
-
|
|
532
|
+
tenantsTenantIdRestorePostRaw(requestParameters, initOverrides) {
|
|
526
533
|
return __awaiter(this, void 0, void 0, function* () {
|
|
527
534
|
if (requestParameters.tenantId === null || requestParameters.tenantId === undefined) {
|
|
528
|
-
throw new runtime.RequiredError('tenantId', 'Required parameter requestParameters.tenantId was null or undefined when calling
|
|
529
|
-
}
|
|
530
|
-
if (requestParameters.tenantAdminId === null || requestParameters.tenantAdminId === undefined) {
|
|
531
|
-
throw new runtime.RequiredError('tenantAdminId', 'Required parameter requestParameters.tenantAdminId was null or undefined when calling tenantsTenantIdAdminsTenantAdminIdSecurityRightsPost.');
|
|
532
|
-
}
|
|
533
|
-
if (requestParameters.aTOMAssignSecurityRightsRequest === null || requestParameters.aTOMAssignSecurityRightsRequest === undefined) {
|
|
534
|
-
throw new runtime.RequiredError('aTOMAssignSecurityRightsRequest', 'Required parameter requestParameters.aTOMAssignSecurityRightsRequest was null or undefined when calling tenantsTenantIdAdminsTenantAdminIdSecurityRightsPost.');
|
|
535
|
+
throw new runtime.RequiredError('tenantId', 'Required parameter requestParameters.tenantId was null or undefined when calling tenantsTenantIdRestorePost.');
|
|
535
536
|
}
|
|
536
537
|
const queryParameters = {};
|
|
537
538
|
const headerParameters = {};
|
|
538
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
539
539
|
if (this.configuration && this.configuration.accessToken) {
|
|
540
540
|
const token = this.configuration.accessToken;
|
|
541
541
|
const tokenString = yield token("SVX-JWT", []);
|
|
@@ -544,22 +544,22 @@ export class TenantsApi extends runtime.BaseAPI {
|
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
546
|
const response = yield this.request({
|
|
547
|
-
path: `/tenants/{tenant_id}/
|
|
547
|
+
path: `/tenants/{tenant_id}/restore`.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters.tenantId))),
|
|
548
548
|
method: 'POST',
|
|
549
549
|
headers: headerParameters,
|
|
550
550
|
query: queryParameters,
|
|
551
|
-
body: ATOMAssignSecurityRightsRequestToJSON(requestParameters.aTOMAssignSecurityRightsRequest),
|
|
552
551
|
}, initOverrides);
|
|
553
|
-
return new runtime.
|
|
552
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ATOMOneTenantFromJSON(jsonValue));
|
|
554
553
|
});
|
|
555
554
|
}
|
|
556
555
|
/**
|
|
557
|
-
*
|
|
558
|
-
*
|
|
556
|
+
* Restore a tenant. In order to execute this action the current user must have security right `atom:global:create_tenant`.
|
|
557
|
+
* Restore a tenant
|
|
559
558
|
*/
|
|
560
|
-
|
|
559
|
+
tenantsTenantIdRestorePost(tenantId, initOverrides) {
|
|
561
560
|
return __awaiter(this, void 0, void 0, function* () {
|
|
562
|
-
yield this.
|
|
561
|
+
const response = yield this.tenantsTenantIdRestorePostRaw({ tenantId: tenantId }, initOverrides);
|
|
562
|
+
return yield response.value();
|
|
563
563
|
});
|
|
564
564
|
}
|
|
565
565
|
/**
|