@matech/thebigpos-sdk 2.36.9-rc1 → 2.36.11-aibi-1

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
@@ -22,7 +22,7 @@ export type LoanNameSuffix = "Jr" | "Sr" | "II" | "III" | "IV" | "V" | "VI" | "V
22
22
  export type LoanNamePrefix = "Mr" | "Mrs" | "Ms";
23
23
  export type LoanMilitaryServiceType = "Current" | "RetiredDischargedSeparated" | "NonActivatedNationalGuard" | "SurvivingSpouse";
24
24
  export type LoanMaritalStatus = "Married" | "Separated" | "Unmarried";
25
- export type LoanLogType = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "EConsent";
25
+ export type LoanLogType = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "EConsent" | "SensitiveDataPurge";
26
26
  export type LoanLienPosition = "First" | "Subordinate";
27
27
  export type LoanLiabilityType = "Revolving" | "Installment" | "Open30Day" | "Lease" | "Other";
28
28
  export type LoanLanguagePreference = "English" | "Chinese" | "Korean" | "Spanish" | "Tagalog" | "Vietnamese" | "Other";
@@ -44,12 +44,22 @@ export type LOSStatus = "Unknown" | "Pending" | "Retrying" | "Successful" | "Fai
44
44
  export type FilterType = "DateGreaterThanOrEqualTo" | "DateGreaterThan" | "DateLessThan" | "DateLessThanOrEqualTo" | "DateEquals" | "DateDoesntEqual" | "DateNonEmpty" | "DateEmpty" | "StringContains" | "StringEquals" | "StringNotEmpty" | "StringNotEquals" | "StringNotContains";
45
45
  export type Environment = "Development" | "Staging" | "UAT" | "Production";
46
46
  export type EntityType = "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Realtor";
47
+ export type EncompassLogOutcome = "Success" | "Failure" | "PartialSuccess";
48
+ export type EncompassLogOperationType = "FieldUpdate" | "EConsentUpdate" | "DocumentSync" | "MilestoneUpdate" | "DocumentAttachment" | "General" | "FieldReader";
47
49
  export type DraftType = "NewLoan" | "EditLoan";
48
50
  export type ConsentType = "Econsent" | "CreditAuthorization" | "Tcpa";
51
+ export type ConsentLosSyncStatus = "NotStarted" | "Failed" | "Success";
49
52
  export type BranchType = "Mortgage" | "RealEstate";
50
53
  export type BorrowerType = "Borrower" | "CoBorrower" | "Unknown";
51
54
  export type BorrowerRelationship = "NotApplicable" | "Spouse" | "NonSpouse";
52
55
  export type BillingType = "ClosedLoan" | "LoanOfficer";
56
+ export type AiStructuredDataType = "Table" | "DocumentAnalysis" | "DocumentList";
57
+ export type AiQueryTemplateName = "PipelineSummary" | "LoanDetail" | "LoansClosing" | "StaleLoans" | "LoansByType" | "LoansByOfficer" | "AverageLoanAmount" | "LockedVsUnlocked";
58
+ export type AiPromptCategory = "DocumentAnalysis" | "DataQuery" | "General";
59
+ export type AiIntent = "Greeting" | "Invalid" | "Relevant" | "DocumentList" | "GeneralKnowledge" | "Blocked";
60
+ export type AiGuardrailCategory = "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
61
+ export type AiDisplayHint = "Table" | "SummaryCards" | "RankedList" | "Comparison" | "ExecutiveBrief";
62
+ export type AiAuditEventType = "Error" | "GuardrailBlockedPre" | "GuardrailPassedPre" | "IntentClassified" | "LoanResolvedFromMessage" | "DocumentNotFound" | "GuardrailBlockedPost" | "GuardrailPassedPost" | "DocumentAnalyzed" | "DocumentList" | "DocumentResolutionAmbiguous" | "ResponseGenerated" | "ParametersExtracted" | "QueryExecuted" | "LoanContextNotFound" | "LoanContextLoaded" | "GuardrailBlockedBedrock" | "PromptMatched";
53
63
  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";
54
64
  export interface ASOSettings {
55
65
  enabled: boolean;
@@ -100,7 +110,7 @@ export interface AccountBilling {
100
110
  contractedRate: number;
101
111
  }
102
112
  export interface AccountBillingRequest {
103
- billingType: AccountBillingRequestBillingTypeEnum;
113
+ billingType: "ClosedLoan" | "LoanOfficer";
104
114
  /**
105
115
  * @format double
106
116
  * @min 0
@@ -114,6 +124,7 @@ export interface AccountSettings {
114
124
  smsNumber?: string | null;
115
125
  ssoHostOverride?: string | null;
116
126
  isEarlyAdopter: boolean;
127
+ isAIEnabled: boolean;
117
128
  }
118
129
  export interface AccountSettingsRequest {
119
130
  isSmsEnabled: boolean;
@@ -313,6 +324,197 @@ export interface AffordabilityCalculatorRequest {
313
324
  */
314
325
  annualInsurance: number;
315
326
  }
327
+ export interface AiAdminStats {
328
+ /** @format int32 */
329
+ totalRequests: number;
330
+ /** @format int32 */
331
+ blockedRequests: number;
332
+ /** @format double */
333
+ averageResponseTimeMs: number;
334
+ intentDistribution: Record<string, number>;
335
+ topQueryTemplates: Record<string, number>;
336
+ period: string;
337
+ }
338
+ export interface AiAuditLog {
339
+ /** @format uuid */
340
+ id: string;
341
+ /** @format uuid */
342
+ requestId: string;
343
+ /** @format uuid */
344
+ userId: string;
345
+ eventType: "Error" | "GuardrailBlockedPre" | "GuardrailPassedPre" | "IntentClassified" | "LoanResolvedFromMessage" | "DocumentNotFound" | "GuardrailBlockedPost" | "GuardrailPassedPost" | "DocumentAnalyzed" | "DocumentList" | "DocumentResolutionAmbiguous" | "ResponseGenerated" | "ParametersExtracted" | "QueryExecuted" | "LoanContextNotFound" | "LoanContextLoaded" | "GuardrailBlockedBedrock" | "PromptMatched";
346
+ details?: any;
347
+ /** @format date-time */
348
+ createdAt: string;
349
+ }
350
+ export interface AiAuditLogPaginated {
351
+ rows: AiAuditLog[];
352
+ pagination: Pagination;
353
+ /** @format int64 */
354
+ count: number;
355
+ }
356
+ export interface AiCanonicalField {
357
+ /** @format uuid */
358
+ id: string;
359
+ canonicalName: string;
360
+ displayName: string;
361
+ description: string;
362
+ allowedRoles: string[];
363
+ efPath?: string | null;
364
+ isPii: boolean;
365
+ isActive: boolean;
366
+ dataSource: string;
367
+ isDefault: boolean;
368
+ category?: string | null;
369
+ jsonPropertyName?: string | null;
370
+ textractKey?: string | null;
371
+ textractKeyAliases?: string | null;
372
+ hasAccountOverride: boolean;
373
+ /** @format date-time */
374
+ createdAt: string;
375
+ /** @format date-time */
376
+ updatedAt?: string | null;
377
+ }
378
+ export interface AiChat {
379
+ /** @format uuid */
380
+ conversationId: string;
381
+ /** @format uuid */
382
+ messageId: string;
383
+ response: AiChatBody;
384
+ metadata: AiChatMetadata;
385
+ }
386
+ export interface AiChatBody {
387
+ text: string;
388
+ data?: AiChatStructuredData | null;
389
+ suggestedFollowUps: string[];
390
+ }
391
+ export interface AiChatMessage {
392
+ /** @format uuid */
393
+ id: string;
394
+ userMessage: string;
395
+ assistantResponse: string;
396
+ intent?: AiIntent | null;
397
+ fieldsAccessed?: string[] | null;
398
+ /** @format date-time */
399
+ createdAt: string;
400
+ }
401
+ export interface AiChatMetadata {
402
+ intent: "Greeting" | "Invalid" | "Relevant" | "DocumentList" | "GeneralKnowledge" | "Blocked";
403
+ fieldsAccessed: string[];
404
+ /** @format int64 */
405
+ queryTimeMs: number;
406
+ /** @format int64 */
407
+ llmTimeMs: number;
408
+ wasBlocked: boolean;
409
+ blockedReason?: string | null;
410
+ }
411
+ export interface AiChatRequest {
412
+ /**
413
+ * @minLength 1
414
+ * @maxLength 2000
415
+ */
416
+ message: string;
417
+ /** @format uuid */
418
+ conversationId?: string | null;
419
+ /** @format uuid */
420
+ loanId?: string | null;
421
+ /** @format uuid */
422
+ documentId?: string | null;
423
+ /** @format uuid */
424
+ promptId?: string | null;
425
+ }
426
+ export interface AiChatStructuredData {
427
+ type: "Table" | "DocumentAnalysis" | "DocumentList";
428
+ detectedDocumentType?: string | null;
429
+ columns: string[];
430
+ rows: string[][];
431
+ }
432
+ export interface AiConversationDetail {
433
+ /** @format uuid */
434
+ id: string;
435
+ /** @format date-time */
436
+ createdAt: string;
437
+ /** @format date-time */
438
+ updatedAt?: string | null;
439
+ messages: AiChatMessage[];
440
+ }
441
+ export interface AiConversationListItem {
442
+ /** @format uuid */
443
+ id: string;
444
+ preview: string;
445
+ /** @format int32 */
446
+ messageCount: number;
447
+ /** @format date-time */
448
+ createdAt: string;
449
+ /** @format date-time */
450
+ updatedAt?: string | null;
451
+ }
452
+ export interface AiConversationListItemPaginated {
453
+ rows: AiConversationListItem[];
454
+ pagination: Pagination;
455
+ /** @format int64 */
456
+ count: number;
457
+ }
458
+ export interface AiGuardrail {
459
+ /** @format uuid */
460
+ id: string;
461
+ name: string;
462
+ category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
463
+ description?: string | null;
464
+ keywords: string[];
465
+ responseTemplate: string;
466
+ isDefault: boolean;
467
+ isEnabled: boolean;
468
+ hasAccountOverride: boolean;
469
+ /** @format date-time */
470
+ createdAt: string;
471
+ /** @format date-time */
472
+ updatedAt?: string | null;
473
+ }
474
+ export interface AiPrompt {
475
+ /** @format uuid */
476
+ id: string;
477
+ title: string;
478
+ icon: string;
479
+ slug: string;
480
+ description: string;
481
+ documentTypes: string[];
482
+ applicableGuidelines: string[];
483
+ allowedRoles: string[];
484
+ systemPrompt: string;
485
+ userPromptTemplate: string;
486
+ followUpPrompts: string[];
487
+ /** @format int32 */
488
+ sortOrder: number;
489
+ isDefault: boolean;
490
+ /** @format uuid */
491
+ accountId?: string | null;
492
+ isActive: boolean;
493
+ category?: AiPromptCategory | null;
494
+ queryTemplateName?: AiQueryTemplateName | null;
495
+ displayHint?: AiDisplayHint | null;
496
+ hasAccountOverride: boolean;
497
+ /** @format date-time */
498
+ createdAt: string;
499
+ /** @format date-time */
500
+ updatedAt?: string | null;
501
+ }
502
+ export interface AiPromptSummary {
503
+ /** @format uuid */
504
+ id: string;
505
+ title: string;
506
+ icon: string;
507
+ slug: string;
508
+ description: string;
509
+ documentTypes: string[];
510
+ applicableGuidelines: string[];
511
+ followUpPrompts: string[];
512
+ /** @format int32 */
513
+ sortOrder: number;
514
+ category?: AiPromptCategory | null;
515
+ queryTemplateName?: AiQueryTemplateName | null;
516
+ displayHint?: AiDisplayHint | null;
517
+ }
316
518
  export interface AllowImpersonationRequest {
317
519
  /**
318
520
  * @format email
@@ -635,7 +837,7 @@ export interface CorporateSearchCriteria {
635
837
  isActive?: boolean | null;
636
838
  }
637
839
  export interface CreateAccessScopeRequest {
638
- scopeType: CreateAccessScopeRequestScopeTypeEnum;
840
+ scopeType: "User" | "Branch";
639
841
  /** @format uuid */
640
842
  userId?: string | null;
641
843
  /** @format uuid */
@@ -658,10 +860,76 @@ export interface CreateAccountRequest {
658
860
  */
659
861
  nlmsid: number;
660
862
  settings: AccountSettingsRequest;
661
- environment: CreateAccountRequestEnvironmentEnum;
863
+ environment: "Development" | "Staging" | "UAT" | "Production";
662
864
  losIntegration: LOSIntegration;
663
865
  billingSettings: AccountBillingRequest;
664
866
  }
867
+ export interface CreateAiCanonicalFieldRequest {
868
+ /**
869
+ * @minLength 1
870
+ * @maxLength 200
871
+ */
872
+ canonicalName: string;
873
+ /**
874
+ * @minLength 1
875
+ * @maxLength 200
876
+ */
877
+ displayName: string;
878
+ /** @minLength 1 */
879
+ description: string;
880
+ /** @minItems 1 */
881
+ allowedRoles: string[];
882
+ isPii: boolean;
883
+ /** @minLength 1 */
884
+ dataSource: string;
885
+ textractKey?: string | null;
886
+ textractKeyAliases?: string | null;
887
+ category?: string | null;
888
+ }
889
+ export interface CreateAiGuardrailRequest {
890
+ /**
891
+ * @minLength 1
892
+ * @maxLength 200
893
+ */
894
+ name: string;
895
+ category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
896
+ description?: string | null;
897
+ /** @minItems 1 */
898
+ keywords: string[];
899
+ /** @minLength 1 */
900
+ responseTemplate: string;
901
+ }
902
+ export interface CreateAiPromptRequest {
903
+ /**
904
+ * @minLength 1
905
+ * @maxLength 200
906
+ */
907
+ title: string;
908
+ icon: string;
909
+ /**
910
+ * @minLength 1
911
+ * @maxLength 100
912
+ */
913
+ slug: string;
914
+ /**
915
+ * @minLength 1
916
+ * @maxLength 500
917
+ */
918
+ description: string;
919
+ documentTypes: string[];
920
+ applicableGuidelines: string[];
921
+ allowedRoles: string[];
922
+ /** @minLength 1 */
923
+ systemPrompt: string;
924
+ /** @minLength 1 */
925
+ userPromptTemplate: string;
926
+ followUpPrompts: string[];
927
+ /** @format int32 */
928
+ sortOrder: number;
929
+ category?: AiPromptCategory | null;
930
+ queryTemplateName?: AiQueryTemplateName | null;
931
+ displayHint?: AiDisplayHint | null;
932
+ }
665
933
  export interface CreateBranchRequest {
666
934
  /**
667
935
  * @minLength 1
@@ -688,7 +956,7 @@ export interface CreateDocumentTemplateRequest {
688
956
  export interface CreateGroupMemberRequest {
689
957
  /** @format uuid */
690
958
  userId: string;
691
- loanRole: CreateGroupMemberRequestLoanRoleEnum;
959
+ loanRole: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
692
960
  }
693
961
  export interface CreateInviteRequest {
694
962
  /** @minLength 1 */
@@ -699,7 +967,7 @@ export interface CreateInviteRequest {
699
967
  emailAddress: string;
700
968
  phoneNumber?: string | null;
701
969
  /** @deprecated */
702
- relationship: CreateInviteRequestRelationshipEnum;
970
+ relationship: "NotApplicable" | "Spouse" | "NonSpouse";
703
971
  loanID: string;
704
972
  route?: string | null;
705
973
  /** @format uuid */
@@ -721,7 +989,7 @@ export interface CreateLoanImportRequest {
721
989
  * @minLength 1
722
990
  */
723
991
  startDate: string;
724
- importMode: CreateLoanImportRequestImportModeEnum;
992
+ importMode: "All" | "NewOnly" | "UpdateOnly";
725
993
  }
726
994
  export interface CreateSession {
727
995
  sessionId: string;
@@ -739,7 +1007,7 @@ export interface CreateUserDeviceRequest {
739
1007
  token: string;
740
1008
  }
741
1009
  export interface CreateUserDraft {
742
- loanRole: CreateUserDraftLoanRoleEnum;
1010
+ loanRole: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
743
1011
  }
744
1012
  export interface CreateUserGroupRequest {
745
1013
  /**
@@ -1031,7 +1299,7 @@ export interface Draft {
1031
1299
  siteConfiguration: SiteConfigurationReduced;
1032
1300
  /** @format uuid */
1033
1301
  loanID?: string | null;
1034
- type: DraftTypeEnum;
1302
+ type: "NewLoan" | "EditLoan";
1035
1303
  isCoBorrower: boolean;
1036
1304
  }
1037
1305
  export interface DraftContent {
@@ -1049,7 +1317,7 @@ export interface DraftContent {
1049
1317
  siteConfiguration: SiteConfigurationReduced;
1050
1318
  /** @format uuid */
1051
1319
  loanID?: string | null;
1052
- type: DraftContentTypeEnum;
1320
+ type: "NewLoan" | "EditLoan";
1053
1321
  isCoBorrower: boolean;
1054
1322
  applicationPayload: any;
1055
1323
  }
@@ -1133,6 +1401,17 @@ export interface EncompassError {
1133
1401
  message: string;
1134
1402
  details?: string[] | null;
1135
1403
  }
1404
+ export interface EncompassLogSearchCriteria {
1405
+ searchText?: string | null;
1406
+ operationTypes?: EncompassLogOperationType[] | null;
1407
+ outcomes?: EncompassLogOutcome[] | null;
1408
+ /** @format date-time */
1409
+ createdFrom?: string | null;
1410
+ /** @format date-time */
1411
+ createdTo?: string | null;
1412
+ /** @format int32 */
1413
+ httpStatusCode?: number | null;
1414
+ }
1136
1415
  export interface EncompassPackageItem {
1137
1416
  packageId: string;
1138
1417
  status: string;
@@ -1151,6 +1430,31 @@ export interface EncompassPackageList {
1151
1430
  /** @format int32 */
1152
1431
  totalPages: number;
1153
1432
  }
1433
+ export interface EncompassRequestLog {
1434
+ /** @format uuid */
1435
+ id: string;
1436
+ losId?: string | null;
1437
+ /** @format uuid */
1438
+ accountId: string;
1439
+ operationType: "FieldUpdate" | "EConsentUpdate" | "DocumentSync" | "MilestoneUpdate" | "DocumentAttachment" | "General" | "FieldReader";
1440
+ outcome: "Success" | "Failure" | "PartialSuccess";
1441
+ message: string;
1442
+ endpoint?: string | null;
1443
+ httpMethod?: string | null;
1444
+ /** @format int32 */
1445
+ httpStatusCode?: number | null;
1446
+ /** @format int64 */
1447
+ durationMs?: number | null;
1448
+ context?: any;
1449
+ /** @format date-time */
1450
+ createdAt: string;
1451
+ }
1452
+ export interface EncompassRequestLogPaginated {
1453
+ rows: EncompassRequestLog[];
1454
+ pagination: Pagination;
1455
+ /** @format int64 */
1456
+ count: number;
1457
+ }
1154
1458
  export interface Error {
1155
1459
  message: string;
1156
1460
  }
@@ -1189,6 +1493,10 @@ export interface FileWithBytes {
1189
1493
  mimeType?: string | null;
1190
1494
  extension?: string | null;
1191
1495
  }
1496
+ export interface ForcePasswordReset {
1497
+ forcePasswordReset: boolean;
1498
+ email: string;
1499
+ }
1192
1500
  export interface Form {
1193
1501
  /** @format date-time */
1194
1502
  createdAt?: string | null;
@@ -1346,7 +1654,7 @@ export interface FusionFieldDisplay {
1346
1654
  fieldValue: string;
1347
1655
  }
1348
1656
  export interface FusionReportFilter {
1349
- filterType: FusionReportFilterFilterTypeEnum;
1657
+ filterType: "DateGreaterThanOrEqualTo" | "DateGreaterThan" | "DateLessThan" | "DateLessThanOrEqualTo" | "DateEquals" | "DateDoesntEqual" | "DateNonEmpty" | "DateEmpty" | "StringContains" | "StringEquals" | "StringNotEmpty" | "StringNotEquals" | "StringNotContains";
1350
1658
  targetField: string;
1351
1659
  targetValue: string;
1352
1660
  }
@@ -1460,7 +1768,7 @@ export interface GuidPatchOperation {
1460
1768
  from?: string | null;
1461
1769
  }
1462
1770
  export interface IPAddress {
1463
- addressFamily: IpAddressAddressFamilyEnum;
1771
+ 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";
1464
1772
  /** @format int64 */
1465
1773
  scopeId: number;
1466
1774
  isIPv6Multicast: boolean;
@@ -1699,6 +2007,8 @@ export interface Loan {
1699
2007
  lastLosDocumentsSyncDate?: string | null;
1700
2008
  isLocked: boolean;
1701
2009
  isLockedFromEditing: boolean;
2010
+ /** @format date-time */
2011
+ sensitiveDataPurgedOn?: string | null;
1702
2012
  excludeFromAutoTaskReminders?: boolean | null;
1703
2013
  loanSettings?: LoanSettings | null;
1704
2014
  loanOfficer?: LoanOfficer | null;
@@ -2620,7 +2930,7 @@ export interface LoanContact {
2620
2930
  email?: string | null;
2621
2931
  phone?: string | null;
2622
2932
  companyName?: string | null;
2623
- role: LoanContactRoleEnum;
2933
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
2624
2934
  }
2625
2935
  export interface LoanContactList {
2626
2936
  email: string;
@@ -2645,6 +2955,8 @@ export interface LoanDocument {
2645
2955
  losStatus: string;
2646
2956
  contents?: string | null;
2647
2957
  failoverDocumentPath?: string | null;
2958
+ /** @format date-time */
2959
+ sensitiveDataPurgedOn?: string | null;
2648
2960
  }
2649
2961
  export interface LoanDocumentSearch {
2650
2962
  /** @format date-time */
@@ -2663,6 +2975,8 @@ export interface LoanDocumentSearch {
2663
2975
  losStatus: string;
2664
2976
  contents?: string | null;
2665
2977
  failoverDocumentPath?: string | null;
2978
+ /** @format date-time */
2979
+ sensitiveDataPurgedOn?: string | null;
2666
2980
  }
2667
2981
  export interface LoanDocumentSearchCriteria {
2668
2982
  searchText?: string | null;
@@ -2741,13 +3055,13 @@ export interface LoanImport {
2741
3055
  /** @format int32 */
2742
3056
  importedCount: number;
2743
3057
  statusMessage?: string | null;
2744
- status: LoanImportStatusEnum;
2745
- importMode: LoanImportImportModeEnum;
3058
+ status: "WaitingProcess" | "InProgress" | "Completed" | "Failed" | "Cancelled";
3059
+ importMode: "All" | "NewOnly" | "UpdateOnly";
2746
3060
  /** @format date-time */
2747
3061
  createdAt?: string | null;
2748
3062
  }
2749
3063
  export interface LoanImportLog {
2750
- level: LoanImportLogLevelEnum;
3064
+ level: "None" | "Info" | "Warning" | "Error";
2751
3065
  message: string;
2752
3066
  /** @format date-time */
2753
3067
  createdAt: string;
@@ -2802,8 +3116,8 @@ export interface LoanListPaginated {
2802
3116
  export interface LoanLog {
2803
3117
  /** @format uuid */
2804
3118
  id: string;
2805
- level: LoanLogLevelEnum;
2806
- type: LoanLogTypeEnum;
3119
+ level: "None" | "Info" | "Warning" | "Error";
3120
+ type: "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "EConsent" | "SensitiveDataPurge";
2807
3121
  message: string;
2808
3122
  /** @format date-time */
2809
3123
  createdAt: string;
@@ -3066,7 +3380,7 @@ export interface LoanUser {
3066
3380
  email: string;
3067
3381
  phone?: string | null;
3068
3382
  role: string;
3069
- loanRole: LoanUserLoanRoleEnum;
3383
+ loanRole: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
3070
3384
  isUser: boolean;
3071
3385
  /** @format date-time */
3072
3386
  createdAt: string;
@@ -3673,7 +3987,7 @@ export interface SSOTokenRequest {
3673
3987
  redirectUri: string;
3674
3988
  }
3675
3989
  export interface SamlMetadataRequest {
3676
- ssoIntegration: SamlMetadataRequestSsoIntegrationEnum;
3990
+ ssoIntegration: "ConsumerConnect" | "TheBigPOS" | "POSF";
3677
3991
  }
3678
3992
  export interface SendForgotPasswordRequest {
3679
3993
  /**
@@ -3708,7 +4022,7 @@ export interface SiteConfiguration {
3708
4022
  deletedAt?: string | null;
3709
4023
  /** @format uuid */
3710
4024
  id: string;
3711
- type: SiteConfigurationTypeEnum;
4025
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
3712
4026
  /** @format uuid */
3713
4027
  entityID: string;
3714
4028
  /** @format int32 */
@@ -3902,7 +4216,7 @@ export interface SiteConfigurationByUrl {
3902
4216
  deletedAt?: string | null;
3903
4217
  /** @format uuid */
3904
4218
  id: string;
3905
- type: SiteConfigurationByUrlTypeEnum;
4219
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
3906
4220
  /** @format uuid */
3907
4221
  entityID: string;
3908
4222
  /** @format int32 */
@@ -4113,7 +4427,7 @@ export interface SiteConfigurationForm {
4113
4427
  export interface SiteConfigurationReduced {
4114
4428
  /** @format uuid */
4115
4429
  id: string;
4116
- type: SiteConfigurationReducedTypeEnum;
4430
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4117
4431
  url?: string | null;
4118
4432
  name: string;
4119
4433
  /** @format int64 */
@@ -4130,7 +4444,7 @@ export interface SiteConfigurationRequest {
4130
4444
  entityID: string;
4131
4445
  /** @format int32 */
4132
4446
  entityType: number;
4133
- type: SiteConfigurationRequestTypeEnum;
4447
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4134
4448
  url: string;
4135
4449
  name: string;
4136
4450
  introduction?: string | null;
@@ -4305,7 +4619,7 @@ export interface SiteConfigurationSearchCriteria {
4305
4619
  export interface SiteConfigurationSummary {
4306
4620
  /** @format uuid */
4307
4621
  id: string;
4308
- type: SiteConfigurationSummaryTypeEnum;
4622
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4309
4623
  url?: string | null;
4310
4624
  name: string;
4311
4625
  /** @format int64 */
@@ -4521,20 +4835,6 @@ export interface TokenChallengeRequest {
4521
4835
  siteConfigurationId: string;
4522
4836
  isSupport: boolean;
4523
4837
  }
4524
- export interface TokenNewPasswordChallengeRequest {
4525
- /** @format email */
4526
- username: string;
4527
- /** @minLength 1 */
4528
- sessionId: string;
4529
- /** @minLength 1 */
4530
- newPassword: string;
4531
- /**
4532
- * @format uuid
4533
- * @minLength 1
4534
- */
4535
- siteConfigurationId: string;
4536
- isSupport: boolean;
4537
- }
4538
4838
  export interface TokenRequest {
4539
4839
  /** @format email */
4540
4840
  username: string;
@@ -4600,6 +4900,57 @@ export interface UpdateAccountRequest {
4600
4900
  asoSettings?: ASOSettings | null;
4601
4901
  settings: AccountSettingsRequest;
4602
4902
  }
4903
+ export interface UpdateAiCanonicalFieldRequest {
4904
+ /**
4905
+ * @minLength 1
4906
+ * @maxLength 200
4907
+ */
4908
+ displayName: string;
4909
+ /** @minLength 1 */
4910
+ description: string;
4911
+ /** @minItems 1 */
4912
+ allowedRoles: string[];
4913
+ isPii: boolean;
4914
+ }
4915
+ export interface UpdateAiGuardrailRequest {
4916
+ /**
4917
+ * @minLength 1
4918
+ * @maxLength 200
4919
+ */
4920
+ name: string;
4921
+ category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
4922
+ description?: string | null;
4923
+ /** @minItems 1 */
4924
+ keywords: string[];
4925
+ /** @minLength 1 */
4926
+ responseTemplate: string;
4927
+ }
4928
+ export interface UpdateAiPromptRequest {
4929
+ /**
4930
+ * @minLength 1
4931
+ * @maxLength 200
4932
+ */
4933
+ title: string;
4934
+ icon: string;
4935
+ /**
4936
+ * @minLength 1
4937
+ * @maxLength 500
4938
+ */
4939
+ description: string;
4940
+ documentTypes: string[];
4941
+ applicableGuidelines: string[];
4942
+ allowedRoles: string[];
4943
+ /** @minLength 1 */
4944
+ systemPrompt: string;
4945
+ /** @minLength 1 */
4946
+ userPromptTemplate: string;
4947
+ followUpPrompts: string[];
4948
+ /** @format int32 */
4949
+ sortOrder: number;
4950
+ category?: AiPromptCategory | null;
4951
+ queryTemplateName?: AiQueryTemplateName | null;
4952
+ displayHint?: AiDisplayHint | null;
4953
+ }
4603
4954
  export interface UpdateDocumentTemplateRequest {
4604
4955
  /** @minLength 1 */
4605
4956
  htmlBody: string;
@@ -4654,7 +5005,7 @@ export interface UpdateMeRequest {
4654
5005
  email: string;
4655
5006
  title?: string | null;
4656
5007
  forcePasswordReset: boolean;
4657
- mfaEnabled: boolean;
5008
+ mfaEnabled?: boolean | null;
4658
5009
  notificationSettings: UserNotificationSettingsUpdateRequest;
4659
5010
  /** @format uuid */
4660
5011
  preferredLoanOfficerId?: string | null;
@@ -4688,7 +5039,7 @@ export interface UpdateUserRequest {
4688
5039
  /** @format uuid */
4689
5040
  branchId?: string | null;
4690
5041
  forcePasswordReset: boolean;
4691
- mfaEnabled: boolean;
5042
+ mfaEnabled?: boolean | null;
4692
5043
  /** @format uuid */
4693
5044
  preferredLoanOfficerId?: string | null;
4694
5045
  }
@@ -4896,7 +5247,7 @@ export interface UserDevice {
4896
5247
  export interface UserDraft {
4897
5248
  /** @format uuid */
4898
5249
  draftID: string;
4899
- role: UserDraftRoleEnum;
5250
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
4900
5251
  user: User;
4901
5252
  }
4902
5253
  export interface UserDraftPaginated {
@@ -4920,7 +5271,7 @@ export interface UserGroupAccessScope {
4920
5271
  id: string;
4921
5272
  /** @format uuid */
4922
5273
  groupId: string;
4923
- scopeType: UserGroupAccessScopeScopeTypeEnum;
5274
+ scopeType: "User" | "Branch";
4924
5275
  /** @format uuid */
4925
5276
  userId?: string | null;
4926
5277
  /** @format uuid */
@@ -4953,7 +5304,7 @@ export interface UserLoan {
4953
5304
  deletedAt?: string | null;
4954
5305
  loanID: string;
4955
5306
  user: User;
4956
- role: UserLoanRoleEnum;
5307
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
4957
5308
  /** @format int32 */
4958
5309
  borrowerPair?: number | null;
4959
5310
  /** @format int32 */
@@ -4965,9 +5316,10 @@ export interface UserLoanConsent {
4965
5316
  id: string;
4966
5317
  /** @format uuid */
4967
5318
  userLoanID: string;
4968
- type: UserLoanConsentTypeEnum;
5319
+ type: "Econsent" | "CreditAuthorization" | "Tcpa";
4969
5320
  providedConsent: boolean;
4970
5321
  ipAddress?: string | null;
5322
+ losSyncStatus: "NotStarted" | "Failed" | "Success";
4971
5323
  /** @format date-time */
4972
5324
  createdAt: string;
4973
5325
  }
@@ -5099,7 +5451,7 @@ export interface UserSummary {
5099
5451
  id: string;
5100
5452
  name?: string | null;
5101
5453
  email?: string | null;
5102
- role: UserSummaryRoleEnum;
5454
+ role: "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "BranchManager" | "SystemAdmin";
5103
5455
  }
5104
5456
  export interface VerifyPasswordRequest {
5105
5457
  /**
@@ -5132,42 +5484,6 @@ export interface Workflow {
5132
5484
  tileSubtitle: string;
5133
5485
  icon: string;
5134
5486
  }
5135
- export type AccountBillingRequestBillingTypeEnum = "ClosedLoan" | "LoanOfficer";
5136
- export type CreateAccessScopeRequestScopeTypeEnum = "User" | "Branch";
5137
- export type CreateAccountRequestEnvironmentEnum = "Development" | "Staging" | "UAT" | "Production";
5138
- export type CreateGroupMemberRequestLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
5139
- /** @deprecated */
5140
- export type CreateInviteRequestRelationshipEnum = "NotApplicable" | "Spouse" | "NonSpouse";
5141
- export type CreateLoanImportRequestImportModeEnum = "All" | "NewOnly" | "UpdateOnly";
5142
- export type CreateUserDraftLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
5143
- export type DraftTypeEnum = "NewLoan" | "EditLoan";
5144
- export type DraftContentTypeEnum = "NewLoan" | "EditLoan";
5145
- export type FusionReportFilterFilterTypeEnum = "DateGreaterThanOrEqualTo" | "DateGreaterThan" | "DateLessThan" | "DateLessThanOrEqualTo" | "DateEquals" | "DateDoesntEqual" | "DateNonEmpty" | "DateEmpty" | "StringContains" | "StringEquals" | "StringNotEmpty" | "StringNotEquals" | "StringNotContains";
5146
- 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";
5147
- export type LoanContactRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
5148
- export type LoanImportStatusEnum = "WaitingProcess" | "InProgress" | "Completed" | "Failed" | "Cancelled";
5149
- export type LoanImportImportModeEnum = "All" | "NewOnly" | "UpdateOnly";
5150
- export type LoanImportLogLevelEnum = "None" | "Info" | "Warning" | "Error";
5151
- export type LoanLogLevelEnum = "None" | "Info" | "Warning" | "Error";
5152
- export type LoanLogTypeEnum = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "EConsent";
5153
- export type LoanUserLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
5154
- export type SamlMetadataRequestSsoIntegrationEnum = "ConsumerConnect" | "TheBigPOS" | "POSF";
5155
- export type SiteConfigurationTypeEnum = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5156
- export type SiteConfigurationByUrlTypeEnum = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5157
- export type SiteConfigurationReducedTypeEnum = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5158
- export type SiteConfigurationRequestTypeEnum = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5159
- export type SiteConfigurationSummaryTypeEnum = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5160
- export type UserDraftRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
5161
- export type UserGroupAccessScopeScopeTypeEnum = "User" | "Branch";
5162
- export type UserLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
5163
- export type UserLoanConsentTypeEnum = "Econsent" | "CreditAuthorization" | "Tcpa";
5164
- export type UserSummaryRoleEnum = "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "BranchManager" | "SystemAdmin";
5165
- /** @default "Realtor" */
5166
- export type GetPartnersParamsRoleEnum = "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "BranchManager" | "SystemAdmin";
5167
- export type GetSamlMetadataParamsSSoIntegrationEnum = "ConsumerConnect" | "TheBigPOS" | "POSF";
5168
- export type GetSamlMetadataParamsEnum = "ConsumerConnect" | "TheBigPOS" | "POSF";
5169
- export type CreateOrReplaceSamlMetadataParamsSSoIntegrationEnum = "ConsumerConnect" | "TheBigPOS" | "POSF";
5170
- export type CreateOrReplaceSamlMetadataParamsEnum = "ConsumerConnect" | "TheBigPOS" | "POSF";
5171
5487
  import type { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
5172
5488
  export type QueryParamsType = Record<string | number, any>;
5173
5489
  export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
@@ -5213,7 +5529,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
5213
5529
  }
5214
5530
  /**
5215
5531
  * @title The Big POS API
5216
- * @version v2.36.0
5532
+ * @version v2.36.11
5217
5533
  * @termsOfService https://www.thebigpos.com/terms-of-use/
5218
5534
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
5219
5535
  */
@@ -5351,6 +5667,333 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5351
5667
  * @response `422` `ProblemDetails` Client Error
5352
5668
  */
5353
5669
  updateAccountBilling: (id: string, data: AccountBillingRequest, params?: RequestParams) => Promise<AxiosResponse<AccountBilling, any, {}>>;
5670
+ /**
5671
+ * No description
5672
+ *
5673
+ * @tags AiAdmin
5674
+ * @name GetAiAuditLogs
5675
+ * @summary Get paginated audit logs
5676
+ * @request GET:/api/ai/admin/audit-logs
5677
+ * @secure
5678
+ * @response `200` `AiAuditLogPaginated` Success
5679
+ */
5680
+ getAiAuditLogs: (query?: {
5681
+ eventType?: AiAuditEventType;
5682
+ /** @format date-time */
5683
+ startDate?: string;
5684
+ /** @format date-time */
5685
+ endDate?: string;
5686
+ /** @format int32 */
5687
+ pageSize?: number;
5688
+ /** @format int32 */
5689
+ pageNumber?: number;
5690
+ sortBy?: string;
5691
+ sortDirection?: string;
5692
+ }, params?: RequestParams) => Promise<AxiosResponse<AiAuditLogPaginated, any, {}>>;
5693
+ /**
5694
+ * No description
5695
+ *
5696
+ * @tags AiAdmin
5697
+ * @name GetAiAdminStats
5698
+ * @summary Get AI admin dashboard stats
5699
+ * @request GET:/api/ai/admin/stats
5700
+ * @secure
5701
+ * @response `200` `AiAdminStats` Success
5702
+ */
5703
+ getAiAdminStats: (query?: {
5704
+ /** @format date-time */
5705
+ startDate?: string;
5706
+ /** @format date-time */
5707
+ endDate?: string;
5708
+ }, params?: RequestParams) => Promise<AxiosResponse<AiAdminStats, any, {}>>;
5709
+ /**
5710
+ * No description
5711
+ *
5712
+ * @tags AiAdminPrompt
5713
+ * @name GetAiPrompts
5714
+ * @summary Get all prompts
5715
+ * @request GET:/api/ai/admin/prompts
5716
+ * @secure
5717
+ * @response `200` `(AiPrompt)[]` Success
5718
+ */
5719
+ getAiPrompts: (params?: RequestParams) => Promise<AxiosResponse<AiPrompt[], any, {}>>;
5720
+ /**
5721
+ * No description
5722
+ *
5723
+ * @tags AiAdminPrompt
5724
+ * @name CreateAiPrompt
5725
+ * @summary Create custom prompt
5726
+ * @request POST:/api/ai/admin/prompts
5727
+ * @secure
5728
+ * @response `201` `AiPrompt` Created
5729
+ * @response `400` `ProblemDetails` Bad Request
5730
+ */
5731
+ createAiPrompt: (data: CreateAiPromptRequest, params?: RequestParams) => Promise<AxiosResponse<AiPrompt, any, {}>>;
5732
+ /**
5733
+ * No description
5734
+ *
5735
+ * @tags AiAdminPrompt
5736
+ * @name GetAiPrompt
5737
+ * @summary Get prompt by ID
5738
+ * @request GET:/api/ai/admin/prompts/{id}
5739
+ * @secure
5740
+ * @response `200` `AiPrompt` Success
5741
+ * @response `404` `ProblemDetails` Not Found
5742
+ */
5743
+ getAiPrompt: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiPrompt, any, {}>>;
5744
+ /**
5745
+ * No description
5746
+ *
5747
+ * @tags AiAdminPrompt
5748
+ * @name UpdateAiPrompt
5749
+ * @summary Update prompt
5750
+ * @request PUT:/api/ai/admin/prompts/{id}
5751
+ * @secure
5752
+ * @response `200` `AiPrompt` Success
5753
+ * @response `400` `ProblemDetails` Bad Request
5754
+ * @response `404` `ProblemDetails` Not Found
5755
+ */
5756
+ updateAiPrompt: (id: string, data: UpdateAiPromptRequest, params?: RequestParams) => Promise<AxiosResponse<AiPrompt, any, {}>>;
5757
+ /**
5758
+ * No description
5759
+ *
5760
+ * @tags AiAdminPrompt
5761
+ * @name DeleteAiPrompt
5762
+ * @summary Delete prompt
5763
+ * @request DELETE:/api/ai/admin/prompts/{id}
5764
+ * @secure
5765
+ * @response `204` `void` No Content
5766
+ * @response `400` `ProblemDetails` Bad Request
5767
+ * @response `404` `ProblemDetails` Not Found
5768
+ */
5769
+ deleteAiPrompt: (id: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
5770
+ /**
5771
+ * No description
5772
+ *
5773
+ * @tags AiAdminPrompt
5774
+ * @name ToggleAiPrompt
5775
+ * @summary Toggle prompt active/inactive
5776
+ * @request PATCH:/api/ai/admin/prompts/{id}/toggle
5777
+ * @secure
5778
+ * @response `200` `AiPrompt` Success
5779
+ * @response `404` `ProblemDetails` Not Found
5780
+ */
5781
+ toggleAiPrompt: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiPrompt, any, {}>>;
5782
+ /**
5783
+ * No description
5784
+ *
5785
+ * @tags AiCanonicalField
5786
+ * @name GetAiCanonicalFields
5787
+ * @summary Get all canonical fields
5788
+ * @request GET:/api/ai/admin/fields
5789
+ * @secure
5790
+ * @response `200` `(AiCanonicalField)[]` Success
5791
+ */
5792
+ getAiCanonicalFields: (params?: RequestParams) => Promise<AxiosResponse<AiCanonicalField[], any, {}>>;
5793
+ /**
5794
+ * No description
5795
+ *
5796
+ * @tags AiCanonicalField
5797
+ * @name CreateAiCanonicalField
5798
+ * @summary Create canonical field
5799
+ * @request POST:/api/ai/admin/fields
5800
+ * @secure
5801
+ * @response `201` `AiCanonicalField` Created
5802
+ * @response `400` `ProblemDetails` Bad Request
5803
+ */
5804
+ createAiCanonicalField: (data: CreateAiCanonicalFieldRequest, params?: RequestParams) => Promise<AxiosResponse<AiCanonicalField, any, {}>>;
5805
+ /**
5806
+ * No description
5807
+ *
5808
+ * @tags AiCanonicalField
5809
+ * @name GetAiCanonicalField
5810
+ * @summary Get canonical field by ID
5811
+ * @request GET:/api/ai/admin/fields/{id}
5812
+ * @secure
5813
+ * @response `200` `AiCanonicalField` Success
5814
+ * @response `404` `ProblemDetails` Not Found
5815
+ */
5816
+ getAiCanonicalField: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiCanonicalField, any, {}>>;
5817
+ /**
5818
+ * No description
5819
+ *
5820
+ * @tags AiCanonicalField
5821
+ * @name UpdateAiCanonicalField
5822
+ * @summary Update canonical field
5823
+ * @request PUT:/api/ai/admin/fields/{id}
5824
+ * @secure
5825
+ * @response `200` `AiCanonicalField` Success
5826
+ * @response `400` `ProblemDetails` Bad Request
5827
+ * @response `404` `ProblemDetails` Not Found
5828
+ */
5829
+ updateAiCanonicalField: (id: string, data: UpdateAiCanonicalFieldRequest, params?: RequestParams) => Promise<AxiosResponse<AiCanonicalField, any, {}>>;
5830
+ /**
5831
+ * No description
5832
+ *
5833
+ * @tags AiCanonicalField
5834
+ * @name DeleteAiCanonicalField
5835
+ * @summary Delete canonical field
5836
+ * @request DELETE:/api/ai/admin/fields/{id}
5837
+ * @secure
5838
+ * @response `204` `void` No Content
5839
+ * @response `404` `ProblemDetails` Not Found
5840
+ */
5841
+ deleteAiCanonicalField: (id: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
5842
+ /**
5843
+ * No description
5844
+ *
5845
+ * @tags AiCanonicalField
5846
+ * @name ToggleAiCanonicalField
5847
+ * @summary Toggle canonical field active/inactive
5848
+ * @request PATCH:/api/ai/admin/fields/{id}/toggle
5849
+ * @secure
5850
+ * @response `200` `AiCanonicalField` Success
5851
+ * @response `404` `ProblemDetails` Not Found
5852
+ */
5853
+ toggleAiCanonicalField: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiCanonicalField, any, {}>>;
5854
+ /**
5855
+ * No description
5856
+ *
5857
+ * @tags AiChat
5858
+ * @name AiChat
5859
+ * @summary Send AI chat message
5860
+ * @request POST:/api/ai/chat
5861
+ * @secure
5862
+ * @response `200` `AiChat` Success
5863
+ * @response `400` `ProblemDetails` Bad Request
5864
+ * @response `401` `ProblemDetails` Unauthorized
5865
+ */
5866
+ aiChat: (data: AiChatRequest, params?: RequestParams) => Promise<AxiosResponse<AiChat, any, {}>>;
5867
+ /**
5868
+ * No description
5869
+ *
5870
+ * @tags AiConversation
5871
+ * @name GetAiConversations
5872
+ * @summary Get user conversations
5873
+ * @request GET:/api/ai/conversations
5874
+ * @secure
5875
+ * @response `200` `AiConversationListItemPaginated` Success
5876
+ */
5877
+ getAiConversations: (query?: {
5878
+ /** @format int32 */
5879
+ pageSize?: number;
5880
+ /** @format int32 */
5881
+ pageNumber?: number;
5882
+ sortBy?: string;
5883
+ sortDirection?: string;
5884
+ }, params?: RequestParams) => Promise<AxiosResponse<AiConversationListItemPaginated, any, {}>>;
5885
+ /**
5886
+ * No description
5887
+ *
5888
+ * @tags AiConversation
5889
+ * @name GetAiConversation
5890
+ * @summary Get conversation with messages
5891
+ * @request GET:/api/ai/conversations/{id}
5892
+ * @secure
5893
+ * @response `200` `AiConversationDetail` Success
5894
+ * @response `403` `ProblemDetails` Forbidden
5895
+ * @response `404` `ProblemDetails` Not Found
5896
+ */
5897
+ getAiConversation: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiConversationDetail, any, {}>>;
5898
+ /**
5899
+ * No description
5900
+ *
5901
+ * @tags AiConversation
5902
+ * @name DeleteAiConversation
5903
+ * @summary Delete conversation
5904
+ * @request DELETE:/api/ai/conversations/{id}
5905
+ * @secure
5906
+ * @response `204` `void` No Content
5907
+ * @response `403` `ProblemDetails` Forbidden
5908
+ * @response `404` `ProblemDetails` Not Found
5909
+ */
5910
+ deleteAiConversation: (id: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
5911
+ /**
5912
+ * No description
5913
+ *
5914
+ * @tags AiGuardrail
5915
+ * @name GetAiGuardrails
5916
+ * @summary Get all guardrails
5917
+ * @request GET:/api/ai/admin/guardrails
5918
+ * @secure
5919
+ * @response `200` `(AiGuardrail)[]` Success
5920
+ */
5921
+ getAiGuardrails: (params?: RequestParams) => Promise<AxiosResponse<AiGuardrail[], any, {}>>;
5922
+ /**
5923
+ * No description
5924
+ *
5925
+ * @tags AiGuardrail
5926
+ * @name CreateAiGuardrail
5927
+ * @summary Create custom guardrail
5928
+ * @request POST:/api/ai/admin/guardrails
5929
+ * @secure
5930
+ * @response `201` `AiGuardrail` Created
5931
+ * @response `400` `ProblemDetails` Bad Request
5932
+ */
5933
+ createAiGuardrail: (data: CreateAiGuardrailRequest, params?: RequestParams) => Promise<AxiosResponse<AiGuardrail, any, {}>>;
5934
+ /**
5935
+ * No description
5936
+ *
5937
+ * @tags AiGuardrail
5938
+ * @name GetAiGuardrail
5939
+ * @summary Get guardrail by ID
5940
+ * @request GET:/api/ai/admin/guardrails/{id}
5941
+ * @secure
5942
+ * @response `200` `AiGuardrail` Success
5943
+ * @response `404` `ProblemDetails` Not Found
5944
+ */
5945
+ getAiGuardrail: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiGuardrail, any, {}>>;
5946
+ /**
5947
+ * No description
5948
+ *
5949
+ * @tags AiGuardrail
5950
+ * @name UpdateAiGuardrail
5951
+ * @summary Update guardrail
5952
+ * @request PUT:/api/ai/admin/guardrails/{id}
5953
+ * @secure
5954
+ * @response `200` `AiGuardrail` Success
5955
+ * @response `400` `ProblemDetails` Bad Request
5956
+ * @response `404` `ProblemDetails` Not Found
5957
+ */
5958
+ updateAiGuardrail: (id: string, data: UpdateAiGuardrailRequest, params?: RequestParams) => Promise<AxiosResponse<AiGuardrail, any, {}>>;
5959
+ /**
5960
+ * No description
5961
+ *
5962
+ * @tags AiGuardrail
5963
+ * @name DeleteAiGuardrail
5964
+ * @summary Delete guardrail
5965
+ * @request DELETE:/api/ai/admin/guardrails/{id}
5966
+ * @secure
5967
+ * @response `204` `void` No Content
5968
+ * @response `400` `ProblemDetails` Bad Request
5969
+ * @response `404` `ProblemDetails` Not Found
5970
+ */
5971
+ deleteAiGuardrail: (id: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
5972
+ /**
5973
+ * No description
5974
+ *
5975
+ * @tags AiGuardrail
5976
+ * @name ToggleAiGuardrail
5977
+ * @summary Toggle guardrail enabled/disabled
5978
+ * @request PATCH:/api/ai/admin/guardrails/{id}/toggle
5979
+ * @secure
5980
+ * @response `200` `AiGuardrail` Success
5981
+ * @response `404` `ProblemDetails` Not Found
5982
+ */
5983
+ toggleAiGuardrail: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiGuardrail, any, {}>>;
5984
+ /**
5985
+ * No description
5986
+ *
5987
+ * @tags AiPrompt
5988
+ * @name GetAvailablePrompts
5989
+ * @summary Get available prompts for current user
5990
+ * @request GET:/api/ai/prompts
5991
+ * @secure
5992
+ * @response `200` `(AiPromptSummary)[]` Success
5993
+ */
5994
+ getAvailablePrompts: (query?: {
5995
+ documentType?: string;
5996
+ }, params?: RequestParams) => Promise<AxiosResponse<AiPromptSummary[], any, {}>>;
5354
5997
  /**
5355
5998
  * No description
5356
5999
  *
@@ -5372,10 +6015,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5372
6015
  * @summary Get Token
5373
6016
  * @request POST:/api/token
5374
6017
  * @secure
5375
- * @response `200` `Token` Success
6018
+ * @response `200` `ForcePasswordReset` Success
5376
6019
  * @response `422` `UnprocessableEntity` Client Error
5377
6020
  */
5378
- getToken: (data: TokenRequest, params?: RequestParams) => Promise<AxiosResponse<Token, any, {}>>;
6021
+ getToken: (data: TokenRequest, params?: RequestParams) => Promise<AxiosResponse<ForcePasswordReset, any, {}>>;
5379
6022
  /**
5380
6023
  * No description
5381
6024
  *
@@ -5384,22 +6027,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5384
6027
  * @summary Get Token From Challenge Code
5385
6028
  * @request POST:/api/token/code
5386
6029
  * @secure
5387
- * @response `200` `Token` Success
6030
+ * @response `200` `ForcePasswordReset` Success
5388
6031
  * @response `422` `UnprocessableEntity` Client Error
5389
6032
  */
5390
- getTokenFromChallengeCode: (data: TokenChallengeRequest, params?: RequestParams) => Promise<AxiosResponse<Token, any, {}>>;
5391
- /**
5392
- * No description
5393
- *
5394
- * @tags Authentication
5395
- * @name GetTokenFromNewPasswordChallenge
5396
- * @summary Get Token From New Password Challenge
5397
- * @request POST:/api/token/new-password
5398
- * @secure
5399
- * @response `200` `Token` Success
5400
- * @response `422` `UnprocessableEntity` Client Error
5401
- */
5402
- getTokenFromNewPasswordChallenge: (data: TokenNewPasswordChallengeRequest, params?: RequestParams) => Promise<AxiosResponse<Token, any, {}>>;
6033
+ getTokenFromChallengeCode: (data: TokenChallengeRequest, params?: RequestParams) => Promise<AxiosResponse<ForcePasswordReset, any, {}>>;
5403
6034
  /**
5404
6035
  * No description
5405
6036
  *
@@ -8020,7 +8651,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8020
8651
  getPartners: (query?: {
8021
8652
  showAll?: boolean;
8022
8653
  /** @default "Realtor" */
8023
- role?: GetPartnersParamsRoleEnum;
8654
+ role?: "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "BranchManager" | "SystemAdmin";
8024
8655
  /** @format int32 */
8025
8656
  pageSize?: number;
8026
8657
  /** @format int32 */
@@ -8198,7 +8829,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8198
8829
  * @response `200` `File` Success
8199
8830
  * @response `404` `ProblemDetails` Not Found
8200
8831
  */
8201
- getSamlMetadata: (sSoIntegration: GetSamlMetadataParamsEnum, ssoIntegration: string, params?: RequestParams) => Promise<AxiosResponse<File, any, {}>>;
8832
+ getSamlMetadata: (sSoIntegration: "ConsumerConnect" | "TheBigPOS" | "POSF", ssoIntegration: string, params?: RequestParams) => Promise<AxiosResponse<File, any, {}>>;
8202
8833
  /**
8203
8834
  * No description
8204
8835
  *
@@ -8209,7 +8840,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8209
8840
  * @secure
8210
8841
  * @response `200` `File` Success
8211
8842
  */
8212
- createOrReplaceSamlMetadata: (sSoIntegration: CreateOrReplaceSamlMetadataParamsEnum, ssoIntegration: string, params?: RequestParams) => Promise<AxiosResponse<File, any, {}>>;
8843
+ createOrReplaceSamlMetadata: (sSoIntegration: "ConsumerConnect" | "TheBigPOS" | "POSF", ssoIntegration: string, params?: RequestParams) => Promise<AxiosResponse<File, any, {}>>;
8213
8844
  /**
8214
8845
  * No description
8215
8846
  *
@@ -8388,6 +9019,23 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8388
9019
  * @response `200` `void` Success
8389
9020
  */
8390
9021
  integrationsLosLoansCreate: (data: LosLoanCreationRequest, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
9022
+ /**
9023
+ * No description
9024
+ *
9025
+ * @tags TheBigPOS
9026
+ * @name SearchEncompassLogs
9027
+ * @request POST:/api/los/encompass/logs/{losId}/search
9028
+ * @secure
9029
+ * @response `200` `EncompassRequestLogPaginated` Success
9030
+ */
9031
+ searchEncompassLogs: (losId: string, query: {
9032
+ /** @format int32 */
9033
+ pageSize: number;
9034
+ /** @format int32 */
9035
+ pageNumber: number;
9036
+ sortBy?: string;
9037
+ sortDirection?: string;
9038
+ }, data: EncompassLogSearchCriteria, params?: RequestParams) => Promise<AxiosResponse<EncompassRequestLogPaginated, any, {}>>;
8391
9039
  /**
8392
9040
  * No description
8393
9041
  *