@matech/thebigpos-sdk 3.25.0 → 3.26.0-dev-8236

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/package.json CHANGED
@@ -1,12 +1,19 @@
1
1
  {
2
2
  "name": "@matech/thebigpos-sdk",
3
- "version": "3.25.0",
3
+ "version": "3.26.0-dev-8236",
4
4
  "description": "The Big POS Typescript SDK",
5
- "main": "dist/index.js",
5
+ "main": "dist/index.cjs",
6
+ "module": "dist/index.js",
7
+ "react-native": "dist/index.js",
6
8
  "types": "dist/index.d.ts",
9
+ "files": [
10
+ "dist",
11
+ "src",
12
+ "index.js"
13
+ ],
7
14
  "scripts": {
8
- "build": "rimraf dist && tsc",
9
- "test": "mocha -r ts-node/register 'src/api_test.spec.ts' --exit",
15
+ "build": "rimraf dist && tsc && esbuild dist/index.js --format=cjs --platform=node --packages=external --sourcemap --outfile=dist/index.cjs",
16
+ "postbuild": "node -e \"if (typeof require('./').Api !== 'function') { console.error('Smoke check failed: the CommonJS entry does not export Api'); process.exit(1) }\"",
10
17
  "browserify": "tsc && esbuild dist/index.js --bundle --minify --sourcemap --global-name=thebigpos --outfile=dist/thebigpos.min.js",
11
18
  "prepare": "husky"
12
19
  },
@@ -26,15 +33,22 @@
26
33
  "url": "https://github.com/MortgageAutomationTechnologies/thebigpos-sdk-typescript/issues"
27
34
  },
28
35
  "homepage": "https://github.com/MortgageAutomationTechnologies/thebigpos-sdk-typescript#readme",
29
- "dependencies": {
30
- "axios": "^1.7.7"
36
+ "engines": {
37
+ "node": ">=18"
38
+ },
39
+ "peerDependencies": {
40
+ "axios": "^1"
31
41
  },
32
42
  "devDependencies": {
33
- "esbuild": "^0.27.0",
43
+ "axios": "^1.20.0",
44
+ "esbuild": "^0.28.1",
34
45
  "husky": "^9.1.5",
35
- "rimraf": "6.1.1",
36
- "ts-node": "^10.9.2",
46
+ "rimraf": "6.1.3",
37
47
  "typescript": "^5.5.4"
38
48
  },
39
- "swaggerSha256": "8d46ae2f24b2203c1a1582793642cb7426e0d46a96c47900086703f539710607"
49
+ "resolutions": {
50
+ "brace-expansion": "^5.0.12",
51
+ "follow-redirects": "^1.16.1"
52
+ },
53
+ "swaggerSha256": "ae658a5174a513ffe7fa5fcd12b2278b80402828380a78f2fa1061e2189026f3"
40
54
  }
package/src/index.ts CHANGED
@@ -73,6 +73,8 @@ 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
+
76
78
  export type LosWebhookSigningKeySyncStatus = "Unknown" | "Synced";
77
79
 
78
80
  export type LosWebhookInventoryStatus =
@@ -722,6 +724,8 @@ export type AiPromptCategory =
722
724
  | "General"
723
725
  | "Action";
724
726
 
727
+ export type AiPendingLoanUpdateOutcome = "Applied" | "Refused";
728
+
725
729
  export type AiGuardrailCategory =
726
730
  | "ContentSafety"
727
731
  | "PromptInjection"
@@ -735,6 +739,8 @@ export type AiDisplayHint =
735
739
  | "Comparison"
736
740
  | "ExecutiveBrief";
737
741
 
742
+ export type AiChatInputSource = "Keyboard" | "Prompt" | "Action" | "Voice";
743
+
738
744
  export type AiAuditEventType =
739
745
  | "Error"
740
746
  | "GuardrailBlockedPre"
@@ -1011,6 +1017,7 @@ export interface AdminAccessUser {
1011
1017
  title?: string | null;
1012
1018
  forcePasswordReset: boolean;
1013
1019
  mfaEnabled: boolean;
1020
+ mfaFactor: AdminAccessUserMfaFactorEnum;
1014
1021
  phoneVerified: boolean;
1015
1022
  /** @format int32 */
1016
1023
  loginsWithoutMFACount: number;
@@ -1224,6 +1231,7 @@ export interface AiChatMessage {
1224
1231
  assistantResponse: string;
1225
1232
  fieldsAccessed?: string[] | null;
1226
1233
  data: AiChatStructuredData[];
1234
+ source?: AiChatInputSource | null;
1227
1235
  /** @format date-time */
1228
1236
  createdAt: string;
1229
1237
  }
@@ -1247,6 +1255,7 @@ export interface AiChatMetadata {
1247
1255
  wasBlocked: boolean;
1248
1256
  blockedReason?: string | null;
1249
1257
  tokenBudget?: AiTokenBudgetStatus | null;
1258
+ pendingLoanUpdateDecision?: AiPendingLoanUpdateDecision | null;
1250
1259
  }
1251
1260
 
1252
1261
  export interface AiChatRequest {
@@ -1260,6 +1269,7 @@ export interface AiChatRequest {
1260
1269
  promptId?: string | null;
1261
1270
  /** @format uuid */
1262
1271
  pendingLoanUpdateId?: string | null;
1272
+ source?: AiChatInputSource | null;
1263
1273
  }
1264
1274
 
1265
1275
  export interface AiChatStructuredData {
@@ -1312,6 +1322,9 @@ export interface AiConversationAuditSummary {
1312
1322
  userName?: string | null;
1313
1323
  userRole?: string | null;
1314
1324
  name?: string | null;
1325
+ /** @format uuid */
1326
+ loanId?: string | null;
1327
+ loanNumber?: string | null;
1315
1328
  /** @format int32 */
1316
1329
  turnCount: number;
1317
1330
  /** @format int32 */
@@ -1397,6 +1410,13 @@ export interface AiGuardrail {
1397
1410
  updatedBy?: AiUpdatedBy | null;
1398
1411
  }
1399
1412
 
1413
+ export interface AiPendingLoanUpdateDecision {
1414
+ /** @format uuid */
1415
+ pendingLoanUpdateId: string;
1416
+ outcome: AiPendingLoanUpdateDecisionOutcomeEnum;
1417
+ reason?: string | null;
1418
+ }
1419
+
1400
1420
  export interface AiPrompt {
1401
1421
  /** @format uuid */
1402
1422
  id: string;
@@ -1890,6 +1910,7 @@ export interface BranchUser {
1890
1910
  title?: string | null;
1891
1911
  forcePasswordReset: boolean;
1892
1912
  mfaEnabled: boolean;
1913
+ mfaFactor: BranchUserMfaFactorEnum;
1893
1914
  phoneVerified: boolean;
1894
1915
  /** @format int32 */
1895
1916
  loginsWithoutMFACount: number;
@@ -2362,6 +2383,10 @@ export interface ConditionComment {
2362
2383
  createdByName: string;
2363
2384
  }
2364
2385
 
2386
+ export interface ConfirmMfaEnrollmentRequest {
2387
+ code: string;
2388
+ }
2389
+
2365
2390
  export interface ConsumerConnectRetry {
2366
2391
  correlationKey: string;
2367
2392
  email: string;
@@ -2767,6 +2792,7 @@ export interface DetailedUser {
2767
2792
  title?: string | null;
2768
2793
  forcePasswordReset: boolean;
2769
2794
  mfaEnabled: boolean;
2795
+ mfaFactor: DetailedUserMfaFactorEnum;
2770
2796
  phoneVerified: boolean;
2771
2797
  /** @format int32 */
2772
2798
  loginsWithoutMFACount: number;
@@ -3009,7 +3035,6 @@ export interface EnabledServices {
3009
3035
  spanishPrequal?: boolean | null;
3010
3036
  spanishFullApp?: boolean | null;
3011
3037
  prequalLetter?: boolean | null;
3012
- payments?: boolean | null;
3013
3038
  leadApp?: boolean | null;
3014
3039
  documents?: boolean | null;
3015
3040
  loanCalculator?: boolean | null;
@@ -3609,6 +3634,7 @@ export interface ImpersonatedDetailedUser {
3609
3634
  title?: string | null;
3610
3635
  forcePasswordReset: boolean;
3611
3636
  mfaEnabled: boolean;
3637
+ mfaFactor: ImpersonatedDetailedUserMfaFactorEnum;
3612
3638
  phoneVerified: boolean;
3613
3639
  /** @format int32 */
3614
3640
  loginsWithoutMFACount: number;
@@ -6109,6 +6135,23 @@ export interface MaterializeLoanRoleTasks {
6109
6135
  rowsAdded: number;
6110
6136
  }
6111
6137
 
6138
+ export interface MfaEnrollment {
6139
+ enrollmentId: string;
6140
+ factor: MfaEnrollmentFactorEnum;
6141
+ destination?: string | null;
6142
+ /** @format int32 */
6143
+ expiresInSeconds: number;
6144
+ canResend: boolean;
6145
+ }
6146
+
6147
+ export interface MfaMethod {
6148
+ factor: MfaMethodFactorEnum;
6149
+ available: boolean;
6150
+ current: boolean;
6151
+ destination?: string | null;
6152
+ requiresConfirmation: boolean;
6153
+ }
6154
+
6112
6155
  export interface MilestoneConfiguration {
6113
6156
  /** @format date-time */
6114
6157
  createdAt: string;
@@ -6249,6 +6292,9 @@ export interface MyPartner {
6249
6292
  partnerID?: string | null;
6250
6293
  /** @format uuid */
6251
6294
  inviteID?: string | null;
6295
+ /** @format uuid */
6296
+ partnerProfileID?: string | null;
6297
+ links: PartnerFormLink[];
6252
6298
  firstName: string;
6253
6299
  lastName: string;
6254
6300
  email: string;
@@ -6766,6 +6812,10 @@ export interface RequestImpersonationRequest {
6766
6812
  email: string;
6767
6813
  }
6768
6814
 
6815
+ export interface ResendChallengeCodeRequest {
6816
+ sessionId: string;
6817
+ }
6818
+
6769
6819
  export interface ResetPasswordRequest {
6770
6820
  token: string;
6771
6821
  password: string;
@@ -7702,6 +7752,10 @@ export interface StandardLoanField {
7702
7752
  isAiEnabled: boolean;
7703
7753
  }
7704
7754
 
7755
+ export interface StartMfaEnrollmentRequest {
7756
+ factor?: MfaFactor | null;
7757
+ }
7758
+
7705
7759
  export interface SupportedModel {
7706
7760
  modelId: string;
7707
7761
  displayName: string;
@@ -8124,6 +8178,11 @@ export interface UpdateMeRequest {
8124
8178
  preferredLoanOfficerId?: string | null;
8125
8179
  }
8126
8180
 
8181
+ export interface UpdateMfaFactorRequest {
8182
+ factor?: MfaFactor | null;
8183
+ passwordConfirmation?: string | null;
8184
+ }
8185
+
8127
8186
  export interface UpdateMobilePhoneRequest {
8128
8187
  phone: string;
8129
8188
  }
@@ -8335,6 +8394,7 @@ export interface User {
8335
8394
  title?: string | null;
8336
8395
  forcePasswordReset: boolean;
8337
8396
  mfaEnabled: boolean;
8397
+ mfaFactor: UserMfaFactorEnum;
8338
8398
  phoneVerified: boolean;
8339
8399
  /** @format int32 */
8340
8400
  loginsWithoutMFACount: number;
@@ -8523,6 +8583,13 @@ export interface UserLoanTaskUpdateRequest {
8523
8583
  loanDocumentFolderId?: string | null;
8524
8584
  }
8525
8585
 
8586
+ export interface UserMfaState {
8587
+ enabled: boolean;
8588
+ factor: UserMfaStateFactorEnum;
8589
+ required: boolean;
8590
+ methods: MfaMethod[];
8591
+ }
8592
+
8526
8593
  export interface UserMobilePhoneVerificationRequest {
8527
8594
  code: string;
8528
8595
  }
@@ -8727,6 +8794,8 @@ type BaseCanvasWidgetConfigTypeMapping<Key, Type> = {
8727
8794
 
8728
8795
  export type AccountBillingRequestBillingTypeEnum = "ClosedLoan" | "LoanOfficer";
8729
8796
 
8797
+ export type AdminAccessUserMfaFactorEnum = "None" | "Sms" | "Email";
8798
+
8730
8799
  export type AiAuditLogEventTypeEnum =
8731
8800
  | "Error"
8732
8801
  | "GuardrailBlockedPre"
@@ -8785,6 +8854,8 @@ export type AiGuardrailCategoryEnum =
8785
8854
  | "Privacy"
8786
8855
  | "Legal";
8787
8856
 
8857
+ export type AiPendingLoanUpdateDecisionOutcomeEnum = "Applied" | "Refused";
8858
+
8788
8859
  export type AiUrlSourceCategoryEnum =
8789
8860
  | "Regulatory"
8790
8861
  | "Guidelines"
@@ -8848,6 +8919,8 @@ export type BorrowerIdentityRoleEnum =
8848
8919
  | "SettlementAgent"
8849
8920
  | "Admin";
8850
8921
 
8922
+ export type BranchUserMfaFactorEnum = "None" | "Sms" | "Email";
8923
+
8851
8924
  export type CanvasFieldDescriptorSourceEnum = "Standard" | "Custom";
8852
8925
 
8853
8926
  export type CanvasFieldDescriptorDataTypeEnum =
@@ -9147,6 +9220,8 @@ export type CustomFieldValueDataTypeEnum =
9147
9220
  | "SingleSelect"
9148
9221
  | "MultiSelect";
9149
9222
 
9223
+ export type DetailedUserMfaFactorEnum = "None" | "Sms" | "Email";
9224
+
9150
9225
  export type DocumentsWidgetConfigTypeEnum = "Documents";
9151
9226
 
9152
9227
  export type DraftTypeEnum = "NewLoan" | "EditLoan";
@@ -9233,6 +9308,8 @@ export type IpAddressAddressFamilyEnum =
9233
9308
  | "ControllerAreaNetwork"
9234
9309
  | "Unknown";
9235
9310
 
9311
+ export type ImpersonatedDetailedUserMfaFactorEnum = "None" | "Sms" | "Email";
9312
+
9236
9313
  export type IncompleteLoanSourceEnum = "V3" | "LegacyDraft";
9237
9314
 
9238
9315
  export type IncompleteLoanBorrowerApplicationStatusEnum = "Draft" | "Complete";
@@ -9604,6 +9681,10 @@ export type ManualDocumentClassificationRequestDocumentTypeEnum =
9604
9681
  | "AiGeneratedDocument"
9605
9682
  | "Unidentified";
9606
9683
 
9684
+ export type MfaEnrollmentFactorEnum = "None" | "Sms" | "Email";
9685
+
9686
+ export type MfaMethodFactorEnum = "None" | "Sms" | "Email";
9687
+
9607
9688
  export type MonthlyPaymentWidgetConfigTypeEnum = "MonthlyPayment";
9608
9689
 
9609
9690
  export type MyPartnerTierEnum = "Lite" | "LitePlusPortal" | "Pending";
@@ -9730,6 +9811,8 @@ export type UpdateAiUrlSourceRequestCategoryEnum =
9730
9811
 
9731
9812
  export type UpdateAiUrlSourceRequestScopeEnum = "FullDomain" | "SpecificPath";
9732
9813
 
9814
+ export type UserMfaFactorEnum = "None" | "Sms" | "Email";
9815
+
9733
9816
  export type UserDraftRoleEnum =
9734
9817
  | "Borrower"
9735
9818
  | "CoBorrower"
@@ -9783,6 +9866,8 @@ export type UserLoanConsentLosSyncStatusEnum =
9783
9866
  | "Failed"
9784
9867
  | "Success";
9785
9868
 
9869
+ export type UserMfaStateFactorEnum = "None" | "Sms" | "Email";
9870
+
9786
9871
  export type UserTableSettingsTableKeyEnum = "Pipeline";
9787
9872
 
9788
9873
  export type UserTableViewTableKeyEnum = "Pipeline";
@@ -10021,7 +10106,15 @@ export class HttpClient<SecurityDataType = unknown> {
10021
10106
  property instanceof Array ? property : [property];
10022
10107
 
10023
10108
  for (const formItem of propertyContent) {
10024
- const isFileType = formItem instanceof Blob || formItem instanceof File;
10109
+ // React Native files are plain { uri, name, type } objects, not Blob/File.
10110
+ const isReactNativeFile =
10111
+ !!formItem &&
10112
+ typeof formItem === "object" &&
10113
+ "uri" in formItem &&
10114
+ "name" in formItem &&
10115
+ "type" in formItem;
10116
+ const isFileType =
10117
+ isReactNativeFile || formItem instanceof Blob || formItem instanceof File;
10025
10118
  formData.append(
10026
10119
  key,
10027
10120
  isFileType ? formItem : this.stringifyFormItem(formItem),
@@ -10083,7 +10176,7 @@ export class HttpClient<SecurityDataType = unknown> {
10083
10176
 
10084
10177
  /**
10085
10178
  * @title The Big POS API
10086
- * @version v3.25.0
10179
+ * @version v3.26.0
10087
10180
  * @termsOfService https://www.thebigpos.com/terms-of-use/
10088
10181
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
10089
10182
  */
@@ -10778,11 +10871,11 @@ export class Api<
10778
10871
  }),
10779
10872
 
10780
10873
  /**
10781
- * @description startDate and endDate accept any ISO-8601 value. A value with no timezone designator (2026-09-01 or 2026-09-01T00:00:00) is read as UTC; a value with Z or an offset is used as the instant it names. A date-only value names the start of that day, so endDate=2026-09-01 returns nothing recorded on the 1st; to include that day send endDate=2026-09-02, or an explicit time such as 2026-09-01T23:59:59.
10874
+ * @description startDate and endDate accept any ISO-8601 value. A value with no timezone designator (2026-09-01 or 2026-09-01T00:00:00) is read as UTC; a value with Z or an offset is used as the instant it names. A date-only value names the start of that day, so endDate=2026-09-01 returns nothing recorded on the 1st; to include that day send endDate=2026-09-02, or an explicit time such as 2026-09-01T23:59:59. searchText matches a case-insensitive substring of the originating user's name or email, the conversation name or the loan number, or an exact conversation, request or user id.
10782
10875
  *
10783
10876
  * @tags AiAudit
10784
10877
  * @name GetAiAuditConversations
10785
- * @summary List conversations with their audit roll-up — origin user, turns, status, tokens
10878
+ * @summary List conversations with their audit roll-up — origin user, loan, turns, status, tokens
10786
10879
  * @request GET:/api/ai/audit-conversations
10787
10880
  * @secure
10788
10881
  * @response `200` `AiConversationAuditSummaryPaginated` OK
@@ -10908,6 +11001,30 @@ export class Api<
10908
11001
  ...params,
10909
11002
  }),
10910
11003
 
11004
+ /**
11005
+ * No description
11006
+ *
11007
+ * @tags AiChat
11008
+ * @name RejectAiPendingLoanUpdate
11009
+ * @summary Reject a pending AI loan change so a new one can be proposed
11010
+ * @request POST:/api/ai/chats/pending-loan-updates/{pendingLoanUpdateId}/reject
11011
+ * @secure
11012
+ * @response `204` `void` No Content
11013
+ * @response `401` `ProblemDetails` Unauthorized
11014
+ * @response `404` `ProblemDetails` Not Found
11015
+ * @response `429` `ProblemDetails` Too Many Requests
11016
+ */
11017
+ rejectAiPendingLoanUpdate: (
11018
+ pendingLoanUpdateId: string,
11019
+ params: RequestParams = {},
11020
+ ) =>
11021
+ this.request<void, ProblemDetails>({
11022
+ path: `/api/ai/chats/pending-loan-updates/${pendingLoanUpdateId}/reject`,
11023
+ method: "POST",
11024
+ secure: true,
11025
+ ...params,
11026
+ }),
11027
+
10911
11028
  /**
10912
11029
  * No description
10913
11030
  *
@@ -11405,6 +11522,36 @@ export class Api<
11405
11522
  ...params,
11406
11523
  }),
11407
11524
 
11525
+ /**
11526
+ * No description
11527
+ *
11528
+ * @tags AiPromptRun
11529
+ * @name RerunAiPromptRun
11530
+ * @summary Re-run the AI verification bound to a loan task
11531
+ * @request POST:/api/ai/prompt-runs/rerun
11532
+ * @secure
11533
+ * @response `202` `void` Accepted
11534
+ * @response `400` `ProblemDetails` Bad Request
11535
+ * @response `404` `ProblemDetails` Not Found
11536
+ * @response `409` `ProblemDetails` Conflict
11537
+ * @response `429` `ProblemDetails` Too Many Requests
11538
+ * @response `503` `void` Service Unavailable
11539
+ */
11540
+ rerunAiPromptRun: (
11541
+ query?: {
11542
+ /** @format uuid */
11543
+ subjectEntityId?: string;
11544
+ },
11545
+ params: RequestParams = {},
11546
+ ) =>
11547
+ this.request<void, ProblemDetails | void>({
11548
+ path: `/api/ai/prompt-runs/rerun`,
11549
+ method: "POST",
11550
+ query: query,
11551
+ secure: true,
11552
+ ...params,
11553
+ }),
11554
+
11408
11555
  /**
11409
11556
  * No description
11410
11557
  *
@@ -12108,9 +12255,14 @@ export class Api<
12108
12255
  * @secure
12109
12256
  * @response `200` `UserDeactivated` OK
12110
12257
  * @response `422` `UnprocessableEntity` Unprocessable Content
12258
+ * @response `429` `ProblemDetails` Too Many Requests
12259
+ * @response `503` `void` Service Unavailable
12111
12260
  */
12112
12261
  getToken: (data: TokenRequest, params: RequestParams = {}) =>
12113
- this.request<UserDeactivated, UnprocessableEntity>({
12262
+ this.request<
12263
+ UserDeactivated,
12264
+ UnprocessableEntity | ProblemDetails | void
12265
+ >({
12114
12266
  path: `/api/token`,
12115
12267
  method: "POST",
12116
12268
  body: data,
@@ -12129,13 +12281,15 @@ export class Api<
12129
12281
  * @request POST:/api/token/code
12130
12282
  * @secure
12131
12283
  * @response `200` `UserDeactivated` OK
12284
+ * @response `400` `ProblemDetails` Bad Request
12132
12285
  * @response `422` `UnprocessableEntity` Unprocessable Content
12286
+ * @response `429` `ProblemDetails` Too Many Requests
12133
12287
  */
12134
12288
  getTokenFromChallengeCode: (
12135
12289
  data: TokenChallengeRequest,
12136
12290
  params: RequestParams = {},
12137
12291
  ) =>
12138
- this.request<UserDeactivated, UnprocessableEntity>({
12292
+ this.request<UserDeactivated, ProblemDetails | UnprocessableEntity>({
12139
12293
  path: `/api/token/code`,
12140
12294
  method: "POST",
12141
12295
  body: data,
@@ -12145,6 +12299,32 @@ export class Api<
12145
12299
  ...params,
12146
12300
  }),
12147
12301
 
12302
+ /**
12303
+ * No description
12304
+ *
12305
+ * @tags Authentication
12306
+ * @name ResendChallengeCode
12307
+ * @summary Resend Challenge Code
12308
+ * @request POST:/api/token/code/resend
12309
+ * @secure
12310
+ * @response `204` `void` No Content
12311
+ * @response `422` `UnprocessableEntity` Unprocessable Content
12312
+ * @response `429` `ProblemDetails` Too Many Requests
12313
+ * @response `503` `void` Service Unavailable
12314
+ */
12315
+ resendChallengeCode: (
12316
+ data: ResendChallengeCodeRequest,
12317
+ params: RequestParams = {},
12318
+ ) =>
12319
+ this.request<void, UnprocessableEntity | ProblemDetails | void>({
12320
+ path: `/api/token/code/resend`,
12321
+ method: "POST",
12322
+ body: data,
12323
+ secure: true,
12324
+ type: "application/json",
12325
+ ...params,
12326
+ }),
12327
+
12148
12328
  /**
12149
12329
  * No description
12150
12330
  *
@@ -22511,6 +22691,35 @@ export class Api<
22511
22691
  ...params,
22512
22692
  }),
22513
22693
 
22694
+ /**
22695
+ * No description
22696
+ *
22697
+ * @tags Users
22698
+ * @name ClearUserMfa
22699
+ * @summary Clear MFA
22700
+ * @request PUT:/api/users/{id}/mfa
22701
+ * @secure
22702
+ * @response `200` `UserMfaState` OK
22703
+ * @response `400` `ProblemDetails` Bad Request
22704
+ * @response `403` `ProblemDetails` Forbidden
22705
+ * @response `404` `ProblemDetails` Not Found
22706
+ * @response `422` `UnprocessableEntity` Unprocessable Content
22707
+ */
22708
+ clearUserMfa: (
22709
+ id: string,
22710
+ data: UpdateMfaFactorRequest,
22711
+ params: RequestParams = {},
22712
+ ) =>
22713
+ this.request<UserMfaState, ProblemDetails | UnprocessableEntity>({
22714
+ path: `/api/users/${id}/mfa`,
22715
+ method: "PUT",
22716
+ body: data,
22717
+ secure: true,
22718
+ type: "application/json",
22719
+ format: "json",
22720
+ ...params,
22721
+ }),
22722
+
22514
22723
  /**
22515
22724
  * No description
22516
22725
  *
@@ -22937,6 +23146,136 @@ export class Api<
22937
23146
  ...params,
22938
23147
  }),
22939
23148
 
23149
+ /**
23150
+ * No description
23151
+ *
23152
+ * @tags UsersMeMfa
23153
+ * @name GetMyMfa
23154
+ * @summary Get MFA
23155
+ * @request GET:/api/users/me/mfa
23156
+ * @secure
23157
+ * @response `200` `UserMfaState` OK
23158
+ * @response `401` `ProblemDetails` Unauthorized
23159
+ */
23160
+ getMyMfa: (params: RequestParams = {}) =>
23161
+ this.request<UserMfaState, ProblemDetails>({
23162
+ path: `/api/users/me/mfa`,
23163
+ method: "GET",
23164
+ secure: true,
23165
+ format: "json",
23166
+ ...params,
23167
+ }),
23168
+
23169
+ /**
23170
+ * No description
23171
+ *
23172
+ * @tags UsersMeMfa
23173
+ * @name UpdateMyMfa
23174
+ * @summary Update MFA
23175
+ * @request PUT:/api/users/me/mfa
23176
+ * @secure
23177
+ * @response `200` `UserMfaState` OK
23178
+ * @response `400` `ProblemDetails` Bad Request
23179
+ * @response `401` `ProblemDetails` Unauthorized
23180
+ * @response `403` `ProblemDetails` Forbidden
23181
+ * @response `422` `UnprocessableEntity` Unprocessable Content
23182
+ */
23183
+ updateMyMfa: (data: UpdateMfaFactorRequest, params: RequestParams = {}) =>
23184
+ this.request<UserMfaState, ProblemDetails | UnprocessableEntity>({
23185
+ path: `/api/users/me/mfa`,
23186
+ method: "PUT",
23187
+ body: data,
23188
+ secure: true,
23189
+ type: "application/json",
23190
+ format: "json",
23191
+ ...params,
23192
+ }),
23193
+
23194
+ /**
23195
+ * No description
23196
+ *
23197
+ * @tags UsersMeMfa
23198
+ * @name StartMyMfaEnrollment
23199
+ * @summary Start MFA Enrollment
23200
+ * @request POST:/api/users/me/mfa/enrollments
23201
+ * @secure
23202
+ * @response `200` `MfaEnrollment` OK
23203
+ * @response `400` `ProblemDetails` Bad Request
23204
+ * @response `401` `ProblemDetails` Unauthorized
23205
+ * @response `403` `ProblemDetails` Forbidden
23206
+ * @response `422` `UnprocessableEntity` Unprocessable Content
23207
+ * @response `429` `ProblemDetails` Too Many Requests
23208
+ * @response `503` `void` Service Unavailable
23209
+ */
23210
+ startMyMfaEnrollment: (
23211
+ data: StartMfaEnrollmentRequest,
23212
+ params: RequestParams = {},
23213
+ ) =>
23214
+ this.request<MfaEnrollment, ProblemDetails | UnprocessableEntity | void>({
23215
+ path: `/api/users/me/mfa/enrollments`,
23216
+ method: "POST",
23217
+ body: data,
23218
+ secure: true,
23219
+ type: "application/json",
23220
+ format: "json",
23221
+ ...params,
23222
+ }),
23223
+
23224
+ /**
23225
+ * No description
23226
+ *
23227
+ * @tags UsersMeMfa
23228
+ * @name ConfirmMyMfaEnrollment
23229
+ * @summary Confirm MFA Enrollment
23230
+ * @request POST:/api/users/me/mfa/enrollments/{enrollmentId}/confirm
23231
+ * @secure
23232
+ * @response `200` `UserMfaState` OK
23233
+ * @response `400` `ProblemDetails` Bad Request
23234
+ * @response `401` `ProblemDetails` Unauthorized
23235
+ * @response `403` `ProblemDetails` Forbidden
23236
+ * @response `422` `UnprocessableEntity` Unprocessable Content
23237
+ * @response `429` `ProblemDetails` Too Many Requests
23238
+ */
23239
+ confirmMyMfaEnrollment: (
23240
+ enrollmentId: string,
23241
+ data: ConfirmMfaEnrollmentRequest,
23242
+ params: RequestParams = {},
23243
+ ) =>
23244
+ this.request<UserMfaState, ProblemDetails | UnprocessableEntity>({
23245
+ path: `/api/users/me/mfa/enrollments/${enrollmentId}/confirm`,
23246
+ method: "POST",
23247
+ body: data,
23248
+ secure: true,
23249
+ type: "application/json",
23250
+ format: "json",
23251
+ ...params,
23252
+ }),
23253
+
23254
+ /**
23255
+ * No description
23256
+ *
23257
+ * @tags UsersMeMfa
23258
+ * @name ResendMyMfaEnrollmentCode
23259
+ * @summary Resend MFA Enrollment Code
23260
+ * @request POST:/api/users/me/mfa/enrollments/{enrollmentId}/resend
23261
+ * @secure
23262
+ * @response `204` `void` No Content
23263
+ * @response `401` `ProblemDetails` Unauthorized
23264
+ * @response `403` `ProblemDetails` Forbidden
23265
+ * @response `429` `ProblemDetails` Too Many Requests
23266
+ * @response `503` `void` Service Unavailable
23267
+ */
23268
+ resendMyMfaEnrollmentCode: (
23269
+ enrollmentId: string,
23270
+ params: RequestParams = {},
23271
+ ) =>
23272
+ this.request<void, ProblemDetails | void>({
23273
+ path: `/api/users/me/mfa/enrollments/${enrollmentId}/resend`,
23274
+ method: "POST",
23275
+ secure: true,
23276
+ ...params,
23277
+ }),
23278
+
22940
23279
  /**
22941
23280
  * No description
22942
23281
  *
package/.husky/pre-commit DELETED
@@ -1,3 +0,0 @@
1
- [ -f ./src/index.ts ] && node scripts/apply-json-patch-content-type.js
2
- yarn build
3
- git add .