@emilgroup/auth-sdk-node 1.12.0 → 1.12.1-beta.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 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.0 --save
20
+ npm install @emilgroup/auth-sdk-node@1.12.1-beta.1 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/auth-sdk-node@1.12.0
24
+ yarn add @emilgroup/auth-sdk-node@1.12.1-beta.1
25
25
  ```
26
26
 
27
27
  And then you can import ``.
@@ -168,6 +168,37 @@ 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
+ },
171
202
  /**
172
203
  * Get SAML login link configured for the tenant in cognito as well as tenant settings
173
204
  * @summary Get SAML login link for tenant
@@ -562,6 +593,15 @@ export const AuthserviceApiFp = function(configuration?: Configuration) {
562
593
  const localVarAxiosArgs = await localVarAxiosParamCreator.forgotPassword(forgotPasswordRequestDto, options);
563
594
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
564
595
  },
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
+ },
565
605
  /**
566
606
  * Get SAML login link configured for the tenant in cognito as well as tenant settings
567
607
  * @summary Get SAML login link for tenant
@@ -702,6 +742,14 @@ export const AuthserviceApiFactory = function (configuration?: Configuration, ba
702
742
  forgotPassword(forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: any): AxiosPromise<void> {
703
743
  return localVarFp.forgotPassword(forgotPasswordRequestDto, options).then((request) => request(axios, basePath));
704
744
  },
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
+ },
705
753
  /**
706
754
  * Get SAML login link configured for the tenant in cognito as well as tenant settings
707
755
  * @summary Get SAML login link for tenant
@@ -1014,6 +1062,16 @@ export class AuthserviceApi extends BaseAPI {
1014
1062
  return AuthserviceApiFp(this.configuration).forgotPassword(requestParameters.forgotPasswordRequestDto, options).then((request) => request(this.axios, this.basePath));
1015
1063
  }
1016
1064
 
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
+
1017
1075
  /**
1018
1076
  * Get SAML login link configured for the tenant in cognito as well as tenant settings
1019
1077
  * @summary Get SAML login link for tenant
@@ -53,6 +53,12 @@ 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>;
56
62
  /**
57
63
  * Get SAML login link configured for the tenant in cognito as well as tenant settings
58
64
  * @summary Get SAML login link for tenant
@@ -156,6 +162,12 @@ export declare const AuthserviceApiFp: (configuration?: Configuration) => {
156
162
  * @throws {RequiredError}
157
163
  */
158
164
  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>>;
159
171
  /**
160
172
  * Get SAML login link configured for the tenant in cognito as well as tenant settings
161
173
  * @summary Get SAML login link for tenant
@@ -259,6 +271,12 @@ export declare const AuthserviceApiFactory: (configuration?: Configuration, base
259
271
  * @throws {RequiredError}
260
272
  */
261
273
  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>;
262
280
  /**
263
281
  * Get SAML login link configured for the tenant in cognito as well as tenant settings
264
282
  * @summary Get SAML login link for tenant
@@ -529,6 +547,13 @@ export declare class AuthserviceApi extends BaseAPI {
529
547
  * @memberof AuthserviceApi
530
548
  */
531
549
  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>>;
532
557
  /**
533
558
  * Get SAML login link configured for the tenant in cognito as well as tenant settings
534
559
  * @summary Get SAML login link for tenant
@@ -201,6 +201,35 @@ 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
+ },
204
233
  /**
205
234
  * Get SAML login link configured for the tenant in cognito as well as tenant settings
206
235
  * @summary Get SAML login link for tenant
@@ -594,6 +623,24 @@ var AuthserviceApiFp = function (configuration) {
594
623
  });
595
624
  });
596
625
  },
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
+ },
597
644
  /**
598
645
  * Get SAML login link configured for the tenant in cognito as well as tenant settings
599
646
  * @summary Get SAML login link for tenant
@@ -815,6 +862,14 @@ var AuthserviceApiFactory = function (configuration, basePath, axios) {
815
862
  forgotPassword: function (forgotPasswordRequestDto, options) {
816
863
  return localVarFp.forgotPassword(forgotPasswordRequestDto, options).then(function (request) { return request(axios, basePath); });
817
864
  },
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
+ },
818
873
  /**
819
874
  * Get SAML login link configured for the tenant in cognito as well as tenant settings
820
875
  * @summary Get SAML login link for tenant
@@ -956,6 +1011,16 @@ var AuthserviceApi = /** @class */ (function (_super) {
956
1011
  var _this = this;
957
1012
  return (0, exports.AuthserviceApiFp)(this.configuration).forgotPassword(requestParameters.forgotPasswordRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
958
1013
  };
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
+ };
959
1024
  /**
960
1025
  * Get SAML login link configured for the tenant in cognito as well as tenant settings
961
1026
  * @summary Get SAML login link for tenant
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/auth-sdk-node",
3
- "version": "1.12.0",
3
+ "version": "1.12.1-beta.1",
4
4
  "description": "OpenAPI client for @emilgroup/auth-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [