@matech/thebigpos-sdk 2.36.11-aibi-2 → 2.36.14

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
@@ -337,64 +337,6 @@ export type BorrowerRelationship = "NotApplicable" | "Spouse" | "NonSpouse";
337
337
 
338
338
  export type BillingType = "ClosedLoan" | "LoanOfficer";
339
339
 
340
- export type AiStructuredDataType =
341
- | "Table"
342
- | "DocumentAnalysis"
343
- | "DocumentList";
344
-
345
- export type AiQueryTemplateName =
346
- | "PipelineSummary"
347
- | "LoanDetail"
348
- | "LoansClosing"
349
- | "StaleLoans"
350
- | "LoansByType"
351
- | "LoansByOfficer"
352
- | "AverageLoanAmount"
353
- | "LockedVsUnlocked";
354
-
355
- export type AiPromptCategory = "DocumentAnalysis" | "DataQuery" | "General";
356
-
357
- export type AiIntent =
358
- | "Greeting"
359
- | "Invalid"
360
- | "Relevant"
361
- | "DocumentList"
362
- | "GeneralKnowledge"
363
- | "Blocked";
364
-
365
- export type AiGuardrailCategory =
366
- | "ContentSafety"
367
- | "PromptInjection"
368
- | "Privacy"
369
- | "Legal";
370
-
371
- export type AiDisplayHint =
372
- | "Table"
373
- | "SummaryCards"
374
- | "RankedList"
375
- | "Comparison"
376
- | "ExecutiveBrief";
377
-
378
- export type AiAuditEventType =
379
- | "Error"
380
- | "GuardrailBlockedPre"
381
- | "GuardrailPassedPre"
382
- | "IntentClassified"
383
- | "LoanResolvedFromMessage"
384
- | "DocumentNotFound"
385
- | "GuardrailBlockedPost"
386
- | "GuardrailPassedPost"
387
- | "DocumentAnalyzed"
388
- | "DocumentList"
389
- | "DocumentResolutionAmbiguous"
390
- | "ResponseGenerated"
391
- | "ParametersExtracted"
392
- | "QueryExecuted"
393
- | "LoanContextNotFound"
394
- | "LoanContextLoaded"
395
- | "GuardrailBlockedBedrock"
396
- | "PromptMatched";
397
-
398
340
  export type AddressFamily =
399
341
  | "Unspecified"
400
342
  | "Unix"
@@ -482,7 +424,7 @@ export interface AccountBilling {
482
424
  }
483
425
 
484
426
  export interface AccountBillingRequest {
485
- billingType: "ClosedLoan" | "LoanOfficer";
427
+ billingType: AccountBillingRequestBillingTypeEnum;
486
428
  /**
487
429
  * @format double
488
430
  * @min 0
@@ -497,7 +439,6 @@ export interface AccountSettings {
497
439
  smsNumber?: string | null;
498
440
  ssoHostOverride?: string | null;
499
441
  isEarlyAdopter: boolean;
500
- isAIEnabled: boolean;
501
442
  }
502
443
 
503
444
  export interface AccountSettingsRequest {
@@ -720,237 +661,6 @@ export interface AffordabilityCalculatorRequest {
720
661
  annualInsurance: number;
721
662
  }
722
663
 
723
- export interface AiAdminStats {
724
- /** @format int32 */
725
- totalRequests: number;
726
- /** @format int32 */
727
- blockedRequests: number;
728
- /** @format double */
729
- averageResponseTimeMs: number;
730
- intentDistribution: Record<string, number>;
731
- topQueryTemplates: Record<string, number>;
732
- period: string;
733
- }
734
-
735
- export interface AiAuditLog {
736
- /** @format uuid */
737
- id: string;
738
- /** @format uuid */
739
- requestId: string;
740
- /** @format uuid */
741
- userId: string;
742
- eventType:
743
- | "Error"
744
- | "GuardrailBlockedPre"
745
- | "GuardrailPassedPre"
746
- | "IntentClassified"
747
- | "LoanResolvedFromMessage"
748
- | "DocumentNotFound"
749
- | "GuardrailBlockedPost"
750
- | "GuardrailPassedPost"
751
- | "DocumentAnalyzed"
752
- | "DocumentList"
753
- | "DocumentResolutionAmbiguous"
754
- | "ResponseGenerated"
755
- | "ParametersExtracted"
756
- | "QueryExecuted"
757
- | "LoanContextNotFound"
758
- | "LoanContextLoaded"
759
- | "GuardrailBlockedBedrock"
760
- | "PromptMatched";
761
- details?: any;
762
- /** @format date-time */
763
- createdAt: string;
764
- }
765
-
766
- export interface AiAuditLogPaginated {
767
- rows: AiAuditLog[];
768
- pagination: Pagination;
769
- /** @format int64 */
770
- count: number;
771
- }
772
-
773
- export interface AiCanonicalField {
774
- /** @format uuid */
775
- id: string;
776
- canonicalName: string;
777
- displayName: string;
778
- description: string;
779
- allowedRoles: string[];
780
- efPath?: string | null;
781
- isPii: boolean;
782
- isActive: boolean;
783
- dataSource: string;
784
- isDefault: boolean;
785
- category?: string | null;
786
- jsonPropertyName?: string | null;
787
- textractKey?: string | null;
788
- textractKeyAliases?: string | null;
789
- hasAccountOverride: boolean;
790
- /** @format date-time */
791
- createdAt: string;
792
- /** @format date-time */
793
- updatedAt?: string | null;
794
- }
795
-
796
- export interface AiChat {
797
- /** @format uuid */
798
- conversationId: string;
799
- /** @format uuid */
800
- messageId: string;
801
- response: AiChatBody;
802
- metadata: AiChatMetadata;
803
- }
804
-
805
- export interface AiChatBody {
806
- text: string;
807
- data?: AiChatStructuredData | null;
808
- suggestedFollowUps: string[];
809
- }
810
-
811
- export interface AiChatMessage {
812
- /** @format uuid */
813
- id: string;
814
- userMessage: string;
815
- assistantResponse: string;
816
- intent?: AiIntent | null;
817
- fieldsAccessed?: string[] | null;
818
- /** @format date-time */
819
- createdAt: string;
820
- }
821
-
822
- export interface AiChatMetadata {
823
- intent:
824
- | "Greeting"
825
- | "Invalid"
826
- | "Relevant"
827
- | "DocumentList"
828
- | "GeneralKnowledge"
829
- | "Blocked";
830
- fieldsAccessed: string[];
831
- /** @format int64 */
832
- queryTimeMs: number;
833
- /** @format int64 */
834
- llmTimeMs: number;
835
- wasBlocked: boolean;
836
- blockedReason?: string | null;
837
- }
838
-
839
- export interface AiChatRequest {
840
- /**
841
- * @minLength 1
842
- * @maxLength 2000
843
- */
844
- message: string;
845
- /** @format uuid */
846
- conversationId?: string | null;
847
- /** @format uuid */
848
- loanId?: string | null;
849
- /** @format uuid */
850
- documentId?: string | null;
851
- /** @format uuid */
852
- promptId?: string | null;
853
- }
854
-
855
- export interface AiChatStructuredData {
856
- type: "Table" | "DocumentAnalysis" | "DocumentList";
857
- detectedDocumentType?: string | null;
858
- columns: string[];
859
- rows: string[][];
860
- }
861
-
862
- export interface AiConversationDetail {
863
- /** @format uuid */
864
- id: string;
865
- /** @format date-time */
866
- createdAt: string;
867
- /** @format date-time */
868
- updatedAt?: string | null;
869
- messages: AiChatMessage[];
870
- }
871
-
872
- export interface AiConversationListItem {
873
- /** @format uuid */
874
- id: string;
875
- preview: string;
876
- /** @format int32 */
877
- messageCount: number;
878
- /** @format date-time */
879
- createdAt: string;
880
- /** @format date-time */
881
- updatedAt?: string | null;
882
- }
883
-
884
- export interface AiConversationListItemPaginated {
885
- rows: AiConversationListItem[];
886
- pagination: Pagination;
887
- /** @format int64 */
888
- count: number;
889
- }
890
-
891
- export interface AiGuardrail {
892
- /** @format uuid */
893
- id: string;
894
- name: string;
895
- category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
896
- description?: string | null;
897
- keywords: string[];
898
- responseTemplate: string;
899
- isDefault: boolean;
900
- isEnabled: boolean;
901
- hasAccountOverride: boolean;
902
- /** @format date-time */
903
- createdAt: string;
904
- /** @format date-time */
905
- updatedAt?: string | null;
906
- }
907
-
908
- export interface AiPrompt {
909
- /** @format uuid */
910
- id: string;
911
- title: string;
912
- icon: string;
913
- slug: string;
914
- description: string;
915
- documentTypes: string[];
916
- applicableGuidelines: string[];
917
- allowedRoles: string[];
918
- systemPrompt: string;
919
- userPromptTemplate: string;
920
- followUpPrompts: string[];
921
- /** @format int32 */
922
- sortOrder: number;
923
- isDefault: boolean;
924
- /** @format uuid */
925
- accountId?: string | null;
926
- isActive: boolean;
927
- category?: AiPromptCategory | null;
928
- queryTemplateName?: AiQueryTemplateName | null;
929
- displayHint?: AiDisplayHint | null;
930
- hasAccountOverride: boolean;
931
- /** @format date-time */
932
- createdAt: string;
933
- /** @format date-time */
934
- updatedAt?: string | null;
935
- }
936
-
937
- export interface AiPromptSummary {
938
- /** @format uuid */
939
- id: string;
940
- title: string;
941
- icon: string;
942
- slug: string;
943
- description: string;
944
- documentTypes: string[];
945
- applicableGuidelines: string[];
946
- followUpPrompts: string[];
947
- /** @format int32 */
948
- sortOrder: number;
949
- category?: AiPromptCategory | null;
950
- queryTemplateName?: AiQueryTemplateName | null;
951
- displayHint?: AiDisplayHint | null;
952
- }
953
-
954
664
  export interface AllowImpersonationRequest {
955
665
  /**
956
666
  * @format email
@@ -1301,7 +1011,7 @@ export interface CorporateSearchCriteria {
1301
1011
  }
1302
1012
 
1303
1013
  export interface CreateAccessScopeRequest {
1304
- scopeType: "User" | "Branch";
1014
+ scopeType: CreateAccessScopeRequestScopeTypeEnum;
1305
1015
  /** @format uuid */
1306
1016
  userId?: string | null;
1307
1017
  /** @format uuid */
@@ -1325,80 +1035,11 @@ export interface CreateAccountRequest {
1325
1035
  */
1326
1036
  nlmsid: number;
1327
1037
  settings: AccountSettingsRequest;
1328
- environment: "Development" | "Staging" | "UAT" | "Production";
1038
+ environment: CreateAccountRequestEnvironmentEnum;
1329
1039
  losIntegration: LOSIntegration;
1330
1040
  billingSettings: AccountBillingRequest;
1331
1041
  }
1332
1042
 
1333
- export interface CreateAiCanonicalFieldRequest {
1334
- /**
1335
- * @minLength 1
1336
- * @maxLength 200
1337
- */
1338
- canonicalName: string;
1339
- /**
1340
- * @minLength 1
1341
- * @maxLength 200
1342
- */
1343
- displayName: string;
1344
- /** @minLength 1 */
1345
- description: string;
1346
- /** @minItems 1 */
1347
- allowedRoles: string[];
1348
- isPii: boolean;
1349
- /** @minLength 1 */
1350
- dataSource: string;
1351
- textractKey?: string | null;
1352
- textractKeyAliases?: string | null;
1353
- category?: string | null;
1354
- }
1355
-
1356
- export interface CreateAiGuardrailRequest {
1357
- /**
1358
- * @minLength 1
1359
- * @maxLength 200
1360
- */
1361
- name: string;
1362
- category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
1363
- description?: string | null;
1364
- /** @minItems 1 */
1365
- keywords: string[];
1366
- /** @minLength 1 */
1367
- responseTemplate: string;
1368
- }
1369
-
1370
- export interface CreateAiPromptRequest {
1371
- /**
1372
- * @minLength 1
1373
- * @maxLength 200
1374
- */
1375
- title: string;
1376
- icon: string;
1377
- /**
1378
- * @minLength 1
1379
- * @maxLength 100
1380
- */
1381
- slug: string;
1382
- /**
1383
- * @minLength 1
1384
- * @maxLength 500
1385
- */
1386
- description: string;
1387
- documentTypes: string[];
1388
- applicableGuidelines: string[];
1389
- allowedRoles: string[];
1390
- /** @minLength 1 */
1391
- systemPrompt: string;
1392
- /** @minLength 1 */
1393
- userPromptTemplate: string;
1394
- followUpPrompts: string[];
1395
- /** @format int32 */
1396
- sortOrder: number;
1397
- category?: AiPromptCategory | null;
1398
- queryTemplateName?: AiQueryTemplateName | null;
1399
- displayHint?: AiDisplayHint | null;
1400
- }
1401
-
1402
1043
  export interface CreateBranchRequest {
1403
1044
  /**
1404
1045
  * @minLength 1
@@ -1427,19 +1068,7 @@ export interface CreateDocumentTemplateRequest {
1427
1068
  export interface CreateGroupMemberRequest {
1428
1069
  /** @format uuid */
1429
1070
  userId: string;
1430
- loanRole:
1431
- | "Borrower"
1432
- | "CoBorrower"
1433
- | "NonBorrower"
1434
- | "LoanOfficer"
1435
- | "LoanProcessor"
1436
- | "LoanOfficerAssistant"
1437
- | "SupportingLoanOfficer"
1438
- | "BuyerAgent"
1439
- | "SellerAgent"
1440
- | "TitleInsuranceAgent"
1441
- | "EscrowAgent"
1442
- | "SettlementAgent";
1071
+ loanRole: CreateGroupMemberRequestLoanRoleEnum;
1443
1072
  }
1444
1073
 
1445
1074
  export interface CreateInviteRequest {
@@ -1451,7 +1080,7 @@ export interface CreateInviteRequest {
1451
1080
  emailAddress: string;
1452
1081
  phoneNumber?: string | null;
1453
1082
  /** @deprecated */
1454
- relationship: "NotApplicable" | "Spouse" | "NonSpouse";
1083
+ relationship: CreateInviteRequestRelationshipEnum;
1455
1084
  loanID: string;
1456
1085
  route?: string | null;
1457
1086
  /** @format uuid */
@@ -1474,7 +1103,7 @@ export interface CreateLoanImportRequest {
1474
1103
  * @minLength 1
1475
1104
  */
1476
1105
  startDate: string;
1477
- importMode: "All" | "NewOnly" | "UpdateOnly";
1106
+ importMode: CreateLoanImportRequestImportModeEnum;
1478
1107
  }
1479
1108
 
1480
1109
  export interface CreateSession {
@@ -1496,19 +1125,7 @@ export interface CreateUserDeviceRequest {
1496
1125
  }
1497
1126
 
1498
1127
  export interface CreateUserDraft {
1499
- loanRole:
1500
- | "Borrower"
1501
- | "CoBorrower"
1502
- | "NonBorrower"
1503
- | "LoanOfficer"
1504
- | "LoanProcessor"
1505
- | "LoanOfficerAssistant"
1506
- | "SupportingLoanOfficer"
1507
- | "BuyerAgent"
1508
- | "SellerAgent"
1509
- | "TitleInsuranceAgent"
1510
- | "EscrowAgent"
1511
- | "SettlementAgent";
1128
+ loanRole: CreateUserDraftLoanRoleEnum;
1512
1129
  }
1513
1130
 
1514
1131
  export interface CreateUserGroupRequest {
@@ -1824,7 +1441,7 @@ export interface Draft {
1824
1441
  siteConfiguration: SiteConfigurationReduced;
1825
1442
  /** @format uuid */
1826
1443
  loanID?: string | null;
1827
- type: "NewLoan" | "EditLoan";
1444
+ type: DraftTypeEnum;
1828
1445
  isCoBorrower: boolean;
1829
1446
  }
1830
1447
 
@@ -1843,7 +1460,7 @@ export interface DraftContent {
1843
1460
  siteConfiguration: SiteConfigurationReduced;
1844
1461
  /** @format uuid */
1845
1462
  loanID?: string | null;
1846
- type: "NewLoan" | "EditLoan";
1463
+ type: DraftContentTypeEnum;
1847
1464
  isCoBorrower: boolean;
1848
1465
  applicationPayload: any;
1849
1466
  }
@@ -1973,15 +1590,8 @@ export interface EncompassRequestLog {
1973
1590
  losId?: string | null;
1974
1591
  /** @format uuid */
1975
1592
  accountId: string;
1976
- operationType:
1977
- | "FieldUpdate"
1978
- | "EConsentUpdate"
1979
- | "DocumentSync"
1980
- | "MilestoneUpdate"
1981
- | "DocumentAttachment"
1982
- | "General"
1983
- | "FieldReader";
1984
- outcome: "Success" | "Failure" | "PartialSuccess";
1593
+ operationType: EncompassRequestLogOperationTypeEnum;
1594
+ outcome: EncompassRequestLogOutcomeEnum;
1985
1595
  message: string;
1986
1596
  endpoint?: string | null;
1987
1597
  httpMethod?: string | null;
@@ -2218,20 +1828,7 @@ export interface FusionFieldDisplay {
2218
1828
  }
2219
1829
 
2220
1830
  export interface FusionReportFilter {
2221
- filterType:
2222
- | "DateGreaterThanOrEqualTo"
2223
- | "DateGreaterThan"
2224
- | "DateLessThan"
2225
- | "DateLessThanOrEqualTo"
2226
- | "DateEquals"
2227
- | "DateDoesntEqual"
2228
- | "DateNonEmpty"
2229
- | "DateEmpty"
2230
- | "StringContains"
2231
- | "StringEquals"
2232
- | "StringNotEmpty"
2233
- | "StringNotEquals"
2234
- | "StringNotContains";
1831
+ filterType: FusionReportFilterFilterTypeEnum;
2235
1832
  targetField: string;
2236
1833
  targetValue: string;
2237
1834
  }
@@ -2359,40 +1956,7 @@ export interface GuidPatchOperation {
2359
1956
  }
2360
1957
 
2361
1958
  export interface IPAddress {
2362
- addressFamily:
2363
- | "Unspecified"
2364
- | "Unix"
2365
- | "InterNetwork"
2366
- | "ImpLink"
2367
- | "Pup"
2368
- | "Chaos"
2369
- | "NS"
2370
- | "Ipx"
2371
- | "Iso"
2372
- | "Osi"
2373
- | "Ecma"
2374
- | "DataKit"
2375
- | "Ccitt"
2376
- | "Sna"
2377
- | "DecNet"
2378
- | "DataLink"
2379
- | "Lat"
2380
- | "HyperChannel"
2381
- | "AppleTalk"
2382
- | "NetBios"
2383
- | "VoiceView"
2384
- | "FireFox"
2385
- | "Banyan"
2386
- | "Atm"
2387
- | "InterNetworkV6"
2388
- | "Cluster"
2389
- | "Ieee12844"
2390
- | "Irda"
2391
- | "NetworkDesigners"
2392
- | "Max"
2393
- | "Packet"
2394
- | "ControllerAreaNetwork"
2395
- | "Unknown";
1959
+ addressFamily: IpAddressAddressFamilyEnum;
2396
1960
  /** @format int64 */
2397
1961
  scopeId: number;
2398
1962
  isIPv6Multicast: boolean;
@@ -3640,19 +3204,7 @@ export interface LoanContact {
3640
3204
  email?: string | null;
3641
3205
  phone?: string | null;
3642
3206
  companyName?: string | null;
3643
- role:
3644
- | "Borrower"
3645
- | "CoBorrower"
3646
- | "NonBorrower"
3647
- | "LoanOfficer"
3648
- | "LoanProcessor"
3649
- | "LoanOfficerAssistant"
3650
- | "SupportingLoanOfficer"
3651
- | "BuyerAgent"
3652
- | "SellerAgent"
3653
- | "TitleInsuranceAgent"
3654
- | "EscrowAgent"
3655
- | "SettlementAgent";
3207
+ role: LoanContactRoleEnum;
3656
3208
  }
3657
3209
 
3658
3210
  export interface LoanContactList {
@@ -3788,19 +3340,14 @@ export interface LoanImport {
3788
3340
  /** @format int32 */
3789
3341
  importedCount: number;
3790
3342
  statusMessage?: string | null;
3791
- status:
3792
- | "WaitingProcess"
3793
- | "InProgress"
3794
- | "Completed"
3795
- | "Failed"
3796
- | "Cancelled";
3797
- importMode: "All" | "NewOnly" | "UpdateOnly";
3343
+ status: LoanImportStatusEnum;
3344
+ importMode: LoanImportImportModeEnum;
3798
3345
  /** @format date-time */
3799
3346
  createdAt?: string | null;
3800
3347
  }
3801
3348
 
3802
3349
  export interface LoanImportLog {
3803
- level: "None" | "Info" | "Warning" | "Error";
3350
+ level: LoanImportLogLevelEnum;
3804
3351
  message: string;
3805
3352
  /** @format date-time */
3806
3353
  createdAt: string;
@@ -3861,21 +3408,8 @@ export interface LoanListPaginated {
3861
3408
  export interface LoanLog {
3862
3409
  /** @format uuid */
3863
3410
  id: string;
3864
- level: "None" | "Info" | "Warning" | "Error";
3865
- type:
3866
- | "Loan"
3867
- | "Queue"
3868
- | "POSFlagChanged"
3869
- | "Verification"
3870
- | "DocumentUploaded"
3871
- | "LoanCreated"
3872
- | "WorkflowSubmitted"
3873
- | "UserInvitationSent"
3874
- | "CoBorrowerAdded"
3875
- | "TaskCompleted"
3876
- | "LoanStatusChanged"
3877
- | "EConsent"
3878
- | "SensitiveDataPurge";
3411
+ level: LoanLogLevelEnum;
3412
+ type: LoanLogTypeEnum;
3879
3413
  message: string;
3880
3414
  /** @format date-time */
3881
3415
  createdAt: string;
@@ -4156,19 +3690,7 @@ export interface LoanUser {
4156
3690
  email: string;
4157
3691
  phone?: string | null;
4158
3692
  role: string;
4159
- loanRole:
4160
- | "Borrower"
4161
- | "CoBorrower"
4162
- | "NonBorrower"
4163
- | "LoanOfficer"
4164
- | "LoanProcessor"
4165
- | "LoanOfficerAssistant"
4166
- | "SupportingLoanOfficer"
4167
- | "BuyerAgent"
4168
- | "SellerAgent"
4169
- | "TitleInsuranceAgent"
4170
- | "EscrowAgent"
4171
- | "SettlementAgent";
3693
+ loanRole: LoanUserLoanRoleEnum;
4172
3694
  isUser: boolean;
4173
3695
  /** @format date-time */
4174
3696
  createdAt: string;
@@ -4813,7 +4335,7 @@ export interface SSOTokenRequest {
4813
4335
  }
4814
4336
 
4815
4337
  export interface SamlMetadataRequest {
4816
- ssoIntegration: "ConsumerConnect" | "TheBigPOS" | "POSF";
4338
+ ssoIntegration: SamlMetadataRequestSsoIntegrationEnum;
4817
4339
  }
4818
4340
 
4819
4341
  export interface SendForgotPasswordRequest {
@@ -4852,7 +4374,7 @@ export interface SiteConfiguration {
4852
4374
  deletedAt?: string | null;
4853
4375
  /** @format uuid */
4854
4376
  id: string;
4855
- type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4377
+ type: SiteConfigurationTypeEnum;
4856
4378
  /** @format uuid */
4857
4379
  entityID: string;
4858
4380
  /** @format int32 */
@@ -5047,7 +4569,7 @@ export interface SiteConfigurationByUrl {
5047
4569
  deletedAt?: string | null;
5048
4570
  /** @format uuid */
5049
4571
  id: string;
5050
- type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4572
+ type: SiteConfigurationByUrlTypeEnum;
5051
4573
  /** @format uuid */
5052
4574
  entityID: string;
5053
4575
  /** @format int32 */
@@ -5260,7 +4782,7 @@ export interface SiteConfigurationForm {
5260
4782
  export interface SiteConfigurationReduced {
5261
4783
  /** @format uuid */
5262
4784
  id: string;
5263
- type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4785
+ type: SiteConfigurationReducedTypeEnum;
5264
4786
  url?: string | null;
5265
4787
  name: string;
5266
4788
  /** @format int64 */
@@ -5278,7 +4800,7 @@ export interface SiteConfigurationRequest {
5278
4800
  entityID: string;
5279
4801
  /** @format int32 */
5280
4802
  entityType: number;
5281
- type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4803
+ type: SiteConfigurationRequestTypeEnum;
5282
4804
  url: string;
5283
4805
  name: string;
5284
4806
  introduction?: string | null;
@@ -5455,7 +4977,7 @@ export interface SiteConfigurationSearchCriteria {
5455
4977
  export interface SiteConfigurationSummary {
5456
4978
  /** @format uuid */
5457
4979
  id: string;
5458
- type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4980
+ type: SiteConfigurationSummaryTypeEnum;
5459
4981
  url?: string | null;
5460
4982
  name: string;
5461
4983
  /** @format int64 */
@@ -5763,60 +5285,6 @@ export interface UpdateAccountRequest {
5763
5285
  settings: AccountSettingsRequest;
5764
5286
  }
5765
5287
 
5766
- export interface UpdateAiCanonicalFieldRequest {
5767
- /**
5768
- * @minLength 1
5769
- * @maxLength 200
5770
- */
5771
- displayName: string;
5772
- /** @minLength 1 */
5773
- description: string;
5774
- /** @minItems 1 */
5775
- allowedRoles: string[];
5776
- isPii: boolean;
5777
- }
5778
-
5779
- export interface UpdateAiGuardrailRequest {
5780
- /**
5781
- * @minLength 1
5782
- * @maxLength 200
5783
- */
5784
- name: string;
5785
- category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
5786
- description?: string | null;
5787
- /** @minItems 1 */
5788
- keywords: string[];
5789
- /** @minLength 1 */
5790
- responseTemplate: string;
5791
- }
5792
-
5793
- export interface UpdateAiPromptRequest {
5794
- /**
5795
- * @minLength 1
5796
- * @maxLength 200
5797
- */
5798
- title: string;
5799
- icon: string;
5800
- /**
5801
- * @minLength 1
5802
- * @maxLength 500
5803
- */
5804
- description: string;
5805
- documentTypes: string[];
5806
- applicableGuidelines: string[];
5807
- allowedRoles: string[];
5808
- /** @minLength 1 */
5809
- systemPrompt: string;
5810
- /** @minLength 1 */
5811
- userPromptTemplate: string;
5812
- followUpPrompts: string[];
5813
- /** @format int32 */
5814
- sortOrder: number;
5815
- category?: AiPromptCategory | null;
5816
- queryTemplateName?: AiQueryTemplateName | null;
5817
- displayHint?: AiDisplayHint | null;
5818
- }
5819
-
5820
5288
  export interface UpdateDocumentTemplateRequest {
5821
5289
  /** @minLength 1 */
5822
5290
  htmlBody: string;
@@ -6135,19 +5603,7 @@ export interface UserDevice {
6135
5603
  export interface UserDraft {
6136
5604
  /** @format uuid */
6137
5605
  draftID: string;
6138
- role:
6139
- | "Borrower"
6140
- | "CoBorrower"
6141
- | "NonBorrower"
6142
- | "LoanOfficer"
6143
- | "LoanProcessor"
6144
- | "LoanOfficerAssistant"
6145
- | "SupportingLoanOfficer"
6146
- | "BuyerAgent"
6147
- | "SellerAgent"
6148
- | "TitleInsuranceAgent"
6149
- | "EscrowAgent"
6150
- | "SettlementAgent";
5606
+ role: UserDraftRoleEnum;
6151
5607
  user: User;
6152
5608
  }
6153
5609
 
@@ -6174,7 +5630,7 @@ export interface UserGroupAccessScope {
6174
5630
  id: string;
6175
5631
  /** @format uuid */
6176
5632
  groupId: string;
6177
- scopeType: "User" | "Branch";
5633
+ scopeType: UserGroupAccessScopeScopeTypeEnum;
6178
5634
  /** @format uuid */
6179
5635
  userId?: string | null;
6180
5636
  /** @format uuid */
@@ -6210,19 +5666,7 @@ export interface UserLoan {
6210
5666
  deletedAt?: string | null;
6211
5667
  loanID: string;
6212
5668
  user: User;
6213
- role:
6214
- | "Borrower"
6215
- | "CoBorrower"
6216
- | "NonBorrower"
6217
- | "LoanOfficer"
6218
- | "LoanProcessor"
6219
- | "LoanOfficerAssistant"
6220
- | "SupportingLoanOfficer"
6221
- | "BuyerAgent"
6222
- | "SellerAgent"
6223
- | "TitleInsuranceAgent"
6224
- | "EscrowAgent"
6225
- | "SettlementAgent";
5669
+ role: UserLoanRoleEnum;
6226
5670
  /** @format int32 */
6227
5671
  borrowerPair?: number | null;
6228
5672
  /** @format int32 */
@@ -6235,10 +5679,10 @@ export interface UserLoanConsent {
6235
5679
  id: string;
6236
5680
  /** @format uuid */
6237
5681
  userLoanID: string;
6238
- type: "Econsent" | "CreditAuthorization" | "Tcpa";
5682
+ type: UserLoanConsentTypeEnum;
6239
5683
  providedConsent: boolean;
6240
5684
  ipAddress?: string | null;
6241
- losSyncStatus: "NotStarted" | "Failed" | "Success";
5685
+ losSyncStatus: UserLoanConsentLosSyncStatusEnum;
6242
5686
  /** @format date-time */
6243
5687
  createdAt: string;
6244
5688
  }
@@ -6383,16 +5827,7 @@ export interface UserSummary {
6383
5827
  id: string;
6384
5828
  name?: string | null;
6385
5829
  email?: string | null;
6386
- role:
6387
- | "Borrower"
6388
- | "LoanOfficer"
6389
- | "Admin"
6390
- | "SuperAdmin"
6391
- | "Realtor"
6392
- | "SettlementAgent"
6393
- | "LoanProcessor"
6394
- | "LoanOfficerAssistant"
6395
- | "SystemAdmin";
5830
+ role: UserSummaryRoleEnum;
6396
5831
  }
6397
5832
 
6398
5833
  export interface VerifyPasswordRequest {
@@ -6428,637 +5863,541 @@ export interface Workflow {
6428
5863
  icon: string;
6429
5864
  }
6430
5865
 
6431
- import type {
6432
- AxiosInstance,
6433
- AxiosRequestConfig,
6434
- AxiosResponse,
6435
- HeadersDefaults,
6436
- ResponseType,
6437
- } from "axios";
6438
- import axios from "axios";
5866
+ export type AccountBillingRequestBillingTypeEnum = "ClosedLoan" | "LoanOfficer";
6439
5867
 
6440
- export type QueryParamsType = Record<string | number, any>;
5868
+ export type CreateAccessScopeRequestScopeTypeEnum = "User" | "Branch";
6441
5869
 
6442
- export interface FullRequestParams
6443
- extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
6444
- /** set parameter to `true` for call `securityWorker` for this request */
6445
- secure?: boolean;
6446
- /** request path */
6447
- path: string;
6448
- /** content type of request body */
6449
- type?: ContentType;
6450
- /** query params */
6451
- query?: QueryParamsType;
6452
- /** format of response (i.e. response.json() -> format: "json") */
6453
- format?: ResponseType;
6454
- /** request body */
6455
- body?: unknown;
6456
- }
5870
+ export type CreateAccountRequestEnvironmentEnum =
5871
+ | "Development"
5872
+ | "Staging"
5873
+ | "UAT"
5874
+ | "Production";
6457
5875
 
6458
- export type RequestParams = Omit<
6459
- FullRequestParams,
6460
- "body" | "method" | "query" | "path"
6461
- >;
5876
+ export type CreateGroupMemberRequestLoanRoleEnum =
5877
+ | "Borrower"
5878
+ | "CoBorrower"
5879
+ | "NonBorrower"
5880
+ | "LoanOfficer"
5881
+ | "LoanProcessor"
5882
+ | "LoanOfficerAssistant"
5883
+ | "SupportingLoanOfficer"
5884
+ | "BuyerAgent"
5885
+ | "SellerAgent"
5886
+ | "TitleInsuranceAgent"
5887
+ | "EscrowAgent"
5888
+ | "SettlementAgent";
6462
5889
 
6463
- export interface ApiConfig<SecurityDataType = unknown>
6464
- extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
6465
- securityWorker?: (
6466
- securityData: SecurityDataType | null,
6467
- ) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
6468
- secure?: boolean;
6469
- format?: ResponseType;
6470
- }
5890
+ /** @deprecated */
5891
+ export type CreateInviteRequestRelationshipEnum =
5892
+ | "NotApplicable"
5893
+ | "Spouse"
5894
+ | "NonSpouse";
6471
5895
 
6472
- export enum ContentType {
6473
- JsonPatch = "application/json-patch+json",
6474
- Json = "application/json",
6475
- JsonApi = "application/vnd.api+json",
6476
- FormData = "multipart/form-data",
6477
- UrlEncoded = "application/x-www-form-urlencoded",
6478
- Text = "text/plain",
6479
- }
5896
+ export type CreateLoanImportRequestImportModeEnum =
5897
+ | "All"
5898
+ | "NewOnly"
5899
+ | "UpdateOnly";
6480
5900
 
6481
- export class HttpClient<SecurityDataType = unknown> {
6482
- public instance: AxiosInstance;
6483
- private securityData: SecurityDataType | null = null;
6484
- private securityWorker?: ApiConfig<SecurityDataType>["securityWorker"];
6485
- private secure?: boolean;
6486
- private format?: ResponseType;
5901
+ export type CreateUserDraftLoanRoleEnum =
5902
+ | "Borrower"
5903
+ | "CoBorrower"
5904
+ | "NonBorrower"
5905
+ | "LoanOfficer"
5906
+ | "LoanProcessor"
5907
+ | "LoanOfficerAssistant"
5908
+ | "SupportingLoanOfficer"
5909
+ | "BuyerAgent"
5910
+ | "SellerAgent"
5911
+ | "TitleInsuranceAgent"
5912
+ | "EscrowAgent"
5913
+ | "SettlementAgent";
6487
5914
 
6488
- constructor({
6489
- securityWorker,
6490
- secure,
6491
- format,
6492
- ...axiosConfig
6493
- }: ApiConfig<SecurityDataType> = {}) {
6494
- this.instance = axios.create({
6495
- ...axiosConfig,
6496
- baseURL: axiosConfig.baseURL || "",
6497
- });
6498
- this.secure = secure;
6499
- this.format = format;
6500
- this.securityWorker = securityWorker;
6501
- }
5915
+ export type DraftTypeEnum = "NewLoan" | "EditLoan";
6502
5916
 
6503
- public setSecurityData = (data: SecurityDataType | null) => {
6504
- this.securityData = data;
6505
- };
5917
+ export type DraftContentTypeEnum = "NewLoan" | "EditLoan";
6506
5918
 
6507
- protected mergeRequestParams(
6508
- params1: AxiosRequestConfig,
6509
- params2?: AxiosRequestConfig,
6510
- ): AxiosRequestConfig {
6511
- const method = params1.method || (params2 && params2.method);
5919
+ export type EncompassRequestLogOperationTypeEnum =
5920
+ | "FieldUpdate"
5921
+ | "EConsentUpdate"
5922
+ | "DocumentSync"
5923
+ | "MilestoneUpdate"
5924
+ | "DocumentAttachment"
5925
+ | "General"
5926
+ | "FieldReader";
6512
5927
 
6513
- return {
6514
- ...this.instance.defaults,
6515
- ...params1,
6516
- ...(params2 || {}),
6517
- headers: {
6518
- ...((method &&
6519
- this.instance.defaults.headers[
6520
- method.toLowerCase() as keyof HeadersDefaults
6521
- ]) ||
6522
- {}),
6523
- ...(params1.headers || {}),
6524
- ...((params2 && params2.headers) || {}),
6525
- },
6526
- };
6527
- }
5928
+ export type EncompassRequestLogOutcomeEnum =
5929
+ | "Success"
5930
+ | "Failure"
5931
+ | "PartialSuccess";
6528
5932
 
6529
- protected stringifyFormItem(formItem: unknown) {
6530
- if (typeof formItem === "object" && formItem !== null) {
6531
- return JSON.stringify(formItem);
6532
- } else {
6533
- return `${formItem}`;
6534
- }
6535
- }
5933
+ export type FusionReportFilterFilterTypeEnum =
5934
+ | "DateGreaterThanOrEqualTo"
5935
+ | "DateGreaterThan"
5936
+ | "DateLessThan"
5937
+ | "DateLessThanOrEqualTo"
5938
+ | "DateEquals"
5939
+ | "DateDoesntEqual"
5940
+ | "DateNonEmpty"
5941
+ | "DateEmpty"
5942
+ | "StringContains"
5943
+ | "StringEquals"
5944
+ | "StringNotEmpty"
5945
+ | "StringNotEquals"
5946
+ | "StringNotContains";
6536
5947
 
6537
- protected createFormData(input: Record<string, unknown>): FormData {
6538
- if (input instanceof FormData) {
6539
- return input;
6540
- }
6541
- return Object.keys(input || {}).reduce((formData, key) => {
6542
- const property = input[key];
6543
- const propertyContent: any[] =
6544
- property instanceof Array ? property : [property];
5948
+ export type IpAddressAddressFamilyEnum =
5949
+ | "Unspecified"
5950
+ | "Unix"
5951
+ | "InterNetwork"
5952
+ | "ImpLink"
5953
+ | "Pup"
5954
+ | "Chaos"
5955
+ | "NS"
5956
+ | "Ipx"
5957
+ | "Iso"
5958
+ | "Osi"
5959
+ | "Ecma"
5960
+ | "DataKit"
5961
+ | "Ccitt"
5962
+ | "Sna"
5963
+ | "DecNet"
5964
+ | "DataLink"
5965
+ | "Lat"
5966
+ | "HyperChannel"
5967
+ | "AppleTalk"
5968
+ | "NetBios"
5969
+ | "VoiceView"
5970
+ | "FireFox"
5971
+ | "Banyan"
5972
+ | "Atm"
5973
+ | "InterNetworkV6"
5974
+ | "Cluster"
5975
+ | "Ieee12844"
5976
+ | "Irda"
5977
+ | "NetworkDesigners"
5978
+ | "Max"
5979
+ | "Packet"
5980
+ | "ControllerAreaNetwork"
5981
+ | "Unknown";
6545
5982
 
6546
- for (const formItem of propertyContent) {
6547
- const isFileType = formItem instanceof Blob || formItem instanceof File;
6548
- formData.append(
6549
- key,
6550
- isFileType ? formItem : this.stringifyFormItem(formItem),
6551
- );
6552
- }
5983
+ export type LoanContactRoleEnum =
5984
+ | "Borrower"
5985
+ | "CoBorrower"
5986
+ | "NonBorrower"
5987
+ | "LoanOfficer"
5988
+ | "LoanProcessor"
5989
+ | "LoanOfficerAssistant"
5990
+ | "SupportingLoanOfficer"
5991
+ | "BuyerAgent"
5992
+ | "SellerAgent"
5993
+ | "TitleInsuranceAgent"
5994
+ | "EscrowAgent"
5995
+ | "SettlementAgent";
6553
5996
 
6554
- return formData;
6555
- }, new FormData());
6556
- }
5997
+ export type LoanImportStatusEnum =
5998
+ | "WaitingProcess"
5999
+ | "InProgress"
6000
+ | "Completed"
6001
+ | "Failed"
6002
+ | "Cancelled";
6557
6003
 
6558
- public request = async <T = any, _E = any>({
6559
- secure,
6560
- path,
6561
- type,
6562
- query,
6563
- format,
6564
- body,
6565
- ...params
6566
- }: FullRequestParams): Promise<AxiosResponse<T>> => {
6567
- const secureParams =
6568
- ((typeof secure === "boolean" ? secure : this.secure) &&
6569
- this.securityWorker &&
6570
- (await this.securityWorker(this.securityData))) ||
6571
- {};
6572
- const requestParams = this.mergeRequestParams(params, secureParams);
6573
- const responseFormat = format || this.format || undefined;
6004
+ export type LoanImportImportModeEnum = "All" | "NewOnly" | "UpdateOnly";
6574
6005
 
6575
- if (
6576
- type === ContentType.FormData &&
6577
- body &&
6578
- body !== null &&
6579
- typeof body === "object"
6580
- ) {
6581
- body = this.createFormData(body as Record<string, unknown>);
6582
- }
6006
+ export type LoanImportLogLevelEnum = "None" | "Info" | "Warning" | "Error";
6583
6007
 
6584
- if (
6585
- type === ContentType.Text &&
6586
- body &&
6587
- body !== null &&
6588
- typeof body !== "string"
6589
- ) {
6590
- body = JSON.stringify(body);
6591
- }
6008
+ export type LoanLogLevelEnum = "None" | "Info" | "Warning" | "Error";
6592
6009
 
6593
- return this.instance.request({
6594
- ...requestParams,
6595
- headers: {
6596
- ...(requestParams.headers || {}),
6597
- ...(type ? { "Content-Type": type } : {}),
6598
- },
6599
- params: query,
6600
- responseType: responseFormat,
6601
- data: body,
6602
- url: path,
6603
- });
6604
- };
6605
- }
6010
+ export type LoanLogTypeEnum =
6011
+ | "Loan"
6012
+ | "Queue"
6013
+ | "POSFlagChanged"
6014
+ | "Verification"
6015
+ | "DocumentUploaded"
6016
+ | "LoanCreated"
6017
+ | "WorkflowSubmitted"
6018
+ | "UserInvitationSent"
6019
+ | "CoBorrowerAdded"
6020
+ | "TaskCompleted"
6021
+ | "LoanStatusChanged"
6022
+ | "EConsent"
6023
+ | "SensitiveDataPurge";
6606
6024
 
6607
- /**
6608
- * @title The Big POS API
6609
- * @version v2.36.14
6610
- * @termsOfService https://www.thebigpos.com/terms-of-use/
6611
- * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
6612
- */
6613
- export class Api<
6614
- SecurityDataType extends unknown,
6615
- > extends HttpClient<SecurityDataType> {
6616
- /**
6617
- * No description
6618
- *
6619
- * @tags Saml
6620
- * @name PostRoot
6621
- * @request POST:/
6622
- * @secure
6623
- * @response `200` `void` Success
6624
- */
6625
- postRoot = (params: RequestParams = {}) =>
6626
- this.request<void, any>({
6627
- path: `/`,
6628
- method: "POST",
6629
- secure: true,
6630
- ...params,
6631
- });
6025
+ export type LoanUserLoanRoleEnum =
6026
+ | "Borrower"
6027
+ | "CoBorrower"
6028
+ | "NonBorrower"
6029
+ | "LoanOfficer"
6030
+ | "LoanProcessor"
6031
+ | "LoanOfficerAssistant"
6032
+ | "SupportingLoanOfficer"
6033
+ | "BuyerAgent"
6034
+ | "SellerAgent"
6035
+ | "TitleInsuranceAgent"
6036
+ | "EscrowAgent"
6037
+ | "SettlementAgent";
6632
6038
 
6633
- /**
6634
- * No description
6635
- *
6636
- * @tags TheBigPOS
6637
- * @name GetRoot
6638
- * @request GET:/
6639
- * @secure
6640
- * @response `200` `string` Success
6641
- */
6642
- getRoot = (params: RequestParams = {}) =>
6643
- this.request<string, any>({
6644
- path: `/`,
6645
- method: "GET",
6646
- secure: true,
6647
- ...params,
6648
- });
6039
+ export type SamlMetadataRequestSsoIntegrationEnum =
6040
+ | "ConsumerConnect"
6041
+ | "TheBigPOS"
6042
+ | "POSF";
6649
6043
 
6650
- api = {
6651
- /**
6652
- * No description
6653
- *
6654
- * @tags Account
6655
- * @name GetMyAccount
6656
- * @summary Get
6657
- * @request GET:/api/account
6658
- * @secure
6659
- * @response `200` `Account` Success
6660
- * @response `404` `ProblemDetails` Not Found
6661
- */
6662
- getMyAccount: (params: RequestParams = {}) =>
6663
- this.request<Account, ProblemDetails>({
6664
- path: `/api/account`,
6665
- method: "GET",
6666
- secure: true,
6667
- format: "json",
6668
- ...params,
6669
- }),
6044
+ export type SiteConfigurationTypeEnum =
6045
+ | "None"
6046
+ | "Account"
6047
+ | "Corporate"
6048
+ | "Branch"
6049
+ | "LoanOfficer"
6050
+ | "Partner";
6670
6051
 
6671
- /**
6672
- * No description
6673
- *
6674
- * @tags Account
6675
- * @name ReplaceMyAccount
6676
- * @summary Replace
6677
- * @request PUT:/api/account
6678
- * @secure
6679
- * @response `200` `Account` Success
6680
- * @response `404` `ProblemDetails` Not Found
6681
- * @response `422` `ProblemDetails` Client Error
6682
- */
6683
- replaceMyAccount: (
6684
- data: UpdateAccountRequest,
6685
- params: RequestParams = {},
6686
- ) =>
6687
- this.request<Account, ProblemDetails>({
6688
- path: `/api/account`,
6689
- method: "PUT",
6690
- body: data,
6691
- secure: true,
6692
- type: ContentType.Json,
6693
- format: "json",
6694
- ...params,
6695
- }),
6052
+ export type SiteConfigurationByUrlTypeEnum =
6053
+ | "None"
6054
+ | "Account"
6055
+ | "Corporate"
6056
+ | "Branch"
6057
+ | "LoanOfficer"
6058
+ | "Partner";
6696
6059
 
6697
- /**
6698
- * No description
6699
- *
6700
- * @tags Account
6701
- * @name GetSiteConfigurationByAccount
6702
- * @summary Get Site Configuration
6703
- * @request GET:/api/account/site-configurations
6704
- * @secure
6705
- * @response `200` `SiteConfiguration` Success
6706
- */
6707
- getSiteConfigurationByAccount: (params: RequestParams = {}) =>
6708
- this.request<SiteConfiguration, any>({
6709
- path: `/api/account/site-configurations`,
6710
- method: "GET",
6711
- secure: true,
6712
- format: "json",
6713
- ...params,
6714
- }),
6060
+ export type SiteConfigurationReducedTypeEnum =
6061
+ | "None"
6062
+ | "Account"
6063
+ | "Corporate"
6064
+ | "Branch"
6065
+ | "LoanOfficer"
6066
+ | "Partner";
6715
6067
 
6716
- /**
6717
- * No description
6718
- *
6719
- * @tags Account
6720
- * @name UpdateSiteConfigurationForAccount
6721
- * @summary Update Site Configuration
6722
- * @request PUT:/api/account/site-configurations
6723
- * @secure
6724
- * @response `200` `SiteConfiguration` Success
6725
- * @response `422` `UnprocessableEntity` Client Error
6726
- */
6727
- updateSiteConfigurationForAccount: (
6728
- data: SiteConfiguration,
6729
- params: RequestParams = {},
6730
- ) =>
6731
- this.request<SiteConfiguration, UnprocessableEntity>({
6732
- path: `/api/account/site-configurations`,
6733
- method: "PUT",
6734
- body: data,
6735
- secure: true,
6736
- type: ContentType.Json,
6737
- format: "json",
6738
- ...params,
6739
- }),
6068
+ export type SiteConfigurationRequestTypeEnum =
6069
+ | "None"
6070
+ | "Account"
6071
+ | "Corporate"
6072
+ | "Branch"
6073
+ | "LoanOfficer"
6074
+ | "Partner";
6740
6075
 
6741
- /**
6742
- * No description
6743
- *
6744
- * @tags Accounts
6745
- * @name GetAccounts
6746
- * @summary Get All
6747
- * @request GET:/api/accounts
6748
- * @secure
6749
- * @response `200` `(Account)[]` Success
6750
- */
6751
- getAccounts: (params: RequestParams = {}) =>
6752
- this.request<Account[], any>({
6753
- path: `/api/accounts`,
6754
- method: "GET",
6755
- secure: true,
6756
- format: "json",
6757
- ...params,
6758
- }),
6076
+ export type SiteConfigurationSummaryTypeEnum =
6077
+ | "None"
6078
+ | "Account"
6079
+ | "Corporate"
6080
+ | "Branch"
6081
+ | "LoanOfficer"
6082
+ | "Partner";
6759
6083
 
6760
- /**
6761
- * No description
6762
- *
6763
- * @tags Accounts
6764
- * @name CreateAccount
6765
- * @summary Create
6766
- * @request POST:/api/accounts
6767
- * @secure
6768
- * @response `201` `Account` Created
6769
- * @response `422` `ProblemDetails` Client Error
6770
- */
6771
- createAccount: (data: CreateAccountRequest, params: RequestParams = {}) =>
6772
- this.request<Account, ProblemDetails>({
6773
- path: `/api/accounts`,
6774
- method: "POST",
6775
- body: data,
6776
- secure: true,
6777
- type: ContentType.Json,
6778
- format: "json",
6779
- ...params,
6780
- }),
6084
+ export type UserDraftRoleEnum =
6085
+ | "Borrower"
6086
+ | "CoBorrower"
6087
+ | "NonBorrower"
6088
+ | "LoanOfficer"
6089
+ | "LoanProcessor"
6090
+ | "LoanOfficerAssistant"
6091
+ | "SupportingLoanOfficer"
6092
+ | "BuyerAgent"
6093
+ | "SellerAgent"
6094
+ | "TitleInsuranceAgent"
6095
+ | "EscrowAgent"
6096
+ | "SettlementAgent";
6781
6097
 
6782
- /**
6783
- * No description
6784
- *
6785
- * @tags Accounts
6786
- * @name GetAccount
6787
- * @summary Get by ID
6788
- * @request GET:/api/accounts/{id}
6789
- * @secure
6790
- * @response `201` `Account` Created
6791
- * @response `422` `ProblemDetails` Client Error
6792
- */
6793
- getAccount: (id: string, params: RequestParams = {}) =>
6794
- this.request<Account, ProblemDetails>({
6795
- path: `/api/accounts/${id}`,
6796
- method: "GET",
6797
- secure: true,
6798
- format: "json",
6799
- ...params,
6800
- }),
6098
+ export type UserGroupAccessScopeScopeTypeEnum = "User" | "Branch";
6801
6099
 
6802
- /**
6803
- * No description
6804
- *
6805
- * @tags Accounts
6806
- * @name DeleteAccount
6807
- * @summary Delete
6808
- * @request DELETE:/api/accounts/{id}
6809
- * @secure
6810
- * @response `204` `Account` No Content
6811
- * @response `404` `ProblemDetails` Not Found
6812
- * @response `422` `ProblemDetails` Client Error
6813
- */
6814
- deleteAccount: (
6815
- id: string,
6816
- query?: {
6817
- /** @default false */
6818
- hardDelete?: boolean;
6819
- },
6820
- params: RequestParams = {},
6821
- ) =>
6822
- this.request<Account, ProblemDetails>({
6823
- path: `/api/accounts/${id}`,
6824
- method: "DELETE",
6825
- query: query,
6826
- secure: true,
6827
- format: "json",
6828
- ...params,
6829
- }),
6100
+ export type UserLoanRoleEnum =
6101
+ | "Borrower"
6102
+ | "CoBorrower"
6103
+ | "NonBorrower"
6104
+ | "LoanOfficer"
6105
+ | "LoanProcessor"
6106
+ | "LoanOfficerAssistant"
6107
+ | "SupportingLoanOfficer"
6108
+ | "BuyerAgent"
6109
+ | "SellerAgent"
6110
+ | "TitleInsuranceAgent"
6111
+ | "EscrowAgent"
6112
+ | "SettlementAgent";
6830
6113
 
6831
- /**
6832
- * No description
6833
- *
6834
- * @tags Accounts
6835
- * @name UpdateAccountBilling
6836
- * @summary Update billing configuration
6837
- * @request PUT:/api/accounts/{id}/billing
6838
- * @secure
6839
- * @response `200` `AccountBilling` Success
6840
- * @response `404` `ProblemDetails` Not Found
6841
- * @response `422` `ProblemDetails` Client Error
6842
- */
6843
- updateAccountBilling: (
6844
- id: string,
6845
- data: AccountBillingRequest,
6846
- params: RequestParams = {},
6847
- ) =>
6848
- this.request<AccountBilling, ProblemDetails>({
6849
- path: `/api/accounts/${id}/billing`,
6850
- method: "PUT",
6851
- body: data,
6852
- secure: true,
6853
- type: ContentType.Json,
6854
- format: "json",
6855
- ...params,
6856
- }),
6114
+ export type UserLoanConsentTypeEnum =
6115
+ | "Econsent"
6116
+ | "CreditAuthorization"
6117
+ | "Tcpa";
6857
6118
 
6858
- /**
6859
- * No description
6860
- *
6861
- * @tags AiAdmin
6862
- * @name GetAiAuditLogs
6863
- * @summary Get paginated audit logs
6864
- * @request GET:/api/ai/admin/audit-logs
6865
- * @secure
6866
- * @response `200` `AiAuditLogPaginated` Success
6867
- */
6868
- getAiAuditLogs: (
6869
- query?: {
6870
- eventType?: AiAuditEventType;
6871
- /** @format date-time */
6872
- startDate?: string;
6873
- /** @format date-time */
6874
- endDate?: string;
6875
- /** @format int32 */
6876
- pageSize?: number;
6877
- /** @format int32 */
6878
- pageNumber?: number;
6879
- sortBy?: string;
6880
- sortDirection?: string;
6881
- },
6882
- params: RequestParams = {},
6883
- ) =>
6884
- this.request<AiAuditLogPaginated, any>({
6885
- path: `/api/ai/admin/audit-logs`,
6886
- method: "GET",
6887
- query: query,
6888
- secure: true,
6889
- format: "json",
6890
- ...params,
6891
- }),
6119
+ export type UserLoanConsentLosSyncStatusEnum =
6120
+ | "NotStarted"
6121
+ | "Failed"
6122
+ | "Success";
6892
6123
 
6893
- /**
6894
- * No description
6895
- *
6896
- * @tags AiAdmin
6897
- * @name GetAiAdminStats
6898
- * @summary Get AI admin dashboard stats
6899
- * @request GET:/api/ai/admin/stats
6900
- * @secure
6901
- * @response `200` `AiAdminStats` Success
6902
- */
6903
- getAiAdminStats: (
6904
- query?: {
6905
- /** @format date-time */
6906
- startDate?: string;
6907
- /** @format date-time */
6908
- endDate?: string;
6124
+ export type UserSummaryRoleEnum =
6125
+ | "Borrower"
6126
+ | "LoanOfficer"
6127
+ | "Admin"
6128
+ | "SuperAdmin"
6129
+ | "Realtor"
6130
+ | "SettlementAgent"
6131
+ | "LoanProcessor"
6132
+ | "LoanOfficerAssistant"
6133
+ | "SystemAdmin";
6134
+
6135
+ /** @default "Realtor" */
6136
+ export type GetPartnersParamsRoleEnum =
6137
+ | "Borrower"
6138
+ | "LoanOfficer"
6139
+ | "Admin"
6140
+ | "SuperAdmin"
6141
+ | "Realtor"
6142
+ | "SettlementAgent"
6143
+ | "LoanProcessor"
6144
+ | "LoanOfficerAssistant"
6145
+ | "SystemAdmin";
6146
+
6147
+ export type GetSamlMetadataParamsSSoIntegrationEnum =
6148
+ | "ConsumerConnect"
6149
+ | "TheBigPOS"
6150
+ | "POSF";
6151
+
6152
+ export type GetSamlMetadataParamsEnum =
6153
+ | "ConsumerConnect"
6154
+ | "TheBigPOS"
6155
+ | "POSF";
6156
+
6157
+ export type CreateOrReplaceSamlMetadataParamsSSoIntegrationEnum =
6158
+ | "ConsumerConnect"
6159
+ | "TheBigPOS"
6160
+ | "POSF";
6161
+
6162
+ export type CreateOrReplaceSamlMetadataParamsEnum =
6163
+ | "ConsumerConnect"
6164
+ | "TheBigPOS"
6165
+ | "POSF";
6166
+
6167
+ import type {
6168
+ AxiosInstance,
6169
+ AxiosRequestConfig,
6170
+ AxiosResponse,
6171
+ HeadersDefaults,
6172
+ ResponseType,
6173
+ } from "axios";
6174
+ import axios from "axios";
6175
+
6176
+ export type QueryParamsType = Record<string | number, any>;
6177
+
6178
+ export interface FullRequestParams
6179
+ extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
6180
+ /** set parameter to `true` for call `securityWorker` for this request */
6181
+ secure?: boolean;
6182
+ /** request path */
6183
+ path: string;
6184
+ /** content type of request body */
6185
+ type?: ContentType;
6186
+ /** query params */
6187
+ query?: QueryParamsType;
6188
+ /** format of response (i.e. response.json() -> format: "json") */
6189
+ format?: ResponseType;
6190
+ /** request body */
6191
+ body?: unknown;
6192
+ }
6193
+
6194
+ export type RequestParams = Omit<
6195
+ FullRequestParams,
6196
+ "body" | "method" | "query" | "path"
6197
+ >;
6198
+
6199
+ export interface ApiConfig<SecurityDataType = unknown>
6200
+ extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
6201
+ securityWorker?: (
6202
+ securityData: SecurityDataType | null,
6203
+ ) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
6204
+ secure?: boolean;
6205
+ format?: ResponseType;
6206
+ }
6207
+
6208
+ export enum ContentType {
6209
+ JsonPatch = "application/json-patch+json",
6210
+ Json = "application/json",
6211
+ JsonApi = "application/vnd.api+json",
6212
+ FormData = "multipart/form-data",
6213
+ UrlEncoded = "application/x-www-form-urlencoded",
6214
+ Text = "text/plain",
6215
+ }
6216
+
6217
+ export class HttpClient<SecurityDataType = unknown> {
6218
+ public instance: AxiosInstance;
6219
+ private securityData: SecurityDataType | null = null;
6220
+ private securityWorker?: ApiConfig<SecurityDataType>["securityWorker"];
6221
+ private secure?: boolean;
6222
+ private format?: ResponseType;
6223
+
6224
+ constructor({
6225
+ securityWorker,
6226
+ secure,
6227
+ format,
6228
+ ...axiosConfig
6229
+ }: ApiConfig<SecurityDataType> = {}) {
6230
+ this.instance = axios.create({
6231
+ ...axiosConfig,
6232
+ baseURL: axiosConfig.baseURL || "",
6233
+ });
6234
+ this.secure = secure;
6235
+ this.format = format;
6236
+ this.securityWorker = securityWorker;
6237
+ }
6238
+
6239
+ public setSecurityData = (data: SecurityDataType | null) => {
6240
+ this.securityData = data;
6241
+ };
6242
+
6243
+ protected mergeRequestParams(
6244
+ params1: AxiosRequestConfig,
6245
+ params2?: AxiosRequestConfig,
6246
+ ): AxiosRequestConfig {
6247
+ const method = params1.method || (params2 && params2.method);
6248
+
6249
+ return {
6250
+ ...this.instance.defaults,
6251
+ ...params1,
6252
+ ...(params2 || {}),
6253
+ headers: {
6254
+ ...((method &&
6255
+ this.instance.defaults.headers[
6256
+ method.toLowerCase() as keyof HeadersDefaults
6257
+ ]) ||
6258
+ {}),
6259
+ ...(params1.headers || {}),
6260
+ ...((params2 && params2.headers) || {}),
6909
6261
  },
6910
- params: RequestParams = {},
6911
- ) =>
6912
- this.request<AiAdminStats, any>({
6913
- path: `/api/ai/admin/stats`,
6914
- method: "GET",
6915
- query: query,
6916
- secure: true,
6917
- format: "json",
6918
- ...params,
6919
- }),
6262
+ };
6263
+ }
6920
6264
 
6921
- /**
6922
- * No description
6923
- *
6924
- * @tags AiAdminPrompt
6925
- * @name GetAiPrompts
6926
- * @summary Get all prompts
6927
- * @request GET:/api/ai/admin/prompts
6928
- * @secure
6929
- * @response `200` `(AiPrompt)[]` Success
6930
- */
6931
- getAiPrompts: (params: RequestParams = {}) =>
6932
- this.request<AiPrompt[], any>({
6933
- path: `/api/ai/admin/prompts`,
6934
- method: "GET",
6935
- secure: true,
6936
- format: "json",
6937
- ...params,
6938
- }),
6265
+ protected stringifyFormItem(formItem: unknown) {
6266
+ if (typeof formItem === "object" && formItem !== null) {
6267
+ return JSON.stringify(formItem);
6268
+ } else {
6269
+ return `${formItem}`;
6270
+ }
6271
+ }
6939
6272
 
6940
- /**
6941
- * No description
6942
- *
6943
- * @tags AiAdminPrompt
6944
- * @name CreateAiPrompt
6945
- * @summary Create custom prompt
6946
- * @request POST:/api/ai/admin/prompts
6947
- * @secure
6948
- * @response `201` `AiPrompt` Created
6949
- * @response `400` `ProblemDetails` Bad Request
6950
- */
6951
- createAiPrompt: (data: CreateAiPromptRequest, params: RequestParams = {}) =>
6952
- this.request<AiPrompt, ProblemDetails>({
6953
- path: `/api/ai/admin/prompts`,
6954
- method: "POST",
6955
- body: data,
6956
- secure: true,
6957
- type: ContentType.Json,
6958
- format: "json",
6959
- ...params,
6960
- }),
6273
+ protected createFormData(input: Record<string, unknown>): FormData {
6274
+ if (input instanceof FormData) {
6275
+ return input;
6276
+ }
6277
+ return Object.keys(input || {}).reduce((formData, key) => {
6278
+ const property = input[key];
6279
+ const propertyContent: any[] =
6280
+ property instanceof Array ? property : [property];
6961
6281
 
6962
- /**
6963
- * No description
6964
- *
6965
- * @tags AiAdminPrompt
6966
- * @name GetAiPrompt
6967
- * @summary Get prompt by ID
6968
- * @request GET:/api/ai/admin/prompts/{id}
6969
- * @secure
6970
- * @response `200` `AiPrompt` Success
6971
- * @response `404` `ProblemDetails` Not Found
6972
- */
6973
- getAiPrompt: (id: string, params: RequestParams = {}) =>
6974
- this.request<AiPrompt, ProblemDetails>({
6975
- path: `/api/ai/admin/prompts/${id}`,
6976
- method: "GET",
6977
- secure: true,
6978
- format: "json",
6979
- ...params,
6980
- }),
6282
+ for (const formItem of propertyContent) {
6283
+ const isFileType = formItem instanceof Blob || formItem instanceof File;
6284
+ formData.append(
6285
+ key,
6286
+ isFileType ? formItem : this.stringifyFormItem(formItem),
6287
+ );
6288
+ }
6981
6289
 
6982
- /**
6983
- * No description
6984
- *
6985
- * @tags AiAdminPrompt
6986
- * @name UpdateAiPrompt
6987
- * @summary Update prompt
6988
- * @request PUT:/api/ai/admin/prompts/{id}
6989
- * @secure
6990
- * @response `200` `AiPrompt` Success
6991
- * @response `400` `ProblemDetails` Bad Request
6992
- * @response `404` `ProblemDetails` Not Found
6993
- */
6994
- updateAiPrompt: (
6995
- id: string,
6996
- data: UpdateAiPromptRequest,
6997
- params: RequestParams = {},
6998
- ) =>
6999
- this.request<AiPrompt, ProblemDetails>({
7000
- path: `/api/ai/admin/prompts/${id}`,
7001
- method: "PUT",
7002
- body: data,
7003
- secure: true,
7004
- type: ContentType.Json,
7005
- format: "json",
7006
- ...params,
7007
- }),
6290
+ return formData;
6291
+ }, new FormData());
6292
+ }
7008
6293
 
7009
- /**
7010
- * No description
7011
- *
7012
- * @tags AiAdminPrompt
7013
- * @name DeleteAiPrompt
7014
- * @summary Delete prompt
7015
- * @request DELETE:/api/ai/admin/prompts/{id}
7016
- * @secure
7017
- * @response `204` `void` No Content
7018
- * @response `400` `ProblemDetails` Bad Request
7019
- * @response `404` `ProblemDetails` Not Found
7020
- */
7021
- deleteAiPrompt: (id: string, params: RequestParams = {}) =>
7022
- this.request<void, ProblemDetails>({
7023
- path: `/api/ai/admin/prompts/${id}`,
7024
- method: "DELETE",
7025
- secure: true,
7026
- ...params,
7027
- }),
6294
+ public request = async <T = any, _E = any>({
6295
+ secure,
6296
+ path,
6297
+ type,
6298
+ query,
6299
+ format,
6300
+ body,
6301
+ ...params
6302
+ }: FullRequestParams): Promise<AxiosResponse<T>> => {
6303
+ const secureParams =
6304
+ ((typeof secure === "boolean" ? secure : this.secure) &&
6305
+ this.securityWorker &&
6306
+ (await this.securityWorker(this.securityData))) ||
6307
+ {};
6308
+ const requestParams = this.mergeRequestParams(params, secureParams);
6309
+ const responseFormat = format || this.format || undefined;
6310
+
6311
+ if (
6312
+ type === ContentType.FormData &&
6313
+ body &&
6314
+ body !== null &&
6315
+ typeof body === "object"
6316
+ ) {
6317
+ body = this.createFormData(body as Record<string, unknown>);
6318
+ }
6319
+
6320
+ if (
6321
+ type === ContentType.Text &&
6322
+ body &&
6323
+ body !== null &&
6324
+ typeof body !== "string"
6325
+ ) {
6326
+ body = JSON.stringify(body);
6327
+ }
6328
+
6329
+ return this.instance.request({
6330
+ ...requestParams,
6331
+ headers: {
6332
+ ...(requestParams.headers || {}),
6333
+ ...(type ? { "Content-Type": type } : {}),
6334
+ },
6335
+ params: query,
6336
+ responseType: responseFormat,
6337
+ data: body,
6338
+ url: path,
6339
+ });
6340
+ };
6341
+ }
6342
+
6343
+ /**
6344
+ * @title The Big POS API
6345
+ * @version v2.36.14
6346
+ * @termsOfService https://www.thebigpos.com/terms-of-use/
6347
+ * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
6348
+ */
6349
+ export class Api<
6350
+ SecurityDataType extends unknown,
6351
+ > extends HttpClient<SecurityDataType> {
6352
+ /**
6353
+ * No description
6354
+ *
6355
+ * @tags Saml
6356
+ * @name PostRoot
6357
+ * @request POST:/
6358
+ * @secure
6359
+ * @response `200` `void` Success
6360
+ */
6361
+ postRoot = (params: RequestParams = {}) =>
6362
+ this.request<void, any>({
6363
+ path: `/`,
6364
+ method: "POST",
6365
+ secure: true,
6366
+ ...params,
6367
+ });
7028
6368
 
7029
- /**
7030
- * No description
7031
- *
7032
- * @tags AiAdminPrompt
7033
- * @name ToggleAiPrompt
7034
- * @summary Toggle prompt active/inactive
7035
- * @request PATCH:/api/ai/admin/prompts/{id}/toggle
7036
- * @secure
7037
- * @response `200` `AiPrompt` Success
7038
- * @response `404` `ProblemDetails` Not Found
7039
- */
7040
- toggleAiPrompt: (id: string, params: RequestParams = {}) =>
7041
- this.request<AiPrompt, ProblemDetails>({
7042
- path: `/api/ai/admin/prompts/${id}/toggle`,
7043
- method: "PATCH",
7044
- secure: true,
7045
- format: "json",
7046
- ...params,
7047
- }),
6369
+ /**
6370
+ * No description
6371
+ *
6372
+ * @tags TheBigPOS
6373
+ * @name GetRoot
6374
+ * @request GET:/
6375
+ * @secure
6376
+ * @response `200` `string` Success
6377
+ */
6378
+ getRoot = (params: RequestParams = {}) =>
6379
+ this.request<string, any>({
6380
+ path: `/`,
6381
+ method: "GET",
6382
+ secure: true,
6383
+ ...params,
6384
+ });
7048
6385
 
6386
+ api = {
7049
6387
  /**
7050
6388
  * No description
7051
6389
  *
7052
- * @tags AiCanonicalField
7053
- * @name GetAiCanonicalFields
7054
- * @summary Get all canonical fields
7055
- * @request GET:/api/ai/admin/fields
6390
+ * @tags Account
6391
+ * @name GetMyAccount
6392
+ * @summary Get
6393
+ * @request GET:/api/account
7056
6394
  * @secure
7057
- * @response `200` `(AiCanonicalField)[]` Success
6395
+ * @response `200` `Account` Success
6396
+ * @response `404` `ProblemDetails` Not Found
7058
6397
  */
7059
- getAiCanonicalFields: (params: RequestParams = {}) =>
7060
- this.request<AiCanonicalField[], any>({
7061
- path: `/api/ai/admin/fields`,
6398
+ getMyAccount: (params: RequestParams = {}) =>
6399
+ this.request<Account, ProblemDetails>({
6400
+ path: `/api/account`,
7062
6401
  method: "GET",
7063
6402
  secure: true,
7064
6403
  format: "json",
@@ -7068,24 +6407,25 @@ export class Api<
7068
6407
  /**
7069
6408
  * No description
7070
6409
  *
7071
- * @tags AiCanonicalField
7072
- * @name CreateAiCanonicalField
7073
- * @summary Create canonical field
7074
- * @request POST:/api/ai/admin/fields
6410
+ * @tags Account
6411
+ * @name ReplaceMyAccount
6412
+ * @summary Replace
6413
+ * @request PUT:/api/account
7075
6414
  * @secure
7076
- * @response `201` `AiCanonicalField` Created
7077
- * @response `400` `ProblemDetails` Bad Request
6415
+ * @response `200` `Account` Success
6416
+ * @response `404` `ProblemDetails` Not Found
6417
+ * @response `422` `ProblemDetails` Client Error
7078
6418
  */
7079
- createAiCanonicalField: (
7080
- data: CreateAiCanonicalFieldRequest,
6419
+ replaceMyAccount: (
6420
+ data: UpdateAccountRequest,
7081
6421
  params: RequestParams = {},
7082
6422
  ) =>
7083
- this.request<AiCanonicalField, ProblemDetails>({
7084
- path: `/api/ai/admin/fields`,
7085
- method: "POST",
6423
+ this.request<Account, ProblemDetails>({
6424
+ path: `/api/account`,
6425
+ method: "PUT",
7086
6426
  body: data,
7087
6427
  secure: true,
7088
- type: ContentType.JsonPatch,
6428
+ type: ContentType.Json,
7089
6429
  format: "json",
7090
6430
  ...params,
7091
6431
  }),
@@ -7093,17 +6433,16 @@ export class Api<
7093
6433
  /**
7094
6434
  * No description
7095
6435
  *
7096
- * @tags AiCanonicalField
7097
- * @name GetAiCanonicalField
7098
- * @summary Get canonical field by ID
7099
- * @request GET:/api/ai/admin/fields/{id}
6436
+ * @tags Account
6437
+ * @name GetSiteConfigurationByAccount
6438
+ * @summary Get Site Configuration
6439
+ * @request GET:/api/account/site-configurations
7100
6440
  * @secure
7101
- * @response `200` `AiCanonicalField` Success
7102
- * @response `404` `ProblemDetails` Not Found
6441
+ * @response `200` `SiteConfiguration` Success
7103
6442
  */
7104
- getAiCanonicalField: (id: string, params: RequestParams = {}) =>
7105
- this.request<AiCanonicalField, ProblemDetails>({
7106
- path: `/api/ai/admin/fields/${id}`,
6443
+ getSiteConfigurationByAccount: (params: RequestParams = {}) =>
6444
+ this.request<SiteConfiguration, any>({
6445
+ path: `/api/account/site-configurations`,
7107
6446
  method: "GET",
7108
6447
  secure: true,
7109
6448
  format: "json",
@@ -7113,22 +6452,20 @@ export class Api<
7113
6452
  /**
7114
6453
  * No description
7115
6454
  *
7116
- * @tags AiCanonicalField
7117
- * @name UpdateAiCanonicalField
7118
- * @summary Update canonical field
7119
- * @request PUT:/api/ai/admin/fields/{id}
6455
+ * @tags Account
6456
+ * @name UpdateSiteConfigurationForAccount
6457
+ * @summary Update Site Configuration
6458
+ * @request PUT:/api/account/site-configurations
7120
6459
  * @secure
7121
- * @response `200` `AiCanonicalField` Success
7122
- * @response `400` `ProblemDetails` Bad Request
7123
- * @response `404` `ProblemDetails` Not Found
6460
+ * @response `200` `SiteConfiguration` Success
6461
+ * @response `422` `UnprocessableEntity` Client Error
7124
6462
  */
7125
- updateAiCanonicalField: (
7126
- id: string,
7127
- data: UpdateAiCanonicalFieldRequest,
6463
+ updateSiteConfigurationForAccount: (
6464
+ data: SiteConfiguration,
7128
6465
  params: RequestParams = {},
7129
6466
  ) =>
7130
- this.request<AiCanonicalField, ProblemDetails>({
7131
- path: `/api/ai/admin/fields/${id}`,
6467
+ this.request<SiteConfiguration, UnprocessableEntity>({
6468
+ path: `/api/account/site-configurations`,
7132
6469
  method: "PUT",
7133
6470
  body: data,
7134
6471
  secure: true,
@@ -7140,37 +6477,17 @@ export class Api<
7140
6477
  /**
7141
6478
  * No description
7142
6479
  *
7143
- * @tags AiCanonicalField
7144
- * @name DeleteAiCanonicalField
7145
- * @summary Delete canonical field
7146
- * @request DELETE:/api/ai/admin/fields/{id}
7147
- * @secure
7148
- * @response `204` `void` No Content
7149
- * @response `404` `ProblemDetails` Not Found
7150
- */
7151
- deleteAiCanonicalField: (id: string, params: RequestParams = {}) =>
7152
- this.request<void, ProblemDetails>({
7153
- path: `/api/ai/admin/fields/${id}`,
7154
- method: "DELETE",
7155
- secure: true,
7156
- ...params,
7157
- }),
7158
-
7159
- /**
7160
- * No description
7161
- *
7162
- * @tags AiCanonicalField
7163
- * @name ToggleAiCanonicalField
7164
- * @summary Toggle canonical field active/inactive
7165
- * @request PATCH:/api/ai/admin/fields/{id}/toggle
6480
+ * @tags Accounts
6481
+ * @name GetAccounts
6482
+ * @summary Get All
6483
+ * @request GET:/api/accounts
7166
6484
  * @secure
7167
- * @response `200` `AiCanonicalField` Success
7168
- * @response `404` `ProblemDetails` Not Found
6485
+ * @response `200` `(Account)[]` Success
7169
6486
  */
7170
- toggleAiCanonicalField: (id: string, params: RequestParams = {}) =>
7171
- this.request<AiCanonicalField, ProblemDetails>({
7172
- path: `/api/ai/admin/fields/${id}/toggle`,
7173
- method: "PATCH",
6487
+ getAccounts: (params: RequestParams = {}) =>
6488
+ this.request<Account[], any>({
6489
+ path: `/api/accounts`,
6490
+ method: "GET",
7174
6491
  secure: true,
7175
6492
  format: "json",
7176
6493
  ...params,
@@ -7179,52 +6496,21 @@ export class Api<
7179
6496
  /**
7180
6497
  * No description
7181
6498
  *
7182
- * @tags AiChat
7183
- * @name AiChat
7184
- * @summary Send AI chat message
7185
- * @request POST:/api/ai/chat
6499
+ * @tags Accounts
6500
+ * @name CreateAccount
6501
+ * @summary Create
6502
+ * @request POST:/api/accounts
7186
6503
  * @secure
7187
- * @response `200` `AiChat` Success
7188
- * @response `400` `ProblemDetails` Bad Request
7189
- * @response `401` `ProblemDetails` Unauthorized
6504
+ * @response `201` `Account` Created
6505
+ * @response `422` `ProblemDetails` Client Error
7190
6506
  */
7191
- aiChat: (data: AiChatRequest, params: RequestParams = {}) =>
7192
- this.request<AiChat, ProblemDetails>({
7193
- path: `/api/ai/chat`,
6507
+ createAccount: (data: CreateAccountRequest, params: RequestParams = {}) =>
6508
+ this.request<Account, ProblemDetails>({
6509
+ path: `/api/accounts`,
7194
6510
  method: "POST",
7195
6511
  body: data,
7196
6512
  secure: true,
7197
- type: ContentType.JsonPatch,
7198
- format: "json",
7199
- ...params,
7200
- }),
7201
-
7202
- /**
7203
- * No description
7204
- *
7205
- * @tags AiConversation
7206
- * @name GetAiConversations
7207
- * @summary Get user conversations
7208
- * @request GET:/api/ai/conversations
7209
- * @secure
7210
- * @response `200` `AiConversationListItemPaginated` Success
7211
- */
7212
- getAiConversations: (
7213
- query?: {
7214
- /** @format int32 */
7215
- pageSize?: number;
7216
- /** @format int32 */
7217
- pageNumber?: number;
7218
- sortBy?: string;
7219
- sortDirection?: string;
7220
- },
7221
- params: RequestParams = {},
7222
- ) =>
7223
- this.request<AiConversationListItemPaginated, any>({
7224
- path: `/api/ai/conversations`,
7225
- method: "GET",
7226
- query: query,
7227
- secure: true,
6513
+ type: ContentType.Json,
7228
6514
  format: "json",
7229
6515
  ...params,
7230
6516
  }),
@@ -7232,18 +6518,17 @@ export class Api<
7232
6518
  /**
7233
6519
  * No description
7234
6520
  *
7235
- * @tags AiConversation
7236
- * @name GetAiConversation
7237
- * @summary Get conversation with messages
7238
- * @request GET:/api/ai/conversations/{id}
6521
+ * @tags Accounts
6522
+ * @name GetAccount
6523
+ * @summary Get by ID
6524
+ * @request GET:/api/accounts/{id}
7239
6525
  * @secure
7240
- * @response `200` `AiConversationDetail` Success
7241
- * @response `403` `ProblemDetails` Forbidden
7242
- * @response `404` `ProblemDetails` Not Found
6526
+ * @response `201` `Account` Created
6527
+ * @response `422` `ProblemDetails` Client Error
7243
6528
  */
7244
- getAiConversation: (id: string, params: RequestParams = {}) =>
7245
- this.request<AiConversationDetail, ProblemDetails>({
7246
- path: `/api/ai/conversations/${id}`,
6529
+ getAccount: (id: string, params: RequestParams = {}) =>
6530
+ this.request<Account, ProblemDetails>({
6531
+ path: `/api/accounts/${id}`,
7247
6532
  method: "GET",
7248
6533
  secure: true,
7249
6534
  format: "json",
@@ -7253,82 +6538,27 @@ export class Api<
7253
6538
  /**
7254
6539
  * No description
7255
6540
  *
7256
- * @tags AiConversation
7257
- * @name DeleteAiConversation
7258
- * @summary Delete conversation
7259
- * @request DELETE:/api/ai/conversations/{id}
6541
+ * @tags Accounts
6542
+ * @name DeleteAccount
6543
+ * @summary Delete
6544
+ * @request DELETE:/api/accounts/{id}
7260
6545
  * @secure
7261
- * @response `204` `void` No Content
7262
- * @response `403` `ProblemDetails` Forbidden
6546
+ * @response `204` `Account` No Content
7263
6547
  * @response `404` `ProblemDetails` Not Found
6548
+ * @response `422` `ProblemDetails` Client Error
7264
6549
  */
7265
- deleteAiConversation: (id: string, params: RequestParams = {}) =>
7266
- this.request<void, ProblemDetails>({
7267
- path: `/api/ai/conversations/${id}`,
7268
- method: "DELETE",
7269
- secure: true,
7270
- ...params,
7271
- }),
7272
-
7273
- /**
7274
- * No description
7275
- *
7276
- * @tags AiGuardrail
7277
- * @name GetAiGuardrails
7278
- * @summary Get all guardrails
7279
- * @request GET:/api/ai/admin/guardrails
7280
- * @secure
7281
- * @response `200` `(AiGuardrail)[]` Success
7282
- */
7283
- getAiGuardrails: (params: RequestParams = {}) =>
7284
- this.request<AiGuardrail[], any>({
7285
- path: `/api/ai/admin/guardrails`,
7286
- method: "GET",
7287
- secure: true,
7288
- format: "json",
7289
- ...params,
7290
- }),
7291
-
7292
- /**
7293
- * No description
7294
- *
7295
- * @tags AiGuardrail
7296
- * @name CreateAiGuardrail
7297
- * @summary Create custom guardrail
7298
- * @request POST:/api/ai/admin/guardrails
7299
- * @secure
7300
- * @response `201` `AiGuardrail` Created
7301
- * @response `400` `ProblemDetails` Bad Request
7302
- */
7303
- createAiGuardrail: (
7304
- data: CreateAiGuardrailRequest,
6550
+ deleteAccount: (
6551
+ id: string,
6552
+ query?: {
6553
+ /** @default false */
6554
+ hardDelete?: boolean;
6555
+ },
7305
6556
  params: RequestParams = {},
7306
6557
  ) =>
7307
- this.request<AiGuardrail, ProblemDetails>({
7308
- path: `/api/ai/admin/guardrails`,
7309
- method: "POST",
7310
- body: data,
7311
- secure: true,
7312
- type: ContentType.Json,
7313
- format: "json",
7314
- ...params,
7315
- }),
7316
-
7317
- /**
7318
- * No description
7319
- *
7320
- * @tags AiGuardrail
7321
- * @name GetAiGuardrail
7322
- * @summary Get guardrail by ID
7323
- * @request GET:/api/ai/admin/guardrails/{id}
7324
- * @secure
7325
- * @response `200` `AiGuardrail` Success
7326
- * @response `404` `ProblemDetails` Not Found
7327
- */
7328
- getAiGuardrail: (id: string, params: RequestParams = {}) =>
7329
- this.request<AiGuardrail, ProblemDetails>({
7330
- path: `/api/ai/admin/guardrails/${id}`,
7331
- method: "GET",
6558
+ this.request<Account, ProblemDetails>({
6559
+ path: `/api/accounts/${id}`,
6560
+ method: "DELETE",
6561
+ query: query,
7332
6562
  secure: true,
7333
6563
  format: "json",
7334
6564
  ...params,
@@ -7337,22 +6567,22 @@ export class Api<
7337
6567
  /**
7338
6568
  * No description
7339
6569
  *
7340
- * @tags AiGuardrail
7341
- * @name UpdateAiGuardrail
7342
- * @summary Update guardrail
7343
- * @request PUT:/api/ai/admin/guardrails/{id}
6570
+ * @tags Accounts
6571
+ * @name UpdateAccountBilling
6572
+ * @summary Update billing configuration
6573
+ * @request PUT:/api/accounts/{id}/billing
7344
6574
  * @secure
7345
- * @response `200` `AiGuardrail` Success
7346
- * @response `400` `ProblemDetails` Bad Request
6575
+ * @response `200` `AccountBilling` Success
7347
6576
  * @response `404` `ProblemDetails` Not Found
6577
+ * @response `422` `ProblemDetails` Client Error
7348
6578
  */
7349
- updateAiGuardrail: (
6579
+ updateAccountBilling: (
7350
6580
  id: string,
7351
- data: UpdateAiGuardrailRequest,
6581
+ data: AccountBillingRequest,
7352
6582
  params: RequestParams = {},
7353
6583
  ) =>
7354
- this.request<AiGuardrail, ProblemDetails>({
7355
- path: `/api/ai/admin/guardrails/${id}`,
6584
+ this.request<AccountBilling, ProblemDetails>({
6585
+ path: `/api/accounts/${id}/billing`,
7356
6586
  method: "PUT",
7357
6587
  body: data,
7358
6588
  secure: true,
@@ -7361,71 +6591,6 @@ export class Api<
7361
6591
  ...params,
7362
6592
  }),
7363
6593
 
7364
- /**
7365
- * No description
7366
- *
7367
- * @tags AiGuardrail
7368
- * @name DeleteAiGuardrail
7369
- * @summary Delete guardrail
7370
- * @request DELETE:/api/ai/admin/guardrails/{id}
7371
- * @secure
7372
- * @response `204` `void` No Content
7373
- * @response `400` `ProblemDetails` Bad Request
7374
- * @response `404` `ProblemDetails` Not Found
7375
- */
7376
- deleteAiGuardrail: (id: string, params: RequestParams = {}) =>
7377
- this.request<void, ProblemDetails>({
7378
- path: `/api/ai/admin/guardrails/${id}`,
7379
- method: "DELETE",
7380
- secure: true,
7381
- ...params,
7382
- }),
7383
-
7384
- /**
7385
- * No description
7386
- *
7387
- * @tags AiGuardrail
7388
- * @name ToggleAiGuardrail
7389
- * @summary Toggle guardrail enabled/disabled
7390
- * @request PATCH:/api/ai/admin/guardrails/{id}/toggle
7391
- * @secure
7392
- * @response `200` `AiGuardrail` Success
7393
- * @response `404` `ProblemDetails` Not Found
7394
- */
7395
- toggleAiGuardrail: (id: string, params: RequestParams = {}) =>
7396
- this.request<AiGuardrail, ProblemDetails>({
7397
- path: `/api/ai/admin/guardrails/${id}/toggle`,
7398
- method: "PATCH",
7399
- secure: true,
7400
- format: "json",
7401
- ...params,
7402
- }),
7403
-
7404
- /**
7405
- * No description
7406
- *
7407
- * @tags AiPrompt
7408
- * @name GetAvailablePrompts
7409
- * @summary Get available prompts for current user
7410
- * @request GET:/api/ai/prompts
7411
- * @secure
7412
- * @response `200` `(AiPromptSummary)[]` Success
7413
- */
7414
- getAvailablePrompts: (
7415
- query?: {
7416
- documentType?: string;
7417
- },
7418
- params: RequestParams = {},
7419
- ) =>
7420
- this.request<AiPromptSummary[], any>({
7421
- path: `/api/ai/prompts`,
7422
- method: "GET",
7423
- query: query,
7424
- secure: true,
7425
- format: "json",
7426
- ...params,
7427
- }),
7428
-
7429
6594
  /**
7430
6595
  * No description
7431
6596
  *
@@ -7447,7 +6612,7 @@ export class Api<
7447
6612
  method: "POST",
7448
6613
  body: data,
7449
6614
  secure: true,
7450
- type: ContentType.JsonPatch,
6615
+ type: ContentType.Json,
7451
6616
  format: "json",
7452
6617
  ...params,
7453
6618
  }),
@@ -12455,16 +11620,7 @@ export class Api<
12455
11620
  query?: {
12456
11621
  showAll?: boolean;
12457
11622
  /** @default "Realtor" */
12458
- role?:
12459
- | "Borrower"
12460
- | "LoanOfficer"
12461
- | "Admin"
12462
- | "SuperAdmin"
12463
- | "Realtor"
12464
- | "SettlementAgent"
12465
- | "LoanProcessor"
12466
- | "LoanOfficerAssistant"
12467
- | "SystemAdmin";
11623
+ role?: GetPartnersParamsRoleEnum;
12468
11624
  /** @format int32 */
12469
11625
  pageSize?: number;
12470
11626
  /** @format int32 */
@@ -12800,7 +11956,7 @@ export class Api<
12800
11956
  * @response `404` `ProblemDetails` Not Found
12801
11957
  */
12802
11958
  getSamlMetadata: (
12803
- sSoIntegration: "ConsumerConnect" | "TheBigPOS" | "POSF",
11959
+ sSoIntegration: GetSamlMetadataParamsEnum,
12804
11960
  ssoIntegration: string,
12805
11961
  params: RequestParams = {},
12806
11962
  ) =>
@@ -12822,7 +11978,7 @@ export class Api<
12822
11978
  * @response `200` `File` Success
12823
11979
  */
12824
11980
  createOrReplaceSamlMetadata: (
12825
- sSoIntegration: "ConsumerConnect" | "TheBigPOS" | "POSF",
11981
+ sSoIntegration: CreateOrReplaceSamlMetadataParamsEnum,
12826
11982
  ssoIntegration: string,
12827
11983
  params: RequestParams = {},
12828
11984
  ) =>