@matech/thebigpos-sdk 2.45.1-rc9 → 2.46.4-rc1

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/dist/index.d.ts CHANGED
@@ -27,8 +27,8 @@ export type LoanOccupancyType = "PrimaryHome" | "SecondHome" | "InvestmentProper
27
27
  export type LoanNameSuffix = "Jr" | "Sr" | "II" | "III" | "IV" | "V" | "VI" | "VII";
28
28
  export type LoanNamePrefix = "Mr" | "Mrs" | "Ms";
29
29
  export type LoanMilitaryServiceType = "Current" | "RetiredDischargedSeparated" | "NonActivatedNationalGuard" | "SurvivingSpouse";
30
- export type LoanMaritalStatus = "Married" | "Separated" | "Unmarried";
31
- export type LoanLogType = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent" | "DocumentClassified";
30
+ export type LoanMaritalStatus = "Married" | "Separated" | "Single";
31
+ export type LoanLogType = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent" | "DocumentClassified" | "CoBorrowerEmailAutoFixed";
32
32
  export type LoanLienPosition = "First" | "Subordinate";
33
33
  export type LoanLiabilityType = "Revolving" | "Installment" | "Open30Day" | "Lease" | "Other";
34
34
  export type LoanLanguagePreference = "English" | "Chinese" | "Korean" | "Spanish" | "Tagalog" | "Vietnamese" | "Other" | "DoNotWishToRespond";
@@ -73,15 +73,13 @@ export type AuditChangeType = "Created" | "Modified" | "SoftDeleted" | "HardDele
73
73
  export type AiUrlSourceScope = "FullDomain" | "SpecificPath";
74
74
  export type AiUrlSourceCategory = "Regulatory" | "Guidelines" | "MarketData" | "Custom";
75
75
  export type AiStructuredDataType = "Table" | "DocumentAnalysis" | "DocumentList" | "GeneratedDocument";
76
- export type AiQueryTemplateName = "PipelineSummary" | "LoanDetail" | "LoansClosing" | "StaleLoans" | "LoansByType" | "LoansByOfficer" | "AverageLoanAmount" | "LockedVsUnlocked" | "LoansByPurpose" | "LoansByPropertyState" | "LoansByRate" | "DtiLtvRisk" | "DisclosureTracking" | "NewLoans" | "ExpiringLocks" | "ClosedLoans" | "VerificationGaps" | "CreditScoreDistribution" | "OccupancyMix" | "PropertyTypeMix" | "FirstTimeHomebuyer" | "SelfEmployed" | "ReferralSourcePerformance" | "AmortizationMix" | "TimeToClose" | "ConversionFunnel" | "MonthlyProduction" | "PaymentAffordability" | "DownPaymentCashToClose" | "ApprovalExpirations" | "ApplicationCompleteness" | "LosSyncHealth" | "DeclarationsRisk" | "MilitaryEligibility" | "OutstandingTasks" | "ConsentTracking";
76
+ export type AiQueryTemplateName = "PipelineSummary" | "LoanDetail" | "LoansClosing" | "StaleLoans" | "LoansByType" | "LoansByOfficer" | "AverageLoanAmount" | "LockedVsUnlocked" | "LoansByPurpose" | "LoansByPropertyState" | "LoansByRate" | "DtiLtvRisk" | "DisclosureTracking" | "NewLoans" | "ExpiringLocks" | "ClosedLoans" | "VerificationGaps" | "CreditScoreDistribution" | "OccupancyMix" | "PropertyTypeMix" | "FirstTimeHomebuyer" | "SelfEmployed" | "ReferralSourcePerformance" | "AmortizationMix" | "TimeToClose" | "ConversionFunnel" | "MonthlyProduction" | "PaymentAffordability" | "DownPaymentCashToClose" | "ApprovalExpirations" | "ApplicationCompleteness" | "LosSyncHealth" | "DeclarationsRisk" | "MilitaryEligibility" | "OutstandingTasks" | "ConsentTracking" | "TaskStatusBreakdown" | "ConsentSyncHealth";
77
77
  export type AiPromptCategory = "DocumentAnalysis" | "DataQuery" | "General" | "Action";
78
78
  export type AiOutputType = "Text" | "Document";
79
79
  export type AiIntent = "Greeting" | "Invalid" | "Relevant" | "LoanSpecific" | "DocumentList" | "GeneralKnowledge" | "Blocked" | "Action" | "ConversationMeta" | "Capabilities" | "UsageReport";
80
80
  export type AiGuardrailCategory = "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
81
81
  export type AiDisplayHint = "Table" | "SummaryCards" | "RankedList" | "Comparison" | "ExecutiveBrief";
82
- export type AiConfigEntityType = "Prompt" | "Guardrail" | "CanonicalField" | "UrlSource" | "AdminSettings" | "AccountTokenSettings" | "AccountSettings";
83
- export type AiConfigChangeAction = "Created" | "Updated" | "Deleted" | "Toggled";
84
- export type AiAuditEventType = "Error" | "GuardrailBlockedPre" | "GuardrailPassedPre" | "IntentClassified" | "LoanResolvedFromMessage" | "DocumentNotFound" | "GuardrailBlockedPost" | "GuardrailPassedPost" | "DocumentAnalyzed" | "DocumentList" | "DocumentResolutionAmbiguous" | "ResponseGenerated" | "ParametersExtracted" | "QueryExecuted" | "LoanContextNotFound" | "LoanContextLoaded" | "GuardrailBlockedBedrock" | "PromptMatched" | "QueryCondensed" | "IntentParseFailed" | "LoanSearchTermDiscarded" | "CanonicalFieldsSelected";
82
+ export type AiAuditEventType = "Error" | "GuardrailBlockedPre" | "GuardrailPassedPre" | "IntentClassified" | "LoanResolvedFromMessage" | "DocumentNotFound" | "GuardrailBlockedPost" | "GuardrailPassedPost" | "DocumentAnalyzed" | "DocumentList" | "DocumentResolutionAmbiguous" | "ResponseGenerated" | "ParametersExtracted" | "QueryExecuted" | "LoanContextNotFound" | "LoanContextLoaded" | "GuardrailBlockedBedrock" | "PromptMatched" | "QueryCondensed" | "IntentParseFailed" | "LoanSearchTermDiscarded" | "CanonicalFieldsSelected" | "LoanAccessDenied";
85
83
  export type AddressFamily = "Unspecified" | "Unix" | "InterNetwork" | "ImpLink" | "Pup" | "Chaos" | "NS" | "Ipx" | "Iso" | "Osi" | "Ecma" | "DataKit" | "Ccitt" | "Sna" | "DecNet" | "DataLink" | "Lat" | "HyperChannel" | "AppleTalk" | "NetBios" | "VoiceView" | "FireFox" | "Banyan" | "Atm" | "InterNetworkV6" | "Cluster" | "Ieee12844" | "Irda" | "NetworkDesigners" | "Max" | "Packet" | "ControllerAreaNetwork" | "Unknown";
86
84
  export interface ASOSettings {
87
85
  enabled: boolean;
@@ -132,7 +130,7 @@ export interface AccountBilling {
132
130
  contractedRate: number;
133
131
  }
134
132
  export interface AccountBillingRequest {
135
- billingType: AccountBillingRequestBillingTypeEnum;
133
+ billingType: "ClosedLoan" | "LoanOfficer";
136
134
  /** @format double */
137
135
  contractedRate: number;
138
136
  }
@@ -161,7 +159,6 @@ export interface AccountSettings {
161
159
  smsNumber?: string | null;
162
160
  ssoHostOverride?: string | null;
163
161
  isEarlyAdopter: boolean;
164
- isAIEnabled: boolean;
165
162
  }
166
163
  export interface AccountSettingsRequest {
167
164
  isSmsEnabled: boolean;
@@ -175,7 +172,7 @@ export interface Action {
175
172
  comments?: string | null;
176
173
  /** @format uuid */
177
174
  siteConfigurationID: string;
178
- applicationSettings?: any | null;
175
+ applicationSettings?: any;
179
176
  surveysToken?: string | null;
180
177
  }
181
178
  export interface Address {
@@ -396,7 +393,7 @@ export interface AiAuditLog {
396
393
  conversationId?: string | null;
397
394
  /** @format uuid */
398
395
  messageId?: string | null;
399
- eventType: AiAuditLogEventTypeEnum;
396
+ eventType: "Error" | "GuardrailBlockedPre" | "GuardrailPassedPre" | "IntentClassified" | "LoanResolvedFromMessage" | "DocumentNotFound" | "GuardrailBlockedPost" | "GuardrailPassedPost" | "DocumentAnalyzed" | "DocumentList" | "DocumentResolutionAmbiguous" | "ResponseGenerated" | "ParametersExtracted" | "QueryExecuted" | "LoanContextNotFound" | "LoanContextLoaded" | "GuardrailBlockedBedrock" | "PromptMatched" | "QueryCondensed" | "IntentParseFailed" | "LoanSearchTermDiscarded" | "CanonicalFieldsSelected" | "LoanAccessDenied";
400
397
  modelId?: string | null;
401
398
  /** @format int32 */
402
399
  inputTokens?: number | null;
@@ -409,7 +406,7 @@ export interface AiAuditLog {
409
406
  guardrailCategory?: string | null;
410
407
  rawRequest?: string | null;
411
408
  rawResponse?: string | null;
412
- details?: any | null;
409
+ details?: any;
413
410
  /** @format date-time */
414
411
  createdAt: string;
415
412
  }
@@ -471,7 +468,7 @@ export interface AiChatMessagePaginated {
471
468
  count: number;
472
469
  }
473
470
  export interface AiChatMetadata {
474
- intent: AiChatMetadataIntentEnum;
471
+ intent: "Greeting" | "Invalid" | "Relevant" | "LoanSpecific" | "DocumentList" | "GeneralKnowledge" | "Blocked" | "Action" | "ConversationMeta" | "Capabilities" | "UsageReport";
475
472
  fieldsAccessed: string[];
476
473
  /** @format int64 */
477
474
  queryTimeMs: number;
@@ -497,7 +494,7 @@ export interface AiChatRequest {
497
494
  promptId?: string | null;
498
495
  }
499
496
  export interface AiChatStructuredData {
500
- type: AiChatStructuredDataTypeEnum;
497
+ type: "Table" | "DocumentAnalysis" | "DocumentList" | "GeneratedDocument";
501
498
  displayHint?: AiDisplayHint | null;
502
499
  detectedDocumentType?: string | null;
503
500
  columns: string[];
@@ -506,28 +503,6 @@ export interface AiChatStructuredData {
506
503
  generatedDocumentId?: string | null;
507
504
  generatedFileName?: string | null;
508
505
  }
509
- export interface AiConfigChangeLog {
510
- /** @format uuid */
511
- id: string;
512
- /** @format uuid */
513
- accountId?: string | null;
514
- /** @format uuid */
515
- actorUserId: string;
516
- entityType: AiConfigChangeLogEntityTypeEnum;
517
- /** @format uuid */
518
- entityId?: string | null;
519
- action: AiConfigChangeLogActionEnum;
520
- before?: any | null;
521
- after?: any | null;
522
- /** @format date-time */
523
- createdAt: string;
524
- }
525
- export interface AiConfigChangeLogPaginated {
526
- rows: AiConfigChangeLog[];
527
- pagination: Pagination;
528
- /** @format int64 */
529
- count: number;
530
- }
531
506
  export interface AiConversationAuditSummary {
532
507
  /** @format uuid */
533
508
  conversationId: string;
@@ -572,6 +547,8 @@ export interface AiConversationListItem {
572
547
  id: string;
573
548
  /** @format uuid */
574
549
  userId: string;
550
+ /** @format uuid */
551
+ loanId?: string | null;
575
552
  name?: string | null;
576
553
  preview: string;
577
554
  /** @format int32 */
@@ -588,16 +565,19 @@ export interface AiConversationListItemPaginated {
588
565
  /** @format int64 */
589
566
  count: number;
590
567
  }
568
+ export interface AiEnabled {
569
+ isEnabled: boolean;
570
+ }
591
571
  export interface AiGuardrail {
592
572
  /** @format uuid */
593
573
  id: string;
594
574
  name: string;
595
- category: AiGuardrailCategoryEnum;
575
+ category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
596
576
  description?: string | null;
597
577
  keywords: string[];
598
578
  responseTemplate: string;
599
579
  isDefault: boolean;
600
- isEnabled: boolean;
580
+ isActive: boolean;
601
581
  hasAccountOverride: boolean;
602
582
  /** @format date-time */
603
583
  createdAt: string;
@@ -698,8 +678,8 @@ export interface AiUrlSource {
698
678
  name: string;
699
679
  url: string;
700
680
  description?: string | null;
701
- category: AiUrlSourceCategoryEnum;
702
- scope: AiUrlSourceScopeEnum;
681
+ category: "Regulatory" | "Guidelines" | "MarketData" | "Custom";
682
+ scope: "FullDomain" | "SpecificPath";
703
683
  isActive: boolean;
704
684
  isDefault: boolean;
705
685
  hasAccountOverride: boolean;
@@ -806,14 +786,14 @@ export interface AuditLogEntry {
806
786
  /** @format uuid */
807
787
  id: string;
808
788
  entityType: string;
809
- changeType: AuditLogEntryChangeTypeEnum;
789
+ changeType: "Created" | "Modified" | "SoftDeleted" | "HardDeleted" | "Restored" | "Deactivated" | "Reactivated";
810
790
  /** @format uuid */
811
791
  entityId: string;
812
792
  performedBy?: AuditLogUser | null;
813
793
  rootEntityType?: string | null;
814
794
  /** @format uuid */
815
795
  rootEntityId?: string | null;
816
- changes?: any | null;
796
+ changes?: any;
817
797
  /** @format date-time */
818
798
  createdAt: string;
819
799
  }
@@ -853,7 +833,7 @@ export interface BorrowerCount {
853
833
  firstName: string;
854
834
  lastName: string;
855
835
  email: string;
856
- role: BorrowerCountRoleEnum;
836
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
857
837
  /** @format int32 */
858
838
  count: number;
859
839
  }
@@ -863,7 +843,7 @@ export interface BorrowerIdentity {
863
843
  firstName: string;
864
844
  lastName: string;
865
845
  email: string;
866
- role: BorrowerIdentityRoleEnum;
846
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
867
847
  }
868
848
  export interface BorrowersNotUsingPosSummary {
869
849
  /** @format int32 */
@@ -1052,6 +1032,7 @@ export interface ConsumerConnectStatus {
1052
1032
  /** @format date-time */
1053
1033
  nextRetryAt?: string | null;
1054
1034
  lastTriggerSource?: string | null;
1035
+ lastError?: string | null;
1055
1036
  }
1056
1037
  export interface ContactInfo {
1057
1038
  phone: string;
@@ -1097,7 +1078,7 @@ export interface CorporateSearchCriteria {
1097
1078
  isActive?: boolean | null;
1098
1079
  }
1099
1080
  export interface CreateAccessScopeRequest {
1100
- scopeType: CreateAccessScopeRequestScopeTypeEnum;
1081
+ scopeType: "User" | "Branch";
1101
1082
  /** @format uuid */
1102
1083
  userId?: string | null;
1103
1084
  /** @format uuid */
@@ -1115,7 +1096,7 @@ export interface CreateAccountRequest {
1115
1096
  /** @format int64 */
1116
1097
  nlmsid: number;
1117
1098
  settings: AccountSettingsRequest;
1118
- environment: CreateAccountRequestEnvironmentEnum;
1099
+ environment: "Development" | "Staging" | "UAT" | "Production";
1119
1100
  losIntegration: LOSIntegration;
1120
1101
  billingSettings: AccountBillingRequest;
1121
1102
  }
@@ -1129,7 +1110,7 @@ export interface CreateAiCanonicalFieldRequest {
1129
1110
  }
1130
1111
  export interface CreateAiGuardrailRequest {
1131
1112
  name: string;
1132
- category: CreateAiGuardrailRequestCategoryEnum;
1113
+ category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
1133
1114
  description?: string | null;
1134
1115
  keywords: string[];
1135
1116
  responseTemplate: string;
@@ -1155,8 +1136,8 @@ export interface CreateAiUrlSourceRequest {
1155
1136
  name: string;
1156
1137
  url: string;
1157
1138
  description?: string | null;
1158
- category: CreateAiUrlSourceRequestCategoryEnum;
1159
- scope: CreateAiUrlSourceRequestScopeEnum;
1139
+ category: "Regulatory" | "Guidelines" | "MarketData" | "Custom";
1140
+ scope: "FullDomain" | "SpecificPath";
1160
1141
  }
1161
1142
  export interface CreateBranchRequest {
1162
1143
  name: string;
@@ -1179,8 +1160,8 @@ export interface CreateCustomFieldDefinitionRequest {
1179
1160
  name: string;
1180
1161
  defaultValue?: string | null;
1181
1162
  regexPattern?: string | null;
1182
- dataType: CreateCustomFieldDefinitionRequestDataTypeEnum;
1183
- entityType: CreateCustomFieldDefinitionRequestEntityTypeEnum;
1163
+ dataType: "String" | "Number" | "Decimal" | "Boolean" | "Date" | "SingleSelect" | "MultiSelect";
1164
+ entityType: "Loan";
1184
1165
  options?: CustomFieldOptionRequest[] | null;
1185
1166
  permissions?: CustomFieldPermissionRequest[] | null;
1186
1167
  }
@@ -1195,7 +1176,7 @@ export interface CreateDocumentTemplateRequest {
1195
1176
  export interface CreateGroupMemberRequest {
1196
1177
  /** @format uuid */
1197
1178
  userId: string;
1198
- loanRole: CreateGroupMemberRequestLoanRoleEnum;
1179
+ loanRole: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
1199
1180
  }
1200
1181
  export interface CreateInviteRequest {
1201
1182
  firstName: string;
@@ -1203,7 +1184,7 @@ export interface CreateInviteRequest {
1203
1184
  emailAddress: string;
1204
1185
  phoneNumber?: string | null;
1205
1186
  /** @deprecated */
1206
- relationship: CreateInviteRequestRelationshipEnum;
1187
+ relationship: "NotApplicable" | "Spouse" | "NonSpouse";
1207
1188
  loanID: string;
1208
1189
  route?: string | null;
1209
1190
  /** @format uuid */
@@ -1223,7 +1204,7 @@ export interface CreateLoanImportRequest {
1223
1204
  endDate: string;
1224
1205
  /** @format date-time */
1225
1206
  startDate: string;
1226
- importMode: CreateLoanImportRequestImportModeEnum;
1207
+ importMode: "All" | "NewOnly" | "UpdateOnly";
1227
1208
  }
1228
1209
  export interface CreateSession {
1229
1210
  sessionId: string;
@@ -1241,7 +1222,7 @@ export interface CreateUserDeviceRequest {
1241
1222
  token: string;
1242
1223
  }
1243
1224
  export interface CreateUserDraft {
1244
- loanRole: CreateUserDraftLoanRoleEnum;
1225
+ loanRole: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
1245
1226
  }
1246
1227
  export interface CreateUserGroupRequest {
1247
1228
  name: string;
@@ -1302,8 +1283,8 @@ export interface CustomFieldDefinition {
1302
1283
  name: string;
1303
1284
  defaultValue?: string | null;
1304
1285
  regexPattern?: string | null;
1305
- dataType: CustomFieldDefinitionDataTypeEnum;
1306
- entityType: CustomFieldDefinitionEntityTypeEnum;
1286
+ dataType: "String" | "Number" | "Decimal" | "Boolean" | "Date" | "SingleSelect" | "MultiSelect";
1287
+ entityType: "Loan";
1307
1288
  options: CustomFieldOption[];
1308
1289
  permissions: CustomFieldPermission[];
1309
1290
  encompassMapping?: EncompassMapping | null;
@@ -1317,7 +1298,7 @@ export interface CustomFieldEntry {
1317
1298
  displayOrder: number;
1318
1299
  name: string;
1319
1300
  value: string;
1320
- dataType: CustomFieldEntryDataTypeEnum;
1301
+ dataType: "String" | "Number" | "Decimal" | "Boolean" | "Date" | "SingleSelect" | "MultiSelect";
1321
1302
  }
1322
1303
  export interface CustomFieldOption {
1323
1304
  /** @format uuid */
@@ -1334,12 +1315,12 @@ export interface CustomFieldOptionRequest {
1334
1315
  export interface CustomFieldPermission {
1335
1316
  /** @format uuid */
1336
1317
  id: string;
1337
- role: CustomFieldPermissionRoleEnum;
1338
- accessLevel: CustomFieldPermissionAccessLevelEnum;
1318
+ role: "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "SystemAdmin";
1319
+ accessLevel: "NoAccess" | "ReadOnly" | "ReadWrite";
1339
1320
  }
1340
1321
  export interface CustomFieldPermissionRequest {
1341
- role: CustomFieldPermissionRequestRoleEnum;
1342
- accessLevel: CustomFieldPermissionRequestAccessLevelEnum;
1322
+ role: "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "SystemAdmin";
1323
+ accessLevel: "NoAccess" | "ReadOnly" | "ReadWrite";
1343
1324
  }
1344
1325
  export interface CustomFieldValue {
1345
1326
  /** @format uuid */
@@ -1350,7 +1331,7 @@ export interface CustomFieldValue {
1350
1331
  customFieldDefinitionID: string;
1351
1332
  value: string;
1352
1333
  definitionName: string;
1353
- dataType: CustomFieldValueDataTypeEnum;
1334
+ dataType: "String" | "Number" | "Decimal" | "Boolean" | "Date" | "SingleSelect" | "MultiSelect";
1354
1335
  }
1355
1336
  export interface DetailedUser {
1356
1337
  /** @format date-time */
@@ -1444,18 +1425,6 @@ export interface DeviceRequest {
1444
1425
  name?: string | null;
1445
1426
  comments?: string | null;
1446
1427
  }
1447
- export interface DocumentData {
1448
- documentID: string;
1449
- /** @format uuid */
1450
- eSignRecordID: string;
1451
- documentBucketTitle?: string | null;
1452
- documentName?: string | null;
1453
- /** @format date-time */
1454
- createdAt: string;
1455
- extension?: string | null;
1456
- password: string;
1457
- systemGenerated: boolean;
1458
- }
1459
1428
  export interface DocumentDataRequest {
1460
1429
  documentID?: string | null;
1461
1430
  /** @format uuid */
@@ -1588,7 +1557,7 @@ export interface Draft {
1588
1557
  siteConfiguration: SiteConfigurationReduced;
1589
1558
  /** @format uuid */
1590
1559
  loanID?: string | null;
1591
- type: DraftTypeEnum;
1560
+ type: "NewLoan" | "EditLoan";
1592
1561
  isCoBorrower: boolean;
1593
1562
  }
1594
1563
  export interface DraftContent {
@@ -1606,7 +1575,7 @@ export interface DraftContent {
1606
1575
  siteConfiguration: SiteConfigurationReduced;
1607
1576
  /** @format uuid */
1608
1577
  loanID?: string | null;
1609
- type: DraftContentTypeEnum;
1578
+ type: "NewLoan" | "EditLoan";
1610
1579
  isCoBorrower: boolean;
1611
1580
  applicationPayload: any;
1612
1581
  }
@@ -1622,7 +1591,7 @@ export interface DraftLoanOfficerReassignRequest {
1622
1591
  }
1623
1592
  export interface DraftRequest {
1624
1593
  applicationPayload: any;
1625
- customData?: any | null;
1594
+ customData?: any;
1626
1595
  isCoBorrower: boolean;
1627
1596
  }
1628
1597
  export interface EconsentPendingSummary {
@@ -1696,9 +1665,9 @@ export interface EncompassCredentialsDetail {
1696
1665
  clearStateIfUnlicensed: boolean;
1697
1666
  /** @deprecated */
1698
1667
  baseUrl?: string | null;
1699
- encompassEnvironment: EncompassCredentialsDetailEncompassEnvironmentEnum;
1668
+ encompassEnvironment: "Production" | "UAT";
1700
1669
  consumerConnectWidgetHost?: string | null;
1701
- signingMethod: EncompassCredentialsDetailSigningMethodEnum;
1670
+ signingMethod: "ConsumerConnect" | "POSF";
1702
1671
  subscriptionId?: string | null;
1703
1672
  environment?: string | null;
1704
1673
  }
@@ -1714,9 +1683,9 @@ export interface EncompassCredentialsRequest {
1714
1683
  clearStateIfUnlicensed: boolean;
1715
1684
  /** @deprecated */
1716
1685
  baseUrl?: string | null;
1717
- encompassEnvironment: EncompassCredentialsRequestEncompassEnvironmentEnum;
1686
+ encompassEnvironment: "Production" | "UAT";
1718
1687
  consumerConnectWidgetHost?: string | null;
1719
- signingMethod: EncompassCredentialsRequestSigningMethodEnum;
1688
+ signingMethod: "ConsumerConnect" | "POSF";
1720
1689
  subscriptionId?: string | null;
1721
1690
  environment?: string | null;
1722
1691
  clientID?: string | null;
@@ -1787,6 +1756,7 @@ export interface EncompassPackageItem {
1787
1756
  /** @format date-time */
1788
1757
  createdAt: string;
1789
1758
  recipientId: string;
1759
+ borrowerName?: string | null;
1790
1760
  title?: string | null;
1791
1761
  /** @format date-time */
1792
1762
  issuedAt?: string | null;
@@ -1825,8 +1795,8 @@ export interface EncompassRequestLog {
1825
1795
  losId?: string | null;
1826
1796
  /** @format uuid */
1827
1797
  accountId: string;
1828
- operationType: EncompassRequestLogOperationTypeEnum;
1829
- outcome: EncompassRequestLogOutcomeEnum;
1798
+ operationType: "FieldUpdate" | "ConsentUpdate" | "DocumentSync" | "MilestoneUpdate" | "DocumentAttachment" | "General" | "FieldReader";
1799
+ outcome: "Success" | "Failure" | "PartialSuccess";
1830
1800
  message: string;
1831
1801
  endpoint?: string | null;
1832
1802
  httpMethod?: string | null;
@@ -1834,7 +1804,7 @@ export interface EncompassRequestLog {
1834
1804
  httpStatusCode?: number | null;
1835
1805
  /** @format int64 */
1836
1806
  durationMs?: number | null;
1837
- context?: any | null;
1807
+ context?: any;
1838
1808
  /** @format date-time */
1839
1809
  createdAt: string;
1840
1810
  }
@@ -1873,7 +1843,7 @@ export interface FileSearchCriteria {
1873
1843
  export interface FileWithBytes {
1874
1844
  name: string;
1875
1845
  /** @format byte */
1876
- data: Blob;
1846
+ data: string;
1877
1847
  fileName: string;
1878
1848
  mimeType?: string | null;
1879
1849
  extension?: string | null;
@@ -1949,7 +1919,7 @@ export interface FormSubmission {
1949
1919
  subjectPropertyAddressCounty?: string | null;
1950
1920
  subjectPropertyAddressState?: string | null;
1951
1921
  subjectPropertyAddressZip?: string | null;
1952
- data?: any | null;
1922
+ data?: any;
1953
1923
  /** @format uuid */
1954
1924
  listingID?: string | null;
1955
1925
  listing?: Listing | null;
@@ -1984,7 +1954,7 @@ export interface FormSubmissionRequest {
1984
1954
  subjectPropertyAddressCounty?: string | null;
1985
1955
  subjectPropertyAddressState?: string | null;
1986
1956
  subjectPropertyAddressZip?: string | null;
1987
- data?: any | null;
1957
+ data?: any;
1988
1958
  /** @format uuid */
1989
1959
  listingID?: string | null;
1990
1960
  }
@@ -2033,7 +2003,7 @@ export interface FusionFieldDisplay {
2033
2003
  fieldValue: string;
2034
2004
  }
2035
2005
  export interface FusionReportFilter {
2036
- filterType: FusionReportFilterFilterTypeEnum;
2006
+ filterType: "DateGreaterThanOrEqualTo" | "DateGreaterThan" | "DateLessThan" | "DateLessThanOrEqualTo" | "DateEquals" | "DateDoesntEqual" | "DateNonEmpty" | "DateEmpty" | "StringContains" | "StringEquals" | "StringNotEmpty" | "StringNotEquals" | "StringNotContains";
2037
2007
  targetField: string;
2038
2008
  targetValue: string;
2039
2009
  }
@@ -2053,7 +2023,7 @@ export interface GenerateSystemPrompt {
2053
2023
  }
2054
2024
  export interface GenerateSystemPromptRequest {
2055
2025
  description: string;
2056
- category: GenerateSystemPromptRequestCategoryEnum;
2026
+ category: "DocumentAnalysis" | "DataQuery" | "General" | "Action";
2057
2027
  }
2058
2028
  export interface GetApplications {
2059
2029
  applications: ApplicationRowData[];
@@ -2137,11 +2107,11 @@ export interface GetWorkflowRequest {
2137
2107
  export interface GuidPatchOperation {
2138
2108
  op: string;
2139
2109
  path: string;
2140
- value?: any | null;
2110
+ value?: any;
2141
2111
  from?: string | null;
2142
2112
  }
2143
2113
  export interface IPAddress {
2144
- addressFamily: IpAddressAddressFamilyEnum;
2114
+ addressFamily: "Unspecified" | "Unix" | "InterNetwork" | "ImpLink" | "Pup" | "Chaos" | "NS" | "Ipx" | "Iso" | "Osi" | "Ecma" | "DataKit" | "Ccitt" | "Sna" | "DecNet" | "DataLink" | "Lat" | "HyperChannel" | "AppleTalk" | "NetBios" | "VoiceView" | "FireFox" | "Banyan" | "Atm" | "InterNetworkV6" | "Cluster" | "Ieee12844" | "Irda" | "NetworkDesigners" | "Max" | "Packet" | "ControllerAreaNetwork" | "Unknown";
2145
2115
  /** @format int64 */
2146
2116
  scopeId: number;
2147
2117
  isIPv6Multicast: boolean;
@@ -2390,7 +2360,7 @@ export interface Loan {
2390
2360
  contacts: LoanContact[];
2391
2361
  customFields: CustomFieldEntry[];
2392
2362
  milestones: LoanMilestone[];
2393
- signingMethod: LoanSigningMethodEnum;
2363
+ signingMethod: "ConsumerConnect" | "POSF";
2394
2364
  }
2395
2365
  export interface LoanApplication {
2396
2366
  /** @format uuid */
@@ -2428,7 +2398,7 @@ export interface LoanApplicationRequest {
2428
2398
  nonOwningBorrowers: LoanNonOwningBorrowerRequest[];
2429
2399
  /** @format uuid */
2430
2400
  draftId?: string | null;
2431
- additionalFields?: Record<string, any> | null;
2401
+ additionalFields?: Record<string, any>;
2432
2402
  /** @format uuid */
2433
2403
  existingLoanId?: string | null;
2434
2404
  }
@@ -2447,7 +2417,7 @@ export interface LoanBorrower {
2447
2417
  citizenship?: LoanCitizenship | null;
2448
2418
  maritalStatus?: LoanMaritalStatus | null;
2449
2419
  languagePreference?: LoanLanguagePreference | null;
2450
- applicationStatus: LoanBorrowerApplicationStatusEnum;
2420
+ applicationStatus: "Draft" | "Complete";
2451
2421
  /** @format int32 */
2452
2422
  numberOfDependents?: number | null;
2453
2423
  /** @format int32 */
@@ -3045,7 +3015,7 @@ export interface LoanBorrowerRealEstateAssetRequest {
3045
3015
  /** @format double */
3046
3016
  maintenanceExpense?: number | null;
3047
3017
  address?: AddressRequest | null;
3048
- mortgages?: LoanBorrowerRealEstateAssetMortgageRequest[] | null;
3018
+ mortgage?: LoanBorrowerRealEstateAssetMortgageRequest | null;
3049
3019
  }
3050
3020
  export interface LoanBorrowerRequest {
3051
3021
  ssn?: string | null;
@@ -3173,7 +3143,7 @@ export interface LoanConsentRequest {
3173
3143
  borrowerEConsent?: boolean | null;
3174
3144
  borrowerCreditAuth?: boolean | null;
3175
3145
  borrowerTCPAOptIn?: boolean | null;
3176
- additionalFields?: Record<string, string> | null;
3146
+ additionalFields?: Record<string, string>;
3177
3147
  }
3178
3148
  export interface LoanContact {
3179
3149
  /** @format date-time */
@@ -3191,7 +3161,7 @@ export interface LoanContact {
3191
3161
  email?: string | null;
3192
3162
  phone?: string | null;
3193
3163
  companyName?: string | null;
3194
- role: LoanContactRoleEnum;
3164
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
3195
3165
  }
3196
3166
  export interface LoanContactList {
3197
3167
  email: string;
@@ -3213,7 +3183,7 @@ export interface LoanCostDetails {
3213
3183
  totalFinancing?: number | null;
3214
3184
  }
3215
3185
  export interface LoanCustomFieldsRequest {
3216
- additionalFields?: Record<string, string> | null;
3186
+ additionalFields?: Record<string, string>;
3217
3187
  }
3218
3188
  export interface LoanDocument {
3219
3189
  /** @format date-time */
@@ -3263,12 +3233,12 @@ export interface LoanDocumentFolderPermission {
3263
3233
  id: string;
3264
3234
  /** @format uuid */
3265
3235
  loanDocumentFolderID: string;
3266
- role: LoanDocumentFolderPermissionRoleEnum;
3267
- level: LoanDocumentFolderPermissionLevelEnum;
3236
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
3237
+ level: "None" | "Read" | "Write" | "Manage";
3268
3238
  }
3269
3239
  export interface LoanDocumentFolderPermissionRequest {
3270
- role: LoanDocumentFolderPermissionRequestRoleEnum;
3271
- level: LoanDocumentFolderPermissionRequestLevelEnum;
3240
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
3241
+ level: "None" | "Read" | "Write" | "Manage";
3272
3242
  }
3273
3243
  export interface LoanDocumentFolderUsage {
3274
3244
  /** @format uuid */
@@ -3402,13 +3372,13 @@ export interface LoanImport {
3402
3372
  /** @format int32 */
3403
3373
  importedCount: number;
3404
3374
  statusMessage?: string | null;
3405
- status: LoanImportStatusEnum;
3406
- importMode: LoanImportImportModeEnum;
3375
+ status: "WaitingProcess" | "InProgress" | "Completed" | "Failed" | "Cancelled";
3376
+ importMode: "All" | "NewOnly" | "UpdateOnly";
3407
3377
  /** @format date-time */
3408
3378
  createdAt?: string | null;
3409
3379
  }
3410
3380
  export interface LoanImportLog {
3411
- level: LoanImportLogLevelEnum;
3381
+ level: "None" | "Info" | "Warning" | "Error";
3412
3382
  message: string;
3413
3383
  /** @format date-time */
3414
3384
  createdAt: string;
@@ -3463,8 +3433,8 @@ export interface LoanListPaginated {
3463
3433
  export interface LoanLog {
3464
3434
  /** @format uuid */
3465
3435
  id: string;
3466
- level: LoanLogLevelEnum;
3467
- type: LoanLogTypeEnum;
3436
+ level: "None" | "Info" | "Warning" | "Error";
3437
+ type: "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent" | "DocumentClassified" | "CoBorrowerEmailAutoFixed";
3468
3438
  message: string;
3469
3439
  /** @format date-time */
3470
3440
  createdAt: string;
@@ -3472,8 +3442,8 @@ export interface LoanLog {
3472
3442
  export interface LoanLogDetail {
3473
3443
  /** @format uuid */
3474
3444
  id: string;
3475
- level: LoanLogDetailLevelEnum;
3476
- type: LoanLogDetailTypeEnum;
3445
+ level: "None" | "Info" | "Warning" | "Error";
3446
+ type: "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent" | "DocumentClassified" | "CoBorrowerEmailAutoFixed";
3477
3447
  message: string;
3478
3448
  /** @format date-time */
3479
3449
  createdAt: string;
@@ -3735,7 +3705,7 @@ export interface LoanQueueWithData {
3735
3705
  user: UserPublic;
3736
3706
  loanOfficer: LoanOfficerPublic;
3737
3707
  siteConfiguration: SiteConfigurationReduced;
3738
- data?: any | null;
3708
+ data?: any;
3739
3709
  }
3740
3710
  export interface LoanRecord {
3741
3711
  loanGuid: string;
@@ -3766,7 +3736,7 @@ export interface LoanTaskSearchRequest {
3766
3736
  loanStatus?: LoanTaskActivityFilter | null;
3767
3737
  }
3768
3738
  export interface LoanTaskStatusSummary {
3769
- status: LoanTaskStatusSummaryStatusEnum;
3739
+ status: "Outstanding" | "Pending" | "Completed" | "Rejected" | "Unknown";
3770
3740
  /** @format int32 */
3771
3741
  count: number;
3772
3742
  }
@@ -3778,7 +3748,7 @@ export interface LoanUser {
3778
3748
  email: string;
3779
3749
  phone?: string | null;
3780
3750
  role: string;
3781
- loanRole: LoanUserLoanRoleEnum;
3751
+ loanRole: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
3782
3752
  isUser: boolean;
3783
3753
  /** @format date-time */
3784
3754
  createdAt: string;
@@ -3811,7 +3781,7 @@ export interface LosOperationTracking {
3811
3781
  operationType: string;
3812
3782
  correlationKey: string;
3813
3783
  lastTriggerSource?: string | null;
3814
- status: LosOperationTrackingStatusEnum;
3784
+ status: "Pending" | "Success" | "Failed" | "ConfigurationError" | "PermanentFailure" | "Locked";
3815
3785
  /** @format date-time */
3816
3786
  createdAt: string;
3817
3787
  /** @format date-time */
@@ -3872,7 +3842,7 @@ export interface LosSyncStep {
3872
3842
  /** @format int32 */
3873
3843
  order: number;
3874
3844
  name: string;
3875
- severity: LosSyncStepSeverityEnum;
3845
+ severity: "Success" | "Info" | "Warning" | "Error";
3876
3846
  message: string;
3877
3847
  /** @format date-time */
3878
3848
  atUtc: string;
@@ -3886,7 +3856,7 @@ export interface LosWebhook {
3886
3856
  enableSubscription: boolean;
3887
3857
  }
3888
3858
  export interface ManualDocumentClassificationRequest {
3889
- documentType: ManualDocumentClassificationRequestDocumentTypeEnum;
3859
+ documentType: "W2" | "Paystub" | "Form1099" | "Form1099Int" | "Form1099Misc" | "Form1099Nec" | "Form1099R" | "Form1099G" | "Form1099Div" | "Form1099Ssa" | "FederalTaxReturn1040" | "TaxReturnScheduleC" | "TaxReturnScheduleD" | "TaxReturnScheduleE" | "Form1065" | "Form1120" | "Form1120S" | "ProfitAndLossStatement" | "VerificationOfEmployment" | "BankStatement" | "InvestmentStatement" | "CreditCardStatement" | "MortgageStatement" | "PayoffStatement" | "HoaDocuments" | "UtilityBill" | "IdentityDocument" | "DemographicAddendum" | "Ssa89" | "Vba260551" | "Hud92900B" | "Check" | "Invoice" | "Receipt" | "LoanApplication1003" | "UnderwritingTransmittal1008" | "Other" | "SalesContract" | "TitleCommitment" | "DriversLicense" | "VerificationOfIncome" | "VerificationOfAssets" | "FloodCertificate" | "FraudReport" | "AddendumToSalesContract" | "GiftLetter" | "CpaLetter" | "TaxBill" | "CondoQuestionnaire" | "CondoBudget" | "CondoBylaws" | "RentalAgreements" | "Lease" | "HazardInsurance" | "VaCertificateOfEligibility" | "Appraisal" | "CreditReport" | "CondoMasterPolicy";
3890
3860
  }
3891
3861
  export interface MdmUser {
3892
3862
  user_email?: string | null;
@@ -3965,7 +3935,7 @@ export interface ModuleParameterValue {
3965
3935
  parameterID: string;
3966
3936
  parameterName: string;
3967
3937
  parameterType: string;
3968
- value?: any | null;
3938
+ value?: any;
3969
3939
  isInherited: boolean;
3970
3940
  }
3971
3941
  export interface MonthlyPaymentCalculator {
@@ -4138,7 +4108,7 @@ export interface NotificationTemplateVersionUpdateRequest {
4138
4108
  }
4139
4109
  export interface Operation {
4140
4110
  op?: string;
4141
- value?: object | null;
4111
+ value?: string | number | boolean | null | object;
4142
4112
  path?: string;
4143
4113
  }
4144
4114
  export interface OverridePasswordRequest {
@@ -4464,7 +4434,7 @@ export interface SiteConfiguration {
4464
4434
  deletedAt?: string | null;
4465
4435
  /** @format uuid */
4466
4436
  id: string;
4467
- type: SiteConfigurationTypeEnum;
4437
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4468
4438
  /** @format uuid */
4469
4439
  entityID: string;
4470
4440
  /** @format int32 */
@@ -4657,7 +4627,7 @@ export interface SiteConfigurationByUrl {
4657
4627
  deletedAt?: string | null;
4658
4628
  /** @format uuid */
4659
4629
  id: string;
4660
- type: SiteConfigurationByUrlTypeEnum;
4630
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4661
4631
  /** @format uuid */
4662
4632
  entityID: string;
4663
4633
  /** @format int32 */
@@ -4867,7 +4837,7 @@ export interface SiteConfigurationForm {
4867
4837
  export interface SiteConfigurationReduced {
4868
4838
  /** @format uuid */
4869
4839
  id: string;
4870
- type: SiteConfigurationReducedTypeEnum;
4840
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4871
4841
  url?: string | null;
4872
4842
  name: string;
4873
4843
  /** @format int64 */
@@ -4884,7 +4854,7 @@ export interface SiteConfigurationRequest {
4884
4854
  entityID: string;
4885
4855
  /** @format int32 */
4886
4856
  entityType: number;
4887
- type: SiteConfigurationRequestTypeEnum;
4857
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4888
4858
  url: string;
4889
4859
  name: string;
4890
4860
  introduction?: string | null;
@@ -5059,7 +5029,7 @@ export interface SiteConfigurationSearchCriteria {
5059
5029
  export interface SiteConfigurationSummary {
5060
5030
  /** @format uuid */
5061
5031
  id: string;
5062
- type: SiteConfigurationSummaryTypeEnum;
5032
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5063
5033
  url?: string | null;
5064
5034
  name: string;
5065
5035
  /** @format int64 */
@@ -5313,7 +5283,7 @@ export interface UnregisteredBorrower {
5313
5283
  lastName?: string | null;
5314
5284
  fullName?: string | null;
5315
5285
  email?: string | null;
5316
- role: UnregisteredBorrowerRoleEnum;
5286
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5317
5287
  }
5318
5288
  export interface UpdateAccountRequest {
5319
5289
  name: string;
@@ -5337,7 +5307,7 @@ export interface UpdateAiCanonicalFieldRequest {
5337
5307
  }
5338
5308
  export interface UpdateAiGuardrailRequest {
5339
5309
  name: string;
5340
- category: UpdateAiGuardrailRequestCategoryEnum;
5310
+ category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
5341
5311
  description?: string | null;
5342
5312
  keywords: string[];
5343
5313
  responseTemplate: string;
@@ -5362,8 +5332,8 @@ export interface UpdateAiUrlSourceRequest {
5362
5332
  name: string;
5363
5333
  url: string;
5364
5334
  description?: string | null;
5365
- category: UpdateAiUrlSourceRequestCategoryEnum;
5366
- scope: UpdateAiUrlSourceRequestScopeEnum;
5335
+ category: "Regulatory" | "Guidelines" | "MarketData" | "Custom";
5336
+ scope: "FullDomain" | "SpecificPath";
5367
5337
  }
5368
5338
  export interface UpdateCustomFieldDefinitionRequest {
5369
5339
  isRequired: boolean;
@@ -5650,7 +5620,7 @@ export interface UserDevice {
5650
5620
  export interface UserDraft {
5651
5621
  /** @format uuid */
5652
5622
  draftID: string;
5653
- role: UserDraftRoleEnum;
5623
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5654
5624
  user: User;
5655
5625
  }
5656
5626
  export interface UserDraftPaginated {
@@ -5674,7 +5644,7 @@ export interface UserGroupAccessScope {
5674
5644
  id: string;
5675
5645
  /** @format uuid */
5676
5646
  groupId: string;
5677
- scopeType: UserGroupAccessScopeScopeTypeEnum;
5647
+ scopeType: "User" | "Branch";
5678
5648
  /** @format uuid */
5679
5649
  userId?: string | null;
5680
5650
  /** @format uuid */
@@ -5707,7 +5677,7 @@ export interface UserLoan {
5707
5677
  deletedAt?: string | null;
5708
5678
  loanID: string;
5709
5679
  user: User;
5710
- role: UserLoanRoleEnum;
5680
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5711
5681
  /** @format int32 */
5712
5682
  borrowerPair?: number | null;
5713
5683
  /** @format int32 */
@@ -5719,11 +5689,11 @@ export interface UserLoanConsent {
5719
5689
  id: string;
5720
5690
  /** @format uuid */
5721
5691
  userLoanID: string;
5722
- type: UserLoanConsentTypeEnum;
5692
+ type: "Econsent" | "CreditAuthorization" | "Tcpa";
5723
5693
  providedConsent: boolean;
5724
5694
  source?: ConsentSource | null;
5725
5695
  ipAddress?: string | null;
5726
- losSyncStatus: UserLoanConsentLosSyncStatusEnum;
5696
+ losSyncStatus: "NotStarted" | "Failed" | "Success";
5727
5697
  /** @format date-time */
5728
5698
  createdAt: string;
5729
5699
  /** @format date-time */
@@ -5853,7 +5823,7 @@ export interface UserSummary {
5853
5823
  id: string;
5854
5824
  name?: string | null;
5855
5825
  email?: string | null;
5856
- role: UserSummaryRoleEnum;
5826
+ role: "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "SystemAdmin";
5857
5827
  }
5858
5828
  export interface VerifyPasswordRequest {
5859
5829
  email: string;
@@ -5880,90 +5850,6 @@ export interface Workflow {
5880
5850
  tileSubtitle: string;
5881
5851
  icon: string;
5882
5852
  }
5883
- export type AccountBillingRequestBillingTypeEnum = "ClosedLoan" | "LoanOfficer";
5884
- export type AiAuditLogEventTypeEnum = "Error" | "GuardrailBlockedPre" | "GuardrailPassedPre" | "IntentClassified" | "LoanResolvedFromMessage" | "DocumentNotFound" | "GuardrailBlockedPost" | "GuardrailPassedPost" | "DocumentAnalyzed" | "DocumentList" | "DocumentResolutionAmbiguous" | "ResponseGenerated" | "ParametersExtracted" | "QueryExecuted" | "LoanContextNotFound" | "LoanContextLoaded" | "GuardrailBlockedBedrock" | "PromptMatched" | "QueryCondensed" | "IntentParseFailed" | "LoanSearchTermDiscarded" | "CanonicalFieldsSelected";
5885
- export type AiChatMetadataIntentEnum = "Greeting" | "Invalid" | "Relevant" | "LoanSpecific" | "DocumentList" | "GeneralKnowledge" | "Blocked" | "Action" | "ConversationMeta" | "Capabilities" | "UsageReport";
5886
- export type AiChatStructuredDataTypeEnum = "Table" | "DocumentAnalysis" | "DocumentList" | "GeneratedDocument";
5887
- export type AiConfigChangeLogEntityTypeEnum = "Prompt" | "Guardrail" | "CanonicalField" | "UrlSource" | "AdminSettings" | "AccountTokenSettings" | "AccountSettings";
5888
- export type AiConfigChangeLogActionEnum = "Created" | "Updated" | "Deleted" | "Toggled";
5889
- export type AiGuardrailCategoryEnum = "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
5890
- export type AiUrlSourceCategoryEnum = "Regulatory" | "Guidelines" | "MarketData" | "Custom";
5891
- export type AiUrlSourceScopeEnum = "FullDomain" | "SpecificPath";
5892
- export type AuditLogEntryChangeTypeEnum = "Created" | "Modified" | "SoftDeleted" | "HardDeleted" | "Restored" | "Deactivated" | "Reactivated";
5893
- export type BorrowerCountRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5894
- export type BorrowerIdentityRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5895
- export type CreateAccessScopeRequestScopeTypeEnum = "User" | "Branch";
5896
- export type CreateAccountRequestEnvironmentEnum = "Development" | "Staging" | "UAT" | "Production";
5897
- export type CreateAiGuardrailRequestCategoryEnum = "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
5898
- export type CreateAiUrlSourceRequestCategoryEnum = "Regulatory" | "Guidelines" | "MarketData" | "Custom";
5899
- export type CreateAiUrlSourceRequestScopeEnum = "FullDomain" | "SpecificPath";
5900
- export type CreateCustomFieldDefinitionRequestDataTypeEnum = "String" | "Number" | "Decimal" | "Boolean" | "Date" | "SingleSelect" | "MultiSelect";
5901
- export type CreateCustomFieldDefinitionRequestEntityTypeEnum = "Loan";
5902
- export type CreateGroupMemberRequestLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5903
- /** @deprecated */
5904
- export type CreateInviteRequestRelationshipEnum = "NotApplicable" | "Spouse" | "NonSpouse";
5905
- export type CreateLoanImportRequestImportModeEnum = "All" | "NewOnly" | "UpdateOnly";
5906
- export type CreateUserDraftLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5907
- export type CustomFieldDefinitionDataTypeEnum = "String" | "Number" | "Decimal" | "Boolean" | "Date" | "SingleSelect" | "MultiSelect";
5908
- export type CustomFieldDefinitionEntityTypeEnum = "Loan";
5909
- export type CustomFieldEntryDataTypeEnum = "String" | "Number" | "Decimal" | "Boolean" | "Date" | "SingleSelect" | "MultiSelect";
5910
- export type CustomFieldPermissionRoleEnum = "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "SystemAdmin";
5911
- export type CustomFieldPermissionAccessLevelEnum = "NoAccess" | "ReadOnly" | "ReadWrite";
5912
- export type CustomFieldPermissionRequestRoleEnum = "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "SystemAdmin";
5913
- export type CustomFieldPermissionRequestAccessLevelEnum = "NoAccess" | "ReadOnly" | "ReadWrite";
5914
- export type CustomFieldValueDataTypeEnum = "String" | "Number" | "Decimal" | "Boolean" | "Date" | "SingleSelect" | "MultiSelect";
5915
- export type DraftTypeEnum = "NewLoan" | "EditLoan";
5916
- export type DraftContentTypeEnum = "NewLoan" | "EditLoan";
5917
- export type EncompassCredentialsDetailEncompassEnvironmentEnum = "Production" | "UAT";
5918
- export type EncompassCredentialsDetailSigningMethodEnum = "ConsumerConnect" | "POSF";
5919
- export type EncompassCredentialsRequestEncompassEnvironmentEnum = "Production" | "UAT";
5920
- export type EncompassCredentialsRequestSigningMethodEnum = "ConsumerConnect" | "POSF";
5921
- export type EncompassRequestLogOperationTypeEnum = "FieldUpdate" | "ConsentUpdate" | "DocumentSync" | "MilestoneUpdate" | "DocumentAttachment" | "General" | "FieldReader";
5922
- export type EncompassRequestLogOutcomeEnum = "Success" | "Failure" | "PartialSuccess";
5923
- export type FusionReportFilterFilterTypeEnum = "DateGreaterThanOrEqualTo" | "DateGreaterThan" | "DateLessThan" | "DateLessThanOrEqualTo" | "DateEquals" | "DateDoesntEqual" | "DateNonEmpty" | "DateEmpty" | "StringContains" | "StringEquals" | "StringNotEmpty" | "StringNotEquals" | "StringNotContains";
5924
- export type GenerateSystemPromptRequestCategoryEnum = "DocumentAnalysis" | "DataQuery" | "General" | "Action";
5925
- export type IpAddressAddressFamilyEnum = "Unspecified" | "Unix" | "InterNetwork" | "ImpLink" | "Pup" | "Chaos" | "NS" | "Ipx" | "Iso" | "Osi" | "Ecma" | "DataKit" | "Ccitt" | "Sna" | "DecNet" | "DataLink" | "Lat" | "HyperChannel" | "AppleTalk" | "NetBios" | "VoiceView" | "FireFox" | "Banyan" | "Atm" | "InterNetworkV6" | "Cluster" | "Ieee12844" | "Irda" | "NetworkDesigners" | "Max" | "Packet" | "ControllerAreaNetwork" | "Unknown";
5926
- export type LoanSigningMethodEnum = "ConsumerConnect" | "POSF";
5927
- export type LoanBorrowerApplicationStatusEnum = "Draft" | "Complete";
5928
- export type LoanContactRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5929
- export type LoanDocumentFolderPermissionRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5930
- export type LoanDocumentFolderPermissionLevelEnum = "None" | "Read" | "Write" | "Manage";
5931
- export type LoanDocumentFolderPermissionRequestRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5932
- export type LoanDocumentFolderPermissionRequestLevelEnum = "None" | "Read" | "Write" | "Manage";
5933
- export type LoanImportStatusEnum = "WaitingProcess" | "InProgress" | "Completed" | "Failed" | "Cancelled";
5934
- export type LoanImportImportModeEnum = "All" | "NewOnly" | "UpdateOnly";
5935
- export type LoanImportLogLevelEnum = "None" | "Info" | "Warning" | "Error";
5936
- export type LoanLogLevelEnum = "None" | "Info" | "Warning" | "Error";
5937
- export type LoanLogTypeEnum = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent" | "DocumentClassified";
5938
- export type LoanLogDetailLevelEnum = "None" | "Info" | "Warning" | "Error";
5939
- export type LoanLogDetailTypeEnum = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent" | "DocumentClassified";
5940
- export type LoanTaskStatusSummaryStatusEnum = "Outstanding" | "Pending" | "Completed" | "Rejected" | "Unknown";
5941
- export type LoanUserLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5942
- export type LosOperationTrackingStatusEnum = "Pending" | "Success" | "Failed" | "ConfigurationError" | "PermanentFailure" | "Locked";
5943
- export type LosSyncStepSeverityEnum = "Success" | "Info" | "Warning" | "Error";
5944
- export type ManualDocumentClassificationRequestDocumentTypeEnum = "W2" | "Paystub" | "Form1099" | "Form1099Int" | "Form1099Misc" | "Form1099Nec" | "Form1099R" | "Form1099G" | "Form1099Div" | "Form1099Ssa" | "FederalTaxReturn1040" | "TaxReturnScheduleC" | "TaxReturnScheduleD" | "TaxReturnScheduleE" | "Form1065" | "Form1120" | "Form1120S" | "ProfitAndLossStatement" | "VerificationOfEmployment" | "BankStatement" | "InvestmentStatement" | "CreditCardStatement" | "MortgageStatement" | "PayoffStatement" | "HoaDocuments" | "UtilityBill" | "IdentityDocument" | "DemographicAddendum" | "Ssa89" | "Vba260551" | "Hud92900B" | "Check" | "Invoice" | "Receipt" | "LoanApplication1003" | "UnderwritingTransmittal1008" | "Other" | "SalesContract" | "TitleCommitment" | "DriversLicense" | "VerificationOfIncome" | "VerificationOfAssets" | "FloodCertificate" | "FraudReport" | "AddendumToSalesContract" | "GiftLetter" | "CpaLetter" | "TaxBill" | "CondoQuestionnaire" | "CondoBudget" | "CondoBylaws" | "RentalAgreements" | "Lease" | "HazardInsurance" | "VaCertificateOfEligibility" | "Appraisal" | "CreditReport" | "CondoMasterPolicy";
5945
- export type SiteConfigurationTypeEnum = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5946
- export type SiteConfigurationByUrlTypeEnum = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5947
- export type SiteConfigurationReducedTypeEnum = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5948
- export type SiteConfigurationRequestTypeEnum = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5949
- export type SiteConfigurationSummaryTypeEnum = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5950
- export type UnregisteredBorrowerRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5951
- export type UpdateAiGuardrailRequestCategoryEnum = "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
5952
- export type UpdateAiUrlSourceRequestCategoryEnum = "Regulatory" | "Guidelines" | "MarketData" | "Custom";
5953
- export type UpdateAiUrlSourceRequestScopeEnum = "FullDomain" | "SpecificPath";
5954
- export type UserDraftRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5955
- export type UserGroupAccessScopeScopeTypeEnum = "User" | "Branch";
5956
- export type UserLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5957
- export type UserLoanConsentTypeEnum = "Econsent" | "CreditAuthorization" | "Tcpa";
5958
- export type UserLoanConsentLosSyncStatusEnum = "NotStarted" | "Failed" | "Success";
5959
- export type UserSummaryRoleEnum = "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "SystemAdmin";
5960
- export type GetCustomFieldDefinitionsParamsEntityTypeEnum = "Loan";
5961
- /** @default "Realtor" */
5962
- export type GetPartnersParamsRoleEnum = "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "SystemAdmin";
5963
- export type GetSamlMetadataParamsSSoIntegrationEnum = "ConsumerConnect" | "TheBigPOS" | "POSF";
5964
- export type GetSamlMetadataParamsEnum = "ConsumerConnect" | "TheBigPOS" | "POSF";
5965
- export type CreateOrReplaceSamlMetadataParamsSSoIntegrationEnum = "ConsumerConnect" | "TheBigPOS" | "POSF";
5966
- export type CreateOrReplaceSamlMetadataParamsEnum = "ConsumerConnect" | "TheBigPOS" | "POSF";
5967
5853
  import type { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
5968
5854
  export type QueryParamsType = Record<string | number, any>;
5969
5855
  export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
@@ -5986,7 +5872,14 @@ export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequest
5986
5872
  secure?: boolean;
5987
5873
  format?: ResponseType;
5988
5874
  }
5989
- export type ContentType = "application/json" | "application/vnd.api+json" | "multipart/form-data" | "application/x-www-form-urlencoded" | "text/plain";
5875
+ export declare enum ContentType {
5876
+ JsonPatch = "application/json-patch+json",
5877
+ Json = "application/json",
5878
+ JsonApi = "application/vnd.api+json",
5879
+ FormData = "multipart/form-data",
5880
+ UrlEncoded = "application/x-www-form-urlencoded",
5881
+ Text = "text/plain"
5882
+ }
5990
5883
  export declare class HttpClient<SecurityDataType = unknown> {
5991
5884
  instance: AxiosInstance;
5992
5885
  private securityData;
@@ -6002,7 +5895,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
6002
5895
  }
6003
5896
  /**
6004
5897
  * @title The Big POS API
6005
- * @version v2.45.0
5898
+ * @version v2.46.4
6006
5899
  * @termsOfService https://www.thebigpos.com/terms-of-use/
6007
5900
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
6008
5901
  */
@@ -6166,141 +6059,66 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6166
6059
  /**
6167
6060
  * No description
6168
6061
  *
6169
- * @tags AiAccountSettings
6170
- * @name GetAiAccountSettings
6171
- * @summary Get account AI settings
6172
- * @request GET:/api/ai/admin/account-settings
6173
- * @secure
6174
- * @response `200` `AiAccountSettings` OK
6175
- */
6176
- getAiAccountSettings: (params?: RequestParams) => Promise<AxiosResponse<AiAccountSettings, any, {}>>;
6177
- /**
6178
- * No description
6179
- *
6180
- * @tags AiAccountSettings
6181
- * @name UpdateAiAccountSettings
6182
- * @summary Update account AI settings
6183
- * @request PUT:/api/ai/admin/account-settings
6184
- * @secure
6185
- * @response `200` `AiAccountSettings` OK
6186
- * @response `400` `ProblemDetails` Bad Request
6187
- */
6188
- updateAiAccountSettings: (data: AiAccountSettingsRequest, params?: RequestParams) => Promise<AxiosResponse<AiAccountSettings, any, {}>>;
6189
- /**
6190
- * No description
6191
- *
6192
- * @tags AiAdmin
6193
- * @name GetAiAuditLogs
6194
- * @summary Get paginated audit logs
6195
- * @request GET:/api/ai/admin/audit-logs
6062
+ * @tags AiAccess
6063
+ * @name GetAiAccess
6064
+ * @summary Get whether AI is enabled for the current user's account
6065
+ * @request GET:/api/ai/access
6196
6066
  * @secure
6197
- * @response `200` `AiAuditLogPaginated` OK
6067
+ * @response `200` `AiEnabled` OK
6198
6068
  */
6199
- getAiAuditLogs: (query?: {
6200
- eventType?: AiAuditEventType;
6201
- /** @format uuid */
6202
- requestId?: string;
6203
- /** @format uuid */
6204
- userId?: string;
6205
- /** @format uuid */
6206
- conversationId?: string;
6207
- blockedOnly?: boolean;
6208
- /** @format date-time */
6209
- startDate?: string;
6210
- /** @format date-time */
6211
- endDate?: string;
6212
- /** @format int32 */
6213
- pageSize?: number;
6214
- /** @format int32 */
6215
- pageNumber?: number;
6216
- sortBy?: string;
6217
- sortDirection?: string;
6218
- }, params?: RequestParams) => Promise<AxiosResponse<AiAuditLogPaginated, any, {}>>;
6069
+ getAiAccess: (params?: RequestParams) => Promise<AxiosResponse<AiEnabled, any, {}>>;
6219
6070
  /**
6220
6071
  * No description
6221
6072
  *
6222
- * @tags AiAdmin
6223
- * @name GetAiRequestLifecycle
6224
- * @summary Get the full event lifecycle of a single AI request
6225
- * @request GET:/api/ai/admin/audit-logs/request/{requestId}
6073
+ * @tags AiAccount
6074
+ * @name GetAccountAiEnabled
6075
+ * @summary Get whether AI is enabled for an account (SuperAdmin only)
6076
+ * @request GET:/api/ai/accounts/{accountId}/ai-enabled
6226
6077
  * @secure
6227
- * @response `200` `(AiAuditLog)[]` OK
6078
+ * @response `200` `AiEnabled` OK
6228
6079
  */
6229
- getAiRequestLifecycle: (requestId: string, params?: RequestParams) => Promise<AxiosResponse<AiAuditLog[], any, {}>>;
6080
+ getAccountAiEnabled: (accountId: string, params?: RequestParams) => Promise<AxiosResponse<AiEnabled, any, {}>>;
6230
6081
  /**
6231
6082
  * No description
6232
6083
  *
6233
- * @tags AiAdmin
6234
- * @name GetAiAuditConversations
6235
- * @summary List conversations with their audit roll-up origin user, turns, status, tokens
6236
- * @request GET:/api/ai/admin/audit-conversations
6084
+ * @tags AiAccount
6085
+ * @name SetAccountAiEnabled
6086
+ * @summary Enable or disable AI for an account (SuperAdmin only)
6087
+ * @request PUT:/api/ai/accounts/{accountId}/ai-enabled
6237
6088
  * @secure
6238
- * @response `200` `AiConversationAuditSummaryPaginated` OK
6089
+ * @response `204` `void` No Content
6239
6090
  */
6240
- getAiAuditConversations: (query?: {
6241
- searchText?: string;
6242
- /** @format date-time */
6243
- startDate?: string;
6244
- /** @format date-time */
6245
- endDate?: string;
6246
- /** @format int32 */
6247
- pageSize?: number;
6248
- /** @format int32 */
6249
- pageNumber?: number;
6250
- sortBy?: string;
6251
- sortDirection?: string;
6252
- }, params?: RequestParams) => Promise<AxiosResponse<AiConversationAuditSummaryPaginated, any, {}>>;
6091
+ setAccountAiEnabled: (accountId: string, data: SetAiEnabledRequest, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
6253
6092
  /**
6254
6093
  * No description
6255
6094
  *
6256
- * @tags AiAdmin
6257
- * @name GetAiAdminStats
6258
- * @summary Get AI admin dashboard stats
6259
- * @request GET:/api/ai/admin/stats
6095
+ * @tags AiAccountSettings
6096
+ * @name GetAiAccountSettings
6097
+ * @summary Get account AI settings
6098
+ * @request GET:/api/ai/account-settings
6260
6099
  * @secure
6261
- * @response `200` `AiAdminStats` OK
6100
+ * @response `200` `AiAccountSettings` OK
6262
6101
  */
6263
- getAiAdminStats: (query?: {
6264
- /** @format date-time */
6265
- startDate?: string;
6266
- /** @format date-time */
6267
- endDate?: string;
6268
- }, params?: RequestParams) => Promise<AxiosResponse<AiAdminStats, any, {}>>;
6102
+ getAiAccountSettings: (params?: RequestParams) => Promise<AxiosResponse<AiAccountSettings, any, {}>>;
6269
6103
  /**
6270
6104
  * No description
6271
6105
  *
6272
- * @tags AiAdmin
6273
- * @name GetAiConfigChanges
6274
- * @summary Get the AI configuration change history (who changed prompts, guardrails, fields, sources)
6275
- * @request GET:/api/ai/admin/config-changes
6106
+ * @tags AiAccountSettings
6107
+ * @name UpdateAiAccountSettings
6108
+ * @summary Update account AI settings
6109
+ * @request PUT:/api/ai/account-settings
6276
6110
  * @secure
6277
- * @response `200` `AiConfigChangeLogPaginated` OK
6111
+ * @response `200` `AiAccountSettings` OK
6112
+ * @response `400` `ProblemDetails` Bad Request
6278
6113
  */
6279
- getAiConfigChanges: (query?: {
6280
- entityType?: AiConfigEntityType;
6281
- /** @format uuid */
6282
- entityId?: string;
6283
- /** @format uuid */
6284
- actorUserId?: string;
6285
- action?: AiConfigChangeAction;
6286
- /** @format date-time */
6287
- startDate?: string;
6288
- /** @format date-time */
6289
- endDate?: string;
6290
- /** @format int32 */
6291
- pageSize?: number;
6292
- /** @format int32 */
6293
- pageNumber?: number;
6294
- sortBy?: string;
6295
- sortDirection?: string;
6296
- }, params?: RequestParams) => Promise<AxiosResponse<AiConfigChangeLogPaginated, any, {}>>;
6114
+ updateAiAccountSettings: (data: AiAccountSettingsRequest, params?: RequestParams) => Promise<AxiosResponse<AiAccountSettings, any, {}>>;
6297
6115
  /**
6298
6116
  * No description
6299
6117
  *
6300
6118
  * @tags AiAdminPrompt
6301
6119
  * @name GetAiPrompts
6302
6120
  * @summary Get all prompts
6303
- * @request GET:/api/ai/admin/prompts
6121
+ * @request GET:/api/ai/prompts
6304
6122
  * @secure
6305
6123
  * @response `200` `(AiPrompt)[]` OK
6306
6124
  */
@@ -6311,7 +6129,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6311
6129
  * @tags AiAdminPrompt
6312
6130
  * @name CreateAiPrompt
6313
6131
  * @summary Create custom prompt
6314
- * @request POST:/api/ai/admin/prompts
6132
+ * @request POST:/api/ai/prompts
6315
6133
  * @secure
6316
6134
  * @response `201` `AiPrompt` Created
6317
6135
  * @response `400` `ProblemDetails` Bad Request
@@ -6323,7 +6141,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6323
6141
  * @tags AiAdminPrompt
6324
6142
  * @name GetAiPrompt
6325
6143
  * @summary Get prompt by ID
6326
- * @request GET:/api/ai/admin/prompts/{id}
6144
+ * @request GET:/api/ai/prompts/{id}
6327
6145
  * @secure
6328
6146
  * @response `200` `AiPrompt` OK
6329
6147
  * @response `404` `ProblemDetails` Not Found
@@ -6335,7 +6153,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6335
6153
  * @tags AiAdminPrompt
6336
6154
  * @name UpdateAiPrompt
6337
6155
  * @summary Update prompt
6338
- * @request PUT:/api/ai/admin/prompts/{id}
6156
+ * @request PUT:/api/ai/prompts/{id}
6339
6157
  * @secure
6340
6158
  * @response `200` `AiPrompt` OK
6341
6159
  * @response `400` `ProblemDetails` Bad Request
@@ -6348,7 +6166,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6348
6166
  * @tags AiAdminPrompt
6349
6167
  * @name DeleteAiPrompt
6350
6168
  * @summary Delete prompt
6351
- * @request DELETE:/api/ai/admin/prompts/{id}
6169
+ * @request DELETE:/api/ai/prompts/{id}
6352
6170
  * @secure
6353
6171
  * @response `204` `void` No Content
6354
6172
  * @response `400` `ProblemDetails` Bad Request
@@ -6361,7 +6179,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6361
6179
  * @tags AiAdminPrompt
6362
6180
  * @name ToggleAiPrompt
6363
6181
  * @summary Toggle prompt active/inactive
6364
- * @request PATCH:/api/ai/admin/prompts/{id}/toggle
6182
+ * @request PATCH:/api/ai/prompts/{id}/toggle
6365
6183
  * @secure
6366
6184
  * @response `200` `AiPrompt` OK
6367
6185
  * @response `404` `ProblemDetails` Not Found
@@ -6373,7 +6191,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6373
6191
  * @tags AiAdminPrompt
6374
6192
  * @name GenerateAiSystemPrompt
6375
6193
  * @summary Generate a system prompt from description
6376
- * @request POST:/api/ai/admin/prompts/generate
6194
+ * @request POST:/api/ai/prompts/generate
6377
6195
  * @secure
6378
6196
  * @response `200` `GenerateSystemPrompt` OK
6379
6197
  * @response `400` `ProblemDetails` Bad Request
@@ -6383,20 +6201,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6383
6201
  * No description
6384
6202
  *
6385
6203
  * @tags AiAdminPrompt
6386
- * @name GetSupportedModels
6204
+ * @name GetAiSupportedModels
6387
6205
  * @summary Get supported LLM models
6388
- * @request GET:/api/ai/admin/prompts/supported-models
6206
+ * @request GET:/api/ai/prompts/supported-models
6389
6207
  * @secure
6390
6208
  * @response `200` `(SupportedModel)[]` OK
6391
6209
  */
6392
- getSupportedModels: (params?: RequestParams) => Promise<AxiosResponse<SupportedModel[], any, {}>>;
6210
+ getAiSupportedModels: (params?: RequestParams) => Promise<AxiosResponse<SupportedModel[], any, {}>>;
6393
6211
  /**
6394
6212
  * No description
6395
6213
  *
6396
6214
  * @tags AiAdminSettings
6397
6215
  * @name GetAiAdminSettings
6398
6216
  * @summary Get global AI settings
6399
- * @request GET:/api/ai/admin/settings
6217
+ * @request GET:/api/ai/settings
6400
6218
  * @secure
6401
6219
  * @response `200` `AiAdminSettings` OK
6402
6220
  */
@@ -6407,19 +6225,136 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6407
6225
  * @tags AiAdminSettings
6408
6226
  * @name UpdateAiAdminSettings
6409
6227
  * @summary Update global AI settings
6410
- * @request PUT:/api/ai/admin/settings
6228
+ * @request PUT:/api/ai/settings
6411
6229
  * @secure
6412
6230
  * @response `200` `AiAdminSettings` OK
6413
6231
  * @response `400` `ProblemDetails` Bad Request
6414
6232
  */
6415
6233
  updateAiAdminSettings: (data: AiAdminSettingsRequest, params?: RequestParams) => Promise<AxiosResponse<AiAdminSettings, any, {}>>;
6234
+ /**
6235
+ * No description
6236
+ *
6237
+ * @tags AiAudit
6238
+ * @name GetAiAuditLogs
6239
+ * @summary Get paginated AI audit logs (own account, or any/all accounts for SuperAdmin)
6240
+ * @request GET:/api/ai/audit-logs
6241
+ * @secure
6242
+ * @response `200` `AiAuditLogPaginated` OK
6243
+ */
6244
+ getAiAuditLogs: (query?: {
6245
+ /** @format uuid */
6246
+ accountId?: string;
6247
+ eventType?: AiAuditEventType;
6248
+ /** @format uuid */
6249
+ requestId?: string;
6250
+ /** @format uuid */
6251
+ userId?: string;
6252
+ /** @format uuid */
6253
+ conversationId?: string;
6254
+ blockedOnly?: boolean;
6255
+ /** @format date-time */
6256
+ startDate?: string;
6257
+ /** @format date-time */
6258
+ endDate?: string;
6259
+ /** @format int32 */
6260
+ pageSize?: number;
6261
+ /** @format int32 */
6262
+ pageNumber?: number;
6263
+ sortBy?: string;
6264
+ sortDirection?: string;
6265
+ }, params?: RequestParams) => Promise<AxiosResponse<AiAuditLogPaginated, any, {}>>;
6266
+ /**
6267
+ * No description
6268
+ *
6269
+ * @tags AiAudit
6270
+ * @name GetAiRequestLifecycle
6271
+ * @summary Get the full event lifecycle of a single AI request
6272
+ * @request GET:/api/ai/audit-logs/request/{requestId}
6273
+ * @secure
6274
+ * @response `200` `(AiAuditLog)[]` OK
6275
+ */
6276
+ getAiRequestLifecycle: (requestId: string, query?: {
6277
+ /** @format uuid */
6278
+ accountId?: string;
6279
+ }, params?: RequestParams) => Promise<AxiosResponse<AiAuditLog[], any, {}>>;
6280
+ /**
6281
+ * No description
6282
+ *
6283
+ * @tags AiAudit
6284
+ * @name GetAiAuditConversations
6285
+ * @summary List conversations with their audit roll-up — origin user, turns, status, tokens
6286
+ * @request GET:/api/ai/audit-conversations
6287
+ * @secure
6288
+ * @response `200` `AiConversationAuditSummaryPaginated` OK
6289
+ */
6290
+ getAiAuditConversations: (query?: {
6291
+ /** @format uuid */
6292
+ accountId?: string;
6293
+ searchText?: string;
6294
+ /** @format date-time */
6295
+ startDate?: string;
6296
+ /** @format date-time */
6297
+ endDate?: string;
6298
+ /** @format int32 */
6299
+ pageSize?: number;
6300
+ /** @format int32 */
6301
+ pageNumber?: number;
6302
+ sortBy?: string;
6303
+ sortDirection?: string;
6304
+ }, params?: RequestParams) => Promise<AxiosResponse<AiConversationAuditSummaryPaginated, any, {}>>;
6305
+ /**
6306
+ * No description
6307
+ *
6308
+ * @tags AiAudit
6309
+ * @name GetAiStats
6310
+ * @summary Get AI dashboard stats (own account, or any/all accounts for SuperAdmin)
6311
+ * @request GET:/api/ai/stats
6312
+ * @secure
6313
+ * @response `200` `AiAdminStats` OK
6314
+ */
6315
+ getAiStats: (query?: {
6316
+ /** @format uuid */
6317
+ accountId?: string;
6318
+ /** @format date-time */
6319
+ startDate?: string;
6320
+ /** @format date-time */
6321
+ endDate?: string;
6322
+ }, params?: RequestParams) => Promise<AxiosResponse<AiAdminStats, any, {}>>;
6323
+ /**
6324
+ * No description
6325
+ *
6326
+ * @tags AiAudit
6327
+ * @name GetAiConfigChanges
6328
+ * @summary Get the AI configuration change history (who changed prompts, guardrails, fields, sources)
6329
+ * @request GET:/api/ai/config-changes
6330
+ * @secure
6331
+ * @response `200` `AuditLogEntryPaginated` OK
6332
+ */
6333
+ getAiConfigChanges: (query?: {
6334
+ /** @format uuid */
6335
+ accountId?: string;
6336
+ /** @format uuid */
6337
+ entityId?: string;
6338
+ /** @format uuid */
6339
+ actorUserId?: string;
6340
+ /** @format date-time */
6341
+ startDate?: string;
6342
+ /** @format date-time */
6343
+ endDate?: string;
6344
+ /** @format int32 */
6345
+ pageSize?: number;
6346
+ /** @format int32 */
6347
+ pageNumber?: number;
6348
+ sortBy?: string;
6349
+ sortDirection?: string;
6350
+ }, params?: RequestParams) => Promise<AxiosResponse<AuditLogEntryPaginated, any, {}>>;
6416
6351
  /**
6417
6352
  * No description
6418
6353
  *
6419
6354
  * @tags AiCanonicalField
6420
6355
  * @name GetAiCanonicalFields
6421
6356
  * @summary Get all canonical fields
6422
- * @request GET:/api/ai/admin/fields
6357
+ * @request GET:/api/ai/canonical-fields
6423
6358
  * @secure
6424
6359
  * @response `200` `(AiCanonicalField)[]` OK
6425
6360
  */
@@ -6430,7 +6365,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6430
6365
  * @tags AiCanonicalField
6431
6366
  * @name CreateAiCanonicalField
6432
6367
  * @summary Create canonical field
6433
- * @request POST:/api/ai/admin/fields
6368
+ * @request POST:/api/ai/canonical-fields
6434
6369
  * @secure
6435
6370
  * @response `201` `AiCanonicalField` Created
6436
6371
  * @response `400` `ProblemDetails` Bad Request
@@ -6442,7 +6377,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6442
6377
  * @tags AiCanonicalField
6443
6378
  * @name GetAiCanonicalField
6444
6379
  * @summary Get canonical field by ID
6445
- * @request GET:/api/ai/admin/fields/{id}
6380
+ * @request GET:/api/ai/canonical-fields/{id}
6446
6381
  * @secure
6447
6382
  * @response `200` `AiCanonicalField` OK
6448
6383
  * @response `404` `ProblemDetails` Not Found
@@ -6454,7 +6389,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6454
6389
  * @tags AiCanonicalField
6455
6390
  * @name UpdateAiCanonicalField
6456
6391
  * @summary Update canonical field
6457
- * @request PUT:/api/ai/admin/fields/{id}
6392
+ * @request PUT:/api/ai/canonical-fields/{id}
6458
6393
  * @secure
6459
6394
  * @response `200` `AiCanonicalField` OK
6460
6395
  * @response `400` `ProblemDetails` Bad Request
@@ -6467,7 +6402,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6467
6402
  * @tags AiCanonicalField
6468
6403
  * @name DeleteAiCanonicalField
6469
6404
  * @summary Delete canonical field
6470
- * @request DELETE:/api/ai/admin/fields/{id}
6405
+ * @request DELETE:/api/ai/canonical-fields/{id}
6471
6406
  * @secure
6472
6407
  * @response `204` `void` No Content
6473
6408
  * @response `404` `ProblemDetails` Not Found
@@ -6479,7 +6414,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6479
6414
  * @tags AiCanonicalField
6480
6415
  * @name ToggleAiCanonicalField
6481
6416
  * @summary Toggle canonical field active/inactive
6482
- * @request PATCH:/api/ai/admin/fields/{id}/toggle
6417
+ * @request PATCH:/api/ai/canonical-fields/{id}/toggle
6483
6418
  * @secure
6484
6419
  * @response `200` `AiCanonicalField` OK
6485
6420
  * @response `404` `ProblemDetails` Not Found
@@ -6491,7 +6426,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6491
6426
  * @tags AiChat
6492
6427
  * @name AiChat
6493
6428
  * @summary Send AI chat message
6494
- * @request POST:/api/ai/chat
6429
+ * @request POST:/api/ai/chats
6495
6430
  * @secure
6496
6431
  * @response `200` `AiChat` OK
6497
6432
  * @response `400` `ProblemDetails` Bad Request
@@ -6515,6 +6450,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6515
6450
  pageNumber?: number;
6516
6451
  sortBy?: string;
6517
6452
  sortDirection?: string;
6453
+ /** @format uuid */
6454
+ loanId?: string;
6518
6455
  }, params?: RequestParams) => Promise<AxiosResponse<AiConversationListItemPaginated, any, {}>>;
6519
6456
  /**
6520
6457
  * No description
@@ -6608,7 +6545,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6608
6545
  * @tags AiConversationAdmin
6609
6546
  * @name GetAiAccountConversations
6610
6547
  * @summary List AI conversations across the account, optionally filtered by user (admin supervision)
6611
- * @request GET:/api/ai/admin/conversations
6548
+ * @request GET:/api/ai/conversations/all
6612
6549
  * @secure
6613
6550
  * @response `200` `AiConversationListItemPaginated` OK
6614
6551
  */
@@ -6628,7 +6565,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6628
6565
  * @tags AiConversationAdmin
6629
6566
  * @name GetAiAccountConversation
6630
6567
  * @summary Get an account conversation's detail (admin supervision)
6631
- * @request GET:/api/ai/admin/conversations/{id}
6568
+ * @request GET:/api/ai/conversations/all/{id}
6632
6569
  * @secure
6633
6570
  * @response `200` `AiConversationDetail` OK
6634
6571
  * @response `404` `ProblemDetails` Not Found
@@ -6640,7 +6577,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6640
6577
  * @tags AiConversationAdmin
6641
6578
  * @name GetAiAccountConversationMessages
6642
6579
  * @summary Get an account conversation's messages (admin supervision)
6643
- * @request GET:/api/ai/admin/conversations/{id}/messages
6580
+ * @request GET:/api/ai/conversations/all/{id}/messages
6644
6581
  * @secure
6645
6582
  * @response `200` `AiChatMessagePaginated` OK
6646
6583
  * @response `404` `ProblemDetails` Not Found
@@ -6659,7 +6596,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6659
6596
  * @tags AiGuardrail
6660
6597
  * @name GetAiGuardrails
6661
6598
  * @summary Get all guardrails
6662
- * @request GET:/api/ai/admin/guardrails
6599
+ * @request GET:/api/ai/guardrails
6663
6600
  * @secure
6664
6601
  * @response `200` `(AiGuardrail)[]` OK
6665
6602
  */
@@ -6670,7 +6607,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6670
6607
  * @tags AiGuardrail
6671
6608
  * @name CreateAiGuardrail
6672
6609
  * @summary Create custom guardrail
6673
- * @request POST:/api/ai/admin/guardrails
6610
+ * @request POST:/api/ai/guardrails
6674
6611
  * @secure
6675
6612
  * @response `201` `AiGuardrail` Created
6676
6613
  * @response `400` `ProblemDetails` Bad Request
@@ -6682,7 +6619,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6682
6619
  * @tags AiGuardrail
6683
6620
  * @name GetAiGuardrail
6684
6621
  * @summary Get guardrail by ID
6685
- * @request GET:/api/ai/admin/guardrails/{id}
6622
+ * @request GET:/api/ai/guardrails/{id}
6686
6623
  * @secure
6687
6624
  * @response `200` `AiGuardrail` OK
6688
6625
  * @response `404` `ProblemDetails` Not Found
@@ -6694,7 +6631,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6694
6631
  * @tags AiGuardrail
6695
6632
  * @name UpdateAiGuardrail
6696
6633
  * @summary Update guardrail
6697
- * @request PUT:/api/ai/admin/guardrails/{id}
6634
+ * @request PUT:/api/ai/guardrails/{id}
6698
6635
  * @secure
6699
6636
  * @response `200` `AiGuardrail` OK
6700
6637
  * @response `400` `ProblemDetails` Bad Request
@@ -6707,7 +6644,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6707
6644
  * @tags AiGuardrail
6708
6645
  * @name DeleteAiGuardrail
6709
6646
  * @summary Delete guardrail
6710
- * @request DELETE:/api/ai/admin/guardrails/{id}
6647
+ * @request DELETE:/api/ai/guardrails/{id}
6711
6648
  * @secure
6712
6649
  * @response `204` `void` No Content
6713
6650
  * @response `400` `ProblemDetails` Bad Request
@@ -6720,7 +6657,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6720
6657
  * @tags AiGuardrail
6721
6658
  * @name ToggleAiGuardrail
6722
6659
  * @summary Toggle guardrail enabled/disabled
6723
- * @request PATCH:/api/ai/admin/guardrails/{id}/toggle
6660
+ * @request PATCH:/api/ai/guardrails/{id}/toggle
6724
6661
  * @secure
6725
6662
  * @response `200` `AiGuardrail` OK
6726
6663
  * @response `404` `ProblemDetails` Not Found
@@ -6730,128 +6667,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6730
6667
  * No description
6731
6668
  *
6732
6669
  * @tags AiPrompt
6733
- * @name GetAvailablePrompts
6670
+ * @name GetAiAvailablePrompts
6734
6671
  * @summary Get available prompts for current user
6735
- * @request GET:/api/ai/prompts
6672
+ * @request GET:/api/ai/prompts/available
6736
6673
  * @secure
6737
6674
  * @response `200` `(AiPromptSummary)[]` OK
6738
6675
  */
6739
- getAvailablePrompts: (query?: {
6676
+ getAiAvailablePrompts: (query?: {
6740
6677
  documentType?: string;
6741
6678
  }, params?: RequestParams) => Promise<AxiosResponse<AiPromptSummary[], any, {}>>;
6742
- /**
6743
- * No description
6744
- *
6745
- * @tags AiSuperAdmin
6746
- * @name GetAiAuditLogsCrossAccount
6747
- * @summary Get AI audit logs for a specific account or across all accounts
6748
- * @request GET:/api/ai/superadmin/audit-logs
6749
- * @secure
6750
- * @response `200` `AiAuditLogPaginated` OK
6751
- */
6752
- getAiAuditLogsCrossAccount: (query?: {
6753
- /** @format uuid */
6754
- accountId?: string;
6755
- eventType?: AiAuditEventType;
6756
- /** @format uuid */
6757
- requestId?: string;
6758
- /** @format uuid */
6759
- userId?: string;
6760
- /** @format uuid */
6761
- conversationId?: string;
6762
- blockedOnly?: boolean;
6763
- /** @format date-time */
6764
- startDate?: string;
6765
- /** @format date-time */
6766
- endDate?: string;
6767
- /** @format int32 */
6768
- pageSize?: number;
6769
- /** @format int32 */
6770
- pageNumber?: number;
6771
- sortBy?: string;
6772
- sortDirection?: string;
6773
- }, params?: RequestParams) => Promise<AxiosResponse<AiAuditLogPaginated, any, {}>>;
6774
- /**
6775
- * No description
6776
- *
6777
- * @tags AiSuperAdmin
6778
- * @name GetAiRequestLifecycleCrossAccount
6779
- * @summary Get the full event lifecycle of a single AI request from any account
6780
- * @request GET:/api/ai/superadmin/audit-logs/request/{requestId}
6781
- * @secure
6782
- * @response `200` `(AiAuditLog)[]` OK
6783
- */
6784
- getAiRequestLifecycleCrossAccount: (requestId: string, query?: {
6785
- /** @format uuid */
6786
- accountId?: string;
6787
- }, params?: RequestParams) => Promise<AxiosResponse<AiAuditLog[], any, {}>>;
6788
- /**
6789
- * No description
6790
- *
6791
- * @tags AiSuperAdmin
6792
- * @name GetAiStatsCrossAccount
6793
- * @summary Get AI stats for a specific account or platform-wide
6794
- * @request GET:/api/ai/superadmin/stats
6795
- * @secure
6796
- * @response `200` `AiAdminStats` OK
6797
- */
6798
- getAiStatsCrossAccount: (query?: {
6799
- /** @format uuid */
6800
- accountId?: string;
6801
- /** @format date-time */
6802
- startDate?: string;
6803
- /** @format date-time */
6804
- endDate?: string;
6805
- }, params?: RequestParams) => Promise<AxiosResponse<AiAdminStats, any, {}>>;
6806
- /**
6807
- * No description
6808
- *
6809
- * @tags AiSuperAdmin
6810
- * @name GetAiConfigChangesCrossAccount
6811
- * @summary Get AI configuration change history for a specific account or across all accounts (incl. global defaults)
6812
- * @request GET:/api/ai/superadmin/config-changes
6813
- * @secure
6814
- * @response `200` `AiConfigChangeLogPaginated` OK
6815
- */
6816
- getAiConfigChangesCrossAccount: (query?: {
6817
- /** @format uuid */
6818
- accountId?: string;
6819
- entityType?: AiConfigEntityType;
6820
- /** @format uuid */
6821
- entityId?: string;
6822
- /** @format uuid */
6823
- actorUserId?: string;
6824
- action?: AiConfigChangeAction;
6825
- /** @format date-time */
6826
- startDate?: string;
6827
- /** @format date-time */
6828
- endDate?: string;
6829
- /** @format int32 */
6830
- pageSize?: number;
6831
- /** @format int32 */
6832
- pageNumber?: number;
6833
- sortBy?: string;
6834
- sortDirection?: string;
6835
- }, params?: RequestParams) => Promise<AxiosResponse<AiConfigChangeLogPaginated, any, {}>>;
6836
- /**
6837
- * No description
6838
- *
6839
- * @tags AiSuperAdmin
6840
- * @name SetAccountAiEnabled
6841
- * @summary Enable or disable AI for an account (SuperAdmin only)
6842
- * @request PUT:/api/ai/superadmin/accounts/{accountId}/ai-enabled
6843
- * @secure
6844
- * @response `204` `void` No Content
6845
- * @response `404` `ProblemDetails` Not Found
6846
- */
6847
- setAccountAiEnabled: (accountId: string, data: SetAiEnabledRequest, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
6848
6679
  /**
6849
6680
  * No description
6850
6681
  *
6851
6682
  * @tags AiTokenUsageAdmin
6852
6683
  * @name SearchAiAccountTokenUsage
6853
6684
  * @summary Search accounts by current-month AI token usage and classification
6854
- * @request POST:/api/ai/admin/token-usage/search
6685
+ * @request POST:/api/ai/token-usage/search
6855
6686
  * @secure
6856
6687
  * @response `200` `AiAccountUsageOverviewPaginated` OK
6857
6688
  */
@@ -6869,7 +6700,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6869
6700
  * @tags AiTokenUsageAdmin
6870
6701
  * @name GetAiAccountTokenUsage
6871
6702
  * @summary Get an account's current-month AI token usage
6872
- * @request GET:/api/ai/admin/token-usage/{accountId}
6703
+ * @request GET:/api/ai/token-usage/{accountId}
6873
6704
  * @secure
6874
6705
  * @response `200` `AiTokenBudgetStatus` OK
6875
6706
  */
@@ -6880,7 +6711,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6880
6711
  * @tags AiTokenUsageAdmin
6881
6712
  * @name GetAiAccountTokenUsageHistory
6882
6713
  * @summary Get an account's monthly AI token usage history
6883
- * @request GET:/api/ai/admin/token-usage/{accountId}/history
6714
+ * @request GET:/api/ai/token-usage/{accountId}/history
6884
6715
  * @secure
6885
6716
  * @response `200` `AiTokenUsageWindowPaginated` OK
6886
6717
  */
@@ -6898,7 +6729,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6898
6729
  * @tags AiTokenUsageAdmin
6899
6730
  * @name SetAiAccountTokenLimit
6900
6731
  * @summary Set or raise an account's monthly AI token limit
6901
- * @request PUT:/api/ai/admin/token-usage/{accountId}/limit
6732
+ * @request PUT:/api/ai/token-usage/{accountId}/limit
6902
6733
  * @secure
6903
6734
  * @response `200` `AiTokenBudgetStatus` OK
6904
6735
  * @response `400` `ProblemDetails` Bad Request
@@ -6910,7 +6741,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6910
6741
  * @tags AiUrlSource
6911
6742
  * @name GetAiUrlSources
6912
6743
  * @summary Get all URL sources
6913
- * @request GET:/api/ai/admin/url-sources
6744
+ * @request GET:/api/ai/url-sources
6914
6745
  * @secure
6915
6746
  * @response `200` `(AiUrlSource)[]` OK
6916
6747
  */
@@ -6921,7 +6752,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6921
6752
  * @tags AiUrlSource
6922
6753
  * @name CreateAiUrlSource
6923
6754
  * @summary Create URL source
6924
- * @request POST:/api/ai/admin/url-sources
6755
+ * @request POST:/api/ai/url-sources
6925
6756
  * @secure
6926
6757
  * @response `201` `AiUrlSource` Created
6927
6758
  * @response `400` `ProblemDetails` Bad Request
@@ -6934,7 +6765,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6934
6765
  * @tags AiUrlSource
6935
6766
  * @name GetAiUrlSource
6936
6767
  * @summary Get URL source by ID
6937
- * @request GET:/api/ai/admin/url-sources/{id}
6768
+ * @request GET:/api/ai/url-sources/{id}
6938
6769
  * @secure
6939
6770
  * @response `200` `AiUrlSource` OK
6940
6771
  * @response `404` `ProblemDetails` Not Found
@@ -6946,7 +6777,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6946
6777
  * @tags AiUrlSource
6947
6778
  * @name UpdateAiUrlSource
6948
6779
  * @summary Update URL source
6949
- * @request PUT:/api/ai/admin/url-sources/{id}
6780
+ * @request PUT:/api/ai/url-sources/{id}
6950
6781
  * @secure
6951
6782
  * @response `200` `AiUrlSource` OK
6952
6783
  * @response `400` `ProblemDetails` Bad Request
@@ -6960,7 +6791,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6960
6791
  * @tags AiUrlSource
6961
6792
  * @name DeleteAiUrlSource
6962
6793
  * @summary Delete URL source
6963
- * @request DELETE:/api/ai/admin/url-sources/{id}
6794
+ * @request DELETE:/api/ai/url-sources/{id}
6964
6795
  * @secure
6965
6796
  * @response `204` `void` No Content
6966
6797
  * @response `404` `ProblemDetails` Not Found
@@ -6972,7 +6803,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6972
6803
  * @tags AiUrlSource
6973
6804
  * @name ToggleAiUrlSource
6974
6805
  * @summary Toggle URL source active/inactive
6975
- * @request PATCH:/api/ai/admin/url-sources/{id}/toggle
6806
+ * @request PATCH:/api/ai/url-sources/{id}/toggle
6976
6807
  * @secure
6977
6808
  * @response `200` `AiUrlSource` OK
6978
6809
  * @response `404` `ProblemDetails` Not Found
@@ -7361,12 +7192,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7361
7192
  *
7362
7193
  * @tags ConsumerConnect
7363
7194
  * @name RetryConsumerConnectAssociation
7364
- * @summary Manually retry Consumer Connect association for failed borrowers on a loan. Returns per-borrower results; check individual Success fields for partial failures.
7195
+ * @summary Manually retry Consumer Connect association for failed borrowers on a loan. Set force=true to also re-run borrowers already marked Success. Returns per-borrower results; check individual Success fields for partial failures.
7365
7196
  * @request POST:/api/loans/{loanId}/consumer-connect/retry
7366
7197
  * @secure
7367
7198
  * @response `200` `(ConsumerConnectRetry)[]` OK
7368
7199
  */
7369
- retryConsumerConnectAssociation: (loanId: string, params?: RequestParams) => Promise<AxiosResponse<ConsumerConnectRetry[], any, {}>>;
7200
+ retryConsumerConnectAssociation: (loanId: string, query?: {
7201
+ /** @default false */
7202
+ force?: boolean;
7203
+ }, params?: RequestParams) => Promise<AxiosResponse<ConsumerConnectRetry[], any, {}>>;
7370
7204
  /**
7371
7205
  * No description
7372
7206
  *
@@ -7531,7 +7365,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7531
7365
  * @response `200` `(CustomFieldDefinition)[]` OK
7532
7366
  */
7533
7367
  getCustomFieldDefinitions: (query?: {
7534
- entityType?: GetCustomFieldDefinitionsParamsEntityTypeEnum;
7368
+ entityType?: "Loan";
7535
7369
  }, params?: RequestParams) => Promise<AxiosResponse<CustomFieldDefinition[], any, {}>>;
7536
7370
  /**
7537
7371
  * No description
@@ -7942,6 +7776,34 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7942
7776
  sortBy?: string;
7943
7777
  sortDirection?: string;
7944
7778
  }, params?: RequestParams) => Promise<AxiosResponse<EncompassPackageList, any, {}>>;
7779
+ /**
7780
+ * No description
7781
+ *
7782
+ * @tags Encompass Packages
7783
+ * @name GetLoanPackages
7784
+ * @request GET:/api/los/encompass/eclose/loans/{loanId}/packages
7785
+ * @secure
7786
+ * @response `200` `EncompassPackageList` OK
7787
+ * @response `400` `EncompassError` Bad Request
7788
+ * @response `401` `EncompassError` Unauthorized
7789
+ * @response `403` `EncompassError` Forbidden
7790
+ * @response `500` `EncompassError` Internal Server Error
7791
+ */
7792
+ getLoanPackages: (loanId: string, query?: {
7793
+ status?: string;
7794
+ /**
7795
+ * @format int32
7796
+ * @default 1
7797
+ */
7798
+ page?: number;
7799
+ /**
7800
+ * @format int32
7801
+ * @default 20
7802
+ */
7803
+ pageSize?: number;
7804
+ sortBy?: string;
7805
+ sortDirection?: string;
7806
+ }, params?: RequestParams) => Promise<AxiosResponse<EncompassPackageList, any, {}>>;
7945
7807
  /**
7946
7808
  * No description
7947
7809
  *
@@ -8410,17 +8272,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8410
8272
  * @response `422` `UnprocessableEntity` Unprocessable Content
8411
8273
  */
8412
8274
  updateLoanConsent: (loanId: string, data: JsonPatchDocument, params?: RequestParams) => Promise<AxiosResponse<string, any, {}>>;
8413
- /**
8414
- * No description
8415
- *
8416
- * @tags LegacyLoan
8417
- * @name GetTaskDocumentsByLoan
8418
- * @summary Get Documents
8419
- * @request GET:/api/los/loan/tasks/documents/{loanID}
8420
- * @secure
8421
- * @response `200` `(DocumentData)[]` OK
8422
- */
8423
- getTaskDocumentsByLoan: (loanId: string, params?: RequestParams) => Promise<AxiosResponse<DocumentData[], any, {}>>;
8424
8275
  /**
8425
8276
  * No description
8426
8277
  *
@@ -9026,10 +8877,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9026
8877
  * @summary Download By ID
9027
8878
  * @request GET:/api/loans/{loanId}/documents/{documentId}/download
9028
8879
  * @secure
9029
- * @response `200` `Blob` OK
8880
+ * @response `200` `string` OK
9030
8881
  * @response `404` `ProblemDetails` Not Found
9031
8882
  */
9032
- downloadLoanDocument: (loanId: string, documentId: string, params?: RequestParams) => Promise<AxiosResponse<Blob, any, {}>>;
8883
+ downloadLoanDocument: (loanId: string, documentId: string, params?: RequestParams) => Promise<AxiosResponse<string, any, {}>>;
9033
8884
  /**
9034
8885
  * No description
9035
8886
  *
@@ -10237,7 +10088,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10237
10088
  getPartners: (query?: {
10238
10089
  showAll?: boolean;
10239
10090
  /** @default "Realtor" */
10240
- role?: GetPartnersParamsRoleEnum;
10091
+ role?: "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "SystemAdmin";
10241
10092
  /** @format int32 */
10242
10093
  pageSize?: number;
10243
10094
  /** @format int32 */
@@ -10415,7 +10266,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10415
10266
  * @response `200` `File` OK
10416
10267
  * @response `404` `ProblemDetails` Not Found
10417
10268
  */
10418
- getSamlMetadata: (sSoIntegration: GetSamlMetadataParamsEnum, ssoIntegration: string, params?: RequestParams) => Promise<AxiosResponse<File, any, {}>>;
10269
+ getSamlMetadata: (sSoIntegration: "ConsumerConnect" | "TheBigPOS" | "POSF", ssoIntegration: string, params?: RequestParams) => Promise<AxiosResponse<File, any, {}>>;
10419
10270
  /**
10420
10271
  * No description
10421
10272
  *
@@ -10426,7 +10277,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10426
10277
  * @secure
10427
10278
  * @response `200` `File` OK
10428
10279
  */
10429
- createOrReplaceSamlMetadata: (sSoIntegration: CreateOrReplaceSamlMetadataParamsEnum, ssoIntegration: string, params?: RequestParams) => Promise<AxiosResponse<File, any, {}>>;
10280
+ createOrReplaceSamlMetadata: (sSoIntegration: "ConsumerConnect" | "TheBigPOS" | "POSF", ssoIntegration: string, params?: RequestParams) => Promise<AxiosResponse<File, any, {}>>;
10430
10281
  /**
10431
10282
  * No description
10432
10283
  *