@matech/thebigpos-sdk 3.25.0-dev-7825 → 3.25.0-dev-7851

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/src/index.ts CHANGED
@@ -6793,6 +6793,10 @@ export interface RequestImpersonationRequest {
6793
6793
  email: string;
6794
6794
  }
6795
6795
 
6796
+ export interface ResendChallengeCodeRequest {
6797
+ sessionId: string;
6798
+ }
6799
+
6796
6800
  export interface ResetPasswordRequest {
6797
6801
  token: string;
6798
6802
  password: string;
@@ -12176,9 +12180,14 @@ export class Api<
12176
12180
  * @secure
12177
12181
  * @response `200` `UserDeactivated` OK
12178
12182
  * @response `422` `UnprocessableEntity` Unprocessable Content
12183
+ * @response `429` `ProblemDetails` Too Many Requests
12184
+ * @response `503` `void` Service Unavailable
12179
12185
  */
12180
12186
  getToken: (data: TokenRequest, params: RequestParams = {}) =>
12181
- this.request<UserDeactivated, UnprocessableEntity>({
12187
+ this.request<
12188
+ UserDeactivated,
12189
+ UnprocessableEntity | ProblemDetails | void
12190
+ >({
12182
12191
  path: `/api/token`,
12183
12192
  method: "POST",
12184
12193
  body: data,
@@ -12197,13 +12206,15 @@ export class Api<
12197
12206
  * @request POST:/api/token/code
12198
12207
  * @secure
12199
12208
  * @response `200` `UserDeactivated` OK
12209
+ * @response `400` `ProblemDetails` Bad Request
12200
12210
  * @response `422` `UnprocessableEntity` Unprocessable Content
12211
+ * @response `429` `ProblemDetails` Too Many Requests
12201
12212
  */
12202
12213
  getTokenFromChallengeCode: (
12203
12214
  data: TokenChallengeRequest,
12204
12215
  params: RequestParams = {},
12205
12216
  ) =>
12206
- this.request<UserDeactivated, UnprocessableEntity>({
12217
+ this.request<UserDeactivated, ProblemDetails | UnprocessableEntity>({
12207
12218
  path: `/api/token/code`,
12208
12219
  method: "POST",
12209
12220
  body: data,
@@ -12213,6 +12224,32 @@ export class Api<
12213
12224
  ...params,
12214
12225
  }),
12215
12226
 
12227
+ /**
12228
+ * No description
12229
+ *
12230
+ * @tags Authentication
12231
+ * @name ResendChallengeCode
12232
+ * @summary Resend Challenge Code
12233
+ * @request POST:/api/token/code/resend
12234
+ * @secure
12235
+ * @response `204` `void` No Content
12236
+ * @response `422` `UnprocessableEntity` Unprocessable Content
12237
+ * @response `429` `ProblemDetails` Too Many Requests
12238
+ * @response `503` `void` Service Unavailable
12239
+ */
12240
+ resendChallengeCode: (
12241
+ data: ResendChallengeCodeRequest,
12242
+ params: RequestParams = {},
12243
+ ) =>
12244
+ this.request<void, UnprocessableEntity | ProblemDetails | void>({
12245
+ path: `/api/token/code/resend`,
12246
+ method: "POST",
12247
+ body: data,
12248
+ secure: true,
12249
+ type: "application/json",
12250
+ ...params,
12251
+ }),
12252
+
12216
12253
  /**
12217
12254
  * No description
12218
12255
  *