@emilgroup/auth-sdk 1.33.1-beta.0 → 1.33.1-beta.10

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.
@@ -18,11 +18,15 @@ models/create-user-response-class.ts
18
18
  models/custom-schema-class.ts
19
19
  models/forgot-password-request-dto.ts
20
20
  models/get-saml-login-link-request-dto.ts
21
+ models/get-saml-login-link-response-class.ts
22
+ models/get-sso-login-config-request-dto.ts
23
+ models/get-sso-login-config-response-class.ts
21
24
  models/index.ts
22
25
  models/inline-response200.ts
23
26
  models/inline-response503.ts
24
27
  models/list-workspaces-response-class.ts
25
28
  models/login-by-saml-request-dto.ts
29
+ models/login-by-sso-request-dto.ts
26
30
  models/login-class.ts
27
31
  models/login-request-dto.ts
28
32
  models/logout-request-dto.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/auth-sdk@1.33.1-beta.0 --save
20
+ npm install @emilgroup/auth-sdk@1.33.1-beta.10 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/auth-sdk@1.33.1-beta.0
24
+ yarn add @emilgroup/auth-sdk@1.33.1-beta.10
25
25
  ```
26
26
 
27
27
  And then you can import ``.
@@ -31,6 +31,10 @@ import { CreateUserResponseClass } from '../models';
31
31
  // @ts-ignore
32
32
  import { ForgotPasswordRequestDto } from '../models';
33
33
  // @ts-ignore
34
+ import { GetSamlLoginLinkResponseClass } from '../models';
35
+ // @ts-ignore
36
+ import { GetSsoLoginConfigResponseClass } from '../models';
37
+ // @ts-ignore
34
38
  import { LoginBySamlRequestDto } from '../models';
35
39
  // @ts-ignore
36
40
  import { LoginClass } from '../models';
@@ -165,8 +169,8 @@ export const AuthserviceApiAxiosParamCreator = function (configuration?: Configu
165
169
  };
166
170
  },
167
171
  /**
168
- * Get SAML login link configured for the tenant in cognito as well as tenant settings
169
- * @summary Get SAML login link for tenant
172
+ * Same as login/sso-config, under the field names the login page reads.
173
+ * @summary Get the SSO login link for a tenant
170
174
  * @param {string} tenantSlug
171
175
  * @param {*} [options] Override http request option.
172
176
  * @throws {RequiredError}
@@ -194,6 +198,45 @@ export const AuthserviceApiAxiosParamCreator = function (configuration?: Configu
194
198
 
195
199
 
196
200
 
201
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
202
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
203
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
204
+
205
+ return {
206
+ url: toPathString(localVarUrlObj),
207
+ options: localVarRequestOptions,
208
+ };
209
+ },
210
+ /**
211
+ * Returns the url the SSO button sends the browser to and the identity provider it is branded with, from the tenant SSO connection or, when it has none, the legacy saml settings.
212
+ * @summary Get the SSO login config for a tenant
213
+ * @param {string} tenantSlug
214
+ * @param {*} [options] Override http request option.
215
+ * @throws {RequiredError}
216
+ */
217
+ getSsoLoginConfig: async (tenantSlug: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
218
+ // verify required parameter 'tenantSlug' is not null or undefined
219
+ assertParamExists('getSsoLoginConfig', 'tenantSlug', tenantSlug)
220
+ const localVarPath = `/authservice/v1/login/sso-config`;
221
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
222
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
223
+ let baseOptions;
224
+ let baseAccessToken;
225
+ if (configuration) {
226
+ baseOptions = configuration.baseOptions;
227
+ baseAccessToken = configuration.accessToken;
228
+ }
229
+
230
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
231
+ const localVarHeaderParameter = {} as any;
232
+ const localVarQueryParameter = {} as any;
233
+
234
+ if (tenantSlug !== undefined) {
235
+ localVarQueryParameter['tenantSlug'] = tenantSlug;
236
+ }
237
+
238
+
239
+
197
240
  setSearchParams(localVarUrlObj, localVarQueryParameter);
198
241
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
199
242
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -559,16 +602,27 @@ export const AuthserviceApiFp = function(configuration?: Configuration) {
559
602
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
560
603
  },
561
604
  /**
562
- * Get SAML login link configured for the tenant in cognito as well as tenant settings
563
- * @summary Get SAML login link for tenant
605
+ * Same as login/sso-config, under the field names the login page reads.
606
+ * @summary Get the SSO login link for a tenant
564
607
  * @param {string} tenantSlug
565
608
  * @param {*} [options] Override http request option.
566
609
  * @throws {RequiredError}
567
610
  */
568
- async getSamlLoginLink(tenantSlug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
611
+ async getSamlLoginLink(tenantSlug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSamlLoginLinkResponseClass>> {
569
612
  const localVarAxiosArgs = await localVarAxiosParamCreator.getSamlLoginLink(tenantSlug, options);
570
613
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
571
614
  },
615
+ /**
616
+ * Returns the url the SSO button sends the browser to and the identity provider it is branded with, from the tenant SSO connection or, when it has none, the legacy saml settings.
617
+ * @summary Get the SSO login config for a tenant
618
+ * @param {string} tenantSlug
619
+ * @param {*} [options] Override http request option.
620
+ * @throws {RequiredError}
621
+ */
622
+ async getSsoLoginConfig(tenantSlug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSsoLoginConfigResponseClass>> {
623
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSsoLoginConfig(tenantSlug, options);
624
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
625
+ },
572
626
  /**
573
627
  * Get new access token, refresh token after successful login.
574
628
  * @summary Login by tenant
@@ -699,15 +753,25 @@ export const AuthserviceApiFactory = function (configuration?: Configuration, ba
699
753
  return localVarFp.forgotPassword(forgotPasswordRequestDto, options).then((request) => request(axios, basePath));
700
754
  },
701
755
  /**
702
- * Get SAML login link configured for the tenant in cognito as well as tenant settings
703
- * @summary Get SAML login link for tenant
756
+ * Same as login/sso-config, under the field names the login page reads.
757
+ * @summary Get the SSO login link for a tenant
704
758
  * @param {string} tenantSlug
705
759
  * @param {*} [options] Override http request option.
706
760
  * @throws {RequiredError}
707
761
  */
708
- getSamlLoginLink(tenantSlug: string, options?: any): AxiosPromise<void> {
762
+ getSamlLoginLink(tenantSlug: string, options?: any): AxiosPromise<GetSamlLoginLinkResponseClass> {
709
763
  return localVarFp.getSamlLoginLink(tenantSlug, options).then((request) => request(axios, basePath));
710
764
  },
765
+ /**
766
+ * Returns the url the SSO button sends the browser to and the identity provider it is branded with, from the tenant SSO connection or, when it has none, the legacy saml settings.
767
+ * @summary Get the SSO login config for a tenant
768
+ * @param {string} tenantSlug
769
+ * @param {*} [options] Override http request option.
770
+ * @throws {RequiredError}
771
+ */
772
+ getSsoLoginConfig(tenantSlug: string, options?: any): AxiosPromise<GetSsoLoginConfigResponseClass> {
773
+ return localVarFp.getSsoLoginConfig(tenantSlug, options).then((request) => request(axios, basePath));
774
+ },
711
775
  /**
712
776
  * Get new access token, refresh token after successful login.
713
777
  * @summary Login by tenant
@@ -848,6 +912,20 @@ export interface AuthserviceApiGetSamlLoginLinkRequest {
848
912
  readonly tenantSlug: string
849
913
  }
850
914
 
915
+ /**
916
+ * Request parameters for getSsoLoginConfig operation in AuthserviceApi.
917
+ * @export
918
+ * @interface AuthserviceApiGetSsoLoginConfigRequest
919
+ */
920
+ export interface AuthserviceApiGetSsoLoginConfigRequest {
921
+ /**
922
+ *
923
+ * @type {string}
924
+ * @memberof AuthserviceApiGetSsoLoginConfig
925
+ */
926
+ readonly tenantSlug: string
927
+ }
928
+
851
929
  /**
852
930
  * Request parameters for login operation in AuthserviceApi.
853
931
  * @export
@@ -1011,8 +1089,8 @@ export class AuthserviceApi extends BaseAPI {
1011
1089
  }
1012
1090
 
1013
1091
  /**
1014
- * Get SAML login link configured for the tenant in cognito as well as tenant settings
1015
- * @summary Get SAML login link for tenant
1092
+ * Same as login/sso-config, under the field names the login page reads.
1093
+ * @summary Get the SSO login link for a tenant
1016
1094
  * @param {AuthserviceApiGetSamlLoginLinkRequest} requestParameters Request parameters.
1017
1095
  * @param {*} [options] Override http request option.
1018
1096
  * @throws {RequiredError}
@@ -1022,6 +1100,18 @@ export class AuthserviceApi extends BaseAPI {
1022
1100
  return AuthserviceApiFp(this.configuration).getSamlLoginLink(requestParameters.tenantSlug, options).then((request) => request(this.axios, this.basePath));
1023
1101
  }
1024
1102
 
1103
+ /**
1104
+ * Returns the url the SSO button sends the browser to and the identity provider it is branded with, from the tenant SSO connection or, when it has none, the legacy saml settings.
1105
+ * @summary Get the SSO login config for a tenant
1106
+ * @param {AuthserviceApiGetSsoLoginConfigRequest} requestParameters Request parameters.
1107
+ * @param {*} [options] Override http request option.
1108
+ * @throws {RequiredError}
1109
+ * @memberof AuthserviceApi
1110
+ */
1111
+ public getSsoLoginConfig(requestParameters: AuthserviceApiGetSsoLoginConfigRequest, options?: AxiosRequestConfig) {
1112
+ return AuthserviceApiFp(this.configuration).getSsoLoginConfig(requestParameters.tenantSlug, options).then((request) => request(this.axios, this.basePath));
1113
+ }
1114
+
1025
1115
  /**
1026
1116
  * Get new access token, refresh token after successful login.
1027
1117
  * @summary Login by tenant
@@ -17,6 +17,8 @@ import { CreateOrgAndUserResponseClass } from '../models';
17
17
  import { CreateUserRequestDto } from '../models';
18
18
  import { CreateUserResponseClass } from '../models';
19
19
  import { ForgotPasswordRequestDto } from '../models';
20
+ import { GetSamlLoginLinkResponseClass } from '../models';
21
+ import { GetSsoLoginConfigResponseClass } from '../models';
20
22
  import { LoginBySamlRequestDto } from '../models';
21
23
  import { LoginClass } from '../models';
22
24
  import { LoginRequestDto } from '../models';
@@ -54,13 +56,21 @@ export declare const AuthserviceApiAxiosParamCreator: (configuration?: Configura
54
56
  */
55
57
  forgotPassword: (forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
56
58
  /**
57
- * Get SAML login link configured for the tenant in cognito as well as tenant settings
58
- * @summary Get SAML login link for tenant
59
+ * Same as login/sso-config, under the field names the login page reads.
60
+ * @summary Get the SSO login link for a tenant
59
61
  * @param {string} tenantSlug
60
62
  * @param {*} [options] Override http request option.
61
63
  * @throws {RequiredError}
62
64
  */
63
65
  getSamlLoginLink: (tenantSlug: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
66
+ /**
67
+ * Returns the url the SSO button sends the browser to and the identity provider it is branded with, from the tenant SSO connection or, when it has none, the legacy saml settings.
68
+ * @summary Get the SSO login config for a tenant
69
+ * @param {string} tenantSlug
70
+ * @param {*} [options] Override http request option.
71
+ * @throws {RequiredError}
72
+ */
73
+ getSsoLoginConfig: (tenantSlug: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
64
74
  /**
65
75
  * Get new access token, refresh token after successful login.
66
76
  * @summary Login by tenant
@@ -157,13 +167,21 @@ export declare const AuthserviceApiFp: (configuration?: Configuration) => {
157
167
  */
158
168
  forgotPassword(forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
159
169
  /**
160
- * Get SAML login link configured for the tenant in cognito as well as tenant settings
161
- * @summary Get SAML login link for tenant
170
+ * Same as login/sso-config, under the field names the login page reads.
171
+ * @summary Get the SSO login link for a tenant
162
172
  * @param {string} tenantSlug
163
173
  * @param {*} [options] Override http request option.
164
174
  * @throws {RequiredError}
165
175
  */
166
- getSamlLoginLink(tenantSlug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
176
+ getSamlLoginLink(tenantSlug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSamlLoginLinkResponseClass>>;
177
+ /**
178
+ * Returns the url the SSO button sends the browser to and the identity provider it is branded with, from the tenant SSO connection or, when it has none, the legacy saml settings.
179
+ * @summary Get the SSO login config for a tenant
180
+ * @param {string} tenantSlug
181
+ * @param {*} [options] Override http request option.
182
+ * @throws {RequiredError}
183
+ */
184
+ getSsoLoginConfig(tenantSlug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSsoLoginConfigResponseClass>>;
167
185
  /**
168
186
  * Get new access token, refresh token after successful login.
169
187
  * @summary Login by tenant
@@ -260,13 +278,21 @@ export declare const AuthserviceApiFactory: (configuration?: Configuration, base
260
278
  */
261
279
  forgotPassword(forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: any): AxiosPromise<void>;
262
280
  /**
263
- * Get SAML login link configured for the tenant in cognito as well as tenant settings
264
- * @summary Get SAML login link for tenant
281
+ * Same as login/sso-config, under the field names the login page reads.
282
+ * @summary Get the SSO login link for a tenant
283
+ * @param {string} tenantSlug
284
+ * @param {*} [options] Override http request option.
285
+ * @throws {RequiredError}
286
+ */
287
+ getSamlLoginLink(tenantSlug: string, options?: any): AxiosPromise<GetSamlLoginLinkResponseClass>;
288
+ /**
289
+ * Returns the url the SSO button sends the browser to and the identity provider it is branded with, from the tenant SSO connection or, when it has none, the legacy saml settings.
290
+ * @summary Get the SSO login config for a tenant
265
291
  * @param {string} tenantSlug
266
292
  * @param {*} [options] Override http request option.
267
293
  * @throws {RequiredError}
268
294
  */
269
- getSamlLoginLink(tenantSlug: string, options?: any): AxiosPromise<void>;
295
+ getSsoLoginConfig(tenantSlug: string, options?: any): AxiosPromise<GetSsoLoginConfigResponseClass>;
270
296
  /**
271
297
  * Get new access token, refresh token after successful login.
272
298
  * @summary Login by tenant
@@ -385,6 +411,19 @@ export interface AuthserviceApiGetSamlLoginLinkRequest {
385
411
  */
386
412
  readonly tenantSlug: string;
387
413
  }
414
+ /**
415
+ * Request parameters for getSsoLoginConfig operation in AuthserviceApi.
416
+ * @export
417
+ * @interface AuthserviceApiGetSsoLoginConfigRequest
418
+ */
419
+ export interface AuthserviceApiGetSsoLoginConfigRequest {
420
+ /**
421
+ *
422
+ * @type {string}
423
+ * @memberof AuthserviceApiGetSsoLoginConfig
424
+ */
425
+ readonly tenantSlug: string;
426
+ }
388
427
  /**
389
428
  * Request parameters for login operation in AuthserviceApi.
390
429
  * @export
@@ -530,14 +569,23 @@ export declare class AuthserviceApi extends BaseAPI {
530
569
  */
531
570
  forgotPassword(requestParameters: AuthserviceApiForgotPasswordRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
532
571
  /**
533
- * Get SAML login link configured for the tenant in cognito as well as tenant settings
534
- * @summary Get SAML login link for tenant
572
+ * Same as login/sso-config, under the field names the login page reads.
573
+ * @summary Get the SSO login link for a tenant
535
574
  * @param {AuthserviceApiGetSamlLoginLinkRequest} requestParameters Request parameters.
536
575
  * @param {*} [options] Override http request option.
537
576
  * @throws {RequiredError}
538
577
  * @memberof AuthserviceApi
539
578
  */
540
- getSamlLoginLink(requestParameters: AuthserviceApiGetSamlLoginLinkRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
579
+ getSamlLoginLink(requestParameters: AuthserviceApiGetSamlLoginLinkRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSamlLoginLinkResponseClass, any, {}>>;
580
+ /**
581
+ * Returns the url the SSO button sends the browser to and the identity provider it is branded with, from the tenant SSO connection or, when it has none, the legacy saml settings.
582
+ * @summary Get the SSO login config for a tenant
583
+ * @param {AuthserviceApiGetSsoLoginConfigRequest} requestParameters Request parameters.
584
+ * @param {*} [options] Override http request option.
585
+ * @throws {RequiredError}
586
+ * @memberof AuthserviceApi
587
+ */
588
+ getSsoLoginConfig(requestParameters: AuthserviceApiGetSsoLoginConfigRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSsoLoginConfigResponseClass, any, {}>>;
541
589
  /**
542
590
  * Get new access token, refresh token after successful login.
543
591
  * @summary Login by tenant
@@ -198,8 +198,8 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
198
198
  });
199
199
  },
200
200
  /**
201
- * Get SAML login link configured for the tenant in cognito as well as tenant settings
202
- * @summary Get SAML login link for tenant
201
+ * Same as login/sso-config, under the field names the login page reads.
202
+ * @summary Get the SSO login link for a tenant
203
203
  * @param {string} tenantSlug
204
204
  * @param {*} [options] Override http request option.
205
205
  * @throws {RequiredError}
@@ -233,6 +233,42 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
233
233
  });
234
234
  });
235
235
  },
236
+ /**
237
+ * Returns the url the SSO button sends the browser to and the identity provider it is branded with, from the tenant SSO connection or, when it has none, the legacy saml settings.
238
+ * @summary Get the SSO login config for a tenant
239
+ * @param {string} tenantSlug
240
+ * @param {*} [options] Override http request option.
241
+ * @throws {RequiredError}
242
+ */
243
+ getSsoLoginConfig: function (tenantSlug, options) {
244
+ if (options === void 0) { options = {}; }
245
+ return __awaiter(_this, void 0, void 0, function () {
246
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
247
+ return __generator(this, function (_a) {
248
+ // verify required parameter 'tenantSlug' is not null or undefined
249
+ (0, common_1.assertParamExists)('getSsoLoginConfig', 'tenantSlug', tenantSlug);
250
+ localVarPath = "/authservice/v1/login/sso-config";
251
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
252
+ if (configuration) {
253
+ baseOptions = configuration.baseOptions;
254
+ baseAccessToken = configuration.accessToken;
255
+ }
256
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
257
+ localVarHeaderParameter = {};
258
+ localVarQueryParameter = {};
259
+ if (tenantSlug !== undefined) {
260
+ localVarQueryParameter['tenantSlug'] = tenantSlug;
261
+ }
262
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
263
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
264
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
265
+ return [2 /*return*/, {
266
+ url: (0, common_1.toPathString)(localVarUrlObj),
267
+ options: localVarRequestOptions,
268
+ }];
269
+ });
270
+ });
271
+ },
236
272
  /**
237
273
  * Get new access token, refresh token after successful login.
238
274
  * @summary Login by tenant
@@ -591,8 +627,8 @@ var AuthserviceApiFp = function (configuration) {
591
627
  });
592
628
  },
593
629
  /**
594
- * Get SAML login link configured for the tenant in cognito as well as tenant settings
595
- * @summary Get SAML login link for tenant
630
+ * Same as login/sso-config, under the field names the login page reads.
631
+ * @summary Get the SSO login link for a tenant
596
632
  * @param {string} tenantSlug
597
633
  * @param {*} [options] Override http request option.
598
634
  * @throws {RequiredError}
@@ -610,6 +646,26 @@ var AuthserviceApiFp = function (configuration) {
610
646
  });
611
647
  });
612
648
  },
649
+ /**
650
+ * Returns the url the SSO button sends the browser to and the identity provider it is branded with, from the tenant SSO connection or, when it has none, the legacy saml settings.
651
+ * @summary Get the SSO login config for a tenant
652
+ * @param {string} tenantSlug
653
+ * @param {*} [options] Override http request option.
654
+ * @throws {RequiredError}
655
+ */
656
+ getSsoLoginConfig: function (tenantSlug, options) {
657
+ return __awaiter(this, void 0, void 0, function () {
658
+ var localVarAxiosArgs;
659
+ return __generator(this, function (_a) {
660
+ switch (_a.label) {
661
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSsoLoginConfig(tenantSlug, options)];
662
+ case 1:
663
+ localVarAxiosArgs = _a.sent();
664
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
665
+ }
666
+ });
667
+ });
668
+ },
613
669
  /**
614
670
  * Get new access token, refresh token after successful login.
615
671
  * @summary Login by tenant
@@ -812,8 +868,8 @@ var AuthserviceApiFactory = function (configuration, basePath, axios) {
812
868
  return localVarFp.forgotPassword(forgotPasswordRequestDto, options).then(function (request) { return request(axios, basePath); });
813
869
  },
814
870
  /**
815
- * Get SAML login link configured for the tenant in cognito as well as tenant settings
816
- * @summary Get SAML login link for tenant
871
+ * Same as login/sso-config, under the field names the login page reads.
872
+ * @summary Get the SSO login link for a tenant
817
873
  * @param {string} tenantSlug
818
874
  * @param {*} [options] Override http request option.
819
875
  * @throws {RequiredError}
@@ -821,6 +877,16 @@ var AuthserviceApiFactory = function (configuration, basePath, axios) {
821
877
  getSamlLoginLink: function (tenantSlug, options) {
822
878
  return localVarFp.getSamlLoginLink(tenantSlug, options).then(function (request) { return request(axios, basePath); });
823
879
  },
880
+ /**
881
+ * Returns the url the SSO button sends the browser to and the identity provider it is branded with, from the tenant SSO connection or, when it has none, the legacy saml settings.
882
+ * @summary Get the SSO login config for a tenant
883
+ * @param {string} tenantSlug
884
+ * @param {*} [options] Override http request option.
885
+ * @throws {RequiredError}
886
+ */
887
+ getSsoLoginConfig: function (tenantSlug, options) {
888
+ return localVarFp.getSsoLoginConfig(tenantSlug, options).then(function (request) { return request(axios, basePath); });
889
+ },
824
890
  /**
825
891
  * Get new access token, refresh token after successful login.
826
892
  * @summary Login by tenant
@@ -953,8 +1019,8 @@ var AuthserviceApi = /** @class */ (function (_super) {
953
1019
  return (0, exports.AuthserviceApiFp)(this.configuration).forgotPassword(requestParameters.forgotPasswordRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
954
1020
  };
955
1021
  /**
956
- * Get SAML login link configured for the tenant in cognito as well as tenant settings
957
- * @summary Get SAML login link for tenant
1022
+ * Same as login/sso-config, under the field names the login page reads.
1023
+ * @summary Get the SSO login link for a tenant
958
1024
  * @param {AuthserviceApiGetSamlLoginLinkRequest} requestParameters Request parameters.
959
1025
  * @param {*} [options] Override http request option.
960
1026
  * @throws {RequiredError}
@@ -964,6 +1030,18 @@ var AuthserviceApi = /** @class */ (function (_super) {
964
1030
  var _this = this;
965
1031
  return (0, exports.AuthserviceApiFp)(this.configuration).getSamlLoginLink(requestParameters.tenantSlug, options).then(function (request) { return request(_this.axios, _this.basePath); });
966
1032
  };
1033
+ /**
1034
+ * Returns the url the SSO button sends the browser to and the identity provider it is branded with, from the tenant SSO connection or, when it has none, the legacy saml settings.
1035
+ * @summary Get the SSO login config for a tenant
1036
+ * @param {AuthserviceApiGetSsoLoginConfigRequest} requestParameters Request parameters.
1037
+ * @param {*} [options] Override http request option.
1038
+ * @throws {RequiredError}
1039
+ * @memberof AuthserviceApi
1040
+ */
1041
+ AuthserviceApi.prototype.getSsoLoginConfig = function (requestParameters, options) {
1042
+ var _this = this;
1043
+ return (0, exports.AuthserviceApiFp)(this.configuration).getSsoLoginConfig(requestParameters.tenantSlug, options).then(function (request) { return request(_this.axios, _this.basePath); });
1044
+ };
967
1045
  /**
968
1046
  * Get new access token, refresh token after successful login.
969
1047
  * @summary Login by tenant
@@ -41,10 +41,12 @@ export interface CreateOrgAndUserRequestDto {
41
41
  'country': string;
42
42
  /**
43
43
  * Custom fields of the organization
44
- * @type {object}
44
+ * @type {{ [key: string]: object; }}
45
45
  * @memberof CreateOrgAndUserRequestDto
46
46
  */
47
- 'customFields'?: object;
47
+ 'customFields'?: {
48
+ [key: string]: object;
49
+ };
48
50
  /**
49
51
  * User\'s first name
50
52
  * @type {string}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * EMIL AuthService
3
+ * The EMIL AuthService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface GetSamlLoginLinkResponseClass
16
+ */
17
+ export interface GetSamlLoginLinkResponseClass {
18
+ /**
19
+ * tenant slug
20
+ * @type {string}
21
+ * @memberof GetSamlLoginLinkResponseClass
22
+ */
23
+ 'tenantSlug': string;
24
+ /**
25
+ * login link url
26
+ * @type {string}
27
+ * @memberof GetSamlLoginLinkResponseClass
28
+ */
29
+ 'samlIdpLoginUrl': string;
30
+ /**
31
+ * Identity Provider id used to brand the SSO button (e.g. \'microsoft\', \'ping\', \'keycloak\').
32
+ * @type {string}
33
+ * @memberof GetSamlLoginLinkResponseClass
34
+ */
35
+ 'provider'?: string;
36
+ /**
37
+ * True when the tenant still logs in through the legacy saml settings.
38
+ * @type {boolean}
39
+ * @memberof GetSamlLoginLinkResponseClass
40
+ */
41
+ 'isLegacy': boolean;
42
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AuthService
6
+ * The EMIL AuthService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ /**
2
+ * EMIL AuthService
3
+ * The EMIL AuthService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface GetSsoLoginConfigRequestDto
16
+ */
17
+ export interface GetSsoLoginConfigRequestDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GetSsoLoginConfigRequestDto
22
+ */
23
+ 'tenantSlug': string;
24
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AuthService
6
+ * The EMIL AuthService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,48 @@
1
+ /**
2
+ * EMIL AuthService
3
+ * The EMIL AuthService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface GetSsoLoginConfigResponseClass
16
+ */
17
+ export interface GetSsoLoginConfigResponseClass {
18
+ /**
19
+ * tenant slug
20
+ * @type {string}
21
+ * @memberof GetSsoLoginConfigResponseClass
22
+ */
23
+ 'tenantSlug': string;
24
+ /**
25
+ * Hosted UI url the login button sends the browser to
26
+ * @type {string}
27
+ * @memberof GetSsoLoginConfigResponseClass
28
+ */
29
+ 'loginUrl': string;
30
+ /**
31
+ * Identity provider vendor used to brand the login button (e.g. \'microsoft\').
32
+ * @type {string}
33
+ * @memberof GetSsoLoginConfigResponseClass
34
+ */
35
+ 'provider': string;
36
+ /**
37
+ * Federation protocol, \'saml\' or \'oidc\'.
38
+ * @type {string}
39
+ * @memberof GetSsoLoginConfigResponseClass
40
+ */
41
+ 'protocol'?: string;
42
+ /**
43
+ * True when the tenant still logs in through the legacy saml settings.
44
+ * @type {boolean}
45
+ * @memberof GetSsoLoginConfigResponseClass
46
+ */
47
+ 'isLegacy': boolean;
48
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AuthService
6
+ * The EMIL AuthService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,10 +5,14 @@ export * from './create-user-response-class';
5
5
  export * from './custom-schema-class';
6
6
  export * from './forgot-password-request-dto';
7
7
  export * from './get-saml-login-link-request-dto';
8
+ export * from './get-saml-login-link-response-class';
9
+ export * from './get-sso-login-config-request-dto';
10
+ export * from './get-sso-login-config-response-class';
8
11
  export * from './inline-response200';
9
12
  export * from './inline-response503';
10
13
  export * from './list-workspaces-response-class';
11
14
  export * from './login-by-saml-request-dto';
15
+ export * from './login-by-sso-request-dto';
12
16
  export * from './login-class';
13
17
  export * from './login-request-dto';
14
18
  export * from './logout-request-dto';
@@ -21,10 +21,14 @@ __exportStar(require("./create-user-response-class"), exports);
21
21
  __exportStar(require("./custom-schema-class"), exports);
22
22
  __exportStar(require("./forgot-password-request-dto"), exports);
23
23
  __exportStar(require("./get-saml-login-link-request-dto"), exports);
24
+ __exportStar(require("./get-saml-login-link-response-class"), exports);
25
+ __exportStar(require("./get-sso-login-config-request-dto"), exports);
26
+ __exportStar(require("./get-sso-login-config-response-class"), exports);
24
27
  __exportStar(require("./inline-response200"), exports);
25
28
  __exportStar(require("./inline-response503"), exports);
26
29
  __exportStar(require("./list-workspaces-response-class"), exports);
27
30
  __exportStar(require("./login-by-saml-request-dto"), exports);
31
+ __exportStar(require("./login-by-sso-request-dto"), exports);
28
32
  __exportStar(require("./login-class"), exports);
29
33
  __exportStar(require("./login-request-dto"), exports);
30
34
  __exportStar(require("./logout-request-dto"), exports);
@@ -0,0 +1,30 @@
1
+ /**
2
+ * EMIL AuthService
3
+ * The EMIL AuthService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface LoginBySsoRequestDto
16
+ */
17
+ export interface LoginBySsoRequestDto {
18
+ /**
19
+ * Authorization code cognito redirected back with
20
+ * @type {string}
21
+ * @memberof LoginBySsoRequestDto
22
+ */
23
+ 'code': string;
24
+ /**
25
+ * Tenant slug
26
+ * @type {string}
27
+ * @memberof LoginBySsoRequestDto
28
+ */
29
+ 'tenantSlug': string;
30
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AuthService
6
+ * The EMIL AuthService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -88,6 +88,12 @@ export interface OrgInvitationClass {
88
88
  * @memberof OrgInvitationClass
89
89
  */
90
90
  'customFields'?: object;
91
+ /**
92
+ * Auto-generated immutable identifier of the invitation.
93
+ * @type {string}
94
+ * @memberof OrgInvitationClass
95
+ */
96
+ 'code': string;
91
97
  /**
92
98
  * Expiry date of invitation email.
93
99
  * @type {string}
@@ -46,10 +46,10 @@ export interface CreateOrgAndUserRequestDto {
46
46
  'country': string;
47
47
  /**
48
48
  * Custom fields of the organization
49
- * @type {object}
49
+ * @type {{ [key: string]: object; }}
50
50
  * @memberof CreateOrgAndUserRequestDto
51
51
  */
52
- 'customFields'?: object;
52
+ 'customFields'?: { [key: string]: object; };
53
53
  /**
54
54
  * User\'s first name
55
55
  * @type {string}
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AuthService
5
+ * The EMIL AuthService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface GetSamlLoginLinkResponseClass
21
+ */
22
+ export interface GetSamlLoginLinkResponseClass {
23
+ /**
24
+ * tenant slug
25
+ * @type {string}
26
+ * @memberof GetSamlLoginLinkResponseClass
27
+ */
28
+ 'tenantSlug': string;
29
+ /**
30
+ * login link url
31
+ * @type {string}
32
+ * @memberof GetSamlLoginLinkResponseClass
33
+ */
34
+ 'samlIdpLoginUrl': string;
35
+ /**
36
+ * Identity Provider id used to brand the SSO button (e.g. \'microsoft\', \'ping\', \'keycloak\').
37
+ * @type {string}
38
+ * @memberof GetSamlLoginLinkResponseClass
39
+ */
40
+ 'provider'?: string;
41
+ /**
42
+ * True when the tenant still logs in through the legacy saml settings.
43
+ * @type {boolean}
44
+ * @memberof GetSamlLoginLinkResponseClass
45
+ */
46
+ 'isLegacy': boolean;
47
+ }
48
+
@@ -0,0 +1,30 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AuthService
5
+ * The EMIL AuthService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface GetSsoLoginConfigRequestDto
21
+ */
22
+ export interface GetSsoLoginConfigRequestDto {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof GetSsoLoginConfigRequestDto
27
+ */
28
+ 'tenantSlug': string;
29
+ }
30
+
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AuthService
5
+ * The EMIL AuthService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface GetSsoLoginConfigResponseClass
21
+ */
22
+ export interface GetSsoLoginConfigResponseClass {
23
+ /**
24
+ * tenant slug
25
+ * @type {string}
26
+ * @memberof GetSsoLoginConfigResponseClass
27
+ */
28
+ 'tenantSlug': string;
29
+ /**
30
+ * Hosted UI url the login button sends the browser to
31
+ * @type {string}
32
+ * @memberof GetSsoLoginConfigResponseClass
33
+ */
34
+ 'loginUrl': string;
35
+ /**
36
+ * Identity provider vendor used to brand the login button (e.g. \'microsoft\').
37
+ * @type {string}
38
+ * @memberof GetSsoLoginConfigResponseClass
39
+ */
40
+ 'provider': string;
41
+ /**
42
+ * Federation protocol, \'saml\' or \'oidc\'.
43
+ * @type {string}
44
+ * @memberof GetSsoLoginConfigResponseClass
45
+ */
46
+ 'protocol'?: string;
47
+ /**
48
+ * True when the tenant still logs in through the legacy saml settings.
49
+ * @type {boolean}
50
+ * @memberof GetSsoLoginConfigResponseClass
51
+ */
52
+ 'isLegacy': boolean;
53
+ }
54
+
package/models/index.ts CHANGED
@@ -5,10 +5,14 @@ export * from './create-user-response-class';
5
5
  export * from './custom-schema-class';
6
6
  export * from './forgot-password-request-dto';
7
7
  export * from './get-saml-login-link-request-dto';
8
+ export * from './get-saml-login-link-response-class';
9
+ export * from './get-sso-login-config-request-dto';
10
+ export * from './get-sso-login-config-response-class';
8
11
  export * from './inline-response200';
9
12
  export * from './inline-response503';
10
13
  export * from './list-workspaces-response-class';
11
14
  export * from './login-by-saml-request-dto';
15
+ export * from './login-by-sso-request-dto';
12
16
  export * from './login-class';
13
17
  export * from './login-request-dto';
14
18
  export * from './logout-request-dto';
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AuthService
5
+ * The EMIL AuthService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface LoginBySsoRequestDto
21
+ */
22
+ export interface LoginBySsoRequestDto {
23
+ /**
24
+ * Authorization code cognito redirected back with
25
+ * @type {string}
26
+ * @memberof LoginBySsoRequestDto
27
+ */
28
+ 'code': string;
29
+ /**
30
+ * Tenant slug
31
+ * @type {string}
32
+ * @memberof LoginBySsoRequestDto
33
+ */
34
+ 'tenantSlug': string;
35
+ }
36
+
@@ -93,6 +93,12 @@ export interface OrgInvitationClass {
93
93
  * @memberof OrgInvitationClass
94
94
  */
95
95
  'customFields'?: object;
96
+ /**
97
+ * Auto-generated immutable identifier of the invitation.
98
+ * @type {string}
99
+ * @memberof OrgInvitationClass
100
+ */
101
+ 'code': string;
96
102
  /**
97
103
  * Expiry date of invitation email.
98
104
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/auth-sdk",
3
- "version": "1.33.1-beta.0",
3
+ "version": "1.33.1-beta.10",
4
4
  "description": "OpenAPI client for @emilgroup/auth-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [