@matech/thebigpos-sdk 2.37.6-aibi-12 → 2.37.8

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
@@ -347,89 +347,6 @@ export type AuditChangeType =
347
347
  | "HardDeleted"
348
348
  | "Restored";
349
349
 
350
- export type AiUrlSourceScope = "FullDomain" | "SpecificPath";
351
-
352
- export type AiUrlSourceCategory =
353
- | "Regulatory"
354
- | "Guidelines"
355
- | "MarketData"
356
- | "Custom";
357
-
358
- export type AiStructuredDataType =
359
- | "Table"
360
- | "DocumentAnalysis"
361
- | "DocumentList"
362
- | "GeneratedDocument";
363
-
364
- export type AiQueryTemplateName =
365
- | "PipelineSummary"
366
- | "LoanDetail"
367
- | "LoansClosing"
368
- | "StaleLoans"
369
- | "LoansByType"
370
- | "LoansByOfficer"
371
- | "AverageLoanAmount"
372
- | "LockedVsUnlocked"
373
- | "LoansByPurpose"
374
- | "LoansByPropertyState"
375
- | "LoansByRate"
376
- | "DtiLtvRisk"
377
- | "DisclosureTracking"
378
- | "NewLoans"
379
- | "ExpiringLocks"
380
- | "ClosedLoans";
381
-
382
- export type AiPromptCategory =
383
- | "DocumentAnalysis"
384
- | "DataQuery"
385
- | "General"
386
- | "Action";
387
-
388
- export type AiOutputType = "Text" | "Document";
389
-
390
- export type AiIntent =
391
- | "Greeting"
392
- | "Invalid"
393
- | "Relevant"
394
- | "LoanSpecific"
395
- | "DocumentList"
396
- | "GeneralKnowledge"
397
- | "Blocked"
398
- | "Action";
399
-
400
- export type AiGuardrailCategory =
401
- | "ContentSafety"
402
- | "PromptInjection"
403
- | "Privacy"
404
- | "Legal";
405
-
406
- export type AiDisplayHint =
407
- | "Table"
408
- | "SummaryCards"
409
- | "RankedList"
410
- | "Comparison"
411
- | "ExecutiveBrief";
412
-
413
- export type AiAuditEventType =
414
- | "Error"
415
- | "GuardrailBlockedPre"
416
- | "GuardrailPassedPre"
417
- | "IntentClassified"
418
- | "LoanResolvedFromMessage"
419
- | "DocumentNotFound"
420
- | "GuardrailBlockedPost"
421
- | "GuardrailPassedPost"
422
- | "DocumentAnalyzed"
423
- | "DocumentList"
424
- | "DocumentResolutionAmbiguous"
425
- | "ResponseGenerated"
426
- | "ParametersExtracted"
427
- | "QueryExecuted"
428
- | "LoanContextNotFound"
429
- | "LoanContextLoaded"
430
- | "GuardrailBlockedBedrock"
431
- | "PromptMatched";
432
-
433
350
  export type AddressFamily =
434
351
  | "Unspecified"
435
352
  | "Unix"
@@ -517,7 +434,7 @@ export interface AccountBilling {
517
434
  }
518
435
 
519
436
  export interface AccountBillingRequest {
520
- billingType: "ClosedLoan" | "LoanOfficer";
437
+ billingType: AccountBillingRequestBillingTypeEnum;
521
438
  /**
522
439
  * @format double
523
440
  * @min 0
@@ -532,7 +449,6 @@ export interface AccountSettings {
532
449
  smsNumber?: string | null;
533
450
  ssoHostOverride?: string | null;
534
451
  isEarlyAdopter: boolean;
535
- isAIEnabled: boolean;
536
452
  }
537
453
 
538
454
  export interface AccountSettingsRequest {
@@ -743,263 +659,6 @@ export interface AffordabilityCalculatorRequest {
743
659
  annualInsurance: number;
744
660
  }
745
661
 
746
- export interface AiAdminStats {
747
- /** @format int32 */
748
- totalRequests: number;
749
- /** @format int32 */
750
- blockedRequests: number;
751
- /** @format double */
752
- averageResponseTimeMs: number;
753
- intentDistribution: Record<string, number>;
754
- topQueryTemplates: Record<string, number>;
755
- period: string;
756
- }
757
-
758
- export interface AiAuditLog {
759
- /** @format uuid */
760
- id: string;
761
- /** @format uuid */
762
- requestId: string;
763
- /** @format uuid */
764
- userId: string;
765
- eventType:
766
- | "Error"
767
- | "GuardrailBlockedPre"
768
- | "GuardrailPassedPre"
769
- | "IntentClassified"
770
- | "LoanResolvedFromMessage"
771
- | "DocumentNotFound"
772
- | "GuardrailBlockedPost"
773
- | "GuardrailPassedPost"
774
- | "DocumentAnalyzed"
775
- | "DocumentList"
776
- | "DocumentResolutionAmbiguous"
777
- | "ResponseGenerated"
778
- | "ParametersExtracted"
779
- | "QueryExecuted"
780
- | "LoanContextNotFound"
781
- | "LoanContextLoaded"
782
- | "GuardrailBlockedBedrock"
783
- | "PromptMatched";
784
- details?: any;
785
- /** @format date-time */
786
- createdAt: string;
787
- }
788
-
789
- export interface AiAuditLogPaginated {
790
- rows: AiAuditLog[];
791
- pagination: Pagination;
792
- /** @format int64 */
793
- count: number;
794
- }
795
-
796
- export interface AiCanonicalField {
797
- /** @format uuid */
798
- id: string;
799
- canonicalName: string;
800
- displayName: string;
801
- description: string;
802
- allowedRoles: string[];
803
- efPath?: string | null;
804
- isPii: boolean;
805
- isActive: boolean;
806
- dataSource: string;
807
- isDefault: boolean;
808
- category?: string | null;
809
- jsonPropertyName?: string | null;
810
- textractKey?: string | null;
811
- textractKeyAliases?: string | null;
812
- hasAccountOverride: boolean;
813
- /** @format date-time */
814
- createdAt: string;
815
- /** @format date-time */
816
- updatedAt?: string | null;
817
- }
818
-
819
- export interface AiChat {
820
- /** @format uuid */
821
- conversationId: string;
822
- /** @format uuid */
823
- messageId: string;
824
- response: AiChatBody;
825
- metadata: AiChatMetadata;
826
- }
827
-
828
- export interface AiChatBody {
829
- text: string;
830
- data?: AiChatStructuredData | null;
831
- suggestedFollowUps: string[];
832
- }
833
-
834
- export interface AiChatMessage {
835
- /** @format uuid */
836
- id: string;
837
- userMessage: string;
838
- assistantResponse: string;
839
- intent?: AiIntent | null;
840
- fieldsAccessed?: string[] | null;
841
- /** @format date-time */
842
- createdAt: string;
843
- }
844
-
845
- export interface AiChatMetadata {
846
- intent:
847
- | "Greeting"
848
- | "Invalid"
849
- | "Relevant"
850
- | "LoanSpecific"
851
- | "DocumentList"
852
- | "GeneralKnowledge"
853
- | "Blocked"
854
- | "Action";
855
- fieldsAccessed: string[];
856
- /** @format int64 */
857
- queryTimeMs: number;
858
- /** @format int64 */
859
- llmTimeMs: number;
860
- wasBlocked: boolean;
861
- blockedReason?: string | null;
862
- }
863
-
864
- export interface AiChatRequest {
865
- /**
866
- * @minLength 1
867
- * @maxLength 2000
868
- */
869
- message: string;
870
- /** @format uuid */
871
- conversationId?: string | null;
872
- /** @format uuid */
873
- loanId?: string | null;
874
- documentIds?: string[] | null;
875
- /** @format uuid */
876
- promptId?: string | null;
877
- }
878
-
879
- export interface AiChatStructuredData {
880
- type: "Table" | "DocumentAnalysis" | "DocumentList" | "GeneratedDocument";
881
- displayHint?: AiDisplayHint | null;
882
- detectedDocumentType?: string | null;
883
- columns: string[];
884
- rows: string[][];
885
- /** @format uuid */
886
- generatedDocumentId?: string | null;
887
- generatedFileName?: string | null;
888
- }
889
-
890
- export interface AiConversationDetail {
891
- /** @format uuid */
892
- id: string;
893
- /** @format date-time */
894
- createdAt: string;
895
- /** @format date-time */
896
- updatedAt?: string | null;
897
- messages: AiChatMessage[];
898
- }
899
-
900
- export interface AiConversationListItem {
901
- /** @format uuid */
902
- id: string;
903
- preview: string;
904
- /** @format int32 */
905
- messageCount: number;
906
- /** @format date-time */
907
- createdAt: string;
908
- /** @format date-time */
909
- updatedAt?: string | null;
910
- }
911
-
912
- export interface AiConversationListItemPaginated {
913
- rows: AiConversationListItem[];
914
- pagination: Pagination;
915
- /** @format int64 */
916
- count: number;
917
- }
918
-
919
- export interface AiGuardrail {
920
- /** @format uuid */
921
- id: string;
922
- name: string;
923
- category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
924
- description?: string | null;
925
- keywords: string[];
926
- responseTemplate: string;
927
- isDefault: boolean;
928
- isEnabled: boolean;
929
- hasAccountOverride: boolean;
930
- /** @format date-time */
931
- createdAt: string;
932
- /** @format date-time */
933
- updatedAt?: string | null;
934
- }
935
-
936
- export interface AiPrompt {
937
- /** @format uuid */
938
- id: string;
939
- title: string;
940
- icon: string;
941
- slug: string;
942
- description: string;
943
- documentTypes: string[];
944
- applicableGuidelines: string[];
945
- allowedRoles: string[];
946
- systemPrompt: string;
947
- userPromptTemplate: string;
948
- followUpPrompts: string[];
949
- /** @format int32 */
950
- sortOrder: number;
951
- isDefault: boolean;
952
- /** @format uuid */
953
- accountId?: string | null;
954
- isActive: boolean;
955
- category?: AiPromptCategory | null;
956
- queryTemplateName?: AiQueryTemplateName | null;
957
- displayHint?: AiDisplayHint | null;
958
- bedrockModelId?: string | null;
959
- requiredDataSources?: string[] | null;
960
- outputType?: AiOutputType | null;
961
- hasAccountOverride: boolean;
962
- /** @format date-time */
963
- createdAt: string;
964
- /** @format date-time */
965
- updatedAt?: string | null;
966
- }
967
-
968
- export interface AiPromptSummary {
969
- /** @format uuid */
970
- id: string;
971
- title: string;
972
- icon: string;
973
- slug: string;
974
- description: string;
975
- documentTypes: string[];
976
- applicableGuidelines: string[];
977
- followUpPrompts: string[];
978
- /** @format int32 */
979
- sortOrder: number;
980
- category?: AiPromptCategory | null;
981
- queryTemplateName?: AiQueryTemplateName | null;
982
- displayHint?: AiDisplayHint | null;
983
- bedrockModelId?: string | null;
984
- requiredDataSources?: string[] | null;
985
- outputType?: AiOutputType | null;
986
- }
987
-
988
- export interface AiUrlSource {
989
- /** @format uuid */
990
- id: string;
991
- name: string;
992
- url: string;
993
- description?: string | null;
994
- category: "Regulatory" | "Guidelines" | "MarketData" | "Custom";
995
- scope: "FullDomain" | "SpecificPath";
996
- isActive: boolean;
997
- /** @format date-time */
998
- createdAt: string;
999
- /** @format date-time */
1000
- updatedAt?: string | null;
1001
- }
1002
-
1003
662
  export interface AllowImpersonationRequest {
1004
663
  /**
1005
664
  * @format email
@@ -1107,15 +766,13 @@ export interface AuditLogEntry {
1107
766
  /** @format uuid */
1108
767
  id: string;
1109
768
  entityType: string;
1110
- changeType:
1111
- | "Created"
1112
- | "Modified"
1113
- | "SoftDeleted"
1114
- | "HardDeleted"
1115
- | "Restored";
769
+ changeType: AuditLogEntryChangeTypeEnum;
1116
770
  /** @format uuid */
1117
771
  entityId: string;
1118
772
  performedBy?: AuditLogUser | null;
773
+ rootEntityType?: string | null;
774
+ /** @format uuid */
775
+ rootEntityId?: string | null;
1119
776
  changes?: any;
1120
777
  /** @format date-time */
1121
778
  createdAt: string;
@@ -1139,6 +796,9 @@ export interface AuditLogSearchCriteria {
1139
796
  startDate?: string | null;
1140
797
  /** @format date-time */
1141
798
  endDate?: string | null;
799
+ rootEntityType?: string | null;
800
+ /** @format uuid */
801
+ rootEntityId?: string | null;
1142
802
  }
1143
803
 
1144
804
  export interface AuditLogUser {
@@ -1396,7 +1056,7 @@ export interface CorporateSearchCriteria {
1396
1056
  }
1397
1057
 
1398
1058
  export interface CreateAccessScopeRequest {
1399
- scopeType: "User" | "Branch";
1059
+ scopeType: CreateAccessScopeRequestScopeTypeEnum;
1400
1060
  /** @format uuid */
1401
1061
  userId?: string | null;
1402
1062
  /** @format uuid */
@@ -1420,92 +1080,11 @@ export interface CreateAccountRequest {
1420
1080
  */
1421
1081
  nlmsid: number;
1422
1082
  settings: AccountSettingsRequest;
1423
- environment: "Development" | "Staging" | "UAT" | "Production";
1083
+ environment: CreateAccountRequestEnvironmentEnum;
1424
1084
  losIntegration: LOSIntegration;
1425
1085
  billingSettings: AccountBillingRequest;
1426
1086
  }
1427
1087
 
1428
- export interface CreateAiCanonicalFieldRequest {
1429
- /**
1430
- * @minLength 1
1431
- * @maxLength 200
1432
- */
1433
- displayName: string;
1434
- /** @minLength 1 */
1435
- description: string;
1436
- /** @minItems 1 */
1437
- allowedRoles: string[];
1438
- isPii: boolean;
1439
- /** @minLength 1 */
1440
- dataSource: string;
1441
- category?: string | null;
1442
- }
1443
-
1444
- export interface CreateAiGuardrailRequest {
1445
- /**
1446
- * @minLength 1
1447
- * @maxLength 200
1448
- */
1449
- name: string;
1450
- category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
1451
- description?: string | null;
1452
- /** @minItems 1 */
1453
- keywords: string[];
1454
- /** @minLength 1 */
1455
- responseTemplate: string;
1456
- }
1457
-
1458
- export interface CreateAiPromptRequest {
1459
- /**
1460
- * @minLength 1
1461
- * @maxLength 200
1462
- */
1463
- title: string;
1464
- icon: string;
1465
- /**
1466
- * @minLength 1
1467
- * @maxLength 100
1468
- */
1469
- slug: string;
1470
- /**
1471
- * @minLength 1
1472
- * @maxLength 500
1473
- */
1474
- description: string;
1475
- documentTypes: string[];
1476
- applicableGuidelines: string[];
1477
- allowedRoles: string[];
1478
- /** @minLength 1 */
1479
- systemPrompt: string;
1480
- /** @minLength 1 */
1481
- userPromptTemplate: string;
1482
- followUpPrompts: string[];
1483
- /** @format int32 */
1484
- sortOrder: number;
1485
- category?: AiPromptCategory | null;
1486
- queryTemplateName?: AiQueryTemplateName | null;
1487
- displayHint?: AiDisplayHint | null;
1488
- bedrockModelId?: string | null;
1489
- requiredDataSources?: string[] | null;
1490
- outputType?: AiOutputType | null;
1491
- }
1492
-
1493
- export interface CreateAiUrlSourceRequest {
1494
- /**
1495
- * @minLength 1
1496
- * @maxLength 200
1497
- */
1498
- name: string;
1499
- /**
1500
- * @minLength 1
1501
- * @maxLength 2048
1502
- */
1503
- url: string;
1504
- description?: string | null;
1505
- category: "Regulatory" | "Guidelines" | "MarketData" | "Custom";
1506
- scope: "FullDomain" | "SpecificPath";
1507
- }
1508
-
1509
1088
  export interface CreateBranchRequest {
1510
1089
  /**
1511
1090
  * @minLength 1
@@ -1534,19 +1113,7 @@ export interface CreateDocumentTemplateRequest {
1534
1113
  export interface CreateGroupMemberRequest {
1535
1114
  /** @format uuid */
1536
1115
  userId: string;
1537
- loanRole:
1538
- | "Borrower"
1539
- | "CoBorrower"
1540
- | "NonBorrower"
1541
- | "LoanOfficer"
1542
- | "LoanProcessor"
1543
- | "LoanOfficerAssistant"
1544
- | "SupportingLoanOfficer"
1545
- | "BuyerAgent"
1546
- | "SellerAgent"
1547
- | "TitleInsuranceAgent"
1548
- | "EscrowAgent"
1549
- | "SettlementAgent";
1116
+ loanRole: CreateGroupMemberRequestLoanRoleEnum;
1550
1117
  }
1551
1118
 
1552
1119
  export interface CreateInviteRequest {
@@ -1558,7 +1125,7 @@ export interface CreateInviteRequest {
1558
1125
  emailAddress: string;
1559
1126
  phoneNumber?: string | null;
1560
1127
  /** @deprecated */
1561
- relationship: "NotApplicable" | "Spouse" | "NonSpouse";
1128
+ relationship: CreateInviteRequestRelationshipEnum;
1562
1129
  loanID: string;
1563
1130
  route?: string | null;
1564
1131
  /** @format uuid */
@@ -1581,7 +1148,7 @@ export interface CreateLoanImportRequest {
1581
1148
  * @minLength 1
1582
1149
  */
1583
1150
  startDate: string;
1584
- importMode: "All" | "NewOnly" | "UpdateOnly";
1151
+ importMode: CreateLoanImportRequestImportModeEnum;
1585
1152
  }
1586
1153
 
1587
1154
  export interface CreateSession {
@@ -1603,19 +1170,7 @@ export interface CreateUserDeviceRequest {
1603
1170
  }
1604
1171
 
1605
1172
  export interface CreateUserDraft {
1606
- loanRole:
1607
- | "Borrower"
1608
- | "CoBorrower"
1609
- | "NonBorrower"
1610
- | "LoanOfficer"
1611
- | "LoanProcessor"
1612
- | "LoanOfficerAssistant"
1613
- | "SupportingLoanOfficer"
1614
- | "BuyerAgent"
1615
- | "SellerAgent"
1616
- | "TitleInsuranceAgent"
1617
- | "EscrowAgent"
1618
- | "SettlementAgent";
1173
+ loanRole: CreateUserDraftLoanRoleEnum;
1619
1174
  }
1620
1175
 
1621
1176
  export interface CreateUserGroupRequest {
@@ -1931,7 +1486,7 @@ export interface Draft {
1931
1486
  siteConfiguration: SiteConfigurationReduced;
1932
1487
  /** @format uuid */
1933
1488
  loanID?: string | null;
1934
- type: "NewLoan" | "EditLoan";
1489
+ type: DraftTypeEnum;
1935
1490
  isCoBorrower: boolean;
1936
1491
  }
1937
1492
 
@@ -1950,7 +1505,7 @@ export interface DraftContent {
1950
1505
  siteConfiguration: SiteConfigurationReduced;
1951
1506
  /** @format uuid */
1952
1507
  loanID?: string | null;
1953
- type: "NewLoan" | "EditLoan";
1508
+ type: DraftContentTypeEnum;
1954
1509
  isCoBorrower: boolean;
1955
1510
  applicationPayload: any;
1956
1511
  }
@@ -1970,6 +1525,7 @@ export interface DraftLoanOfficerReassignRequest {
1970
1525
  export interface DraftRequest {
1971
1526
  applicationPayload: any;
1972
1527
  customData?: any;
1528
+ isCoBorrower: boolean;
1973
1529
  }
1974
1530
 
1975
1531
  export interface EConsentInformation {
@@ -2074,21 +1630,25 @@ export interface EncompassPackageList {
2074
1630
  totalPages: number;
2075
1631
  }
2076
1632
 
1633
+ export interface EncompassRecipientItem {
1634
+ /** @format uuid */
1635
+ id: string;
1636
+ /** @format uuid */
1637
+ packageId: string;
1638
+ recipientId: string;
1639
+ status: string;
1640
+ /** @format date-time */
1641
+ createdAt: string;
1642
+ }
1643
+
2077
1644
  export interface EncompassRequestLog {
2078
1645
  /** @format uuid */
2079
1646
  id: string;
2080
1647
  losId?: string | null;
2081
1648
  /** @format uuid */
2082
1649
  accountId: string;
2083
- operationType:
2084
- | "FieldUpdate"
2085
- | "EConsentUpdate"
2086
- | "DocumentSync"
2087
- | "MilestoneUpdate"
2088
- | "DocumentAttachment"
2089
- | "General"
2090
- | "FieldReader";
2091
- outcome: "Success" | "Failure" | "PartialSuccess";
1650
+ operationType: EncompassRequestLogOperationTypeEnum;
1651
+ outcome: EncompassRequestLogOutcomeEnum;
2092
1652
  message: string;
2093
1653
  endpoint?: string | null;
2094
1654
  httpMethod?: string | null;
@@ -2146,7 +1706,7 @@ export interface FileSearchCriteria {
2146
1706
  export interface FileWithBytes {
2147
1707
  name: string;
2148
1708
  /** @format byte */
2149
- data: string;
1709
+ data: Blob;
2150
1710
  fileName: string;
2151
1711
  mimeType?: string | null;
2152
1712
  extension?: string | null;
@@ -2325,20 +1885,7 @@ export interface FusionFieldDisplay {
2325
1885
  }
2326
1886
 
2327
1887
  export interface FusionReportFilter {
2328
- filterType:
2329
- | "DateGreaterThanOrEqualTo"
2330
- | "DateGreaterThan"
2331
- | "DateLessThan"
2332
- | "DateLessThanOrEqualTo"
2333
- | "DateEquals"
2334
- | "DateDoesntEqual"
2335
- | "DateNonEmpty"
2336
- | "DateEmpty"
2337
- | "StringContains"
2338
- | "StringEquals"
2339
- | "StringNotEmpty"
2340
- | "StringNotEquals"
2341
- | "StringNotContains";
1888
+ filterType: FusionReportFilterFilterTypeEnum;
2342
1889
  targetField: string;
2343
1890
  targetValue: string;
2344
1891
  }
@@ -2360,19 +1907,6 @@ export interface GenerateDocumentRequest {
2360
1907
  recipients: string[];
2361
1908
  }
2362
1909
 
2363
- export interface GenerateSystemPrompt {
2364
- systemPrompt: string;
2365
- }
2366
-
2367
- export interface GenerateSystemPromptRequest {
2368
- /**
2369
- * @minLength 1
2370
- * @maxLength 2000
2371
- */
2372
- description: string;
2373
- category: "DocumentAnalysis" | "DataQuery" | "General" | "Action";
2374
- }
2375
-
2376
1910
  export interface GetApplications {
2377
1911
  applications: ApplicationRowData[];
2378
1912
  }
@@ -2479,40 +2013,7 @@ export interface GuidPatchOperation {
2479
2013
  }
2480
2014
 
2481
2015
  export interface IPAddress {
2482
- addressFamily:
2483
- | "Unspecified"
2484
- | "Unix"
2485
- | "InterNetwork"
2486
- | "ImpLink"
2487
- | "Pup"
2488
- | "Chaos"
2489
- | "NS"
2490
- | "Ipx"
2491
- | "Iso"
2492
- | "Osi"
2493
- | "Ecma"
2494
- | "DataKit"
2495
- | "Ccitt"
2496
- | "Sna"
2497
- | "DecNet"
2498
- | "DataLink"
2499
- | "Lat"
2500
- | "HyperChannel"
2501
- | "AppleTalk"
2502
- | "NetBios"
2503
- | "VoiceView"
2504
- | "FireFox"
2505
- | "Banyan"
2506
- | "Atm"
2507
- | "InterNetworkV6"
2508
- | "Cluster"
2509
- | "Ieee12844"
2510
- | "Irda"
2511
- | "NetworkDesigners"
2512
- | "Max"
2513
- | "Packet"
2514
- | "ControllerAreaNetwork"
2515
- | "Unknown";
2016
+ addressFamily: IpAddressAddressFamilyEnum;
2516
2017
  /** @format int64 */
2517
2018
  scopeId: number;
2518
2019
  isIPv6Multicast: boolean;
@@ -2835,7 +2336,7 @@ export interface LoanBorrower {
2835
2336
  citizenship?: LoanCitizenship | null;
2836
2337
  maritalStatus?: LoanMaritalStatus | null;
2837
2338
  languagePreference?: LoanLanguagePreference | null;
2838
- applicationStatus: "Draft" | "Complete";
2339
+ applicationStatus: LoanBorrowerApplicationStatusEnum;
2839
2340
  /** @format int32 */
2840
2341
  numberOfDependents?: number | null;
2841
2342
  isPrimaryBorrower: boolean;
@@ -3760,19 +3261,7 @@ export interface LoanContact {
3760
3261
  email?: string | null;
3761
3262
  phone?: string | null;
3762
3263
  companyName?: string | null;
3763
- role:
3764
- | "Borrower"
3765
- | "CoBorrower"
3766
- | "NonBorrower"
3767
- | "LoanOfficer"
3768
- | "LoanProcessor"
3769
- | "LoanOfficerAssistant"
3770
- | "SupportingLoanOfficer"
3771
- | "BuyerAgent"
3772
- | "SellerAgent"
3773
- | "TitleInsuranceAgent"
3774
- | "EscrowAgent"
3775
- | "SettlementAgent";
3264
+ role: LoanContactRoleEnum;
3776
3265
  }
3777
3266
 
3778
3267
  export interface LoanContactList {
@@ -3908,19 +3397,14 @@ export interface LoanImport {
3908
3397
  /** @format int32 */
3909
3398
  importedCount: number;
3910
3399
  statusMessage?: string | null;
3911
- status:
3912
- | "WaitingProcess"
3913
- | "InProgress"
3914
- | "Completed"
3915
- | "Failed"
3916
- | "Cancelled";
3917
- importMode: "All" | "NewOnly" | "UpdateOnly";
3400
+ status: LoanImportStatusEnum;
3401
+ importMode: LoanImportImportModeEnum;
3918
3402
  /** @format date-time */
3919
3403
  createdAt?: string | null;
3920
3404
  }
3921
3405
 
3922
3406
  export interface LoanImportLog {
3923
- level: "None" | "Info" | "Warning" | "Error";
3407
+ level: LoanImportLogLevelEnum;
3924
3408
  message: string;
3925
3409
  /** @format date-time */
3926
3410
  createdAt: string;
@@ -3981,22 +3465,8 @@ export interface LoanListPaginated {
3981
3465
  export interface LoanLog {
3982
3466
  /** @format uuid */
3983
3467
  id: string;
3984
- level: "None" | "Info" | "Warning" | "Error";
3985
- type:
3986
- | "Loan"
3987
- | "Queue"
3988
- | "POSFlagChanged"
3989
- | "Verification"
3990
- | "DocumentUploaded"
3991
- | "LoanCreated"
3992
- | "WorkflowSubmitted"
3993
- | "UserInvitationSent"
3994
- | "CoBorrowerAdded"
3995
- | "TaskCompleted"
3996
- | "LoanStatusChanged"
3997
- | "EConsent"
3998
- | "SensitiveDataPurge"
3999
- | "ClosingDateUpdated";
3468
+ level: LoanLogLevelEnum;
3469
+ type: LoanLogTypeEnum;
4000
3470
  message: string;
4001
3471
  /** @format date-time */
4002
3472
  createdAt: string;
@@ -4005,22 +3475,8 @@ export interface LoanLog {
4005
3475
  export interface LoanLogDetail {
4006
3476
  /** @format uuid */
4007
3477
  id: string;
4008
- level: "None" | "Info" | "Warning" | "Error";
4009
- type:
4010
- | "Loan"
4011
- | "Queue"
4012
- | "POSFlagChanged"
4013
- | "Verification"
4014
- | "DocumentUploaded"
4015
- | "LoanCreated"
4016
- | "WorkflowSubmitted"
4017
- | "UserInvitationSent"
4018
- | "CoBorrowerAdded"
4019
- | "TaskCompleted"
4020
- | "LoanStatusChanged"
4021
- | "EConsent"
4022
- | "SensitiveDataPurge"
4023
- | "ClosingDateUpdated";
3478
+ level: LoanLogDetailLevelEnum;
3479
+ type: LoanLogDetailTypeEnum;
4024
3480
  message: string;
4025
3481
  /** @format date-time */
4026
3482
  createdAt: string;
@@ -4304,19 +3760,7 @@ export interface LoanUser {
4304
3760
  email: string;
4305
3761
  phone?: string | null;
4306
3762
  role: string;
4307
- loanRole:
4308
- | "Borrower"
4309
- | "CoBorrower"
4310
- | "NonBorrower"
4311
- | "LoanOfficer"
4312
- | "LoanProcessor"
4313
- | "LoanOfficerAssistant"
4314
- | "SupportingLoanOfficer"
4315
- | "BuyerAgent"
4316
- | "SellerAgent"
4317
- | "TitleInsuranceAgent"
4318
- | "EscrowAgent"
4319
- | "SettlementAgent";
3763
+ loanRole: LoanUserLoanRoleEnum;
4320
3764
  isUser: boolean;
4321
3765
  /** @format date-time */
4322
3766
  createdAt: string;
@@ -4961,7 +4405,7 @@ export interface SSOTokenRequest {
4961
4405
  }
4962
4406
 
4963
4407
  export interface SamlMetadataRequest {
4964
- ssoIntegration: "ConsumerConnect" | "TheBigPOS" | "POSF";
4408
+ ssoIntegration: SamlMetadataRequestSsoIntegrationEnum;
4965
4409
  }
4966
4410
 
4967
4411
  export interface SendForgotPasswordRequest {
@@ -5000,7 +4444,7 @@ export interface SiteConfiguration {
5000
4444
  deletedAt?: string | null;
5001
4445
  /** @format uuid */
5002
4446
  id: string;
5003
- type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4447
+ type: SiteConfigurationTypeEnum;
5004
4448
  /** @format uuid */
5005
4449
  entityID: string;
5006
4450
  /** @format int32 */
@@ -5195,7 +4639,7 @@ export interface SiteConfigurationByUrl {
5195
4639
  deletedAt?: string | null;
5196
4640
  /** @format uuid */
5197
4641
  id: string;
5198
- type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4642
+ type: SiteConfigurationByUrlTypeEnum;
5199
4643
  /** @format uuid */
5200
4644
  entityID: string;
5201
4645
  /** @format int32 */
@@ -5408,7 +4852,7 @@ export interface SiteConfigurationForm {
5408
4852
  export interface SiteConfigurationReduced {
5409
4853
  /** @format uuid */
5410
4854
  id: string;
5411
- type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4855
+ type: SiteConfigurationReducedTypeEnum;
5412
4856
  url?: string | null;
5413
4857
  name: string;
5414
4858
  /** @format int64 */
@@ -5426,7 +4870,7 @@ export interface SiteConfigurationRequest {
5426
4870
  entityID: string;
5427
4871
  /** @format int32 */
5428
4872
  entityType: number;
5429
- type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4873
+ type: SiteConfigurationRequestTypeEnum;
5430
4874
  url: string;
5431
4875
  name: string;
5432
4876
  introduction?: string | null;
@@ -5603,7 +5047,7 @@ export interface SiteConfigurationSearchCriteria {
5603
5047
  export interface SiteConfigurationSummary {
5604
5048
  /** @format uuid */
5605
5049
  id: string;
5606
- type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5050
+ type: SiteConfigurationSummaryTypeEnum;
5607
5051
  url?: string | null;
5608
5052
  name: string;
5609
5053
  /** @format int64 */
@@ -5651,14 +5095,6 @@ export interface SocialSurveyRecord {
5651
5095
  reviewCompletedTimeStamp?: string | null;
5652
5096
  }
5653
5097
 
5654
- export interface SupportedModel {
5655
- modelId: string;
5656
- displayName: string;
5657
- provider: string;
5658
- description?: string | null;
5659
- isDefault: boolean;
5660
- }
5661
-
5662
5098
  export interface SurveyEmailRequest {
5663
5099
  /** @minLength 1 */
5664
5100
  loanOfficerEmailAddress: string;
@@ -5919,79 +5355,6 @@ export interface UpdateAccountRequest {
5919
5355
  settings: AccountSettingsRequest;
5920
5356
  }
5921
5357
 
5922
- export interface UpdateAiCanonicalFieldRequest {
5923
- /**
5924
- * @minLength 1
5925
- * @maxLength 200
5926
- */
5927
- displayName: string;
5928
- /** @minLength 1 */
5929
- description: string;
5930
- /** @minItems 1 */
5931
- allowedRoles: string[];
5932
- isPii: boolean;
5933
- }
5934
-
5935
- export interface UpdateAiGuardrailRequest {
5936
- /**
5937
- * @minLength 1
5938
- * @maxLength 200
5939
- */
5940
- name: string;
5941
- category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
5942
- description?: string | null;
5943
- /** @minItems 1 */
5944
- keywords: string[];
5945
- /** @minLength 1 */
5946
- responseTemplate: string;
5947
- }
5948
-
5949
- export interface UpdateAiPromptRequest {
5950
- /**
5951
- * @minLength 1
5952
- * @maxLength 200
5953
- */
5954
- title: string;
5955
- icon: string;
5956
- /**
5957
- * @minLength 1
5958
- * @maxLength 500
5959
- */
5960
- description: string;
5961
- documentTypes: string[];
5962
- applicableGuidelines: string[];
5963
- allowedRoles: string[];
5964
- /** @minLength 1 */
5965
- systemPrompt: string;
5966
- /** @minLength 1 */
5967
- userPromptTemplate: string;
5968
- followUpPrompts: string[];
5969
- /** @format int32 */
5970
- sortOrder: number;
5971
- category?: AiPromptCategory | null;
5972
- queryTemplateName?: AiQueryTemplateName | null;
5973
- displayHint?: AiDisplayHint | null;
5974
- bedrockModelId?: string | null;
5975
- requiredDataSources?: string[] | null;
5976
- outputType?: AiOutputType | null;
5977
- }
5978
-
5979
- export interface UpdateAiUrlSourceRequest {
5980
- /**
5981
- * @minLength 1
5982
- * @maxLength 200
5983
- */
5984
- name: string;
5985
- /**
5986
- * @minLength 1
5987
- * @maxLength 2048
5988
- */
5989
- url: string;
5990
- description?: string | null;
5991
- category: "Regulatory" | "Guidelines" | "MarketData" | "Custom";
5992
- scope: "FullDomain" | "SpecificPath";
5993
- }
5994
-
5995
5358
  export interface UpdateDocumentTemplateRequest {
5996
5359
  /** @minLength 1 */
5997
5360
  htmlBody: string;
@@ -6310,19 +5673,7 @@ export interface UserDevice {
6310
5673
  export interface UserDraft {
6311
5674
  /** @format uuid */
6312
5675
  draftID: string;
6313
- role:
6314
- | "Borrower"
6315
- | "CoBorrower"
6316
- | "NonBorrower"
6317
- | "LoanOfficer"
6318
- | "LoanProcessor"
6319
- | "LoanOfficerAssistant"
6320
- | "SupportingLoanOfficer"
6321
- | "BuyerAgent"
6322
- | "SellerAgent"
6323
- | "TitleInsuranceAgent"
6324
- | "EscrowAgent"
6325
- | "SettlementAgent";
5676
+ role: UserDraftRoleEnum;
6326
5677
  user: User;
6327
5678
  }
6328
5679
 
@@ -6349,7 +5700,7 @@ export interface UserGroupAccessScope {
6349
5700
  id: string;
6350
5701
  /** @format uuid */
6351
5702
  groupId: string;
6352
- scopeType: "User" | "Branch";
5703
+ scopeType: UserGroupAccessScopeScopeTypeEnum;
6353
5704
  /** @format uuid */
6354
5705
  userId?: string | null;
6355
5706
  /** @format uuid */
@@ -6385,19 +5736,7 @@ export interface UserLoan {
6385
5736
  deletedAt?: string | null;
6386
5737
  loanID: string;
6387
5738
  user: User;
6388
- role:
6389
- | "Borrower"
6390
- | "CoBorrower"
6391
- | "NonBorrower"
6392
- | "LoanOfficer"
6393
- | "LoanProcessor"
6394
- | "LoanOfficerAssistant"
6395
- | "SupportingLoanOfficer"
6396
- | "BuyerAgent"
6397
- | "SellerAgent"
6398
- | "TitleInsuranceAgent"
6399
- | "EscrowAgent"
6400
- | "SettlementAgent";
5739
+ role: UserLoanRoleEnum;
6401
5740
  /** @format int32 */
6402
5741
  borrowerPair?: number | null;
6403
5742
  /** @format int32 */
@@ -6410,10 +5749,10 @@ export interface UserLoanConsent {
6410
5749
  id: string;
6411
5750
  /** @format uuid */
6412
5751
  userLoanID: string;
6413
- type: "Econsent" | "CreditAuthorization" | "Tcpa";
5752
+ type: UserLoanConsentTypeEnum;
6414
5753
  providedConsent: boolean;
6415
5754
  ipAddress?: string | null;
6416
- losSyncStatus: "NotStarted" | "Failed" | "Success";
5755
+ losSyncStatus: UserLoanConsentLosSyncStatusEnum;
6417
5756
  /** @format date-time */
6418
5757
  createdAt: string;
6419
5758
  }
@@ -6558,16 +5897,7 @@ export interface UserSummary {
6558
5897
  id: string;
6559
5898
  name?: string | null;
6560
5899
  email?: string | null;
6561
- role:
6562
- | "Borrower"
6563
- | "LoanOfficer"
6564
- | "Admin"
6565
- | "SuperAdmin"
6566
- | "Realtor"
6567
- | "SettlementAgent"
6568
- | "LoanProcessor"
6569
- | "LoanOfficerAssistant"
6570
- | "SystemAdmin";
5900
+ role: UserSummaryRoleEnum;
6571
5901
  }
6572
5902
 
6573
5903
  export interface VerifyPasswordRequest {
@@ -6603,6 +5933,335 @@ export interface Workflow {
6603
5933
  icon: string;
6604
5934
  }
6605
5935
 
5936
+ export type AccountBillingRequestBillingTypeEnum = "ClosedLoan" | "LoanOfficer";
5937
+
5938
+ export type AuditLogEntryChangeTypeEnum =
5939
+ | "Created"
5940
+ | "Modified"
5941
+ | "SoftDeleted"
5942
+ | "HardDeleted"
5943
+ | "Restored";
5944
+
5945
+ export type CreateAccessScopeRequestScopeTypeEnum = "User" | "Branch";
5946
+
5947
+ export type CreateAccountRequestEnvironmentEnum =
5948
+ | "Development"
5949
+ | "Staging"
5950
+ | "UAT"
5951
+ | "Production";
5952
+
5953
+ export type CreateGroupMemberRequestLoanRoleEnum =
5954
+ | "Borrower"
5955
+ | "CoBorrower"
5956
+ | "NonBorrower"
5957
+ | "LoanOfficer"
5958
+ | "LoanProcessor"
5959
+ | "LoanOfficerAssistant"
5960
+ | "SupportingLoanOfficer"
5961
+ | "BuyerAgent"
5962
+ | "SellerAgent"
5963
+ | "TitleInsuranceAgent"
5964
+ | "EscrowAgent"
5965
+ | "SettlementAgent";
5966
+
5967
+ /** @deprecated */
5968
+ export type CreateInviteRequestRelationshipEnum =
5969
+ | "NotApplicable"
5970
+ | "Spouse"
5971
+ | "NonSpouse";
5972
+
5973
+ export type CreateLoanImportRequestImportModeEnum =
5974
+ | "All"
5975
+ | "NewOnly"
5976
+ | "UpdateOnly";
5977
+
5978
+ export type CreateUserDraftLoanRoleEnum =
5979
+ | "Borrower"
5980
+ | "CoBorrower"
5981
+ | "NonBorrower"
5982
+ | "LoanOfficer"
5983
+ | "LoanProcessor"
5984
+ | "LoanOfficerAssistant"
5985
+ | "SupportingLoanOfficer"
5986
+ | "BuyerAgent"
5987
+ | "SellerAgent"
5988
+ | "TitleInsuranceAgent"
5989
+ | "EscrowAgent"
5990
+ | "SettlementAgent";
5991
+
5992
+ export type DraftTypeEnum = "NewLoan" | "EditLoan";
5993
+
5994
+ export type DraftContentTypeEnum = "NewLoan" | "EditLoan";
5995
+
5996
+ export type EncompassRequestLogOperationTypeEnum =
5997
+ | "FieldUpdate"
5998
+ | "EConsentUpdate"
5999
+ | "DocumentSync"
6000
+ | "MilestoneUpdate"
6001
+ | "DocumentAttachment"
6002
+ | "General"
6003
+ | "FieldReader";
6004
+
6005
+ export type EncompassRequestLogOutcomeEnum =
6006
+ | "Success"
6007
+ | "Failure"
6008
+ | "PartialSuccess";
6009
+
6010
+ export type FusionReportFilterFilterTypeEnum =
6011
+ | "DateGreaterThanOrEqualTo"
6012
+ | "DateGreaterThan"
6013
+ | "DateLessThan"
6014
+ | "DateLessThanOrEqualTo"
6015
+ | "DateEquals"
6016
+ | "DateDoesntEqual"
6017
+ | "DateNonEmpty"
6018
+ | "DateEmpty"
6019
+ | "StringContains"
6020
+ | "StringEquals"
6021
+ | "StringNotEmpty"
6022
+ | "StringNotEquals"
6023
+ | "StringNotContains";
6024
+
6025
+ export type IpAddressAddressFamilyEnum =
6026
+ | "Unspecified"
6027
+ | "Unix"
6028
+ | "InterNetwork"
6029
+ | "ImpLink"
6030
+ | "Pup"
6031
+ | "Chaos"
6032
+ | "NS"
6033
+ | "Ipx"
6034
+ | "Iso"
6035
+ | "Osi"
6036
+ | "Ecma"
6037
+ | "DataKit"
6038
+ | "Ccitt"
6039
+ | "Sna"
6040
+ | "DecNet"
6041
+ | "DataLink"
6042
+ | "Lat"
6043
+ | "HyperChannel"
6044
+ | "AppleTalk"
6045
+ | "NetBios"
6046
+ | "VoiceView"
6047
+ | "FireFox"
6048
+ | "Banyan"
6049
+ | "Atm"
6050
+ | "InterNetworkV6"
6051
+ | "Cluster"
6052
+ | "Ieee12844"
6053
+ | "Irda"
6054
+ | "NetworkDesigners"
6055
+ | "Max"
6056
+ | "Packet"
6057
+ | "ControllerAreaNetwork"
6058
+ | "Unknown";
6059
+
6060
+ export type LoanBorrowerApplicationStatusEnum = "Draft" | "Complete";
6061
+
6062
+ export type LoanContactRoleEnum =
6063
+ | "Borrower"
6064
+ | "CoBorrower"
6065
+ | "NonBorrower"
6066
+ | "LoanOfficer"
6067
+ | "LoanProcessor"
6068
+ | "LoanOfficerAssistant"
6069
+ | "SupportingLoanOfficer"
6070
+ | "BuyerAgent"
6071
+ | "SellerAgent"
6072
+ | "TitleInsuranceAgent"
6073
+ | "EscrowAgent"
6074
+ | "SettlementAgent";
6075
+
6076
+ export type LoanImportStatusEnum =
6077
+ | "WaitingProcess"
6078
+ | "InProgress"
6079
+ | "Completed"
6080
+ | "Failed"
6081
+ | "Cancelled";
6082
+
6083
+ export type LoanImportImportModeEnum = "All" | "NewOnly" | "UpdateOnly";
6084
+
6085
+ export type LoanImportLogLevelEnum = "None" | "Info" | "Warning" | "Error";
6086
+
6087
+ export type LoanLogLevelEnum = "None" | "Info" | "Warning" | "Error";
6088
+
6089
+ export type LoanLogTypeEnum =
6090
+ | "Loan"
6091
+ | "Queue"
6092
+ | "POSFlagChanged"
6093
+ | "Verification"
6094
+ | "DocumentUploaded"
6095
+ | "LoanCreated"
6096
+ | "WorkflowSubmitted"
6097
+ | "UserInvitationSent"
6098
+ | "CoBorrowerAdded"
6099
+ | "TaskCompleted"
6100
+ | "LoanStatusChanged"
6101
+ | "EConsent"
6102
+ | "SensitiveDataPurge"
6103
+ | "ClosingDateUpdated";
6104
+
6105
+ export type LoanLogDetailLevelEnum = "None" | "Info" | "Warning" | "Error";
6106
+
6107
+ export type LoanLogDetailTypeEnum =
6108
+ | "Loan"
6109
+ | "Queue"
6110
+ | "POSFlagChanged"
6111
+ | "Verification"
6112
+ | "DocumentUploaded"
6113
+ | "LoanCreated"
6114
+ | "WorkflowSubmitted"
6115
+ | "UserInvitationSent"
6116
+ | "CoBorrowerAdded"
6117
+ | "TaskCompleted"
6118
+ | "LoanStatusChanged"
6119
+ | "EConsent"
6120
+ | "SensitiveDataPurge"
6121
+ | "ClosingDateUpdated";
6122
+
6123
+ export type LoanUserLoanRoleEnum =
6124
+ | "Borrower"
6125
+ | "CoBorrower"
6126
+ | "NonBorrower"
6127
+ | "LoanOfficer"
6128
+ | "LoanProcessor"
6129
+ | "LoanOfficerAssistant"
6130
+ | "SupportingLoanOfficer"
6131
+ | "BuyerAgent"
6132
+ | "SellerAgent"
6133
+ | "TitleInsuranceAgent"
6134
+ | "EscrowAgent"
6135
+ | "SettlementAgent";
6136
+
6137
+ export type SamlMetadataRequestSsoIntegrationEnum =
6138
+ | "ConsumerConnect"
6139
+ | "TheBigPOS"
6140
+ | "POSF";
6141
+
6142
+ export type SiteConfigurationTypeEnum =
6143
+ | "None"
6144
+ | "Account"
6145
+ | "Corporate"
6146
+ | "Branch"
6147
+ | "LoanOfficer"
6148
+ | "Partner";
6149
+
6150
+ export type SiteConfigurationByUrlTypeEnum =
6151
+ | "None"
6152
+ | "Account"
6153
+ | "Corporate"
6154
+ | "Branch"
6155
+ | "LoanOfficer"
6156
+ | "Partner";
6157
+
6158
+ export type SiteConfigurationReducedTypeEnum =
6159
+ | "None"
6160
+ | "Account"
6161
+ | "Corporate"
6162
+ | "Branch"
6163
+ | "LoanOfficer"
6164
+ | "Partner";
6165
+
6166
+ export type SiteConfigurationRequestTypeEnum =
6167
+ | "None"
6168
+ | "Account"
6169
+ | "Corporate"
6170
+ | "Branch"
6171
+ | "LoanOfficer"
6172
+ | "Partner";
6173
+
6174
+ export type SiteConfigurationSummaryTypeEnum =
6175
+ | "None"
6176
+ | "Account"
6177
+ | "Corporate"
6178
+ | "Branch"
6179
+ | "LoanOfficer"
6180
+ | "Partner";
6181
+
6182
+ export type UserDraftRoleEnum =
6183
+ | "Borrower"
6184
+ | "CoBorrower"
6185
+ | "NonBorrower"
6186
+ | "LoanOfficer"
6187
+ | "LoanProcessor"
6188
+ | "LoanOfficerAssistant"
6189
+ | "SupportingLoanOfficer"
6190
+ | "BuyerAgent"
6191
+ | "SellerAgent"
6192
+ | "TitleInsuranceAgent"
6193
+ | "EscrowAgent"
6194
+ | "SettlementAgent";
6195
+
6196
+ export type UserGroupAccessScopeScopeTypeEnum = "User" | "Branch";
6197
+
6198
+ export type UserLoanRoleEnum =
6199
+ | "Borrower"
6200
+ | "CoBorrower"
6201
+ | "NonBorrower"
6202
+ | "LoanOfficer"
6203
+ | "LoanProcessor"
6204
+ | "LoanOfficerAssistant"
6205
+ | "SupportingLoanOfficer"
6206
+ | "BuyerAgent"
6207
+ | "SellerAgent"
6208
+ | "TitleInsuranceAgent"
6209
+ | "EscrowAgent"
6210
+ | "SettlementAgent";
6211
+
6212
+ export type UserLoanConsentTypeEnum =
6213
+ | "Econsent"
6214
+ | "CreditAuthorization"
6215
+ | "Tcpa";
6216
+
6217
+ export type UserLoanConsentLosSyncStatusEnum =
6218
+ | "NotStarted"
6219
+ | "Failed"
6220
+ | "Success";
6221
+
6222
+ export type UserSummaryRoleEnum =
6223
+ | "Borrower"
6224
+ | "LoanOfficer"
6225
+ | "Admin"
6226
+ | "SuperAdmin"
6227
+ | "Realtor"
6228
+ | "SettlementAgent"
6229
+ | "LoanProcessor"
6230
+ | "LoanOfficerAssistant"
6231
+ | "SystemAdmin";
6232
+
6233
+ /** @default "Realtor" */
6234
+ export type GetPartnersParamsRoleEnum =
6235
+ | "Borrower"
6236
+ | "LoanOfficer"
6237
+ | "Admin"
6238
+ | "SuperAdmin"
6239
+ | "Realtor"
6240
+ | "SettlementAgent"
6241
+ | "LoanProcessor"
6242
+ | "LoanOfficerAssistant"
6243
+ | "SystemAdmin";
6244
+
6245
+ export type GetSamlMetadataParamsSSoIntegrationEnum =
6246
+ | "ConsumerConnect"
6247
+ | "TheBigPOS"
6248
+ | "POSF";
6249
+
6250
+ export type GetSamlMetadataParamsEnum =
6251
+ | "ConsumerConnect"
6252
+ | "TheBigPOS"
6253
+ | "POSF";
6254
+
6255
+ export type CreateOrReplaceSamlMetadataParamsSSoIntegrationEnum =
6256
+ | "ConsumerConnect"
6257
+ | "TheBigPOS"
6258
+ | "POSF";
6259
+
6260
+ export type CreateOrReplaceSamlMetadataParamsEnum =
6261
+ | "ConsumerConnect"
6262
+ | "TheBigPOS"
6263
+ | "POSF";
6264
+
6606
6265
  import type {
6607
6266
  AxiosInstance,
6608
6267
  AxiosRequestConfig,
@@ -6781,7 +6440,7 @@ export class HttpClient<SecurityDataType = unknown> {
6781
6440
 
6782
6441
  /**
6783
6442
  * @title The Big POS API
6784
- * @version v2.37.6
6443
+ * @version v2.37.8
6785
6444
  * @termsOfService https://www.thebigpos.com/terms-of-use/
6786
6445
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
6787
6446
  */
@@ -6793,676 +6452,50 @@ export class Api<
6793
6452
  *
6794
6453
  * @tags Saml
6795
6454
  * @name PostRoot
6796
- * @request POST:/
6797
- * @secure
6798
- * @response `200` `void` Success
6799
- */
6800
- postRoot = (params: RequestParams = {}) =>
6801
- this.request<void, any>({
6802
- path: `/`,
6803
- method: "POST",
6804
- secure: true,
6805
- ...params,
6806
- });
6807
-
6808
- /**
6809
- * No description
6810
- *
6811
- * @tags TheBigPOS
6812
- * @name GetRoot
6813
- * @request GET:/
6814
- * @secure
6815
- * @response `200` `string` Success
6816
- */
6817
- getRoot = (params: RequestParams = {}) =>
6818
- this.request<string, any>({
6819
- path: `/`,
6820
- method: "GET",
6821
- secure: true,
6822
- ...params,
6823
- });
6824
-
6825
- api = {
6826
- /**
6827
- * No description
6828
- *
6829
- * @tags Account
6830
- * @name GetMyAccount
6831
- * @summary Get
6832
- * @request GET:/api/account
6833
- * @secure
6834
- * @response `200` `Account` Success
6835
- * @response `404` `ProblemDetails` Not Found
6836
- */
6837
- getMyAccount: (params: RequestParams = {}) =>
6838
- this.request<Account, ProblemDetails>({
6839
- path: `/api/account`,
6840
- method: "GET",
6841
- secure: true,
6842
- format: "json",
6843
- ...params,
6844
- }),
6845
-
6846
- /**
6847
- * No description
6848
- *
6849
- * @tags Account
6850
- * @name ReplaceMyAccount
6851
- * @summary Replace
6852
- * @request PUT:/api/account
6853
- * @secure
6854
- * @response `200` `Account` Success
6855
- * @response `404` `ProblemDetails` Not Found
6856
- * @response `422` `ProblemDetails` Client Error
6857
- */
6858
- replaceMyAccount: (
6859
- data: UpdateAccountRequest,
6860
- params: RequestParams = {},
6861
- ) =>
6862
- this.request<Account, ProblemDetails>({
6863
- path: `/api/account`,
6864
- method: "PUT",
6865
- body: data,
6866
- secure: true,
6867
- type: ContentType.Json,
6868
- format: "json",
6869
- ...params,
6870
- }),
6871
-
6872
- /**
6873
- * No description
6874
- *
6875
- * @tags Account
6876
- * @name GetSiteConfigurationByAccount
6877
- * @summary Get Site Configuration
6878
- * @request GET:/api/account/site-configurations
6879
- * @secure
6880
- * @response `200` `SiteConfiguration` Success
6881
- */
6882
- getSiteConfigurationByAccount: (params: RequestParams = {}) =>
6883
- this.request<SiteConfiguration, any>({
6884
- path: `/api/account/site-configurations`,
6885
- method: "GET",
6886
- secure: true,
6887
- format: "json",
6888
- ...params,
6889
- }),
6890
-
6891
- /**
6892
- * No description
6893
- *
6894
- * @tags Account
6895
- * @name UpdateSiteConfigurationForAccount
6896
- * @summary Update Site Configuration
6897
- * @request PUT:/api/account/site-configurations
6898
- * @secure
6899
- * @response `200` `SiteConfiguration` Success
6900
- * @response `422` `UnprocessableEntity` Client Error
6901
- */
6902
- updateSiteConfigurationForAccount: (
6903
- data: SiteConfiguration,
6904
- params: RequestParams = {},
6905
- ) =>
6906
- this.request<SiteConfiguration, UnprocessableEntity>({
6907
- path: `/api/account/site-configurations`,
6908
- method: "PUT",
6909
- body: data,
6910
- secure: true,
6911
- type: ContentType.Json,
6912
- format: "json",
6913
- ...params,
6914
- }),
6915
-
6916
- /**
6917
- * No description
6918
- *
6919
- * @tags Accounts
6920
- * @name GetAccounts
6921
- * @summary Get All
6922
- * @request GET:/api/accounts
6923
- * @secure
6924
- * @response `200` `(Account)[]` Success
6925
- */
6926
- getAccounts: (params: RequestParams = {}) =>
6927
- this.request<Account[], any>({
6928
- path: `/api/accounts`,
6929
- method: "GET",
6930
- secure: true,
6931
- format: "json",
6932
- ...params,
6933
- }),
6934
-
6935
- /**
6936
- * No description
6937
- *
6938
- * @tags Accounts
6939
- * @name CreateAccount
6940
- * @summary Create
6941
- * @request POST:/api/accounts
6942
- * @secure
6943
- * @response `201` `Account` Created
6944
- * @response `422` `ProblemDetails` Client Error
6945
- */
6946
- createAccount: (data: CreateAccountRequest, params: RequestParams = {}) =>
6947
- this.request<Account, ProblemDetails>({
6948
- path: `/api/accounts`,
6949
- method: "POST",
6950
- body: data,
6951
- secure: true,
6952
- type: ContentType.Json,
6953
- format: "json",
6954
- ...params,
6955
- }),
6956
-
6957
- /**
6958
- * No description
6959
- *
6960
- * @tags Accounts
6961
- * @name GetAccount
6962
- * @summary Get by ID
6963
- * @request GET:/api/accounts/{id}
6964
- * @secure
6965
- * @response `201` `Account` Created
6966
- * @response `422` `ProblemDetails` Client Error
6967
- */
6968
- getAccount: (id: string, params: RequestParams = {}) =>
6969
- this.request<Account, ProblemDetails>({
6970
- path: `/api/accounts/${id}`,
6971
- method: "GET",
6972
- secure: true,
6973
- format: "json",
6974
- ...params,
6975
- }),
6976
-
6977
- /**
6978
- * No description
6979
- *
6980
- * @tags Accounts
6981
- * @name DeleteAccount
6982
- * @summary Delete
6983
- * @request DELETE:/api/accounts/{id}
6984
- * @secure
6985
- * @response `204` `Account` No Content
6986
- * @response `404` `ProblemDetails` Not Found
6987
- * @response `422` `ProblemDetails` Client Error
6988
- */
6989
- deleteAccount: (
6990
- id: string,
6991
- query?: {
6992
- /** @default false */
6993
- hardDelete?: boolean;
6994
- },
6995
- params: RequestParams = {},
6996
- ) =>
6997
- this.request<Account, ProblemDetails>({
6998
- path: `/api/accounts/${id}`,
6999
- method: "DELETE",
7000
- query: query,
7001
- secure: true,
7002
- format: "json",
7003
- ...params,
7004
- }),
7005
-
7006
- /**
7007
- * No description
7008
- *
7009
- * @tags Accounts
7010
- * @name UpdateAccountBilling
7011
- * @summary Update billing configuration
7012
- * @request PUT:/api/accounts/{id}/billing
7013
- * @secure
7014
- * @response `200` `AccountBilling` Success
7015
- * @response `404` `ProblemDetails` Not Found
7016
- * @response `422` `ProblemDetails` Client Error
7017
- */
7018
- updateAccountBilling: (
7019
- id: string,
7020
- data: AccountBillingRequest,
7021
- params: RequestParams = {},
7022
- ) =>
7023
- this.request<AccountBilling, ProblemDetails>({
7024
- path: `/api/accounts/${id}/billing`,
7025
- method: "PUT",
7026
- body: data,
7027
- secure: true,
7028
- type: ContentType.Json,
7029
- format: "json",
7030
- ...params,
7031
- }),
7032
-
7033
- /**
7034
- * No description
7035
- *
7036
- * @tags AiAdmin
7037
- * @name GetAiAuditLogs
7038
- * @summary Get paginated audit logs
7039
- * @request GET:/api/ai/admin/audit-logs
7040
- * @secure
7041
- * @response `200` `AiAuditLogPaginated` Success
7042
- */
7043
- getAiAuditLogs: (
7044
- query?: {
7045
- eventType?: AiAuditEventType;
7046
- /** @format date-time */
7047
- startDate?: string;
7048
- /** @format date-time */
7049
- endDate?: string;
7050
- /** @format int32 */
7051
- pageSize?: number;
7052
- /** @format int32 */
7053
- pageNumber?: number;
7054
- sortBy?: string;
7055
- sortDirection?: string;
7056
- },
7057
- params: RequestParams = {},
7058
- ) =>
7059
- this.request<AiAuditLogPaginated, any>({
7060
- path: `/api/ai/admin/audit-logs`,
7061
- method: "GET",
7062
- query: query,
7063
- secure: true,
7064
- format: "json",
7065
- ...params,
7066
- }),
7067
-
7068
- /**
7069
- * No description
7070
- *
7071
- * @tags AiAdmin
7072
- * @name GetAiAdminStats
7073
- * @summary Get AI admin dashboard stats
7074
- * @request GET:/api/ai/admin/stats
7075
- * @secure
7076
- * @response `200` `AiAdminStats` Success
7077
- */
7078
- getAiAdminStats: (
7079
- query?: {
7080
- /** @format date-time */
7081
- startDate?: string;
7082
- /** @format date-time */
7083
- endDate?: string;
7084
- },
7085
- params: RequestParams = {},
7086
- ) =>
7087
- this.request<AiAdminStats, any>({
7088
- path: `/api/ai/admin/stats`,
7089
- method: "GET",
7090
- query: query,
7091
- secure: true,
7092
- format: "json",
7093
- ...params,
7094
- }),
7095
-
7096
- /**
7097
- * No description
7098
- *
7099
- * @tags AiAdminPrompt
7100
- * @name GetAiPrompts
7101
- * @summary Get all prompts
7102
- * @request GET:/api/ai/admin/prompts
7103
- * @secure
7104
- * @response `200` `(AiPrompt)[]` Success
7105
- */
7106
- getAiPrompts: (params: RequestParams = {}) =>
7107
- this.request<AiPrompt[], any>({
7108
- path: `/api/ai/admin/prompts`,
7109
- method: "GET",
7110
- secure: true,
7111
- format: "json",
7112
- ...params,
7113
- }),
7114
-
7115
- /**
7116
- * No description
7117
- *
7118
- * @tags AiAdminPrompt
7119
- * @name CreateAiPrompt
7120
- * @summary Create custom prompt
7121
- * @request POST:/api/ai/admin/prompts
7122
- * @secure
7123
- * @response `201` `AiPrompt` Created
7124
- * @response `400` `ProblemDetails` Bad Request
7125
- */
7126
- createAiPrompt: (data: CreateAiPromptRequest, params: RequestParams = {}) =>
7127
- this.request<AiPrompt, ProblemDetails>({
7128
- path: `/api/ai/admin/prompts`,
7129
- method: "POST",
7130
- body: data,
7131
- secure: true,
7132
- type: ContentType.Json,
7133
- format: "json",
7134
- ...params,
7135
- }),
7136
-
7137
- /**
7138
- * No description
7139
- *
7140
- * @tags AiAdminPrompt
7141
- * @name GetAiPrompt
7142
- * @summary Get prompt by ID
7143
- * @request GET:/api/ai/admin/prompts/{id}
7144
- * @secure
7145
- * @response `200` `AiPrompt` Success
7146
- * @response `404` `ProblemDetails` Not Found
7147
- */
7148
- getAiPrompt: (id: string, params: RequestParams = {}) =>
7149
- this.request<AiPrompt, ProblemDetails>({
7150
- path: `/api/ai/admin/prompts/${id}`,
7151
- method: "GET",
7152
- secure: true,
7153
- format: "json",
7154
- ...params,
7155
- }),
7156
-
7157
- /**
7158
- * No description
7159
- *
7160
- * @tags AiAdminPrompt
7161
- * @name UpdateAiPrompt
7162
- * @summary Update prompt
7163
- * @request PUT:/api/ai/admin/prompts/{id}
7164
- * @secure
7165
- * @response `200` `AiPrompt` Success
7166
- * @response `400` `ProblemDetails` Bad Request
7167
- * @response `404` `ProblemDetails` Not Found
7168
- */
7169
- updateAiPrompt: (
7170
- id: string,
7171
- data: UpdateAiPromptRequest,
7172
- params: RequestParams = {},
7173
- ) =>
7174
- this.request<AiPrompt, ProblemDetails>({
7175
- path: `/api/ai/admin/prompts/${id}`,
7176
- method: "PUT",
7177
- body: data,
7178
- secure: true,
7179
- type: ContentType.Json,
7180
- format: "json",
7181
- ...params,
7182
- }),
7183
-
7184
- /**
7185
- * No description
7186
- *
7187
- * @tags AiAdminPrompt
7188
- * @name DeleteAiPrompt
7189
- * @summary Delete prompt
7190
- * @request DELETE:/api/ai/admin/prompts/{id}
7191
- * @secure
7192
- * @response `204` `void` No Content
7193
- * @response `400` `ProblemDetails` Bad Request
7194
- * @response `404` `ProblemDetails` Not Found
7195
- */
7196
- deleteAiPrompt: (id: string, params: RequestParams = {}) =>
7197
- this.request<void, ProblemDetails>({
7198
- path: `/api/ai/admin/prompts/${id}`,
7199
- method: "DELETE",
7200
- secure: true,
7201
- ...params,
7202
- }),
7203
-
7204
- /**
7205
- * No description
7206
- *
7207
- * @tags AiAdminPrompt
7208
- * @name ToggleAiPrompt
7209
- * @summary Toggle prompt active/inactive
7210
- * @request PATCH:/api/ai/admin/prompts/{id}/toggle
7211
- * @secure
7212
- * @response `200` `AiPrompt` Success
7213
- * @response `404` `ProblemDetails` Not Found
7214
- */
7215
- toggleAiPrompt: (id: string, params: RequestParams = {}) =>
7216
- this.request<AiPrompt, ProblemDetails>({
7217
- path: `/api/ai/admin/prompts/${id}/toggle`,
7218
- method: "PATCH",
7219
- secure: true,
7220
- format: "json",
7221
- ...params,
7222
- }),
7223
-
7224
- /**
7225
- * No description
7226
- *
7227
- * @tags AiAdminPrompt
7228
- * @name GenerateAiSystemPrompt
7229
- * @summary Generate a system prompt from description
7230
- * @request POST:/api/ai/admin/prompts/generate
7231
- * @secure
7232
- * @response `200` `GenerateSystemPrompt` Success
7233
- * @response `400` `ProblemDetails` Bad Request
7234
- */
7235
- generateAiSystemPrompt: (
7236
- data: GenerateSystemPromptRequest,
7237
- params: RequestParams = {},
7238
- ) =>
7239
- this.request<GenerateSystemPrompt, ProblemDetails>({
7240
- path: `/api/ai/admin/prompts/generate`,
7241
- method: "POST",
7242
- body: data,
7243
- secure: true,
7244
- type: ContentType.JsonPatch,
7245
- format: "json",
7246
- ...params,
7247
- }),
7248
-
7249
- /**
7250
- * No description
7251
- *
7252
- * @tags AiAdminPrompt
7253
- * @name GetSupportedModels
7254
- * @summary Get supported LLM models
7255
- * @request GET:/api/ai/admin/prompts/supported-models
7256
- * @secure
7257
- * @response `200` `(SupportedModel)[]` Success
7258
- */
7259
- getSupportedModels: (params: RequestParams = {}) =>
7260
- this.request<SupportedModel[], any>({
7261
- path: `/api/ai/admin/prompts/supported-models`,
7262
- method: "GET",
7263
- secure: true,
7264
- format: "json",
7265
- ...params,
7266
- }),
7267
-
7268
- /**
7269
- * No description
7270
- *
7271
- * @tags AiCanonicalField
7272
- * @name GetAiCanonicalFields
7273
- * @summary Get all canonical fields
7274
- * @request GET:/api/ai/admin/fields
7275
- * @secure
7276
- * @response `200` `(AiCanonicalField)[]` Success
7277
- */
7278
- getAiCanonicalFields: (params: RequestParams = {}) =>
7279
- this.request<AiCanonicalField[], any>({
7280
- path: `/api/ai/admin/fields`,
7281
- method: "GET",
7282
- secure: true,
7283
- format: "json",
7284
- ...params,
7285
- }),
7286
-
7287
- /**
7288
- * No description
7289
- *
7290
- * @tags AiCanonicalField
7291
- * @name CreateAiCanonicalField
7292
- * @summary Create canonical field
7293
- * @request POST:/api/ai/admin/fields
7294
- * @secure
7295
- * @response `201` `AiCanonicalField` Created
7296
- * @response `400` `ProblemDetails` Bad Request
7297
- */
7298
- createAiCanonicalField: (
7299
- data: CreateAiCanonicalFieldRequest,
7300
- params: RequestParams = {},
7301
- ) =>
7302
- this.request<AiCanonicalField, ProblemDetails>({
7303
- path: `/api/ai/admin/fields`,
7304
- method: "POST",
7305
- body: data,
7306
- secure: true,
7307
- type: ContentType.Json,
7308
- format: "json",
7309
- ...params,
7310
- }),
7311
-
7312
- /**
7313
- * No description
7314
- *
7315
- * @tags AiCanonicalField
7316
- * @name GetAiCanonicalField
7317
- * @summary Get canonical field by ID
7318
- * @request GET:/api/ai/admin/fields/{id}
7319
- * @secure
7320
- * @response `200` `AiCanonicalField` Success
7321
- * @response `404` `ProblemDetails` Not Found
7322
- */
7323
- getAiCanonicalField: (id: string, params: RequestParams = {}) =>
7324
- this.request<AiCanonicalField, ProblemDetails>({
7325
- path: `/api/ai/admin/fields/${id}`,
7326
- method: "GET",
7327
- secure: true,
7328
- format: "json",
7329
- ...params,
7330
- }),
7331
-
7332
- /**
7333
- * No description
7334
- *
7335
- * @tags AiCanonicalField
7336
- * @name UpdateAiCanonicalField
7337
- * @summary Update canonical field
7338
- * @request PUT:/api/ai/admin/fields/{id}
7339
- * @secure
7340
- * @response `200` `AiCanonicalField` Success
7341
- * @response `400` `ProblemDetails` Bad Request
7342
- * @response `404` `ProblemDetails` Not Found
7343
- */
7344
- updateAiCanonicalField: (
7345
- id: string,
7346
- data: UpdateAiCanonicalFieldRequest,
7347
- params: RequestParams = {},
7348
- ) =>
7349
- this.request<AiCanonicalField, ProblemDetails>({
7350
- path: `/api/ai/admin/fields/${id}`,
7351
- method: "PUT",
7352
- body: data,
7353
- secure: true,
7354
- type: ContentType.Json,
7355
- format: "json",
7356
- ...params,
7357
- }),
7358
-
7359
- /**
7360
- * No description
7361
- *
7362
- * @tags AiCanonicalField
7363
- * @name DeleteAiCanonicalField
7364
- * @summary Delete canonical field
7365
- * @request DELETE:/api/ai/admin/fields/{id}
7366
- * @secure
7367
- * @response `204` `void` No Content
7368
- * @response `404` `ProblemDetails` Not Found
7369
- */
7370
- deleteAiCanonicalField: (id: string, params: RequestParams = {}) =>
7371
- this.request<void, ProblemDetails>({
7372
- path: `/api/ai/admin/fields/${id}`,
7373
- method: "DELETE",
7374
- secure: true,
7375
- ...params,
7376
- }),
7377
-
7378
- /**
7379
- * No description
7380
- *
7381
- * @tags AiCanonicalField
7382
- * @name ToggleAiCanonicalField
7383
- * @summary Toggle canonical field active/inactive
7384
- * @request PATCH:/api/ai/admin/fields/{id}/toggle
7385
- * @secure
7386
- * @response `200` `AiCanonicalField` Success
7387
- * @response `404` `ProblemDetails` Not Found
7388
- */
7389
- toggleAiCanonicalField: (id: string, params: RequestParams = {}) =>
7390
- this.request<AiCanonicalField, ProblemDetails>({
7391
- path: `/api/ai/admin/fields/${id}/toggle`,
7392
- method: "PATCH",
7393
- secure: true,
7394
- format: "json",
7395
- ...params,
7396
- }),
7397
-
7398
- /**
7399
- * No description
7400
- *
7401
- * @tags AiChat
7402
- * @name AiChat
7403
- * @summary Send AI chat message
7404
- * @request POST:/api/ai/chat
7405
- * @secure
7406
- * @response `200` `AiChat` Success
7407
- * @response `400` `ProblemDetails` Bad Request
7408
- * @response `401` `ProblemDetails` Unauthorized
7409
- */
7410
- aiChat: (data: AiChatRequest, params: RequestParams = {}) =>
7411
- this.request<AiChat, ProblemDetails>({
7412
- path: `/api/ai/chat`,
7413
- method: "POST",
7414
- body: data,
7415
- secure: true,
7416
- type: ContentType.JsonPatch,
7417
- format: "json",
7418
- ...params,
7419
- }),
6455
+ * @request POST:/
6456
+ * @secure
6457
+ * @response `200` `void` Success
6458
+ */
6459
+ postRoot = (params: RequestParams = {}) =>
6460
+ this.request<void, any>({
6461
+ path: `/`,
6462
+ method: "POST",
6463
+ secure: true,
6464
+ ...params,
6465
+ });
7420
6466
 
7421
- /**
7422
- * No description
7423
- *
7424
- * @tags AiConversation
7425
- * @name GetAiConversations
7426
- * @summary Get user conversations
7427
- * @request GET:/api/ai/conversations
7428
- * @secure
7429
- * @response `200` `AiConversationListItemPaginated` Success
7430
- */
7431
- getAiConversations: (
7432
- query?: {
7433
- /** @format int32 */
7434
- pageSize?: number;
7435
- /** @format int32 */
7436
- pageNumber?: number;
7437
- sortBy?: string;
7438
- sortDirection?: string;
7439
- },
7440
- params: RequestParams = {},
7441
- ) =>
7442
- this.request<AiConversationListItemPaginated, any>({
7443
- path: `/api/ai/conversations`,
7444
- method: "GET",
7445
- query: query,
7446
- secure: true,
7447
- format: "json",
7448
- ...params,
7449
- }),
6467
+ /**
6468
+ * No description
6469
+ *
6470
+ * @tags TheBigPOS
6471
+ * @name GetRoot
6472
+ * @request GET:/
6473
+ * @secure
6474
+ * @response `200` `string` Success
6475
+ */
6476
+ getRoot = (params: RequestParams = {}) =>
6477
+ this.request<string, any>({
6478
+ path: `/`,
6479
+ method: "GET",
6480
+ secure: true,
6481
+ ...params,
6482
+ });
7450
6483
 
6484
+ api = {
7451
6485
  /**
7452
6486
  * No description
7453
6487
  *
7454
- * @tags AiConversation
7455
- * @name GetAiConversation
7456
- * @summary Get conversation with messages
7457
- * @request GET:/api/ai/conversations/{id}
6488
+ * @tags Account
6489
+ * @name GetMyAccount
6490
+ * @summary Get
6491
+ * @request GET:/api/account
7458
6492
  * @secure
7459
- * @response `200` `AiConversationDetail` Success
7460
- * @response `403` `ProblemDetails` Forbidden
6493
+ * @response `200` `Account` Success
7461
6494
  * @response `404` `ProblemDetails` Not Found
7462
6495
  */
7463
- getAiConversation: (id: string, params: RequestParams = {}) =>
7464
- this.request<AiConversationDetail, ProblemDetails>({
7465
- path: `/api/ai/conversations/${id}`,
6496
+ getMyAccount: (params: RequestParams = {}) =>
6497
+ this.request<Account, ProblemDetails>({
6498
+ path: `/api/account`,
7466
6499
  method: "GET",
7467
6500
  secure: true,
7468
6501
  format: "json",
@@ -7472,60 +6505,22 @@ export class Api<
7472
6505
  /**
7473
6506
  * No description
7474
6507
  *
7475
- * @tags AiConversation
7476
- * @name DeleteAiConversation
7477
- * @summary Delete conversation
7478
- * @request DELETE:/api/ai/conversations/{id}
6508
+ * @tags Account
6509
+ * @name ReplaceMyAccount
6510
+ * @summary Replace
6511
+ * @request PUT:/api/account
7479
6512
  * @secure
7480
- * @response `204` `void` No Content
7481
- * @response `403` `ProblemDetails` Forbidden
6513
+ * @response `200` `Account` Success
7482
6514
  * @response `404` `ProblemDetails` Not Found
6515
+ * @response `422` `ProblemDetails` Client Error
7483
6516
  */
7484
- deleteAiConversation: (id: string, params: RequestParams = {}) =>
7485
- this.request<void, ProblemDetails>({
7486
- path: `/api/ai/conversations/${id}`,
7487
- method: "DELETE",
7488
- secure: true,
7489
- ...params,
7490
- }),
7491
-
7492
- /**
7493
- * No description
7494
- *
7495
- * @tags AiGuardrail
7496
- * @name GetAiGuardrails
7497
- * @summary Get all guardrails
7498
- * @request GET:/api/ai/admin/guardrails
7499
- * @secure
7500
- * @response `200` `(AiGuardrail)[]` Success
7501
- */
7502
- getAiGuardrails: (params: RequestParams = {}) =>
7503
- this.request<AiGuardrail[], any>({
7504
- path: `/api/ai/admin/guardrails`,
7505
- method: "GET",
7506
- secure: true,
7507
- format: "json",
7508
- ...params,
7509
- }),
7510
-
7511
- /**
7512
- * No description
7513
- *
7514
- * @tags AiGuardrail
7515
- * @name CreateAiGuardrail
7516
- * @summary Create custom guardrail
7517
- * @request POST:/api/ai/admin/guardrails
7518
- * @secure
7519
- * @response `201` `AiGuardrail` Created
7520
- * @response `400` `ProblemDetails` Bad Request
7521
- */
7522
- createAiGuardrail: (
7523
- data: CreateAiGuardrailRequest,
6517
+ replaceMyAccount: (
6518
+ data: UpdateAccountRequest,
7524
6519
  params: RequestParams = {},
7525
6520
  ) =>
7526
- this.request<AiGuardrail, ProblemDetails>({
7527
- path: `/api/ai/admin/guardrails`,
7528
- method: "POST",
6521
+ this.request<Account, ProblemDetails>({
6522
+ path: `/api/account`,
6523
+ method: "PUT",
7529
6524
  body: data,
7530
6525
  secure: true,
7531
6526
  type: ContentType.Json,
@@ -7536,17 +6531,16 @@ export class Api<
7536
6531
  /**
7537
6532
  * No description
7538
6533
  *
7539
- * @tags AiGuardrail
7540
- * @name GetAiGuardrail
7541
- * @summary Get guardrail by ID
7542
- * @request GET:/api/ai/admin/guardrails/{id}
6534
+ * @tags Account
6535
+ * @name GetSiteConfigurationByAccount
6536
+ * @summary Get Site Configuration
6537
+ * @request GET:/api/account/site-configurations
7543
6538
  * @secure
7544
- * @response `200` `AiGuardrail` Success
7545
- * @response `404` `ProblemDetails` Not Found
6539
+ * @response `200` `SiteConfiguration` Success
7546
6540
  */
7547
- getAiGuardrail: (id: string, params: RequestParams = {}) =>
7548
- this.request<AiGuardrail, ProblemDetails>({
7549
- path: `/api/ai/admin/guardrails/${id}`,
6541
+ getSiteConfigurationByAccount: (params: RequestParams = {}) =>
6542
+ this.request<SiteConfiguration, any>({
6543
+ path: `/api/account/site-configurations`,
7550
6544
  method: "GET",
7551
6545
  secure: true,
7552
6546
  format: "json",
@@ -7556,22 +6550,20 @@ export class Api<
7556
6550
  /**
7557
6551
  * No description
7558
6552
  *
7559
- * @tags AiGuardrail
7560
- * @name UpdateAiGuardrail
7561
- * @summary Update guardrail
7562
- * @request PUT:/api/ai/admin/guardrails/{id}
6553
+ * @tags Account
6554
+ * @name UpdateSiteConfigurationForAccount
6555
+ * @summary Update Site Configuration
6556
+ * @request PUT:/api/account/site-configurations
7563
6557
  * @secure
7564
- * @response `200` `AiGuardrail` Success
7565
- * @response `400` `ProblemDetails` Bad Request
7566
- * @response `404` `ProblemDetails` Not Found
6558
+ * @response `200` `SiteConfiguration` Success
6559
+ * @response `422` `UnprocessableEntity` Client Error
7567
6560
  */
7568
- updateAiGuardrail: (
7569
- id: string,
7570
- data: UpdateAiGuardrailRequest,
6561
+ updateSiteConfigurationForAccount: (
6562
+ data: SiteConfiguration,
7571
6563
  params: RequestParams = {},
7572
6564
  ) =>
7573
- this.request<AiGuardrail, ProblemDetails>({
7574
- path: `/api/ai/admin/guardrails/${id}`,
6565
+ this.request<SiteConfiguration, UnprocessableEntity>({
6566
+ path: `/api/account/site-configurations`,
7575
6567
  method: "PUT",
7576
6568
  body: data,
7577
6569
  secure: true,
@@ -7583,38 +6575,17 @@ export class Api<
7583
6575
  /**
7584
6576
  * No description
7585
6577
  *
7586
- * @tags AiGuardrail
7587
- * @name DeleteAiGuardrail
7588
- * @summary Delete guardrail
7589
- * @request DELETE:/api/ai/admin/guardrails/{id}
7590
- * @secure
7591
- * @response `204` `void` No Content
7592
- * @response `400` `ProblemDetails` Bad Request
7593
- * @response `404` `ProblemDetails` Not Found
7594
- */
7595
- deleteAiGuardrail: (id: string, params: RequestParams = {}) =>
7596
- this.request<void, ProblemDetails>({
7597
- path: `/api/ai/admin/guardrails/${id}`,
7598
- method: "DELETE",
7599
- secure: true,
7600
- ...params,
7601
- }),
7602
-
7603
- /**
7604
- * No description
7605
- *
7606
- * @tags AiGuardrail
7607
- * @name ToggleAiGuardrail
7608
- * @summary Toggle guardrail enabled/disabled
7609
- * @request PATCH:/api/ai/admin/guardrails/{id}/toggle
6578
+ * @tags Accounts
6579
+ * @name GetAccounts
6580
+ * @summary Get All
6581
+ * @request GET:/api/accounts
7610
6582
  * @secure
7611
- * @response `200` `AiGuardrail` Success
7612
- * @response `404` `ProblemDetails` Not Found
6583
+ * @response `200` `(Account)[]` Success
7613
6584
  */
7614
- toggleAiGuardrail: (id: string, params: RequestParams = {}) =>
7615
- this.request<AiGuardrail, ProblemDetails>({
7616
- path: `/api/ai/admin/guardrails/${id}/toggle`,
7617
- method: "PATCH",
6585
+ getAccounts: (params: RequestParams = {}) =>
6586
+ this.request<Account[], any>({
6587
+ path: `/api/accounts`,
6588
+ method: "GET",
7618
6589
  secure: true,
7619
6590
  format: "json",
7620
6591
  ...params,
@@ -7623,24 +6594,21 @@ export class Api<
7623
6594
  /**
7624
6595
  * No description
7625
6596
  *
7626
- * @tags AiPrompt
7627
- * @name GetAvailablePrompts
7628
- * @summary Get available prompts for current user
7629
- * @request GET:/api/ai/prompts
6597
+ * @tags Accounts
6598
+ * @name CreateAccount
6599
+ * @summary Create
6600
+ * @request POST:/api/accounts
7630
6601
  * @secure
7631
- * @response `200` `(AiPromptSummary)[]` Success
6602
+ * @response `201` `Account` Created
6603
+ * @response `422` `ProblemDetails` Client Error
7632
6604
  */
7633
- getAvailablePrompts: (
7634
- query?: {
7635
- documentType?: string;
7636
- },
7637
- params: RequestParams = {},
7638
- ) =>
7639
- this.request<AiPromptSummary[], any>({
7640
- path: `/api/ai/prompts`,
7641
- method: "GET",
7642
- query: query,
6605
+ createAccount: (data: CreateAccountRequest, params: RequestParams = {}) =>
6606
+ this.request<Account, ProblemDetails>({
6607
+ path: `/api/accounts`,
6608
+ method: "POST",
6609
+ body: data,
7643
6610
  secure: true,
6611
+ type: ContentType.Json,
7644
6612
  format: "json",
7645
6613
  ...params,
7646
6614
  }),
@@ -7648,16 +6616,17 @@ export class Api<
7648
6616
  /**
7649
6617
  * No description
7650
6618
  *
7651
- * @tags AiUrlSource
7652
- * @name GetAiUrlSources
7653
- * @summary Get all URL sources
7654
- * @request GET:/api/ai/admin/url-sources
6619
+ * @tags Accounts
6620
+ * @name GetAccount
6621
+ * @summary Get by ID
6622
+ * @request GET:/api/accounts/{id}
7655
6623
  * @secure
7656
- * @response `200` `(AiUrlSource)[]` Success
6624
+ * @response `201` `Account` Created
6625
+ * @response `422` `ProblemDetails` Client Error
7657
6626
  */
7658
- getAiUrlSources: (params: RequestParams = {}) =>
7659
- this.request<AiUrlSource[], any>({
7660
- path: `/api/ai/admin/url-sources`,
6627
+ getAccount: (id: string, params: RequestParams = {}) =>
6628
+ this.request<Account, ProblemDetails>({
6629
+ path: `/api/accounts/${id}`,
7661
6630
  method: "GET",
7662
6631
  secure: true,
7663
6632
  format: "json",
@@ -7667,44 +6636,27 @@ export class Api<
7667
6636
  /**
7668
6637
  * No description
7669
6638
  *
7670
- * @tags AiUrlSource
7671
- * @name CreateAiUrlSource
7672
- * @summary Create URL source
7673
- * @request POST:/api/ai/admin/url-sources
6639
+ * @tags Accounts
6640
+ * @name DeleteAccount
6641
+ * @summary Delete
6642
+ * @request DELETE:/api/accounts/{id}
7674
6643
  * @secure
7675
- * @response `201` `AiUrlSource` Created
7676
- * @response `400` `ProblemDetails` Bad Request
7677
- * @response `409` `ProblemDetails` Conflict
6644
+ * @response `204` `Account` No Content
6645
+ * @response `404` `ProblemDetails` Not Found
6646
+ * @response `422` `ProblemDetails` Client Error
7678
6647
  */
7679
- createAiUrlSource: (
7680
- data: CreateAiUrlSourceRequest,
6648
+ deleteAccount: (
6649
+ id: string,
6650
+ query?: {
6651
+ /** @default false */
6652
+ hardDelete?: boolean;
6653
+ },
7681
6654
  params: RequestParams = {},
7682
6655
  ) =>
7683
- this.request<AiUrlSource, ProblemDetails>({
7684
- path: `/api/ai/admin/url-sources`,
7685
- method: "POST",
7686
- body: data,
7687
- secure: true,
7688
- type: ContentType.JsonPatch,
7689
- format: "json",
7690
- ...params,
7691
- }),
7692
-
7693
- /**
7694
- * No description
7695
- *
7696
- * @tags AiUrlSource
7697
- * @name GetAiUrlSource
7698
- * @summary Get URL source by ID
7699
- * @request GET:/api/ai/admin/url-sources/{id}
7700
- * @secure
7701
- * @response `200` `AiUrlSource` Success
7702
- * @response `404` `ProblemDetails` Not Found
7703
- */
7704
- getAiUrlSource: (id: string, params: RequestParams = {}) =>
7705
- this.request<AiUrlSource, ProblemDetails>({
7706
- path: `/api/ai/admin/url-sources/${id}`,
7707
- method: "GET",
6656
+ this.request<Account, ProblemDetails>({
6657
+ path: `/api/accounts/${id}`,
6658
+ method: "DELETE",
6659
+ query: query,
7708
6660
  secure: true,
7709
6661
  format: "json",
7710
6662
  ...params,
@@ -7713,23 +6665,22 @@ export class Api<
7713
6665
  /**
7714
6666
  * No description
7715
6667
  *
7716
- * @tags AiUrlSource
7717
- * @name UpdateAiUrlSource
7718
- * @summary Update URL source
7719
- * @request PUT:/api/ai/admin/url-sources/{id}
6668
+ * @tags Accounts
6669
+ * @name UpdateAccountBilling
6670
+ * @summary Update billing configuration
6671
+ * @request PUT:/api/accounts/{id}/billing
7720
6672
  * @secure
7721
- * @response `200` `AiUrlSource` Success
7722
- * @response `400` `ProblemDetails` Bad Request
6673
+ * @response `200` `AccountBilling` Success
7723
6674
  * @response `404` `ProblemDetails` Not Found
7724
- * @response `409` `ProblemDetails` Conflict
6675
+ * @response `422` `ProblemDetails` Client Error
7725
6676
  */
7726
- updateAiUrlSource: (
6677
+ updateAccountBilling: (
7727
6678
  id: string,
7728
- data: UpdateAiUrlSourceRequest,
6679
+ data: AccountBillingRequest,
7729
6680
  params: RequestParams = {},
7730
6681
  ) =>
7731
- this.request<AiUrlSource, ProblemDetails>({
7732
- path: `/api/ai/admin/url-sources/${id}`,
6682
+ this.request<AccountBilling, ProblemDetails>({
6683
+ path: `/api/accounts/${id}/billing`,
7733
6684
  method: "PUT",
7734
6685
  body: data,
7735
6686
  secure: true,
@@ -7738,45 +6689,6 @@ export class Api<
7738
6689
  ...params,
7739
6690
  }),
7740
6691
 
7741
- /**
7742
- * No description
7743
- *
7744
- * @tags AiUrlSource
7745
- * @name DeleteAiUrlSource
7746
- * @summary Delete URL source
7747
- * @request DELETE:/api/ai/admin/url-sources/{id}
7748
- * @secure
7749
- * @response `204` `void` No Content
7750
- * @response `404` `ProblemDetails` Not Found
7751
- */
7752
- deleteAiUrlSource: (id: string, params: RequestParams = {}) =>
7753
- this.request<void, ProblemDetails>({
7754
- path: `/api/ai/admin/url-sources/${id}`,
7755
- method: "DELETE",
7756
- secure: true,
7757
- ...params,
7758
- }),
7759
-
7760
- /**
7761
- * No description
7762
- *
7763
- * @tags AiUrlSource
7764
- * @name ToggleAiUrlSource
7765
- * @summary Toggle URL source active/inactive
7766
- * @request PATCH:/api/ai/admin/url-sources/{id}/toggle
7767
- * @secure
7768
- * @response `200` `AiUrlSource` Success
7769
- * @response `404` `ProblemDetails` Not Found
7770
- */
7771
- toggleAiUrlSource: (id: string, params: RequestParams = {}) =>
7772
- this.request<AiUrlSource, ProblemDetails>({
7773
- path: `/api/ai/admin/url-sources/${id}/toggle`,
7774
- method: "PATCH",
7775
- secure: true,
7776
- format: "json",
7777
- ...params,
7778
- }),
7779
-
7780
6692
  /**
7781
6693
  * No description
7782
6694
  *
@@ -7805,7 +6717,7 @@ export class Api<
7805
6717
  query: query,
7806
6718
  body: data,
7807
6719
  secure: true,
7808
- type: ContentType.JsonPatch,
6720
+ type: ContentType.Json,
7809
6721
  format: "json",
7810
6722
  ...params,
7811
6723
  }),
@@ -9144,6 +8056,26 @@ export class Api<
9144
8056
  ...params,
9145
8057
  }),
9146
8058
 
8059
+ /**
8060
+ * No description
8061
+ *
8062
+ * @tags Encompass Recipients
8063
+ * @name GetUserRecipients
8064
+ * @request GET:/api/los/encompass/eclose/recipients
8065
+ * @secure
8066
+ * @response `200` `(EncompassRecipientItem)[]` Success
8067
+ * @response `401` `EncompassError` Unauthorized
8068
+ * @response `500` `EncompassError` Server Error
8069
+ */
8070
+ getUserRecipients: (params: RequestParams = {}) =>
8071
+ this.request<EncompassRecipientItem[], EncompassError>({
8072
+ path: `/api/los/encompass/eclose/recipients`,
8073
+ method: "GET",
8074
+ secure: true,
8075
+ format: "json",
8076
+ ...params,
8077
+ }),
8078
+
9147
8079
  /**
9148
8080
  * No description
9149
8081
  *
@@ -10839,7 +9771,7 @@ export class Api<
10839
9771
  * @summary Download By ID
10840
9772
  * @request GET:/api/loans/{loanId}/documents/{documentId}/download
10841
9773
  * @secure
10842
- * @response `200` `string` Success
9774
+ * @response `200` `Blob` Success
10843
9775
  * @response `404` `ProblemDetails` Not Found
10844
9776
  */
10845
9777
  downloadLoanDocument: (
@@ -10847,7 +9779,7 @@ export class Api<
10847
9779
  documentId: string,
10848
9780
  params: RequestParams = {},
10849
9781
  ) =>
10850
- this.request<string, ProblemDetails>({
9782
+ this.request<Blob, ProblemDetails>({
10851
9783
  path: `/api/loans/${loanId}/documents/${documentId}/download`,
10852
9784
  method: "GET",
10853
9785
  secure: true,
@@ -12902,16 +11834,7 @@ export class Api<
12902
11834
  query?: {
12903
11835
  showAll?: boolean;
12904
11836
  /** @default "Realtor" */
12905
- role?:
12906
- | "Borrower"
12907
- | "LoanOfficer"
12908
- | "Admin"
12909
- | "SuperAdmin"
12910
- | "Realtor"
12911
- | "SettlementAgent"
12912
- | "LoanProcessor"
12913
- | "LoanOfficerAssistant"
12914
- | "SystemAdmin";
11837
+ role?: GetPartnersParamsRoleEnum;
12915
11838
  /** @format int32 */
12916
11839
  pageSize?: number;
12917
11840
  /** @format int32 */
@@ -13247,7 +12170,7 @@ export class Api<
13247
12170
  * @response `404` `ProblemDetails` Not Found
13248
12171
  */
13249
12172
  getSamlMetadata: (
13250
- sSoIntegration: "ConsumerConnect" | "TheBigPOS" | "POSF",
12173
+ sSoIntegration: GetSamlMetadataParamsEnum,
13251
12174
  ssoIntegration: string,
13252
12175
  params: RequestParams = {},
13253
12176
  ) =>
@@ -13269,7 +12192,7 @@ export class Api<
13269
12192
  * @response `200` `File` Success
13270
12193
  */
13271
12194
  createOrReplaceSamlMetadata: (
13272
- sSoIntegration: "ConsumerConnect" | "TheBigPOS" | "POSF",
12195
+ sSoIntegration: CreateOrReplaceSamlMetadataParamsEnum,
13273
12196
  ssoIntegration: string,
13274
12197
  params: RequestParams = {},
13275
12198
  ) =>