@emilgroup/auth-sdk-node 1.12.1-beta.2 → 1.12.1
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/README.md +2 -2
- package/api/authservice-api.ts +0 -58
- package/dist/api/authservice-api.d.ts +0 -25
- package/dist/api/authservice-api.js +0 -65
- package/package.json +1 -1
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-node@1.12.1
|
|
20
|
+
npm install @emilgroup/auth-sdk-node@1.12.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/auth-sdk-node@1.12.1
|
|
24
|
+
yarn add @emilgroup/auth-sdk-node@1.12.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import ``.
|
package/api/authservice-api.ts
CHANGED
|
@@ -168,37 +168,6 @@ export const AuthserviceApiAxiosParamCreator = function (configuration?: Configu
|
|
|
168
168
|
options: localVarRequestOptions,
|
|
169
169
|
};
|
|
170
170
|
},
|
|
171
|
-
/**
|
|
172
|
-
*
|
|
173
|
-
* @param {*} [options] Override http request option.
|
|
174
|
-
* @throws {RequiredError}
|
|
175
|
-
*/
|
|
176
|
-
generateReadmeToken: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
177
|
-
const localVarPath = `/authservice/v1/readme-token`;
|
|
178
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
179
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
180
|
-
let baseOptions;
|
|
181
|
-
let baseAccessToken;
|
|
182
|
-
if (configuration) {
|
|
183
|
-
baseOptions = configuration.baseOptions;
|
|
184
|
-
baseAccessToken = configuration.accessToken;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
188
|
-
const localVarHeaderParameter = {} as any;
|
|
189
|
-
const localVarQueryParameter = {} as any;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
194
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
195
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
196
|
-
|
|
197
|
-
return {
|
|
198
|
-
url: toPathString(localVarUrlObj),
|
|
199
|
-
options: localVarRequestOptions,
|
|
200
|
-
};
|
|
201
|
-
},
|
|
202
171
|
/**
|
|
203
172
|
* Get SAML login link configured for the tenant in cognito as well as tenant settings
|
|
204
173
|
* @summary Get SAML login link for tenant
|
|
@@ -593,15 +562,6 @@ export const AuthserviceApiFp = function(configuration?: Configuration) {
|
|
|
593
562
|
const localVarAxiosArgs = await localVarAxiosParamCreator.forgotPassword(forgotPasswordRequestDto, options);
|
|
594
563
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
595
564
|
},
|
|
596
|
-
/**
|
|
597
|
-
*
|
|
598
|
-
* @param {*} [options] Override http request option.
|
|
599
|
-
* @throws {RequiredError}
|
|
600
|
-
*/
|
|
601
|
-
async generateReadmeToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
602
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.generateReadmeToken(options);
|
|
603
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
604
|
-
},
|
|
605
565
|
/**
|
|
606
566
|
* Get SAML login link configured for the tenant in cognito as well as tenant settings
|
|
607
567
|
* @summary Get SAML login link for tenant
|
|
@@ -742,14 +702,6 @@ export const AuthserviceApiFactory = function (configuration?: Configuration, ba
|
|
|
742
702
|
forgotPassword(forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: any): AxiosPromise<void> {
|
|
743
703
|
return localVarFp.forgotPassword(forgotPasswordRequestDto, options).then((request) => request(axios, basePath));
|
|
744
704
|
},
|
|
745
|
-
/**
|
|
746
|
-
*
|
|
747
|
-
* @param {*} [options] Override http request option.
|
|
748
|
-
* @throws {RequiredError}
|
|
749
|
-
*/
|
|
750
|
-
generateReadmeToken(options?: any): AxiosPromise<void> {
|
|
751
|
-
return localVarFp.generateReadmeToken(options).then((request) => request(axios, basePath));
|
|
752
|
-
},
|
|
753
705
|
/**
|
|
754
706
|
* Get SAML login link configured for the tenant in cognito as well as tenant settings
|
|
755
707
|
* @summary Get SAML login link for tenant
|
|
@@ -1062,16 +1014,6 @@ export class AuthserviceApi extends BaseAPI {
|
|
|
1062
1014
|
return AuthserviceApiFp(this.configuration).forgotPassword(requestParameters.forgotPasswordRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
1063
1015
|
}
|
|
1064
1016
|
|
|
1065
|
-
/**
|
|
1066
|
-
*
|
|
1067
|
-
* @param {*} [options] Override http request option.
|
|
1068
|
-
* @throws {RequiredError}
|
|
1069
|
-
* @memberof AuthserviceApi
|
|
1070
|
-
*/
|
|
1071
|
-
public generateReadmeToken(options?: AxiosRequestConfig) {
|
|
1072
|
-
return AuthserviceApiFp(this.configuration).generateReadmeToken(options).then((request) => request(this.axios, this.basePath));
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
1017
|
/**
|
|
1076
1018
|
* Get SAML login link configured for the tenant in cognito as well as tenant settings
|
|
1077
1019
|
* @summary Get SAML login link for tenant
|
|
@@ -53,12 +53,6 @@ export declare const AuthserviceApiAxiosParamCreator: (configuration?: Configura
|
|
|
53
53
|
* @throws {RequiredError}
|
|
54
54
|
*/
|
|
55
55
|
forgotPassword: (forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @param {*} [options] Override http request option.
|
|
59
|
-
* @throws {RequiredError}
|
|
60
|
-
*/
|
|
61
|
-
generateReadmeToken: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
62
56
|
/**
|
|
63
57
|
* Get SAML login link configured for the tenant in cognito as well as tenant settings
|
|
64
58
|
* @summary Get SAML login link for tenant
|
|
@@ -162,12 +156,6 @@ export declare const AuthserviceApiFp: (configuration?: Configuration) => {
|
|
|
162
156
|
* @throws {RequiredError}
|
|
163
157
|
*/
|
|
164
158
|
forgotPassword(forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
165
|
-
/**
|
|
166
|
-
*
|
|
167
|
-
* @param {*} [options] Override http request option.
|
|
168
|
-
* @throws {RequiredError}
|
|
169
|
-
*/
|
|
170
|
-
generateReadmeToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
171
159
|
/**
|
|
172
160
|
* Get SAML login link configured for the tenant in cognito as well as tenant settings
|
|
173
161
|
* @summary Get SAML login link for tenant
|
|
@@ -271,12 +259,6 @@ export declare const AuthserviceApiFactory: (configuration?: Configuration, base
|
|
|
271
259
|
* @throws {RequiredError}
|
|
272
260
|
*/
|
|
273
261
|
forgotPassword(forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: any): AxiosPromise<void>;
|
|
274
|
-
/**
|
|
275
|
-
*
|
|
276
|
-
* @param {*} [options] Override http request option.
|
|
277
|
-
* @throws {RequiredError}
|
|
278
|
-
*/
|
|
279
|
-
generateReadmeToken(options?: any): AxiosPromise<void>;
|
|
280
262
|
/**
|
|
281
263
|
* Get SAML login link configured for the tenant in cognito as well as tenant settings
|
|
282
264
|
* @summary Get SAML login link for tenant
|
|
@@ -547,13 +529,6 @@ export declare class AuthserviceApi extends BaseAPI {
|
|
|
547
529
|
* @memberof AuthserviceApi
|
|
548
530
|
*/
|
|
549
531
|
forgotPassword(requestParameters: AuthserviceApiForgotPasswordRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
550
|
-
/**
|
|
551
|
-
*
|
|
552
|
-
* @param {*} [options] Override http request option.
|
|
553
|
-
* @throws {RequiredError}
|
|
554
|
-
* @memberof AuthserviceApi
|
|
555
|
-
*/
|
|
556
|
-
generateReadmeToken(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
557
532
|
/**
|
|
558
533
|
* Get SAML login link configured for the tenant in cognito as well as tenant settings
|
|
559
534
|
* @summary Get SAML login link for tenant
|
|
@@ -201,35 +201,6 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
201
201
|
});
|
|
202
202
|
});
|
|
203
203
|
},
|
|
204
|
-
/**
|
|
205
|
-
*
|
|
206
|
-
* @param {*} [options] Override http request option.
|
|
207
|
-
* @throws {RequiredError}
|
|
208
|
-
*/
|
|
209
|
-
generateReadmeToken: function (options) {
|
|
210
|
-
if (options === void 0) { options = {}; }
|
|
211
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
212
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
213
|
-
return __generator(this, function (_a) {
|
|
214
|
-
localVarPath = "/authservice/v1/readme-token";
|
|
215
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
216
|
-
if (configuration) {
|
|
217
|
-
baseOptions = configuration.baseOptions;
|
|
218
|
-
baseAccessToken = configuration.accessToken;
|
|
219
|
-
}
|
|
220
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
221
|
-
localVarHeaderParameter = {};
|
|
222
|
-
localVarQueryParameter = {};
|
|
223
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
224
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
225
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
226
|
-
return [2 /*return*/, {
|
|
227
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
228
|
-
options: localVarRequestOptions,
|
|
229
|
-
}];
|
|
230
|
-
});
|
|
231
|
-
});
|
|
232
|
-
},
|
|
233
204
|
/**
|
|
234
205
|
* Get SAML login link configured for the tenant in cognito as well as tenant settings
|
|
235
206
|
* @summary Get SAML login link for tenant
|
|
@@ -623,24 +594,6 @@ var AuthserviceApiFp = function (configuration) {
|
|
|
623
594
|
});
|
|
624
595
|
});
|
|
625
596
|
},
|
|
626
|
-
/**
|
|
627
|
-
*
|
|
628
|
-
* @param {*} [options] Override http request option.
|
|
629
|
-
* @throws {RequiredError}
|
|
630
|
-
*/
|
|
631
|
-
generateReadmeToken: function (options) {
|
|
632
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
633
|
-
var localVarAxiosArgs;
|
|
634
|
-
return __generator(this, function (_a) {
|
|
635
|
-
switch (_a.label) {
|
|
636
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.generateReadmeToken(options)];
|
|
637
|
-
case 1:
|
|
638
|
-
localVarAxiosArgs = _a.sent();
|
|
639
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
640
|
-
}
|
|
641
|
-
});
|
|
642
|
-
});
|
|
643
|
-
},
|
|
644
597
|
/**
|
|
645
598
|
* Get SAML login link configured for the tenant in cognito as well as tenant settings
|
|
646
599
|
* @summary Get SAML login link for tenant
|
|
@@ -862,14 +815,6 @@ var AuthserviceApiFactory = function (configuration, basePath, axios) {
|
|
|
862
815
|
forgotPassword: function (forgotPasswordRequestDto, options) {
|
|
863
816
|
return localVarFp.forgotPassword(forgotPasswordRequestDto, options).then(function (request) { return request(axios, basePath); });
|
|
864
817
|
},
|
|
865
|
-
/**
|
|
866
|
-
*
|
|
867
|
-
* @param {*} [options] Override http request option.
|
|
868
|
-
* @throws {RequiredError}
|
|
869
|
-
*/
|
|
870
|
-
generateReadmeToken: function (options) {
|
|
871
|
-
return localVarFp.generateReadmeToken(options).then(function (request) { return request(axios, basePath); });
|
|
872
|
-
},
|
|
873
818
|
/**
|
|
874
819
|
* Get SAML login link configured for the tenant in cognito as well as tenant settings
|
|
875
820
|
* @summary Get SAML login link for tenant
|
|
@@ -1011,16 +956,6 @@ var AuthserviceApi = /** @class */ (function (_super) {
|
|
|
1011
956
|
var _this = this;
|
|
1012
957
|
return (0, exports.AuthserviceApiFp)(this.configuration).forgotPassword(requestParameters.forgotPasswordRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1013
958
|
};
|
|
1014
|
-
/**
|
|
1015
|
-
*
|
|
1016
|
-
* @param {*} [options] Override http request option.
|
|
1017
|
-
* @throws {RequiredError}
|
|
1018
|
-
* @memberof AuthserviceApi
|
|
1019
|
-
*/
|
|
1020
|
-
AuthserviceApi.prototype.generateReadmeToken = function (options) {
|
|
1021
|
-
var _this = this;
|
|
1022
|
-
return (0, exports.AuthserviceApiFp)(this.configuration).generateReadmeToken(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1023
|
-
};
|
|
1024
959
|
/**
|
|
1025
960
|
* Get SAML login link configured for the tenant in cognito as well as tenant settings
|
|
1026
961
|
* @summary Get SAML login link for tenant
|