@matech/thebigpos-sdk 3.25.0-dev-7880 → 3.25.0-main-8104

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
@@ -73,8 +73,6 @@ export type PartnerTier = "Lite" | "LitePlusPortal" | "Pending";
73
73
 
74
74
  export type OutboundFailureSeverity = "All" | "Failed" | "CompletedWithErrors";
75
75
 
76
- export type MfaFactor = "None" | "Sms" | "Email";
77
-
78
76
  export type LosWebhookSigningKeySyncStatus = "Unknown" | "Synced";
79
77
 
80
78
  export type LosWebhookInventoryStatus =
@@ -724,8 +722,6 @@ export type AiPromptCategory =
724
722
  | "General"
725
723
  | "Action";
726
724
 
727
- export type AiPendingLoanUpdateOutcome = "Applied" | "Refused";
728
-
729
725
  export type AiGuardrailCategory =
730
726
  | "ContentSafety"
731
727
  | "PromptInjection"
@@ -1015,7 +1011,6 @@ export interface AdminAccessUser {
1015
1011
  title?: string | null;
1016
1012
  forcePasswordReset: boolean;
1017
1013
  mfaEnabled: boolean;
1018
- mfaFactor: AdminAccessUserMfaFactorEnum;
1019
1014
  phoneVerified: boolean;
1020
1015
  /** @format int32 */
1021
1016
  loginsWithoutMFACount: number;
@@ -1252,7 +1247,6 @@ export interface AiChatMetadata {
1252
1247
  wasBlocked: boolean;
1253
1248
  blockedReason?: string | null;
1254
1249
  tokenBudget?: AiTokenBudgetStatus | null;
1255
- pendingLoanUpdateDecision?: AiPendingLoanUpdateDecision | null;
1256
1250
  }
1257
1251
 
1258
1252
  export interface AiChatRequest {
@@ -1403,13 +1397,6 @@ export interface AiGuardrail {
1403
1397
  updatedBy?: AiUpdatedBy | null;
1404
1398
  }
1405
1399
 
1406
- export interface AiPendingLoanUpdateDecision {
1407
- /** @format uuid */
1408
- pendingLoanUpdateId: string;
1409
- outcome: AiPendingLoanUpdateDecisionOutcomeEnum;
1410
- reason?: string | null;
1411
- }
1412
-
1413
1400
  export interface AiPrompt {
1414
1401
  /** @format uuid */
1415
1402
  id: string;
@@ -1903,7 +1890,6 @@ export interface BranchUser {
1903
1890
  title?: string | null;
1904
1891
  forcePasswordReset: boolean;
1905
1892
  mfaEnabled: boolean;
1906
- mfaFactor: BranchUserMfaFactorEnum;
1907
1893
  phoneVerified: boolean;
1908
1894
  /** @format int32 */
1909
1895
  loginsWithoutMFACount: number;
@@ -2376,10 +2362,6 @@ export interface ConditionComment {
2376
2362
  createdByName: string;
2377
2363
  }
2378
2364
 
2379
- export interface ConfirmMfaEnrollmentRequest {
2380
- code: string;
2381
- }
2382
-
2383
2365
  export interface ConsumerConnectRetry {
2384
2366
  correlationKey: string;
2385
2367
  email: string;
@@ -2785,7 +2767,6 @@ export interface DetailedUser {
2785
2767
  title?: string | null;
2786
2768
  forcePasswordReset: boolean;
2787
2769
  mfaEnabled: boolean;
2788
- mfaFactor: DetailedUserMfaFactorEnum;
2789
2770
  phoneVerified: boolean;
2790
2771
  /** @format int32 */
2791
2772
  loginsWithoutMFACount: number;
@@ -3628,7 +3609,6 @@ export interface ImpersonatedDetailedUser {
3628
3609
  title?: string | null;
3629
3610
  forcePasswordReset: boolean;
3630
3611
  mfaEnabled: boolean;
3631
- mfaFactor: ImpersonatedDetailedUserMfaFactorEnum;
3632
3612
  phoneVerified: boolean;
3633
3613
  /** @format int32 */
3634
3614
  loginsWithoutMFACount: number;
@@ -6129,23 +6109,6 @@ export interface MaterializeLoanRoleTasks {
6129
6109
  rowsAdded: number;
6130
6110
  }
6131
6111
 
6132
- export interface MfaEnrollment {
6133
- enrollmentId: string;
6134
- factor: MfaEnrollmentFactorEnum;
6135
- destination?: string | null;
6136
- /** @format int32 */
6137
- expiresInSeconds: number;
6138
- canResend: boolean;
6139
- }
6140
-
6141
- export interface MfaMethod {
6142
- factor: MfaMethodFactorEnum;
6143
- available: boolean;
6144
- current: boolean;
6145
- destination?: string | null;
6146
- requiresConfirmation: boolean;
6147
- }
6148
-
6149
6112
  export interface MilestoneConfiguration {
6150
6113
  /** @format date-time */
6151
6114
  createdAt: string;
@@ -6803,10 +6766,6 @@ export interface RequestImpersonationRequest {
6803
6766
  email: string;
6804
6767
  }
6805
6768
 
6806
- export interface ResendChallengeCodeRequest {
6807
- sessionId: string;
6808
- }
6809
-
6810
6769
  export interface ResetPasswordRequest {
6811
6770
  token: string;
6812
6771
  password: string;
@@ -7743,10 +7702,6 @@ export interface StandardLoanField {
7743
7702
  isAiEnabled: boolean;
7744
7703
  }
7745
7704
 
7746
- export interface StartMfaEnrollmentRequest {
7747
- factor?: MfaFactor | null;
7748
- }
7749
-
7750
7705
  export interface SupportedModel {
7751
7706
  modelId: string;
7752
7707
  displayName: string;
@@ -8169,11 +8124,6 @@ export interface UpdateMeRequest {
8169
8124
  preferredLoanOfficerId?: string | null;
8170
8125
  }
8171
8126
 
8172
- export interface UpdateMfaFactorRequest {
8173
- factor?: MfaFactor | null;
8174
- passwordConfirmation?: string | null;
8175
- }
8176
-
8177
8127
  export interface UpdateMobilePhoneRequest {
8178
8128
  phone: string;
8179
8129
  }
@@ -8385,7 +8335,6 @@ export interface User {
8385
8335
  title?: string | null;
8386
8336
  forcePasswordReset: boolean;
8387
8337
  mfaEnabled: boolean;
8388
- mfaFactor: UserMfaFactorEnum;
8389
8338
  phoneVerified: boolean;
8390
8339
  /** @format int32 */
8391
8340
  loginsWithoutMFACount: number;
@@ -8574,13 +8523,6 @@ export interface UserLoanTaskUpdateRequest {
8574
8523
  loanDocumentFolderId?: string | null;
8575
8524
  }
8576
8525
 
8577
- export interface UserMfaState {
8578
- enabled: boolean;
8579
- factor: UserMfaStateFactorEnum;
8580
- required: boolean;
8581
- methods: MfaMethod[];
8582
- }
8583
-
8584
8526
  export interface UserMobilePhoneVerificationRequest {
8585
8527
  code: string;
8586
8528
  }
@@ -8785,8 +8727,6 @@ type BaseCanvasWidgetConfigTypeMapping<Key, Type> = {
8785
8727
 
8786
8728
  export type AccountBillingRequestBillingTypeEnum = "ClosedLoan" | "LoanOfficer";
8787
8729
 
8788
- export type AdminAccessUserMfaFactorEnum = "None" | "Sms" | "Email";
8789
-
8790
8730
  export type AiAuditLogEventTypeEnum =
8791
8731
  | "Error"
8792
8732
  | "GuardrailBlockedPre"
@@ -8845,8 +8785,6 @@ export type AiGuardrailCategoryEnum =
8845
8785
  | "Privacy"
8846
8786
  | "Legal";
8847
8787
 
8848
- export type AiPendingLoanUpdateDecisionOutcomeEnum = "Applied" | "Refused";
8849
-
8850
8788
  export type AiUrlSourceCategoryEnum =
8851
8789
  | "Regulatory"
8852
8790
  | "Guidelines"
@@ -8910,8 +8848,6 @@ export type BorrowerIdentityRoleEnum =
8910
8848
  | "SettlementAgent"
8911
8849
  | "Admin";
8912
8850
 
8913
- export type BranchUserMfaFactorEnum = "None" | "Sms" | "Email";
8914
-
8915
8851
  export type CanvasFieldDescriptorSourceEnum = "Standard" | "Custom";
8916
8852
 
8917
8853
  export type CanvasFieldDescriptorDataTypeEnum =
@@ -9211,8 +9147,6 @@ export type CustomFieldValueDataTypeEnum =
9211
9147
  | "SingleSelect"
9212
9148
  | "MultiSelect";
9213
9149
 
9214
- export type DetailedUserMfaFactorEnum = "None" | "Sms" | "Email";
9215
-
9216
9150
  export type DocumentsWidgetConfigTypeEnum = "Documents";
9217
9151
 
9218
9152
  export type DraftTypeEnum = "NewLoan" | "EditLoan";
@@ -9299,8 +9233,6 @@ export type IpAddressAddressFamilyEnum =
9299
9233
  | "ControllerAreaNetwork"
9300
9234
  | "Unknown";
9301
9235
 
9302
- export type ImpersonatedDetailedUserMfaFactorEnum = "None" | "Sms" | "Email";
9303
-
9304
9236
  export type IncompleteLoanSourceEnum = "V3" | "LegacyDraft";
9305
9237
 
9306
9238
  export type IncompleteLoanBorrowerApplicationStatusEnum = "Draft" | "Complete";
@@ -9672,10 +9604,6 @@ export type ManualDocumentClassificationRequestDocumentTypeEnum =
9672
9604
  | "AiGeneratedDocument"
9673
9605
  | "Unidentified";
9674
9606
 
9675
- export type MfaEnrollmentFactorEnum = "None" | "Sms" | "Email";
9676
-
9677
- export type MfaMethodFactorEnum = "None" | "Sms" | "Email";
9678
-
9679
9607
  export type MonthlyPaymentWidgetConfigTypeEnum = "MonthlyPayment";
9680
9608
 
9681
9609
  export type MyPartnerTierEnum = "Lite" | "LitePlusPortal" | "Pending";
@@ -9802,8 +9730,6 @@ export type UpdateAiUrlSourceRequestCategoryEnum =
9802
9730
 
9803
9731
  export type UpdateAiUrlSourceRequestScopeEnum = "FullDomain" | "SpecificPath";
9804
9732
 
9805
- export type UserMfaFactorEnum = "None" | "Sms" | "Email";
9806
-
9807
9733
  export type UserDraftRoleEnum =
9808
9734
  | "Borrower"
9809
9735
  | "CoBorrower"
@@ -9857,8 +9783,6 @@ export type UserLoanConsentLosSyncStatusEnum =
9857
9783
  | "Failed"
9858
9784
  | "Success";
9859
9785
 
9860
- export type UserMfaStateFactorEnum = "None" | "Sms" | "Email";
9861
-
9862
9786
  export type UserTableSettingsTableKeyEnum = "Pipeline";
9863
9787
 
9864
9788
  export type UserTableViewTableKeyEnum = "Pipeline";
@@ -10992,30 +10916,6 @@ export class Api<
10992
10916
  ...params,
10993
10917
  }),
10994
10918
 
10995
- /**
10996
- * No description
10997
- *
10998
- * @tags AiChat
10999
- * @name RejectAiPendingLoanUpdate
11000
- * @summary Reject a pending AI loan change so a new one can be proposed
11001
- * @request POST:/api/ai/chats/pending-loan-updates/{pendingLoanUpdateId}/reject
11002
- * @secure
11003
- * @response `204` `void` No Content
11004
- * @response `401` `ProblemDetails` Unauthorized
11005
- * @response `404` `ProblemDetails` Not Found
11006
- * @response `429` `ProblemDetails` Too Many Requests
11007
- */
11008
- rejectAiPendingLoanUpdate: (
11009
- pendingLoanUpdateId: string,
11010
- params: RequestParams = {},
11011
- ) =>
11012
- this.request<void, ProblemDetails>({
11013
- path: `/api/ai/chats/pending-loan-updates/${pendingLoanUpdateId}/reject`,
11014
- method: "POST",
11015
- secure: true,
11016
- ...params,
11017
- }),
11018
-
11019
10919
  /**
11020
10920
  * No description
11021
10921
  *
@@ -12216,14 +12116,9 @@ export class Api<
12216
12116
  * @secure
12217
12117
  * @response `200` `UserDeactivated` OK
12218
12118
  * @response `422` `UnprocessableEntity` Unprocessable Content
12219
- * @response `429` `ProblemDetails` Too Many Requests
12220
- * @response `503` `void` Service Unavailable
12221
12119
  */
12222
12120
  getToken: (data: TokenRequest, params: RequestParams = {}) =>
12223
- this.request<
12224
- UserDeactivated,
12225
- UnprocessableEntity | ProblemDetails | void
12226
- >({
12121
+ this.request<UserDeactivated, UnprocessableEntity>({
12227
12122
  path: `/api/token`,
12228
12123
  method: "POST",
12229
12124
  body: data,
@@ -12242,15 +12137,13 @@ export class Api<
12242
12137
  * @request POST:/api/token/code
12243
12138
  * @secure
12244
12139
  * @response `200` `UserDeactivated` OK
12245
- * @response `400` `ProblemDetails` Bad Request
12246
12140
  * @response `422` `UnprocessableEntity` Unprocessable Content
12247
- * @response `429` `ProblemDetails` Too Many Requests
12248
12141
  */
12249
12142
  getTokenFromChallengeCode: (
12250
12143
  data: TokenChallengeRequest,
12251
12144
  params: RequestParams = {},
12252
12145
  ) =>
12253
- this.request<UserDeactivated, ProblemDetails | UnprocessableEntity>({
12146
+ this.request<UserDeactivated, UnprocessableEntity>({
12254
12147
  path: `/api/token/code`,
12255
12148
  method: "POST",
12256
12149
  body: data,
@@ -12260,32 +12153,6 @@ export class Api<
12260
12153
  ...params,
12261
12154
  }),
12262
12155
 
12263
- /**
12264
- * No description
12265
- *
12266
- * @tags Authentication
12267
- * @name ResendChallengeCode
12268
- * @summary Resend Challenge Code
12269
- * @request POST:/api/token/code/resend
12270
- * @secure
12271
- * @response `204` `void` No Content
12272
- * @response `422` `UnprocessableEntity` Unprocessable Content
12273
- * @response `429` `ProblemDetails` Too Many Requests
12274
- * @response `503` `void` Service Unavailable
12275
- */
12276
- resendChallengeCode: (
12277
- data: ResendChallengeCodeRequest,
12278
- params: RequestParams = {},
12279
- ) =>
12280
- this.request<void, UnprocessableEntity | ProblemDetails | void>({
12281
- path: `/api/token/code/resend`,
12282
- method: "POST",
12283
- body: data,
12284
- secure: true,
12285
- type: "application/json",
12286
- ...params,
12287
- }),
12288
-
12289
12156
  /**
12290
12157
  * No description
12291
12158
  *
@@ -22652,35 +22519,6 @@ export class Api<
22652
22519
  ...params,
22653
22520
  }),
22654
22521
 
22655
- /**
22656
- * No description
22657
- *
22658
- * @tags Users
22659
- * @name ClearUserMfa
22660
- * @summary Clear MFA
22661
- * @request PUT:/api/users/{id}/mfa
22662
- * @secure
22663
- * @response `200` `UserMfaState` OK
22664
- * @response `400` `ProblemDetails` Bad Request
22665
- * @response `403` `ProblemDetails` Forbidden
22666
- * @response `404` `ProblemDetails` Not Found
22667
- * @response `422` `UnprocessableEntity` Unprocessable Content
22668
- */
22669
- clearUserMfa: (
22670
- id: string,
22671
- data: UpdateMfaFactorRequest,
22672
- params: RequestParams = {},
22673
- ) =>
22674
- this.request<UserMfaState, ProblemDetails | UnprocessableEntity>({
22675
- path: `/api/users/${id}/mfa`,
22676
- method: "PUT",
22677
- body: data,
22678
- secure: true,
22679
- type: "application/json",
22680
- format: "json",
22681
- ...params,
22682
- }),
22683
-
22684
22522
  /**
22685
22523
  * No description
22686
22524
  *
@@ -23107,136 +22945,6 @@ export class Api<
23107
22945
  ...params,
23108
22946
  }),
23109
22947
 
23110
- /**
23111
- * No description
23112
- *
23113
- * @tags UsersMeMfa
23114
- * @name GetMyMfa
23115
- * @summary Get MFA
23116
- * @request GET:/api/users/me/mfa
23117
- * @secure
23118
- * @response `200` `UserMfaState` OK
23119
- * @response `401` `ProblemDetails` Unauthorized
23120
- */
23121
- getMyMfa: (params: RequestParams = {}) =>
23122
- this.request<UserMfaState, ProblemDetails>({
23123
- path: `/api/users/me/mfa`,
23124
- method: "GET",
23125
- secure: true,
23126
- format: "json",
23127
- ...params,
23128
- }),
23129
-
23130
- /**
23131
- * No description
23132
- *
23133
- * @tags UsersMeMfa
23134
- * @name UpdateMyMfa
23135
- * @summary Update MFA
23136
- * @request PUT:/api/users/me/mfa
23137
- * @secure
23138
- * @response `200` `UserMfaState` OK
23139
- * @response `400` `ProblemDetails` Bad Request
23140
- * @response `401` `ProblemDetails` Unauthorized
23141
- * @response `403` `ProblemDetails` Forbidden
23142
- * @response `422` `UnprocessableEntity` Unprocessable Content
23143
- */
23144
- updateMyMfa: (data: UpdateMfaFactorRequest, params: RequestParams = {}) =>
23145
- this.request<UserMfaState, ProblemDetails | UnprocessableEntity>({
23146
- path: `/api/users/me/mfa`,
23147
- method: "PUT",
23148
- body: data,
23149
- secure: true,
23150
- type: "application/json",
23151
- format: "json",
23152
- ...params,
23153
- }),
23154
-
23155
- /**
23156
- * No description
23157
- *
23158
- * @tags UsersMeMfa
23159
- * @name StartMyMfaEnrollment
23160
- * @summary Start MFA Enrollment
23161
- * @request POST:/api/users/me/mfa/enrollments
23162
- * @secure
23163
- * @response `200` `MfaEnrollment` OK
23164
- * @response `400` `ProblemDetails` Bad Request
23165
- * @response `401` `ProblemDetails` Unauthorized
23166
- * @response `403` `ProblemDetails` Forbidden
23167
- * @response `422` `UnprocessableEntity` Unprocessable Content
23168
- * @response `429` `ProblemDetails` Too Many Requests
23169
- * @response `503` `void` Service Unavailable
23170
- */
23171
- startMyMfaEnrollment: (
23172
- data: StartMfaEnrollmentRequest,
23173
- params: RequestParams = {},
23174
- ) =>
23175
- this.request<MfaEnrollment, ProblemDetails | UnprocessableEntity | void>({
23176
- path: `/api/users/me/mfa/enrollments`,
23177
- method: "POST",
23178
- body: data,
23179
- secure: true,
23180
- type: "application/json",
23181
- format: "json",
23182
- ...params,
23183
- }),
23184
-
23185
- /**
23186
- * No description
23187
- *
23188
- * @tags UsersMeMfa
23189
- * @name ConfirmMyMfaEnrollment
23190
- * @summary Confirm MFA Enrollment
23191
- * @request POST:/api/users/me/mfa/enrollments/{enrollmentId}/confirm
23192
- * @secure
23193
- * @response `200` `UserMfaState` OK
23194
- * @response `400` `ProblemDetails` Bad Request
23195
- * @response `401` `ProblemDetails` Unauthorized
23196
- * @response `403` `ProblemDetails` Forbidden
23197
- * @response `422` `UnprocessableEntity` Unprocessable Content
23198
- * @response `429` `ProblemDetails` Too Many Requests
23199
- */
23200
- confirmMyMfaEnrollment: (
23201
- enrollmentId: string,
23202
- data: ConfirmMfaEnrollmentRequest,
23203
- params: RequestParams = {},
23204
- ) =>
23205
- this.request<UserMfaState, ProblemDetails | UnprocessableEntity>({
23206
- path: `/api/users/me/mfa/enrollments/${enrollmentId}/confirm`,
23207
- method: "POST",
23208
- body: data,
23209
- secure: true,
23210
- type: "application/json",
23211
- format: "json",
23212
- ...params,
23213
- }),
23214
-
23215
- /**
23216
- * No description
23217
- *
23218
- * @tags UsersMeMfa
23219
- * @name ResendMyMfaEnrollmentCode
23220
- * @summary Resend MFA Enrollment Code
23221
- * @request POST:/api/users/me/mfa/enrollments/{enrollmentId}/resend
23222
- * @secure
23223
- * @response `204` `void` No Content
23224
- * @response `401` `ProblemDetails` Unauthorized
23225
- * @response `403` `ProblemDetails` Forbidden
23226
- * @response `429` `ProblemDetails` Too Many Requests
23227
- * @response `503` `void` Service Unavailable
23228
- */
23229
- resendMyMfaEnrollmentCode: (
23230
- enrollmentId: string,
23231
- params: RequestParams = {},
23232
- ) =>
23233
- this.request<void, ProblemDetails | void>({
23234
- path: `/api/users/me/mfa/enrollments/${enrollmentId}/resend`,
23235
- method: "POST",
23236
- secure: true,
23237
- ...params,
23238
- }),
23239
-
23240
22948
  /**
23241
22949
  * No description
23242
22950
  *