@emilgroup/tenant-sdk 1.42.1-beta.140 → 1.42.1-beta.142
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 +3 -0
- package/README.md +2 -2
- package/api/custom-schema-api.ts +32 -12
- package/api/dashboard-api.ts +96 -36
- package/api/dashboard-group-api.ts +40 -15
- package/api/data-report-api.ts +32 -12
- package/api/data-report-executor-api.ts +8 -3
- package/api/delete-organization-invitations-api.ts +8 -3
- package/api/health-check-api.ts +1 -1
- package/api/invitation-controller-rest-api.ts +32 -12
- package/api/invite-organizations-api.ts +8 -3
- package/api/invite-users-api.ts +32 -12
- package/api/list-organization-invitations-api.ts +8 -3
- package/api/organization-migration-api.ts +40 -15
- package/api/organizations-api.ts +24 -9
- package/api/re-invite-an-organization-api.ts +8 -3
- package/api/report-schedule-api.ts +40 -15
- package/api/report-schedule-logs-api.ts +8 -3
- package/api/roles-api.ts +8 -3
- package/api/settings-api.ts +32 -12
- package/api/ssoconnection-api.ts +168 -21
- package/api/ssoid-pgroups-api.ts +48 -18
- package/api/user-controller-rest-api.ts +108 -49
- package/api/user-group-api.ts +64 -24
- package/api/users-api.ts +76 -37
- package/base.ts +239 -43
- package/common.ts +3 -2
- package/configuration.ts +20 -0
- package/dist/api/custom-schema-api.d.ts +4 -4
- package/dist/api/custom-schema-api.js +52 -30
- package/dist/api/dashboard-api.d.ts +12 -12
- package/dist/api/dashboard-api.js +176 -95
- package/dist/api/dashboard-group-api.d.ts +5 -5
- package/dist/api/dashboard-group-api.js +71 -39
- package/dist/api/data-report-api.d.ts +4 -4
- package/dist/api/data-report-api.js +52 -30
- package/dist/api/data-report-executor-api.d.ts +1 -1
- package/dist/api/data-report-executor-api.js +15 -8
- package/dist/api/delete-organization-invitations-api.d.ts +1 -1
- package/dist/api/delete-organization-invitations-api.js +15 -8
- package/dist/api/health-check-api.d.ts +1 -1
- package/dist/api/health-check-api.js +1 -1
- package/dist/api/invitation-controller-rest-api.d.ts +4 -4
- package/dist/api/invitation-controller-rest-api.js +56 -31
- package/dist/api/invite-organizations-api.d.ts +1 -1
- package/dist/api/invite-organizations-api.js +15 -8
- package/dist/api/invite-users-api.d.ts +4 -4
- package/dist/api/invite-users-api.js +56 -31
- package/dist/api/list-organization-invitations-api.d.ts +1 -1
- package/dist/api/list-organization-invitations-api.js +11 -7
- package/dist/api/organization-migration-api.d.ts +5 -5
- package/dist/api/organization-migration-api.js +67 -38
- package/dist/api/organizations-api.d.ts +3 -3
- package/dist/api/organizations-api.js +41 -23
- package/dist/api/re-invite-an-organization-api.d.ts +1 -1
- package/dist/api/re-invite-an-organization-api.js +15 -8
- package/dist/api/report-schedule-api.d.ts +5 -5
- package/dist/api/report-schedule-api.js +67 -38
- package/dist/api/report-schedule-logs-api.d.ts +1 -1
- package/dist/api/report-schedule-logs-api.js +11 -7
- package/dist/api/roles-api.d.ts +1 -1
- package/dist/api/roles-api.js +11 -7
- package/dist/api/settings-api.d.ts +4 -4
- package/dist/api/settings-api.js +52 -30
- package/dist/api/ssoconnection-api.d.ts +64 -7
- package/dist/api/ssoconnection-api.js +205 -56
- package/dist/api/ssoid-pgroups-api.d.ts +6 -6
- package/dist/api/ssoid-pgroups-api.js +86 -47
- package/dist/api/user-controller-rest-api.d.ts +31 -27
- package/dist/api/user-controller-rest-api.js +171 -99
- package/dist/api/user-group-api.d.ts +8 -8
- package/dist/api/user-group-api.js +112 -62
- package/dist/api/users-api.d.ts +27 -23
- package/dist/api/users-api.js +115 -68
- package/dist/base.d.ts +26 -0
- package/dist/base.js +243 -60
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/dist/models/create-admin-tenant-request-dto.d.ts +11 -0
- package/dist/models/create-admin-tenant-request-dto.js +5 -0
- package/dist/models/create-sso-connection-request-dto.d.ts +1 -0
- package/dist/models/create-sso-connection-request-dto.js +2 -1
- package/dist/models/create-tenant-request-dto.d.ts +11 -0
- package/dist/models/create-tenant-request-dto.js +5 -0
- package/dist/models/dbconfig-dto.d.ts +6 -0
- package/dist/models/delete-tenant-request-dto.d.ts +30 -0
- package/dist/models/delete-tenant-request-dto.js +15 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/sso-connection-class.d.ts +1 -0
- package/dist/models/sso-connection-class.js +2 -1
- package/dist/models/validate-sso-idp-url-request-dto.d.ts +35 -0
- package/dist/models/validate-sso-idp-url-request-dto.js +20 -0
- package/dist/models/validate-sso-idp-url-response-class.d.ts +24 -0
- package/dist/models/validate-sso-idp-url-response-class.js +15 -0
- package/models/create-admin-tenant-request-dto.ts +14 -0
- package/models/create-sso-connection-request-dto.ts +2 -1
- package/models/create-tenant-request-dto.ts +14 -0
- package/models/dbconfig-dto.ts +6 -0
- package/models/delete-tenant-request-dto.ts +36 -0
- package/models/index.ts +3 -0
- package/models/sso-connection-class.ts +2 -1
- package/models/validate-sso-idp-url-request-dto.ts +44 -0
- package/models/validate-sso-idp-url-response-class.ts +30 -0
- package/package.json +2 -2
package/api/ssoconnection-api.ts
CHANGED
|
@@ -38,6 +38,10 @@ import { UpdateSsoConnectionResponseClass } from '../models';
|
|
|
38
38
|
import { UpdateSsoConnectionStatusBodyDto } from '../models';
|
|
39
39
|
// @ts-ignore
|
|
40
40
|
import { UpdateSsoConnectionStatusResponseClass } from '../models';
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
import { ValidateSsoIdpUrlRequestDto } from '../models';
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
import { ValidateSsoIdpUrlResponseClass } from '../models';
|
|
41
45
|
/**
|
|
42
46
|
* SSOConnectionApi - axios parameter creator
|
|
43
47
|
* @export
|
|
@@ -73,8 +77,13 @@ export const SSOConnectionApiAxiosParamCreator = function (configuration?: Confi
|
|
|
73
77
|
// http bearer authentication required
|
|
74
78
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
75
79
|
|
|
76
|
-
|
|
77
|
-
|
|
80
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
81
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
82
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
83
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
84
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
85
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
86
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
78
87
|
}
|
|
79
88
|
|
|
80
89
|
|
|
@@ -121,8 +130,13 @@ export const SSOConnectionApiAxiosParamCreator = function (configuration?: Confi
|
|
|
121
130
|
// http bearer authentication required
|
|
122
131
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
123
132
|
|
|
124
|
-
|
|
125
|
-
|
|
133
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
134
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
135
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
136
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
137
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
138
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
139
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
126
140
|
}
|
|
127
141
|
|
|
128
142
|
|
|
@@ -162,8 +176,13 @@ export const SSOConnectionApiAxiosParamCreator = function (configuration?: Confi
|
|
|
162
176
|
// http bearer authentication required
|
|
163
177
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
164
178
|
|
|
165
|
-
|
|
166
|
-
|
|
179
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
180
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
181
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
182
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
183
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
184
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
185
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
167
186
|
}
|
|
168
187
|
|
|
169
188
|
|
|
@@ -207,8 +226,13 @@ export const SSOConnectionApiAxiosParamCreator = function (configuration?: Confi
|
|
|
207
226
|
// http bearer authentication required
|
|
208
227
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
209
228
|
|
|
210
|
-
|
|
211
|
-
|
|
229
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
230
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
231
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
232
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
233
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
234
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
235
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
212
236
|
}
|
|
213
237
|
|
|
214
238
|
|
|
@@ -248,8 +272,13 @@ export const SSOConnectionApiAxiosParamCreator = function (configuration?: Confi
|
|
|
248
272
|
// http bearer authentication required
|
|
249
273
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
250
274
|
|
|
251
|
-
|
|
252
|
-
|
|
275
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
276
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
277
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
278
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
279
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
280
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
281
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
253
282
|
}
|
|
254
283
|
|
|
255
284
|
|
|
@@ -296,8 +325,13 @@ export const SSOConnectionApiAxiosParamCreator = function (configuration?: Confi
|
|
|
296
325
|
// http bearer authentication required
|
|
297
326
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
298
327
|
|
|
299
|
-
|
|
300
|
-
|
|
328
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
329
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
330
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
331
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
332
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
333
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
334
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
301
335
|
}
|
|
302
336
|
|
|
303
337
|
|
|
@@ -347,8 +381,13 @@ export const SSOConnectionApiAxiosParamCreator = function (configuration?: Confi
|
|
|
347
381
|
// http bearer authentication required
|
|
348
382
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
349
383
|
|
|
350
|
-
|
|
351
|
-
|
|
384
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
385
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
386
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
387
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
388
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
389
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
390
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
352
391
|
}
|
|
353
392
|
|
|
354
393
|
|
|
@@ -360,6 +399,58 @@ export const SSOConnectionApiAxiosParamCreator = function (configuration?: Confi
|
|
|
360
399
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
361
400
|
localVarRequestOptions.data = serializeDataIfNeeded(updateSsoConnectionStatusBodyDto, localVarRequestOptions, configuration)
|
|
362
401
|
|
|
402
|
+
return {
|
|
403
|
+
url: toPathString(localVarUrlObj),
|
|
404
|
+
options: localVarRequestOptions,
|
|
405
|
+
};
|
|
406
|
+
},
|
|
407
|
+
/**
|
|
408
|
+
* Checks a SAML metadata URL or an OIDC issuer URL without creating anything, so the form can flag a wrong URL as soon as it is entered. The URL has to be https, name a public host and be reachable; for OIDC the discovery document under the issuer is probed. The same checks run again when the connection is created or edited. **Required Permissions** \"identity-management.sso.view\"
|
|
409
|
+
* @summary Validate an identity provider URL
|
|
410
|
+
* @param {ValidateSsoIdpUrlRequestDto} validateSsoIdpUrlRequestDto
|
|
411
|
+
* @param {string} [authorization] Bearer Token
|
|
412
|
+
* @param {*} [options] Override http request option.
|
|
413
|
+
* @throws {RequiredError}
|
|
414
|
+
*/
|
|
415
|
+
validateSsoIdpUrl: async (validateSsoIdpUrlRequestDto: ValidateSsoIdpUrlRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
416
|
+
// verify required parameter 'validateSsoIdpUrlRequestDto' is not null or undefined
|
|
417
|
+
assertParamExists('validateSsoIdpUrl', 'validateSsoIdpUrlRequestDto', validateSsoIdpUrlRequestDto)
|
|
418
|
+
const localVarPath = `/tenantservice/v1/sso-connection/validate-url`;
|
|
419
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
420
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
421
|
+
let baseOptions;
|
|
422
|
+
let baseAccessToken;
|
|
423
|
+
if (configuration) {
|
|
424
|
+
baseOptions = configuration.baseOptions;
|
|
425
|
+
baseAccessToken = configuration.accessToken;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
429
|
+
const localVarHeaderParameter = {} as any;
|
|
430
|
+
const localVarQueryParameter = {} as any;
|
|
431
|
+
|
|
432
|
+
// authentication bearer required
|
|
433
|
+
// http bearer authentication required
|
|
434
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
435
|
+
|
|
436
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
437
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
438
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
439
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
440
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
441
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
442
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
448
|
+
|
|
449
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
450
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
451
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
452
|
+
localVarRequestOptions.data = serializeDataIfNeeded(validateSsoIdpUrlRequestDto, localVarRequestOptions, configuration)
|
|
453
|
+
|
|
363
454
|
return {
|
|
364
455
|
url: toPathString(localVarUrlObj),
|
|
365
456
|
options: localVarRequestOptions,
|
|
@@ -459,6 +550,18 @@ export const SSOConnectionApiFp = function(configuration?: Configuration) {
|
|
|
459
550
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSsoConnectionStatus(code, updateSsoConnectionStatusBodyDto, authorization, options);
|
|
460
551
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
461
552
|
},
|
|
553
|
+
/**
|
|
554
|
+
* Checks a SAML metadata URL or an OIDC issuer URL without creating anything, so the form can flag a wrong URL as soon as it is entered. The URL has to be https, name a public host and be reachable; for OIDC the discovery document under the issuer is probed. The same checks run again when the connection is created or edited. **Required Permissions** \"identity-management.sso.view\"
|
|
555
|
+
* @summary Validate an identity provider URL
|
|
556
|
+
* @param {ValidateSsoIdpUrlRequestDto} validateSsoIdpUrlRequestDto
|
|
557
|
+
* @param {string} [authorization] Bearer Token
|
|
558
|
+
* @param {*} [options] Override http request option.
|
|
559
|
+
* @throws {RequiredError}
|
|
560
|
+
*/
|
|
561
|
+
async validateSsoIdpUrl(validateSsoIdpUrlRequestDto: ValidateSsoIdpUrlRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateSsoIdpUrlResponseClass>> {
|
|
562
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.validateSsoIdpUrl(validateSsoIdpUrlRequestDto, authorization, options);
|
|
563
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
564
|
+
},
|
|
462
565
|
}
|
|
463
566
|
};
|
|
464
567
|
|
|
@@ -546,6 +649,17 @@ export const SSOConnectionApiFactory = function (configuration?: Configuration,
|
|
|
546
649
|
updateSsoConnectionStatus(code: string, updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateSsoConnectionStatusResponseClass> {
|
|
547
650
|
return localVarFp.updateSsoConnectionStatus(code, updateSsoConnectionStatusBodyDto, authorization, options).then((request) => request(axios, basePath));
|
|
548
651
|
},
|
|
652
|
+
/**
|
|
653
|
+
* Checks a SAML metadata URL or an OIDC issuer URL without creating anything, so the form can flag a wrong URL as soon as it is entered. The URL has to be https, name a public host and be reachable; for OIDC the discovery document under the issuer is probed. The same checks run again when the connection is created or edited. **Required Permissions** \"identity-management.sso.view\"
|
|
654
|
+
* @summary Validate an identity provider URL
|
|
655
|
+
* @param {ValidateSsoIdpUrlRequestDto} validateSsoIdpUrlRequestDto
|
|
656
|
+
* @param {string} [authorization] Bearer Token
|
|
657
|
+
* @param {*} [options] Override http request option.
|
|
658
|
+
* @throws {RequiredError}
|
|
659
|
+
*/
|
|
660
|
+
validateSsoIdpUrl(validateSsoIdpUrlRequestDto: ValidateSsoIdpUrlRequestDto, authorization?: string, options?: any): AxiosPromise<ValidateSsoIdpUrlResponseClass> {
|
|
661
|
+
return localVarFp.validateSsoIdpUrl(validateSsoIdpUrlRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
662
|
+
},
|
|
549
663
|
};
|
|
550
664
|
};
|
|
551
665
|
|
|
@@ -696,6 +810,27 @@ export interface SSOConnectionApiUpdateSsoConnectionStatusRequest {
|
|
|
696
810
|
readonly authorization?: string
|
|
697
811
|
}
|
|
698
812
|
|
|
813
|
+
/**
|
|
814
|
+
* Request parameters for validateSsoIdpUrl operation in SSOConnectionApi.
|
|
815
|
+
* @export
|
|
816
|
+
* @interface SSOConnectionApiValidateSsoIdpUrlRequest
|
|
817
|
+
*/
|
|
818
|
+
export interface SSOConnectionApiValidateSsoIdpUrlRequest {
|
|
819
|
+
/**
|
|
820
|
+
*
|
|
821
|
+
* @type {ValidateSsoIdpUrlRequestDto}
|
|
822
|
+
* @memberof SSOConnectionApiValidateSsoIdpUrl
|
|
823
|
+
*/
|
|
824
|
+
readonly validateSsoIdpUrlRequestDto: ValidateSsoIdpUrlRequestDto
|
|
825
|
+
|
|
826
|
+
/**
|
|
827
|
+
* Bearer Token
|
|
828
|
+
* @type {string}
|
|
829
|
+
* @memberof SSOConnectionApiValidateSsoIdpUrl
|
|
830
|
+
*/
|
|
831
|
+
readonly authorization?: string
|
|
832
|
+
}
|
|
833
|
+
|
|
699
834
|
/**
|
|
700
835
|
* SSOConnectionApi - object-oriented interface
|
|
701
836
|
* @export
|
|
@@ -712,7 +847,7 @@ export class SSOConnectionApi extends BaseAPI {
|
|
|
712
847
|
* @memberof SSOConnectionApi
|
|
713
848
|
*/
|
|
714
849
|
public createSsoConnection(requestParameters: SSOConnectionApiCreateSsoConnectionRequest, options?: AxiosRequestConfig) {
|
|
715
|
-
return SSOConnectionApiFp(this.configuration).createSsoConnection(requestParameters.createSsoConnectionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
850
|
+
return SSOConnectionApiFp(this.configuration).createSsoConnection(requestParameters.createSsoConnectionRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
716
851
|
}
|
|
717
852
|
|
|
718
853
|
/**
|
|
@@ -724,7 +859,7 @@ export class SSOConnectionApi extends BaseAPI {
|
|
|
724
859
|
* @memberof SSOConnectionApi
|
|
725
860
|
*/
|
|
726
861
|
public deleteSsoConnection(requestParameters: SSOConnectionApiDeleteSsoConnectionRequest, options?: AxiosRequestConfig) {
|
|
727
|
-
return SSOConnectionApiFp(this.configuration).deleteSsoConnection(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
862
|
+
return SSOConnectionApiFp(this.configuration).deleteSsoConnection(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
728
863
|
}
|
|
729
864
|
|
|
730
865
|
/**
|
|
@@ -736,7 +871,7 @@ export class SSOConnectionApi extends BaseAPI {
|
|
|
736
871
|
* @memberof SSOConnectionApi
|
|
737
872
|
*/
|
|
738
873
|
public getCurrentSsoConnection(requestParameters: SSOConnectionApiGetCurrentSsoConnectionRequest = {}, options?: AxiosRequestConfig) {
|
|
739
|
-
return SSOConnectionApiFp(this.configuration).getCurrentSsoConnection(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
874
|
+
return SSOConnectionApiFp(this.configuration).getCurrentSsoConnection(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
740
875
|
}
|
|
741
876
|
|
|
742
877
|
/**
|
|
@@ -748,7 +883,7 @@ export class SSOConnectionApi extends BaseAPI {
|
|
|
748
883
|
* @memberof SSOConnectionApi
|
|
749
884
|
*/
|
|
750
885
|
public getSsoConnection(requestParameters: SSOConnectionApiGetSsoConnectionRequest, options?: AxiosRequestConfig) {
|
|
751
|
-
return SSOConnectionApiFp(this.configuration).getSsoConnection(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
886
|
+
return SSOConnectionApiFp(this.configuration).getSsoConnection(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
752
887
|
}
|
|
753
888
|
|
|
754
889
|
/**
|
|
@@ -760,7 +895,7 @@ export class SSOConnectionApi extends BaseAPI {
|
|
|
760
895
|
* @memberof SSOConnectionApi
|
|
761
896
|
*/
|
|
762
897
|
public getSsoConnectionSetup(requestParameters: SSOConnectionApiGetSsoConnectionSetupRequest = {}, options?: AxiosRequestConfig) {
|
|
763
|
-
return SSOConnectionApiFp(this.configuration).getSsoConnectionSetup(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
898
|
+
return SSOConnectionApiFp(this.configuration).getSsoConnectionSetup(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
764
899
|
}
|
|
765
900
|
|
|
766
901
|
/**
|
|
@@ -772,7 +907,7 @@ export class SSOConnectionApi extends BaseAPI {
|
|
|
772
907
|
* @memberof SSOConnectionApi
|
|
773
908
|
*/
|
|
774
909
|
public updateSsoConnection(requestParameters: SSOConnectionApiUpdateSsoConnectionRequest, options?: AxiosRequestConfig) {
|
|
775
|
-
return SSOConnectionApiFp(this.configuration).updateSsoConnection(requestParameters.code, requestParameters.updateSsoConnectionBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
910
|
+
return SSOConnectionApiFp(this.configuration).updateSsoConnection(requestParameters.code, requestParameters.updateSsoConnectionBodyDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
776
911
|
}
|
|
777
912
|
|
|
778
913
|
/**
|
|
@@ -784,6 +919,18 @@ export class SSOConnectionApi extends BaseAPI {
|
|
|
784
919
|
* @memberof SSOConnectionApi
|
|
785
920
|
*/
|
|
786
921
|
public updateSsoConnectionStatus(requestParameters: SSOConnectionApiUpdateSsoConnectionStatusRequest, options?: AxiosRequestConfig) {
|
|
787
|
-
return SSOConnectionApiFp(this.configuration).updateSsoConnectionStatus(requestParameters.code, requestParameters.updateSsoConnectionStatusBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
922
|
+
return SSOConnectionApiFp(this.configuration).updateSsoConnectionStatus(requestParameters.code, requestParameters.updateSsoConnectionStatusBodyDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* Checks a SAML metadata URL or an OIDC issuer URL without creating anything, so the form can flag a wrong URL as soon as it is entered. The URL has to be https, name a public host and be reachable; for OIDC the discovery document under the issuer is probed. The same checks run again when the connection is created or edited. **Required Permissions** \"identity-management.sso.view\"
|
|
927
|
+
* @summary Validate an identity provider URL
|
|
928
|
+
* @param {SSOConnectionApiValidateSsoIdpUrlRequest} requestParameters Request parameters.
|
|
929
|
+
* @param {*} [options] Override http request option.
|
|
930
|
+
* @throws {RequiredError}
|
|
931
|
+
* @memberof SSOConnectionApi
|
|
932
|
+
*/
|
|
933
|
+
public validateSsoIdpUrl(requestParameters: SSOConnectionApiValidateSsoIdpUrlRequest, options?: AxiosRequestConfig) {
|
|
934
|
+
return SSOConnectionApiFp(this.configuration).validateSsoIdpUrl(requestParameters.validateSsoIdpUrlRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
788
935
|
}
|
|
789
936
|
}
|
package/api/ssoid-pgroups-api.ts
CHANGED
|
@@ -73,8 +73,13 @@ export const SSOIdPGroupsApiAxiosParamCreator = function (configuration?: Config
|
|
|
73
73
|
// http bearer authentication required
|
|
74
74
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
77
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
78
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
79
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
80
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
81
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
82
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
78
83
|
}
|
|
79
84
|
|
|
80
85
|
|
|
@@ -121,8 +126,13 @@ export const SSOIdPGroupsApiAxiosParamCreator = function (configuration?: Config
|
|
|
121
126
|
// http bearer authentication required
|
|
122
127
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
123
128
|
|
|
124
|
-
|
|
125
|
-
|
|
129
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
130
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
131
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
132
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
133
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
134
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
135
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
126
136
|
}
|
|
127
137
|
|
|
128
138
|
|
|
@@ -166,8 +176,13 @@ export const SSOIdPGroupsApiAxiosParamCreator = function (configuration?: Config
|
|
|
166
176
|
// http bearer authentication required
|
|
167
177
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
168
178
|
|
|
169
|
-
|
|
170
|
-
|
|
179
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
180
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
181
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
182
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
183
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
184
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
185
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
171
186
|
}
|
|
172
187
|
|
|
173
188
|
|
|
@@ -242,8 +257,13 @@ export const SSOIdPGroupsApiAxiosParamCreator = function (configuration?: Config
|
|
|
242
257
|
localVarQueryParameter['filters'] = filters;
|
|
243
258
|
}
|
|
244
259
|
|
|
245
|
-
|
|
246
|
-
|
|
260
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
261
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
262
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
263
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
264
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
265
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
266
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
247
267
|
}
|
|
248
268
|
|
|
249
269
|
|
|
@@ -290,8 +310,13 @@ export const SSOIdPGroupsApiAxiosParamCreator = function (configuration?: Config
|
|
|
290
310
|
// http bearer authentication required
|
|
291
311
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
292
312
|
|
|
293
|
-
|
|
294
|
-
|
|
313
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
314
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
315
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
316
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
317
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
318
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
319
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
295
320
|
}
|
|
296
321
|
|
|
297
322
|
|
|
@@ -341,8 +366,13 @@ export const SSOIdPGroupsApiAxiosParamCreator = function (configuration?: Config
|
|
|
341
366
|
// http bearer authentication required
|
|
342
367
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
343
368
|
|
|
344
|
-
|
|
345
|
-
|
|
369
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
370
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
371
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
372
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
373
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
374
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
375
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
346
376
|
}
|
|
347
377
|
|
|
348
378
|
|
|
@@ -734,7 +764,7 @@ export class SSOIdPGroupsApi extends BaseAPI {
|
|
|
734
764
|
* @memberof SSOIdPGroupsApi
|
|
735
765
|
*/
|
|
736
766
|
public createSsoIdpGroup(requestParameters: SSOIdPGroupsApiCreateSsoIdpGroupRequest, options?: AxiosRequestConfig) {
|
|
737
|
-
return SSOIdPGroupsApiFp(this.configuration).createSsoIdpGroup(requestParameters.createSsoIdpGroupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
767
|
+
return SSOIdPGroupsApiFp(this.configuration).createSsoIdpGroup(requestParameters.createSsoIdpGroupRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
738
768
|
}
|
|
739
769
|
|
|
740
770
|
/**
|
|
@@ -746,7 +776,7 @@ export class SSOIdPGroupsApi extends BaseAPI {
|
|
|
746
776
|
* @memberof SSOIdPGroupsApi
|
|
747
777
|
*/
|
|
748
778
|
public deleteSsoIdpGroup(requestParameters: SSOIdPGroupsApiDeleteSsoIdpGroupRequest, options?: AxiosRequestConfig) {
|
|
749
|
-
return SSOIdPGroupsApiFp(this.configuration).deleteSsoIdpGroup(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
779
|
+
return SSOIdPGroupsApiFp(this.configuration).deleteSsoIdpGroup(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
750
780
|
}
|
|
751
781
|
|
|
752
782
|
/**
|
|
@@ -758,7 +788,7 @@ export class SSOIdPGroupsApi extends BaseAPI {
|
|
|
758
788
|
* @memberof SSOIdPGroupsApi
|
|
759
789
|
*/
|
|
760
790
|
public getSsoIdpGroup(requestParameters: SSOIdPGroupsApiGetSsoIdpGroupRequest, options?: AxiosRequestConfig) {
|
|
761
|
-
return SSOIdPGroupsApiFp(this.configuration).getSsoIdpGroup(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
791
|
+
return SSOIdPGroupsApiFp(this.configuration).getSsoIdpGroup(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
762
792
|
}
|
|
763
793
|
|
|
764
794
|
/**
|
|
@@ -770,7 +800,7 @@ export class SSOIdPGroupsApi extends BaseAPI {
|
|
|
770
800
|
* @memberof SSOIdPGroupsApi
|
|
771
801
|
*/
|
|
772
802
|
public listSsoIdpGroups(requestParameters: SSOIdPGroupsApiListSsoIdpGroupsRequest = {}, options?: AxiosRequestConfig) {
|
|
773
|
-
return SSOIdPGroupsApiFp(this.configuration).listSsoIdpGroups(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
803
|
+
return SSOIdPGroupsApiFp(this.configuration).listSsoIdpGroups(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
774
804
|
}
|
|
775
805
|
|
|
776
806
|
/**
|
|
@@ -782,7 +812,7 @@ export class SSOIdPGroupsApi extends BaseAPI {
|
|
|
782
812
|
* @memberof SSOIdPGroupsApi
|
|
783
813
|
*/
|
|
784
814
|
public updateSsoIdpGroup(requestParameters: SSOIdPGroupsApiUpdateSsoIdpGroupRequest, options?: AxiosRequestConfig) {
|
|
785
|
-
return SSOIdPGroupsApiFp(this.configuration).updateSsoIdpGroup(requestParameters.code, requestParameters.updateSsoIdpGroupBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
815
|
+
return SSOIdPGroupsApiFp(this.configuration).updateSsoIdpGroup(requestParameters.code, requestParameters.updateSsoIdpGroupBodyDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
786
816
|
}
|
|
787
817
|
|
|
788
818
|
/**
|
|
@@ -794,6 +824,6 @@ export class SSOIdPGroupsApi extends BaseAPI {
|
|
|
794
824
|
* @memberof SSOIdPGroupsApi
|
|
795
825
|
*/
|
|
796
826
|
public updateSsoIdpGroupStatus(requestParameters: SSOIdPGroupsApiUpdateSsoIdpGroupStatusRequest, options?: AxiosRequestConfig) {
|
|
797
|
-
return SSOIdPGroupsApiFp(this.configuration).updateSsoIdpGroupStatus(requestParameters.code, requestParameters.updateSsoIdpGroupStatusBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
827
|
+
return SSOIdPGroupsApiFp(this.configuration).updateSsoIdpGroupStatus(requestParameters.code, requestParameters.updateSsoIdpGroupStatusBodyDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
798
828
|
}
|
|
799
829
|
}
|