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

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-8210",
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": "aa916a037dfde882eb528060fe1a4d9c81e9f2339cde16e1f35f50c39214bd46"
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;
@@ -6766,6 +6809,10 @@ export interface RequestImpersonationRequest {
6766
6809
  email: string;
6767
6810
  }
6768
6811
 
6812
+ export interface ResendChallengeCodeRequest {
6813
+ sessionId: string;
6814
+ }
6815
+
6769
6816
  export interface ResetPasswordRequest {
6770
6817
  token: string;
6771
6818
  password: string;
@@ -7702,6 +7749,10 @@ export interface StandardLoanField {
7702
7749
  isAiEnabled: boolean;
7703
7750
  }
7704
7751
 
7752
+ export interface StartMfaEnrollmentRequest {
7753
+ factor?: MfaFactor | null;
7754
+ }
7755
+
7705
7756
  export interface SupportedModel {
7706
7757
  modelId: string;
7707
7758
  displayName: string;
@@ -8124,6 +8175,11 @@ export interface UpdateMeRequest {
8124
8175
  preferredLoanOfficerId?: string | null;
8125
8176
  }
8126
8177
 
8178
+ export interface UpdateMfaFactorRequest {
8179
+ factor?: MfaFactor | null;
8180
+ passwordConfirmation?: string | null;
8181
+ }
8182
+
8127
8183
  export interface UpdateMobilePhoneRequest {
8128
8184
  phone: string;
8129
8185
  }
@@ -8335,6 +8391,7 @@ export interface User {
8335
8391
  title?: string | null;
8336
8392
  forcePasswordReset: boolean;
8337
8393
  mfaEnabled: boolean;
8394
+ mfaFactor: UserMfaFactorEnum;
8338
8395
  phoneVerified: boolean;
8339
8396
  /** @format int32 */
8340
8397
  loginsWithoutMFACount: number;
@@ -8523,6 +8580,13 @@ export interface UserLoanTaskUpdateRequest {
8523
8580
  loanDocumentFolderId?: string | null;
8524
8581
  }
8525
8582
 
8583
+ export interface UserMfaState {
8584
+ enabled: boolean;
8585
+ factor: UserMfaStateFactorEnum;
8586
+ required: boolean;
8587
+ methods: MfaMethod[];
8588
+ }
8589
+
8526
8590
  export interface UserMobilePhoneVerificationRequest {
8527
8591
  code: string;
8528
8592
  }
@@ -8727,6 +8791,8 @@ type BaseCanvasWidgetConfigTypeMapping<Key, Type> = {
8727
8791
 
8728
8792
  export type AccountBillingRequestBillingTypeEnum = "ClosedLoan" | "LoanOfficer";
8729
8793
 
8794
+ export type AdminAccessUserMfaFactorEnum = "None" | "Sms" | "Email";
8795
+
8730
8796
  export type AiAuditLogEventTypeEnum =
8731
8797
  | "Error"
8732
8798
  | "GuardrailBlockedPre"
@@ -8785,6 +8851,8 @@ export type AiGuardrailCategoryEnum =
8785
8851
  | "Privacy"
8786
8852
  | "Legal";
8787
8853
 
8854
+ export type AiPendingLoanUpdateDecisionOutcomeEnum = "Applied" | "Refused";
8855
+
8788
8856
  export type AiUrlSourceCategoryEnum =
8789
8857
  | "Regulatory"
8790
8858
  | "Guidelines"
@@ -8848,6 +8916,8 @@ export type BorrowerIdentityRoleEnum =
8848
8916
  | "SettlementAgent"
8849
8917
  | "Admin";
8850
8918
 
8919
+ export type BranchUserMfaFactorEnum = "None" | "Sms" | "Email";
8920
+
8851
8921
  export type CanvasFieldDescriptorSourceEnum = "Standard" | "Custom";
8852
8922
 
8853
8923
  export type CanvasFieldDescriptorDataTypeEnum =
@@ -9147,6 +9217,8 @@ export type CustomFieldValueDataTypeEnum =
9147
9217
  | "SingleSelect"
9148
9218
  | "MultiSelect";
9149
9219
 
9220
+ export type DetailedUserMfaFactorEnum = "None" | "Sms" | "Email";
9221
+
9150
9222
  export type DocumentsWidgetConfigTypeEnum = "Documents";
9151
9223
 
9152
9224
  export type DraftTypeEnum = "NewLoan" | "EditLoan";
@@ -9233,6 +9305,8 @@ export type IpAddressAddressFamilyEnum =
9233
9305
  | "ControllerAreaNetwork"
9234
9306
  | "Unknown";
9235
9307
 
9308
+ export type ImpersonatedDetailedUserMfaFactorEnum = "None" | "Sms" | "Email";
9309
+
9236
9310
  export type IncompleteLoanSourceEnum = "V3" | "LegacyDraft";
9237
9311
 
9238
9312
  export type IncompleteLoanBorrowerApplicationStatusEnum = "Draft" | "Complete";
@@ -9604,6 +9678,10 @@ export type ManualDocumentClassificationRequestDocumentTypeEnum =
9604
9678
  | "AiGeneratedDocument"
9605
9679
  | "Unidentified";
9606
9680
 
9681
+ export type MfaEnrollmentFactorEnum = "None" | "Sms" | "Email";
9682
+
9683
+ export type MfaMethodFactorEnum = "None" | "Sms" | "Email";
9684
+
9607
9685
  export type MonthlyPaymentWidgetConfigTypeEnum = "MonthlyPayment";
9608
9686
 
9609
9687
  export type MyPartnerTierEnum = "Lite" | "LitePlusPortal" | "Pending";
@@ -9730,6 +9808,8 @@ export type UpdateAiUrlSourceRequestCategoryEnum =
9730
9808
 
9731
9809
  export type UpdateAiUrlSourceRequestScopeEnum = "FullDomain" | "SpecificPath";
9732
9810
 
9811
+ export type UserMfaFactorEnum = "None" | "Sms" | "Email";
9812
+
9733
9813
  export type UserDraftRoleEnum =
9734
9814
  | "Borrower"
9735
9815
  | "CoBorrower"
@@ -9783,6 +9863,8 @@ export type UserLoanConsentLosSyncStatusEnum =
9783
9863
  | "Failed"
9784
9864
  | "Success";
9785
9865
 
9866
+ export type UserMfaStateFactorEnum = "None" | "Sms" | "Email";
9867
+
9786
9868
  export type UserTableSettingsTableKeyEnum = "Pipeline";
9787
9869
 
9788
9870
  export type UserTableViewTableKeyEnum = "Pipeline";
@@ -10021,7 +10103,15 @@ export class HttpClient<SecurityDataType = unknown> {
10021
10103
  property instanceof Array ? property : [property];
10022
10104
 
10023
10105
  for (const formItem of propertyContent) {
10024
- const isFileType = formItem instanceof Blob || formItem instanceof File;
10106
+ // React Native files are plain { uri, name, type } objects, not Blob/File.
10107
+ const isReactNativeFile =
10108
+ !!formItem &&
10109
+ typeof formItem === "object" &&
10110
+ "uri" in formItem &&
10111
+ "name" in formItem &&
10112
+ "type" in formItem;
10113
+ const isFileType =
10114
+ isReactNativeFile || formItem instanceof Blob || formItem instanceof File;
10025
10115
  formData.append(
10026
10116
  key,
10027
10117
  isFileType ? formItem : this.stringifyFormItem(formItem),
@@ -10083,7 +10173,7 @@ export class HttpClient<SecurityDataType = unknown> {
10083
10173
 
10084
10174
  /**
10085
10175
  * @title The Big POS API
10086
- * @version v3.25.0
10176
+ * @version v3.26.0
10087
10177
  * @termsOfService https://www.thebigpos.com/terms-of-use/
10088
10178
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
10089
10179
  */
@@ -10778,11 +10868,11 @@ export class Api<
10778
10868
  }),
10779
10869
 
10780
10870
  /**
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.
10871
+ * @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
10872
  *
10783
10873
  * @tags AiAudit
10784
10874
  * @name GetAiAuditConversations
10785
- * @summary List conversations with their audit roll-up — origin user, turns, status, tokens
10875
+ * @summary List conversations with their audit roll-up — origin user, loan, turns, status, tokens
10786
10876
  * @request GET:/api/ai/audit-conversations
10787
10877
  * @secure
10788
10878
  * @response `200` `AiConversationAuditSummaryPaginated` OK
@@ -10908,6 +10998,30 @@ export class Api<
10908
10998
  ...params,
10909
10999
  }),
10910
11000
 
11001
+ /**
11002
+ * No description
11003
+ *
11004
+ * @tags AiChat
11005
+ * @name RejectAiPendingLoanUpdate
11006
+ * @summary Reject a pending AI loan change so a new one can be proposed
11007
+ * @request POST:/api/ai/chats/pending-loan-updates/{pendingLoanUpdateId}/reject
11008
+ * @secure
11009
+ * @response `204` `void` No Content
11010
+ * @response `401` `ProblemDetails` Unauthorized
11011
+ * @response `404` `ProblemDetails` Not Found
11012
+ * @response `429` `ProblemDetails` Too Many Requests
11013
+ */
11014
+ rejectAiPendingLoanUpdate: (
11015
+ pendingLoanUpdateId: string,
11016
+ params: RequestParams = {},
11017
+ ) =>
11018
+ this.request<void, ProblemDetails>({
11019
+ path: `/api/ai/chats/pending-loan-updates/${pendingLoanUpdateId}/reject`,
11020
+ method: "POST",
11021
+ secure: true,
11022
+ ...params,
11023
+ }),
11024
+
10911
11025
  /**
10912
11026
  * No description
10913
11027
  *
@@ -11405,6 +11519,36 @@ export class Api<
11405
11519
  ...params,
11406
11520
  }),
11407
11521
 
11522
+ /**
11523
+ * No description
11524
+ *
11525
+ * @tags AiPromptRun
11526
+ * @name RerunAiPromptRun
11527
+ * @summary Re-run the AI verification bound to a loan task
11528
+ * @request POST:/api/ai/prompt-runs/rerun
11529
+ * @secure
11530
+ * @response `202` `void` Accepted
11531
+ * @response `400` `ProblemDetails` Bad Request
11532
+ * @response `404` `ProblemDetails` Not Found
11533
+ * @response `409` `ProblemDetails` Conflict
11534
+ * @response `429` `ProblemDetails` Too Many Requests
11535
+ * @response `503` `void` Service Unavailable
11536
+ */
11537
+ rerunAiPromptRun: (
11538
+ query?: {
11539
+ /** @format uuid */
11540
+ subjectEntityId?: string;
11541
+ },
11542
+ params: RequestParams = {},
11543
+ ) =>
11544
+ this.request<void, ProblemDetails | void>({
11545
+ path: `/api/ai/prompt-runs/rerun`,
11546
+ method: "POST",
11547
+ query: query,
11548
+ secure: true,
11549
+ ...params,
11550
+ }),
11551
+
11408
11552
  /**
11409
11553
  * No description
11410
11554
  *
@@ -12108,9 +12252,14 @@ export class Api<
12108
12252
  * @secure
12109
12253
  * @response `200` `UserDeactivated` OK
12110
12254
  * @response `422` `UnprocessableEntity` Unprocessable Content
12255
+ * @response `429` `ProblemDetails` Too Many Requests
12256
+ * @response `503` `void` Service Unavailable
12111
12257
  */
12112
12258
  getToken: (data: TokenRequest, params: RequestParams = {}) =>
12113
- this.request<UserDeactivated, UnprocessableEntity>({
12259
+ this.request<
12260
+ UserDeactivated,
12261
+ UnprocessableEntity | ProblemDetails | void
12262
+ >({
12114
12263
  path: `/api/token`,
12115
12264
  method: "POST",
12116
12265
  body: data,
@@ -12129,13 +12278,15 @@ export class Api<
12129
12278
  * @request POST:/api/token/code
12130
12279
  * @secure
12131
12280
  * @response `200` `UserDeactivated` OK
12281
+ * @response `400` `ProblemDetails` Bad Request
12132
12282
  * @response `422` `UnprocessableEntity` Unprocessable Content
12283
+ * @response `429` `ProblemDetails` Too Many Requests
12133
12284
  */
12134
12285
  getTokenFromChallengeCode: (
12135
12286
  data: TokenChallengeRequest,
12136
12287
  params: RequestParams = {},
12137
12288
  ) =>
12138
- this.request<UserDeactivated, UnprocessableEntity>({
12289
+ this.request<UserDeactivated, ProblemDetails | UnprocessableEntity>({
12139
12290
  path: `/api/token/code`,
12140
12291
  method: "POST",
12141
12292
  body: data,
@@ -12145,6 +12296,32 @@ export class Api<
12145
12296
  ...params,
12146
12297
  }),
12147
12298
 
12299
+ /**
12300
+ * No description
12301
+ *
12302
+ * @tags Authentication
12303
+ * @name ResendChallengeCode
12304
+ * @summary Resend Challenge Code
12305
+ * @request POST:/api/token/code/resend
12306
+ * @secure
12307
+ * @response `204` `void` No Content
12308
+ * @response `422` `UnprocessableEntity` Unprocessable Content
12309
+ * @response `429` `ProblemDetails` Too Many Requests
12310
+ * @response `503` `void` Service Unavailable
12311
+ */
12312
+ resendChallengeCode: (
12313
+ data: ResendChallengeCodeRequest,
12314
+ params: RequestParams = {},
12315
+ ) =>
12316
+ this.request<void, UnprocessableEntity | ProblemDetails | void>({
12317
+ path: `/api/token/code/resend`,
12318
+ method: "POST",
12319
+ body: data,
12320
+ secure: true,
12321
+ type: "application/json",
12322
+ ...params,
12323
+ }),
12324
+
12148
12325
  /**
12149
12326
  * No description
12150
12327
  *
@@ -22511,6 +22688,35 @@ export class Api<
22511
22688
  ...params,
22512
22689
  }),
22513
22690
 
22691
+ /**
22692
+ * No description
22693
+ *
22694
+ * @tags Users
22695
+ * @name ClearUserMfa
22696
+ * @summary Clear MFA
22697
+ * @request PUT:/api/users/{id}/mfa
22698
+ * @secure
22699
+ * @response `200` `UserMfaState` OK
22700
+ * @response `400` `ProblemDetails` Bad Request
22701
+ * @response `403` `ProblemDetails` Forbidden
22702
+ * @response `404` `ProblemDetails` Not Found
22703
+ * @response `422` `UnprocessableEntity` Unprocessable Content
22704
+ */
22705
+ clearUserMfa: (
22706
+ id: string,
22707
+ data: UpdateMfaFactorRequest,
22708
+ params: RequestParams = {},
22709
+ ) =>
22710
+ this.request<UserMfaState, ProblemDetails | UnprocessableEntity>({
22711
+ path: `/api/users/${id}/mfa`,
22712
+ method: "PUT",
22713
+ body: data,
22714
+ secure: true,
22715
+ type: "application/json",
22716
+ format: "json",
22717
+ ...params,
22718
+ }),
22719
+
22514
22720
  /**
22515
22721
  * No description
22516
22722
  *
@@ -22937,6 +23143,136 @@ export class Api<
22937
23143
  ...params,
22938
23144
  }),
22939
23145
 
23146
+ /**
23147
+ * No description
23148
+ *
23149
+ * @tags UsersMeMfa
23150
+ * @name GetMyMfa
23151
+ * @summary Get MFA
23152
+ * @request GET:/api/users/me/mfa
23153
+ * @secure
23154
+ * @response `200` `UserMfaState` OK
23155
+ * @response `401` `ProblemDetails` Unauthorized
23156
+ */
23157
+ getMyMfa: (params: RequestParams = {}) =>
23158
+ this.request<UserMfaState, ProblemDetails>({
23159
+ path: `/api/users/me/mfa`,
23160
+ method: "GET",
23161
+ secure: true,
23162
+ format: "json",
23163
+ ...params,
23164
+ }),
23165
+
23166
+ /**
23167
+ * No description
23168
+ *
23169
+ * @tags UsersMeMfa
23170
+ * @name UpdateMyMfa
23171
+ * @summary Update MFA
23172
+ * @request PUT:/api/users/me/mfa
23173
+ * @secure
23174
+ * @response `200` `UserMfaState` OK
23175
+ * @response `400` `ProblemDetails` Bad Request
23176
+ * @response `401` `ProblemDetails` Unauthorized
23177
+ * @response `403` `ProblemDetails` Forbidden
23178
+ * @response `422` `UnprocessableEntity` Unprocessable Content
23179
+ */
23180
+ updateMyMfa: (data: UpdateMfaFactorRequest, params: RequestParams = {}) =>
23181
+ this.request<UserMfaState, ProblemDetails | UnprocessableEntity>({
23182
+ path: `/api/users/me/mfa`,
23183
+ method: "PUT",
23184
+ body: data,
23185
+ secure: true,
23186
+ type: "application/json",
23187
+ format: "json",
23188
+ ...params,
23189
+ }),
23190
+
23191
+ /**
23192
+ * No description
23193
+ *
23194
+ * @tags UsersMeMfa
23195
+ * @name StartMyMfaEnrollment
23196
+ * @summary Start MFA Enrollment
23197
+ * @request POST:/api/users/me/mfa/enrollments
23198
+ * @secure
23199
+ * @response `200` `MfaEnrollment` OK
23200
+ * @response `400` `ProblemDetails` Bad Request
23201
+ * @response `401` `ProblemDetails` Unauthorized
23202
+ * @response `403` `ProblemDetails` Forbidden
23203
+ * @response `422` `UnprocessableEntity` Unprocessable Content
23204
+ * @response `429` `ProblemDetails` Too Many Requests
23205
+ * @response `503` `void` Service Unavailable
23206
+ */
23207
+ startMyMfaEnrollment: (
23208
+ data: StartMfaEnrollmentRequest,
23209
+ params: RequestParams = {},
23210
+ ) =>
23211
+ this.request<MfaEnrollment, ProblemDetails | UnprocessableEntity | void>({
23212
+ path: `/api/users/me/mfa/enrollments`,
23213
+ method: "POST",
23214
+ body: data,
23215
+ secure: true,
23216
+ type: "application/json",
23217
+ format: "json",
23218
+ ...params,
23219
+ }),
23220
+
23221
+ /**
23222
+ * No description
23223
+ *
23224
+ * @tags UsersMeMfa
23225
+ * @name ConfirmMyMfaEnrollment
23226
+ * @summary Confirm MFA Enrollment
23227
+ * @request POST:/api/users/me/mfa/enrollments/{enrollmentId}/confirm
23228
+ * @secure
23229
+ * @response `200` `UserMfaState` OK
23230
+ * @response `400` `ProblemDetails` Bad Request
23231
+ * @response `401` `ProblemDetails` Unauthorized
23232
+ * @response `403` `ProblemDetails` Forbidden
23233
+ * @response `422` `UnprocessableEntity` Unprocessable Content
23234
+ * @response `429` `ProblemDetails` Too Many Requests
23235
+ */
23236
+ confirmMyMfaEnrollment: (
23237
+ enrollmentId: string,
23238
+ data: ConfirmMfaEnrollmentRequest,
23239
+ params: RequestParams = {},
23240
+ ) =>
23241
+ this.request<UserMfaState, ProblemDetails | UnprocessableEntity>({
23242
+ path: `/api/users/me/mfa/enrollments/${enrollmentId}/confirm`,
23243
+ method: "POST",
23244
+ body: data,
23245
+ secure: true,
23246
+ type: "application/json",
23247
+ format: "json",
23248
+ ...params,
23249
+ }),
23250
+
23251
+ /**
23252
+ * No description
23253
+ *
23254
+ * @tags UsersMeMfa
23255
+ * @name ResendMyMfaEnrollmentCode
23256
+ * @summary Resend MFA Enrollment Code
23257
+ * @request POST:/api/users/me/mfa/enrollments/{enrollmentId}/resend
23258
+ * @secure
23259
+ * @response `204` `void` No Content
23260
+ * @response `401` `ProblemDetails` Unauthorized
23261
+ * @response `403` `ProblemDetails` Forbidden
23262
+ * @response `429` `ProblemDetails` Too Many Requests
23263
+ * @response `503` `void` Service Unavailable
23264
+ */
23265
+ resendMyMfaEnrollmentCode: (
23266
+ enrollmentId: string,
23267
+ params: RequestParams = {},
23268
+ ) =>
23269
+ this.request<void, ProblemDetails | void>({
23270
+ path: `/api/users/me/mfa/enrollments/${enrollmentId}/resend`,
23271
+ method: "POST",
23272
+ secure: true,
23273
+ ...params,
23274
+ }),
23275
+
22940
23276
  /**
22941
23277
  * No description
22942
23278
  *
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 .