@matech/thebigpos-sdk 3.25.0-dev-7801 → 3.25.0-dev-7840
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/dist/index.cjs +52 -0
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +67 -0
- package/dist/index.js +52 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +113 -2
package/src/index.ts
CHANGED
|
@@ -2366,6 +2366,10 @@ export interface ConditionComment {
|
|
|
2366
2366
|
createdByName: string;
|
|
2367
2367
|
}
|
|
2368
2368
|
|
|
2369
|
+
export interface ConfirmMfaEnrollmentRequest {
|
|
2370
|
+
code: string;
|
|
2371
|
+
}
|
|
2372
|
+
|
|
2369
2373
|
export interface ConsumerConnectRetry {
|
|
2370
2374
|
correlationKey: string;
|
|
2371
2375
|
email: string;
|
|
@@ -6115,6 +6119,15 @@ export interface MaterializeLoanRoleTasks {
|
|
|
6115
6119
|
rowsAdded: number;
|
|
6116
6120
|
}
|
|
6117
6121
|
|
|
6122
|
+
export interface MfaEnrollment {
|
|
6123
|
+
enrollmentId: string;
|
|
6124
|
+
factor: MfaEnrollmentFactorEnum;
|
|
6125
|
+
destination?: string | null;
|
|
6126
|
+
/** @format int32 */
|
|
6127
|
+
expiresInSeconds: number;
|
|
6128
|
+
canResend: boolean;
|
|
6129
|
+
}
|
|
6130
|
+
|
|
6118
6131
|
export interface MfaMethod {
|
|
6119
6132
|
factor: MfaMethodFactorEnum;
|
|
6120
6133
|
available: boolean;
|
|
@@ -7716,6 +7729,10 @@ export interface StandardLoanField {
|
|
|
7716
7729
|
isAiEnabled: boolean;
|
|
7717
7730
|
}
|
|
7718
7731
|
|
|
7732
|
+
export interface StartMfaEnrollmentRequest {
|
|
7733
|
+
factor?: MfaFactor | null;
|
|
7734
|
+
}
|
|
7735
|
+
|
|
7719
7736
|
export interface SupportedModel {
|
|
7720
7737
|
modelId: string;
|
|
7721
7738
|
displayName: string;
|
|
@@ -9639,6 +9656,8 @@ export type ManualDocumentClassificationRequestDocumentTypeEnum =
|
|
|
9639
9656
|
| "AiGeneratedDocument"
|
|
9640
9657
|
| "Unidentified";
|
|
9641
9658
|
|
|
9659
|
+
export type MfaEnrollmentFactorEnum = "None" | "Sms" | "Email";
|
|
9660
|
+
|
|
9642
9661
|
export type MfaMethodFactorEnum = "None" | "Sms" | "Email";
|
|
9643
9662
|
|
|
9644
9663
|
export type MonthlyPaymentWidgetConfigTypeEnum = "MonthlyPayment";
|
|
@@ -12157,9 +12176,14 @@ export class Api<
|
|
|
12157
12176
|
* @secure
|
|
12158
12177
|
* @response `200` `UserDeactivated` OK
|
|
12159
12178
|
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
12179
|
+
* @response `429` `ProblemDetails` Too Many Requests
|
|
12180
|
+
* @response `503` `void` Service Unavailable
|
|
12160
12181
|
*/
|
|
12161
12182
|
getToken: (data: TokenRequest, params: RequestParams = {}) =>
|
|
12162
|
-
this.request<
|
|
12183
|
+
this.request<
|
|
12184
|
+
UserDeactivated,
|
|
12185
|
+
UnprocessableEntity | ProblemDetails | void
|
|
12186
|
+
>({
|
|
12163
12187
|
path: `/api/token`,
|
|
12164
12188
|
method: "POST",
|
|
12165
12189
|
body: data,
|
|
@@ -12178,13 +12202,15 @@ export class Api<
|
|
|
12178
12202
|
* @request POST:/api/token/code
|
|
12179
12203
|
* @secure
|
|
12180
12204
|
* @response `200` `UserDeactivated` OK
|
|
12205
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
12181
12206
|
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
12207
|
+
* @response `429` `ProblemDetails` Too Many Requests
|
|
12182
12208
|
*/
|
|
12183
12209
|
getTokenFromChallengeCode: (
|
|
12184
12210
|
data: TokenChallengeRequest,
|
|
12185
12211
|
params: RequestParams = {},
|
|
12186
12212
|
) =>
|
|
12187
|
-
this.request<UserDeactivated, UnprocessableEntity>({
|
|
12213
|
+
this.request<UserDeactivated, ProblemDetails | UnprocessableEntity>({
|
|
12188
12214
|
path: `/api/token/code`,
|
|
12189
12215
|
method: "POST",
|
|
12190
12216
|
body: data,
|
|
@@ -23060,6 +23086,91 @@ export class Api<
|
|
|
23060
23086
|
...params,
|
|
23061
23087
|
}),
|
|
23062
23088
|
|
|
23089
|
+
/**
|
|
23090
|
+
* No description
|
|
23091
|
+
*
|
|
23092
|
+
* @tags UsersMeMfa
|
|
23093
|
+
* @name StartMyMfaEnrollment
|
|
23094
|
+
* @summary Start MFA Enrollment
|
|
23095
|
+
* @request POST:/api/users/me/mfa/enrollments
|
|
23096
|
+
* @secure
|
|
23097
|
+
* @response `200` `MfaEnrollment` OK
|
|
23098
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
23099
|
+
* @response `401` `ProblemDetails` Unauthorized
|
|
23100
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
23101
|
+
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
23102
|
+
* @response `429` `ProblemDetails` Too Many Requests
|
|
23103
|
+
* @response `503` `void` Service Unavailable
|
|
23104
|
+
*/
|
|
23105
|
+
startMyMfaEnrollment: (
|
|
23106
|
+
data: StartMfaEnrollmentRequest,
|
|
23107
|
+
params: RequestParams = {},
|
|
23108
|
+
) =>
|
|
23109
|
+
this.request<MfaEnrollment, ProblemDetails | UnprocessableEntity | void>({
|
|
23110
|
+
path: `/api/users/me/mfa/enrollments`,
|
|
23111
|
+
method: "POST",
|
|
23112
|
+
body: data,
|
|
23113
|
+
secure: true,
|
|
23114
|
+
type: "application/json",
|
|
23115
|
+
format: "json",
|
|
23116
|
+
...params,
|
|
23117
|
+
}),
|
|
23118
|
+
|
|
23119
|
+
/**
|
|
23120
|
+
* No description
|
|
23121
|
+
*
|
|
23122
|
+
* @tags UsersMeMfa
|
|
23123
|
+
* @name ConfirmMyMfaEnrollment
|
|
23124
|
+
* @summary Confirm MFA Enrollment
|
|
23125
|
+
* @request POST:/api/users/me/mfa/enrollments/{enrollmentId}/confirm
|
|
23126
|
+
* @secure
|
|
23127
|
+
* @response `200` `UserMfaState` OK
|
|
23128
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
23129
|
+
* @response `401` `ProblemDetails` Unauthorized
|
|
23130
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
23131
|
+
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
23132
|
+
* @response `429` `ProblemDetails` Too Many Requests
|
|
23133
|
+
*/
|
|
23134
|
+
confirmMyMfaEnrollment: (
|
|
23135
|
+
enrollmentId: string,
|
|
23136
|
+
data: ConfirmMfaEnrollmentRequest,
|
|
23137
|
+
params: RequestParams = {},
|
|
23138
|
+
) =>
|
|
23139
|
+
this.request<UserMfaState, ProblemDetails | UnprocessableEntity>({
|
|
23140
|
+
path: `/api/users/me/mfa/enrollments/${enrollmentId}/confirm`,
|
|
23141
|
+
method: "POST",
|
|
23142
|
+
body: data,
|
|
23143
|
+
secure: true,
|
|
23144
|
+
type: "application/json",
|
|
23145
|
+
format: "json",
|
|
23146
|
+
...params,
|
|
23147
|
+
}),
|
|
23148
|
+
|
|
23149
|
+
/**
|
|
23150
|
+
* No description
|
|
23151
|
+
*
|
|
23152
|
+
* @tags UsersMeMfa
|
|
23153
|
+
* @name ResendMyMfaEnrollmentCode
|
|
23154
|
+
* @summary Resend MFA Enrollment Code
|
|
23155
|
+
* @request POST:/api/users/me/mfa/enrollments/{enrollmentId}/resend
|
|
23156
|
+
* @secure
|
|
23157
|
+
* @response `204` `void` No Content
|
|
23158
|
+
* @response `401` `ProblemDetails` Unauthorized
|
|
23159
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
23160
|
+
* @response `429` `ProblemDetails` Too Many Requests
|
|
23161
|
+
* @response `503` `void` Service Unavailable
|
|
23162
|
+
*/
|
|
23163
|
+
resendMyMfaEnrollmentCode: (
|
|
23164
|
+
enrollmentId: string,
|
|
23165
|
+
params: RequestParams = {},
|
|
23166
|
+
) =>
|
|
23167
|
+
this.request<void, ProblemDetails | void>({
|
|
23168
|
+
path: `/api/users/me/mfa/enrollments/${enrollmentId}/resend`,
|
|
23169
|
+
method: "POST",
|
|
23170
|
+
secure: true,
|
|
23171
|
+
...params,
|
|
23172
|
+
}),
|
|
23173
|
+
|
|
23063
23174
|
/**
|
|
23064
23175
|
* No description
|
|
23065
23176
|
*
|