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

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,195 @@ 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
+ /** @format date-time */
469
+ createdAt: string;
470
+ /** @format date-time */
471
+ updatedAt?: string | null;
472
+ }
473
+ export interface AiPrompt {
474
+ /** @format uuid */
475
+ id: string;
476
+ title: string;
477
+ icon: string;
478
+ slug: string;
479
+ description: string;
480
+ documentTypes: string[];
481
+ applicableGuidelines: string[];
482
+ allowedRoles: string[];
483
+ systemPrompt: string;
484
+ userPromptTemplate: string;
485
+ followUpPrompts: string[];
486
+ /** @format int32 */
487
+ sortOrder: number;
488
+ isDefault: boolean;
489
+ /** @format uuid */
490
+ accountId?: string | null;
491
+ isActive: boolean;
492
+ category?: AiPromptCategory | null;
493
+ queryTemplateName?: AiQueryTemplateName | null;
494
+ displayHint?: AiDisplayHint | null;
495
+ /** @format date-time */
496
+ createdAt: string;
497
+ /** @format date-time */
498
+ updatedAt?: string | null;
499
+ }
500
+ export interface AiPromptSummary {
501
+ /** @format uuid */
502
+ id: string;
503
+ title: string;
504
+ icon: string;
505
+ slug: string;
506
+ description: string;
507
+ documentTypes: string[];
508
+ applicableGuidelines: string[];
509
+ followUpPrompts: string[];
510
+ /** @format int32 */
511
+ sortOrder: number;
512
+ category?: AiPromptCategory | null;
513
+ queryTemplateName?: AiQueryTemplateName | null;
514
+ displayHint?: AiDisplayHint | null;
515
+ }
316
516
  export interface AllowImpersonationRequest {
317
517
  /**
318
518
  * @format email
@@ -635,7 +835,7 @@ export interface CorporateSearchCriteria {
635
835
  isActive?: boolean | null;
636
836
  }
637
837
  export interface CreateAccessScopeRequest {
638
- scopeType: CreateAccessScopeRequestScopeTypeEnum;
838
+ scopeType: "User" | "Branch";
639
839
  /** @format uuid */
640
840
  userId?: string | null;
641
841
  /** @format uuid */
@@ -658,10 +858,76 @@ export interface CreateAccountRequest {
658
858
  */
659
859
  nlmsid: number;
660
860
  settings: AccountSettingsRequest;
661
- environment: CreateAccountRequestEnvironmentEnum;
861
+ environment: "Development" | "Staging" | "UAT" | "Production";
662
862
  losIntegration: LOSIntegration;
663
863
  billingSettings: AccountBillingRequest;
664
864
  }
865
+ export interface CreateAiCanonicalFieldRequest {
866
+ /**
867
+ * @minLength 1
868
+ * @maxLength 200
869
+ */
870
+ canonicalName: string;
871
+ /**
872
+ * @minLength 1
873
+ * @maxLength 200
874
+ */
875
+ displayName: string;
876
+ /** @minLength 1 */
877
+ description: string;
878
+ /** @minItems 1 */
879
+ allowedRoles: string[];
880
+ isPii: boolean;
881
+ /** @minLength 1 */
882
+ dataSource: string;
883
+ textractKey?: string | null;
884
+ textractKeyAliases?: string | null;
885
+ category?: string | null;
886
+ }
887
+ export interface CreateAiGuardrailRequest {
888
+ /**
889
+ * @minLength 1
890
+ * @maxLength 200
891
+ */
892
+ name: string;
893
+ category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
894
+ description?: string | null;
895
+ /** @minItems 1 */
896
+ keywords: string[];
897
+ /** @minLength 1 */
898
+ responseTemplate: string;
899
+ }
900
+ export interface CreateAiPromptRequest {
901
+ /**
902
+ * @minLength 1
903
+ * @maxLength 200
904
+ */
905
+ title: string;
906
+ icon: string;
907
+ /**
908
+ * @minLength 1
909
+ * @maxLength 100
910
+ */
911
+ slug: string;
912
+ /**
913
+ * @minLength 1
914
+ * @maxLength 500
915
+ */
916
+ description: string;
917
+ documentTypes: string[];
918
+ applicableGuidelines: string[];
919
+ allowedRoles: string[];
920
+ /** @minLength 1 */
921
+ systemPrompt: string;
922
+ /** @minLength 1 */
923
+ userPromptTemplate: string;
924
+ followUpPrompts: string[];
925
+ /** @format int32 */
926
+ sortOrder: number;
927
+ category?: AiPromptCategory | null;
928
+ queryTemplateName?: AiQueryTemplateName | null;
929
+ displayHint?: AiDisplayHint | null;
930
+ }
665
931
  export interface CreateBranchRequest {
666
932
  /**
667
933
  * @minLength 1
@@ -688,7 +954,7 @@ export interface CreateDocumentTemplateRequest {
688
954
  export interface CreateGroupMemberRequest {
689
955
  /** @format uuid */
690
956
  userId: string;
691
- loanRole: CreateGroupMemberRequestLoanRoleEnum;
957
+ loanRole: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
692
958
  }
693
959
  export interface CreateInviteRequest {
694
960
  /** @minLength 1 */
@@ -699,7 +965,7 @@ export interface CreateInviteRequest {
699
965
  emailAddress: string;
700
966
  phoneNumber?: string | null;
701
967
  /** @deprecated */
702
- relationship: CreateInviteRequestRelationshipEnum;
968
+ relationship: "NotApplicable" | "Spouse" | "NonSpouse";
703
969
  loanID: string;
704
970
  route?: string | null;
705
971
  /** @format uuid */
@@ -721,7 +987,7 @@ export interface CreateLoanImportRequest {
721
987
  * @minLength 1
722
988
  */
723
989
  startDate: string;
724
- importMode: CreateLoanImportRequestImportModeEnum;
990
+ importMode: "All" | "NewOnly" | "UpdateOnly";
725
991
  }
726
992
  export interface CreateSession {
727
993
  sessionId: string;
@@ -739,7 +1005,7 @@ export interface CreateUserDeviceRequest {
739
1005
  token: string;
740
1006
  }
741
1007
  export interface CreateUserDraft {
742
- loanRole: CreateUserDraftLoanRoleEnum;
1008
+ loanRole: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
743
1009
  }
744
1010
  export interface CreateUserGroupRequest {
745
1011
  /**
@@ -1031,7 +1297,7 @@ export interface Draft {
1031
1297
  siteConfiguration: SiteConfigurationReduced;
1032
1298
  /** @format uuid */
1033
1299
  loanID?: string | null;
1034
- type: DraftTypeEnum;
1300
+ type: "NewLoan" | "EditLoan";
1035
1301
  isCoBorrower: boolean;
1036
1302
  }
1037
1303
  export interface DraftContent {
@@ -1049,7 +1315,7 @@ export interface DraftContent {
1049
1315
  siteConfiguration: SiteConfigurationReduced;
1050
1316
  /** @format uuid */
1051
1317
  loanID?: string | null;
1052
- type: DraftContentTypeEnum;
1318
+ type: "NewLoan" | "EditLoan";
1053
1319
  isCoBorrower: boolean;
1054
1320
  applicationPayload: any;
1055
1321
  }
@@ -1133,6 +1399,17 @@ export interface EncompassError {
1133
1399
  message: string;
1134
1400
  details?: string[] | null;
1135
1401
  }
1402
+ export interface EncompassLogSearchCriteria {
1403
+ searchText?: string | null;
1404
+ operationTypes?: EncompassLogOperationType[] | null;
1405
+ outcomes?: EncompassLogOutcome[] | null;
1406
+ /** @format date-time */
1407
+ createdFrom?: string | null;
1408
+ /** @format date-time */
1409
+ createdTo?: string | null;
1410
+ /** @format int32 */
1411
+ httpStatusCode?: number | null;
1412
+ }
1136
1413
  export interface EncompassPackageItem {
1137
1414
  packageId: string;
1138
1415
  status: string;
@@ -1151,6 +1428,31 @@ export interface EncompassPackageList {
1151
1428
  /** @format int32 */
1152
1429
  totalPages: number;
1153
1430
  }
1431
+ export interface EncompassRequestLog {
1432
+ /** @format uuid */
1433
+ id: string;
1434
+ losId?: string | null;
1435
+ /** @format uuid */
1436
+ accountId: string;
1437
+ operationType: "FieldUpdate" | "EConsentUpdate" | "DocumentSync" | "MilestoneUpdate" | "DocumentAttachment" | "General" | "FieldReader";
1438
+ outcome: "Success" | "Failure" | "PartialSuccess";
1439
+ message: string;
1440
+ endpoint?: string | null;
1441
+ httpMethod?: string | null;
1442
+ /** @format int32 */
1443
+ httpStatusCode?: number | null;
1444
+ /** @format int64 */
1445
+ durationMs?: number | null;
1446
+ context?: any;
1447
+ /** @format date-time */
1448
+ createdAt: string;
1449
+ }
1450
+ export interface EncompassRequestLogPaginated {
1451
+ rows: EncompassRequestLog[];
1452
+ pagination: Pagination;
1453
+ /** @format int64 */
1454
+ count: number;
1455
+ }
1154
1456
  export interface Error {
1155
1457
  message: string;
1156
1458
  }
@@ -1189,6 +1491,10 @@ export interface FileWithBytes {
1189
1491
  mimeType?: string | null;
1190
1492
  extension?: string | null;
1191
1493
  }
1494
+ export interface ForcePasswordReset {
1495
+ forcePasswordReset: boolean;
1496
+ email: string;
1497
+ }
1192
1498
  export interface Form {
1193
1499
  /** @format date-time */
1194
1500
  createdAt?: string | null;
@@ -1346,7 +1652,7 @@ export interface FusionFieldDisplay {
1346
1652
  fieldValue: string;
1347
1653
  }
1348
1654
  export interface FusionReportFilter {
1349
- filterType: FusionReportFilterFilterTypeEnum;
1655
+ filterType: "DateGreaterThanOrEqualTo" | "DateGreaterThan" | "DateLessThan" | "DateLessThanOrEqualTo" | "DateEquals" | "DateDoesntEqual" | "DateNonEmpty" | "DateEmpty" | "StringContains" | "StringEquals" | "StringNotEmpty" | "StringNotEquals" | "StringNotContains";
1350
1656
  targetField: string;
1351
1657
  targetValue: string;
1352
1658
  }
@@ -1460,7 +1766,7 @@ export interface GuidPatchOperation {
1460
1766
  from?: string | null;
1461
1767
  }
1462
1768
  export interface IPAddress {
1463
- addressFamily: IpAddressAddressFamilyEnum;
1769
+ 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
1770
  /** @format int64 */
1465
1771
  scopeId: number;
1466
1772
  isIPv6Multicast: boolean;
@@ -1699,6 +2005,8 @@ export interface Loan {
1699
2005
  lastLosDocumentsSyncDate?: string | null;
1700
2006
  isLocked: boolean;
1701
2007
  isLockedFromEditing: boolean;
2008
+ /** @format date-time */
2009
+ sensitiveDataPurgedOn?: string | null;
1702
2010
  excludeFromAutoTaskReminders?: boolean | null;
1703
2011
  loanSettings?: LoanSettings | null;
1704
2012
  loanOfficer?: LoanOfficer | null;
@@ -2620,7 +2928,7 @@ export interface LoanContact {
2620
2928
  email?: string | null;
2621
2929
  phone?: string | null;
2622
2930
  companyName?: string | null;
2623
- role: LoanContactRoleEnum;
2931
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
2624
2932
  }
2625
2933
  export interface LoanContactList {
2626
2934
  email: string;
@@ -2645,6 +2953,8 @@ export interface LoanDocument {
2645
2953
  losStatus: string;
2646
2954
  contents?: string | null;
2647
2955
  failoverDocumentPath?: string | null;
2956
+ /** @format date-time */
2957
+ sensitiveDataPurgedOn?: string | null;
2648
2958
  }
2649
2959
  export interface LoanDocumentSearch {
2650
2960
  /** @format date-time */
@@ -2663,6 +2973,8 @@ export interface LoanDocumentSearch {
2663
2973
  losStatus: string;
2664
2974
  contents?: string | null;
2665
2975
  failoverDocumentPath?: string | null;
2976
+ /** @format date-time */
2977
+ sensitiveDataPurgedOn?: string | null;
2666
2978
  }
2667
2979
  export interface LoanDocumentSearchCriteria {
2668
2980
  searchText?: string | null;
@@ -2741,13 +3053,13 @@ export interface LoanImport {
2741
3053
  /** @format int32 */
2742
3054
  importedCount: number;
2743
3055
  statusMessage?: string | null;
2744
- status: LoanImportStatusEnum;
2745
- importMode: LoanImportImportModeEnum;
3056
+ status: "WaitingProcess" | "InProgress" | "Completed" | "Failed" | "Cancelled";
3057
+ importMode: "All" | "NewOnly" | "UpdateOnly";
2746
3058
  /** @format date-time */
2747
3059
  createdAt?: string | null;
2748
3060
  }
2749
3061
  export interface LoanImportLog {
2750
- level: LoanImportLogLevelEnum;
3062
+ level: "None" | "Info" | "Warning" | "Error";
2751
3063
  message: string;
2752
3064
  /** @format date-time */
2753
3065
  createdAt: string;
@@ -2802,8 +3114,8 @@ export interface LoanListPaginated {
2802
3114
  export interface LoanLog {
2803
3115
  /** @format uuid */
2804
3116
  id: string;
2805
- level: LoanLogLevelEnum;
2806
- type: LoanLogTypeEnum;
3117
+ level: "None" | "Info" | "Warning" | "Error";
3118
+ type: "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "EConsent" | "SensitiveDataPurge";
2807
3119
  message: string;
2808
3120
  /** @format date-time */
2809
3121
  createdAt: string;
@@ -3066,7 +3378,7 @@ export interface LoanUser {
3066
3378
  email: string;
3067
3379
  phone?: string | null;
3068
3380
  role: string;
3069
- loanRole: LoanUserLoanRoleEnum;
3381
+ loanRole: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
3070
3382
  isUser: boolean;
3071
3383
  /** @format date-time */
3072
3384
  createdAt: string;
@@ -3673,7 +3985,7 @@ export interface SSOTokenRequest {
3673
3985
  redirectUri: string;
3674
3986
  }
3675
3987
  export interface SamlMetadataRequest {
3676
- ssoIntegration: SamlMetadataRequestSsoIntegrationEnum;
3988
+ ssoIntegration: "ConsumerConnect" | "TheBigPOS" | "POSF";
3677
3989
  }
3678
3990
  export interface SendForgotPasswordRequest {
3679
3991
  /**
@@ -3708,7 +4020,7 @@ export interface SiteConfiguration {
3708
4020
  deletedAt?: string | null;
3709
4021
  /** @format uuid */
3710
4022
  id: string;
3711
- type: SiteConfigurationTypeEnum;
4023
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
3712
4024
  /** @format uuid */
3713
4025
  entityID: string;
3714
4026
  /** @format int32 */
@@ -3902,7 +4214,7 @@ export interface SiteConfigurationByUrl {
3902
4214
  deletedAt?: string | null;
3903
4215
  /** @format uuid */
3904
4216
  id: string;
3905
- type: SiteConfigurationByUrlTypeEnum;
4217
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
3906
4218
  /** @format uuid */
3907
4219
  entityID: string;
3908
4220
  /** @format int32 */
@@ -4113,7 +4425,7 @@ export interface SiteConfigurationForm {
4113
4425
  export interface SiteConfigurationReduced {
4114
4426
  /** @format uuid */
4115
4427
  id: string;
4116
- type: SiteConfigurationReducedTypeEnum;
4428
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4117
4429
  url?: string | null;
4118
4430
  name: string;
4119
4431
  /** @format int64 */
@@ -4130,7 +4442,7 @@ export interface SiteConfigurationRequest {
4130
4442
  entityID: string;
4131
4443
  /** @format int32 */
4132
4444
  entityType: number;
4133
- type: SiteConfigurationRequestTypeEnum;
4445
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4134
4446
  url: string;
4135
4447
  name: string;
4136
4448
  introduction?: string | null;
@@ -4305,7 +4617,7 @@ export interface SiteConfigurationSearchCriteria {
4305
4617
  export interface SiteConfigurationSummary {
4306
4618
  /** @format uuid */
4307
4619
  id: string;
4308
- type: SiteConfigurationSummaryTypeEnum;
4620
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4309
4621
  url?: string | null;
4310
4622
  name: string;
4311
4623
  /** @format int64 */
@@ -4521,20 +4833,6 @@ export interface TokenChallengeRequest {
4521
4833
  siteConfigurationId: string;
4522
4834
  isSupport: boolean;
4523
4835
  }
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
4836
  export interface TokenRequest {
4539
4837
  /** @format email */
4540
4838
  username: string;
@@ -4600,6 +4898,57 @@ export interface UpdateAccountRequest {
4600
4898
  asoSettings?: ASOSettings | null;
4601
4899
  settings: AccountSettingsRequest;
4602
4900
  }
4901
+ export interface UpdateAiCanonicalFieldRequest {
4902
+ /**
4903
+ * @minLength 1
4904
+ * @maxLength 200
4905
+ */
4906
+ displayName: string;
4907
+ /** @minLength 1 */
4908
+ description: string;
4909
+ /** @minItems 1 */
4910
+ allowedRoles: string[];
4911
+ isPii: boolean;
4912
+ }
4913
+ export interface UpdateAiGuardrailRequest {
4914
+ /**
4915
+ * @minLength 1
4916
+ * @maxLength 200
4917
+ */
4918
+ name: string;
4919
+ category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
4920
+ description?: string | null;
4921
+ /** @minItems 1 */
4922
+ keywords: string[];
4923
+ /** @minLength 1 */
4924
+ responseTemplate: string;
4925
+ }
4926
+ export interface UpdateAiPromptRequest {
4927
+ /**
4928
+ * @minLength 1
4929
+ * @maxLength 200
4930
+ */
4931
+ title: string;
4932
+ icon: string;
4933
+ /**
4934
+ * @minLength 1
4935
+ * @maxLength 500
4936
+ */
4937
+ description: string;
4938
+ documentTypes: string[];
4939
+ applicableGuidelines: string[];
4940
+ allowedRoles: string[];
4941
+ /** @minLength 1 */
4942
+ systemPrompt: string;
4943
+ /** @minLength 1 */
4944
+ userPromptTemplate: string;
4945
+ followUpPrompts: string[];
4946
+ /** @format int32 */
4947
+ sortOrder: number;
4948
+ category?: AiPromptCategory | null;
4949
+ queryTemplateName?: AiQueryTemplateName | null;
4950
+ displayHint?: AiDisplayHint | null;
4951
+ }
4603
4952
  export interface UpdateDocumentTemplateRequest {
4604
4953
  /** @minLength 1 */
4605
4954
  htmlBody: string;
@@ -4654,7 +5003,7 @@ export interface UpdateMeRequest {
4654
5003
  email: string;
4655
5004
  title?: string | null;
4656
5005
  forcePasswordReset: boolean;
4657
- mfaEnabled: boolean;
5006
+ mfaEnabled?: boolean | null;
4658
5007
  notificationSettings: UserNotificationSettingsUpdateRequest;
4659
5008
  /** @format uuid */
4660
5009
  preferredLoanOfficerId?: string | null;
@@ -4688,7 +5037,7 @@ export interface UpdateUserRequest {
4688
5037
  /** @format uuid */
4689
5038
  branchId?: string | null;
4690
5039
  forcePasswordReset: boolean;
4691
- mfaEnabled: boolean;
5040
+ mfaEnabled?: boolean | null;
4692
5041
  /** @format uuid */
4693
5042
  preferredLoanOfficerId?: string | null;
4694
5043
  }
@@ -4896,7 +5245,7 @@ export interface UserDevice {
4896
5245
  export interface UserDraft {
4897
5246
  /** @format uuid */
4898
5247
  draftID: string;
4899
- role: UserDraftRoleEnum;
5248
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
4900
5249
  user: User;
4901
5250
  }
4902
5251
  export interface UserDraftPaginated {
@@ -4920,7 +5269,7 @@ export interface UserGroupAccessScope {
4920
5269
  id: string;
4921
5270
  /** @format uuid */
4922
5271
  groupId: string;
4923
- scopeType: UserGroupAccessScopeScopeTypeEnum;
5272
+ scopeType: "User" | "Branch";
4924
5273
  /** @format uuid */
4925
5274
  userId?: string | null;
4926
5275
  /** @format uuid */
@@ -4953,7 +5302,7 @@ export interface UserLoan {
4953
5302
  deletedAt?: string | null;
4954
5303
  loanID: string;
4955
5304
  user: User;
4956
- role: UserLoanRoleEnum;
5305
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent";
4957
5306
  /** @format int32 */
4958
5307
  borrowerPair?: number | null;
4959
5308
  /** @format int32 */
@@ -4965,9 +5314,10 @@ export interface UserLoanConsent {
4965
5314
  id: string;
4966
5315
  /** @format uuid */
4967
5316
  userLoanID: string;
4968
- type: UserLoanConsentTypeEnum;
5317
+ type: "Econsent" | "CreditAuthorization" | "Tcpa";
4969
5318
  providedConsent: boolean;
4970
5319
  ipAddress?: string | null;
5320
+ losSyncStatus: "NotStarted" | "Failed" | "Success";
4971
5321
  /** @format date-time */
4972
5322
  createdAt: string;
4973
5323
  }
@@ -5099,7 +5449,7 @@ export interface UserSummary {
5099
5449
  id: string;
5100
5450
  name?: string | null;
5101
5451
  email?: string | null;
5102
- role: UserSummaryRoleEnum;
5452
+ role: "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "BranchManager" | "SystemAdmin";
5103
5453
  }
5104
5454
  export interface VerifyPasswordRequest {
5105
5455
  /**
@@ -5132,42 +5482,6 @@ export interface Workflow {
5132
5482
  tileSubtitle: string;
5133
5483
  icon: string;
5134
5484
  }
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
5485
  import type { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
5172
5486
  export type QueryParamsType = Record<string | number, any>;
5173
5487
  export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
@@ -5213,7 +5527,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
5213
5527
  }
5214
5528
  /**
5215
5529
  * @title The Big POS API
5216
- * @version v2.36.0
5530
+ * @version v2.36.11
5217
5531
  * @termsOfService https://www.thebigpos.com/terms-of-use/
5218
5532
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
5219
5533
  */
@@ -5351,6 +5665,333 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5351
5665
  * @response `422` `ProblemDetails` Client Error
5352
5666
  */
5353
5667
  updateAccountBilling: (id: string, data: AccountBillingRequest, params?: RequestParams) => Promise<AxiosResponse<AccountBilling, any, {}>>;
5668
+ /**
5669
+ * No description
5670
+ *
5671
+ * @tags AiAdmin
5672
+ * @name GetAiAuditLogs
5673
+ * @summary Get paginated audit logs
5674
+ * @request GET:/api/ai/admin/audit-logs
5675
+ * @secure
5676
+ * @response `200` `AiAuditLogPaginated` Success
5677
+ */
5678
+ getAiAuditLogs: (query?: {
5679
+ eventType?: AiAuditEventType;
5680
+ /** @format date-time */
5681
+ startDate?: string;
5682
+ /** @format date-time */
5683
+ endDate?: string;
5684
+ /** @format int32 */
5685
+ pageSize?: number;
5686
+ /** @format int32 */
5687
+ pageNumber?: number;
5688
+ sortBy?: string;
5689
+ sortDirection?: string;
5690
+ }, params?: RequestParams) => Promise<AxiosResponse<AiAuditLogPaginated, any, {}>>;
5691
+ /**
5692
+ * No description
5693
+ *
5694
+ * @tags AiAdmin
5695
+ * @name GetAiAdminStats
5696
+ * @summary Get AI admin dashboard stats
5697
+ * @request GET:/api/ai/admin/stats
5698
+ * @secure
5699
+ * @response `200` `AiAdminStats` Success
5700
+ */
5701
+ getAiAdminStats: (query?: {
5702
+ /** @format date-time */
5703
+ startDate?: string;
5704
+ /** @format date-time */
5705
+ endDate?: string;
5706
+ }, params?: RequestParams) => Promise<AxiosResponse<AiAdminStats, any, {}>>;
5707
+ /**
5708
+ * No description
5709
+ *
5710
+ * @tags AiAdminPrompt
5711
+ * @name GetAiPrompts
5712
+ * @summary Get all prompts
5713
+ * @request GET:/api/ai/admin/prompts
5714
+ * @secure
5715
+ * @response `200` `(AiPrompt)[]` Success
5716
+ */
5717
+ getAiPrompts: (params?: RequestParams) => Promise<AxiosResponse<AiPrompt[], any, {}>>;
5718
+ /**
5719
+ * No description
5720
+ *
5721
+ * @tags AiAdminPrompt
5722
+ * @name CreateAiPrompt
5723
+ * @summary Create custom prompt
5724
+ * @request POST:/api/ai/admin/prompts
5725
+ * @secure
5726
+ * @response `201` `AiPrompt` Created
5727
+ * @response `400` `ProblemDetails` Bad Request
5728
+ */
5729
+ createAiPrompt: (data: CreateAiPromptRequest, params?: RequestParams) => Promise<AxiosResponse<AiPrompt, any, {}>>;
5730
+ /**
5731
+ * No description
5732
+ *
5733
+ * @tags AiAdminPrompt
5734
+ * @name GetAiPrompt
5735
+ * @summary Get prompt by ID
5736
+ * @request GET:/api/ai/admin/prompts/{id}
5737
+ * @secure
5738
+ * @response `200` `AiPrompt` Success
5739
+ * @response `404` `ProblemDetails` Not Found
5740
+ */
5741
+ getAiPrompt: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiPrompt, any, {}>>;
5742
+ /**
5743
+ * No description
5744
+ *
5745
+ * @tags AiAdminPrompt
5746
+ * @name UpdateAiPrompt
5747
+ * @summary Update prompt
5748
+ * @request PUT:/api/ai/admin/prompts/{id}
5749
+ * @secure
5750
+ * @response `200` `AiPrompt` Success
5751
+ * @response `400` `ProblemDetails` Bad Request
5752
+ * @response `404` `ProblemDetails` Not Found
5753
+ */
5754
+ updateAiPrompt: (id: string, data: UpdateAiPromptRequest, params?: RequestParams) => Promise<AxiosResponse<AiPrompt, any, {}>>;
5755
+ /**
5756
+ * No description
5757
+ *
5758
+ * @tags AiAdminPrompt
5759
+ * @name DeleteAiPrompt
5760
+ * @summary Delete prompt
5761
+ * @request DELETE:/api/ai/admin/prompts/{id}
5762
+ * @secure
5763
+ * @response `204` `void` No Content
5764
+ * @response `400` `ProblemDetails` Bad Request
5765
+ * @response `404` `ProblemDetails` Not Found
5766
+ */
5767
+ deleteAiPrompt: (id: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
5768
+ /**
5769
+ * No description
5770
+ *
5771
+ * @tags AiAdminPrompt
5772
+ * @name ToggleAiPrompt
5773
+ * @summary Toggle prompt active/inactive
5774
+ * @request PATCH:/api/ai/admin/prompts/{id}/toggle
5775
+ * @secure
5776
+ * @response `200` `AiPrompt` Success
5777
+ * @response `404` `ProblemDetails` Not Found
5778
+ */
5779
+ toggleAiPrompt: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiPrompt, any, {}>>;
5780
+ /**
5781
+ * No description
5782
+ *
5783
+ * @tags AiCanonicalField
5784
+ * @name GetAiCanonicalFields
5785
+ * @summary Get all canonical fields
5786
+ * @request GET:/api/ai/admin/fields
5787
+ * @secure
5788
+ * @response `200` `(AiCanonicalField)[]` Success
5789
+ */
5790
+ getAiCanonicalFields: (params?: RequestParams) => Promise<AxiosResponse<AiCanonicalField[], any, {}>>;
5791
+ /**
5792
+ * No description
5793
+ *
5794
+ * @tags AiCanonicalField
5795
+ * @name CreateAiCanonicalField
5796
+ * @summary Create canonical field
5797
+ * @request POST:/api/ai/admin/fields
5798
+ * @secure
5799
+ * @response `201` `AiCanonicalField` Created
5800
+ * @response `400` `ProblemDetails` Bad Request
5801
+ */
5802
+ createAiCanonicalField: (data: CreateAiCanonicalFieldRequest, params?: RequestParams) => Promise<AxiosResponse<AiCanonicalField, any, {}>>;
5803
+ /**
5804
+ * No description
5805
+ *
5806
+ * @tags AiCanonicalField
5807
+ * @name GetAiCanonicalField
5808
+ * @summary Get canonical field by ID
5809
+ * @request GET:/api/ai/admin/fields/{id}
5810
+ * @secure
5811
+ * @response `200` `AiCanonicalField` Success
5812
+ * @response `404` `ProblemDetails` Not Found
5813
+ */
5814
+ getAiCanonicalField: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiCanonicalField, any, {}>>;
5815
+ /**
5816
+ * No description
5817
+ *
5818
+ * @tags AiCanonicalField
5819
+ * @name UpdateAiCanonicalField
5820
+ * @summary Update canonical field
5821
+ * @request PUT:/api/ai/admin/fields/{id}
5822
+ * @secure
5823
+ * @response `200` `AiCanonicalField` Success
5824
+ * @response `400` `ProblemDetails` Bad Request
5825
+ * @response `404` `ProblemDetails` Not Found
5826
+ */
5827
+ updateAiCanonicalField: (id: string, data: UpdateAiCanonicalFieldRequest, params?: RequestParams) => Promise<AxiosResponse<AiCanonicalField, any, {}>>;
5828
+ /**
5829
+ * No description
5830
+ *
5831
+ * @tags AiCanonicalField
5832
+ * @name DeleteAiCanonicalField
5833
+ * @summary Delete canonical field
5834
+ * @request DELETE:/api/ai/admin/fields/{id}
5835
+ * @secure
5836
+ * @response `204` `void` No Content
5837
+ * @response `404` `ProblemDetails` Not Found
5838
+ */
5839
+ deleteAiCanonicalField: (id: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
5840
+ /**
5841
+ * No description
5842
+ *
5843
+ * @tags AiCanonicalField
5844
+ * @name ToggleAiCanonicalField
5845
+ * @summary Toggle canonical field active/inactive
5846
+ * @request PATCH:/api/ai/admin/fields/{id}/toggle
5847
+ * @secure
5848
+ * @response `200` `AiCanonicalField` Success
5849
+ * @response `404` `ProblemDetails` Not Found
5850
+ */
5851
+ toggleAiCanonicalField: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiCanonicalField, any, {}>>;
5852
+ /**
5853
+ * No description
5854
+ *
5855
+ * @tags AiChat
5856
+ * @name AiChat
5857
+ * @summary Send AI chat message
5858
+ * @request POST:/api/ai/chat
5859
+ * @secure
5860
+ * @response `200` `AiChat` Success
5861
+ * @response `400` `ProblemDetails` Bad Request
5862
+ * @response `401` `ProblemDetails` Unauthorized
5863
+ */
5864
+ aiChat: (data: AiChatRequest, params?: RequestParams) => Promise<AxiosResponse<AiChat, any, {}>>;
5865
+ /**
5866
+ * No description
5867
+ *
5868
+ * @tags AiConversation
5869
+ * @name GetAiConversations
5870
+ * @summary Get user conversations
5871
+ * @request GET:/api/ai/conversations
5872
+ * @secure
5873
+ * @response `200` `AiConversationListItemPaginated` Success
5874
+ */
5875
+ getAiConversations: (query?: {
5876
+ /** @format int32 */
5877
+ pageSize?: number;
5878
+ /** @format int32 */
5879
+ pageNumber?: number;
5880
+ sortBy?: string;
5881
+ sortDirection?: string;
5882
+ }, params?: RequestParams) => Promise<AxiosResponse<AiConversationListItemPaginated, any, {}>>;
5883
+ /**
5884
+ * No description
5885
+ *
5886
+ * @tags AiConversation
5887
+ * @name GetAiConversation
5888
+ * @summary Get conversation with messages
5889
+ * @request GET:/api/ai/conversations/{id}
5890
+ * @secure
5891
+ * @response `200` `AiConversationDetail` Success
5892
+ * @response `403` `ProblemDetails` Forbidden
5893
+ * @response `404` `ProblemDetails` Not Found
5894
+ */
5895
+ getAiConversation: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiConversationDetail, any, {}>>;
5896
+ /**
5897
+ * No description
5898
+ *
5899
+ * @tags AiConversation
5900
+ * @name DeleteAiConversation
5901
+ * @summary Delete conversation
5902
+ * @request DELETE:/api/ai/conversations/{id}
5903
+ * @secure
5904
+ * @response `204` `void` No Content
5905
+ * @response `403` `ProblemDetails` Forbidden
5906
+ * @response `404` `ProblemDetails` Not Found
5907
+ */
5908
+ deleteAiConversation: (id: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
5909
+ /**
5910
+ * No description
5911
+ *
5912
+ * @tags AiGuardrail
5913
+ * @name GetAiGuardrails
5914
+ * @summary Get all guardrails
5915
+ * @request GET:/api/ai/admin/guardrails
5916
+ * @secure
5917
+ * @response `200` `(AiGuardrail)[]` Success
5918
+ */
5919
+ getAiGuardrails: (params?: RequestParams) => Promise<AxiosResponse<AiGuardrail[], any, {}>>;
5920
+ /**
5921
+ * No description
5922
+ *
5923
+ * @tags AiGuardrail
5924
+ * @name CreateAiGuardrail
5925
+ * @summary Create custom guardrail
5926
+ * @request POST:/api/ai/admin/guardrails
5927
+ * @secure
5928
+ * @response `201` `AiGuardrail` Created
5929
+ * @response `400` `ProblemDetails` Bad Request
5930
+ */
5931
+ createAiGuardrail: (data: CreateAiGuardrailRequest, params?: RequestParams) => Promise<AxiosResponse<AiGuardrail, any, {}>>;
5932
+ /**
5933
+ * No description
5934
+ *
5935
+ * @tags AiGuardrail
5936
+ * @name GetAiGuardrail
5937
+ * @summary Get guardrail by ID
5938
+ * @request GET:/api/ai/admin/guardrails/{id}
5939
+ * @secure
5940
+ * @response `200` `AiGuardrail` Success
5941
+ * @response `404` `ProblemDetails` Not Found
5942
+ */
5943
+ getAiGuardrail: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiGuardrail, any, {}>>;
5944
+ /**
5945
+ * No description
5946
+ *
5947
+ * @tags AiGuardrail
5948
+ * @name UpdateAiGuardrail
5949
+ * @summary Update guardrail
5950
+ * @request PUT:/api/ai/admin/guardrails/{id}
5951
+ * @secure
5952
+ * @response `200` `AiGuardrail` Success
5953
+ * @response `400` `ProblemDetails` Bad Request
5954
+ * @response `404` `ProblemDetails` Not Found
5955
+ */
5956
+ updateAiGuardrail: (id: string, data: UpdateAiGuardrailRequest, params?: RequestParams) => Promise<AxiosResponse<AiGuardrail, any, {}>>;
5957
+ /**
5958
+ * No description
5959
+ *
5960
+ * @tags AiGuardrail
5961
+ * @name DeleteAiGuardrail
5962
+ * @summary Delete guardrail
5963
+ * @request DELETE:/api/ai/admin/guardrails/{id}
5964
+ * @secure
5965
+ * @response `204` `void` No Content
5966
+ * @response `400` `ProblemDetails` Bad Request
5967
+ * @response `404` `ProblemDetails` Not Found
5968
+ */
5969
+ deleteAiGuardrail: (id: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
5970
+ /**
5971
+ * No description
5972
+ *
5973
+ * @tags AiGuardrail
5974
+ * @name ToggleAiGuardrail
5975
+ * @summary Toggle guardrail enabled/disabled
5976
+ * @request PATCH:/api/ai/admin/guardrails/{id}/toggle
5977
+ * @secure
5978
+ * @response `200` `AiGuardrail` Success
5979
+ * @response `404` `ProblemDetails` Not Found
5980
+ */
5981
+ toggleAiGuardrail: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiGuardrail, any, {}>>;
5982
+ /**
5983
+ * No description
5984
+ *
5985
+ * @tags AiPrompt
5986
+ * @name GetAvailablePrompts
5987
+ * @summary Get available prompts for current user
5988
+ * @request GET:/api/ai/prompts
5989
+ * @secure
5990
+ * @response `200` `(AiPromptSummary)[]` Success
5991
+ */
5992
+ getAvailablePrompts: (query?: {
5993
+ documentType?: string;
5994
+ }, params?: RequestParams) => Promise<AxiosResponse<AiPromptSummary[], any, {}>>;
5354
5995
  /**
5355
5996
  * No description
5356
5997
  *
@@ -5372,10 +6013,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5372
6013
  * @summary Get Token
5373
6014
  * @request POST:/api/token
5374
6015
  * @secure
5375
- * @response `200` `Token` Success
6016
+ * @response `200` `ForcePasswordReset` Success
5376
6017
  * @response `422` `UnprocessableEntity` Client Error
5377
6018
  */
5378
- getToken: (data: TokenRequest, params?: RequestParams) => Promise<AxiosResponse<Token, any, {}>>;
6019
+ getToken: (data: TokenRequest, params?: RequestParams) => Promise<AxiosResponse<ForcePasswordReset, any, {}>>;
5379
6020
  /**
5380
6021
  * No description
5381
6022
  *
@@ -5384,22 +6025,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5384
6025
  * @summary Get Token From Challenge Code
5385
6026
  * @request POST:/api/token/code
5386
6027
  * @secure
5387
- * @response `200` `Token` Success
6028
+ * @response `200` `ForcePasswordReset` Success
5388
6029
  * @response `422` `UnprocessableEntity` Client Error
5389
6030
  */
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, {}>>;
6031
+ getTokenFromChallengeCode: (data: TokenChallengeRequest, params?: RequestParams) => Promise<AxiosResponse<ForcePasswordReset, any, {}>>;
5403
6032
  /**
5404
6033
  * No description
5405
6034
  *
@@ -8020,7 +8649,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8020
8649
  getPartners: (query?: {
8021
8650
  showAll?: boolean;
8022
8651
  /** @default "Realtor" */
8023
- role?: GetPartnersParamsRoleEnum;
8652
+ role?: "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "BranchManager" | "SystemAdmin";
8024
8653
  /** @format int32 */
8025
8654
  pageSize?: number;
8026
8655
  /** @format int32 */
@@ -8198,7 +8827,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8198
8827
  * @response `200` `File` Success
8199
8828
  * @response `404` `ProblemDetails` Not Found
8200
8829
  */
8201
- getSamlMetadata: (sSoIntegration: GetSamlMetadataParamsEnum, ssoIntegration: string, params?: RequestParams) => Promise<AxiosResponse<File, any, {}>>;
8830
+ getSamlMetadata: (sSoIntegration: "ConsumerConnect" | "TheBigPOS" | "POSF", ssoIntegration: string, params?: RequestParams) => Promise<AxiosResponse<File, any, {}>>;
8202
8831
  /**
8203
8832
  * No description
8204
8833
  *
@@ -8209,7 +8838,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8209
8838
  * @secure
8210
8839
  * @response `200` `File` Success
8211
8840
  */
8212
- createOrReplaceSamlMetadata: (sSoIntegration: CreateOrReplaceSamlMetadataParamsEnum, ssoIntegration: string, params?: RequestParams) => Promise<AxiosResponse<File, any, {}>>;
8841
+ createOrReplaceSamlMetadata: (sSoIntegration: "ConsumerConnect" | "TheBigPOS" | "POSF", ssoIntegration: string, params?: RequestParams) => Promise<AxiosResponse<File, any, {}>>;
8213
8842
  /**
8214
8843
  * No description
8215
8844
  *
@@ -8388,6 +9017,23 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8388
9017
  * @response `200` `void` Success
8389
9018
  */
8390
9019
  integrationsLosLoansCreate: (data: LosLoanCreationRequest, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
9020
+ /**
9021
+ * No description
9022
+ *
9023
+ * @tags TheBigPOS
9024
+ * @name SearchEncompassLogs
9025
+ * @request POST:/api/los/encompass/logs/{losId}/search
9026
+ * @secure
9027
+ * @response `200` `EncompassRequestLogPaginated` Success
9028
+ */
9029
+ searchEncompassLogs: (losId: string, query: {
9030
+ /** @format int32 */
9031
+ pageSize: number;
9032
+ /** @format int32 */
9033
+ pageNumber: number;
9034
+ sortBy?: string;
9035
+ sortDirection?: string;
9036
+ }, data: EncompassLogSearchCriteria, params?: RequestParams) => Promise<AxiosResponse<EncompassRequestLogPaginated, any, {}>>;
8391
9037
  /**
8392
9038
  * No description
8393
9039
  *