@matech/thebigpos-sdk 2.45.0-rc10 → 2.45.0-rc6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/index.ts CHANGED
@@ -552,6 +552,21 @@ export type AiDisplayHint =
552
552
  | "Comparison"
553
553
  | "ExecutiveBrief";
554
554
 
555
+ export type AiConfigEntityType =
556
+ | "Prompt"
557
+ | "Guardrail"
558
+ | "CanonicalField"
559
+ | "UrlSource"
560
+ | "AdminSettings"
561
+ | "AccountTokenSettings"
562
+ | "AccountSettings";
563
+
564
+ export type AiConfigChangeAction =
565
+ | "Created"
566
+ | "Updated"
567
+ | "Deleted"
568
+ | "Toggled";
569
+
555
570
  export type AiAuditEventType =
556
571
  | "Error"
557
572
  | "GuardrailBlockedPre"
@@ -663,7 +678,7 @@ export interface AccountBilling {
663
678
  }
664
679
 
665
680
  export interface AccountBillingRequest {
666
- billingType: AccountBillingRequestBillingTypeEnum;
681
+ billingType: "ClosedLoan" | "LoanOfficer";
667
682
  /** @format double */
668
683
  contractedRate: number;
669
684
  }
@@ -696,6 +711,7 @@ export interface AccountSettings {
696
711
  smsNumber?: string | null;
697
712
  ssoHostOverride?: string | null;
698
713
  isEarlyAdopter: boolean;
714
+ isAIEnabled: boolean;
699
715
  }
700
716
 
701
717
  export interface AccountSettingsRequest {
@@ -711,7 +727,7 @@ export interface Action {
711
727
  comments?: string | null;
712
728
  /** @format uuid */
713
729
  siteConfigurationID: string;
714
- applicationSettings?: any | null;
730
+ applicationSettings?: any;
715
731
  surveysToken?: string | null;
716
732
  }
717
733
 
@@ -948,7 +964,29 @@ export interface AiAuditLog {
948
964
  conversationId?: string | null;
949
965
  /** @format uuid */
950
966
  messageId?: string | null;
951
- eventType: AiAuditLogEventTypeEnum;
967
+ eventType:
968
+ | "Error"
969
+ | "GuardrailBlockedPre"
970
+ | "GuardrailPassedPre"
971
+ | "IntentClassified"
972
+ | "LoanResolvedFromMessage"
973
+ | "DocumentNotFound"
974
+ | "GuardrailBlockedPost"
975
+ | "GuardrailPassedPost"
976
+ | "DocumentAnalyzed"
977
+ | "DocumentList"
978
+ | "DocumentResolutionAmbiguous"
979
+ | "ResponseGenerated"
980
+ | "ParametersExtracted"
981
+ | "QueryExecuted"
982
+ | "LoanContextNotFound"
983
+ | "LoanContextLoaded"
984
+ | "GuardrailBlockedBedrock"
985
+ | "PromptMatched"
986
+ | "QueryCondensed"
987
+ | "IntentParseFailed"
988
+ | "LoanSearchTermDiscarded"
989
+ | "CanonicalFieldsSelected";
952
990
  modelId?: string | null;
953
991
  /** @format int32 */
954
992
  inputTokens?: number | null;
@@ -961,7 +999,7 @@ export interface AiAuditLog {
961
999
  guardrailCategory?: string | null;
962
1000
  rawRequest?: string | null;
963
1001
  rawResponse?: string | null;
964
- details?: any | null;
1002
+ details?: any;
965
1003
  /** @format date-time */
966
1004
  createdAt: string;
967
1005
  }
@@ -1030,7 +1068,18 @@ export interface AiChatMessagePaginated {
1030
1068
  }
1031
1069
 
1032
1070
  export interface AiChatMetadata {
1033
- intent: AiChatMetadataIntentEnum;
1071
+ intent:
1072
+ | "Greeting"
1073
+ | "Invalid"
1074
+ | "Relevant"
1075
+ | "LoanSpecific"
1076
+ | "DocumentList"
1077
+ | "GeneralKnowledge"
1078
+ | "Blocked"
1079
+ | "Action"
1080
+ | "ConversationMeta"
1081
+ | "Capabilities"
1082
+ | "UsageReport";
1034
1083
  fieldsAccessed: string[];
1035
1084
  /** @format int64 */
1036
1085
  queryTimeMs: number;
@@ -1058,7 +1107,7 @@ export interface AiChatRequest {
1058
1107
  }
1059
1108
 
1060
1109
  export interface AiChatStructuredData {
1061
- type: AiChatStructuredDataTypeEnum;
1110
+ type: "Table" | "DocumentAnalysis" | "DocumentList" | "GeneratedDocument";
1062
1111
  displayHint?: AiDisplayHint | null;
1063
1112
  detectedDocumentType?: string | null;
1064
1113
  columns: string[];
@@ -1068,6 +1117,37 @@ export interface AiChatStructuredData {
1068
1117
  generatedFileName?: string | null;
1069
1118
  }
1070
1119
 
1120
+ export interface AiConfigChangeLog {
1121
+ /** @format uuid */
1122
+ id: string;
1123
+ /** @format uuid */
1124
+ accountId?: string | null;
1125
+ /** @format uuid */
1126
+ actorUserId: string;
1127
+ entityType:
1128
+ | "Prompt"
1129
+ | "Guardrail"
1130
+ | "CanonicalField"
1131
+ | "UrlSource"
1132
+ | "AdminSettings"
1133
+ | "AccountTokenSettings"
1134
+ | "AccountSettings";
1135
+ /** @format uuid */
1136
+ entityId?: string | null;
1137
+ action: "Created" | "Updated" | "Deleted" | "Toggled";
1138
+ before?: any;
1139
+ after?: any;
1140
+ /** @format date-time */
1141
+ createdAt: string;
1142
+ }
1143
+
1144
+ export interface AiConfigChangeLogPaginated {
1145
+ rows: AiConfigChangeLog[];
1146
+ pagination: Pagination;
1147
+ /** @format int64 */
1148
+ count: number;
1149
+ }
1150
+
1071
1151
  export interface AiConversationAuditSummary {
1072
1152
  /** @format uuid */
1073
1153
  conversationId: string;
@@ -1133,15 +1213,11 @@ export interface AiConversationListItemPaginated {
1133
1213
  count: number;
1134
1214
  }
1135
1215
 
1136
- export interface AiEnabled {
1137
- isEnabled: boolean;
1138
- }
1139
-
1140
1216
  export interface AiGuardrail {
1141
1217
  /** @format uuid */
1142
1218
  id: string;
1143
1219
  name: string;
1144
- category: AiGuardrailCategoryEnum;
1220
+ category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
1145
1221
  description?: string | null;
1146
1222
  keywords: string[];
1147
1223
  responseTemplate: string;
@@ -1253,8 +1329,8 @@ export interface AiUrlSource {
1253
1329
  name: string;
1254
1330
  url: string;
1255
1331
  description?: string | null;
1256
- category: AiUrlSourceCategoryEnum;
1257
- scope: AiUrlSourceScopeEnum;
1332
+ category: "Regulatory" | "Guidelines" | "MarketData" | "Custom";
1333
+ scope: "FullDomain" | "SpecificPath";
1258
1334
  isActive: boolean;
1259
1335
  isDefault: boolean;
1260
1336
  hasAccountOverride: boolean;
@@ -1367,14 +1443,21 @@ export interface AuditLogEntry {
1367
1443
  /** @format uuid */
1368
1444
  id: string;
1369
1445
  entityType: string;
1370
- changeType: AuditLogEntryChangeTypeEnum;
1446
+ changeType:
1447
+ | "Created"
1448
+ | "Modified"
1449
+ | "SoftDeleted"
1450
+ | "HardDeleted"
1451
+ | "Restored"
1452
+ | "Deactivated"
1453
+ | "Reactivated";
1371
1454
  /** @format uuid */
1372
1455
  entityId: string;
1373
1456
  performedBy?: AuditLogUser | null;
1374
1457
  rootEntityType?: string | null;
1375
1458
  /** @format uuid */
1376
1459
  rootEntityId?: string | null;
1377
- changes?: any | null;
1460
+ changes?: any;
1378
1461
  /** @format date-time */
1379
1462
  createdAt: string;
1380
1463
  }
@@ -1419,7 +1502,20 @@ export interface BorrowerCount {
1419
1502
  firstName: string;
1420
1503
  lastName: string;
1421
1504
  email: string;
1422
- role: BorrowerCountRoleEnum;
1505
+ role:
1506
+ | "Borrower"
1507
+ | "CoBorrower"
1508
+ | "NonBorrower"
1509
+ | "LoanOfficer"
1510
+ | "LoanProcessor"
1511
+ | "LoanOfficerAssistant"
1512
+ | "SupportingLoanOfficer"
1513
+ | "BuyerAgent"
1514
+ | "SellerAgent"
1515
+ | "TitleInsuranceAgent"
1516
+ | "EscrowAgent"
1517
+ | "SettlementAgent"
1518
+ | "Admin";
1423
1519
  /** @format int32 */
1424
1520
  count: number;
1425
1521
  }
@@ -1430,7 +1526,20 @@ export interface BorrowerIdentity {
1430
1526
  firstName: string;
1431
1527
  lastName: string;
1432
1528
  email: string;
1433
- role: BorrowerIdentityRoleEnum;
1529
+ role:
1530
+ | "Borrower"
1531
+ | "CoBorrower"
1532
+ | "NonBorrower"
1533
+ | "LoanOfficer"
1534
+ | "LoanProcessor"
1535
+ | "LoanOfficerAssistant"
1536
+ | "SupportingLoanOfficer"
1537
+ | "BuyerAgent"
1538
+ | "SellerAgent"
1539
+ | "TitleInsuranceAgent"
1540
+ | "EscrowAgent"
1541
+ | "SettlementAgent"
1542
+ | "Admin";
1434
1543
  }
1435
1544
 
1436
1545
  export interface BorrowersNotUsingPosSummary {
@@ -1691,7 +1800,7 @@ export interface CorporateSearchCriteria {
1691
1800
  }
1692
1801
 
1693
1802
  export interface CreateAccessScopeRequest {
1694
- scopeType: CreateAccessScopeRequestScopeTypeEnum;
1803
+ scopeType: "User" | "Branch";
1695
1804
  /** @format uuid */
1696
1805
  userId?: string | null;
1697
1806
  /** @format uuid */
@@ -1710,7 +1819,7 @@ export interface CreateAccountRequest {
1710
1819
  /** @format int64 */
1711
1820
  nlmsid: number;
1712
1821
  settings: AccountSettingsRequest;
1713
- environment: CreateAccountRequestEnvironmentEnum;
1822
+ environment: "Development" | "Staging" | "UAT" | "Production";
1714
1823
  losIntegration: LOSIntegration;
1715
1824
  billingSettings: AccountBillingRequest;
1716
1825
  }
@@ -1726,7 +1835,7 @@ export interface CreateAiCanonicalFieldRequest {
1726
1835
 
1727
1836
  export interface CreateAiGuardrailRequest {
1728
1837
  name: string;
1729
- category: CreateAiGuardrailRequestCategoryEnum;
1838
+ category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
1730
1839
  description?: string | null;
1731
1840
  keywords: string[];
1732
1841
  responseTemplate: string;
@@ -1754,8 +1863,8 @@ export interface CreateAiUrlSourceRequest {
1754
1863
  name: string;
1755
1864
  url: string;
1756
1865
  description?: string | null;
1757
- category: CreateAiUrlSourceRequestCategoryEnum;
1758
- scope: CreateAiUrlSourceRequestScopeEnum;
1866
+ category: "Regulatory" | "Guidelines" | "MarketData" | "Custom";
1867
+ scope: "FullDomain" | "SpecificPath";
1759
1868
  }
1760
1869
 
1761
1870
  export interface CreateBranchRequest {
@@ -1780,8 +1889,15 @@ export interface CreateCustomFieldDefinitionRequest {
1780
1889
  name: string;
1781
1890
  defaultValue?: string | null;
1782
1891
  regexPattern?: string | null;
1783
- dataType: CreateCustomFieldDefinitionRequestDataTypeEnum;
1784
- entityType: CreateCustomFieldDefinitionRequestEntityTypeEnum;
1892
+ dataType:
1893
+ | "String"
1894
+ | "Number"
1895
+ | "Decimal"
1896
+ | "Boolean"
1897
+ | "Date"
1898
+ | "SingleSelect"
1899
+ | "MultiSelect";
1900
+ entityType: "Loan";
1785
1901
  options?: CustomFieldOptionRequest[] | null;
1786
1902
  permissions?: CustomFieldPermissionRequest[] | null;
1787
1903
  }
@@ -1798,7 +1914,20 @@ export interface CreateDocumentTemplateRequest {
1798
1914
  export interface CreateGroupMemberRequest {
1799
1915
  /** @format uuid */
1800
1916
  userId: string;
1801
- loanRole: CreateGroupMemberRequestLoanRoleEnum;
1917
+ loanRole:
1918
+ | "Borrower"
1919
+ | "CoBorrower"
1920
+ | "NonBorrower"
1921
+ | "LoanOfficer"
1922
+ | "LoanProcessor"
1923
+ | "LoanOfficerAssistant"
1924
+ | "SupportingLoanOfficer"
1925
+ | "BuyerAgent"
1926
+ | "SellerAgent"
1927
+ | "TitleInsuranceAgent"
1928
+ | "EscrowAgent"
1929
+ | "SettlementAgent"
1930
+ | "Admin";
1802
1931
  }
1803
1932
 
1804
1933
  export interface CreateInviteRequest {
@@ -1807,7 +1936,7 @@ export interface CreateInviteRequest {
1807
1936
  emailAddress: string;
1808
1937
  phoneNumber?: string | null;
1809
1938
  /** @deprecated */
1810
- relationship: CreateInviteRequestRelationshipEnum;
1939
+ relationship: "NotApplicable" | "Spouse" | "NonSpouse";
1811
1940
  loanID: string;
1812
1941
  route?: string | null;
1813
1942
  /** @format uuid */
@@ -1829,7 +1958,7 @@ export interface CreateLoanImportRequest {
1829
1958
  endDate: string;
1830
1959
  /** @format date-time */
1831
1960
  startDate: string;
1832
- importMode: CreateLoanImportRequestImportModeEnum;
1961
+ importMode: "All" | "NewOnly" | "UpdateOnly";
1833
1962
  }
1834
1963
 
1835
1964
  export interface CreateSession {
@@ -1851,7 +1980,20 @@ export interface CreateUserDeviceRequest {
1851
1980
  }
1852
1981
 
1853
1982
  export interface CreateUserDraft {
1854
- loanRole: CreateUserDraftLoanRoleEnum;
1983
+ loanRole:
1984
+ | "Borrower"
1985
+ | "CoBorrower"
1986
+ | "NonBorrower"
1987
+ | "LoanOfficer"
1988
+ | "LoanProcessor"
1989
+ | "LoanOfficerAssistant"
1990
+ | "SupportingLoanOfficer"
1991
+ | "BuyerAgent"
1992
+ | "SellerAgent"
1993
+ | "TitleInsuranceAgent"
1994
+ | "EscrowAgent"
1995
+ | "SettlementAgent"
1996
+ | "Admin";
1855
1997
  }
1856
1998
 
1857
1999
  export interface CreateUserGroupRequest {
@@ -1919,8 +2061,15 @@ export interface CustomFieldDefinition {
1919
2061
  name: string;
1920
2062
  defaultValue?: string | null;
1921
2063
  regexPattern?: string | null;
1922
- dataType: CustomFieldDefinitionDataTypeEnum;
1923
- entityType: CustomFieldDefinitionEntityTypeEnum;
2064
+ dataType:
2065
+ | "String"
2066
+ | "Number"
2067
+ | "Decimal"
2068
+ | "Boolean"
2069
+ | "Date"
2070
+ | "SingleSelect"
2071
+ | "MultiSelect";
2072
+ entityType: "Loan";
1924
2073
  options: CustomFieldOption[];
1925
2074
  permissions: CustomFieldPermission[];
1926
2075
  encompassMapping?: EncompassMapping | null;
@@ -1935,7 +2084,14 @@ export interface CustomFieldEntry {
1935
2084
  displayOrder: number;
1936
2085
  name: string;
1937
2086
  value: string;
1938
- dataType: CustomFieldEntryDataTypeEnum;
2087
+ dataType:
2088
+ | "String"
2089
+ | "Number"
2090
+ | "Decimal"
2091
+ | "Boolean"
2092
+ | "Date"
2093
+ | "SingleSelect"
2094
+ | "MultiSelect";
1939
2095
  }
1940
2096
 
1941
2097
  export interface CustomFieldOption {
@@ -1955,13 +2111,31 @@ export interface CustomFieldOptionRequest {
1955
2111
  export interface CustomFieldPermission {
1956
2112
  /** @format uuid */
1957
2113
  id: string;
1958
- role: CustomFieldPermissionRoleEnum;
1959
- accessLevel: CustomFieldPermissionAccessLevelEnum;
2114
+ role:
2115
+ | "Borrower"
2116
+ | "LoanOfficer"
2117
+ | "Admin"
2118
+ | "SuperAdmin"
2119
+ | "Realtor"
2120
+ | "SettlementAgent"
2121
+ | "LoanProcessor"
2122
+ | "LoanOfficerAssistant"
2123
+ | "SystemAdmin";
2124
+ accessLevel: "NoAccess" | "ReadOnly" | "ReadWrite";
1960
2125
  }
1961
2126
 
1962
2127
  export interface CustomFieldPermissionRequest {
1963
- role: CustomFieldPermissionRequestRoleEnum;
1964
- accessLevel: CustomFieldPermissionRequestAccessLevelEnum;
2128
+ role:
2129
+ | "Borrower"
2130
+ | "LoanOfficer"
2131
+ | "Admin"
2132
+ | "SuperAdmin"
2133
+ | "Realtor"
2134
+ | "SettlementAgent"
2135
+ | "LoanProcessor"
2136
+ | "LoanOfficerAssistant"
2137
+ | "SystemAdmin";
2138
+ accessLevel: "NoAccess" | "ReadOnly" | "ReadWrite";
1965
2139
  }
1966
2140
 
1967
2141
  export interface CustomFieldValue {
@@ -1973,7 +2147,14 @@ export interface CustomFieldValue {
1973
2147
  customFieldDefinitionID: string;
1974
2148
  value: string;
1975
2149
  definitionName: string;
1976
- dataType: CustomFieldValueDataTypeEnum;
2150
+ dataType:
2151
+ | "String"
2152
+ | "Number"
2153
+ | "Decimal"
2154
+ | "Boolean"
2155
+ | "Date"
2156
+ | "SingleSelect"
2157
+ | "MultiSelect";
1977
2158
  }
1978
2159
 
1979
2160
  export interface DetailedUser {
@@ -2230,7 +2411,7 @@ export interface Draft {
2230
2411
  siteConfiguration: SiteConfigurationReduced;
2231
2412
  /** @format uuid */
2232
2413
  loanID?: string | null;
2233
- type: DraftTypeEnum;
2414
+ type: "NewLoan" | "EditLoan";
2234
2415
  isCoBorrower: boolean;
2235
2416
  }
2236
2417
 
@@ -2249,7 +2430,7 @@ export interface DraftContent {
2249
2430
  siteConfiguration: SiteConfigurationReduced;
2250
2431
  /** @format uuid */
2251
2432
  loanID?: string | null;
2252
- type: DraftContentTypeEnum;
2433
+ type: "NewLoan" | "EditLoan";
2253
2434
  isCoBorrower: boolean;
2254
2435
  applicationPayload: any;
2255
2436
  }
@@ -2268,7 +2449,7 @@ export interface DraftLoanOfficerReassignRequest {
2268
2449
 
2269
2450
  export interface DraftRequest {
2270
2451
  applicationPayload: any;
2271
- customData?: any | null;
2452
+ customData?: any;
2272
2453
  isCoBorrower: boolean;
2273
2454
  }
2274
2455
 
@@ -2346,9 +2527,9 @@ export interface EncompassCredentialsDetail {
2346
2527
  clearStateIfUnlicensed: boolean;
2347
2528
  /** @deprecated */
2348
2529
  baseUrl?: string | null;
2349
- encompassEnvironment: EncompassCredentialsDetailEncompassEnvironmentEnum;
2530
+ encompassEnvironment: "Production" | "UAT";
2350
2531
  consumerConnectWidgetHost?: string | null;
2351
- signingMethod: EncompassCredentialsDetailSigningMethodEnum;
2532
+ signingMethod: "ConsumerConnect" | "POSF";
2352
2533
  subscriptionId?: string | null;
2353
2534
  environment?: string | null;
2354
2535
  }
@@ -2365,9 +2546,9 @@ export interface EncompassCredentialsRequest {
2365
2546
  clearStateIfUnlicensed: boolean;
2366
2547
  /** @deprecated */
2367
2548
  baseUrl?: string | null;
2368
- encompassEnvironment: EncompassCredentialsRequestEncompassEnvironmentEnum;
2549
+ encompassEnvironment: "Production" | "UAT";
2369
2550
  consumerConnectWidgetHost?: string | null;
2370
- signingMethod: EncompassCredentialsRequestSigningMethodEnum;
2551
+ signingMethod: "ConsumerConnect" | "POSF";
2371
2552
  subscriptionId?: string | null;
2372
2553
  environment?: string | null;
2373
2554
  clientID?: string | null;
@@ -2447,7 +2628,6 @@ export interface EncompassPackageItem {
2447
2628
  /** @format date-time */
2448
2629
  createdAt: string;
2449
2630
  recipientId: string;
2450
- borrowerName?: string | null;
2451
2631
  title?: string | null;
2452
2632
  /** @format date-time */
2453
2633
  issuedAt?: string | null;
@@ -2489,8 +2669,15 @@ export interface EncompassRequestLog {
2489
2669
  losId?: string | null;
2490
2670
  /** @format uuid */
2491
2671
  accountId: string;
2492
- operationType: EncompassRequestLogOperationTypeEnum;
2493
- outcome: EncompassRequestLogOutcomeEnum;
2672
+ operationType:
2673
+ | "FieldUpdate"
2674
+ | "ConsentUpdate"
2675
+ | "DocumentSync"
2676
+ | "MilestoneUpdate"
2677
+ | "DocumentAttachment"
2678
+ | "General"
2679
+ | "FieldReader";
2680
+ outcome: "Success" | "Failure" | "PartialSuccess";
2494
2681
  message: string;
2495
2682
  endpoint?: string | null;
2496
2683
  httpMethod?: string | null;
@@ -2498,7 +2685,7 @@ export interface EncompassRequestLog {
2498
2685
  httpStatusCode?: number | null;
2499
2686
  /** @format int64 */
2500
2687
  durationMs?: number | null;
2501
- context?: any | null;
2688
+ context?: any;
2502
2689
  /** @format date-time */
2503
2690
  createdAt: string;
2504
2691
  }
@@ -2544,7 +2731,7 @@ export interface FileSearchCriteria {
2544
2731
  export interface FileWithBytes {
2545
2732
  name: string;
2546
2733
  /** @format byte */
2547
- data: Blob;
2734
+ data: string;
2548
2735
  fileName: string;
2549
2736
  mimeType?: string | null;
2550
2737
  extension?: string | null;
@@ -2623,7 +2810,7 @@ export interface FormSubmission {
2623
2810
  subjectPropertyAddressCounty?: string | null;
2624
2811
  subjectPropertyAddressState?: string | null;
2625
2812
  subjectPropertyAddressZip?: string | null;
2626
- data?: any | null;
2813
+ data?: any;
2627
2814
  /** @format uuid */
2628
2815
  listingID?: string | null;
2629
2816
  listing?: Listing | null;
@@ -2661,7 +2848,7 @@ export interface FormSubmissionRequest {
2661
2848
  subjectPropertyAddressCounty?: string | null;
2662
2849
  subjectPropertyAddressState?: string | null;
2663
2850
  subjectPropertyAddressZip?: string | null;
2664
- data?: any | null;
2851
+ data?: any;
2665
2852
  /** @format uuid */
2666
2853
  listingID?: string | null;
2667
2854
  }
@@ -2716,7 +2903,20 @@ export interface FusionFieldDisplay {
2716
2903
  }
2717
2904
 
2718
2905
  export interface FusionReportFilter {
2719
- filterType: FusionReportFilterFilterTypeEnum;
2906
+ filterType:
2907
+ | "DateGreaterThanOrEqualTo"
2908
+ | "DateGreaterThan"
2909
+ | "DateLessThan"
2910
+ | "DateLessThanOrEqualTo"
2911
+ | "DateEquals"
2912
+ | "DateDoesntEqual"
2913
+ | "DateNonEmpty"
2914
+ | "DateEmpty"
2915
+ | "StringContains"
2916
+ | "StringEquals"
2917
+ | "StringNotEmpty"
2918
+ | "StringNotEquals"
2919
+ | "StringNotContains";
2720
2920
  targetField: string;
2721
2921
  targetValue: string;
2722
2922
  }
@@ -2739,7 +2939,7 @@ export interface GenerateSystemPrompt {
2739
2939
 
2740
2940
  export interface GenerateSystemPromptRequest {
2741
2941
  description: string;
2742
- category: GenerateSystemPromptRequestCategoryEnum;
2942
+ category: "DocumentAnalysis" | "DataQuery" | "General" | "Action";
2743
2943
  }
2744
2944
 
2745
2945
  export interface GetApplications {
@@ -2835,12 +3035,45 @@ export interface GetWorkflowRequest {
2835
3035
  export interface GuidPatchOperation {
2836
3036
  op: string;
2837
3037
  path: string;
2838
- value?: any | null;
3038
+ value?: any;
2839
3039
  from?: string | null;
2840
3040
  }
2841
3041
 
2842
3042
  export interface IPAddress {
2843
- addressFamily: IpAddressAddressFamilyEnum;
3043
+ addressFamily:
3044
+ | "Unspecified"
3045
+ | "Unix"
3046
+ | "InterNetwork"
3047
+ | "ImpLink"
3048
+ | "Pup"
3049
+ | "Chaos"
3050
+ | "NS"
3051
+ | "Ipx"
3052
+ | "Iso"
3053
+ | "Osi"
3054
+ | "Ecma"
3055
+ | "DataKit"
3056
+ | "Ccitt"
3057
+ | "Sna"
3058
+ | "DecNet"
3059
+ | "DataLink"
3060
+ | "Lat"
3061
+ | "HyperChannel"
3062
+ | "AppleTalk"
3063
+ | "NetBios"
3064
+ | "VoiceView"
3065
+ | "FireFox"
3066
+ | "Banyan"
3067
+ | "Atm"
3068
+ | "InterNetworkV6"
3069
+ | "Cluster"
3070
+ | "Ieee12844"
3071
+ | "Irda"
3072
+ | "NetworkDesigners"
3073
+ | "Max"
3074
+ | "Packet"
3075
+ | "ControllerAreaNetwork"
3076
+ | "Unknown";
2844
3077
  /** @format int64 */
2845
3078
  scopeId: number;
2846
3079
  isIPv6Multicast: boolean;
@@ -3104,7 +3337,7 @@ export interface Loan {
3104
3337
  contacts: LoanContact[];
3105
3338
  customFields: CustomFieldEntry[];
3106
3339
  milestones: LoanMilestone[];
3107
- signingMethod: LoanSigningMethodEnum;
3340
+ signingMethod: "ConsumerConnect" | "POSF";
3108
3341
  }
3109
3342
 
3110
3343
  export interface LoanApplication {
@@ -3144,7 +3377,7 @@ export interface LoanApplicationRequest {
3144
3377
  nonOwningBorrowers: LoanNonOwningBorrowerRequest[];
3145
3378
  /** @format uuid */
3146
3379
  draftId?: string | null;
3147
- additionalFields?: Record<string, any> | null;
3380
+ additionalFields?: Record<string, any>;
3148
3381
  /** @format uuid */
3149
3382
  existingLoanId?: string | null;
3150
3383
  }
@@ -3164,7 +3397,7 @@ export interface LoanBorrower {
3164
3397
  citizenship?: LoanCitizenship | null;
3165
3398
  maritalStatus?: LoanMaritalStatus | null;
3166
3399
  languagePreference?: LoanLanguagePreference | null;
3167
- applicationStatus: LoanBorrowerApplicationStatusEnum;
3400
+ applicationStatus: "Draft" | "Complete";
3168
3401
  /** @format int32 */
3169
3402
  numberOfDependents?: number | null;
3170
3403
  /** @format int32 */
@@ -3957,7 +4190,7 @@ export interface LoanConsentRequest {
3957
4190
  borrowerEConsent?: boolean | null;
3958
4191
  borrowerCreditAuth?: boolean | null;
3959
4192
  borrowerTCPAOptIn?: boolean | null;
3960
- additionalFields?: Record<string, string> | null;
4193
+ additionalFields?: Record<string, string>;
3961
4194
  }
3962
4195
 
3963
4196
  export interface LoanContact {
@@ -3976,7 +4209,20 @@ export interface LoanContact {
3976
4209
  email?: string | null;
3977
4210
  phone?: string | null;
3978
4211
  companyName?: string | null;
3979
- role: LoanContactRoleEnum;
4212
+ role:
4213
+ | "Borrower"
4214
+ | "CoBorrower"
4215
+ | "NonBorrower"
4216
+ | "LoanOfficer"
4217
+ | "LoanProcessor"
4218
+ | "LoanOfficerAssistant"
4219
+ | "SupportingLoanOfficer"
4220
+ | "BuyerAgent"
4221
+ | "SellerAgent"
4222
+ | "TitleInsuranceAgent"
4223
+ | "EscrowAgent"
4224
+ | "SettlementAgent"
4225
+ | "Admin";
3980
4226
  }
3981
4227
 
3982
4228
  export interface LoanContactList {
@@ -4001,7 +4247,7 @@ export interface LoanCostDetails {
4001
4247
  }
4002
4248
 
4003
4249
  export interface LoanCustomFieldsRequest {
4004
- additionalFields?: Record<string, string> | null;
4250
+ additionalFields?: Record<string, string>;
4005
4251
  }
4006
4252
 
4007
4253
  export interface LoanDocument {
@@ -4054,13 +4300,39 @@ export interface LoanDocumentFolderPermission {
4054
4300
  id: string;
4055
4301
  /** @format uuid */
4056
4302
  loanDocumentFolderID: string;
4057
- role: LoanDocumentFolderPermissionRoleEnum;
4058
- level: LoanDocumentFolderPermissionLevelEnum;
4303
+ role:
4304
+ | "Borrower"
4305
+ | "CoBorrower"
4306
+ | "NonBorrower"
4307
+ | "LoanOfficer"
4308
+ | "LoanProcessor"
4309
+ | "LoanOfficerAssistant"
4310
+ | "SupportingLoanOfficer"
4311
+ | "BuyerAgent"
4312
+ | "SellerAgent"
4313
+ | "TitleInsuranceAgent"
4314
+ | "EscrowAgent"
4315
+ | "SettlementAgent"
4316
+ | "Admin";
4317
+ level: "None" | "Read" | "Write" | "Manage";
4059
4318
  }
4060
4319
 
4061
4320
  export interface LoanDocumentFolderPermissionRequest {
4062
- role: LoanDocumentFolderPermissionRequestRoleEnum;
4063
- level: LoanDocumentFolderPermissionRequestLevelEnum;
4321
+ role:
4322
+ | "Borrower"
4323
+ | "CoBorrower"
4324
+ | "NonBorrower"
4325
+ | "LoanOfficer"
4326
+ | "LoanProcessor"
4327
+ | "LoanOfficerAssistant"
4328
+ | "SupportingLoanOfficer"
4329
+ | "BuyerAgent"
4330
+ | "SellerAgent"
4331
+ | "TitleInsuranceAgent"
4332
+ | "EscrowAgent"
4333
+ | "SettlementAgent"
4334
+ | "Admin";
4335
+ level: "None" | "Read" | "Write" | "Manage";
4064
4336
  }
4065
4337
 
4066
4338
  export interface LoanDocumentFolderUsage {
@@ -4206,14 +4478,19 @@ export interface LoanImport {
4206
4478
  /** @format int32 */
4207
4479
  importedCount: number;
4208
4480
  statusMessage?: string | null;
4209
- status: LoanImportStatusEnum;
4210
- importMode: LoanImportImportModeEnum;
4481
+ status:
4482
+ | "WaitingProcess"
4483
+ | "InProgress"
4484
+ | "Completed"
4485
+ | "Failed"
4486
+ | "Cancelled";
4487
+ importMode: "All" | "NewOnly" | "UpdateOnly";
4211
4488
  /** @format date-time */
4212
4489
  createdAt?: string | null;
4213
4490
  }
4214
4491
 
4215
4492
  export interface LoanImportLog {
4216
- level: LoanImportLogLevelEnum;
4493
+ level: "None" | "Info" | "Warning" | "Error";
4217
4494
  message: string;
4218
4495
  /** @format date-time */
4219
4496
  createdAt: string;
@@ -4274,8 +4551,25 @@ export interface LoanListPaginated {
4274
4551
  export interface LoanLog {
4275
4552
  /** @format uuid */
4276
4553
  id: string;
4277
- level: LoanLogLevelEnum;
4278
- type: LoanLogTypeEnum;
4554
+ level: "None" | "Info" | "Warning" | "Error";
4555
+ type:
4556
+ | "Loan"
4557
+ | "Queue"
4558
+ | "POSFlagChanged"
4559
+ | "Verification"
4560
+ | "DocumentUploaded"
4561
+ | "LoanCreated"
4562
+ | "WorkflowSubmitted"
4563
+ | "UserInvitationSent"
4564
+ | "CoBorrowerAdded"
4565
+ | "TaskCompleted"
4566
+ | "LoanStatusChanged"
4567
+ | "Consent"
4568
+ | "SensitiveDataPurge"
4569
+ | "ClosingDateUpdated"
4570
+ | "ConsumerConnectAssociation"
4571
+ | "TaskReminderSent"
4572
+ | "DocumentClassified";
4279
4573
  message: string;
4280
4574
  /** @format date-time */
4281
4575
  createdAt: string;
@@ -4284,8 +4578,25 @@ export interface LoanLog {
4284
4578
  export interface LoanLogDetail {
4285
4579
  /** @format uuid */
4286
4580
  id: string;
4287
- level: LoanLogDetailLevelEnum;
4288
- type: LoanLogDetailTypeEnum;
4581
+ level: "None" | "Info" | "Warning" | "Error";
4582
+ type:
4583
+ | "Loan"
4584
+ | "Queue"
4585
+ | "POSFlagChanged"
4586
+ | "Verification"
4587
+ | "DocumentUploaded"
4588
+ | "LoanCreated"
4589
+ | "WorkflowSubmitted"
4590
+ | "UserInvitationSent"
4591
+ | "CoBorrowerAdded"
4592
+ | "TaskCompleted"
4593
+ | "LoanStatusChanged"
4594
+ | "Consent"
4595
+ | "SensitiveDataPurge"
4596
+ | "ClosingDateUpdated"
4597
+ | "ConsumerConnectAssociation"
4598
+ | "TaskReminderSent"
4599
+ | "DocumentClassified";
4289
4600
  message: string;
4290
4601
  /** @format date-time */
4291
4602
  createdAt: string;
@@ -4569,7 +4880,7 @@ export interface LoanQueueWithData {
4569
4880
  user: UserPublic;
4570
4881
  loanOfficer: LoanOfficerPublic;
4571
4882
  siteConfiguration: SiteConfigurationReduced;
4572
- data?: any | null;
4883
+ data?: any;
4573
4884
  }
4574
4885
 
4575
4886
  export interface LoanRecord {
@@ -4605,7 +4916,7 @@ export interface LoanTaskSearchRequest {
4605
4916
  }
4606
4917
 
4607
4918
  export interface LoanTaskStatusSummary {
4608
- status: LoanTaskStatusSummaryStatusEnum;
4919
+ status: "Outstanding" | "Pending" | "Completed" | "Rejected" | "Unknown";
4609
4920
  /** @format int32 */
4610
4921
  count: number;
4611
4922
  }
@@ -4618,7 +4929,20 @@ export interface LoanUser {
4618
4929
  email: string;
4619
4930
  phone?: string | null;
4620
4931
  role: string;
4621
- loanRole: LoanUserLoanRoleEnum;
4932
+ loanRole:
4933
+ | "Borrower"
4934
+ | "CoBorrower"
4935
+ | "NonBorrower"
4936
+ | "LoanOfficer"
4937
+ | "LoanProcessor"
4938
+ | "LoanOfficerAssistant"
4939
+ | "SupportingLoanOfficer"
4940
+ | "BuyerAgent"
4941
+ | "SellerAgent"
4942
+ | "TitleInsuranceAgent"
4943
+ | "EscrowAgent"
4944
+ | "SettlementAgent"
4945
+ | "Admin";
4622
4946
  isUser: boolean;
4623
4947
  /** @format date-time */
4624
4948
  createdAt: string;
@@ -4654,7 +4978,13 @@ export interface LosOperationTracking {
4654
4978
  operationType: string;
4655
4979
  correlationKey: string;
4656
4980
  lastTriggerSource?: string | null;
4657
- status: LosOperationTrackingStatusEnum;
4981
+ status:
4982
+ | "Pending"
4983
+ | "Success"
4984
+ | "Failed"
4985
+ | "ConfigurationError"
4986
+ | "PermanentFailure"
4987
+ | "Locked";
4658
4988
  /** @format date-time */
4659
4989
  createdAt: string;
4660
4990
  /** @format date-time */
@@ -4721,7 +5051,7 @@ export interface LosSyncStep {
4721
5051
  /** @format int32 */
4722
5052
  order: number;
4723
5053
  name: string;
4724
- severity: LosSyncStepSeverityEnum;
5054
+ severity: "Success" | "Info" | "Warning" | "Error";
4725
5055
  message: string;
4726
5056
  /** @format date-time */
4727
5057
  atUtc: string;
@@ -4737,7 +5067,65 @@ export interface LosWebhook {
4737
5067
  }
4738
5068
 
4739
5069
  export interface ManualDocumentClassificationRequest {
4740
- documentType: ManualDocumentClassificationRequestDocumentTypeEnum;
5070
+ documentType:
5071
+ | "W2"
5072
+ | "Paystub"
5073
+ | "Form1099"
5074
+ | "Form1099Int"
5075
+ | "Form1099Misc"
5076
+ | "Form1099Nec"
5077
+ | "Form1099R"
5078
+ | "Form1099G"
5079
+ | "Form1099Div"
5080
+ | "Form1099Ssa"
5081
+ | "FederalTaxReturn1040"
5082
+ | "TaxReturnScheduleC"
5083
+ | "TaxReturnScheduleD"
5084
+ | "TaxReturnScheduleE"
5085
+ | "Form1065"
5086
+ | "Form1120"
5087
+ | "Form1120S"
5088
+ | "ProfitAndLossStatement"
5089
+ | "VerificationOfEmployment"
5090
+ | "BankStatement"
5091
+ | "InvestmentStatement"
5092
+ | "CreditCardStatement"
5093
+ | "MortgageStatement"
5094
+ | "PayoffStatement"
5095
+ | "HoaDocuments"
5096
+ | "UtilityBill"
5097
+ | "IdentityDocument"
5098
+ | "DemographicAddendum"
5099
+ | "Ssa89"
5100
+ | "Vba260551"
5101
+ | "Hud92900B"
5102
+ | "Check"
5103
+ | "Invoice"
5104
+ | "Receipt"
5105
+ | "LoanApplication1003"
5106
+ | "UnderwritingTransmittal1008"
5107
+ | "Other"
5108
+ | "SalesContract"
5109
+ | "TitleCommitment"
5110
+ | "DriversLicense"
5111
+ | "VerificationOfIncome"
5112
+ | "VerificationOfAssets"
5113
+ | "FloodCertificate"
5114
+ | "FraudReport"
5115
+ | "AddendumToSalesContract"
5116
+ | "GiftLetter"
5117
+ | "CpaLetter"
5118
+ | "TaxBill"
5119
+ | "CondoQuestionnaire"
5120
+ | "CondoBudget"
5121
+ | "CondoBylaws"
5122
+ | "RentalAgreements"
5123
+ | "Lease"
5124
+ | "HazardInsurance"
5125
+ | "VaCertificateOfEligibility"
5126
+ | "Appraisal"
5127
+ | "CreditReport"
5128
+ | "CondoMasterPolicy";
4741
5129
  }
4742
5130
 
4743
5131
  export interface MdmUser {
@@ -4824,7 +5212,7 @@ export interface ModuleParameterValue {
4824
5212
  parameterID: string;
4825
5213
  parameterName: string;
4826
5214
  parameterType: string;
4827
- value?: any | null;
5215
+ value?: any;
4828
5216
  isInherited: boolean;
4829
5217
  }
4830
5218
 
@@ -5372,7 +5760,7 @@ export interface SiteConfiguration {
5372
5760
  deletedAt?: string | null;
5373
5761
  /** @format uuid */
5374
5762
  id: string;
5375
- type: SiteConfigurationTypeEnum;
5763
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5376
5764
  /** @format uuid */
5377
5765
  entityID: string;
5378
5766
  /** @format int32 */
@@ -5566,7 +5954,7 @@ export interface SiteConfigurationByUrl {
5566
5954
  deletedAt?: string | null;
5567
5955
  /** @format uuid */
5568
5956
  id: string;
5569
- type: SiteConfigurationByUrlTypeEnum;
5957
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5570
5958
  /** @format uuid */
5571
5959
  entityID: string;
5572
5960
  /** @format int32 */
@@ -5778,7 +6166,7 @@ export interface SiteConfigurationForm {
5778
6166
  export interface SiteConfigurationReduced {
5779
6167
  /** @format uuid */
5780
6168
  id: string;
5781
- type: SiteConfigurationReducedTypeEnum;
6169
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5782
6170
  url?: string | null;
5783
6171
  name: string;
5784
6172
  /** @format int64 */
@@ -5796,7 +6184,7 @@ export interface SiteConfigurationRequest {
5796
6184
  entityID: string;
5797
6185
  /** @format int32 */
5798
6186
  entityType: number;
5799
- type: SiteConfigurationRequestTypeEnum;
6187
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5800
6188
  url: string;
5801
6189
  name: string;
5802
6190
  introduction?: string | null;
@@ -5973,7 +6361,7 @@ export interface SiteConfigurationSearchCriteria {
5973
6361
  export interface SiteConfigurationSummary {
5974
6362
  /** @format uuid */
5975
6363
  id: string;
5976
- type: SiteConfigurationSummaryTypeEnum;
6364
+ type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5977
6365
  url?: string | null;
5978
6366
  name: string;
5979
6367
  /** @format int64 */
@@ -6254,7 +6642,20 @@ export interface UnregisteredBorrower {
6254
6642
  lastName?: string | null;
6255
6643
  fullName?: string | null;
6256
6644
  email?: string | null;
6257
- role: UnregisteredBorrowerRoleEnum;
6645
+ role:
6646
+ | "Borrower"
6647
+ | "CoBorrower"
6648
+ | "NonBorrower"
6649
+ | "LoanOfficer"
6650
+ | "LoanProcessor"
6651
+ | "LoanOfficerAssistant"
6652
+ | "SupportingLoanOfficer"
6653
+ | "BuyerAgent"
6654
+ | "SellerAgent"
6655
+ | "TitleInsuranceAgent"
6656
+ | "EscrowAgent"
6657
+ | "SettlementAgent"
6658
+ | "Admin";
6258
6659
  }
6259
6660
 
6260
6661
  export interface UpdateAccountRequest {
@@ -6282,7 +6683,7 @@ export interface UpdateAiCanonicalFieldRequest {
6282
6683
 
6283
6684
  export interface UpdateAiGuardrailRequest {
6284
6685
  name: string;
6285
- category: UpdateAiGuardrailRequestCategoryEnum;
6686
+ category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
6286
6687
  description?: string | null;
6287
6688
  keywords: string[];
6288
6689
  responseTemplate: string;
@@ -6309,8 +6710,8 @@ export interface UpdateAiUrlSourceRequest {
6309
6710
  name: string;
6310
6711
  url: string;
6311
6712
  description?: string | null;
6312
- category: UpdateAiUrlSourceRequestCategoryEnum;
6313
- scope: UpdateAiUrlSourceRequestScopeEnum;
6713
+ category: "Regulatory" | "Guidelines" | "MarketData" | "Custom";
6714
+ scope: "FullDomain" | "SpecificPath";
6314
6715
  }
6315
6716
 
6316
6717
  export interface UpdateCustomFieldDefinitionRequest {
@@ -6622,7 +7023,20 @@ export interface UserDevice {
6622
7023
  export interface UserDraft {
6623
7024
  /** @format uuid */
6624
7025
  draftID: string;
6625
- role: UserDraftRoleEnum;
7026
+ role:
7027
+ | "Borrower"
7028
+ | "CoBorrower"
7029
+ | "NonBorrower"
7030
+ | "LoanOfficer"
7031
+ | "LoanProcessor"
7032
+ | "LoanOfficerAssistant"
7033
+ | "SupportingLoanOfficer"
7034
+ | "BuyerAgent"
7035
+ | "SellerAgent"
7036
+ | "TitleInsuranceAgent"
7037
+ | "EscrowAgent"
7038
+ | "SettlementAgent"
7039
+ | "Admin";
6626
7040
  user: User;
6627
7041
  }
6628
7042
 
@@ -6649,7 +7063,7 @@ export interface UserGroupAccessScope {
6649
7063
  id: string;
6650
7064
  /** @format uuid */
6651
7065
  groupId: string;
6652
- scopeType: UserGroupAccessScopeScopeTypeEnum;
7066
+ scopeType: "User" | "Branch";
6653
7067
  /** @format uuid */
6654
7068
  userId?: string | null;
6655
7069
  /** @format uuid */
@@ -6685,7 +7099,20 @@ export interface UserLoan {
6685
7099
  deletedAt?: string | null;
6686
7100
  loanID: string;
6687
7101
  user: User;
6688
- role: UserLoanRoleEnum;
7102
+ role:
7103
+ | "Borrower"
7104
+ | "CoBorrower"
7105
+ | "NonBorrower"
7106
+ | "LoanOfficer"
7107
+ | "LoanProcessor"
7108
+ | "LoanOfficerAssistant"
7109
+ | "SupportingLoanOfficer"
7110
+ | "BuyerAgent"
7111
+ | "SellerAgent"
7112
+ | "TitleInsuranceAgent"
7113
+ | "EscrowAgent"
7114
+ | "SettlementAgent"
7115
+ | "Admin";
6689
7116
  /** @format int32 */
6690
7117
  borrowerPair?: number | null;
6691
7118
  /** @format int32 */
@@ -6698,11 +7125,11 @@ export interface UserLoanConsent {
6698
7125
  id: string;
6699
7126
  /** @format uuid */
6700
7127
  userLoanID: string;
6701
- type: UserLoanConsentTypeEnum;
7128
+ type: "Econsent" | "CreditAuthorization" | "Tcpa";
6702
7129
  providedConsent: boolean;
6703
7130
  source?: ConsentSource | null;
6704
7131
  ipAddress?: string | null;
6705
- losSyncStatus: UserLoanConsentLosSyncStatusEnum;
7132
+ losSyncStatus: "NotStarted" | "Failed" | "Success";
6706
7133
  /** @format date-time */
6707
7134
  createdAt: string;
6708
7135
  /** @format date-time */
@@ -6846,7 +7273,16 @@ export interface UserSummary {
6846
7273
  id: string;
6847
7274
  name?: string | null;
6848
7275
  email?: string | null;
6849
- role: UserSummaryRoleEnum;
7276
+ role:
7277
+ | "Borrower"
7278
+ | "LoanOfficer"
7279
+ | "Admin"
7280
+ | "SuperAdmin"
7281
+ | "Realtor"
7282
+ | "SettlementAgent"
7283
+ | "LoanProcessor"
7284
+ | "LoanOfficerAssistant"
7285
+ | "SystemAdmin";
6850
7286
  }
6851
7287
 
6852
7288
  export interface VerifyPasswordRequest {
@@ -6876,844 +7312,161 @@ export interface Workflow {
6876
7312
  icon: string;
6877
7313
  }
6878
7314
 
6879
- export type AccountBillingRequestBillingTypeEnum = "ClosedLoan" | "LoanOfficer";
6880
-
6881
- export type AiAuditLogEventTypeEnum =
6882
- | "Error"
6883
- | "GuardrailBlockedPre"
6884
- | "GuardrailPassedPre"
6885
- | "IntentClassified"
6886
- | "LoanResolvedFromMessage"
6887
- | "DocumentNotFound"
6888
- | "GuardrailBlockedPost"
6889
- | "GuardrailPassedPost"
6890
- | "DocumentAnalyzed"
6891
- | "DocumentList"
6892
- | "DocumentResolutionAmbiguous"
6893
- | "ResponseGenerated"
6894
- | "ParametersExtracted"
6895
- | "QueryExecuted"
6896
- | "LoanContextNotFound"
6897
- | "LoanContextLoaded"
6898
- | "GuardrailBlockedBedrock"
6899
- | "PromptMatched"
6900
- | "QueryCondensed"
6901
- | "IntentParseFailed"
6902
- | "LoanSearchTermDiscarded"
6903
- | "CanonicalFieldsSelected";
7315
+ import type {
7316
+ AxiosInstance,
7317
+ AxiosRequestConfig,
7318
+ AxiosResponse,
7319
+ HeadersDefaults,
7320
+ ResponseType,
7321
+ } from "axios";
7322
+ import axios from "axios";
6904
7323
 
6905
- export type AiChatMetadataIntentEnum =
6906
- | "Greeting"
6907
- | "Invalid"
6908
- | "Relevant"
6909
- | "LoanSpecific"
6910
- | "DocumentList"
6911
- | "GeneralKnowledge"
6912
- | "Blocked"
6913
- | "Action"
6914
- | "ConversationMeta"
6915
- | "Capabilities"
6916
- | "UsageReport";
7324
+ export type QueryParamsType = Record<string | number, any>;
6917
7325
 
6918
- export type AiChatStructuredDataTypeEnum =
6919
- | "Table"
6920
- | "DocumentAnalysis"
6921
- | "DocumentList"
6922
- | "GeneratedDocument";
7326
+ export interface FullRequestParams
7327
+ extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
7328
+ /** set parameter to `true` for call `securityWorker` for this request */
7329
+ secure?: boolean;
7330
+ /** request path */
7331
+ path: string;
7332
+ /** content type of request body */
7333
+ type?: ContentType;
7334
+ /** query params */
7335
+ query?: QueryParamsType;
7336
+ /** format of response (i.e. response.json() -> format: "json") */
7337
+ format?: ResponseType;
7338
+ /** request body */
7339
+ body?: unknown;
7340
+ }
6923
7341
 
6924
- export type AiGuardrailCategoryEnum =
6925
- | "ContentSafety"
6926
- | "PromptInjection"
6927
- | "Privacy"
6928
- | "Legal";
7342
+ export type RequestParams = Omit<
7343
+ FullRequestParams,
7344
+ "body" | "method" | "query" | "path"
7345
+ >;
6929
7346
 
6930
- export type AiUrlSourceCategoryEnum =
6931
- | "Regulatory"
6932
- | "Guidelines"
6933
- | "MarketData"
6934
- | "Custom";
7347
+ export interface ApiConfig<SecurityDataType = unknown>
7348
+ extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
7349
+ securityWorker?: (
7350
+ securityData: SecurityDataType | null,
7351
+ ) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
7352
+ secure?: boolean;
7353
+ format?: ResponseType;
7354
+ }
6935
7355
 
6936
- export type AiUrlSourceScopeEnum = "FullDomain" | "SpecificPath";
7356
+ export enum ContentType {
7357
+ JsonPatch = "application/json-patch+json",
7358
+ Json = "application/json",
7359
+ JsonApi = "application/vnd.api+json",
7360
+ FormData = "multipart/form-data",
7361
+ UrlEncoded = "application/x-www-form-urlencoded",
7362
+ Text = "text/plain",
7363
+ }
6937
7364
 
6938
- export type AuditLogEntryChangeTypeEnum =
6939
- | "Created"
6940
- | "Modified"
6941
- | "SoftDeleted"
6942
- | "HardDeleted"
6943
- | "Restored"
6944
- | "Deactivated"
6945
- | "Reactivated";
7365
+ export class HttpClient<SecurityDataType = unknown> {
7366
+ public instance: AxiosInstance;
7367
+ private securityData: SecurityDataType | null = null;
7368
+ private securityWorker?: ApiConfig<SecurityDataType>["securityWorker"];
7369
+ private secure?: boolean;
7370
+ private format?: ResponseType;
6946
7371
 
6947
- export type BorrowerCountRoleEnum =
6948
- | "Borrower"
6949
- | "CoBorrower"
6950
- | "NonBorrower"
6951
- | "LoanOfficer"
6952
- | "LoanProcessor"
6953
- | "LoanOfficerAssistant"
6954
- | "SupportingLoanOfficer"
6955
- | "BuyerAgent"
6956
- | "SellerAgent"
6957
- | "TitleInsuranceAgent"
6958
- | "EscrowAgent"
6959
- | "SettlementAgent"
6960
- | "Admin";
7372
+ constructor({
7373
+ securityWorker,
7374
+ secure,
7375
+ format,
7376
+ ...axiosConfig
7377
+ }: ApiConfig<SecurityDataType> = {}) {
7378
+ this.instance = axios.create({
7379
+ ...axiosConfig,
7380
+ baseURL: axiosConfig.baseURL || "",
7381
+ });
7382
+ this.secure = secure;
7383
+ this.format = format;
7384
+ this.securityWorker = securityWorker;
7385
+ }
6961
7386
 
6962
- export type BorrowerIdentityRoleEnum =
6963
- | "Borrower"
6964
- | "CoBorrower"
6965
- | "NonBorrower"
6966
- | "LoanOfficer"
6967
- | "LoanProcessor"
6968
- | "LoanOfficerAssistant"
6969
- | "SupportingLoanOfficer"
6970
- | "BuyerAgent"
6971
- | "SellerAgent"
6972
- | "TitleInsuranceAgent"
6973
- | "EscrowAgent"
6974
- | "SettlementAgent"
6975
- | "Admin";
7387
+ public setSecurityData = (data: SecurityDataType | null) => {
7388
+ this.securityData = data;
7389
+ };
6976
7390
 
6977
- export type CreateAccessScopeRequestScopeTypeEnum = "User" | "Branch";
7391
+ protected mergeRequestParams(
7392
+ params1: AxiosRequestConfig,
7393
+ params2?: AxiosRequestConfig,
7394
+ ): AxiosRequestConfig {
7395
+ const method = params1.method || (params2 && params2.method);
6978
7396
 
6979
- export type CreateAccountRequestEnvironmentEnum =
6980
- | "Development"
6981
- | "Staging"
6982
- | "UAT"
6983
- | "Production";
7397
+ return {
7398
+ ...this.instance.defaults,
7399
+ ...params1,
7400
+ ...(params2 || {}),
7401
+ headers: {
7402
+ ...((method &&
7403
+ this.instance.defaults.headers[
7404
+ method.toLowerCase() as keyof HeadersDefaults
7405
+ ]) ||
7406
+ {}),
7407
+ ...(params1.headers || {}),
7408
+ ...((params2 && params2.headers) || {}),
7409
+ },
7410
+ };
7411
+ }
6984
7412
 
6985
- export type CreateAiGuardrailRequestCategoryEnum =
6986
- | "ContentSafety"
6987
- | "PromptInjection"
6988
- | "Privacy"
6989
- | "Legal";
7413
+ protected stringifyFormItem(formItem: unknown) {
7414
+ if (typeof formItem === "object" && formItem !== null) {
7415
+ return JSON.stringify(formItem);
7416
+ } else {
7417
+ return `${formItem}`;
7418
+ }
7419
+ }
6990
7420
 
6991
- export type CreateAiUrlSourceRequestCategoryEnum =
6992
- | "Regulatory"
6993
- | "Guidelines"
6994
- | "MarketData"
6995
- | "Custom";
7421
+ protected createFormData(input: Record<string, unknown>): FormData {
7422
+ if (input instanceof FormData) {
7423
+ return input;
7424
+ }
7425
+ return Object.keys(input || {}).reduce((formData, key) => {
7426
+ const property = input[key];
7427
+ const propertyContent: any[] =
7428
+ property instanceof Array ? property : [property];
6996
7429
 
6997
- export type CreateAiUrlSourceRequestScopeEnum = "FullDomain" | "SpecificPath";
7430
+ for (const formItem of propertyContent) {
7431
+ const isFileType = formItem instanceof Blob || formItem instanceof File;
7432
+ formData.append(
7433
+ key,
7434
+ isFileType ? formItem : this.stringifyFormItem(formItem),
7435
+ );
7436
+ }
6998
7437
 
6999
- export type CreateCustomFieldDefinitionRequestDataTypeEnum =
7000
- | "String"
7001
- | "Number"
7002
- | "Decimal"
7003
- | "Boolean"
7004
- | "Date"
7005
- | "SingleSelect"
7006
- | "MultiSelect";
7438
+ return formData;
7439
+ }, new FormData());
7440
+ }
7007
7441
 
7008
- export type CreateCustomFieldDefinitionRequestEntityTypeEnum = "Loan";
7442
+ public request = async <T = any, _E = any>({
7443
+ secure,
7444
+ path,
7445
+ type,
7446
+ query,
7447
+ format,
7448
+ body,
7449
+ ...params
7450
+ }: FullRequestParams): Promise<AxiosResponse<T>> => {
7451
+ const secureParams =
7452
+ ((typeof secure === "boolean" ? secure : this.secure) &&
7453
+ this.securityWorker &&
7454
+ (await this.securityWorker(this.securityData))) ||
7455
+ {};
7456
+ const requestParams = this.mergeRequestParams(params, secureParams);
7457
+ const responseFormat = format || this.format || undefined;
7009
7458
 
7010
- export type CreateGroupMemberRequestLoanRoleEnum =
7011
- | "Borrower"
7012
- | "CoBorrower"
7013
- | "NonBorrower"
7014
- | "LoanOfficer"
7015
- | "LoanProcessor"
7016
- | "LoanOfficerAssistant"
7017
- | "SupportingLoanOfficer"
7018
- | "BuyerAgent"
7019
- | "SellerAgent"
7020
- | "TitleInsuranceAgent"
7021
- | "EscrowAgent"
7022
- | "SettlementAgent"
7023
- | "Admin";
7024
-
7025
- /** @deprecated */
7026
- export type CreateInviteRequestRelationshipEnum =
7027
- | "NotApplicable"
7028
- | "Spouse"
7029
- | "NonSpouse";
7030
-
7031
- export type CreateLoanImportRequestImportModeEnum =
7032
- | "All"
7033
- | "NewOnly"
7034
- | "UpdateOnly";
7035
-
7036
- export type CreateUserDraftLoanRoleEnum =
7037
- | "Borrower"
7038
- | "CoBorrower"
7039
- | "NonBorrower"
7040
- | "LoanOfficer"
7041
- | "LoanProcessor"
7042
- | "LoanOfficerAssistant"
7043
- | "SupportingLoanOfficer"
7044
- | "BuyerAgent"
7045
- | "SellerAgent"
7046
- | "TitleInsuranceAgent"
7047
- | "EscrowAgent"
7048
- | "SettlementAgent"
7049
- | "Admin";
7050
-
7051
- export type CustomFieldDefinitionDataTypeEnum =
7052
- | "String"
7053
- | "Number"
7054
- | "Decimal"
7055
- | "Boolean"
7056
- | "Date"
7057
- | "SingleSelect"
7058
- | "MultiSelect";
7059
-
7060
- export type CustomFieldDefinitionEntityTypeEnum = "Loan";
7061
-
7062
- export type CustomFieldEntryDataTypeEnum =
7063
- | "String"
7064
- | "Number"
7065
- | "Decimal"
7066
- | "Boolean"
7067
- | "Date"
7068
- | "SingleSelect"
7069
- | "MultiSelect";
7070
-
7071
- export type CustomFieldPermissionRoleEnum =
7072
- | "Borrower"
7073
- | "LoanOfficer"
7074
- | "Admin"
7075
- | "SuperAdmin"
7076
- | "Realtor"
7077
- | "SettlementAgent"
7078
- | "LoanProcessor"
7079
- | "LoanOfficerAssistant"
7080
- | "SystemAdmin";
7081
-
7082
- export type CustomFieldPermissionAccessLevelEnum =
7083
- | "NoAccess"
7084
- | "ReadOnly"
7085
- | "ReadWrite";
7086
-
7087
- export type CustomFieldPermissionRequestRoleEnum =
7088
- | "Borrower"
7089
- | "LoanOfficer"
7090
- | "Admin"
7091
- | "SuperAdmin"
7092
- | "Realtor"
7093
- | "SettlementAgent"
7094
- | "LoanProcessor"
7095
- | "LoanOfficerAssistant"
7096
- | "SystemAdmin";
7097
-
7098
- export type CustomFieldPermissionRequestAccessLevelEnum =
7099
- | "NoAccess"
7100
- | "ReadOnly"
7101
- | "ReadWrite";
7102
-
7103
- export type CustomFieldValueDataTypeEnum =
7104
- | "String"
7105
- | "Number"
7106
- | "Decimal"
7107
- | "Boolean"
7108
- | "Date"
7109
- | "SingleSelect"
7110
- | "MultiSelect";
7111
-
7112
- export type DraftTypeEnum = "NewLoan" | "EditLoan";
7113
-
7114
- export type DraftContentTypeEnum = "NewLoan" | "EditLoan";
7115
-
7116
- export type EncompassCredentialsDetailEncompassEnvironmentEnum =
7117
- | "Production"
7118
- | "UAT";
7119
-
7120
- export type EncompassCredentialsDetailSigningMethodEnum =
7121
- | "ConsumerConnect"
7122
- | "POSF";
7123
-
7124
- export type EncompassCredentialsRequestEncompassEnvironmentEnum =
7125
- | "Production"
7126
- | "UAT";
7127
-
7128
- export type EncompassCredentialsRequestSigningMethodEnum =
7129
- | "ConsumerConnect"
7130
- | "POSF";
7131
-
7132
- export type EncompassRequestLogOperationTypeEnum =
7133
- | "FieldUpdate"
7134
- | "ConsentUpdate"
7135
- | "DocumentSync"
7136
- | "MilestoneUpdate"
7137
- | "DocumentAttachment"
7138
- | "General"
7139
- | "FieldReader";
7140
-
7141
- export type EncompassRequestLogOutcomeEnum =
7142
- | "Success"
7143
- | "Failure"
7144
- | "PartialSuccess";
7145
-
7146
- export type FusionReportFilterFilterTypeEnum =
7147
- | "DateGreaterThanOrEqualTo"
7148
- | "DateGreaterThan"
7149
- | "DateLessThan"
7150
- | "DateLessThanOrEqualTo"
7151
- | "DateEquals"
7152
- | "DateDoesntEqual"
7153
- | "DateNonEmpty"
7154
- | "DateEmpty"
7155
- | "StringContains"
7156
- | "StringEquals"
7157
- | "StringNotEmpty"
7158
- | "StringNotEquals"
7159
- | "StringNotContains";
7160
-
7161
- export type GenerateSystemPromptRequestCategoryEnum =
7162
- | "DocumentAnalysis"
7163
- | "DataQuery"
7164
- | "General"
7165
- | "Action";
7166
-
7167
- export type IpAddressAddressFamilyEnum =
7168
- | "Unspecified"
7169
- | "Unix"
7170
- | "InterNetwork"
7171
- | "ImpLink"
7172
- | "Pup"
7173
- | "Chaos"
7174
- | "NS"
7175
- | "Ipx"
7176
- | "Iso"
7177
- | "Osi"
7178
- | "Ecma"
7179
- | "DataKit"
7180
- | "Ccitt"
7181
- | "Sna"
7182
- | "DecNet"
7183
- | "DataLink"
7184
- | "Lat"
7185
- | "HyperChannel"
7186
- | "AppleTalk"
7187
- | "NetBios"
7188
- | "VoiceView"
7189
- | "FireFox"
7190
- | "Banyan"
7191
- | "Atm"
7192
- | "InterNetworkV6"
7193
- | "Cluster"
7194
- | "Ieee12844"
7195
- | "Irda"
7196
- | "NetworkDesigners"
7197
- | "Max"
7198
- | "Packet"
7199
- | "ControllerAreaNetwork"
7200
- | "Unknown";
7201
-
7202
- export type LoanSigningMethodEnum = "ConsumerConnect" | "POSF";
7203
-
7204
- export type LoanBorrowerApplicationStatusEnum = "Draft" | "Complete";
7205
-
7206
- export type LoanContactRoleEnum =
7207
- | "Borrower"
7208
- | "CoBorrower"
7209
- | "NonBorrower"
7210
- | "LoanOfficer"
7211
- | "LoanProcessor"
7212
- | "LoanOfficerAssistant"
7213
- | "SupportingLoanOfficer"
7214
- | "BuyerAgent"
7215
- | "SellerAgent"
7216
- | "TitleInsuranceAgent"
7217
- | "EscrowAgent"
7218
- | "SettlementAgent"
7219
- | "Admin";
7220
-
7221
- export type LoanDocumentFolderPermissionRoleEnum =
7222
- | "Borrower"
7223
- | "CoBorrower"
7224
- | "NonBorrower"
7225
- | "LoanOfficer"
7226
- | "LoanProcessor"
7227
- | "LoanOfficerAssistant"
7228
- | "SupportingLoanOfficer"
7229
- | "BuyerAgent"
7230
- | "SellerAgent"
7231
- | "TitleInsuranceAgent"
7232
- | "EscrowAgent"
7233
- | "SettlementAgent"
7234
- | "Admin";
7235
-
7236
- export type LoanDocumentFolderPermissionLevelEnum =
7237
- | "None"
7238
- | "Read"
7239
- | "Write"
7240
- | "Manage";
7241
-
7242
- export type LoanDocumentFolderPermissionRequestRoleEnum =
7243
- | "Borrower"
7244
- | "CoBorrower"
7245
- | "NonBorrower"
7246
- | "LoanOfficer"
7247
- | "LoanProcessor"
7248
- | "LoanOfficerAssistant"
7249
- | "SupportingLoanOfficer"
7250
- | "BuyerAgent"
7251
- | "SellerAgent"
7252
- | "TitleInsuranceAgent"
7253
- | "EscrowAgent"
7254
- | "SettlementAgent"
7255
- | "Admin";
7256
-
7257
- export type LoanDocumentFolderPermissionRequestLevelEnum =
7258
- | "None"
7259
- | "Read"
7260
- | "Write"
7261
- | "Manage";
7262
-
7263
- export type LoanImportStatusEnum =
7264
- | "WaitingProcess"
7265
- | "InProgress"
7266
- | "Completed"
7267
- | "Failed"
7268
- | "Cancelled";
7269
-
7270
- export type LoanImportImportModeEnum = "All" | "NewOnly" | "UpdateOnly";
7271
-
7272
- export type LoanImportLogLevelEnum = "None" | "Info" | "Warning" | "Error";
7273
-
7274
- export type LoanLogLevelEnum = "None" | "Info" | "Warning" | "Error";
7275
-
7276
- export type LoanLogTypeEnum =
7277
- | "Loan"
7278
- | "Queue"
7279
- | "POSFlagChanged"
7280
- | "Verification"
7281
- | "DocumentUploaded"
7282
- | "LoanCreated"
7283
- | "WorkflowSubmitted"
7284
- | "UserInvitationSent"
7285
- | "CoBorrowerAdded"
7286
- | "TaskCompleted"
7287
- | "LoanStatusChanged"
7288
- | "Consent"
7289
- | "SensitiveDataPurge"
7290
- | "ClosingDateUpdated"
7291
- | "ConsumerConnectAssociation"
7292
- | "TaskReminderSent"
7293
- | "DocumentClassified";
7294
-
7295
- export type LoanLogDetailLevelEnum = "None" | "Info" | "Warning" | "Error";
7296
-
7297
- export type LoanLogDetailTypeEnum =
7298
- | "Loan"
7299
- | "Queue"
7300
- | "POSFlagChanged"
7301
- | "Verification"
7302
- | "DocumentUploaded"
7303
- | "LoanCreated"
7304
- | "WorkflowSubmitted"
7305
- | "UserInvitationSent"
7306
- | "CoBorrowerAdded"
7307
- | "TaskCompleted"
7308
- | "LoanStatusChanged"
7309
- | "Consent"
7310
- | "SensitiveDataPurge"
7311
- | "ClosingDateUpdated"
7312
- | "ConsumerConnectAssociation"
7313
- | "TaskReminderSent"
7314
- | "DocumentClassified";
7315
-
7316
- export type LoanTaskStatusSummaryStatusEnum =
7317
- | "Outstanding"
7318
- | "Pending"
7319
- | "Completed"
7320
- | "Rejected"
7321
- | "Unknown";
7322
-
7323
- export type LoanUserLoanRoleEnum =
7324
- | "Borrower"
7325
- | "CoBorrower"
7326
- | "NonBorrower"
7327
- | "LoanOfficer"
7328
- | "LoanProcessor"
7329
- | "LoanOfficerAssistant"
7330
- | "SupportingLoanOfficer"
7331
- | "BuyerAgent"
7332
- | "SellerAgent"
7333
- | "TitleInsuranceAgent"
7334
- | "EscrowAgent"
7335
- | "SettlementAgent"
7336
- | "Admin";
7337
-
7338
- export type LosOperationTrackingStatusEnum =
7339
- | "Pending"
7340
- | "Success"
7341
- | "Failed"
7342
- | "ConfigurationError"
7343
- | "PermanentFailure"
7344
- | "Locked";
7345
-
7346
- export type LosSyncStepSeverityEnum = "Success" | "Info" | "Warning" | "Error";
7347
-
7348
- export type ManualDocumentClassificationRequestDocumentTypeEnum =
7349
- | "W2"
7350
- | "Paystub"
7351
- | "Form1099"
7352
- | "Form1099Int"
7353
- | "Form1099Misc"
7354
- | "Form1099Nec"
7355
- | "Form1099R"
7356
- | "Form1099G"
7357
- | "Form1099Div"
7358
- | "Form1099Ssa"
7359
- | "FederalTaxReturn1040"
7360
- | "TaxReturnScheduleC"
7361
- | "TaxReturnScheduleD"
7362
- | "TaxReturnScheduleE"
7363
- | "Form1065"
7364
- | "Form1120"
7365
- | "Form1120S"
7366
- | "ProfitAndLossStatement"
7367
- | "VerificationOfEmployment"
7368
- | "BankStatement"
7369
- | "InvestmentStatement"
7370
- | "CreditCardStatement"
7371
- | "MortgageStatement"
7372
- | "PayoffStatement"
7373
- | "HoaDocuments"
7374
- | "UtilityBill"
7375
- | "IdentityDocument"
7376
- | "DemographicAddendum"
7377
- | "Ssa89"
7378
- | "Vba260551"
7379
- | "Hud92900B"
7380
- | "Check"
7381
- | "Invoice"
7382
- | "Receipt"
7383
- | "LoanApplication1003"
7384
- | "UnderwritingTransmittal1008"
7385
- | "Other"
7386
- | "SalesContract"
7387
- | "TitleCommitment"
7388
- | "DriversLicense"
7389
- | "VerificationOfIncome"
7390
- | "VerificationOfAssets"
7391
- | "FloodCertificate"
7392
- | "FraudReport"
7393
- | "AddendumToSalesContract"
7394
- | "GiftLetter"
7395
- | "CpaLetter"
7396
- | "TaxBill"
7397
- | "CondoQuestionnaire"
7398
- | "CondoBudget"
7399
- | "CondoBylaws"
7400
- | "RentalAgreements"
7401
- | "Lease"
7402
- | "HazardInsurance"
7403
- | "VaCertificateOfEligibility"
7404
- | "Appraisal"
7405
- | "CreditReport"
7406
- | "CondoMasterPolicy";
7407
-
7408
- export type SiteConfigurationTypeEnum =
7409
- | "None"
7410
- | "Account"
7411
- | "Corporate"
7412
- | "Branch"
7413
- | "LoanOfficer"
7414
- | "Partner";
7415
-
7416
- export type SiteConfigurationByUrlTypeEnum =
7417
- | "None"
7418
- | "Account"
7419
- | "Corporate"
7420
- | "Branch"
7421
- | "LoanOfficer"
7422
- | "Partner";
7423
-
7424
- export type SiteConfigurationReducedTypeEnum =
7425
- | "None"
7426
- | "Account"
7427
- | "Corporate"
7428
- | "Branch"
7429
- | "LoanOfficer"
7430
- | "Partner";
7431
-
7432
- export type SiteConfigurationRequestTypeEnum =
7433
- | "None"
7434
- | "Account"
7435
- | "Corporate"
7436
- | "Branch"
7437
- | "LoanOfficer"
7438
- | "Partner";
7439
-
7440
- export type SiteConfigurationSummaryTypeEnum =
7441
- | "None"
7442
- | "Account"
7443
- | "Corporate"
7444
- | "Branch"
7445
- | "LoanOfficer"
7446
- | "Partner";
7447
-
7448
- export type UnregisteredBorrowerRoleEnum =
7449
- | "Borrower"
7450
- | "CoBorrower"
7451
- | "NonBorrower"
7452
- | "LoanOfficer"
7453
- | "LoanProcessor"
7454
- | "LoanOfficerAssistant"
7455
- | "SupportingLoanOfficer"
7456
- | "BuyerAgent"
7457
- | "SellerAgent"
7458
- | "TitleInsuranceAgent"
7459
- | "EscrowAgent"
7460
- | "SettlementAgent"
7461
- | "Admin";
7462
-
7463
- export type UpdateAiGuardrailRequestCategoryEnum =
7464
- | "ContentSafety"
7465
- | "PromptInjection"
7466
- | "Privacy"
7467
- | "Legal";
7468
-
7469
- export type UpdateAiUrlSourceRequestCategoryEnum =
7470
- | "Regulatory"
7471
- | "Guidelines"
7472
- | "MarketData"
7473
- | "Custom";
7474
-
7475
- export type UpdateAiUrlSourceRequestScopeEnum = "FullDomain" | "SpecificPath";
7476
-
7477
- export type UserDraftRoleEnum =
7478
- | "Borrower"
7479
- | "CoBorrower"
7480
- | "NonBorrower"
7481
- | "LoanOfficer"
7482
- | "LoanProcessor"
7483
- | "LoanOfficerAssistant"
7484
- | "SupportingLoanOfficer"
7485
- | "BuyerAgent"
7486
- | "SellerAgent"
7487
- | "TitleInsuranceAgent"
7488
- | "EscrowAgent"
7489
- | "SettlementAgent"
7490
- | "Admin";
7491
-
7492
- export type UserGroupAccessScopeScopeTypeEnum = "User" | "Branch";
7493
-
7494
- export type UserLoanRoleEnum =
7495
- | "Borrower"
7496
- | "CoBorrower"
7497
- | "NonBorrower"
7498
- | "LoanOfficer"
7499
- | "LoanProcessor"
7500
- | "LoanOfficerAssistant"
7501
- | "SupportingLoanOfficer"
7502
- | "BuyerAgent"
7503
- | "SellerAgent"
7504
- | "TitleInsuranceAgent"
7505
- | "EscrowAgent"
7506
- | "SettlementAgent"
7507
- | "Admin";
7508
-
7509
- export type UserLoanConsentTypeEnum =
7510
- | "Econsent"
7511
- | "CreditAuthorization"
7512
- | "Tcpa";
7513
-
7514
- export type UserLoanConsentLosSyncStatusEnum =
7515
- | "NotStarted"
7516
- | "Failed"
7517
- | "Success";
7518
-
7519
- export type UserSummaryRoleEnum =
7520
- | "Borrower"
7521
- | "LoanOfficer"
7522
- | "Admin"
7523
- | "SuperAdmin"
7524
- | "Realtor"
7525
- | "SettlementAgent"
7526
- | "LoanProcessor"
7527
- | "LoanOfficerAssistant"
7528
- | "SystemAdmin";
7529
-
7530
- export type GetCustomFieldDefinitionsParamsEntityTypeEnum = "Loan";
7531
-
7532
- /** @default "Realtor" */
7533
- export type GetPartnersParamsRoleEnum =
7534
- | "Borrower"
7535
- | "LoanOfficer"
7536
- | "Admin"
7537
- | "SuperAdmin"
7538
- | "Realtor"
7539
- | "SettlementAgent"
7540
- | "LoanProcessor"
7541
- | "LoanOfficerAssistant"
7542
- | "SystemAdmin";
7543
-
7544
- export type GetSamlMetadataParamsSSoIntegrationEnum =
7545
- | "ConsumerConnect"
7546
- | "TheBigPOS"
7547
- | "POSF";
7548
-
7549
- export type GetSamlMetadataParamsEnum =
7550
- | "ConsumerConnect"
7551
- | "TheBigPOS"
7552
- | "POSF";
7553
-
7554
- export type CreateOrReplaceSamlMetadataParamsSSoIntegrationEnum =
7555
- | "ConsumerConnect"
7556
- | "TheBigPOS"
7557
- | "POSF";
7558
-
7559
- export type CreateOrReplaceSamlMetadataParamsEnum =
7560
- | "ConsumerConnect"
7561
- | "TheBigPOS"
7562
- | "POSF";
7563
-
7564
- import type {
7565
- AxiosInstance,
7566
- AxiosRequestConfig,
7567
- AxiosResponse,
7568
- HeadersDefaults,
7569
- ResponseType,
7570
- } from "axios";
7571
- import axios from "axios";
7572
-
7573
- export type QueryParamsType = Record<string | number, any>;
7574
-
7575
- export interface FullRequestParams
7576
- extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
7577
- /** set parameter to `true` for call `securityWorker` for this request */
7578
- secure?: boolean;
7579
- /** request path */
7580
- path: string;
7581
- /** content type of request body */
7582
- type?: ContentType;
7583
- /** query params */
7584
- query?: QueryParamsType;
7585
- /** format of response (i.e. response.json() -> format: "json") */
7586
- format?: ResponseType;
7587
- /** request body */
7588
- body?: unknown;
7589
- }
7590
-
7591
- export type RequestParams = Omit<
7592
- FullRequestParams,
7593
- "body" | "method" | "query" | "path"
7594
- >;
7595
-
7596
- export interface ApiConfig<SecurityDataType = unknown>
7597
- extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
7598
- securityWorker?: (
7599
- securityData: SecurityDataType | null,
7600
- ) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
7601
- secure?: boolean;
7602
- format?: ResponseType;
7603
- }
7604
-
7605
- export type ContentType =
7606
- | "application/json"
7607
- | "application/vnd.api+json"
7608
- | "multipart/form-data"
7609
- | "application/x-www-form-urlencoded"
7610
- | "text/plain";
7611
-
7612
- export class HttpClient<SecurityDataType = unknown> {
7613
- public instance: AxiosInstance;
7614
- private securityData: SecurityDataType | null = null;
7615
- private securityWorker?: ApiConfig<SecurityDataType>["securityWorker"];
7616
- private secure?: boolean;
7617
- private format?: ResponseType;
7618
-
7619
- constructor({
7620
- securityWorker,
7621
- secure,
7622
- format,
7623
- ...axiosConfig
7624
- }: ApiConfig<SecurityDataType> = {}) {
7625
- this.instance = axios.create({
7626
- ...axiosConfig,
7627
- baseURL: axiosConfig.baseURL || "",
7628
- });
7629
- this.secure = secure;
7630
- this.format = format;
7631
- this.securityWorker = securityWorker;
7632
- }
7633
-
7634
- public setSecurityData = (data: SecurityDataType | null) => {
7635
- this.securityData = data;
7636
- };
7637
-
7638
- protected mergeRequestParams(
7639
- params1: AxiosRequestConfig,
7640
- params2?: AxiosRequestConfig,
7641
- ): AxiosRequestConfig {
7642
- const method = params1.method || (params2 && params2.method);
7643
-
7644
- return {
7645
- ...this.instance.defaults,
7646
- ...params1,
7647
- ...(params2 || {}),
7648
- headers: {
7649
- ...((method &&
7650
- this.instance.defaults.headers[
7651
- method.toLowerCase() as keyof HeadersDefaults
7652
- ]) ||
7653
- {}),
7654
- ...(params1.headers || {}),
7655
- ...((params2 && params2.headers) || {}),
7656
- },
7657
- };
7658
- }
7659
-
7660
- protected stringifyFormItem(formItem: unknown) {
7661
- if (typeof formItem === "object" && formItem !== null) {
7662
- return JSON.stringify(formItem);
7663
- } else {
7664
- return `${formItem}`;
7665
- }
7666
- }
7667
-
7668
- protected createFormData(input: Record<string, unknown>): FormData {
7669
- if (input instanceof FormData) {
7670
- return input;
7671
- }
7672
- return Object.keys(input || {}).reduce((formData, key) => {
7673
- const property = input[key];
7674
- const propertyContent: any[] =
7675
- property instanceof Array ? property : [property];
7676
-
7677
- for (const formItem of propertyContent) {
7678
- const isFileType = formItem instanceof Blob || formItem instanceof File;
7679
- formData.append(
7680
- key,
7681
- isFileType ? formItem : this.stringifyFormItem(formItem),
7682
- );
7683
- }
7684
-
7685
- return formData;
7686
- }, new FormData());
7687
- }
7688
-
7689
- public request = async <T = any, _E = any>({
7690
- secure,
7691
- path,
7692
- type,
7693
- query,
7694
- format,
7695
- body,
7696
- ...params
7697
- }: FullRequestParams): Promise<AxiosResponse<T>> => {
7698
- const secureParams =
7699
- ((typeof secure === "boolean" ? secure : this.secure) &&
7700
- this.securityWorker &&
7701
- (await this.securityWorker(this.securityData))) ||
7702
- {};
7703
- const requestParams = this.mergeRequestParams(params, secureParams);
7704
- const responseFormat = format || this.format || undefined;
7705
-
7706
- if (
7707
- type === "multipart/form-data" &&
7708
- body &&
7709
- body !== null &&
7710
- typeof body === "object"
7711
- ) {
7712
- body = this.createFormData(body as Record<string, unknown>);
7713
- }
7459
+ if (
7460
+ type === ContentType.FormData &&
7461
+ body &&
7462
+ body !== null &&
7463
+ typeof body === "object"
7464
+ ) {
7465
+ body = this.createFormData(body as Record<string, unknown>);
7466
+ }
7714
7467
 
7715
7468
  if (
7716
- type === "text/plain" &&
7469
+ type === ContentType.Text &&
7717
7470
  body &&
7718
7471
  body !== null &&
7719
7472
  typeof body !== "string"
@@ -7820,7 +7573,7 @@ export class Api<
7820
7573
  method: "PUT",
7821
7574
  body: data,
7822
7575
  secure: true,
7823
- type: "application/json",
7576
+ type: ContentType.Json,
7824
7577
  format: "json",
7825
7578
  ...params,
7826
7579
  }),
@@ -7864,7 +7617,7 @@ export class Api<
7864
7617
  method: "PUT",
7865
7618
  body: data,
7866
7619
  secure: true,
7867
- type: "application/json",
7620
+ type: ContentType.Json,
7868
7621
  format: "json",
7869
7622
  ...params,
7870
7623
  }),
@@ -7888,7 +7641,7 @@ export class Api<
7888
7641
  method: "POST",
7889
7642
  body: data,
7890
7643
  secure: true,
7891
- type: "application/json",
7644
+ type: ContentType.Json,
7892
7645
  ...params,
7893
7646
  }),
7894
7647
 
@@ -7912,7 +7665,7 @@ export class Api<
7912
7665
  method: "POST",
7913
7666
  body: data,
7914
7667
  secure: true,
7915
- type: "application/json",
7668
+ type: ContentType.Json,
7916
7669
  ...params,
7917
7670
  }),
7918
7671
 
@@ -7952,7 +7705,7 @@ export class Api<
7952
7705
  method: "POST",
7953
7706
  body: data,
7954
7707
  secure: true,
7955
- type: "application/json",
7708
+ type: ContentType.Json,
7956
7709
  format: "json",
7957
7710
  ...params,
7958
7711
  }),
@@ -8028,7 +7781,93 @@ export class Api<
8028
7781
  method: "PUT",
8029
7782
  body: data,
8030
7783
  secure: true,
8031
- type: "application/json",
7784
+ type: ContentType.Json,
7785
+ format: "json",
7786
+ ...params,
7787
+ }),
7788
+
7789
+ /**
7790
+ * No description
7791
+ *
7792
+ * @tags AiAccountSettings
7793
+ * @name GetAiAccountSettings
7794
+ * @summary Get account AI settings
7795
+ * @request GET:/api/ai/admin/account-settings
7796
+ * @secure
7797
+ * @response `200` `AiAccountSettings` OK
7798
+ */
7799
+ getAiAccountSettings: (params: RequestParams = {}) =>
7800
+ this.request<AiAccountSettings, any>({
7801
+ path: `/api/ai/admin/account-settings`,
7802
+ method: "GET",
7803
+ secure: true,
7804
+ format: "json",
7805
+ ...params,
7806
+ }),
7807
+
7808
+ /**
7809
+ * No description
7810
+ *
7811
+ * @tags AiAccountSettings
7812
+ * @name UpdateAiAccountSettings
7813
+ * @summary Update account AI settings
7814
+ * @request PUT:/api/ai/admin/account-settings
7815
+ * @secure
7816
+ * @response `200` `AiAccountSettings` OK
7817
+ * @response `400` `ProblemDetails` Bad Request
7818
+ */
7819
+ updateAiAccountSettings: (
7820
+ data: AiAccountSettingsRequest,
7821
+ params: RequestParams = {},
7822
+ ) =>
7823
+ this.request<AiAccountSettings, ProblemDetails>({
7824
+ path: `/api/ai/admin/account-settings`,
7825
+ method: "PUT",
7826
+ body: data,
7827
+ secure: true,
7828
+ type: ContentType.Json,
7829
+ format: "json",
7830
+ ...params,
7831
+ }),
7832
+
7833
+ /**
7834
+ * No description
7835
+ *
7836
+ * @tags AiAdmin
7837
+ * @name GetAiAuditLogs
7838
+ * @summary Get paginated audit logs
7839
+ * @request GET:/api/ai/admin/audit-logs
7840
+ * @secure
7841
+ * @response `200` `AiAuditLogPaginated` OK
7842
+ */
7843
+ getAiAuditLogs: (
7844
+ query?: {
7845
+ eventType?: AiAuditEventType;
7846
+ /** @format uuid */
7847
+ requestId?: string;
7848
+ /** @format uuid */
7849
+ userId?: string;
7850
+ /** @format uuid */
7851
+ conversationId?: string;
7852
+ blockedOnly?: boolean;
7853
+ /** @format date-time */
7854
+ startDate?: string;
7855
+ /** @format date-time */
7856
+ endDate?: string;
7857
+ /** @format int32 */
7858
+ pageSize?: number;
7859
+ /** @format int32 */
7860
+ pageNumber?: number;
7861
+ sortBy?: string;
7862
+ sortDirection?: string;
7863
+ },
7864
+ params: RequestParams = {},
7865
+ ) =>
7866
+ this.request<AiAuditLogPaginated, any>({
7867
+ path: `/api/ai/admin/audit-logs`,
7868
+ method: "GET",
7869
+ query: query,
7870
+ secure: true,
8032
7871
  format: "json",
8033
7872
  ...params,
8034
7873
  }),
@@ -8036,16 +7875,16 @@ export class Api<
8036
7875
  /**
8037
7876
  * No description
8038
7877
  *
8039
- * @tags AiAccess
8040
- * @name GetAiAccess
8041
- * @summary Get whether AI is enabled for the current user's account
8042
- * @request GET:/api/ai/access
7878
+ * @tags AiAdmin
7879
+ * @name GetAiRequestLifecycle
7880
+ * @summary Get the full event lifecycle of a single AI request
7881
+ * @request GET:/api/ai/admin/audit-logs/request/{requestId}
8043
7882
  * @secure
8044
- * @response `200` `AiEnabled` OK
7883
+ * @response `200` `(AiAuditLog)[]` OK
8045
7884
  */
8046
- getAiAccess: (params: RequestParams = {}) =>
8047
- this.request<AiEnabled, any>({
8048
- path: `/api/ai/access`,
7885
+ getAiRequestLifecycle: (requestId: string, params: RequestParams = {}) =>
7886
+ this.request<AiAuditLog[], any>({
7887
+ path: `/api/ai/admin/audit-logs/request/${requestId}`,
8049
7888
  method: "GET",
8050
7889
  secure: true,
8051
7890
  format: "json",
@@ -8055,17 +7894,33 @@ export class Api<
8055
7894
  /**
8056
7895
  * No description
8057
7896
  *
8058
- * @tags AiAccount
8059
- * @name GetAccountAiEnabled
8060
- * @summary Get whether AI is enabled for an account (SuperAdmin only)
8061
- * @request GET:/api/ai/accounts/{accountId}/ai-enabled
7897
+ * @tags AiAdmin
7898
+ * @name GetAiAuditConversations
7899
+ * @summary List conversations with their audit roll-up origin user, turns, status, tokens
7900
+ * @request GET:/api/ai/admin/audit-conversations
8062
7901
  * @secure
8063
- * @response `200` `AiEnabled` OK
7902
+ * @response `200` `AiConversationAuditSummaryPaginated` OK
8064
7903
  */
8065
- getAccountAiEnabled: (accountId: string, params: RequestParams = {}) =>
8066
- this.request<AiEnabled, any>({
8067
- path: `/api/ai/accounts/${accountId}/ai-enabled`,
7904
+ getAiAuditConversations: (
7905
+ query?: {
7906
+ searchText?: string;
7907
+ /** @format date-time */
7908
+ startDate?: string;
7909
+ /** @format date-time */
7910
+ endDate?: string;
7911
+ /** @format int32 */
7912
+ pageSize?: number;
7913
+ /** @format int32 */
7914
+ pageNumber?: number;
7915
+ sortBy?: string;
7916
+ sortDirection?: string;
7917
+ },
7918
+ params: RequestParams = {},
7919
+ ) =>
7920
+ this.request<AiConversationAuditSummaryPaginated, any>({
7921
+ path: `/api/ai/admin/audit-conversations`,
8068
7922
  method: "GET",
7923
+ query: query,
8069
7924
  secure: true,
8070
7925
  format: "json",
8071
7926
  ...params,
@@ -8074,41 +7929,26 @@ export class Api<
8074
7929
  /**
8075
7930
  * No description
8076
7931
  *
8077
- * @tags AiAccount
8078
- * @name SetAccountAiEnabled
8079
- * @summary Enable or disable AI for an account (SuperAdmin only)
8080
- * @request PUT:/api/ai/accounts/{accountId}/ai-enabled
7932
+ * @tags AiAdmin
7933
+ * @name GetAiAdminStats
7934
+ * @summary Get AI admin dashboard stats
7935
+ * @request GET:/api/ai/admin/stats
8081
7936
  * @secure
8082
- * @response `204` `void` No Content
7937
+ * @response `200` `AiAdminStats` OK
8083
7938
  */
8084
- setAccountAiEnabled: (
8085
- accountId: string,
8086
- data: SetAiEnabledRequest,
7939
+ getAiAdminStats: (
7940
+ query?: {
7941
+ /** @format date-time */
7942
+ startDate?: string;
7943
+ /** @format date-time */
7944
+ endDate?: string;
7945
+ },
8087
7946
  params: RequestParams = {},
8088
7947
  ) =>
8089
- this.request<void, any>({
8090
- path: `/api/ai/accounts/${accountId}/ai-enabled`,
8091
- method: "PUT",
8092
- body: data,
8093
- secure: true,
8094
- type: "application/json",
8095
- ...params,
8096
- }),
8097
-
8098
- /**
8099
- * No description
8100
- *
8101
- * @tags AiAccountSettings
8102
- * @name GetAiAccountSettings
8103
- * @summary Get account AI settings
8104
- * @request GET:/api/ai/account-settings
8105
- * @secure
8106
- * @response `200` `AiAccountSettings` OK
8107
- */
8108
- getAiAccountSettings: (params: RequestParams = {}) =>
8109
- this.request<AiAccountSettings, any>({
8110
- path: `/api/ai/account-settings`,
7948
+ this.request<AiAdminStats, any>({
7949
+ path: `/api/ai/admin/stats`,
8111
7950
  method: "GET",
7951
+ query: query,
8112
7952
  secure: true,
8113
7953
  format: "json",
8114
7954
  ...params,
@@ -8117,24 +7957,39 @@ export class Api<
8117
7957
  /**
8118
7958
  * No description
8119
7959
  *
8120
- * @tags AiAccountSettings
8121
- * @name UpdateAiAccountSettings
8122
- * @summary Update account AI settings
8123
- * @request PUT:/api/ai/account-settings
7960
+ * @tags AiAdmin
7961
+ * @name GetAiConfigChanges
7962
+ * @summary Get the AI configuration change history (who changed prompts, guardrails, fields, sources)
7963
+ * @request GET:/api/ai/admin/config-changes
8124
7964
  * @secure
8125
- * @response `200` `AiAccountSettings` OK
8126
- * @response `400` `ProblemDetails` Bad Request
7965
+ * @response `200` `AiConfigChangeLogPaginated` OK
8127
7966
  */
8128
- updateAiAccountSettings: (
8129
- data: AiAccountSettingsRequest,
7967
+ getAiConfigChanges: (
7968
+ query?: {
7969
+ entityType?: AiConfigEntityType;
7970
+ /** @format uuid */
7971
+ entityId?: string;
7972
+ /** @format uuid */
7973
+ actorUserId?: string;
7974
+ action?: AiConfigChangeAction;
7975
+ /** @format date-time */
7976
+ startDate?: string;
7977
+ /** @format date-time */
7978
+ endDate?: string;
7979
+ /** @format int32 */
7980
+ pageSize?: number;
7981
+ /** @format int32 */
7982
+ pageNumber?: number;
7983
+ sortBy?: string;
7984
+ sortDirection?: string;
7985
+ },
8130
7986
  params: RequestParams = {},
8131
7987
  ) =>
8132
- this.request<AiAccountSettings, ProblemDetails>({
8133
- path: `/api/ai/account-settings`,
8134
- method: "PUT",
8135
- body: data,
7988
+ this.request<AiConfigChangeLogPaginated, any>({
7989
+ path: `/api/ai/admin/config-changes`,
7990
+ method: "GET",
7991
+ query: query,
8136
7992
  secure: true,
8137
- type: "application/json",
8138
7993
  format: "json",
8139
7994
  ...params,
8140
7995
  }),
@@ -8145,13 +8000,13 @@ export class Api<
8145
8000
  * @tags AiAdminPrompt
8146
8001
  * @name GetAiPrompts
8147
8002
  * @summary Get all prompts
8148
- * @request GET:/api/ai/prompts
8003
+ * @request GET:/api/ai/admin/prompts
8149
8004
  * @secure
8150
8005
  * @response `200` `(AiPrompt)[]` OK
8151
8006
  */
8152
8007
  getAiPrompts: (params: RequestParams = {}) =>
8153
8008
  this.request<AiPrompt[], any>({
8154
- path: `/api/ai/prompts`,
8009
+ path: `/api/ai/admin/prompts`,
8155
8010
  method: "GET",
8156
8011
  secure: true,
8157
8012
  format: "json",
@@ -8164,18 +8019,18 @@ export class Api<
8164
8019
  * @tags AiAdminPrompt
8165
8020
  * @name CreateAiPrompt
8166
8021
  * @summary Create custom prompt
8167
- * @request POST:/api/ai/prompts
8022
+ * @request POST:/api/ai/admin/prompts
8168
8023
  * @secure
8169
8024
  * @response `201` `AiPrompt` Created
8170
8025
  * @response `400` `ProblemDetails` Bad Request
8171
8026
  */
8172
8027
  createAiPrompt: (data: CreateAiPromptRequest, params: RequestParams = {}) =>
8173
8028
  this.request<AiPrompt, ProblemDetails>({
8174
- path: `/api/ai/prompts`,
8029
+ path: `/api/ai/admin/prompts`,
8175
8030
  method: "POST",
8176
8031
  body: data,
8177
8032
  secure: true,
8178
- type: "application/json",
8033
+ type: ContentType.Json,
8179
8034
  format: "json",
8180
8035
  ...params,
8181
8036
  }),
@@ -8186,14 +8041,14 @@ export class Api<
8186
8041
  * @tags AiAdminPrompt
8187
8042
  * @name GetAiPrompt
8188
8043
  * @summary Get prompt by ID
8189
- * @request GET:/api/ai/prompts/{id}
8044
+ * @request GET:/api/ai/admin/prompts/{id}
8190
8045
  * @secure
8191
8046
  * @response `200` `AiPrompt` OK
8192
8047
  * @response `404` `ProblemDetails` Not Found
8193
8048
  */
8194
8049
  getAiPrompt: (id: string, params: RequestParams = {}) =>
8195
8050
  this.request<AiPrompt, ProblemDetails>({
8196
- path: `/api/ai/prompts/${id}`,
8051
+ path: `/api/ai/admin/prompts/${id}`,
8197
8052
  method: "GET",
8198
8053
  secure: true,
8199
8054
  format: "json",
@@ -8206,7 +8061,7 @@ export class Api<
8206
8061
  * @tags AiAdminPrompt
8207
8062
  * @name UpdateAiPrompt
8208
8063
  * @summary Update prompt
8209
- * @request PUT:/api/ai/prompts/{id}
8064
+ * @request PUT:/api/ai/admin/prompts/{id}
8210
8065
  * @secure
8211
8066
  * @response `200` `AiPrompt` OK
8212
8067
  * @response `400` `ProblemDetails` Bad Request
@@ -8218,11 +8073,11 @@ export class Api<
8218
8073
  params: RequestParams = {},
8219
8074
  ) =>
8220
8075
  this.request<AiPrompt, ProblemDetails>({
8221
- path: `/api/ai/prompts/${id}`,
8076
+ path: `/api/ai/admin/prompts/${id}`,
8222
8077
  method: "PUT",
8223
8078
  body: data,
8224
8079
  secure: true,
8225
- type: "application/json",
8080
+ type: ContentType.Json,
8226
8081
  format: "json",
8227
8082
  ...params,
8228
8083
  }),
@@ -8233,7 +8088,7 @@ export class Api<
8233
8088
  * @tags AiAdminPrompt
8234
8089
  * @name DeleteAiPrompt
8235
8090
  * @summary Delete prompt
8236
- * @request DELETE:/api/ai/prompts/{id}
8091
+ * @request DELETE:/api/ai/admin/prompts/{id}
8237
8092
  * @secure
8238
8093
  * @response `204` `void` No Content
8239
8094
  * @response `400` `ProblemDetails` Bad Request
@@ -8241,7 +8096,7 @@ export class Api<
8241
8096
  */
8242
8097
  deleteAiPrompt: (id: string, params: RequestParams = {}) =>
8243
8098
  this.request<void, ProblemDetails>({
8244
- path: `/api/ai/prompts/${id}`,
8099
+ path: `/api/ai/admin/prompts/${id}`,
8245
8100
  method: "DELETE",
8246
8101
  secure: true,
8247
8102
  ...params,
@@ -8253,14 +8108,14 @@ export class Api<
8253
8108
  * @tags AiAdminPrompt
8254
8109
  * @name ToggleAiPrompt
8255
8110
  * @summary Toggle prompt active/inactive
8256
- * @request PATCH:/api/ai/prompts/{id}/toggle
8111
+ * @request PATCH:/api/ai/admin/prompts/{id}/toggle
8257
8112
  * @secure
8258
8113
  * @response `200` `AiPrompt` OK
8259
8114
  * @response `404` `ProblemDetails` Not Found
8260
8115
  */
8261
8116
  toggleAiPrompt: (id: string, params: RequestParams = {}) =>
8262
8117
  this.request<AiPrompt, ProblemDetails>({
8263
- path: `/api/ai/prompts/${id}/toggle`,
8118
+ path: `/api/ai/admin/prompts/${id}/toggle`,
8264
8119
  method: "PATCH",
8265
8120
  secure: true,
8266
8121
  format: "json",
@@ -8272,192 +8127,40 @@ export class Api<
8272
8127
  *
8273
8128
  * @tags AiAdminPrompt
8274
8129
  * @name GenerateAiSystemPrompt
8275
- * @summary Generate a system prompt from description
8276
- * @request POST:/api/ai/prompts/generate
8277
- * @secure
8278
- * @response `200` `GenerateSystemPrompt` OK
8279
- * @response `400` `ProblemDetails` Bad Request
8280
- */
8281
- generateAiSystemPrompt: (
8282
- data: GenerateSystemPromptRequest,
8283
- params: RequestParams = {},
8284
- ) =>
8285
- this.request<GenerateSystemPrompt, ProblemDetails>({
8286
- path: `/api/ai/prompts/generate`,
8287
- method: "POST",
8288
- body: data,
8289
- secure: true,
8290
- type: "application/json",
8291
- format: "json",
8292
- ...params,
8293
- }),
8294
-
8295
- /**
8296
- * No description
8297
- *
8298
- * @tags AiAdminPrompt
8299
- * @name GetAiSupportedModels
8300
- * @summary Get supported LLM models
8301
- * @request GET:/api/ai/prompts/supported-models
8302
- * @secure
8303
- * @response `200` `(SupportedModel)[]` OK
8304
- */
8305
- getAiSupportedModels: (params: RequestParams = {}) =>
8306
- this.request<SupportedModel[], any>({
8307
- path: `/api/ai/prompts/supported-models`,
8308
- method: "GET",
8309
- secure: true,
8310
- format: "json",
8311
- ...params,
8312
- }),
8313
-
8314
- /**
8315
- * No description
8316
- *
8317
- * @tags AiAdminSettings
8318
- * @name GetAiAdminSettings
8319
- * @summary Get global AI settings
8320
- * @request GET:/api/ai/settings
8321
- * @secure
8322
- * @response `200` `AiAdminSettings` OK
8323
- */
8324
- getAiAdminSettings: (params: RequestParams = {}) =>
8325
- this.request<AiAdminSettings, any>({
8326
- path: `/api/ai/settings`,
8327
- method: "GET",
8328
- secure: true,
8329
- format: "json",
8330
- ...params,
8331
- }),
8332
-
8333
- /**
8334
- * No description
8335
- *
8336
- * @tags AiAdminSettings
8337
- * @name UpdateAiAdminSettings
8338
- * @summary Update global AI settings
8339
- * @request PUT:/api/ai/settings
8340
- * @secure
8341
- * @response `200` `AiAdminSettings` OK
8342
- * @response `400` `ProblemDetails` Bad Request
8343
- */
8344
- updateAiAdminSettings: (
8345
- data: AiAdminSettingsRequest,
8346
- params: RequestParams = {},
8347
- ) =>
8348
- this.request<AiAdminSettings, ProblemDetails>({
8349
- path: `/api/ai/settings`,
8350
- method: "PUT",
8351
- body: data,
8352
- secure: true,
8353
- type: "application/json",
8354
- format: "json",
8355
- ...params,
8356
- }),
8357
-
8358
- /**
8359
- * No description
8360
- *
8361
- * @tags AiAudit
8362
- * @name GetAiAuditLogs
8363
- * @summary Get paginated AI audit logs (own account, or any/all accounts for SuperAdmin)
8364
- * @request GET:/api/ai/audit-logs
8365
- * @secure
8366
- * @response `200` `AiAuditLogPaginated` OK
8367
- */
8368
- getAiAuditLogs: (
8369
- query?: {
8370
- /** @format uuid */
8371
- accountId?: string;
8372
- eventType?: AiAuditEventType;
8373
- /** @format uuid */
8374
- requestId?: string;
8375
- /** @format uuid */
8376
- userId?: string;
8377
- /** @format uuid */
8378
- conversationId?: string;
8379
- blockedOnly?: boolean;
8380
- /** @format date-time */
8381
- startDate?: string;
8382
- /** @format date-time */
8383
- endDate?: string;
8384
- /** @format int32 */
8385
- pageSize?: number;
8386
- /** @format int32 */
8387
- pageNumber?: number;
8388
- sortBy?: string;
8389
- sortDirection?: string;
8390
- },
8391
- params: RequestParams = {},
8392
- ) =>
8393
- this.request<AiAuditLogPaginated, any>({
8394
- path: `/api/ai/audit-logs`,
8395
- method: "GET",
8396
- query: query,
8397
- secure: true,
8398
- format: "json",
8399
- ...params,
8400
- }),
8401
-
8402
- /**
8403
- * No description
8404
- *
8405
- * @tags AiAudit
8406
- * @name GetAiRequestLifecycle
8407
- * @summary Get the full event lifecycle of a single AI request
8408
- * @request GET:/api/ai/audit-logs/request/{requestId}
8409
- * @secure
8410
- * @response `200` `(AiAuditLog)[]` OK
8411
- */
8412
- getAiRequestLifecycle: (
8413
- requestId: string,
8414
- query?: {
8415
- /** @format uuid */
8416
- accountId?: string;
8417
- },
8418
- params: RequestParams = {},
8419
- ) =>
8420
- this.request<AiAuditLog[], any>({
8421
- path: `/api/ai/audit-logs/request/${requestId}`,
8422
- method: "GET",
8423
- query: query,
8424
- secure: true,
8425
- format: "json",
8426
- ...params,
8427
- }),
8428
-
8429
- /**
8430
- * No description
8431
- *
8432
- * @tags AiAudit
8433
- * @name GetAiAuditConversations
8434
- * @summary List conversations with their audit roll-up — origin user, turns, status, tokens
8435
- * @request GET:/api/ai/audit-conversations
8436
- * @secure
8437
- * @response `200` `AiConversationAuditSummaryPaginated` OK
8438
- */
8439
- getAiAuditConversations: (
8440
- query?: {
8441
- /** @format uuid */
8442
- accountId?: string;
8443
- searchText?: string;
8444
- /** @format date-time */
8445
- startDate?: string;
8446
- /** @format date-time */
8447
- endDate?: string;
8448
- /** @format int32 */
8449
- pageSize?: number;
8450
- /** @format int32 */
8451
- pageNumber?: number;
8452
- sortBy?: string;
8453
- sortDirection?: string;
8454
- },
8130
+ * @summary Generate a system prompt from description
8131
+ * @request POST:/api/ai/admin/prompts/generate
8132
+ * @secure
8133
+ * @response `200` `GenerateSystemPrompt` OK
8134
+ * @response `400` `ProblemDetails` Bad Request
8135
+ */
8136
+ generateAiSystemPrompt: (
8137
+ data: GenerateSystemPromptRequest,
8455
8138
  params: RequestParams = {},
8456
8139
  ) =>
8457
- this.request<AiConversationAuditSummaryPaginated, any>({
8458
- path: `/api/ai/audit-conversations`,
8140
+ this.request<GenerateSystemPrompt, ProblemDetails>({
8141
+ path: `/api/ai/admin/prompts/generate`,
8142
+ method: "POST",
8143
+ body: data,
8144
+ secure: true,
8145
+ type: ContentType.JsonPatch,
8146
+ format: "json",
8147
+ ...params,
8148
+ }),
8149
+
8150
+ /**
8151
+ * No description
8152
+ *
8153
+ * @tags AiAdminPrompt
8154
+ * @name GetSupportedModels
8155
+ * @summary Get supported LLM models
8156
+ * @request GET:/api/ai/admin/prompts/supported-models
8157
+ * @secure
8158
+ * @response `200` `(SupportedModel)[]` OK
8159
+ */
8160
+ getSupportedModels: (params: RequestParams = {}) =>
8161
+ this.request<SupportedModel[], any>({
8162
+ path: `/api/ai/admin/prompts/supported-models`,
8459
8163
  method: "GET",
8460
- query: query,
8461
8164
  secure: true,
8462
8165
  format: "json",
8463
8166
  ...params,
@@ -8466,28 +8169,17 @@ export class Api<
8466
8169
  /**
8467
8170
  * No description
8468
8171
  *
8469
- * @tags AiAudit
8470
- * @name GetAiStats
8471
- * @summary Get AI dashboard stats (own account, or any/all accounts for SuperAdmin)
8472
- * @request GET:/api/ai/stats
8172
+ * @tags AiAdminSettings
8173
+ * @name GetAiAdminSettings
8174
+ * @summary Get global AI settings
8175
+ * @request GET:/api/ai/admin/settings
8473
8176
  * @secure
8474
- * @response `200` `AiAdminStats` OK
8177
+ * @response `200` `AiAdminSettings` OK
8475
8178
  */
8476
- getAiStats: (
8477
- query?: {
8478
- /** @format uuid */
8479
- accountId?: string;
8480
- /** @format date-time */
8481
- startDate?: string;
8482
- /** @format date-time */
8483
- endDate?: string;
8484
- },
8485
- params: RequestParams = {},
8486
- ) =>
8487
- this.request<AiAdminStats, any>({
8488
- path: `/api/ai/stats`,
8179
+ getAiAdminSettings: (params: RequestParams = {}) =>
8180
+ this.request<AiAdminSettings, any>({
8181
+ path: `/api/ai/admin/settings`,
8489
8182
  method: "GET",
8490
- query: query,
8491
8183
  secure: true,
8492
8184
  format: "json",
8493
8185
  ...params,
@@ -8496,39 +8188,24 @@ export class Api<
8496
8188
  /**
8497
8189
  * No description
8498
8190
  *
8499
- * @tags AiAudit
8500
- * @name GetAiConfigChanges
8501
- * @summary Get the AI configuration change history (who changed prompts, guardrails, fields, sources)
8502
- * @request GET:/api/ai/config-changes
8191
+ * @tags AiAdminSettings
8192
+ * @name UpdateAiAdminSettings
8193
+ * @summary Update global AI settings
8194
+ * @request PUT:/api/ai/admin/settings
8503
8195
  * @secure
8504
- * @response `200` `AuditLogEntryPaginated` OK
8196
+ * @response `200` `AiAdminSettings` OK
8197
+ * @response `400` `ProblemDetails` Bad Request
8505
8198
  */
8506
- getAiConfigChanges: (
8507
- query?: {
8508
- /** @format uuid */
8509
- accountId?: string;
8510
- /** @format uuid */
8511
- entityId?: string;
8512
- /** @format uuid */
8513
- actorUserId?: string;
8514
- /** @format date-time */
8515
- startDate?: string;
8516
- /** @format date-time */
8517
- endDate?: string;
8518
- /** @format int32 */
8519
- pageSize?: number;
8520
- /** @format int32 */
8521
- pageNumber?: number;
8522
- sortBy?: string;
8523
- sortDirection?: string;
8524
- },
8199
+ updateAiAdminSettings: (
8200
+ data: AiAdminSettingsRequest,
8525
8201
  params: RequestParams = {},
8526
8202
  ) =>
8527
- this.request<AuditLogEntryPaginated, any>({
8528
- path: `/api/ai/config-changes`,
8529
- method: "GET",
8530
- query: query,
8203
+ this.request<AiAdminSettings, ProblemDetails>({
8204
+ path: `/api/ai/admin/settings`,
8205
+ method: "PUT",
8206
+ body: data,
8531
8207
  secure: true,
8208
+ type: ContentType.Json,
8532
8209
  format: "json",
8533
8210
  ...params,
8534
8211
  }),
@@ -8539,13 +8216,13 @@ export class Api<
8539
8216
  * @tags AiCanonicalField
8540
8217
  * @name GetAiCanonicalFields
8541
8218
  * @summary Get all canonical fields
8542
- * @request GET:/api/ai/canonical-fields
8219
+ * @request GET:/api/ai/admin/fields
8543
8220
  * @secure
8544
8221
  * @response `200` `(AiCanonicalField)[]` OK
8545
8222
  */
8546
8223
  getAiCanonicalFields: (params: RequestParams = {}) =>
8547
8224
  this.request<AiCanonicalField[], any>({
8548
- path: `/api/ai/canonical-fields`,
8225
+ path: `/api/ai/admin/fields`,
8549
8226
  method: "GET",
8550
8227
  secure: true,
8551
8228
  format: "json",
@@ -8558,7 +8235,7 @@ export class Api<
8558
8235
  * @tags AiCanonicalField
8559
8236
  * @name CreateAiCanonicalField
8560
8237
  * @summary Create canonical field
8561
- * @request POST:/api/ai/canonical-fields
8238
+ * @request POST:/api/ai/admin/fields
8562
8239
  * @secure
8563
8240
  * @response `201` `AiCanonicalField` Created
8564
8241
  * @response `400` `ProblemDetails` Bad Request
@@ -8568,11 +8245,11 @@ export class Api<
8568
8245
  params: RequestParams = {},
8569
8246
  ) =>
8570
8247
  this.request<AiCanonicalField, ProblemDetails>({
8571
- path: `/api/ai/canonical-fields`,
8248
+ path: `/api/ai/admin/fields`,
8572
8249
  method: "POST",
8573
8250
  body: data,
8574
8251
  secure: true,
8575
- type: "application/json",
8252
+ type: ContentType.Json,
8576
8253
  format: "json",
8577
8254
  ...params,
8578
8255
  }),
@@ -8583,14 +8260,14 @@ export class Api<
8583
8260
  * @tags AiCanonicalField
8584
8261
  * @name GetAiCanonicalField
8585
8262
  * @summary Get canonical field by ID
8586
- * @request GET:/api/ai/canonical-fields/{id}
8263
+ * @request GET:/api/ai/admin/fields/{id}
8587
8264
  * @secure
8588
8265
  * @response `200` `AiCanonicalField` OK
8589
8266
  * @response `404` `ProblemDetails` Not Found
8590
8267
  */
8591
8268
  getAiCanonicalField: (id: string, params: RequestParams = {}) =>
8592
8269
  this.request<AiCanonicalField, ProblemDetails>({
8593
- path: `/api/ai/canonical-fields/${id}`,
8270
+ path: `/api/ai/admin/fields/${id}`,
8594
8271
  method: "GET",
8595
8272
  secure: true,
8596
8273
  format: "json",
@@ -8603,7 +8280,7 @@ export class Api<
8603
8280
  * @tags AiCanonicalField
8604
8281
  * @name UpdateAiCanonicalField
8605
8282
  * @summary Update canonical field
8606
- * @request PUT:/api/ai/canonical-fields/{id}
8283
+ * @request PUT:/api/ai/admin/fields/{id}
8607
8284
  * @secure
8608
8285
  * @response `200` `AiCanonicalField` OK
8609
8286
  * @response `400` `ProblemDetails` Bad Request
@@ -8615,11 +8292,11 @@ export class Api<
8615
8292
  params: RequestParams = {},
8616
8293
  ) =>
8617
8294
  this.request<AiCanonicalField, ProblemDetails>({
8618
- path: `/api/ai/canonical-fields/${id}`,
8295
+ path: `/api/ai/admin/fields/${id}`,
8619
8296
  method: "PUT",
8620
8297
  body: data,
8621
8298
  secure: true,
8622
- type: "application/json",
8299
+ type: ContentType.Json,
8623
8300
  format: "json",
8624
8301
  ...params,
8625
8302
  }),
@@ -8630,14 +8307,14 @@ export class Api<
8630
8307
  * @tags AiCanonicalField
8631
8308
  * @name DeleteAiCanonicalField
8632
8309
  * @summary Delete canonical field
8633
- * @request DELETE:/api/ai/canonical-fields/{id}
8310
+ * @request DELETE:/api/ai/admin/fields/{id}
8634
8311
  * @secure
8635
8312
  * @response `204` `void` No Content
8636
8313
  * @response `404` `ProblemDetails` Not Found
8637
8314
  */
8638
8315
  deleteAiCanonicalField: (id: string, params: RequestParams = {}) =>
8639
8316
  this.request<void, ProblemDetails>({
8640
- path: `/api/ai/canonical-fields/${id}`,
8317
+ path: `/api/ai/admin/fields/${id}`,
8641
8318
  method: "DELETE",
8642
8319
  secure: true,
8643
8320
  ...params,
@@ -8649,14 +8326,14 @@ export class Api<
8649
8326
  * @tags AiCanonicalField
8650
8327
  * @name ToggleAiCanonicalField
8651
8328
  * @summary Toggle canonical field active/inactive
8652
- * @request PATCH:/api/ai/canonical-fields/{id}/toggle
8329
+ * @request PATCH:/api/ai/admin/fields/{id}/toggle
8653
8330
  * @secure
8654
8331
  * @response `200` `AiCanonicalField` OK
8655
8332
  * @response `404` `ProblemDetails` Not Found
8656
8333
  */
8657
8334
  toggleAiCanonicalField: (id: string, params: RequestParams = {}) =>
8658
8335
  this.request<AiCanonicalField, ProblemDetails>({
8659
- path: `/api/ai/canonical-fields/${id}/toggle`,
8336
+ path: `/api/ai/admin/fields/${id}/toggle`,
8660
8337
  method: "PATCH",
8661
8338
  secure: true,
8662
8339
  format: "json",
@@ -8669,7 +8346,7 @@ export class Api<
8669
8346
  * @tags AiChat
8670
8347
  * @name AiChat
8671
8348
  * @summary Send AI chat message
8672
- * @request POST:/api/ai/chats
8349
+ * @request POST:/api/ai/chat
8673
8350
  * @secure
8674
8351
  * @response `200` `AiChat` OK
8675
8352
  * @response `400` `ProblemDetails` Bad Request
@@ -8677,11 +8354,11 @@ export class Api<
8677
8354
  */
8678
8355
  aiChat: (data: AiChatRequest, params: RequestParams = {}) =>
8679
8356
  this.request<AiChat, ProblemDetails>({
8680
- path: `/api/ai/chats`,
8357
+ path: `/api/ai/chat`,
8681
8358
  method: "POST",
8682
8359
  body: data,
8683
8360
  secure: true,
8684
- type: "application/json",
8361
+ type: ContentType.JsonPatch,
8685
8362
  format: "json",
8686
8363
  ...params,
8687
8364
  }),
@@ -8760,7 +8437,7 @@ export class Api<
8760
8437
  method: "PATCH",
8761
8438
  body: data,
8762
8439
  secure: true,
8763
- type: "application/json",
8440
+ type: ContentType.JsonPatch,
8764
8441
  format: "json",
8765
8442
  ...params,
8766
8443
  }),
@@ -8860,7 +8537,7 @@ export class Api<
8860
8537
  method: "PUT",
8861
8538
  body: data,
8862
8539
  secure: true,
8863
- type: "application/json",
8540
+ type: ContentType.Json,
8864
8541
  format: "json",
8865
8542
  ...params,
8866
8543
  }),
@@ -8871,7 +8548,7 @@ export class Api<
8871
8548
  * @tags AiConversationAdmin
8872
8549
  * @name GetAiAccountConversations
8873
8550
  * @summary List AI conversations across the account, optionally filtered by user (admin supervision)
8874
- * @request GET:/api/ai/conversations/all
8551
+ * @request GET:/api/ai/admin/conversations
8875
8552
  * @secure
8876
8553
  * @response `200` `AiConversationListItemPaginated` OK
8877
8554
  */
@@ -8889,7 +8566,7 @@ export class Api<
8889
8566
  params: RequestParams = {},
8890
8567
  ) =>
8891
8568
  this.request<AiConversationListItemPaginated, any>({
8892
- path: `/api/ai/conversations/all`,
8569
+ path: `/api/ai/admin/conversations`,
8893
8570
  method: "GET",
8894
8571
  query: query,
8895
8572
  secure: true,
@@ -8903,14 +8580,14 @@ export class Api<
8903
8580
  * @tags AiConversationAdmin
8904
8581
  * @name GetAiAccountConversation
8905
8582
  * @summary Get an account conversation's detail (admin supervision)
8906
- * @request GET:/api/ai/conversations/all/{id}
8583
+ * @request GET:/api/ai/admin/conversations/{id}
8907
8584
  * @secure
8908
8585
  * @response `200` `AiConversationDetail` OK
8909
8586
  * @response `404` `ProblemDetails` Not Found
8910
8587
  */
8911
8588
  getAiAccountConversation: (id: string, params: RequestParams = {}) =>
8912
8589
  this.request<AiConversationDetail, ProblemDetails>({
8913
- path: `/api/ai/conversations/all/${id}`,
8590
+ path: `/api/ai/admin/conversations/${id}`,
8914
8591
  method: "GET",
8915
8592
  secure: true,
8916
8593
  format: "json",
@@ -8923,7 +8600,7 @@ export class Api<
8923
8600
  * @tags AiConversationAdmin
8924
8601
  * @name GetAiAccountConversationMessages
8925
8602
  * @summary Get an account conversation's messages (admin supervision)
8926
- * @request GET:/api/ai/conversations/all/{id}/messages
8603
+ * @request GET:/api/ai/admin/conversations/{id}/messages
8927
8604
  * @secure
8928
8605
  * @response `200` `AiChatMessagePaginated` OK
8929
8606
  * @response `404` `ProblemDetails` Not Found
@@ -8941,7 +8618,7 @@ export class Api<
8941
8618
  params: RequestParams = {},
8942
8619
  ) =>
8943
8620
  this.request<AiChatMessagePaginated, ProblemDetails>({
8944
- path: `/api/ai/conversations/all/${id}/messages`,
8621
+ path: `/api/ai/admin/conversations/${id}/messages`,
8945
8622
  method: "GET",
8946
8623
  query: query,
8947
8624
  secure: true,
@@ -8955,13 +8632,13 @@ export class Api<
8955
8632
  * @tags AiGuardrail
8956
8633
  * @name GetAiGuardrails
8957
8634
  * @summary Get all guardrails
8958
- * @request GET:/api/ai/guardrails
8635
+ * @request GET:/api/ai/admin/guardrails
8959
8636
  * @secure
8960
8637
  * @response `200` `(AiGuardrail)[]` OK
8961
8638
  */
8962
8639
  getAiGuardrails: (params: RequestParams = {}) =>
8963
8640
  this.request<AiGuardrail[], any>({
8964
- path: `/api/ai/guardrails`,
8641
+ path: `/api/ai/admin/guardrails`,
8965
8642
  method: "GET",
8966
8643
  secure: true,
8967
8644
  format: "json",
@@ -8974,7 +8651,7 @@ export class Api<
8974
8651
  * @tags AiGuardrail
8975
8652
  * @name CreateAiGuardrail
8976
8653
  * @summary Create custom guardrail
8977
- * @request POST:/api/ai/guardrails
8654
+ * @request POST:/api/ai/admin/guardrails
8978
8655
  * @secure
8979
8656
  * @response `201` `AiGuardrail` Created
8980
8657
  * @response `400` `ProblemDetails` Bad Request
@@ -8984,11 +8661,11 @@ export class Api<
8984
8661
  params: RequestParams = {},
8985
8662
  ) =>
8986
8663
  this.request<AiGuardrail, ProblemDetails>({
8987
- path: `/api/ai/guardrails`,
8664
+ path: `/api/ai/admin/guardrails`,
8988
8665
  method: "POST",
8989
8666
  body: data,
8990
8667
  secure: true,
8991
- type: "application/json",
8668
+ type: ContentType.Json,
8992
8669
  format: "json",
8993
8670
  ...params,
8994
8671
  }),
@@ -8999,14 +8676,14 @@ export class Api<
8999
8676
  * @tags AiGuardrail
9000
8677
  * @name GetAiGuardrail
9001
8678
  * @summary Get guardrail by ID
9002
- * @request GET:/api/ai/guardrails/{id}
8679
+ * @request GET:/api/ai/admin/guardrails/{id}
9003
8680
  * @secure
9004
8681
  * @response `200` `AiGuardrail` OK
9005
8682
  * @response `404` `ProblemDetails` Not Found
9006
8683
  */
9007
8684
  getAiGuardrail: (id: string, params: RequestParams = {}) =>
9008
8685
  this.request<AiGuardrail, ProblemDetails>({
9009
- path: `/api/ai/guardrails/${id}`,
8686
+ path: `/api/ai/admin/guardrails/${id}`,
9010
8687
  method: "GET",
9011
8688
  secure: true,
9012
8689
  format: "json",
@@ -9019,7 +8696,7 @@ export class Api<
9019
8696
  * @tags AiGuardrail
9020
8697
  * @name UpdateAiGuardrail
9021
8698
  * @summary Update guardrail
9022
- * @request PUT:/api/ai/guardrails/{id}
8699
+ * @request PUT:/api/ai/admin/guardrails/{id}
9023
8700
  * @secure
9024
8701
  * @response `200` `AiGuardrail` OK
9025
8702
  * @response `400` `ProblemDetails` Bad Request
@@ -9031,11 +8708,11 @@ export class Api<
9031
8708
  params: RequestParams = {},
9032
8709
  ) =>
9033
8710
  this.request<AiGuardrail, ProblemDetails>({
9034
- path: `/api/ai/guardrails/${id}`,
8711
+ path: `/api/ai/admin/guardrails/${id}`,
9035
8712
  method: "PUT",
9036
8713
  body: data,
9037
8714
  secure: true,
9038
- type: "application/json",
8715
+ type: ContentType.Json,
9039
8716
  format: "json",
9040
8717
  ...params,
9041
8718
  }),
@@ -9046,7 +8723,7 @@ export class Api<
9046
8723
  * @tags AiGuardrail
9047
8724
  * @name DeleteAiGuardrail
9048
8725
  * @summary Delete guardrail
9049
- * @request DELETE:/api/ai/guardrails/{id}
8726
+ * @request DELETE:/api/ai/admin/guardrails/{id}
9050
8727
  * @secure
9051
8728
  * @response `204` `void` No Content
9052
8729
  * @response `400` `ProblemDetails` Bad Request
@@ -9054,7 +8731,7 @@ export class Api<
9054
8731
  */
9055
8732
  deleteAiGuardrail: (id: string, params: RequestParams = {}) =>
9056
8733
  this.request<void, ProblemDetails>({
9057
- path: `/api/ai/guardrails/${id}`,
8734
+ path: `/api/ai/admin/guardrails/${id}`,
9058
8735
  method: "DELETE",
9059
8736
  secure: true,
9060
8737
  ...params,
@@ -9066,14 +8743,14 @@ export class Api<
9066
8743
  * @tags AiGuardrail
9067
8744
  * @name ToggleAiGuardrail
9068
8745
  * @summary Toggle guardrail enabled/disabled
9069
- * @request PATCH:/api/ai/guardrails/{id}/toggle
8746
+ * @request PATCH:/api/ai/admin/guardrails/{id}/toggle
9070
8747
  * @secure
9071
8748
  * @response `200` `AiGuardrail` OK
9072
8749
  * @response `404` `ProblemDetails` Not Found
9073
8750
  */
9074
8751
  toggleAiGuardrail: (id: string, params: RequestParams = {}) =>
9075
8752
  this.request<AiGuardrail, ProblemDetails>({
9076
- path: `/api/ai/guardrails/${id}/toggle`,
8753
+ path: `/api/ai/admin/guardrails/${id}/toggle`,
9077
8754
  method: "PATCH",
9078
8755
  secure: true,
9079
8756
  format: "json",
@@ -9084,20 +8761,163 @@ export class Api<
9084
8761
  * No description
9085
8762
  *
9086
8763
  * @tags AiPrompt
9087
- * @name GetAiAvailablePrompts
8764
+ * @name GetAvailablePrompts
9088
8765
  * @summary Get available prompts for current user
9089
- * @request GET:/api/ai/prompts/available
8766
+ * @request GET:/api/ai/prompts
9090
8767
  * @secure
9091
8768
  * @response `200` `(AiPromptSummary)[]` OK
9092
8769
  */
9093
- getAiAvailablePrompts: (
8770
+ getAvailablePrompts: (
9094
8771
  query?: {
9095
8772
  documentType?: string;
9096
8773
  },
9097
8774
  params: RequestParams = {},
9098
8775
  ) =>
9099
8776
  this.request<AiPromptSummary[], any>({
9100
- path: `/api/ai/prompts/available`,
8777
+ path: `/api/ai/prompts`,
8778
+ method: "GET",
8779
+ query: query,
8780
+ secure: true,
8781
+ format: "json",
8782
+ ...params,
8783
+ }),
8784
+
8785
+ /**
8786
+ * No description
8787
+ *
8788
+ * @tags AiSuperAdmin
8789
+ * @name GetAiAuditLogsCrossAccount
8790
+ * @summary Get AI audit logs for a specific account or across all accounts
8791
+ * @request GET:/api/ai/superadmin/audit-logs
8792
+ * @secure
8793
+ * @response `200` `AiAuditLogPaginated` OK
8794
+ */
8795
+ getAiAuditLogsCrossAccount: (
8796
+ query?: {
8797
+ /** @format uuid */
8798
+ accountId?: string;
8799
+ eventType?: AiAuditEventType;
8800
+ /** @format uuid */
8801
+ requestId?: string;
8802
+ /** @format uuid */
8803
+ userId?: string;
8804
+ /** @format uuid */
8805
+ conversationId?: string;
8806
+ blockedOnly?: boolean;
8807
+ /** @format date-time */
8808
+ startDate?: string;
8809
+ /** @format date-time */
8810
+ endDate?: string;
8811
+ /** @format int32 */
8812
+ pageSize?: number;
8813
+ /** @format int32 */
8814
+ pageNumber?: number;
8815
+ sortBy?: string;
8816
+ sortDirection?: string;
8817
+ },
8818
+ params: RequestParams = {},
8819
+ ) =>
8820
+ this.request<AiAuditLogPaginated, any>({
8821
+ path: `/api/ai/superadmin/audit-logs`,
8822
+ method: "GET",
8823
+ query: query,
8824
+ secure: true,
8825
+ format: "json",
8826
+ ...params,
8827
+ }),
8828
+
8829
+ /**
8830
+ * No description
8831
+ *
8832
+ * @tags AiSuperAdmin
8833
+ * @name GetAiRequestLifecycleCrossAccount
8834
+ * @summary Get the full event lifecycle of a single AI request from any account
8835
+ * @request GET:/api/ai/superadmin/audit-logs/request/{requestId}
8836
+ * @secure
8837
+ * @response `200` `(AiAuditLog)[]` OK
8838
+ */
8839
+ getAiRequestLifecycleCrossAccount: (
8840
+ requestId: string,
8841
+ query?: {
8842
+ /** @format uuid */
8843
+ accountId?: string;
8844
+ },
8845
+ params: RequestParams = {},
8846
+ ) =>
8847
+ this.request<AiAuditLog[], any>({
8848
+ path: `/api/ai/superadmin/audit-logs/request/${requestId}`,
8849
+ method: "GET",
8850
+ query: query,
8851
+ secure: true,
8852
+ format: "json",
8853
+ ...params,
8854
+ }),
8855
+
8856
+ /**
8857
+ * No description
8858
+ *
8859
+ * @tags AiSuperAdmin
8860
+ * @name GetAiStatsCrossAccount
8861
+ * @summary Get AI stats for a specific account or platform-wide
8862
+ * @request GET:/api/ai/superadmin/stats
8863
+ * @secure
8864
+ * @response `200` `AiAdminStats` OK
8865
+ */
8866
+ getAiStatsCrossAccount: (
8867
+ query?: {
8868
+ /** @format uuid */
8869
+ accountId?: string;
8870
+ /** @format date-time */
8871
+ startDate?: string;
8872
+ /** @format date-time */
8873
+ endDate?: string;
8874
+ },
8875
+ params: RequestParams = {},
8876
+ ) =>
8877
+ this.request<AiAdminStats, any>({
8878
+ path: `/api/ai/superadmin/stats`,
8879
+ method: "GET",
8880
+ query: query,
8881
+ secure: true,
8882
+ format: "json",
8883
+ ...params,
8884
+ }),
8885
+
8886
+ /**
8887
+ * No description
8888
+ *
8889
+ * @tags AiSuperAdmin
8890
+ * @name GetAiConfigChangesCrossAccount
8891
+ * @summary Get AI configuration change history for a specific account or across all accounts (incl. global defaults)
8892
+ * @request GET:/api/ai/superadmin/config-changes
8893
+ * @secure
8894
+ * @response `200` `AiConfigChangeLogPaginated` OK
8895
+ */
8896
+ getAiConfigChangesCrossAccount: (
8897
+ query?: {
8898
+ /** @format uuid */
8899
+ accountId?: string;
8900
+ entityType?: AiConfigEntityType;
8901
+ /** @format uuid */
8902
+ entityId?: string;
8903
+ /** @format uuid */
8904
+ actorUserId?: string;
8905
+ action?: AiConfigChangeAction;
8906
+ /** @format date-time */
8907
+ startDate?: string;
8908
+ /** @format date-time */
8909
+ endDate?: string;
8910
+ /** @format int32 */
8911
+ pageSize?: number;
8912
+ /** @format int32 */
8913
+ pageNumber?: number;
8914
+ sortBy?: string;
8915
+ sortDirection?: string;
8916
+ },
8917
+ params: RequestParams = {},
8918
+ ) =>
8919
+ this.request<AiConfigChangeLogPaginated, any>({
8920
+ path: `/api/ai/superadmin/config-changes`,
9101
8921
  method: "GET",
9102
8922
  query: query,
9103
8923
  secure: true,
@@ -9105,13 +8925,38 @@ export class Api<
9105
8925
  ...params,
9106
8926
  }),
9107
8927
 
8928
+ /**
8929
+ * No description
8930
+ *
8931
+ * @tags AiSuperAdmin
8932
+ * @name SetAccountAiEnabled
8933
+ * @summary Enable or disable AI for an account (SuperAdmin only)
8934
+ * @request PUT:/api/ai/superadmin/accounts/{accountId}/ai-enabled
8935
+ * @secure
8936
+ * @response `204` `void` No Content
8937
+ * @response `404` `ProblemDetails` Not Found
8938
+ */
8939
+ setAccountAiEnabled: (
8940
+ accountId: string,
8941
+ data: SetAiEnabledRequest,
8942
+ params: RequestParams = {},
8943
+ ) =>
8944
+ this.request<void, ProblemDetails>({
8945
+ path: `/api/ai/superadmin/accounts/${accountId}/ai-enabled`,
8946
+ method: "PUT",
8947
+ body: data,
8948
+ secure: true,
8949
+ type: ContentType.JsonPatch,
8950
+ ...params,
8951
+ }),
8952
+
9108
8953
  /**
9109
8954
  * No description
9110
8955
  *
9111
8956
  * @tags AiTokenUsageAdmin
9112
8957
  * @name SearchAiAccountTokenUsage
9113
8958
  * @summary Search accounts by current-month AI token usage and classification
9114
- * @request POST:/api/ai/token-usage/search
8959
+ * @request POST:/api/ai/admin/token-usage/search
9115
8960
  * @secure
9116
8961
  * @response `200` `AiAccountUsageOverviewPaginated` OK
9117
8962
  */
@@ -9128,12 +8973,12 @@ export class Api<
9128
8973
  params: RequestParams = {},
9129
8974
  ) =>
9130
8975
  this.request<AiAccountUsageOverviewPaginated, any>({
9131
- path: `/api/ai/token-usage/search`,
8976
+ path: `/api/ai/admin/token-usage/search`,
9132
8977
  method: "POST",
9133
8978
  query: query,
9134
8979
  body: data,
9135
8980
  secure: true,
9136
- type: "application/json",
8981
+ type: ContentType.Json,
9137
8982
  format: "json",
9138
8983
  ...params,
9139
8984
  }),
@@ -9144,13 +8989,13 @@ export class Api<
9144
8989
  * @tags AiTokenUsageAdmin
9145
8990
  * @name GetAiAccountTokenUsage
9146
8991
  * @summary Get an account's current-month AI token usage
9147
- * @request GET:/api/ai/token-usage/{accountId}
8992
+ * @request GET:/api/ai/admin/token-usage/{accountId}
9148
8993
  * @secure
9149
8994
  * @response `200` `AiTokenBudgetStatus` OK
9150
8995
  */
9151
8996
  getAiAccountTokenUsage: (accountId: string, params: RequestParams = {}) =>
9152
8997
  this.request<AiTokenBudgetStatus, any>({
9153
- path: `/api/ai/token-usage/${accountId}`,
8998
+ path: `/api/ai/admin/token-usage/${accountId}`,
9154
8999
  method: "GET",
9155
9000
  secure: true,
9156
9001
  format: "json",
@@ -9163,7 +9008,7 @@ export class Api<
9163
9008
  * @tags AiTokenUsageAdmin
9164
9009
  * @name GetAiAccountTokenUsageHistory
9165
9010
  * @summary Get an account's monthly AI token usage history
9166
- * @request GET:/api/ai/token-usage/{accountId}/history
9011
+ * @request GET:/api/ai/admin/token-usage/{accountId}/history
9167
9012
  * @secure
9168
9013
  * @response `200` `AiTokenUsageWindowPaginated` OK
9169
9014
  */
@@ -9180,7 +9025,7 @@ export class Api<
9180
9025
  params: RequestParams = {},
9181
9026
  ) =>
9182
9027
  this.request<AiTokenUsageWindowPaginated, any>({
9183
- path: `/api/ai/token-usage/${accountId}/history`,
9028
+ path: `/api/ai/admin/token-usage/${accountId}/history`,
9184
9029
  method: "GET",
9185
9030
  query: query,
9186
9031
  secure: true,
@@ -9194,7 +9039,7 @@ export class Api<
9194
9039
  * @tags AiTokenUsageAdmin
9195
9040
  * @name SetAiAccountTokenLimit
9196
9041
  * @summary Set or raise an account's monthly AI token limit
9197
- * @request PUT:/api/ai/token-usage/{accountId}/limit
9042
+ * @request PUT:/api/ai/admin/token-usage/{accountId}/limit
9198
9043
  * @secure
9199
9044
  * @response `200` `AiTokenBudgetStatus` OK
9200
9045
  * @response `400` `ProblemDetails` Bad Request
@@ -9205,11 +9050,11 @@ export class Api<
9205
9050
  params: RequestParams = {},
9206
9051
  ) =>
9207
9052
  this.request<AiTokenBudgetStatus, ProblemDetails>({
9208
- path: `/api/ai/token-usage/${accountId}/limit`,
9053
+ path: `/api/ai/admin/token-usage/${accountId}/limit`,
9209
9054
  method: "PUT",
9210
9055
  body: data,
9211
9056
  secure: true,
9212
- type: "application/json",
9057
+ type: ContentType.Json,
9213
9058
  format: "json",
9214
9059
  ...params,
9215
9060
  }),
@@ -9220,13 +9065,13 @@ export class Api<
9220
9065
  * @tags AiUrlSource
9221
9066
  * @name GetAiUrlSources
9222
9067
  * @summary Get all URL sources
9223
- * @request GET:/api/ai/url-sources
9068
+ * @request GET:/api/ai/admin/url-sources
9224
9069
  * @secure
9225
9070
  * @response `200` `(AiUrlSource)[]` OK
9226
9071
  */
9227
9072
  getAiUrlSources: (params: RequestParams = {}) =>
9228
9073
  this.request<AiUrlSource[], any>({
9229
- path: `/api/ai/url-sources`,
9074
+ path: `/api/ai/admin/url-sources`,
9230
9075
  method: "GET",
9231
9076
  secure: true,
9232
9077
  format: "json",
@@ -9239,7 +9084,7 @@ export class Api<
9239
9084
  * @tags AiUrlSource
9240
9085
  * @name CreateAiUrlSource
9241
9086
  * @summary Create URL source
9242
- * @request POST:/api/ai/url-sources
9087
+ * @request POST:/api/ai/admin/url-sources
9243
9088
  * @secure
9244
9089
  * @response `201` `AiUrlSource` Created
9245
9090
  * @response `400` `ProblemDetails` Bad Request
@@ -9250,11 +9095,11 @@ export class Api<
9250
9095
  params: RequestParams = {},
9251
9096
  ) =>
9252
9097
  this.request<AiUrlSource, ProblemDetails>({
9253
- path: `/api/ai/url-sources`,
9098
+ path: `/api/ai/admin/url-sources`,
9254
9099
  method: "POST",
9255
9100
  body: data,
9256
9101
  secure: true,
9257
- type: "application/json",
9102
+ type: ContentType.Json,
9258
9103
  format: "json",
9259
9104
  ...params,
9260
9105
  }),
@@ -9265,14 +9110,14 @@ export class Api<
9265
9110
  * @tags AiUrlSource
9266
9111
  * @name GetAiUrlSource
9267
9112
  * @summary Get URL source by ID
9268
- * @request GET:/api/ai/url-sources/{id}
9113
+ * @request GET:/api/ai/admin/url-sources/{id}
9269
9114
  * @secure
9270
9115
  * @response `200` `AiUrlSource` OK
9271
9116
  * @response `404` `ProblemDetails` Not Found
9272
9117
  */
9273
9118
  getAiUrlSource: (id: string, params: RequestParams = {}) =>
9274
9119
  this.request<AiUrlSource, ProblemDetails>({
9275
- path: `/api/ai/url-sources/${id}`,
9120
+ path: `/api/ai/admin/url-sources/${id}`,
9276
9121
  method: "GET",
9277
9122
  secure: true,
9278
9123
  format: "json",
@@ -9285,7 +9130,7 @@ export class Api<
9285
9130
  * @tags AiUrlSource
9286
9131
  * @name UpdateAiUrlSource
9287
9132
  * @summary Update URL source
9288
- * @request PUT:/api/ai/url-sources/{id}
9133
+ * @request PUT:/api/ai/admin/url-sources/{id}
9289
9134
  * @secure
9290
9135
  * @response `200` `AiUrlSource` OK
9291
9136
  * @response `400` `ProblemDetails` Bad Request
@@ -9298,11 +9143,11 @@ export class Api<
9298
9143
  params: RequestParams = {},
9299
9144
  ) =>
9300
9145
  this.request<AiUrlSource, ProblemDetails>({
9301
- path: `/api/ai/url-sources/${id}`,
9146
+ path: `/api/ai/admin/url-sources/${id}`,
9302
9147
  method: "PUT",
9303
9148
  body: data,
9304
9149
  secure: true,
9305
- type: "application/json",
9150
+ type: ContentType.Json,
9306
9151
  format: "json",
9307
9152
  ...params,
9308
9153
  }),
@@ -9313,14 +9158,14 @@ export class Api<
9313
9158
  * @tags AiUrlSource
9314
9159
  * @name DeleteAiUrlSource
9315
9160
  * @summary Delete URL source
9316
- * @request DELETE:/api/ai/url-sources/{id}
9161
+ * @request DELETE:/api/ai/admin/url-sources/{id}
9317
9162
  * @secure
9318
9163
  * @response `204` `void` No Content
9319
9164
  * @response `404` `ProblemDetails` Not Found
9320
9165
  */
9321
9166
  deleteAiUrlSource: (id: string, params: RequestParams = {}) =>
9322
9167
  this.request<void, ProblemDetails>({
9323
- path: `/api/ai/url-sources/${id}`,
9168
+ path: `/api/ai/admin/url-sources/${id}`,
9324
9169
  method: "DELETE",
9325
9170
  secure: true,
9326
9171
  ...params,
@@ -9332,14 +9177,14 @@ export class Api<
9332
9177
  * @tags AiUrlSource
9333
9178
  * @name ToggleAiUrlSource
9334
9179
  * @summary Toggle URL source active/inactive
9335
- * @request PATCH:/api/ai/url-sources/{id}/toggle
9180
+ * @request PATCH:/api/ai/admin/url-sources/{id}/toggle
9336
9181
  * @secure
9337
9182
  * @response `200` `AiUrlSource` OK
9338
9183
  * @response `404` `ProblemDetails` Not Found
9339
9184
  */
9340
9185
  toggleAiUrlSource: (id: string, params: RequestParams = {}) =>
9341
9186
  this.request<AiUrlSource, ProblemDetails>({
9342
- path: `/api/ai/url-sources/${id}/toggle`,
9187
+ path: `/api/ai/admin/url-sources/${id}/toggle`,
9343
9188
  method: "PATCH",
9344
9189
  secure: true,
9345
9190
  format: "json",
@@ -9423,7 +9268,7 @@ export class Api<
9423
9268
  query: query,
9424
9269
  body: data,
9425
9270
  secure: true,
9426
- type: "application/json",
9271
+ type: ContentType.JsonPatch,
9427
9272
  format: "json",
9428
9273
  ...params,
9429
9274
  }),
@@ -9488,7 +9333,7 @@ export class Api<
9488
9333
  method: "POST",
9489
9334
  body: data,
9490
9335
  secure: true,
9491
- type: "application/json",
9336
+ type: ContentType.Json,
9492
9337
  format: "json",
9493
9338
  ...params,
9494
9339
  }),
@@ -9510,7 +9355,7 @@ export class Api<
9510
9355
  method: "POST",
9511
9356
  body: data,
9512
9357
  secure: true,
9513
- type: "application/json",
9358
+ type: ContentType.Json,
9514
9359
  format: "json",
9515
9360
  ...params,
9516
9361
  }),
@@ -9535,7 +9380,7 @@ export class Api<
9535
9380
  method: "POST",
9536
9381
  body: data,
9537
9382
  secure: true,
9538
- type: "application/json",
9383
+ type: ContentType.Json,
9539
9384
  format: "json",
9540
9385
  ...params,
9541
9386
  }),
@@ -9557,7 +9402,7 @@ export class Api<
9557
9402
  method: "POST",
9558
9403
  body: data,
9559
9404
  secure: true,
9560
- type: "application/json",
9405
+ type: ContentType.Json,
9561
9406
  format: "json",
9562
9407
  ...params,
9563
9408
  }),
@@ -9579,7 +9424,7 @@ export class Api<
9579
9424
  method: "POST",
9580
9425
  body: data,
9581
9426
  secure: true,
9582
- type: "application/json",
9427
+ type: ContentType.Json,
9583
9428
  format: "json",
9584
9429
  ...params,
9585
9430
  }),
@@ -9652,7 +9497,7 @@ export class Api<
9652
9497
  method: "POST",
9653
9498
  body: data,
9654
9499
  secure: true,
9655
- type: "application/json",
9500
+ type: ContentType.Json,
9656
9501
  format: "json",
9657
9502
  ...params,
9658
9503
  }),
@@ -9685,7 +9530,7 @@ export class Api<
9685
9530
  query: query,
9686
9531
  body: data,
9687
9532
  secure: true,
9688
- type: "application/json",
9533
+ type: ContentType.Json,
9689
9534
  format: "json",
9690
9535
  ...params,
9691
9536
  }),
@@ -9730,7 +9575,7 @@ export class Api<
9730
9575
  method: "PUT",
9731
9576
  body: data,
9732
9577
  secure: true,
9733
- type: "application/json",
9578
+ type: ContentType.Json,
9734
9579
  format: "json",
9735
9580
  ...params,
9736
9581
  }),
@@ -9793,7 +9638,7 @@ export class Api<
9793
9638
  method: "POST",
9794
9639
  body: data,
9795
9640
  secure: true,
9796
- type: "application/json",
9641
+ type: ContentType.Json,
9797
9642
  format: "json",
9798
9643
  ...params,
9799
9644
  }),
@@ -9847,7 +9692,7 @@ export class Api<
9847
9692
  query: query,
9848
9693
  body: data,
9849
9694
  secure: true,
9850
- type: "application/json",
9695
+ type: ContentType.Json,
9851
9696
  format: "json",
9852
9697
  ...params,
9853
9698
  }),
@@ -9916,7 +9761,7 @@ export class Api<
9916
9761
  method: "POST",
9917
9762
  body: data,
9918
9763
  secure: true,
9919
- type: "application/json",
9764
+ type: ContentType.Json,
9920
9765
  format: "json",
9921
9766
  ...params,
9922
9767
  }),
@@ -9961,7 +9806,7 @@ export class Api<
9961
9806
  method: "PUT",
9962
9807
  body: data,
9963
9808
  secure: true,
9964
- type: "application/json",
9809
+ type: ContentType.Json,
9965
9810
  format: "json",
9966
9811
  ...params,
9967
9812
  }),
@@ -10022,7 +9867,7 @@ export class Api<
10022
9867
  method: "POST",
10023
9868
  body: data,
10024
9869
  secure: true,
10025
- type: "application/json",
9870
+ type: ContentType.Json,
10026
9871
  format: "json",
10027
9872
  ...params,
10028
9873
  }),
@@ -10116,7 +9961,7 @@ export class Api<
10116
9961
  method: "POST",
10117
9962
  body: data,
10118
9963
  secure: true,
10119
- type: "application/json",
9964
+ type: ContentType.Json,
10120
9965
  format: "json",
10121
9966
  ...params,
10122
9967
  }),
@@ -10149,7 +9994,7 @@ export class Api<
10149
9994
  query: query,
10150
9995
  body: data,
10151
9996
  secure: true,
10152
- type: "application/json",
9997
+ type: ContentType.Json,
10153
9998
  format: "json",
10154
9999
  ...params,
10155
10000
  }),
@@ -10194,7 +10039,7 @@ export class Api<
10194
10039
  method: "PUT",
10195
10040
  body: data,
10196
10041
  secure: true,
10197
- type: "application/json",
10042
+ type: ContentType.Json,
10198
10043
  format: "json",
10199
10044
  ...params,
10200
10045
  }),
@@ -10256,7 +10101,7 @@ export class Api<
10256
10101
  method: "POST",
10257
10102
  body: data,
10258
10103
  secure: true,
10259
- type: "application/json",
10104
+ type: ContentType.Json,
10260
10105
  format: "json",
10261
10106
  ...params,
10262
10107
  }),
@@ -10310,7 +10155,7 @@ export class Api<
10310
10155
  query: query,
10311
10156
  body: data,
10312
10157
  secure: true,
10313
- type: "application/json",
10158
+ type: ContentType.Json,
10314
10159
  format: "json",
10315
10160
  ...params,
10316
10161
  }),
@@ -10365,7 +10210,7 @@ export class Api<
10365
10210
  */
10366
10211
  getCustomFieldDefinitions: (
10367
10212
  query?: {
10368
- entityType?: GetCustomFieldDefinitionsParamsEntityTypeEnum;
10213
+ entityType?: "Loan";
10369
10214
  },
10370
10215
  params: RequestParams = {},
10371
10216
  ) =>
@@ -10399,7 +10244,7 @@ export class Api<
10399
10244
  method: "POST",
10400
10245
  body: data,
10401
10246
  secure: true,
10402
- type: "application/json",
10247
+ type: ContentType.Json,
10403
10248
  format: "json",
10404
10249
  ...params,
10405
10250
  }),
@@ -10448,7 +10293,7 @@ export class Api<
10448
10293
  method: "PUT",
10449
10294
  body: data,
10450
10295
  secure: true,
10451
- type: "application/json",
10296
+ type: ContentType.Json,
10452
10297
  format: "json",
10453
10298
  ...params,
10454
10299
  }),
@@ -10582,7 +10427,7 @@ export class Api<
10582
10427
  method: "PUT",
10583
10428
  body: data,
10584
10429
  secure: true,
10585
- type: "application/json",
10430
+ type: ContentType.Json,
10586
10431
  format: "json",
10587
10432
  ...params,
10588
10433
  }),
@@ -10701,7 +10546,7 @@ export class Api<
10701
10546
  method: "POST",
10702
10547
  body: data,
10703
10548
  secure: true,
10704
- type: "application/json",
10549
+ type: ContentType.Json,
10705
10550
  format: "json",
10706
10551
  ...params,
10707
10552
  }),
@@ -10778,7 +10623,7 @@ export class Api<
10778
10623
  method: "PUT",
10779
10624
  body: data,
10780
10625
  secure: true,
10781
- type: "application/json",
10626
+ type: ContentType.Json,
10782
10627
  format: "json",
10783
10628
  ...params,
10784
10629
  }),
@@ -10865,7 +10710,7 @@ export class Api<
10865
10710
  method: "POST",
10866
10711
  body: data,
10867
10712
  secure: true,
10868
- type: "application/json",
10713
+ type: ContentType.Json,
10869
10714
  format: "json",
10870
10715
  ...params,
10871
10716
  }),
@@ -10914,7 +10759,7 @@ export class Api<
10914
10759
  method: "PUT",
10915
10760
  body: data,
10916
10761
  secure: true,
10917
- type: "application/json",
10762
+ type: ContentType.Json,
10918
10763
  format: "json",
10919
10764
  ...params,
10920
10765
  }),
@@ -10989,7 +10834,7 @@ export class Api<
10989
10834
  method: "POST",
10990
10835
  body: data,
10991
10836
  secure: true,
10992
- type: "application/json",
10837
+ type: ContentType.Json,
10993
10838
  format: "json",
10994
10839
  ...params,
10995
10840
  }),
@@ -11122,47 +10967,6 @@ export class Api<
11122
10967
  ...params,
11123
10968
  }),
11124
10969
 
11125
- /**
11126
- * No description
11127
- *
11128
- * @tags Encompass Packages
11129
- * @name GetLoanPackages
11130
- * @request GET:/api/los/encompass/eclose/loans/{loanId}/packages
11131
- * @secure
11132
- * @response `200` `EncompassPackageList` OK
11133
- * @response `400` `EncompassError` Bad Request
11134
- * @response `401` `EncompassError` Unauthorized
11135
- * @response `403` `EncompassError` Forbidden
11136
- * @response `500` `EncompassError` Internal Server Error
11137
- */
11138
- getLoanPackages: (
11139
- loanId: string,
11140
- query?: {
11141
- status?: string;
11142
- /**
11143
- * @format int32
11144
- * @default 1
11145
- */
11146
- page?: number;
11147
- /**
11148
- * @format int32
11149
- * @default 20
11150
- */
11151
- pageSize?: number;
11152
- sortBy?: string;
11153
- sortDirection?: string;
11154
- },
11155
- params: RequestParams = {},
11156
- ) =>
11157
- this.request<EncompassPackageList, EncompassError>({
11158
- path: `/api/los/encompass/eclose/loans/${loanId}/packages`,
11159
- method: "GET",
11160
- query: query,
11161
- secure: true,
11162
- format: "json",
11163
- ...params,
11164
- }),
11165
-
11166
10970
  /**
11167
10971
  * No description
11168
10972
  *
@@ -11206,7 +11010,7 @@ export class Api<
11206
11010
  method: "POST",
11207
11011
  body: data,
11208
11012
  secure: true,
11209
- type: "application/json",
11013
+ type: ContentType.Json,
11210
11014
  format: "json",
11211
11015
  ...params,
11212
11016
  }),
@@ -11269,7 +11073,7 @@ export class Api<
11269
11073
  method: "POST",
11270
11074
  body: data,
11271
11075
  secure: true,
11272
- type: "multipart/form-data",
11076
+ type: ContentType.FormData,
11273
11077
  format: "json",
11274
11078
  ...params,
11275
11079
  }),
@@ -11310,7 +11114,7 @@ export class Api<
11310
11114
  method: "PUT",
11311
11115
  body: data,
11312
11116
  secure: true,
11313
- type: "application/json",
11117
+ type: ContentType.Json,
11314
11118
  format: "json",
11315
11119
  ...params,
11316
11120
  }),
@@ -11361,7 +11165,7 @@ export class Api<
11361
11165
  query: query,
11362
11166
  body: data,
11363
11167
  secure: true,
11364
- type: "application/json",
11168
+ type: ContentType.Json,
11365
11169
  format: "json",
11366
11170
  ...params,
11367
11171
  }),
@@ -11408,7 +11212,7 @@ export class Api<
11408
11212
  method: "POST",
11409
11213
  body: data,
11410
11214
  secure: true,
11411
- type: "application/json",
11215
+ type: ContentType.Json,
11412
11216
  format: "json",
11413
11217
  ...params,
11414
11218
  }),
@@ -11449,7 +11253,7 @@ export class Api<
11449
11253
  method: "PUT",
11450
11254
  body: data,
11451
11255
  secure: true,
11452
- type: "application/json",
11256
+ type: ContentType.Json,
11453
11257
  format: "json",
11454
11258
  ...params,
11455
11259
  }),
@@ -11515,7 +11319,7 @@ export class Api<
11515
11319
  method: "POST",
11516
11320
  body: data,
11517
11321
  secure: true,
11518
- type: "multipart/form-data",
11322
+ type: ContentType.FormData,
11519
11323
  format: "json",
11520
11324
  ...params,
11521
11325
  }),
@@ -11623,7 +11427,7 @@ export class Api<
11623
11427
  query: query,
11624
11428
  body: data,
11625
11429
  secure: true,
11626
- type: "application/json",
11430
+ type: ContentType.Json,
11627
11431
  format: "json",
11628
11432
  ...params,
11629
11433
  }),
@@ -11667,7 +11471,7 @@ export class Api<
11667
11471
  method: "PUT",
11668
11472
  body: data,
11669
11473
  secure: true,
11670
- type: "application/json",
11474
+ type: ContentType.Json,
11671
11475
  format: "json",
11672
11476
  ...params,
11673
11477
  }),
@@ -11718,7 +11522,7 @@ export class Api<
11718
11522
  query: query,
11719
11523
  body: data,
11720
11524
  secure: true,
11721
- type: "application/json",
11525
+ type: ContentType.Json,
11722
11526
  format: "json",
11723
11527
  ...params,
11724
11528
  }),
@@ -11762,7 +11566,7 @@ export class Api<
11762
11566
  method: "POST",
11763
11567
  body: data,
11764
11568
  secure: true,
11765
- type: "application/json",
11569
+ type: ContentType.Json,
11766
11570
  format: "json",
11767
11571
  ...params,
11768
11572
  }),
@@ -11807,7 +11611,7 @@ export class Api<
11807
11611
  method: "PUT",
11808
11612
  body: data,
11809
11613
  secure: true,
11810
- type: "application/json",
11614
+ type: ContentType.Json,
11811
11615
  format: "json",
11812
11616
  ...params,
11813
11617
  }),
@@ -11895,7 +11699,7 @@ export class Api<
11895
11699
  method: "PATCH",
11896
11700
  body: data,
11897
11701
  secure: true,
11898
- type: "application/json",
11702
+ type: ContentType.JsonPatch,
11899
11703
  format: "json",
11900
11704
  ...params,
11901
11705
  }),
@@ -11916,7 +11720,7 @@ export class Api<
11916
11720
  method: "POST",
11917
11721
  body: data,
11918
11722
  secure: true,
11919
- type: "application/json",
11723
+ type: ContentType.Json,
11920
11724
  format: "json",
11921
11725
  ...params,
11922
11726
  }),
@@ -11948,7 +11752,7 @@ export class Api<
11948
11752
  query: query,
11949
11753
  body: data,
11950
11754
  secure: true,
11951
- type: "application/json",
11755
+ type: ContentType.Json,
11952
11756
  format: "json",
11953
11757
  ...params,
11954
11758
  }),
@@ -11979,7 +11783,7 @@ export class Api<
11979
11783
  query: query,
11980
11784
  body: data,
11981
11785
  secure: true,
11982
- type: "application/json",
11786
+ type: ContentType.Json,
11983
11787
  format: "json",
11984
11788
  ...params,
11985
11789
  }),
@@ -12005,7 +11809,7 @@ export class Api<
12005
11809
  method: "PATCH",
12006
11810
  body: data,
12007
11811
  secure: true,
12008
- type: "application/json",
11812
+ type: ContentType.JsonPatch,
12009
11813
  format: "json",
12010
11814
  ...params,
12011
11815
  }),
@@ -12032,7 +11836,7 @@ export class Api<
12032
11836
  method: "PATCH",
12033
11837
  body: data,
12034
11838
  secure: true,
12035
- type: "application/json",
11839
+ type: ContentType.JsonPatch,
12036
11840
  format: "json",
12037
11841
  ...params,
12038
11842
  }),
@@ -12224,7 +12028,7 @@ export class Api<
12224
12028
  method: "POST",
12225
12029
  body: data,
12226
12030
  secure: true,
12227
- type: "multipart/form-data",
12031
+ type: ContentType.FormData,
12228
12032
  format: "json",
12229
12033
  ...params,
12230
12034
  }),
@@ -12249,7 +12053,7 @@ export class Api<
12249
12053
  method: "PATCH",
12250
12054
  body: data,
12251
12055
  secure: true,
12252
- type: "application/json",
12056
+ type: ContentType.JsonPatch,
12253
12057
  format: "json",
12254
12058
  ...params,
12255
12059
  }),
@@ -12304,7 +12108,7 @@ export class Api<
12304
12108
  method: "POST",
12305
12109
  body: data,
12306
12110
  secure: true,
12307
- type: "multipart/form-data",
12111
+ type: ContentType.FormData,
12308
12112
  format: "json",
12309
12113
  ...params,
12310
12114
  }),
@@ -12329,7 +12133,7 @@ export class Api<
12329
12133
  method: "PATCH",
12330
12134
  body: data,
12331
12135
  secure: true,
12332
- type: "application/json",
12136
+ type: ContentType.JsonPatch,
12333
12137
  format: "json",
12334
12138
  ...params,
12335
12139
  }),
@@ -12403,7 +12207,7 @@ export class Api<
12403
12207
  method: "POST",
12404
12208
  body: data,
12405
12209
  secure: true,
12406
- type: "application/json",
12210
+ type: ContentType.Json,
12407
12211
  format: "json",
12408
12212
  ...params,
12409
12213
  }),
@@ -12466,7 +12270,7 @@ export class Api<
12466
12270
  method: "PUT",
12467
12271
  body: data,
12468
12272
  secure: true,
12469
- type: "application/json",
12273
+ type: ContentType.Json,
12470
12274
  format: "json",
12471
12275
  ...params,
12472
12276
  }),
@@ -12517,7 +12321,7 @@ export class Api<
12517
12321
  query: query,
12518
12322
  body: data,
12519
12323
  secure: true,
12520
- type: "application/json",
12324
+ type: ContentType.Json,
12521
12325
  format: "json",
12522
12326
  ...params,
12523
12327
  }),
@@ -12545,7 +12349,7 @@ export class Api<
12545
12349
  method: "PUT",
12546
12350
  body: data,
12547
12351
  secure: true,
12548
- type: "multipart/form-data",
12352
+ type: ContentType.FormData,
12549
12353
  format: "json",
12550
12354
  ...params,
12551
12355
  }),
@@ -12628,7 +12432,7 @@ export class Api<
12628
12432
  method: "POST",
12629
12433
  body: data,
12630
12434
  secure: true,
12631
- type: "application/json",
12435
+ type: ContentType.Json,
12632
12436
  format: "json",
12633
12437
  ...params,
12634
12438
  }),
@@ -12675,7 +12479,7 @@ export class Api<
12675
12479
  method: "POST",
12676
12480
  body: data,
12677
12481
  secure: true,
12678
- type: "application/json",
12482
+ type: ContentType.Json,
12679
12483
  format: "json",
12680
12484
  ...params,
12681
12485
  }),
@@ -12723,7 +12527,7 @@ export class Api<
12723
12527
  method: "POST",
12724
12528
  body: data,
12725
12529
  secure: true,
12726
- type: "application/json",
12530
+ type: ContentType.Json,
12727
12531
  ...params,
12728
12532
  }),
12729
12533
 
@@ -12788,7 +12592,7 @@ export class Api<
12788
12592
  method: "PUT",
12789
12593
  body: data,
12790
12594
  secure: true,
12791
- type: "application/json",
12595
+ type: ContentType.Json,
12792
12596
  ...params,
12793
12597
  }),
12794
12598
 
@@ -12816,7 +12620,7 @@ export class Api<
12816
12620
  method: "PUT",
12817
12621
  body: data,
12818
12622
  secure: true,
12819
- type: "application/json",
12623
+ type: ContentType.Json,
12820
12624
  ...params,
12821
12625
  }),
12822
12626
 
@@ -12882,7 +12686,7 @@ export class Api<
12882
12686
  method: "POST",
12883
12687
  body: data,
12884
12688
  secure: true,
12885
- type: "application/json",
12689
+ type: ContentType.Json,
12886
12690
  format: "json",
12887
12691
  ...params,
12888
12692
  }),
@@ -12927,7 +12731,7 @@ export class Api<
12927
12731
  method: "POST",
12928
12732
  body: data,
12929
12733
  secure: true,
12930
- type: "application/json",
12734
+ type: ContentType.Json,
12931
12735
  format: "json",
12932
12736
  ...params,
12933
12737
  }),
@@ -12976,7 +12780,7 @@ export class Api<
12976
12780
  method: "PUT",
12977
12781
  body: data,
12978
12782
  secure: true,
12979
- type: "application/json",
12783
+ type: ContentType.Json,
12980
12784
  format: "json",
12981
12785
  ...params,
12982
12786
  }),
@@ -13111,7 +12915,7 @@ export class Api<
13111
12915
  method: "POST",
13112
12916
  body: data,
13113
12917
  secure: true,
13114
- type: "application/json",
12918
+ type: ContentType.Json,
13115
12919
  format: "json",
13116
12920
  ...params,
13117
12921
  }),
@@ -13145,7 +12949,7 @@ export class Api<
13145
12949
  query: query,
13146
12950
  body: data,
13147
12951
  secure: true,
13148
- type: "application/json",
12952
+ type: ContentType.Json,
13149
12953
  format: "json",
13150
12954
  ...params,
13151
12955
  }),
@@ -13175,7 +12979,7 @@ export class Api<
13175
12979
  query: query,
13176
12980
  body: data,
13177
12981
  secure: true,
13178
- type: "application/json",
12982
+ type: ContentType.Json,
13179
12983
  format: "json",
13180
12984
  ...params,
13181
12985
  }),
@@ -13188,7 +12992,7 @@ export class Api<
13188
12992
  * @summary Download By ID
13189
12993
  * @request GET:/api/loans/{loanId}/documents/{documentId}/download
13190
12994
  * @secure
13191
- * @response `200` `Blob` OK
12995
+ * @response `200` `string` OK
13192
12996
  * @response `404` `ProblemDetails` Not Found
13193
12997
  */
13194
12998
  downloadLoanDocument: (
@@ -13196,7 +13000,7 @@ export class Api<
13196
13000
  documentId: string,
13197
13001
  params: RequestParams = {},
13198
13002
  ) =>
13199
- this.request<Blob, ProblemDetails>({
13003
+ this.request<string, ProblemDetails>({
13200
13004
  path: `/api/loans/${loanId}/documents/${documentId}/download`,
13201
13005
  method: "GET",
13202
13006
  secure: true,
@@ -13233,7 +13037,7 @@ export class Api<
13233
13037
  method: "POST",
13234
13038
  body: data,
13235
13039
  secure: true,
13236
- type: "multipart/form-data",
13040
+ type: ContentType.FormData,
13237
13041
  format: "json",
13238
13042
  ...params,
13239
13043
  }),
@@ -13283,7 +13087,7 @@ export class Api<
13283
13087
  method: "POST",
13284
13088
  body: data,
13285
13089
  secure: true,
13286
- type: "application/json",
13090
+ type: ContentType.Json,
13287
13091
  format: "json",
13288
13092
  ...params,
13289
13093
  }),
@@ -13310,7 +13114,7 @@ export class Api<
13310
13114
  method: "POST",
13311
13115
  body: data,
13312
13116
  secure: true,
13313
- type: "application/json",
13117
+ type: ContentType.Json,
13314
13118
  ...params,
13315
13119
  }),
13316
13120
 
@@ -13357,7 +13161,7 @@ export class Api<
13357
13161
  method: "POST",
13358
13162
  body: data,
13359
13163
  secure: true,
13360
- type: "application/json",
13164
+ type: ContentType.Json,
13361
13165
  format: "json",
13362
13166
  ...params,
13363
13167
  }),
@@ -13402,7 +13206,7 @@ export class Api<
13402
13206
  method: "POST",
13403
13207
  body: data,
13404
13208
  secure: true,
13405
- type: "application/json",
13209
+ type: ContentType.Json,
13406
13210
  format: "json",
13407
13211
  ...params,
13408
13212
  }),
@@ -13465,7 +13269,7 @@ export class Api<
13465
13269
  method: "PUT",
13466
13270
  body: data,
13467
13271
  secure: true,
13468
- type: "application/json",
13272
+ type: ContentType.Json,
13469
13273
  format: "json",
13470
13274
  ...params,
13471
13275
  }),
@@ -13516,7 +13320,7 @@ export class Api<
13516
13320
  query: query,
13517
13321
  body: data,
13518
13322
  secure: true,
13519
- type: "application/json",
13323
+ type: ContentType.Json,
13520
13324
  format: "json",
13521
13325
  ...params,
13522
13326
  }),
@@ -13541,7 +13345,7 @@ export class Api<
13541
13345
  method: "PUT",
13542
13346
  body: data,
13543
13347
  secure: true,
13544
- type: "application/json",
13348
+ type: ContentType.Json,
13545
13349
  format: "json",
13546
13350
  ...params,
13547
13351
  }),
@@ -13616,7 +13420,7 @@ export class Api<
13616
13420
  method: "POST",
13617
13421
  body: data,
13618
13422
  secure: true,
13619
- type: "application/json",
13423
+ type: ContentType.Json,
13620
13424
  format: "json",
13621
13425
  ...params,
13622
13426
  }),
@@ -13712,7 +13516,7 @@ export class Api<
13712
13516
  method: "POST",
13713
13517
  body: data,
13714
13518
  secure: true,
13715
- type: "application/json",
13519
+ type: ContentType.Json,
13716
13520
  format: "json",
13717
13521
  ...params,
13718
13522
  }),
@@ -13746,7 +13550,7 @@ export class Api<
13746
13550
  query: query,
13747
13551
  body: data,
13748
13552
  secure: true,
13749
- type: "application/json",
13553
+ type: ContentType.Json,
13750
13554
  format: "json",
13751
13555
  ...params,
13752
13556
  }),
@@ -13797,7 +13601,7 @@ export class Api<
13797
13601
  method: "POST",
13798
13602
  body: data,
13799
13603
  secure: true,
13800
- type: "application/json",
13604
+ type: ContentType.Json,
13801
13605
  ...params,
13802
13606
  }),
13803
13607
 
@@ -13823,7 +13627,7 @@ export class Api<
13823
13627
  method: "POST",
13824
13628
  body: data,
13825
13629
  secure: true,
13826
- type: "application/json",
13630
+ type: ContentType.Json,
13827
13631
  ...params,
13828
13632
  }),
13829
13633
 
@@ -13886,7 +13690,7 @@ export class Api<
13886
13690
  query: query,
13887
13691
  body: data,
13888
13692
  secure: true,
13889
- type: "application/json",
13693
+ type: ContentType.Json,
13890
13694
  format: "json",
13891
13695
  ...params,
13892
13696
  }),
@@ -13931,7 +13735,7 @@ export class Api<
13931
13735
  method: "POST",
13932
13736
  body: data,
13933
13737
  secure: true,
13934
- type: "application/json",
13738
+ type: ContentType.Json,
13935
13739
  format: "json",
13936
13740
  ...params,
13937
13741
  }),
@@ -13985,7 +13789,7 @@ export class Api<
13985
13789
  query: query,
13986
13790
  body: data,
13987
13791
  secure: true,
13988
- type: "application/json",
13792
+ type: ContentType.Json,
13989
13793
  format: "json",
13990
13794
  ...params,
13991
13795
  }),
@@ -14018,7 +13822,7 @@ export class Api<
14018
13822
  query: query,
14019
13823
  body: data,
14020
13824
  secure: true,
14021
- type: "application/json",
13825
+ type: ContentType.Json,
14022
13826
  format: "json",
14023
13827
  ...params,
14024
13828
  }),
@@ -14064,7 +13868,7 @@ export class Api<
14064
13868
  method: "PUT",
14065
13869
  body: data,
14066
13870
  secure: true,
14067
- type: "application/json",
13871
+ type: ContentType.Json,
14068
13872
  format: "json",
14069
13873
  ...params,
14070
13874
  }),
@@ -14165,7 +13969,7 @@ export class Api<
14165
13969
  method: "POST",
14166
13970
  body: data,
14167
13971
  secure: true,
14168
- type: "application/json",
13972
+ type: ContentType.Json,
14169
13973
  format: "json",
14170
13974
  ...params,
14171
13975
  }),
@@ -14198,7 +14002,7 @@ export class Api<
14198
14002
  query: query,
14199
14003
  body: data,
14200
14004
  secure: true,
14201
- type: "application/json",
14005
+ type: ContentType.Json,
14202
14006
  format: "json",
14203
14007
  ...params,
14204
14008
  }),
@@ -14228,7 +14032,7 @@ export class Api<
14228
14032
  method: "PATCH",
14229
14033
  body: data,
14230
14034
  secure: true,
14231
- type: "application/json",
14035
+ type: ContentType.JsonPatch,
14232
14036
  format: "json",
14233
14037
  ...params,
14234
14038
  }),
@@ -14338,7 +14142,7 @@ export class Api<
14338
14142
  method: "POST",
14339
14143
  body: data,
14340
14144
  secure: true,
14341
- type: "application/json",
14145
+ type: ContentType.Json,
14342
14146
  format: "json",
14343
14147
  ...params,
14344
14148
  }),
@@ -14374,7 +14178,7 @@ export class Api<
14374
14178
  query: query,
14375
14179
  body: data,
14376
14180
  secure: true,
14377
- type: "application/json",
14181
+ type: ContentType.Json,
14378
14182
  format: "json",
14379
14183
  ...params,
14380
14184
  }),
@@ -14426,7 +14230,7 @@ export class Api<
14426
14230
  method: "POST",
14427
14231
  body: data,
14428
14232
  secure: true,
14429
- type: "application/json",
14233
+ type: ContentType.Json,
14430
14234
  format: "json",
14431
14235
  ...params,
14432
14236
  }),
@@ -14454,7 +14258,7 @@ export class Api<
14454
14258
  method: "PUT",
14455
14259
  body: data,
14456
14260
  secure: true,
14457
- type: "application/json",
14261
+ type: ContentType.Json,
14458
14262
  format: "json",
14459
14263
  ...params,
14460
14264
  }),
@@ -14513,7 +14317,7 @@ export class Api<
14513
14317
  method: "POST",
14514
14318
  body: data,
14515
14319
  secure: true,
14516
- type: "multipart/form-data",
14320
+ type: ContentType.FormData,
14517
14321
  format: "json",
14518
14322
  ...params,
14519
14323
  }),
@@ -14541,7 +14345,7 @@ export class Api<
14541
14345
  method: "POST",
14542
14346
  body: data,
14543
14347
  secure: true,
14544
- type: "application/json",
14348
+ type: ContentType.Json,
14545
14349
  ...params,
14546
14350
  }),
14547
14351
 
@@ -14567,7 +14371,7 @@ export class Api<
14567
14371
  method: "POST",
14568
14372
  body: data,
14569
14373
  secure: true,
14570
- type: "application/json",
14374
+ type: ContentType.Json,
14571
14375
  ...params,
14572
14376
  }),
14573
14377
 
@@ -14599,7 +14403,7 @@ export class Api<
14599
14403
  query: query,
14600
14404
  body: data,
14601
14405
  secure: true,
14602
- type: "application/json",
14406
+ type: ContentType.Json,
14603
14407
  format: "json",
14604
14408
  ...params,
14605
14409
  }),
@@ -14624,7 +14428,7 @@ export class Api<
14624
14428
  method: "POST",
14625
14429
  body: data,
14626
14430
  secure: true,
14627
- type: "application/json",
14431
+ type: ContentType.Json,
14628
14432
  format: "json",
14629
14433
  ...params,
14630
14434
  }),
@@ -14711,7 +14515,7 @@ export class Api<
14711
14515
  method: "POST",
14712
14516
  body: data,
14713
14517
  secure: true,
14714
- type: "application/json",
14518
+ type: ContentType.Json,
14715
14519
  format: "json",
14716
14520
  ...params,
14717
14521
  }),
@@ -14737,7 +14541,7 @@ export class Api<
14737
14541
  method: "POST",
14738
14542
  body: data,
14739
14543
  secure: true,
14740
- type: "application/json",
14544
+ type: ContentType.Json,
14741
14545
  format: "json",
14742
14546
  ...params,
14743
14547
  }),
@@ -14764,7 +14568,7 @@ export class Api<
14764
14568
  method: "PUT",
14765
14569
  body: data,
14766
14570
  secure: true,
14767
- type: "application/json",
14571
+ type: ContentType.Json,
14768
14572
  format: "json",
14769
14573
  ...params,
14770
14574
  }),
@@ -14881,7 +14685,7 @@ export class Api<
14881
14685
  method: "POST",
14882
14686
  body: data,
14883
14687
  secure: true,
14884
- type: "application/json",
14688
+ type: ContentType.Json,
14885
14689
  format: "json",
14886
14690
  ...params,
14887
14691
  }),
@@ -14959,7 +14763,7 @@ export class Api<
14959
14763
  query: query,
14960
14764
  body: data,
14961
14765
  secure: true,
14962
- type: "application/json",
14766
+ type: ContentType.Json,
14963
14767
  format: "json",
14964
14768
  ...params,
14965
14769
  }),
@@ -15003,7 +14807,7 @@ export class Api<
15003
14807
  method: "POST",
15004
14808
  body: data,
15005
14809
  secure: true,
15006
- type: "application/json",
14810
+ type: ContentType.Json,
15007
14811
  format: "json",
15008
14812
  ...params,
15009
14813
  }),
@@ -15050,7 +14854,7 @@ export class Api<
15050
14854
  method: "PUT",
15051
14855
  body: data,
15052
14856
  secure: true,
15053
- type: "application/json",
14857
+ type: ContentType.Json,
15054
14858
  format: "json",
15055
14859
  ...params,
15056
14860
  }),
@@ -15096,7 +14900,7 @@ export class Api<
15096
14900
  method: "POST",
15097
14901
  body: data,
15098
14902
  secure: true,
15099
- type: "application/json",
14903
+ type: ContentType.Json,
15100
14904
  format: "json",
15101
14905
  ...params,
15102
14906
  }),
@@ -15121,7 +14925,7 @@ export class Api<
15121
14925
  method: "POST",
15122
14926
  body: data,
15123
14927
  secure: true,
15124
- type: "application/json",
14928
+ type: ContentType.Json,
15125
14929
  format: "json",
15126
14930
  ...params,
15127
14931
  }),
@@ -15146,7 +14950,7 @@ export class Api<
15146
14950
  method: "POST",
15147
14951
  body: data,
15148
14952
  secure: true,
15149
- type: "application/json",
14953
+ type: ContentType.Json,
15150
14954
  format: "json",
15151
14955
  ...params,
15152
14956
  }),
@@ -15171,7 +14975,7 @@ export class Api<
15171
14975
  method: "POST",
15172
14976
  body: data,
15173
14977
  secure: true,
15174
- type: "application/json",
14978
+ type: ContentType.Json,
15175
14979
  format: "json",
15176
14980
  ...params,
15177
14981
  }),
@@ -15196,7 +15000,7 @@ export class Api<
15196
15000
  method: "POST",
15197
15001
  body: data,
15198
15002
  secure: true,
15199
- type: "application/json",
15003
+ type: ContentType.Json,
15200
15004
  format: "json",
15201
15005
  ...params,
15202
15006
  }),
@@ -15246,7 +15050,7 @@ export class Api<
15246
15050
  method: "POST",
15247
15051
  body: data,
15248
15052
  secure: true,
15249
- type: "application/json",
15053
+ type: ContentType.Json,
15250
15054
  format: "json",
15251
15055
  ...params,
15252
15056
  }),
@@ -15279,7 +15083,7 @@ export class Api<
15279
15083
  query: query,
15280
15084
  body: data,
15281
15085
  secure: true,
15282
- type: "application/json",
15086
+ type: ContentType.Json,
15283
15087
  format: "json",
15284
15088
  ...params,
15285
15089
  }),
@@ -15324,7 +15128,7 @@ export class Api<
15324
15128
  method: "PUT",
15325
15129
  body: data,
15326
15130
  secure: true,
15327
- type: "application/json",
15131
+ type: ContentType.Json,
15328
15132
  format: "json",
15329
15133
  ...params,
15330
15134
  }),
@@ -15408,7 +15212,7 @@ export class Api<
15408
15212
  method: "POST",
15409
15213
  body: data,
15410
15214
  secure: true,
15411
- type: "application/json",
15215
+ type: ContentType.Json,
15412
15216
  format: "json",
15413
15217
  ...params,
15414
15218
  }),
@@ -15457,7 +15261,7 @@ export class Api<
15457
15261
  method: "PUT",
15458
15262
  body: data,
15459
15263
  secure: true,
15460
- type: "application/json",
15264
+ type: ContentType.Json,
15461
15265
  format: "json",
15462
15266
  ...params,
15463
15267
  }),
@@ -15499,7 +15303,16 @@ export class Api<
15499
15303
  query?: {
15500
15304
  showAll?: boolean;
15501
15305
  /** @default "Realtor" */
15502
- role?: GetPartnersParamsRoleEnum;
15306
+ role?:
15307
+ | "Borrower"
15308
+ | "LoanOfficer"
15309
+ | "Admin"
15310
+ | "SuperAdmin"
15311
+ | "Realtor"
15312
+ | "SettlementAgent"
15313
+ | "LoanProcessor"
15314
+ | "LoanOfficerAssistant"
15315
+ | "SystemAdmin";
15503
15316
  /** @format int32 */
15504
15317
  pageSize?: number;
15505
15318
  /** @format int32 */
@@ -15546,7 +15359,7 @@ export class Api<
15546
15359
  query: query,
15547
15360
  body: data,
15548
15361
  secure: true,
15549
- type: "application/json",
15362
+ type: ContentType.Json,
15550
15363
  format: "json",
15551
15364
  ...params,
15552
15365
  }),
@@ -15591,7 +15404,7 @@ export class Api<
15591
15404
  method: "POST",
15592
15405
  body: data,
15593
15406
  secure: true,
15594
- type: "application/json",
15407
+ type: ContentType.Json,
15595
15408
  format: "json",
15596
15409
  ...params,
15597
15410
  }),
@@ -15645,7 +15458,7 @@ export class Api<
15645
15458
  query: query,
15646
15459
  body: data,
15647
15460
  secure: true,
15648
- type: "application/json",
15461
+ type: ContentType.Json,
15649
15462
  format: "json",
15650
15463
  ...params,
15651
15464
  }),
@@ -15690,7 +15503,7 @@ export class Api<
15690
15503
  method: "POST",
15691
15504
  body: data,
15692
15505
  secure: true,
15693
- type: "application/json",
15506
+ type: ContentType.Json,
15694
15507
  format: "json",
15695
15508
  ...params,
15696
15509
  }),
@@ -15742,7 +15555,7 @@ export class Api<
15742
15555
  method: "POST",
15743
15556
  body: data,
15744
15557
  secure: true,
15745
- type: "application/json",
15558
+ type: ContentType.Json,
15746
15559
  format: "json",
15747
15560
  ...params,
15748
15561
  }),
@@ -15799,7 +15612,7 @@ export class Api<
15799
15612
  query: query,
15800
15613
  body: data,
15801
15614
  secure: true,
15802
- type: "application/json",
15615
+ type: ContentType.Json,
15803
15616
  format: "json",
15804
15617
  ...params,
15805
15618
  }),
@@ -15835,7 +15648,7 @@ export class Api<
15835
15648
  * @response `404` `ProblemDetails` Not Found
15836
15649
  */
15837
15650
  getSamlMetadata: (
15838
- sSoIntegration: GetSamlMetadataParamsEnum,
15651
+ sSoIntegration: "ConsumerConnect" | "TheBigPOS" | "POSF",
15839
15652
  ssoIntegration: string,
15840
15653
  params: RequestParams = {},
15841
15654
  ) =>
@@ -15857,7 +15670,7 @@ export class Api<
15857
15670
  * @response `200` `File` OK
15858
15671
  */
15859
15672
  createOrReplaceSamlMetadata: (
15860
- sSoIntegration: CreateOrReplaceSamlMetadataParamsEnum,
15673
+ sSoIntegration: "ConsumerConnect" | "TheBigPOS" | "POSF",
15861
15674
  ssoIntegration: string,
15862
15675
  params: RequestParams = {},
15863
15676
  ) =>
@@ -15982,7 +15795,7 @@ export class Api<
15982
15795
  method: "POST",
15983
15796
  body: data,
15984
15797
  secure: true,
15985
- type: "application/json",
15798
+ type: ContentType.Json,
15986
15799
  format: "json",
15987
15800
  ...params,
15988
15801
  }),
@@ -16030,7 +15843,7 @@ export class Api<
16030
15843
  method: "POST",
16031
15844
  body: data,
16032
15845
  secure: true,
16033
- type: "application/json",
15846
+ type: ContentType.Json,
16034
15847
  format: "json",
16035
15848
  ...params,
16036
15849
  }),
@@ -16082,7 +15895,7 @@ export class Api<
16082
15895
  method: "POST",
16083
15896
  body: data,
16084
15897
  secure: true,
16085
- type: "application/json",
15898
+ type: ContentType.Json,
16086
15899
  format: "json",
16087
15900
  ...params,
16088
15901
  }),
@@ -16124,7 +15937,7 @@ export class Api<
16124
15937
  method: "PUT",
16125
15938
  body: data,
16126
15939
  secure: true,
16127
- type: "application/json",
15940
+ type: ContentType.Json,
16128
15941
  format: "json",
16129
15942
  ...params,
16130
15943
  }),
@@ -16176,7 +15989,7 @@ export class Api<
16176
15989
  query: query,
16177
15990
  body: data,
16178
15991
  secure: true,
16179
- type: "application/json",
15992
+ type: ContentType.Json,
16180
15993
  format: "json",
16181
15994
  ...params,
16182
15995
  }),
@@ -16199,7 +16012,7 @@ export class Api<
16199
16012
  method: "POST",
16200
16013
  body: data,
16201
16014
  secure: true,
16202
- type: "application/json",
16015
+ type: ContentType.Json,
16203
16016
  ...params,
16204
16017
  }),
16205
16018
 
@@ -16232,7 +16045,7 @@ export class Api<
16232
16045
  query: query,
16233
16046
  body: data,
16234
16047
  secure: true,
16235
- type: "application/json",
16048
+ type: ContentType.Json,
16236
16049
  format: "json",
16237
16050
  ...params,
16238
16051
  }),
@@ -16276,7 +16089,7 @@ export class Api<
16276
16089
  method: "POST",
16277
16090
  body: data,
16278
16091
  secure: true,
16279
- type: "application/json",
16092
+ type: ContentType.Json,
16280
16093
  format: "json",
16281
16094
  ...params,
16282
16095
  }),
@@ -16300,7 +16113,7 @@ export class Api<
16300
16113
  method: "PUT",
16301
16114
  body: data,
16302
16115
  secure: true,
16303
- type: "application/json",
16116
+ type: ContentType.Json,
16304
16117
  format: "json",
16305
16118
  ...params,
16306
16119
  }),
@@ -16343,7 +16156,7 @@ export class Api<
16343
16156
  method: "POST",
16344
16157
  body: data,
16345
16158
  secure: true,
16346
- type: "application/json",
16159
+ type: ContentType.Json,
16347
16160
  format: "json",
16348
16161
  ...params,
16349
16162
  }),
@@ -16395,7 +16208,7 @@ export class Api<
16395
16208
  query: query,
16396
16209
  body: data,
16397
16210
  secure: true,
16398
- type: "application/json",
16211
+ type: ContentType.Json,
16399
16212
  format: "json",
16400
16213
  ...params,
16401
16214
  }),
@@ -16569,7 +16382,7 @@ export class Api<
16569
16382
  method: "POST",
16570
16383
  body: data,
16571
16384
  secure: true,
16572
- type: "application/json",
16385
+ type: ContentType.Json,
16573
16386
  format: "json",
16574
16387
  ...params,
16575
16388
  }),
@@ -16668,7 +16481,7 @@ export class Api<
16668
16481
  method: "POST",
16669
16482
  body: data,
16670
16483
  secure: true,
16671
- type: "application/json",
16484
+ type: ContentType.Json,
16672
16485
  format: "json",
16673
16486
  ...params,
16674
16487
  }),
@@ -16734,7 +16547,7 @@ export class Api<
16734
16547
  method: "POST",
16735
16548
  body: data,
16736
16549
  secure: true,
16737
- type: "application/json",
16550
+ type: ContentType.Json,
16738
16551
  format: "json",
16739
16552
  ...params,
16740
16553
  }),
@@ -16805,7 +16618,7 @@ export class Api<
16805
16618
  query: query,
16806
16619
  body: data,
16807
16620
  secure: true,
16808
- type: "application/json",
16621
+ type: ContentType.Json,
16809
16622
  format: "json",
16810
16623
  ...params,
16811
16624
  }),
@@ -16902,7 +16715,7 @@ export class Api<
16902
16715
  method: "PUT",
16903
16716
  body: data,
16904
16717
  secure: true,
16905
- type: "application/json",
16718
+ type: ContentType.Json,
16906
16719
  format: "json",
16907
16720
  ...params,
16908
16721
  }),
@@ -16944,7 +16757,7 @@ export class Api<
16944
16757
  method: "POST",
16945
16758
  body: data,
16946
16759
  secure: true,
16947
- type: "application/json",
16760
+ type: ContentType.Json,
16948
16761
  format: "json",
16949
16762
  ...params,
16950
16763
  }),
@@ -16970,7 +16783,7 @@ export class Api<
16970
16783
  method: "POST",
16971
16784
  body: data,
16972
16785
  secure: true,
16973
- type: "application/json",
16786
+ type: ContentType.Json,
16974
16787
  ...params,
16975
16788
  }),
16976
16789
 
@@ -16995,7 +16808,7 @@ export class Api<
16995
16808
  method: "POST",
16996
16809
  body: data,
16997
16810
  secure: true,
16998
- type: "application/json",
16811
+ type: ContentType.Json,
16999
16812
  ...params,
17000
16813
  }),
17001
16814
 
@@ -17081,7 +16894,7 @@ export class Api<
17081
16894
  method: "POST",
17082
16895
  body: data,
17083
16896
  secure: true,
17084
- type: "application/json",
16897
+ type: ContentType.Json,
17085
16898
  ...params,
17086
16899
  }),
17087
16900
 
@@ -17121,7 +16934,7 @@ export class Api<
17121
16934
  method: "POST",
17122
16935
  body: data,
17123
16936
  secure: true,
17124
- type: "application/json",
16937
+ type: ContentType.Json,
17125
16938
  ...params,
17126
16939
  }),
17127
16940
 
@@ -17204,7 +17017,7 @@ export class Api<
17204
17017
  method: "POST",
17205
17018
  body: data,
17206
17019
  secure: true,
17207
- type: "application/json",
17020
+ type: ContentType.Json,
17208
17021
  ...params,
17209
17022
  }),
17210
17023
 
@@ -17296,7 +17109,7 @@ export class Api<
17296
17109
  method: "POST",
17297
17110
  body: data,
17298
17111
  secure: true,
17299
- type: "application/json",
17112
+ type: ContentType.Json,
17300
17113
  format: "json",
17301
17114
  ...params,
17302
17115
  }),
@@ -17329,7 +17142,7 @@ export class Api<
17329
17142
  query: query,
17330
17143
  body: data,
17331
17144
  secure: true,
17332
- type: "application/json",
17145
+ type: ContentType.Json,
17333
17146
  format: "json",
17334
17147
  ...params,
17335
17148
  }),
@@ -17350,7 +17163,7 @@ export class Api<
17350
17163
  method: "POST",
17351
17164
  body: data,
17352
17165
  secure: true,
17353
- type: "application/json",
17166
+ type: ContentType.Json,
17354
17167
  format: "json",
17355
17168
  ...params,
17356
17169
  }),
@@ -17372,7 +17185,7 @@ export class Api<
17372
17185
  method: "POST",
17373
17186
  body: data,
17374
17187
  secure: true,
17375
- type: "application/json",
17188
+ type: ContentType.Json,
17376
17189
  format: "json",
17377
17190
  ...params,
17378
17191
  }),
@@ -17398,7 +17211,7 @@ export class Api<
17398
17211
  method: "PUT",
17399
17212
  body: data,
17400
17213
  secure: true,
17401
- type: "application/json",
17214
+ type: ContentType.Json,
17402
17215
  format: "json",
17403
17216
  ...params,
17404
17217
  }),
@@ -17464,7 +17277,7 @@ export class Api<
17464
17277
  method: "POST",
17465
17278
  body: data,
17466
17279
  secure: true,
17467
- type: "application/json",
17280
+ type: ContentType.Json,
17468
17281
  ...params,
17469
17282
  }),
17470
17283
 
@@ -17485,7 +17298,7 @@ export class Api<
17485
17298
  method: "POST",
17486
17299
  body: data,
17487
17300
  secure: true,
17488
- type: "application/json",
17301
+ type: ContentType.Json,
17489
17302
  ...params,
17490
17303
  }),
17491
17304
 
@@ -17510,7 +17323,7 @@ export class Api<
17510
17323
  method: "POST",
17511
17324
  body: data,
17512
17325
  secure: true,
17513
- type: "application/json",
17326
+ type: ContentType.Json,
17514
17327
  ...params,
17515
17328
  }),
17516
17329
 
@@ -17534,7 +17347,7 @@ export class Api<
17534
17347
  method: "POST",
17535
17348
  body: data,
17536
17349
  secure: true,
17537
- type: "application/json",
17350
+ type: ContentType.Json,
17538
17351
  ...params,
17539
17352
  }),
17540
17353
 
@@ -17577,7 +17390,7 @@ export class Api<
17577
17390
  method: "PUT",
17578
17391
  body: data,
17579
17392
  secure: true,
17580
- type: "application/json",
17393
+ type: ContentType.Json,
17581
17394
  ...params,
17582
17395
  }),
17583
17396
 
@@ -17617,7 +17430,7 @@ export class Api<
17617
17430
  method: "PUT",
17618
17431
  body: data,
17619
17432
  secure: true,
17620
- type: "application/json",
17433
+ type: ContentType.Json,
17621
17434
  format: "json",
17622
17435
  ...params,
17623
17436
  }),
@@ -17641,7 +17454,7 @@ export class Api<
17641
17454
  method: "PUT",
17642
17455
  body: data,
17643
17456
  secure: true,
17644
- type: "application/json",
17457
+ type: ContentType.Json,
17645
17458
  format: "json",
17646
17459
  ...params,
17647
17460
  }),
@@ -17718,7 +17531,7 @@ export class Api<
17718
17531
  method: "POST",
17719
17532
  body: data,
17720
17533
  secure: true,
17721
- type: "application/json",
17534
+ type: ContentType.Json,
17722
17535
  ...params,
17723
17536
  }),
17724
17537
 
@@ -17738,7 +17551,7 @@ export class Api<
17738
17551
  method: "POST",
17739
17552
  body: data,
17740
17553
  secure: true,
17741
- type: "application/json",
17554
+ type: ContentType.Json,
17742
17555
  format: "json",
17743
17556
  ...params,
17744
17557
  }),