@matech/thebigpos-sdk 2.45.1-rc10 → 2.45.1-rc11

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
@@ -79,9 +79,7 @@ export type AiOutputType = "Text" | "Document";
79
79
  export type AiIntent = "Greeting" | "Invalid" | "Relevant" | "LoanSpecific" | "DocumentList" | "GeneralKnowledge" | "Blocked" | "Action" | "ConversationMeta" | "Capabilities" | "UsageReport";
80
80
  export type AiGuardrailCategory = "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
81
81
  export type AiDisplayHint = "Table" | "SummaryCards" | "RankedList" | "Comparison" | "ExecutiveBrief";
82
- export type AiConfigEntityType = "Prompt" | "Guardrail" | "CanonicalField" | "UrlSource" | "AdminSettings" | "AccountTokenSettings" | "AccountSettings";
83
- export type AiConfigChangeAction = "Created" | "Updated" | "Deleted" | "Toggled";
84
- export type AiAuditEventType = "Error" | "GuardrailBlockedPre" | "GuardrailPassedPre" | "IntentClassified" | "LoanResolvedFromMessage" | "DocumentNotFound" | "GuardrailBlockedPost" | "GuardrailPassedPost" | "DocumentAnalyzed" | "DocumentList" | "DocumentResolutionAmbiguous" | "ResponseGenerated" | "ParametersExtracted" | "QueryExecuted" | "LoanContextNotFound" | "LoanContextLoaded" | "GuardrailBlockedBedrock" | "PromptMatched" | "QueryCondensed" | "IntentParseFailed" | "LoanSearchTermDiscarded" | "CanonicalFieldsSelected";
82
+ export type AiAuditEventType = "Error" | "GuardrailBlockedPre" | "GuardrailPassedPre" | "IntentClassified" | "LoanResolvedFromMessage" | "DocumentNotFound" | "GuardrailBlockedPost" | "GuardrailPassedPost" | "DocumentAnalyzed" | "DocumentList" | "DocumentResolutionAmbiguous" | "ResponseGenerated" | "ParametersExtracted" | "QueryExecuted" | "LoanContextNotFound" | "LoanContextLoaded" | "GuardrailBlockedBedrock" | "PromptMatched" | "QueryCondensed" | "IntentParseFailed" | "LoanSearchTermDiscarded" | "CanonicalFieldsSelected" | "LoanAccessDenied";
85
83
  export type AddressFamily = "Unspecified" | "Unix" | "InterNetwork" | "ImpLink" | "Pup" | "Chaos" | "NS" | "Ipx" | "Iso" | "Osi" | "Ecma" | "DataKit" | "Ccitt" | "Sna" | "DecNet" | "DataLink" | "Lat" | "HyperChannel" | "AppleTalk" | "NetBios" | "VoiceView" | "FireFox" | "Banyan" | "Atm" | "InterNetworkV6" | "Cluster" | "Ieee12844" | "Irda" | "NetworkDesigners" | "Max" | "Packet" | "ControllerAreaNetwork" | "Unknown";
86
84
  export interface ASOSettings {
87
85
  enabled: boolean;
@@ -132,7 +130,7 @@ export interface AccountBilling {
132
130
  contractedRate: number;
133
131
  }
134
132
  export interface AccountBillingRequest {
135
- billingType: AccountBillingRequestBillingTypeEnum;
133
+ billingType: "ClosedLoan" | "LoanOfficer";
136
134
  /** @format double */
137
135
  contractedRate: number;
138
136
  }
@@ -161,7 +159,6 @@ export interface AccountSettings {
161
159
  smsNumber?: string | null;
162
160
  ssoHostOverride?: string | null;
163
161
  isEarlyAdopter: boolean;
164
- isAIEnabled: boolean;
165
162
  }
166
163
  export interface AccountSettingsRequest {
167
164
  isSmsEnabled: boolean;
@@ -175,7 +172,7 @@ export interface Action {
175
172
  comments?: string | null;
176
173
  /** @format uuid */
177
174
  siteConfigurationID: string;
178
- applicationSettings?: any | null;
175
+ applicationSettings?: any;
179
176
  surveysToken?: string | null;
180
177
  }
181
178
  export interface Address {
@@ -396,7 +393,7 @@ export interface AiAuditLog {
396
393
  conversationId?: string | null;
397
394
  /** @format uuid */
398
395
  messageId?: string | null;
399
- eventType: AiAuditLogEventTypeEnum;
396
+ eventType: "Error" | "GuardrailBlockedPre" | "GuardrailPassedPre" | "IntentClassified" | "LoanResolvedFromMessage" | "DocumentNotFound" | "GuardrailBlockedPost" | "GuardrailPassedPost" | "DocumentAnalyzed" | "DocumentList" | "DocumentResolutionAmbiguous" | "ResponseGenerated" | "ParametersExtracted" | "QueryExecuted" | "LoanContextNotFound" | "LoanContextLoaded" | "GuardrailBlockedBedrock" | "PromptMatched" | "QueryCondensed" | "IntentParseFailed" | "LoanSearchTermDiscarded" | "CanonicalFieldsSelected" | "LoanAccessDenied";
400
397
  modelId?: string | null;
401
398
  /** @format int32 */
402
399
  inputTokens?: number | null;
@@ -409,7 +406,7 @@ export interface AiAuditLog {
409
406
  guardrailCategory?: string | null;
410
407
  rawRequest?: string | null;
411
408
  rawResponse?: string | null;
412
- details?: any | null;
409
+ details?: any;
413
410
  /** @format date-time */
414
411
  createdAt: string;
415
412
  }
@@ -471,7 +468,7 @@ export interface AiChatMessagePaginated {
471
468
  count: number;
472
469
  }
473
470
  export interface AiChatMetadata {
474
- intent: AiChatMetadataIntentEnum;
471
+ intent: "Greeting" | "Invalid" | "Relevant" | "LoanSpecific" | "DocumentList" | "GeneralKnowledge" | "Blocked" | "Action" | "ConversationMeta" | "Capabilities" | "UsageReport";
475
472
  fieldsAccessed: string[];
476
473
  /** @format int64 */
477
474
  queryTimeMs: number;
@@ -497,7 +494,7 @@ export interface AiChatRequest {
497
494
  promptId?: string | null;
498
495
  }
499
496
  export interface AiChatStructuredData {
500
- type: AiChatStructuredDataTypeEnum;
497
+ type: "Table" | "DocumentAnalysis" | "DocumentList" | "GeneratedDocument";
501
498
  displayHint?: AiDisplayHint | null;
502
499
  detectedDocumentType?: string | null;
503
500
  columns: string[];
@@ -506,28 +503,6 @@ export interface AiChatStructuredData {
506
503
  generatedDocumentId?: string | null;
507
504
  generatedFileName?: string | null;
508
505
  }
509
- export interface AiConfigChangeLog {
510
- /** @format uuid */
511
- id: string;
512
- /** @format uuid */
513
- accountId?: string | null;
514
- /** @format uuid */
515
- actorUserId: string;
516
- entityType: AiConfigChangeLogEntityTypeEnum;
517
- /** @format uuid */
518
- entityId?: string | null;
519
- action: AiConfigChangeLogActionEnum;
520
- before?: any | null;
521
- after?: any | null;
522
- /** @format date-time */
523
- createdAt: string;
524
- }
525
- export interface AiConfigChangeLogPaginated {
526
- rows: AiConfigChangeLog[];
527
- pagination: Pagination;
528
- /** @format int64 */
529
- count: number;
530
- }
531
506
  export interface AiConversationAuditSummary {
532
507
  /** @format uuid */
533
508
  conversationId: string;
@@ -588,16 +563,19 @@ export interface AiConversationListItemPaginated {
588
563
  /** @format int64 */
589
564
  count: number;
590
565
  }
566
+ export interface AiEnabled {
567
+ isEnabled: boolean;
568
+ }
591
569
  export interface AiGuardrail {
592
570
  /** @format uuid */
593
571
  id: string;
594
572
  name: string;
595
- category: AiGuardrailCategoryEnum;
573
+ category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
596
574
  description?: string | null;
597
575
  keywords: string[];
598
576
  responseTemplate: string;
599
577
  isDefault: boolean;
600
- isEnabled: boolean;
578
+ isActive: boolean;
601
579
  hasAccountOverride: boolean;
602
580
  /** @format date-time */
603
581
  createdAt: string;
@@ -698,8 +676,8 @@ export interface AiUrlSource {
698
676
  name: string;
699
677
  url: string;
700
678
  description?: string | null;
701
- category: AiUrlSourceCategoryEnum;
702
- scope: AiUrlSourceScopeEnum;
679
+ category: "Regulatory" | "Guidelines" | "MarketData" | "Custom";
680
+ scope: "FullDomain" | "SpecificPath";
703
681
  isActive: boolean;
704
682
  isDefault: boolean;
705
683
  hasAccountOverride: boolean;
@@ -806,14 +784,14 @@ export interface AuditLogEntry {
806
784
  /** @format uuid */
807
785
  id: string;
808
786
  entityType: string;
809
- changeType: AuditLogEntryChangeTypeEnum;
787
+ changeType: "Created" | "Modified" | "SoftDeleted" | "HardDeleted" | "Restored" | "Deactivated" | "Reactivated";
810
788
  /** @format uuid */
811
789
  entityId: string;
812
790
  performedBy?: AuditLogUser | null;
813
791
  rootEntityType?: string | null;
814
792
  /** @format uuid */
815
793
  rootEntityId?: string | null;
816
- changes?: any | null;
794
+ changes?: any;
817
795
  /** @format date-time */
818
796
  createdAt: string;
819
797
  }
@@ -853,7 +831,7 @@ export interface BorrowerCount {
853
831
  firstName: string;
854
832
  lastName: string;
855
833
  email: string;
856
- role: BorrowerCountRoleEnum;
834
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
857
835
  /** @format int32 */
858
836
  count: number;
859
837
  }
@@ -863,7 +841,7 @@ export interface BorrowerIdentity {
863
841
  firstName: string;
864
842
  lastName: string;
865
843
  email: string;
866
- role: BorrowerIdentityRoleEnum;
844
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
867
845
  }
868
846
  export interface BorrowersNotUsingPosSummary {
869
847
  /** @format int32 */
@@ -1097,7 +1075,7 @@ export interface CorporateSearchCriteria {
1097
1075
  isActive?: boolean | null;
1098
1076
  }
1099
1077
  export interface CreateAccessScopeRequest {
1100
- scopeType: CreateAccessScopeRequestScopeTypeEnum;
1078
+ scopeType: "User" | "Branch";
1101
1079
  /** @format uuid */
1102
1080
  userId?: string | null;
1103
1081
  /** @format uuid */
@@ -1115,7 +1093,7 @@ export interface CreateAccountRequest {
1115
1093
  /** @format int64 */
1116
1094
  nlmsid: number;
1117
1095
  settings: AccountSettingsRequest;
1118
- environment: CreateAccountRequestEnvironmentEnum;
1096
+ environment: "Development" | "Staging" | "UAT" | "Production";
1119
1097
  losIntegration: LOSIntegration;
1120
1098
  billingSettings: AccountBillingRequest;
1121
1099
  }
@@ -1129,7 +1107,7 @@ export interface CreateAiCanonicalFieldRequest {
1129
1107
  }
1130
1108
  export interface CreateAiGuardrailRequest {
1131
1109
  name: string;
1132
- category: CreateAiGuardrailRequestCategoryEnum;
1110
+ category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
1133
1111
  description?: string | null;
1134
1112
  keywords: string[];
1135
1113
  responseTemplate: string;
@@ -1155,8 +1133,8 @@ export interface CreateAiUrlSourceRequest {
1155
1133
  name: string;
1156
1134
  url: string;
1157
1135
  description?: string | null;
1158
- category: CreateAiUrlSourceRequestCategoryEnum;
1159
- scope: CreateAiUrlSourceRequestScopeEnum;
1136
+ category: "Regulatory" | "Guidelines" | "MarketData" | "Custom";
1137
+ scope: "FullDomain" | "SpecificPath";
1160
1138
  }
1161
1139
  export interface CreateBranchRequest {
1162
1140
  name: string;
@@ -1179,8 +1157,8 @@ export interface CreateCustomFieldDefinitionRequest {
1179
1157
  name: string;
1180
1158
  defaultValue?: string | null;
1181
1159
  regexPattern?: string | null;
1182
- dataType: CreateCustomFieldDefinitionRequestDataTypeEnum;
1183
- entityType: CreateCustomFieldDefinitionRequestEntityTypeEnum;
1160
+ dataType: "String" | "Number" | "Decimal" | "Boolean" | "Date" | "SingleSelect" | "MultiSelect";
1161
+ entityType: "Loan";
1184
1162
  options?: CustomFieldOptionRequest[] | null;
1185
1163
  permissions?: CustomFieldPermissionRequest[] | null;
1186
1164
  }
@@ -1195,7 +1173,7 @@ export interface CreateDocumentTemplateRequest {
1195
1173
  export interface CreateGroupMemberRequest {
1196
1174
  /** @format uuid */
1197
1175
  userId: string;
1198
- loanRole: CreateGroupMemberRequestLoanRoleEnum;
1176
+ loanRole: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
1199
1177
  }
1200
1178
  export interface CreateInviteRequest {
1201
1179
  firstName: string;
@@ -1203,7 +1181,7 @@ export interface CreateInviteRequest {
1203
1181
  emailAddress: string;
1204
1182
  phoneNumber?: string | null;
1205
1183
  /** @deprecated */
1206
- relationship: CreateInviteRequestRelationshipEnum;
1184
+ relationship: "NotApplicable" | "Spouse" | "NonSpouse";
1207
1185
  loanID: string;
1208
1186
  route?: string | null;
1209
1187
  /** @format uuid */
@@ -1223,7 +1201,7 @@ export interface CreateLoanImportRequest {
1223
1201
  endDate: string;
1224
1202
  /** @format date-time */
1225
1203
  startDate: string;
1226
- importMode: CreateLoanImportRequestImportModeEnum;
1204
+ importMode: "All" | "NewOnly" | "UpdateOnly";
1227
1205
  }
1228
1206
  export interface CreateSession {
1229
1207
  sessionId: string;
@@ -1241,7 +1219,7 @@ export interface CreateUserDeviceRequest {
1241
1219
  token: string;
1242
1220
  }
1243
1221
  export interface CreateUserDraft {
1244
- loanRole: CreateUserDraftLoanRoleEnum;
1222
+ loanRole: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
1245
1223
  }
1246
1224
  export interface CreateUserGroupRequest {
1247
1225
  name: string;
@@ -1302,8 +1280,8 @@ export interface CustomFieldDefinition {
1302
1280
  name: string;
1303
1281
  defaultValue?: string | null;
1304
1282
  regexPattern?: string | null;
1305
- dataType: CustomFieldDefinitionDataTypeEnum;
1306
- entityType: CustomFieldDefinitionEntityTypeEnum;
1283
+ dataType: "String" | "Number" | "Decimal" | "Boolean" | "Date" | "SingleSelect" | "MultiSelect";
1284
+ entityType: "Loan";
1307
1285
  options: CustomFieldOption[];
1308
1286
  permissions: CustomFieldPermission[];
1309
1287
  encompassMapping?: EncompassMapping | null;
@@ -1317,7 +1295,7 @@ export interface CustomFieldEntry {
1317
1295
  displayOrder: number;
1318
1296
  name: string;
1319
1297
  value: string;
1320
- dataType: CustomFieldEntryDataTypeEnum;
1298
+ dataType: "String" | "Number" | "Decimal" | "Boolean" | "Date" | "SingleSelect" | "MultiSelect";
1321
1299
  }
1322
1300
  export interface CustomFieldOption {
1323
1301
  /** @format uuid */
@@ -1334,12 +1312,12 @@ export interface CustomFieldOptionRequest {
1334
1312
  export interface CustomFieldPermission {
1335
1313
  /** @format uuid */
1336
1314
  id: string;
1337
- role: CustomFieldPermissionRoleEnum;
1338
- accessLevel: CustomFieldPermissionAccessLevelEnum;
1315
+ role: "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "SystemAdmin";
1316
+ accessLevel: "NoAccess" | "ReadOnly" | "ReadWrite";
1339
1317
  }
1340
1318
  export interface CustomFieldPermissionRequest {
1341
- role: CustomFieldPermissionRequestRoleEnum;
1342
- accessLevel: CustomFieldPermissionRequestAccessLevelEnum;
1319
+ role: "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "SystemAdmin";
1320
+ accessLevel: "NoAccess" | "ReadOnly" | "ReadWrite";
1343
1321
  }
1344
1322
  export interface CustomFieldValue {
1345
1323
  /** @format uuid */
@@ -1350,7 +1328,7 @@ export interface CustomFieldValue {
1350
1328
  customFieldDefinitionID: string;
1351
1329
  value: string;
1352
1330
  definitionName: string;
1353
- dataType: CustomFieldValueDataTypeEnum;
1331
+ dataType: "String" | "Number" | "Decimal" | "Boolean" | "Date" | "SingleSelect" | "MultiSelect";
1354
1332
  }
1355
1333
  export interface DetailedUser {
1356
1334
  /** @format date-time */
@@ -1588,7 +1566,7 @@ export interface Draft {
1588
1566
  siteConfiguration: SiteConfigurationReduced;
1589
1567
  /** @format uuid */
1590
1568
  loanID?: string | null;
1591
- type: DraftTypeEnum;
1569
+ type: "NewLoan" | "EditLoan";
1592
1570
  isCoBorrower: boolean;
1593
1571
  }
1594
1572
  export interface DraftContent {
@@ -1606,7 +1584,7 @@ export interface DraftContent {
1606
1584
  siteConfiguration: SiteConfigurationReduced;
1607
1585
  /** @format uuid */
1608
1586
  loanID?: string | null;
1609
- type: DraftContentTypeEnum;
1587
+ type: "NewLoan" | "EditLoan";
1610
1588
  isCoBorrower: boolean;
1611
1589
  applicationPayload: any;
1612
1590
  }
@@ -1622,7 +1600,7 @@ export interface DraftLoanOfficerReassignRequest {
1622
1600
  }
1623
1601
  export interface DraftRequest {
1624
1602
  applicationPayload: any;
1625
- customData?: any | null;
1603
+ customData?: any;
1626
1604
  isCoBorrower: boolean;
1627
1605
  }
1628
1606
  export interface EconsentPendingSummary {
@@ -1696,9 +1674,9 @@ export interface EncompassCredentialsDetail {
1696
1674
  clearStateIfUnlicensed: boolean;
1697
1675
  /** @deprecated */
1698
1676
  baseUrl?: string | null;
1699
- encompassEnvironment: EncompassCredentialsDetailEncompassEnvironmentEnum;
1677
+ encompassEnvironment: "Production" | "UAT";
1700
1678
  consumerConnectWidgetHost?: string | null;
1701
- signingMethod: EncompassCredentialsDetailSigningMethodEnum;
1679
+ signingMethod: "ConsumerConnect" | "POSF";
1702
1680
  subscriptionId?: string | null;
1703
1681
  environment?: string | null;
1704
1682
  }
@@ -1714,9 +1692,9 @@ export interface EncompassCredentialsRequest {
1714
1692
  clearStateIfUnlicensed: boolean;
1715
1693
  /** @deprecated */
1716
1694
  baseUrl?: string | null;
1717
- encompassEnvironment: EncompassCredentialsRequestEncompassEnvironmentEnum;
1695
+ encompassEnvironment: "Production" | "UAT";
1718
1696
  consumerConnectWidgetHost?: string | null;
1719
- signingMethod: EncompassCredentialsRequestSigningMethodEnum;
1697
+ signingMethod: "ConsumerConnect" | "POSF";
1720
1698
  subscriptionId?: string | null;
1721
1699
  environment?: string | null;
1722
1700
  clientID?: string | null;
@@ -1826,8 +1804,8 @@ export interface EncompassRequestLog {
1826
1804
  losId?: string | null;
1827
1805
  /** @format uuid */
1828
1806
  accountId: string;
1829
- operationType: EncompassRequestLogOperationTypeEnum;
1830
- outcome: EncompassRequestLogOutcomeEnum;
1807
+ operationType: "FieldUpdate" | "ConsentUpdate" | "DocumentSync" | "MilestoneUpdate" | "DocumentAttachment" | "General" | "FieldReader";
1808
+ outcome: "Success" | "Failure" | "PartialSuccess";
1831
1809
  message: string;
1832
1810
  endpoint?: string | null;
1833
1811
  httpMethod?: string | null;
@@ -1835,7 +1813,7 @@ export interface EncompassRequestLog {
1835
1813
  httpStatusCode?: number | null;
1836
1814
  /** @format int64 */
1837
1815
  durationMs?: number | null;
1838
- context?: any | null;
1816
+ context?: any;
1839
1817
  /** @format date-time */
1840
1818
  createdAt: string;
1841
1819
  }
@@ -1874,7 +1852,7 @@ export interface FileSearchCriteria {
1874
1852
  export interface FileWithBytes {
1875
1853
  name: string;
1876
1854
  /** @format byte */
1877
- data: Blob;
1855
+ data: string;
1878
1856
  fileName: string;
1879
1857
  mimeType?: string | null;
1880
1858
  extension?: string | null;
@@ -1950,7 +1928,7 @@ export interface FormSubmission {
1950
1928
  subjectPropertyAddressCounty?: string | null;
1951
1929
  subjectPropertyAddressState?: string | null;
1952
1930
  subjectPropertyAddressZip?: string | null;
1953
- data?: any | null;
1931
+ data?: any;
1954
1932
  /** @format uuid */
1955
1933
  listingID?: string | null;
1956
1934
  listing?: Listing | null;
@@ -1985,7 +1963,7 @@ export interface FormSubmissionRequest {
1985
1963
  subjectPropertyAddressCounty?: string | null;
1986
1964
  subjectPropertyAddressState?: string | null;
1987
1965
  subjectPropertyAddressZip?: string | null;
1988
- data?: any | null;
1966
+ data?: any;
1989
1967
  /** @format uuid */
1990
1968
  listingID?: string | null;
1991
1969
  }
@@ -2034,7 +2012,7 @@ export interface FusionFieldDisplay {
2034
2012
  fieldValue: string;
2035
2013
  }
2036
2014
  export interface FusionReportFilter {
2037
- filterType: FusionReportFilterFilterTypeEnum;
2015
+ filterType: "DateGreaterThanOrEqualTo" | "DateGreaterThan" | "DateLessThan" | "DateLessThanOrEqualTo" | "DateEquals" | "DateDoesntEqual" | "DateNonEmpty" | "DateEmpty" | "StringContains" | "StringEquals" | "StringNotEmpty" | "StringNotEquals" | "StringNotContains";
2038
2016
  targetField: string;
2039
2017
  targetValue: string;
2040
2018
  }
@@ -2054,7 +2032,7 @@ export interface GenerateSystemPrompt {
2054
2032
  }
2055
2033
  export interface GenerateSystemPromptRequest {
2056
2034
  description: string;
2057
- category: GenerateSystemPromptRequestCategoryEnum;
2035
+ category: "DocumentAnalysis" | "DataQuery" | "General" | "Action";
2058
2036
  }
2059
2037
  export interface GetApplications {
2060
2038
  applications: ApplicationRowData[];
@@ -2138,11 +2116,11 @@ export interface GetWorkflowRequest {
2138
2116
  export interface GuidPatchOperation {
2139
2117
  op: string;
2140
2118
  path: string;
2141
- value?: any | null;
2119
+ value?: any;
2142
2120
  from?: string | null;
2143
2121
  }
2144
2122
  export interface IPAddress {
2145
- addressFamily: IpAddressAddressFamilyEnum;
2123
+ 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";
2146
2124
  /** @format int64 */
2147
2125
  scopeId: number;
2148
2126
  isIPv6Multicast: boolean;
@@ -2391,7 +2369,7 @@ export interface Loan {
2391
2369
  contacts: LoanContact[];
2392
2370
  customFields: CustomFieldEntry[];
2393
2371
  milestones: LoanMilestone[];
2394
- signingMethod: LoanSigningMethodEnum;
2372
+ signingMethod: "ConsumerConnect" | "POSF";
2395
2373
  }
2396
2374
  export interface LoanApplication {
2397
2375
  /** @format uuid */
@@ -2429,7 +2407,7 @@ export interface LoanApplicationRequest {
2429
2407
  nonOwningBorrowers: LoanNonOwningBorrowerRequest[];
2430
2408
  /** @format uuid */
2431
2409
  draftId?: string | null;
2432
- additionalFields?: Record<string, any> | null;
2410
+ additionalFields?: Record<string, any>;
2433
2411
  /** @format uuid */
2434
2412
  existingLoanId?: string | null;
2435
2413
  }
@@ -2448,7 +2426,7 @@ export interface LoanBorrower {
2448
2426
  citizenship?: LoanCitizenship | null;
2449
2427
  maritalStatus?: LoanMaritalStatus | null;
2450
2428
  languagePreference?: LoanLanguagePreference | null;
2451
- applicationStatus: LoanBorrowerApplicationStatusEnum;
2429
+ applicationStatus: "Draft" | "Complete";
2452
2430
  /** @format int32 */
2453
2431
  numberOfDependents?: number | null;
2454
2432
  /** @format int32 */
@@ -3174,7 +3152,7 @@ export interface LoanConsentRequest {
3174
3152
  borrowerEConsent?: boolean | null;
3175
3153
  borrowerCreditAuth?: boolean | null;
3176
3154
  borrowerTCPAOptIn?: boolean | null;
3177
- additionalFields?: Record<string, string> | null;
3155
+ additionalFields?: Record<string, string>;
3178
3156
  }
3179
3157
  export interface LoanContact {
3180
3158
  /** @format date-time */
@@ -3192,7 +3170,7 @@ export interface LoanContact {
3192
3170
  email?: string | null;
3193
3171
  phone?: string | null;
3194
3172
  companyName?: string | null;
3195
- role: LoanContactRoleEnum;
3173
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
3196
3174
  }
3197
3175
  export interface LoanContactList {
3198
3176
  email: string;
@@ -3214,7 +3192,7 @@ export interface LoanCostDetails {
3214
3192
  totalFinancing?: number | null;
3215
3193
  }
3216
3194
  export interface LoanCustomFieldsRequest {
3217
- additionalFields?: Record<string, string> | null;
3195
+ additionalFields?: Record<string, string>;
3218
3196
  }
3219
3197
  export interface LoanDocument {
3220
3198
  /** @format date-time */
@@ -3264,12 +3242,12 @@ export interface LoanDocumentFolderPermission {
3264
3242
  id: string;
3265
3243
  /** @format uuid */
3266
3244
  loanDocumentFolderID: string;
3267
- role: LoanDocumentFolderPermissionRoleEnum;
3268
- level: LoanDocumentFolderPermissionLevelEnum;
3245
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
3246
+ level: "None" | "Read" | "Write" | "Manage";
3269
3247
  }
3270
3248
  export interface LoanDocumentFolderPermissionRequest {
3271
- role: LoanDocumentFolderPermissionRequestRoleEnum;
3272
- level: LoanDocumentFolderPermissionRequestLevelEnum;
3249
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
3250
+ level: "None" | "Read" | "Write" | "Manage";
3273
3251
  }
3274
3252
  export interface LoanDocumentFolderUsage {
3275
3253
  /** @format uuid */
@@ -3403,13 +3381,13 @@ export interface LoanImport {
3403
3381
  /** @format int32 */
3404
3382
  importedCount: number;
3405
3383
  statusMessage?: string | null;
3406
- status: LoanImportStatusEnum;
3407
- importMode: LoanImportImportModeEnum;
3384
+ status: "WaitingProcess" | "InProgress" | "Completed" | "Failed" | "Cancelled";
3385
+ importMode: "All" | "NewOnly" | "UpdateOnly";
3408
3386
  /** @format date-time */
3409
3387
  createdAt?: string | null;
3410
3388
  }
3411
3389
  export interface LoanImportLog {
3412
- level: LoanImportLogLevelEnum;
3390
+ level: "None" | "Info" | "Warning" | "Error";
3413
3391
  message: string;
3414
3392
  /** @format date-time */
3415
3393
  createdAt: string;
@@ -3464,8 +3442,8 @@ export interface LoanListPaginated {
3464
3442
  export interface LoanLog {
3465
3443
  /** @format uuid */
3466
3444
  id: string;
3467
- level: LoanLogLevelEnum;
3468
- type: LoanLogTypeEnum;
3445
+ level: "None" | "Info" | "Warning" | "Error";
3446
+ type: "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent" | "DocumentClassified";
3469
3447
  message: string;
3470
3448
  /** @format date-time */
3471
3449
  createdAt: string;
@@ -3473,8 +3451,8 @@ export interface LoanLog {
3473
3451
  export interface LoanLogDetail {
3474
3452
  /** @format uuid */
3475
3453
  id: string;
3476
- level: LoanLogDetailLevelEnum;
3477
- type: LoanLogDetailTypeEnum;
3454
+ level: "None" | "Info" | "Warning" | "Error";
3455
+ type: "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent" | "DocumentClassified";
3478
3456
  message: string;
3479
3457
  /** @format date-time */
3480
3458
  createdAt: string;
@@ -3736,7 +3714,7 @@ export interface LoanQueueWithData {
3736
3714
  user: UserPublic;
3737
3715
  loanOfficer: LoanOfficerPublic;
3738
3716
  siteConfiguration: SiteConfigurationReduced;
3739
- data?: any | null;
3717
+ data?: any;
3740
3718
  }
3741
3719
  export interface LoanRecord {
3742
3720
  loanGuid: string;
@@ -3767,7 +3745,7 @@ export interface LoanTaskSearchRequest {
3767
3745
  loanStatus?: LoanTaskActivityFilter | null;
3768
3746
  }
3769
3747
  export interface LoanTaskStatusSummary {
3770
- status: LoanTaskStatusSummaryStatusEnum;
3748
+ status: "Outstanding" | "Pending" | "Completed" | "Rejected" | "Unknown";
3771
3749
  /** @format int32 */
3772
3750
  count: number;
3773
3751
  }
@@ -3779,7 +3757,7 @@ export interface LoanUser {
3779
3757
  email: string;
3780
3758
  phone?: string | null;
3781
3759
  role: string;
3782
- loanRole: LoanUserLoanRoleEnum;
3760
+ loanRole: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
3783
3761
  isUser: boolean;
3784
3762
  /** @format date-time */
3785
3763
  createdAt: string;
@@ -3812,7 +3790,7 @@ export interface LosOperationTracking {
3812
3790
  operationType: string;
3813
3791
  correlationKey: string;
3814
3792
  lastTriggerSource?: string | null;
3815
- status: LosOperationTrackingStatusEnum;
3793
+ status: "Pending" | "Success" | "Failed" | "ConfigurationError" | "PermanentFailure" | "Locked";
3816
3794
  /** @format date-time */
3817
3795
  createdAt: string;
3818
3796
  /** @format date-time */
@@ -3873,7 +3851,7 @@ export interface LosSyncStep {
3873
3851
  /** @format int32 */
3874
3852
  order: number;
3875
3853
  name: string;
3876
- severity: LosSyncStepSeverityEnum;
3854
+ severity: "Success" | "Info" | "Warning" | "Error";
3877
3855
  message: string;
3878
3856
  /** @format date-time */
3879
3857
  atUtc: string;
@@ -3887,7 +3865,7 @@ export interface LosWebhook {
3887
3865
  enableSubscription: boolean;
3888
3866
  }
3889
3867
  export interface ManualDocumentClassificationRequest {
3890
- documentType: ManualDocumentClassificationRequestDocumentTypeEnum;
3868
+ documentType: "W2" | "Paystub" | "Form1099" | "Form1099Int" | "Form1099Misc" | "Form1099Nec" | "Form1099R" | "Form1099G" | "Form1099Div" | "Form1099Ssa" | "FederalTaxReturn1040" | "TaxReturnScheduleC" | "TaxReturnScheduleD" | "TaxReturnScheduleE" | "Form1065" | "Form1120" | "Form1120S" | "ProfitAndLossStatement" | "VerificationOfEmployment" | "BankStatement" | "InvestmentStatement" | "CreditCardStatement" | "MortgageStatement" | "PayoffStatement" | "HoaDocuments" | "UtilityBill" | "IdentityDocument" | "DemographicAddendum" | "Ssa89" | "Vba260551" | "Hud92900B" | "Check" | "Invoice" | "Receipt" | "LoanApplication1003" | "UnderwritingTransmittal1008" | "Other" | "SalesContract" | "TitleCommitment" | "DriversLicense" | "VerificationOfIncome" | "VerificationOfAssets" | "FloodCertificate" | "FraudReport" | "AddendumToSalesContract" | "GiftLetter" | "CpaLetter" | "TaxBill" | "CondoQuestionnaire" | "CondoBudget" | "CondoBylaws" | "RentalAgreements" | "Lease" | "HazardInsurance" | "VaCertificateOfEligibility" | "Appraisal" | "CreditReport" | "CondoMasterPolicy";
3891
3869
  }
3892
3870
  export interface MdmUser {
3893
3871
  user_email?: string | null;
@@ -3966,7 +3944,7 @@ export interface ModuleParameterValue {
3966
3944
  parameterID: string;
3967
3945
  parameterName: string;
3968
3946
  parameterType: string;
3969
- value?: any | null;
3947
+ value?: any;
3970
3948
  isInherited: boolean;
3971
3949
  }
3972
3950
  export interface MonthlyPaymentCalculator {
@@ -4139,7 +4117,7 @@ export interface NotificationTemplateVersionUpdateRequest {
4139
4117
  }
4140
4118
  export interface Operation {
4141
4119
  op?: string;
4142
- value?: object | null;
4120
+ value?: string | number | boolean | null | object;
4143
4121
  path?: string;
4144
4122
  }
4145
4123
  export interface OverridePasswordRequest {
@@ -4465,7 +4443,7 @@ export interface SiteConfiguration {
4465
4443
  deletedAt?: string | null;
4466
4444
  /** @format uuid */
4467
4445
  id: string;
4468
- type: SiteConfigurationTypeEnum;
4446
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4469
4447
  /** @format uuid */
4470
4448
  entityID: string;
4471
4449
  /** @format int32 */
@@ -4658,7 +4636,7 @@ export interface SiteConfigurationByUrl {
4658
4636
  deletedAt?: string | null;
4659
4637
  /** @format uuid */
4660
4638
  id: string;
4661
- type: SiteConfigurationByUrlTypeEnum;
4639
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4662
4640
  /** @format uuid */
4663
4641
  entityID: string;
4664
4642
  /** @format int32 */
@@ -4868,7 +4846,7 @@ export interface SiteConfigurationForm {
4868
4846
  export interface SiteConfigurationReduced {
4869
4847
  /** @format uuid */
4870
4848
  id: string;
4871
- type: SiteConfigurationReducedTypeEnum;
4849
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4872
4850
  url?: string | null;
4873
4851
  name: string;
4874
4852
  /** @format int64 */
@@ -4885,7 +4863,7 @@ export interface SiteConfigurationRequest {
4885
4863
  entityID: string;
4886
4864
  /** @format int32 */
4887
4865
  entityType: number;
4888
- type: SiteConfigurationRequestTypeEnum;
4866
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
4889
4867
  url: string;
4890
4868
  name: string;
4891
4869
  introduction?: string | null;
@@ -5060,7 +5038,7 @@ export interface SiteConfigurationSearchCriteria {
5060
5038
  export interface SiteConfigurationSummary {
5061
5039
  /** @format uuid */
5062
5040
  id: string;
5063
- type: SiteConfigurationSummaryTypeEnum;
5041
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5064
5042
  url?: string | null;
5065
5043
  name: string;
5066
5044
  /** @format int64 */
@@ -5314,7 +5292,7 @@ export interface UnregisteredBorrower {
5314
5292
  lastName?: string | null;
5315
5293
  fullName?: string | null;
5316
5294
  email?: string | null;
5317
- role: UnregisteredBorrowerRoleEnum;
5295
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5318
5296
  }
5319
5297
  export interface UpdateAccountRequest {
5320
5298
  name: string;
@@ -5338,7 +5316,7 @@ export interface UpdateAiCanonicalFieldRequest {
5338
5316
  }
5339
5317
  export interface UpdateAiGuardrailRequest {
5340
5318
  name: string;
5341
- category: UpdateAiGuardrailRequestCategoryEnum;
5319
+ category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
5342
5320
  description?: string | null;
5343
5321
  keywords: string[];
5344
5322
  responseTemplate: string;
@@ -5363,8 +5341,8 @@ export interface UpdateAiUrlSourceRequest {
5363
5341
  name: string;
5364
5342
  url: string;
5365
5343
  description?: string | null;
5366
- category: UpdateAiUrlSourceRequestCategoryEnum;
5367
- scope: UpdateAiUrlSourceRequestScopeEnum;
5344
+ category: "Regulatory" | "Guidelines" | "MarketData" | "Custom";
5345
+ scope: "FullDomain" | "SpecificPath";
5368
5346
  }
5369
5347
  export interface UpdateCustomFieldDefinitionRequest {
5370
5348
  isRequired: boolean;
@@ -5651,7 +5629,7 @@ export interface UserDevice {
5651
5629
  export interface UserDraft {
5652
5630
  /** @format uuid */
5653
5631
  draftID: string;
5654
- role: UserDraftRoleEnum;
5632
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5655
5633
  user: User;
5656
5634
  }
5657
5635
  export interface UserDraftPaginated {
@@ -5675,7 +5653,7 @@ export interface UserGroupAccessScope {
5675
5653
  id: string;
5676
5654
  /** @format uuid */
5677
5655
  groupId: string;
5678
- scopeType: UserGroupAccessScopeScopeTypeEnum;
5656
+ scopeType: "User" | "Branch";
5679
5657
  /** @format uuid */
5680
5658
  userId?: string | null;
5681
5659
  /** @format uuid */
@@ -5708,7 +5686,7 @@ export interface UserLoan {
5708
5686
  deletedAt?: string | null;
5709
5687
  loanID: string;
5710
5688
  user: User;
5711
- role: UserLoanRoleEnum;
5689
+ role: "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5712
5690
  /** @format int32 */
5713
5691
  borrowerPair?: number | null;
5714
5692
  /** @format int32 */
@@ -5720,11 +5698,11 @@ export interface UserLoanConsent {
5720
5698
  id: string;
5721
5699
  /** @format uuid */
5722
5700
  userLoanID: string;
5723
- type: UserLoanConsentTypeEnum;
5701
+ type: "Econsent" | "CreditAuthorization" | "Tcpa";
5724
5702
  providedConsent: boolean;
5725
5703
  source?: ConsentSource | null;
5726
5704
  ipAddress?: string | null;
5727
- losSyncStatus: UserLoanConsentLosSyncStatusEnum;
5705
+ losSyncStatus: "NotStarted" | "Failed" | "Success";
5728
5706
  /** @format date-time */
5729
5707
  createdAt: string;
5730
5708
  /** @format date-time */
@@ -5854,7 +5832,7 @@ export interface UserSummary {
5854
5832
  id: string;
5855
5833
  name?: string | null;
5856
5834
  email?: string | null;
5857
- role: UserSummaryRoleEnum;
5835
+ role: "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "SystemAdmin";
5858
5836
  }
5859
5837
  export interface VerifyPasswordRequest {
5860
5838
  email: string;
@@ -5881,90 +5859,6 @@ export interface Workflow {
5881
5859
  tileSubtitle: string;
5882
5860
  icon: string;
5883
5861
  }
5884
- export type AccountBillingRequestBillingTypeEnum = "ClosedLoan" | "LoanOfficer";
5885
- export type AiAuditLogEventTypeEnum = "Error" | "GuardrailBlockedPre" | "GuardrailPassedPre" | "IntentClassified" | "LoanResolvedFromMessage" | "DocumentNotFound" | "GuardrailBlockedPost" | "GuardrailPassedPost" | "DocumentAnalyzed" | "DocumentList" | "DocumentResolutionAmbiguous" | "ResponseGenerated" | "ParametersExtracted" | "QueryExecuted" | "LoanContextNotFound" | "LoanContextLoaded" | "GuardrailBlockedBedrock" | "PromptMatched" | "QueryCondensed" | "IntentParseFailed" | "LoanSearchTermDiscarded" | "CanonicalFieldsSelected";
5886
- export type AiChatMetadataIntentEnum = "Greeting" | "Invalid" | "Relevant" | "LoanSpecific" | "DocumentList" | "GeneralKnowledge" | "Blocked" | "Action" | "ConversationMeta" | "Capabilities" | "UsageReport";
5887
- export type AiChatStructuredDataTypeEnum = "Table" | "DocumentAnalysis" | "DocumentList" | "GeneratedDocument";
5888
- export type AiConfigChangeLogEntityTypeEnum = "Prompt" | "Guardrail" | "CanonicalField" | "UrlSource" | "AdminSettings" | "AccountTokenSettings" | "AccountSettings";
5889
- export type AiConfigChangeLogActionEnum = "Created" | "Updated" | "Deleted" | "Toggled";
5890
- export type AiGuardrailCategoryEnum = "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
5891
- export type AiUrlSourceCategoryEnum = "Regulatory" | "Guidelines" | "MarketData" | "Custom";
5892
- export type AiUrlSourceScopeEnum = "FullDomain" | "SpecificPath";
5893
- export type AuditLogEntryChangeTypeEnum = "Created" | "Modified" | "SoftDeleted" | "HardDeleted" | "Restored" | "Deactivated" | "Reactivated";
5894
- export type BorrowerCountRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5895
- export type BorrowerIdentityRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5896
- export type CreateAccessScopeRequestScopeTypeEnum = "User" | "Branch";
5897
- export type CreateAccountRequestEnvironmentEnum = "Development" | "Staging" | "UAT" | "Production";
5898
- export type CreateAiGuardrailRequestCategoryEnum = "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
5899
- export type CreateAiUrlSourceRequestCategoryEnum = "Regulatory" | "Guidelines" | "MarketData" | "Custom";
5900
- export type CreateAiUrlSourceRequestScopeEnum = "FullDomain" | "SpecificPath";
5901
- export type CreateCustomFieldDefinitionRequestDataTypeEnum = "String" | "Number" | "Decimal" | "Boolean" | "Date" | "SingleSelect" | "MultiSelect";
5902
- export type CreateCustomFieldDefinitionRequestEntityTypeEnum = "Loan";
5903
- export type CreateGroupMemberRequestLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5904
- /** @deprecated */
5905
- export type CreateInviteRequestRelationshipEnum = "NotApplicable" | "Spouse" | "NonSpouse";
5906
- export type CreateLoanImportRequestImportModeEnum = "All" | "NewOnly" | "UpdateOnly";
5907
- export type CreateUserDraftLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5908
- export type CustomFieldDefinitionDataTypeEnum = "String" | "Number" | "Decimal" | "Boolean" | "Date" | "SingleSelect" | "MultiSelect";
5909
- export type CustomFieldDefinitionEntityTypeEnum = "Loan";
5910
- export type CustomFieldEntryDataTypeEnum = "String" | "Number" | "Decimal" | "Boolean" | "Date" | "SingleSelect" | "MultiSelect";
5911
- export type CustomFieldPermissionRoleEnum = "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "SystemAdmin";
5912
- export type CustomFieldPermissionAccessLevelEnum = "NoAccess" | "ReadOnly" | "ReadWrite";
5913
- export type CustomFieldPermissionRequestRoleEnum = "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "SystemAdmin";
5914
- export type CustomFieldPermissionRequestAccessLevelEnum = "NoAccess" | "ReadOnly" | "ReadWrite";
5915
- export type CustomFieldValueDataTypeEnum = "String" | "Number" | "Decimal" | "Boolean" | "Date" | "SingleSelect" | "MultiSelect";
5916
- export type DraftTypeEnum = "NewLoan" | "EditLoan";
5917
- export type DraftContentTypeEnum = "NewLoan" | "EditLoan";
5918
- export type EncompassCredentialsDetailEncompassEnvironmentEnum = "Production" | "UAT";
5919
- export type EncompassCredentialsDetailSigningMethodEnum = "ConsumerConnect" | "POSF";
5920
- export type EncompassCredentialsRequestEncompassEnvironmentEnum = "Production" | "UAT";
5921
- export type EncompassCredentialsRequestSigningMethodEnum = "ConsumerConnect" | "POSF";
5922
- export type EncompassRequestLogOperationTypeEnum = "FieldUpdate" | "ConsentUpdate" | "DocumentSync" | "MilestoneUpdate" | "DocumentAttachment" | "General" | "FieldReader";
5923
- export type EncompassRequestLogOutcomeEnum = "Success" | "Failure" | "PartialSuccess";
5924
- export type FusionReportFilterFilterTypeEnum = "DateGreaterThanOrEqualTo" | "DateGreaterThan" | "DateLessThan" | "DateLessThanOrEqualTo" | "DateEquals" | "DateDoesntEqual" | "DateNonEmpty" | "DateEmpty" | "StringContains" | "StringEquals" | "StringNotEmpty" | "StringNotEquals" | "StringNotContains";
5925
- export type GenerateSystemPromptRequestCategoryEnum = "DocumentAnalysis" | "DataQuery" | "General" | "Action";
5926
- 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";
5927
- export type LoanSigningMethodEnum = "ConsumerConnect" | "POSF";
5928
- export type LoanBorrowerApplicationStatusEnum = "Draft" | "Complete";
5929
- export type LoanContactRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5930
- export type LoanDocumentFolderPermissionRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5931
- export type LoanDocumentFolderPermissionLevelEnum = "None" | "Read" | "Write" | "Manage";
5932
- export type LoanDocumentFolderPermissionRequestRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5933
- export type LoanDocumentFolderPermissionRequestLevelEnum = "None" | "Read" | "Write" | "Manage";
5934
- export type LoanImportStatusEnum = "WaitingProcess" | "InProgress" | "Completed" | "Failed" | "Cancelled";
5935
- export type LoanImportImportModeEnum = "All" | "NewOnly" | "UpdateOnly";
5936
- export type LoanImportLogLevelEnum = "None" | "Info" | "Warning" | "Error";
5937
- export type LoanLogLevelEnum = "None" | "Info" | "Warning" | "Error";
5938
- export type LoanLogTypeEnum = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent" | "DocumentClassified";
5939
- export type LoanLogDetailLevelEnum = "None" | "Info" | "Warning" | "Error";
5940
- export type LoanLogDetailTypeEnum = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent" | "DocumentClassified";
5941
- export type LoanTaskStatusSummaryStatusEnum = "Outstanding" | "Pending" | "Completed" | "Rejected" | "Unknown";
5942
- export type LoanUserLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5943
- export type LosOperationTrackingStatusEnum = "Pending" | "Success" | "Failed" | "ConfigurationError" | "PermanentFailure" | "Locked";
5944
- export type LosSyncStepSeverityEnum = "Success" | "Info" | "Warning" | "Error";
5945
- export type ManualDocumentClassificationRequestDocumentTypeEnum = "W2" | "Paystub" | "Form1099" | "Form1099Int" | "Form1099Misc" | "Form1099Nec" | "Form1099R" | "Form1099G" | "Form1099Div" | "Form1099Ssa" | "FederalTaxReturn1040" | "TaxReturnScheduleC" | "TaxReturnScheduleD" | "TaxReturnScheduleE" | "Form1065" | "Form1120" | "Form1120S" | "ProfitAndLossStatement" | "VerificationOfEmployment" | "BankStatement" | "InvestmentStatement" | "CreditCardStatement" | "MortgageStatement" | "PayoffStatement" | "HoaDocuments" | "UtilityBill" | "IdentityDocument" | "DemographicAddendum" | "Ssa89" | "Vba260551" | "Hud92900B" | "Check" | "Invoice" | "Receipt" | "LoanApplication1003" | "UnderwritingTransmittal1008" | "Other" | "SalesContract" | "TitleCommitment" | "DriversLicense" | "VerificationOfIncome" | "VerificationOfAssets" | "FloodCertificate" | "FraudReport" | "AddendumToSalesContract" | "GiftLetter" | "CpaLetter" | "TaxBill" | "CondoQuestionnaire" | "CondoBudget" | "CondoBylaws" | "RentalAgreements" | "Lease" | "HazardInsurance" | "VaCertificateOfEligibility" | "Appraisal" | "CreditReport" | "CondoMasterPolicy";
5946
- export type SiteConfigurationTypeEnum = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5947
- export type SiteConfigurationByUrlTypeEnum = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5948
- export type SiteConfigurationReducedTypeEnum = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5949
- export type SiteConfigurationRequestTypeEnum = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5950
- export type SiteConfigurationSummaryTypeEnum = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5951
- export type UnregisteredBorrowerRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5952
- export type UpdateAiGuardrailRequestCategoryEnum = "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
5953
- export type UpdateAiUrlSourceRequestCategoryEnum = "Regulatory" | "Guidelines" | "MarketData" | "Custom";
5954
- export type UpdateAiUrlSourceRequestScopeEnum = "FullDomain" | "SpecificPath";
5955
- export type UserDraftRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5956
- export type UserGroupAccessScopeScopeTypeEnum = "User" | "Branch";
5957
- export type UserLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5958
- export type UserLoanConsentTypeEnum = "Econsent" | "CreditAuthorization" | "Tcpa";
5959
- export type UserLoanConsentLosSyncStatusEnum = "NotStarted" | "Failed" | "Success";
5960
- export type UserSummaryRoleEnum = "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "SystemAdmin";
5961
- export type GetCustomFieldDefinitionsParamsEntityTypeEnum = "Loan";
5962
- /** @default "Realtor" */
5963
- export type GetPartnersParamsRoleEnum = "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "SystemAdmin";
5964
- export type GetSamlMetadataParamsSSoIntegrationEnum = "ConsumerConnect" | "TheBigPOS" | "POSF";
5965
- export type GetSamlMetadataParamsEnum = "ConsumerConnect" | "TheBigPOS" | "POSF";
5966
- export type CreateOrReplaceSamlMetadataParamsSSoIntegrationEnum = "ConsumerConnect" | "TheBigPOS" | "POSF";
5967
- export type CreateOrReplaceSamlMetadataParamsEnum = "ConsumerConnect" | "TheBigPOS" | "POSF";
5968
5862
  import type { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
5969
5863
  export type QueryParamsType = Record<string | number, any>;
5970
5864
  export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
@@ -5987,7 +5881,14 @@ export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequest
5987
5881
  secure?: boolean;
5988
5882
  format?: ResponseType;
5989
5883
  }
5990
- export type ContentType = "application/json" | "application/vnd.api+json" | "multipart/form-data" | "application/x-www-form-urlencoded" | "text/plain";
5884
+ export declare enum ContentType {
5885
+ JsonPatch = "application/json-patch+json",
5886
+ Json = "application/json",
5887
+ JsonApi = "application/vnd.api+json",
5888
+ FormData = "multipart/form-data",
5889
+ UrlEncoded = "application/x-www-form-urlencoded",
5890
+ Text = "text/plain"
5891
+ }
5991
5892
  export declare class HttpClient<SecurityDataType = unknown> {
5992
5893
  instance: AxiosInstance;
5993
5894
  private securityData;
@@ -6003,7 +5904,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
6003
5904
  }
6004
5905
  /**
6005
5906
  * @title The Big POS API
6006
- * @version v2.45.0
5907
+ * @version v2.45.1
6007
5908
  * @termsOfService https://www.thebigpos.com/terms-of-use/
6008
5909
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
6009
5910
  */
@@ -6167,141 +6068,66 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6167
6068
  /**
6168
6069
  * No description
6169
6070
  *
6170
- * @tags AiAccountSettings
6171
- * @name GetAiAccountSettings
6172
- * @summary Get account AI settings
6173
- * @request GET:/api/ai/admin/account-settings
6174
- * @secure
6175
- * @response `200` `AiAccountSettings` OK
6176
- */
6177
- getAiAccountSettings: (params?: RequestParams) => Promise<AxiosResponse<AiAccountSettings, any, {}>>;
6178
- /**
6179
- * No description
6180
- *
6181
- * @tags AiAccountSettings
6182
- * @name UpdateAiAccountSettings
6183
- * @summary Update account AI settings
6184
- * @request PUT:/api/ai/admin/account-settings
6185
- * @secure
6186
- * @response `200` `AiAccountSettings` OK
6187
- * @response `400` `ProblemDetails` Bad Request
6188
- */
6189
- updateAiAccountSettings: (data: AiAccountSettingsRequest, params?: RequestParams) => Promise<AxiosResponse<AiAccountSettings, any, {}>>;
6190
- /**
6191
- * No description
6192
- *
6193
- * @tags AiAdmin
6194
- * @name GetAiAuditLogs
6195
- * @summary Get paginated audit logs
6196
- * @request GET:/api/ai/admin/audit-logs
6071
+ * @tags AiAccess
6072
+ * @name GetAiAccess
6073
+ * @summary Get whether AI is enabled for the current user's account
6074
+ * @request GET:/api/ai/access
6197
6075
  * @secure
6198
- * @response `200` `AiAuditLogPaginated` OK
6076
+ * @response `200` `AiEnabled` OK
6199
6077
  */
6200
- getAiAuditLogs: (query?: {
6201
- eventType?: AiAuditEventType;
6202
- /** @format uuid */
6203
- requestId?: string;
6204
- /** @format uuid */
6205
- userId?: string;
6206
- /** @format uuid */
6207
- conversationId?: string;
6208
- blockedOnly?: boolean;
6209
- /** @format date-time */
6210
- startDate?: string;
6211
- /** @format date-time */
6212
- endDate?: string;
6213
- /** @format int32 */
6214
- pageSize?: number;
6215
- /** @format int32 */
6216
- pageNumber?: number;
6217
- sortBy?: string;
6218
- sortDirection?: string;
6219
- }, params?: RequestParams) => Promise<AxiosResponse<AiAuditLogPaginated, any, {}>>;
6078
+ getAiAccess: (params?: RequestParams) => Promise<AxiosResponse<AiEnabled, any, {}>>;
6220
6079
  /**
6221
6080
  * No description
6222
6081
  *
6223
- * @tags AiAdmin
6224
- * @name GetAiRequestLifecycle
6225
- * @summary Get the full event lifecycle of a single AI request
6226
- * @request GET:/api/ai/admin/audit-logs/request/{requestId}
6082
+ * @tags AiAccount
6083
+ * @name GetAccountAiEnabled
6084
+ * @summary Get whether AI is enabled for an account (SuperAdmin only)
6085
+ * @request GET:/api/ai/accounts/{accountId}/ai-enabled
6227
6086
  * @secure
6228
- * @response `200` `(AiAuditLog)[]` OK
6087
+ * @response `200` `AiEnabled` OK
6229
6088
  */
6230
- getAiRequestLifecycle: (requestId: string, params?: RequestParams) => Promise<AxiosResponse<AiAuditLog[], any, {}>>;
6089
+ getAccountAiEnabled: (accountId: string, params?: RequestParams) => Promise<AxiosResponse<AiEnabled, any, {}>>;
6231
6090
  /**
6232
6091
  * No description
6233
6092
  *
6234
- * @tags AiAdmin
6235
- * @name GetAiAuditConversations
6236
- * @summary List conversations with their audit roll-up origin user, turns, status, tokens
6237
- * @request GET:/api/ai/admin/audit-conversations
6093
+ * @tags AiAccount
6094
+ * @name SetAccountAiEnabled
6095
+ * @summary Enable or disable AI for an account (SuperAdmin only)
6096
+ * @request PUT:/api/ai/accounts/{accountId}/ai-enabled
6238
6097
  * @secure
6239
- * @response `200` `AiConversationAuditSummaryPaginated` OK
6098
+ * @response `204` `void` No Content
6240
6099
  */
6241
- getAiAuditConversations: (query?: {
6242
- searchText?: string;
6243
- /** @format date-time */
6244
- startDate?: string;
6245
- /** @format date-time */
6246
- endDate?: string;
6247
- /** @format int32 */
6248
- pageSize?: number;
6249
- /** @format int32 */
6250
- pageNumber?: number;
6251
- sortBy?: string;
6252
- sortDirection?: string;
6253
- }, params?: RequestParams) => Promise<AxiosResponse<AiConversationAuditSummaryPaginated, any, {}>>;
6100
+ setAccountAiEnabled: (accountId: string, data: SetAiEnabledRequest, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
6254
6101
  /**
6255
6102
  * No description
6256
6103
  *
6257
- * @tags AiAdmin
6258
- * @name GetAiAdminStats
6259
- * @summary Get AI admin dashboard stats
6260
- * @request GET:/api/ai/admin/stats
6104
+ * @tags AiAccountSettings
6105
+ * @name GetAiAccountSettings
6106
+ * @summary Get account AI settings
6107
+ * @request GET:/api/ai/account-settings
6261
6108
  * @secure
6262
- * @response `200` `AiAdminStats` OK
6109
+ * @response `200` `AiAccountSettings` OK
6263
6110
  */
6264
- getAiAdminStats: (query?: {
6265
- /** @format date-time */
6266
- startDate?: string;
6267
- /** @format date-time */
6268
- endDate?: string;
6269
- }, params?: RequestParams) => Promise<AxiosResponse<AiAdminStats, any, {}>>;
6111
+ getAiAccountSettings: (params?: RequestParams) => Promise<AxiosResponse<AiAccountSettings, any, {}>>;
6270
6112
  /**
6271
6113
  * No description
6272
6114
  *
6273
- * @tags AiAdmin
6274
- * @name GetAiConfigChanges
6275
- * @summary Get the AI configuration change history (who changed prompts, guardrails, fields, sources)
6276
- * @request GET:/api/ai/admin/config-changes
6115
+ * @tags AiAccountSettings
6116
+ * @name UpdateAiAccountSettings
6117
+ * @summary Update account AI settings
6118
+ * @request PUT:/api/ai/account-settings
6277
6119
  * @secure
6278
- * @response `200` `AiConfigChangeLogPaginated` OK
6120
+ * @response `200` `AiAccountSettings` OK
6121
+ * @response `400` `ProblemDetails` Bad Request
6279
6122
  */
6280
- getAiConfigChanges: (query?: {
6281
- entityType?: AiConfigEntityType;
6282
- /** @format uuid */
6283
- entityId?: string;
6284
- /** @format uuid */
6285
- actorUserId?: string;
6286
- action?: AiConfigChangeAction;
6287
- /** @format date-time */
6288
- startDate?: string;
6289
- /** @format date-time */
6290
- endDate?: string;
6291
- /** @format int32 */
6292
- pageSize?: number;
6293
- /** @format int32 */
6294
- pageNumber?: number;
6295
- sortBy?: string;
6296
- sortDirection?: string;
6297
- }, params?: RequestParams) => Promise<AxiosResponse<AiConfigChangeLogPaginated, any, {}>>;
6123
+ updateAiAccountSettings: (data: AiAccountSettingsRequest, params?: RequestParams) => Promise<AxiosResponse<AiAccountSettings, any, {}>>;
6298
6124
  /**
6299
6125
  * No description
6300
6126
  *
6301
6127
  * @tags AiAdminPrompt
6302
6128
  * @name GetAiPrompts
6303
6129
  * @summary Get all prompts
6304
- * @request GET:/api/ai/admin/prompts
6130
+ * @request GET:/api/ai/prompts
6305
6131
  * @secure
6306
6132
  * @response `200` `(AiPrompt)[]` OK
6307
6133
  */
@@ -6312,7 +6138,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6312
6138
  * @tags AiAdminPrompt
6313
6139
  * @name CreateAiPrompt
6314
6140
  * @summary Create custom prompt
6315
- * @request POST:/api/ai/admin/prompts
6141
+ * @request POST:/api/ai/prompts
6316
6142
  * @secure
6317
6143
  * @response `201` `AiPrompt` Created
6318
6144
  * @response `400` `ProblemDetails` Bad Request
@@ -6324,7 +6150,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6324
6150
  * @tags AiAdminPrompt
6325
6151
  * @name GetAiPrompt
6326
6152
  * @summary Get prompt by ID
6327
- * @request GET:/api/ai/admin/prompts/{id}
6153
+ * @request GET:/api/ai/prompts/{id}
6328
6154
  * @secure
6329
6155
  * @response `200` `AiPrompt` OK
6330
6156
  * @response `404` `ProblemDetails` Not Found
@@ -6336,7 +6162,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6336
6162
  * @tags AiAdminPrompt
6337
6163
  * @name UpdateAiPrompt
6338
6164
  * @summary Update prompt
6339
- * @request PUT:/api/ai/admin/prompts/{id}
6165
+ * @request PUT:/api/ai/prompts/{id}
6340
6166
  * @secure
6341
6167
  * @response `200` `AiPrompt` OK
6342
6168
  * @response `400` `ProblemDetails` Bad Request
@@ -6349,7 +6175,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6349
6175
  * @tags AiAdminPrompt
6350
6176
  * @name DeleteAiPrompt
6351
6177
  * @summary Delete prompt
6352
- * @request DELETE:/api/ai/admin/prompts/{id}
6178
+ * @request DELETE:/api/ai/prompts/{id}
6353
6179
  * @secure
6354
6180
  * @response `204` `void` No Content
6355
6181
  * @response `400` `ProblemDetails` Bad Request
@@ -6362,7 +6188,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6362
6188
  * @tags AiAdminPrompt
6363
6189
  * @name ToggleAiPrompt
6364
6190
  * @summary Toggle prompt active/inactive
6365
- * @request PATCH:/api/ai/admin/prompts/{id}/toggle
6191
+ * @request PATCH:/api/ai/prompts/{id}/toggle
6366
6192
  * @secure
6367
6193
  * @response `200` `AiPrompt` OK
6368
6194
  * @response `404` `ProblemDetails` Not Found
@@ -6374,7 +6200,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6374
6200
  * @tags AiAdminPrompt
6375
6201
  * @name GenerateAiSystemPrompt
6376
6202
  * @summary Generate a system prompt from description
6377
- * @request POST:/api/ai/admin/prompts/generate
6203
+ * @request POST:/api/ai/prompts/generate
6378
6204
  * @secure
6379
6205
  * @response `200` `GenerateSystemPrompt` OK
6380
6206
  * @response `400` `ProblemDetails` Bad Request
@@ -6384,20 +6210,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6384
6210
  * No description
6385
6211
  *
6386
6212
  * @tags AiAdminPrompt
6387
- * @name GetSupportedModels
6213
+ * @name GetAiSupportedModels
6388
6214
  * @summary Get supported LLM models
6389
- * @request GET:/api/ai/admin/prompts/supported-models
6215
+ * @request GET:/api/ai/prompts/supported-models
6390
6216
  * @secure
6391
6217
  * @response `200` `(SupportedModel)[]` OK
6392
6218
  */
6393
- getSupportedModels: (params?: RequestParams) => Promise<AxiosResponse<SupportedModel[], any, {}>>;
6219
+ getAiSupportedModels: (params?: RequestParams) => Promise<AxiosResponse<SupportedModel[], any, {}>>;
6394
6220
  /**
6395
6221
  * No description
6396
6222
  *
6397
6223
  * @tags AiAdminSettings
6398
6224
  * @name GetAiAdminSettings
6399
6225
  * @summary Get global AI settings
6400
- * @request GET:/api/ai/admin/settings
6226
+ * @request GET:/api/ai/settings
6401
6227
  * @secure
6402
6228
  * @response `200` `AiAdminSettings` OK
6403
6229
  */
@@ -6408,19 +6234,136 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6408
6234
  * @tags AiAdminSettings
6409
6235
  * @name UpdateAiAdminSettings
6410
6236
  * @summary Update global AI settings
6411
- * @request PUT:/api/ai/admin/settings
6237
+ * @request PUT:/api/ai/settings
6412
6238
  * @secure
6413
6239
  * @response `200` `AiAdminSettings` OK
6414
6240
  * @response `400` `ProblemDetails` Bad Request
6415
6241
  */
6416
6242
  updateAiAdminSettings: (data: AiAdminSettingsRequest, params?: RequestParams) => Promise<AxiosResponse<AiAdminSettings, any, {}>>;
6243
+ /**
6244
+ * No description
6245
+ *
6246
+ * @tags AiAudit
6247
+ * @name GetAiAuditLogs
6248
+ * @summary Get paginated AI audit logs (own account, or any/all accounts for SuperAdmin)
6249
+ * @request GET:/api/ai/audit-logs
6250
+ * @secure
6251
+ * @response `200` `AiAuditLogPaginated` OK
6252
+ */
6253
+ getAiAuditLogs: (query?: {
6254
+ /** @format uuid */
6255
+ accountId?: string;
6256
+ eventType?: AiAuditEventType;
6257
+ /** @format uuid */
6258
+ requestId?: string;
6259
+ /** @format uuid */
6260
+ userId?: string;
6261
+ /** @format uuid */
6262
+ conversationId?: string;
6263
+ blockedOnly?: boolean;
6264
+ /** @format date-time */
6265
+ startDate?: string;
6266
+ /** @format date-time */
6267
+ endDate?: string;
6268
+ /** @format int32 */
6269
+ pageSize?: number;
6270
+ /** @format int32 */
6271
+ pageNumber?: number;
6272
+ sortBy?: string;
6273
+ sortDirection?: string;
6274
+ }, params?: RequestParams) => Promise<AxiosResponse<AiAuditLogPaginated, any, {}>>;
6275
+ /**
6276
+ * No description
6277
+ *
6278
+ * @tags AiAudit
6279
+ * @name GetAiRequestLifecycle
6280
+ * @summary Get the full event lifecycle of a single AI request
6281
+ * @request GET:/api/ai/audit-logs/request/{requestId}
6282
+ * @secure
6283
+ * @response `200` `(AiAuditLog)[]` OK
6284
+ */
6285
+ getAiRequestLifecycle: (requestId: string, query?: {
6286
+ /** @format uuid */
6287
+ accountId?: string;
6288
+ }, params?: RequestParams) => Promise<AxiosResponse<AiAuditLog[], any, {}>>;
6289
+ /**
6290
+ * No description
6291
+ *
6292
+ * @tags AiAudit
6293
+ * @name GetAiAuditConversations
6294
+ * @summary List conversations with their audit roll-up — origin user, turns, status, tokens
6295
+ * @request GET:/api/ai/audit-conversations
6296
+ * @secure
6297
+ * @response `200` `AiConversationAuditSummaryPaginated` OK
6298
+ */
6299
+ getAiAuditConversations: (query?: {
6300
+ /** @format uuid */
6301
+ accountId?: string;
6302
+ searchText?: string;
6303
+ /** @format date-time */
6304
+ startDate?: string;
6305
+ /** @format date-time */
6306
+ endDate?: string;
6307
+ /** @format int32 */
6308
+ pageSize?: number;
6309
+ /** @format int32 */
6310
+ pageNumber?: number;
6311
+ sortBy?: string;
6312
+ sortDirection?: string;
6313
+ }, params?: RequestParams) => Promise<AxiosResponse<AiConversationAuditSummaryPaginated, any, {}>>;
6314
+ /**
6315
+ * No description
6316
+ *
6317
+ * @tags AiAudit
6318
+ * @name GetAiStats
6319
+ * @summary Get AI dashboard stats (own account, or any/all accounts for SuperAdmin)
6320
+ * @request GET:/api/ai/stats
6321
+ * @secure
6322
+ * @response `200` `AiAdminStats` OK
6323
+ */
6324
+ getAiStats: (query?: {
6325
+ /** @format uuid */
6326
+ accountId?: string;
6327
+ /** @format date-time */
6328
+ startDate?: string;
6329
+ /** @format date-time */
6330
+ endDate?: string;
6331
+ }, params?: RequestParams) => Promise<AxiosResponse<AiAdminStats, any, {}>>;
6332
+ /**
6333
+ * No description
6334
+ *
6335
+ * @tags AiAudit
6336
+ * @name GetAiConfigChanges
6337
+ * @summary Get the AI configuration change history (who changed prompts, guardrails, fields, sources)
6338
+ * @request GET:/api/ai/config-changes
6339
+ * @secure
6340
+ * @response `200` `AuditLogEntryPaginated` OK
6341
+ */
6342
+ getAiConfigChanges: (query?: {
6343
+ /** @format uuid */
6344
+ accountId?: string;
6345
+ /** @format uuid */
6346
+ entityId?: string;
6347
+ /** @format uuid */
6348
+ actorUserId?: string;
6349
+ /** @format date-time */
6350
+ startDate?: string;
6351
+ /** @format date-time */
6352
+ endDate?: string;
6353
+ /** @format int32 */
6354
+ pageSize?: number;
6355
+ /** @format int32 */
6356
+ pageNumber?: number;
6357
+ sortBy?: string;
6358
+ sortDirection?: string;
6359
+ }, params?: RequestParams) => Promise<AxiosResponse<AuditLogEntryPaginated, any, {}>>;
6417
6360
  /**
6418
6361
  * No description
6419
6362
  *
6420
6363
  * @tags AiCanonicalField
6421
6364
  * @name GetAiCanonicalFields
6422
6365
  * @summary Get all canonical fields
6423
- * @request GET:/api/ai/admin/fields
6366
+ * @request GET:/api/ai/canonical-fields
6424
6367
  * @secure
6425
6368
  * @response `200` `(AiCanonicalField)[]` OK
6426
6369
  */
@@ -6431,7 +6374,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6431
6374
  * @tags AiCanonicalField
6432
6375
  * @name CreateAiCanonicalField
6433
6376
  * @summary Create canonical field
6434
- * @request POST:/api/ai/admin/fields
6377
+ * @request POST:/api/ai/canonical-fields
6435
6378
  * @secure
6436
6379
  * @response `201` `AiCanonicalField` Created
6437
6380
  * @response `400` `ProblemDetails` Bad Request
@@ -6443,7 +6386,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6443
6386
  * @tags AiCanonicalField
6444
6387
  * @name GetAiCanonicalField
6445
6388
  * @summary Get canonical field by ID
6446
- * @request GET:/api/ai/admin/fields/{id}
6389
+ * @request GET:/api/ai/canonical-fields/{id}
6447
6390
  * @secure
6448
6391
  * @response `200` `AiCanonicalField` OK
6449
6392
  * @response `404` `ProblemDetails` Not Found
@@ -6455,7 +6398,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6455
6398
  * @tags AiCanonicalField
6456
6399
  * @name UpdateAiCanonicalField
6457
6400
  * @summary Update canonical field
6458
- * @request PUT:/api/ai/admin/fields/{id}
6401
+ * @request PUT:/api/ai/canonical-fields/{id}
6459
6402
  * @secure
6460
6403
  * @response `200` `AiCanonicalField` OK
6461
6404
  * @response `400` `ProblemDetails` Bad Request
@@ -6468,7 +6411,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6468
6411
  * @tags AiCanonicalField
6469
6412
  * @name DeleteAiCanonicalField
6470
6413
  * @summary Delete canonical field
6471
- * @request DELETE:/api/ai/admin/fields/{id}
6414
+ * @request DELETE:/api/ai/canonical-fields/{id}
6472
6415
  * @secure
6473
6416
  * @response `204` `void` No Content
6474
6417
  * @response `404` `ProblemDetails` Not Found
@@ -6480,7 +6423,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6480
6423
  * @tags AiCanonicalField
6481
6424
  * @name ToggleAiCanonicalField
6482
6425
  * @summary Toggle canonical field active/inactive
6483
- * @request PATCH:/api/ai/admin/fields/{id}/toggle
6426
+ * @request PATCH:/api/ai/canonical-fields/{id}/toggle
6484
6427
  * @secure
6485
6428
  * @response `200` `AiCanonicalField` OK
6486
6429
  * @response `404` `ProblemDetails` Not Found
@@ -6492,7 +6435,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6492
6435
  * @tags AiChat
6493
6436
  * @name AiChat
6494
6437
  * @summary Send AI chat message
6495
- * @request POST:/api/ai/chat
6438
+ * @request POST:/api/ai/chats
6496
6439
  * @secure
6497
6440
  * @response `200` `AiChat` OK
6498
6441
  * @response `400` `ProblemDetails` Bad Request
@@ -6609,7 +6552,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6609
6552
  * @tags AiConversationAdmin
6610
6553
  * @name GetAiAccountConversations
6611
6554
  * @summary List AI conversations across the account, optionally filtered by user (admin supervision)
6612
- * @request GET:/api/ai/admin/conversations
6555
+ * @request GET:/api/ai/conversations/all
6613
6556
  * @secure
6614
6557
  * @response `200` `AiConversationListItemPaginated` OK
6615
6558
  */
@@ -6629,7 +6572,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6629
6572
  * @tags AiConversationAdmin
6630
6573
  * @name GetAiAccountConversation
6631
6574
  * @summary Get an account conversation's detail (admin supervision)
6632
- * @request GET:/api/ai/admin/conversations/{id}
6575
+ * @request GET:/api/ai/conversations/all/{id}
6633
6576
  * @secure
6634
6577
  * @response `200` `AiConversationDetail` OK
6635
6578
  * @response `404` `ProblemDetails` Not Found
@@ -6641,7 +6584,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6641
6584
  * @tags AiConversationAdmin
6642
6585
  * @name GetAiAccountConversationMessages
6643
6586
  * @summary Get an account conversation's messages (admin supervision)
6644
- * @request GET:/api/ai/admin/conversations/{id}/messages
6587
+ * @request GET:/api/ai/conversations/all/{id}/messages
6645
6588
  * @secure
6646
6589
  * @response `200` `AiChatMessagePaginated` OK
6647
6590
  * @response `404` `ProblemDetails` Not Found
@@ -6660,7 +6603,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6660
6603
  * @tags AiGuardrail
6661
6604
  * @name GetAiGuardrails
6662
6605
  * @summary Get all guardrails
6663
- * @request GET:/api/ai/admin/guardrails
6606
+ * @request GET:/api/ai/guardrails
6664
6607
  * @secure
6665
6608
  * @response `200` `(AiGuardrail)[]` OK
6666
6609
  */
@@ -6671,7 +6614,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6671
6614
  * @tags AiGuardrail
6672
6615
  * @name CreateAiGuardrail
6673
6616
  * @summary Create custom guardrail
6674
- * @request POST:/api/ai/admin/guardrails
6617
+ * @request POST:/api/ai/guardrails
6675
6618
  * @secure
6676
6619
  * @response `201` `AiGuardrail` Created
6677
6620
  * @response `400` `ProblemDetails` Bad Request
@@ -6683,7 +6626,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6683
6626
  * @tags AiGuardrail
6684
6627
  * @name GetAiGuardrail
6685
6628
  * @summary Get guardrail by ID
6686
- * @request GET:/api/ai/admin/guardrails/{id}
6629
+ * @request GET:/api/ai/guardrails/{id}
6687
6630
  * @secure
6688
6631
  * @response `200` `AiGuardrail` OK
6689
6632
  * @response `404` `ProblemDetails` Not Found
@@ -6695,7 +6638,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6695
6638
  * @tags AiGuardrail
6696
6639
  * @name UpdateAiGuardrail
6697
6640
  * @summary Update guardrail
6698
- * @request PUT:/api/ai/admin/guardrails/{id}
6641
+ * @request PUT:/api/ai/guardrails/{id}
6699
6642
  * @secure
6700
6643
  * @response `200` `AiGuardrail` OK
6701
6644
  * @response `400` `ProblemDetails` Bad Request
@@ -6708,7 +6651,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6708
6651
  * @tags AiGuardrail
6709
6652
  * @name DeleteAiGuardrail
6710
6653
  * @summary Delete guardrail
6711
- * @request DELETE:/api/ai/admin/guardrails/{id}
6654
+ * @request DELETE:/api/ai/guardrails/{id}
6712
6655
  * @secure
6713
6656
  * @response `204` `void` No Content
6714
6657
  * @response `400` `ProblemDetails` Bad Request
@@ -6721,7 +6664,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6721
6664
  * @tags AiGuardrail
6722
6665
  * @name ToggleAiGuardrail
6723
6666
  * @summary Toggle guardrail enabled/disabled
6724
- * @request PATCH:/api/ai/admin/guardrails/{id}/toggle
6667
+ * @request PATCH:/api/ai/guardrails/{id}/toggle
6725
6668
  * @secure
6726
6669
  * @response `200` `AiGuardrail` OK
6727
6670
  * @response `404` `ProblemDetails` Not Found
@@ -6731,128 +6674,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6731
6674
  * No description
6732
6675
  *
6733
6676
  * @tags AiPrompt
6734
- * @name GetAvailablePrompts
6677
+ * @name GetAiAvailablePrompts
6735
6678
  * @summary Get available prompts for current user
6736
- * @request GET:/api/ai/prompts
6679
+ * @request GET:/api/ai/prompts/available
6737
6680
  * @secure
6738
6681
  * @response `200` `(AiPromptSummary)[]` OK
6739
6682
  */
6740
- getAvailablePrompts: (query?: {
6683
+ getAiAvailablePrompts: (query?: {
6741
6684
  documentType?: string;
6742
6685
  }, params?: RequestParams) => Promise<AxiosResponse<AiPromptSummary[], any, {}>>;
6743
- /**
6744
- * No description
6745
- *
6746
- * @tags AiSuperAdmin
6747
- * @name GetAiAuditLogsCrossAccount
6748
- * @summary Get AI audit logs for a specific account or across all accounts
6749
- * @request GET:/api/ai/superadmin/audit-logs
6750
- * @secure
6751
- * @response `200` `AiAuditLogPaginated` OK
6752
- */
6753
- getAiAuditLogsCrossAccount: (query?: {
6754
- /** @format uuid */
6755
- accountId?: string;
6756
- eventType?: AiAuditEventType;
6757
- /** @format uuid */
6758
- requestId?: string;
6759
- /** @format uuid */
6760
- userId?: string;
6761
- /** @format uuid */
6762
- conversationId?: string;
6763
- blockedOnly?: boolean;
6764
- /** @format date-time */
6765
- startDate?: string;
6766
- /** @format date-time */
6767
- endDate?: string;
6768
- /** @format int32 */
6769
- pageSize?: number;
6770
- /** @format int32 */
6771
- pageNumber?: number;
6772
- sortBy?: string;
6773
- sortDirection?: string;
6774
- }, params?: RequestParams) => Promise<AxiosResponse<AiAuditLogPaginated, any, {}>>;
6775
- /**
6776
- * No description
6777
- *
6778
- * @tags AiSuperAdmin
6779
- * @name GetAiRequestLifecycleCrossAccount
6780
- * @summary Get the full event lifecycle of a single AI request from any account
6781
- * @request GET:/api/ai/superadmin/audit-logs/request/{requestId}
6782
- * @secure
6783
- * @response `200` `(AiAuditLog)[]` OK
6784
- */
6785
- getAiRequestLifecycleCrossAccount: (requestId: string, query?: {
6786
- /** @format uuid */
6787
- accountId?: string;
6788
- }, params?: RequestParams) => Promise<AxiosResponse<AiAuditLog[], any, {}>>;
6789
- /**
6790
- * No description
6791
- *
6792
- * @tags AiSuperAdmin
6793
- * @name GetAiStatsCrossAccount
6794
- * @summary Get AI stats for a specific account or platform-wide
6795
- * @request GET:/api/ai/superadmin/stats
6796
- * @secure
6797
- * @response `200` `AiAdminStats` OK
6798
- */
6799
- getAiStatsCrossAccount: (query?: {
6800
- /** @format uuid */
6801
- accountId?: string;
6802
- /** @format date-time */
6803
- startDate?: string;
6804
- /** @format date-time */
6805
- endDate?: string;
6806
- }, params?: RequestParams) => Promise<AxiosResponse<AiAdminStats, any, {}>>;
6807
- /**
6808
- * No description
6809
- *
6810
- * @tags AiSuperAdmin
6811
- * @name GetAiConfigChangesCrossAccount
6812
- * @summary Get AI configuration change history for a specific account or across all accounts (incl. global defaults)
6813
- * @request GET:/api/ai/superadmin/config-changes
6814
- * @secure
6815
- * @response `200` `AiConfigChangeLogPaginated` OK
6816
- */
6817
- getAiConfigChangesCrossAccount: (query?: {
6818
- /** @format uuid */
6819
- accountId?: string;
6820
- entityType?: AiConfigEntityType;
6821
- /** @format uuid */
6822
- entityId?: string;
6823
- /** @format uuid */
6824
- actorUserId?: string;
6825
- action?: AiConfigChangeAction;
6826
- /** @format date-time */
6827
- startDate?: string;
6828
- /** @format date-time */
6829
- endDate?: string;
6830
- /** @format int32 */
6831
- pageSize?: number;
6832
- /** @format int32 */
6833
- pageNumber?: number;
6834
- sortBy?: string;
6835
- sortDirection?: string;
6836
- }, params?: RequestParams) => Promise<AxiosResponse<AiConfigChangeLogPaginated, any, {}>>;
6837
- /**
6838
- * No description
6839
- *
6840
- * @tags AiSuperAdmin
6841
- * @name SetAccountAiEnabled
6842
- * @summary Enable or disable AI for an account (SuperAdmin only)
6843
- * @request PUT:/api/ai/superadmin/accounts/{accountId}/ai-enabled
6844
- * @secure
6845
- * @response `204` `void` No Content
6846
- * @response `404` `ProblemDetails` Not Found
6847
- */
6848
- setAccountAiEnabled: (accountId: string, data: SetAiEnabledRequest, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
6849
6686
  /**
6850
6687
  * No description
6851
6688
  *
6852
6689
  * @tags AiTokenUsageAdmin
6853
6690
  * @name SearchAiAccountTokenUsage
6854
6691
  * @summary Search accounts by current-month AI token usage and classification
6855
- * @request POST:/api/ai/admin/token-usage/search
6692
+ * @request POST:/api/ai/token-usage/search
6856
6693
  * @secure
6857
6694
  * @response `200` `AiAccountUsageOverviewPaginated` OK
6858
6695
  */
@@ -6870,7 +6707,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6870
6707
  * @tags AiTokenUsageAdmin
6871
6708
  * @name GetAiAccountTokenUsage
6872
6709
  * @summary Get an account's current-month AI token usage
6873
- * @request GET:/api/ai/admin/token-usage/{accountId}
6710
+ * @request GET:/api/ai/token-usage/{accountId}
6874
6711
  * @secure
6875
6712
  * @response `200` `AiTokenBudgetStatus` OK
6876
6713
  */
@@ -6881,7 +6718,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6881
6718
  * @tags AiTokenUsageAdmin
6882
6719
  * @name GetAiAccountTokenUsageHistory
6883
6720
  * @summary Get an account's monthly AI token usage history
6884
- * @request GET:/api/ai/admin/token-usage/{accountId}/history
6721
+ * @request GET:/api/ai/token-usage/{accountId}/history
6885
6722
  * @secure
6886
6723
  * @response `200` `AiTokenUsageWindowPaginated` OK
6887
6724
  */
@@ -6899,7 +6736,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6899
6736
  * @tags AiTokenUsageAdmin
6900
6737
  * @name SetAiAccountTokenLimit
6901
6738
  * @summary Set or raise an account's monthly AI token limit
6902
- * @request PUT:/api/ai/admin/token-usage/{accountId}/limit
6739
+ * @request PUT:/api/ai/token-usage/{accountId}/limit
6903
6740
  * @secure
6904
6741
  * @response `200` `AiTokenBudgetStatus` OK
6905
6742
  * @response `400` `ProblemDetails` Bad Request
@@ -6911,7 +6748,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6911
6748
  * @tags AiUrlSource
6912
6749
  * @name GetAiUrlSources
6913
6750
  * @summary Get all URL sources
6914
- * @request GET:/api/ai/admin/url-sources
6751
+ * @request GET:/api/ai/url-sources
6915
6752
  * @secure
6916
6753
  * @response `200` `(AiUrlSource)[]` OK
6917
6754
  */
@@ -6922,7 +6759,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6922
6759
  * @tags AiUrlSource
6923
6760
  * @name CreateAiUrlSource
6924
6761
  * @summary Create URL source
6925
- * @request POST:/api/ai/admin/url-sources
6762
+ * @request POST:/api/ai/url-sources
6926
6763
  * @secure
6927
6764
  * @response `201` `AiUrlSource` Created
6928
6765
  * @response `400` `ProblemDetails` Bad Request
@@ -6935,7 +6772,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6935
6772
  * @tags AiUrlSource
6936
6773
  * @name GetAiUrlSource
6937
6774
  * @summary Get URL source by ID
6938
- * @request GET:/api/ai/admin/url-sources/{id}
6775
+ * @request GET:/api/ai/url-sources/{id}
6939
6776
  * @secure
6940
6777
  * @response `200` `AiUrlSource` OK
6941
6778
  * @response `404` `ProblemDetails` Not Found
@@ -6947,7 +6784,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6947
6784
  * @tags AiUrlSource
6948
6785
  * @name UpdateAiUrlSource
6949
6786
  * @summary Update URL source
6950
- * @request PUT:/api/ai/admin/url-sources/{id}
6787
+ * @request PUT:/api/ai/url-sources/{id}
6951
6788
  * @secure
6952
6789
  * @response `200` `AiUrlSource` OK
6953
6790
  * @response `400` `ProblemDetails` Bad Request
@@ -6961,7 +6798,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6961
6798
  * @tags AiUrlSource
6962
6799
  * @name DeleteAiUrlSource
6963
6800
  * @summary Delete URL source
6964
- * @request DELETE:/api/ai/admin/url-sources/{id}
6801
+ * @request DELETE:/api/ai/url-sources/{id}
6965
6802
  * @secure
6966
6803
  * @response `204` `void` No Content
6967
6804
  * @response `404` `ProblemDetails` Not Found
@@ -6973,7 +6810,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6973
6810
  * @tags AiUrlSource
6974
6811
  * @name ToggleAiUrlSource
6975
6812
  * @summary Toggle URL source active/inactive
6976
- * @request PATCH:/api/ai/admin/url-sources/{id}/toggle
6813
+ * @request PATCH:/api/ai/url-sources/{id}/toggle
6977
6814
  * @secure
6978
6815
  * @response `200` `AiUrlSource` OK
6979
6816
  * @response `404` `ProblemDetails` Not Found
@@ -7532,7 +7369,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7532
7369
  * @response `200` `(CustomFieldDefinition)[]` OK
7533
7370
  */
7534
7371
  getCustomFieldDefinitions: (query?: {
7535
- entityType?: GetCustomFieldDefinitionsParamsEntityTypeEnum;
7372
+ entityType?: "Loan";
7536
7373
  }, params?: RequestParams) => Promise<AxiosResponse<CustomFieldDefinition[], any, {}>>;
7537
7374
  /**
7538
7375
  * No description
@@ -9055,10 +8892,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9055
8892
  * @summary Download By ID
9056
8893
  * @request GET:/api/loans/{loanId}/documents/{documentId}/download
9057
8894
  * @secure
9058
- * @response `200` `Blob` OK
8895
+ * @response `200` `string` OK
9059
8896
  * @response `404` `ProblemDetails` Not Found
9060
8897
  */
9061
- downloadLoanDocument: (loanId: string, documentId: string, params?: RequestParams) => Promise<AxiosResponse<Blob, any, {}>>;
8898
+ downloadLoanDocument: (loanId: string, documentId: string, params?: RequestParams) => Promise<AxiosResponse<string, any, {}>>;
9062
8899
  /**
9063
8900
  * No description
9064
8901
  *
@@ -10266,7 +10103,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10266
10103
  getPartners: (query?: {
10267
10104
  showAll?: boolean;
10268
10105
  /** @default "Realtor" */
10269
- role?: GetPartnersParamsRoleEnum;
10106
+ role?: "Borrower" | "LoanOfficer" | "Admin" | "SuperAdmin" | "Realtor" | "SettlementAgent" | "LoanProcessor" | "LoanOfficerAssistant" | "SystemAdmin";
10270
10107
  /** @format int32 */
10271
10108
  pageSize?: number;
10272
10109
  /** @format int32 */
@@ -10444,7 +10281,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10444
10281
  * @response `200` `File` OK
10445
10282
  * @response `404` `ProblemDetails` Not Found
10446
10283
  */
10447
- getSamlMetadata: (sSoIntegration: GetSamlMetadataParamsEnum, ssoIntegration: string, params?: RequestParams) => Promise<AxiosResponse<File, any, {}>>;
10284
+ getSamlMetadata: (sSoIntegration: "ConsumerConnect" | "TheBigPOS" | "POSF", ssoIntegration: string, params?: RequestParams) => Promise<AxiosResponse<File, any, {}>>;
10448
10285
  /**
10449
10286
  * No description
10450
10287
  *
@@ -10455,7 +10292,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10455
10292
  * @secure
10456
10293
  * @response `200` `File` OK
10457
10294
  */
10458
- createOrReplaceSamlMetadata: (sSoIntegration: CreateOrReplaceSamlMetadataParamsEnum, ssoIntegration: string, params?: RequestParams) => Promise<AxiosResponse<File, any, {}>>;
10295
+ createOrReplaceSamlMetadata: (sSoIntegration: "ConsumerConnect" | "TheBigPOS" | "POSF", ssoIntegration: string, params?: RequestParams) => Promise<AxiosResponse<File, any, {}>>;
10459
10296
  /**
10460
10297
  * No description
10461
10298
  *