@matech/thebigpos-sdk 2.36.16-rc3 → 2.37.6-aibi-11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +830 -100
- package/dist/index.js +360 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1717 -663
- package/docs/sdk_generation.md +0 -149
package/src/index.ts
CHANGED
|
@@ -340,6 +340,88 @@ export type BorrowerApplicationStatus = "Draft" | "Complete";
|
|
|
340
340
|
|
|
341
341
|
export type BillingType = "ClosedLoan" | "LoanOfficer";
|
|
342
342
|
|
|
343
|
+
export type AuditChangeType =
|
|
344
|
+
| "Created"
|
|
345
|
+
| "Modified"
|
|
346
|
+
| "SoftDeleted"
|
|
347
|
+
| "HardDeleted"
|
|
348
|
+
| "Restored";
|
|
349
|
+
|
|
350
|
+
export type AiStructuredDataType =
|
|
351
|
+
| "Table"
|
|
352
|
+
| "DocumentAnalysis"
|
|
353
|
+
| "DocumentList"
|
|
354
|
+
| "GeneratedDocument";
|
|
355
|
+
|
|
356
|
+
export type AiQueryTemplateName =
|
|
357
|
+
| "PipelineSummary"
|
|
358
|
+
| "LoanDetail"
|
|
359
|
+
| "LoansClosing"
|
|
360
|
+
| "StaleLoans"
|
|
361
|
+
| "LoansByType"
|
|
362
|
+
| "LoansByOfficer"
|
|
363
|
+
| "AverageLoanAmount"
|
|
364
|
+
| "LockedVsUnlocked"
|
|
365
|
+
| "LoansByPurpose"
|
|
366
|
+
| "LoansByPropertyState"
|
|
367
|
+
| "LoansByRate"
|
|
368
|
+
| "DtiLtvRisk"
|
|
369
|
+
| "DisclosureTracking"
|
|
370
|
+
| "NewLoans"
|
|
371
|
+
| "ExpiringLocks"
|
|
372
|
+
| "ClosedLoans";
|
|
373
|
+
|
|
374
|
+
export type AiPromptCategory =
|
|
375
|
+
| "DocumentAnalysis"
|
|
376
|
+
| "DataQuery"
|
|
377
|
+
| "General"
|
|
378
|
+
| "Action";
|
|
379
|
+
|
|
380
|
+
export type AiOutputType = "Text" | "Document";
|
|
381
|
+
|
|
382
|
+
export type AiIntent =
|
|
383
|
+
| "Greeting"
|
|
384
|
+
| "Invalid"
|
|
385
|
+
| "Relevant"
|
|
386
|
+
| "LoanSpecific"
|
|
387
|
+
| "DocumentList"
|
|
388
|
+
| "GeneralKnowledge"
|
|
389
|
+
| "Blocked"
|
|
390
|
+
| "Action";
|
|
391
|
+
|
|
392
|
+
export type AiGuardrailCategory =
|
|
393
|
+
| "ContentSafety"
|
|
394
|
+
| "PromptInjection"
|
|
395
|
+
| "Privacy"
|
|
396
|
+
| "Legal";
|
|
397
|
+
|
|
398
|
+
export type AiDisplayHint =
|
|
399
|
+
| "Table"
|
|
400
|
+
| "SummaryCards"
|
|
401
|
+
| "RankedList"
|
|
402
|
+
| "Comparison"
|
|
403
|
+
| "ExecutiveBrief";
|
|
404
|
+
|
|
405
|
+
export type AiAuditEventType =
|
|
406
|
+
| "Error"
|
|
407
|
+
| "GuardrailBlockedPre"
|
|
408
|
+
| "GuardrailPassedPre"
|
|
409
|
+
| "IntentClassified"
|
|
410
|
+
| "LoanResolvedFromMessage"
|
|
411
|
+
| "DocumentNotFound"
|
|
412
|
+
| "GuardrailBlockedPost"
|
|
413
|
+
| "GuardrailPassedPost"
|
|
414
|
+
| "DocumentAnalyzed"
|
|
415
|
+
| "DocumentList"
|
|
416
|
+
| "DocumentResolutionAmbiguous"
|
|
417
|
+
| "ResponseGenerated"
|
|
418
|
+
| "ParametersExtracted"
|
|
419
|
+
| "QueryExecuted"
|
|
420
|
+
| "LoanContextNotFound"
|
|
421
|
+
| "LoanContextLoaded"
|
|
422
|
+
| "GuardrailBlockedBedrock"
|
|
423
|
+
| "PromptMatched";
|
|
424
|
+
|
|
343
425
|
export type AddressFamily =
|
|
344
426
|
| "Unspecified"
|
|
345
427
|
| "Unix"
|
|
@@ -427,7 +509,7 @@ export interface AccountBilling {
|
|
|
427
509
|
}
|
|
428
510
|
|
|
429
511
|
export interface AccountBillingRequest {
|
|
430
|
-
billingType:
|
|
512
|
+
billingType: "ClosedLoan" | "LoanOfficer";
|
|
431
513
|
/**
|
|
432
514
|
* @format double
|
|
433
515
|
* @min 0
|
|
@@ -442,6 +524,7 @@ export interface AccountSettings {
|
|
|
442
524
|
smsNumber?: string | null;
|
|
443
525
|
ssoHostOverride?: string | null;
|
|
444
526
|
isEarlyAdopter: boolean;
|
|
527
|
+
isAIEnabled: boolean;
|
|
445
528
|
}
|
|
446
529
|
|
|
447
530
|
export interface AccountSettingsRequest {
|
|
@@ -509,7 +592,7 @@ export interface AddressV3 {
|
|
|
509
592
|
|
|
510
593
|
export interface AdminAccessGetForms {
|
|
511
594
|
/** @format date-time */
|
|
512
|
-
createdAt
|
|
595
|
+
createdAt: string;
|
|
513
596
|
/** @format date-time */
|
|
514
597
|
updatedAt?: string | null;
|
|
515
598
|
/** @format date-time */
|
|
@@ -531,7 +614,7 @@ export interface AdminAccessGetForms {
|
|
|
531
614
|
|
|
532
615
|
export interface AdminAccessUser {
|
|
533
616
|
/** @format date-time */
|
|
534
|
-
createdAt
|
|
617
|
+
createdAt: string;
|
|
535
618
|
/** @format date-time */
|
|
536
619
|
updatedAt?: string | null;
|
|
537
620
|
/** @format date-time */
|
|
@@ -652,6 +735,248 @@ export interface AffordabilityCalculatorRequest {
|
|
|
652
735
|
annualInsurance: number;
|
|
653
736
|
}
|
|
654
737
|
|
|
738
|
+
export interface AiAdminStats {
|
|
739
|
+
/** @format int32 */
|
|
740
|
+
totalRequests: number;
|
|
741
|
+
/** @format int32 */
|
|
742
|
+
blockedRequests: number;
|
|
743
|
+
/** @format double */
|
|
744
|
+
averageResponseTimeMs: number;
|
|
745
|
+
intentDistribution: Record<string, number>;
|
|
746
|
+
topQueryTemplates: Record<string, number>;
|
|
747
|
+
period: string;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
export interface AiAuditLog {
|
|
751
|
+
/** @format uuid */
|
|
752
|
+
id: string;
|
|
753
|
+
/** @format uuid */
|
|
754
|
+
requestId: string;
|
|
755
|
+
/** @format uuid */
|
|
756
|
+
userId: string;
|
|
757
|
+
eventType:
|
|
758
|
+
| "Error"
|
|
759
|
+
| "GuardrailBlockedPre"
|
|
760
|
+
| "GuardrailPassedPre"
|
|
761
|
+
| "IntentClassified"
|
|
762
|
+
| "LoanResolvedFromMessage"
|
|
763
|
+
| "DocumentNotFound"
|
|
764
|
+
| "GuardrailBlockedPost"
|
|
765
|
+
| "GuardrailPassedPost"
|
|
766
|
+
| "DocumentAnalyzed"
|
|
767
|
+
| "DocumentList"
|
|
768
|
+
| "DocumentResolutionAmbiguous"
|
|
769
|
+
| "ResponseGenerated"
|
|
770
|
+
| "ParametersExtracted"
|
|
771
|
+
| "QueryExecuted"
|
|
772
|
+
| "LoanContextNotFound"
|
|
773
|
+
| "LoanContextLoaded"
|
|
774
|
+
| "GuardrailBlockedBedrock"
|
|
775
|
+
| "PromptMatched";
|
|
776
|
+
details?: any;
|
|
777
|
+
/** @format date-time */
|
|
778
|
+
createdAt: string;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
export interface AiAuditLogPaginated {
|
|
782
|
+
rows: AiAuditLog[];
|
|
783
|
+
pagination: Pagination;
|
|
784
|
+
/** @format int64 */
|
|
785
|
+
count: number;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
export interface AiCanonicalField {
|
|
789
|
+
/** @format uuid */
|
|
790
|
+
id: string;
|
|
791
|
+
canonicalName: string;
|
|
792
|
+
displayName: string;
|
|
793
|
+
description: string;
|
|
794
|
+
allowedRoles: string[];
|
|
795
|
+
efPath?: string | null;
|
|
796
|
+
isPii: boolean;
|
|
797
|
+
isActive: boolean;
|
|
798
|
+
dataSource: string;
|
|
799
|
+
isDefault: boolean;
|
|
800
|
+
category?: string | null;
|
|
801
|
+
jsonPropertyName?: string | null;
|
|
802
|
+
textractKey?: string | null;
|
|
803
|
+
textractKeyAliases?: string | null;
|
|
804
|
+
hasAccountOverride: boolean;
|
|
805
|
+
/** @format date-time */
|
|
806
|
+
createdAt: string;
|
|
807
|
+
/** @format date-time */
|
|
808
|
+
updatedAt?: string | null;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
export interface AiChat {
|
|
812
|
+
/** @format uuid */
|
|
813
|
+
conversationId: string;
|
|
814
|
+
/** @format uuid */
|
|
815
|
+
messageId: string;
|
|
816
|
+
response: AiChatBody;
|
|
817
|
+
metadata: AiChatMetadata;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
export interface AiChatBody {
|
|
821
|
+
text: string;
|
|
822
|
+
data?: AiChatStructuredData | null;
|
|
823
|
+
suggestedFollowUps: string[];
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
export interface AiChatMessage {
|
|
827
|
+
/** @format uuid */
|
|
828
|
+
id: string;
|
|
829
|
+
userMessage: string;
|
|
830
|
+
assistantResponse: string;
|
|
831
|
+
intent?: AiIntent | null;
|
|
832
|
+
fieldsAccessed?: string[] | null;
|
|
833
|
+
/** @format date-time */
|
|
834
|
+
createdAt: string;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
export interface AiChatMetadata {
|
|
838
|
+
intent:
|
|
839
|
+
| "Greeting"
|
|
840
|
+
| "Invalid"
|
|
841
|
+
| "Relevant"
|
|
842
|
+
| "LoanSpecific"
|
|
843
|
+
| "DocumentList"
|
|
844
|
+
| "GeneralKnowledge"
|
|
845
|
+
| "Blocked"
|
|
846
|
+
| "Action";
|
|
847
|
+
fieldsAccessed: string[];
|
|
848
|
+
/** @format int64 */
|
|
849
|
+
queryTimeMs: number;
|
|
850
|
+
/** @format int64 */
|
|
851
|
+
llmTimeMs: number;
|
|
852
|
+
wasBlocked: boolean;
|
|
853
|
+
blockedReason?: string | null;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
export interface AiChatRequest {
|
|
857
|
+
/**
|
|
858
|
+
* @minLength 1
|
|
859
|
+
* @maxLength 2000
|
|
860
|
+
*/
|
|
861
|
+
message: string;
|
|
862
|
+
/** @format uuid */
|
|
863
|
+
conversationId?: string | null;
|
|
864
|
+
/** @format uuid */
|
|
865
|
+
loanId?: string | null;
|
|
866
|
+
documentIds?: string[] | null;
|
|
867
|
+
/** @format uuid */
|
|
868
|
+
promptId?: string | null;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
export interface AiChatStructuredData {
|
|
872
|
+
type: "Table" | "DocumentAnalysis" | "DocumentList" | "GeneratedDocument";
|
|
873
|
+
displayHint?: AiDisplayHint | null;
|
|
874
|
+
detectedDocumentType?: string | null;
|
|
875
|
+
columns: string[];
|
|
876
|
+
rows: string[][];
|
|
877
|
+
/** @format uuid */
|
|
878
|
+
generatedDocumentId?: string | null;
|
|
879
|
+
generatedFileName?: string | null;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
export interface AiConversationDetail {
|
|
883
|
+
/** @format uuid */
|
|
884
|
+
id: string;
|
|
885
|
+
/** @format date-time */
|
|
886
|
+
createdAt: string;
|
|
887
|
+
/** @format date-time */
|
|
888
|
+
updatedAt?: string | null;
|
|
889
|
+
messages: AiChatMessage[];
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
export interface AiConversationListItem {
|
|
893
|
+
/** @format uuid */
|
|
894
|
+
id: string;
|
|
895
|
+
preview: string;
|
|
896
|
+
/** @format int32 */
|
|
897
|
+
messageCount: number;
|
|
898
|
+
/** @format date-time */
|
|
899
|
+
createdAt: string;
|
|
900
|
+
/** @format date-time */
|
|
901
|
+
updatedAt?: string | null;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
export interface AiConversationListItemPaginated {
|
|
905
|
+
rows: AiConversationListItem[];
|
|
906
|
+
pagination: Pagination;
|
|
907
|
+
/** @format int64 */
|
|
908
|
+
count: number;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
export interface AiGuardrail {
|
|
912
|
+
/** @format uuid */
|
|
913
|
+
id: string;
|
|
914
|
+
name: string;
|
|
915
|
+
category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
|
|
916
|
+
description?: string | null;
|
|
917
|
+
keywords: string[];
|
|
918
|
+
responseTemplate: string;
|
|
919
|
+
isDefault: boolean;
|
|
920
|
+
isEnabled: boolean;
|
|
921
|
+
hasAccountOverride: boolean;
|
|
922
|
+
/** @format date-time */
|
|
923
|
+
createdAt: string;
|
|
924
|
+
/** @format date-time */
|
|
925
|
+
updatedAt?: string | null;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
export interface AiPrompt {
|
|
929
|
+
/** @format uuid */
|
|
930
|
+
id: string;
|
|
931
|
+
title: string;
|
|
932
|
+
icon: string;
|
|
933
|
+
slug: string;
|
|
934
|
+
description: string;
|
|
935
|
+
documentTypes: string[];
|
|
936
|
+
applicableGuidelines: string[];
|
|
937
|
+
allowedRoles: string[];
|
|
938
|
+
systemPrompt: string;
|
|
939
|
+
userPromptTemplate: string;
|
|
940
|
+
followUpPrompts: string[];
|
|
941
|
+
/** @format int32 */
|
|
942
|
+
sortOrder: number;
|
|
943
|
+
isDefault: boolean;
|
|
944
|
+
/** @format uuid */
|
|
945
|
+
accountId?: string | null;
|
|
946
|
+
isActive: boolean;
|
|
947
|
+
category?: AiPromptCategory | null;
|
|
948
|
+
queryTemplateName?: AiQueryTemplateName | null;
|
|
949
|
+
displayHint?: AiDisplayHint | null;
|
|
950
|
+
bedrockModelId?: string | null;
|
|
951
|
+
requiredDataSources?: string[] | null;
|
|
952
|
+
outputType?: AiOutputType | null;
|
|
953
|
+
hasAccountOverride: boolean;
|
|
954
|
+
/** @format date-time */
|
|
955
|
+
createdAt: string;
|
|
956
|
+
/** @format date-time */
|
|
957
|
+
updatedAt?: string | null;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
export interface AiPromptSummary {
|
|
961
|
+
/** @format uuid */
|
|
962
|
+
id: string;
|
|
963
|
+
title: string;
|
|
964
|
+
icon: string;
|
|
965
|
+
slug: string;
|
|
966
|
+
description: string;
|
|
967
|
+
documentTypes: string[];
|
|
968
|
+
applicableGuidelines: string[];
|
|
969
|
+
followUpPrompts: string[];
|
|
970
|
+
/** @format int32 */
|
|
971
|
+
sortOrder: number;
|
|
972
|
+
category?: AiPromptCategory | null;
|
|
973
|
+
queryTemplateName?: AiQueryTemplateName | null;
|
|
974
|
+
displayHint?: AiDisplayHint | null;
|
|
975
|
+
bedrockModelId?: string | null;
|
|
976
|
+
requiredDataSources?: string[] | null;
|
|
977
|
+
outputType?: AiOutputType | null;
|
|
978
|
+
}
|
|
979
|
+
|
|
655
980
|
export interface AllowImpersonationRequest {
|
|
656
981
|
/**
|
|
657
982
|
* @format email
|
|
@@ -755,6 +1080,52 @@ export interface Attachment {
|
|
|
755
1080
|
base64Data: string;
|
|
756
1081
|
}
|
|
757
1082
|
|
|
1083
|
+
export interface AuditLogEntry {
|
|
1084
|
+
/** @format uuid */
|
|
1085
|
+
id: string;
|
|
1086
|
+
entityType: string;
|
|
1087
|
+
changeType:
|
|
1088
|
+
| "Created"
|
|
1089
|
+
| "Modified"
|
|
1090
|
+
| "SoftDeleted"
|
|
1091
|
+
| "HardDeleted"
|
|
1092
|
+
| "Restored";
|
|
1093
|
+
/** @format uuid */
|
|
1094
|
+
entityId: string;
|
|
1095
|
+
performedBy?: AuditLogUser | null;
|
|
1096
|
+
changes?: any;
|
|
1097
|
+
/** @format date-time */
|
|
1098
|
+
createdAt: string;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
export interface AuditLogEntryPaginated {
|
|
1102
|
+
rows: AuditLogEntry[];
|
|
1103
|
+
pagination: Pagination;
|
|
1104
|
+
/** @format int64 */
|
|
1105
|
+
count: number;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
export interface AuditLogSearchCriteria {
|
|
1109
|
+
entityType?: string | null;
|
|
1110
|
+
changeType?: AuditChangeType | null;
|
|
1111
|
+
/** @format uuid */
|
|
1112
|
+
entityId?: string | null;
|
|
1113
|
+
/** @format uuid */
|
|
1114
|
+
performedById?: string | null;
|
|
1115
|
+
/** @format date-time */
|
|
1116
|
+
startDate?: string | null;
|
|
1117
|
+
/** @format date-time */
|
|
1118
|
+
endDate?: string | null;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
export interface AuditLogUser {
|
|
1122
|
+
/** @format uuid */
|
|
1123
|
+
id: string;
|
|
1124
|
+
firstName: string;
|
|
1125
|
+
lastName: string;
|
|
1126
|
+
email: string;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
758
1129
|
export interface BranchBase {
|
|
759
1130
|
/** @format date-time */
|
|
760
1131
|
createdAt: string;
|
|
@@ -792,7 +1163,7 @@ export interface BranchSummary {
|
|
|
792
1163
|
|
|
793
1164
|
export interface BranchUser {
|
|
794
1165
|
/** @format date-time */
|
|
795
|
-
createdAt
|
|
1166
|
+
createdAt: string;
|
|
796
1167
|
/** @format date-time */
|
|
797
1168
|
updatedAt?: string | null;
|
|
798
1169
|
/** @format date-time */
|
|
@@ -956,7 +1327,7 @@ export interface ContactInfo {
|
|
|
956
1327
|
|
|
957
1328
|
export interface Corporate {
|
|
958
1329
|
/** @format date-time */
|
|
959
|
-
createdAt
|
|
1330
|
+
createdAt: string;
|
|
960
1331
|
/** @format date-time */
|
|
961
1332
|
updatedAt?: string | null;
|
|
962
1333
|
/** @format date-time */
|
|
@@ -1002,7 +1373,7 @@ export interface CorporateSearchCriteria {
|
|
|
1002
1373
|
}
|
|
1003
1374
|
|
|
1004
1375
|
export interface CreateAccessScopeRequest {
|
|
1005
|
-
scopeType:
|
|
1376
|
+
scopeType: "User" | "Branch";
|
|
1006
1377
|
/** @format uuid */
|
|
1007
1378
|
userId?: string | null;
|
|
1008
1379
|
/** @format uuid */
|
|
@@ -1026,11 +1397,76 @@ export interface CreateAccountRequest {
|
|
|
1026
1397
|
*/
|
|
1027
1398
|
nlmsid: number;
|
|
1028
1399
|
settings: AccountSettingsRequest;
|
|
1029
|
-
environment:
|
|
1400
|
+
environment: "Development" | "Staging" | "UAT" | "Production";
|
|
1030
1401
|
losIntegration: LOSIntegration;
|
|
1031
1402
|
billingSettings: AccountBillingRequest;
|
|
1032
1403
|
}
|
|
1033
1404
|
|
|
1405
|
+
export interface CreateAiCanonicalFieldRequest {
|
|
1406
|
+
/**
|
|
1407
|
+
* @minLength 1
|
|
1408
|
+
* @maxLength 200
|
|
1409
|
+
*/
|
|
1410
|
+
displayName: string;
|
|
1411
|
+
/** @minLength 1 */
|
|
1412
|
+
description: string;
|
|
1413
|
+
/** @minItems 1 */
|
|
1414
|
+
allowedRoles: string[];
|
|
1415
|
+
isPii: boolean;
|
|
1416
|
+
/** @minLength 1 */
|
|
1417
|
+
dataSource: string;
|
|
1418
|
+
category?: string | null;
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
export interface CreateAiGuardrailRequest {
|
|
1422
|
+
/**
|
|
1423
|
+
* @minLength 1
|
|
1424
|
+
* @maxLength 200
|
|
1425
|
+
*/
|
|
1426
|
+
name: string;
|
|
1427
|
+
category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
|
|
1428
|
+
description?: string | null;
|
|
1429
|
+
/** @minItems 1 */
|
|
1430
|
+
keywords: string[];
|
|
1431
|
+
/** @minLength 1 */
|
|
1432
|
+
responseTemplate: string;
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
export interface CreateAiPromptRequest {
|
|
1436
|
+
/**
|
|
1437
|
+
* @minLength 1
|
|
1438
|
+
* @maxLength 200
|
|
1439
|
+
*/
|
|
1440
|
+
title: string;
|
|
1441
|
+
icon: string;
|
|
1442
|
+
/**
|
|
1443
|
+
* @minLength 1
|
|
1444
|
+
* @maxLength 100
|
|
1445
|
+
*/
|
|
1446
|
+
slug: string;
|
|
1447
|
+
/**
|
|
1448
|
+
* @minLength 1
|
|
1449
|
+
* @maxLength 500
|
|
1450
|
+
*/
|
|
1451
|
+
description: string;
|
|
1452
|
+
documentTypes: string[];
|
|
1453
|
+
applicableGuidelines: string[];
|
|
1454
|
+
allowedRoles: string[];
|
|
1455
|
+
/** @minLength 1 */
|
|
1456
|
+
systemPrompt: string;
|
|
1457
|
+
/** @minLength 1 */
|
|
1458
|
+
userPromptTemplate: string;
|
|
1459
|
+
followUpPrompts: string[];
|
|
1460
|
+
/** @format int32 */
|
|
1461
|
+
sortOrder: number;
|
|
1462
|
+
category?: AiPromptCategory | null;
|
|
1463
|
+
queryTemplateName?: AiQueryTemplateName | null;
|
|
1464
|
+
displayHint?: AiDisplayHint | null;
|
|
1465
|
+
bedrockModelId?: string | null;
|
|
1466
|
+
requiredDataSources?: string[] | null;
|
|
1467
|
+
outputType?: AiOutputType | null;
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1034
1470
|
export interface CreateBranchRequest {
|
|
1035
1471
|
/**
|
|
1036
1472
|
* @minLength 1
|
|
@@ -1059,7 +1495,19 @@ export interface CreateDocumentTemplateRequest {
|
|
|
1059
1495
|
export interface CreateGroupMemberRequest {
|
|
1060
1496
|
/** @format uuid */
|
|
1061
1497
|
userId: string;
|
|
1062
|
-
loanRole:
|
|
1498
|
+
loanRole:
|
|
1499
|
+
| "Borrower"
|
|
1500
|
+
| "CoBorrower"
|
|
1501
|
+
| "NonBorrower"
|
|
1502
|
+
| "LoanOfficer"
|
|
1503
|
+
| "LoanProcessor"
|
|
1504
|
+
| "LoanOfficerAssistant"
|
|
1505
|
+
| "SupportingLoanOfficer"
|
|
1506
|
+
| "BuyerAgent"
|
|
1507
|
+
| "SellerAgent"
|
|
1508
|
+
| "TitleInsuranceAgent"
|
|
1509
|
+
| "EscrowAgent"
|
|
1510
|
+
| "SettlementAgent";
|
|
1063
1511
|
}
|
|
1064
1512
|
|
|
1065
1513
|
export interface CreateInviteRequest {
|
|
@@ -1071,7 +1519,7 @@ export interface CreateInviteRequest {
|
|
|
1071
1519
|
emailAddress: string;
|
|
1072
1520
|
phoneNumber?: string | null;
|
|
1073
1521
|
/** @deprecated */
|
|
1074
|
-
relationship:
|
|
1522
|
+
relationship: "NotApplicable" | "Spouse" | "NonSpouse";
|
|
1075
1523
|
loanID: string;
|
|
1076
1524
|
route?: string | null;
|
|
1077
1525
|
/** @format uuid */
|
|
@@ -1094,7 +1542,7 @@ export interface CreateLoanImportRequest {
|
|
|
1094
1542
|
* @minLength 1
|
|
1095
1543
|
*/
|
|
1096
1544
|
startDate: string;
|
|
1097
|
-
importMode:
|
|
1545
|
+
importMode: "All" | "NewOnly" | "UpdateOnly";
|
|
1098
1546
|
}
|
|
1099
1547
|
|
|
1100
1548
|
export interface CreateSession {
|
|
@@ -1116,7 +1564,19 @@ export interface CreateUserDeviceRequest {
|
|
|
1116
1564
|
}
|
|
1117
1565
|
|
|
1118
1566
|
export interface CreateUserDraft {
|
|
1119
|
-
loanRole:
|
|
1567
|
+
loanRole:
|
|
1568
|
+
| "Borrower"
|
|
1569
|
+
| "CoBorrower"
|
|
1570
|
+
| "NonBorrower"
|
|
1571
|
+
| "LoanOfficer"
|
|
1572
|
+
| "LoanProcessor"
|
|
1573
|
+
| "LoanOfficerAssistant"
|
|
1574
|
+
| "SupportingLoanOfficer"
|
|
1575
|
+
| "BuyerAgent"
|
|
1576
|
+
| "SellerAgent"
|
|
1577
|
+
| "TitleInsuranceAgent"
|
|
1578
|
+
| "EscrowAgent"
|
|
1579
|
+
| "SettlementAgent";
|
|
1120
1580
|
}
|
|
1121
1581
|
|
|
1122
1582
|
export interface CreateUserGroupRequest {
|
|
@@ -1178,7 +1638,7 @@ export interface CustomLoanData {
|
|
|
1178
1638
|
|
|
1179
1639
|
export interface DetailedUser {
|
|
1180
1640
|
/** @format date-time */
|
|
1181
|
-
createdAt
|
|
1641
|
+
createdAt: string;
|
|
1182
1642
|
/** @format date-time */
|
|
1183
1643
|
updatedAt?: string | null;
|
|
1184
1644
|
/** @format date-time */
|
|
@@ -1330,7 +1790,7 @@ export interface DocumentSync {
|
|
|
1330
1790
|
|
|
1331
1791
|
export interface DocumentTemplate {
|
|
1332
1792
|
/** @format date-time */
|
|
1333
|
-
createdAt
|
|
1793
|
+
createdAt: string;
|
|
1334
1794
|
/** @format date-time */
|
|
1335
1795
|
updatedAt?: string | null;
|
|
1336
1796
|
/** @format date-time */
|
|
@@ -1351,7 +1811,7 @@ export interface DocumentTemplate {
|
|
|
1351
1811
|
|
|
1352
1812
|
export interface DocumentTemplateBase {
|
|
1353
1813
|
/** @format date-time */
|
|
1354
|
-
createdAt
|
|
1814
|
+
createdAt: string;
|
|
1355
1815
|
/** @format date-time */
|
|
1356
1816
|
updatedAt?: string | null;
|
|
1357
1817
|
/** @format date-time */
|
|
@@ -1432,7 +1892,7 @@ export interface Draft {
|
|
|
1432
1892
|
siteConfiguration: SiteConfigurationReduced;
|
|
1433
1893
|
/** @format uuid */
|
|
1434
1894
|
loanID?: string | null;
|
|
1435
|
-
type:
|
|
1895
|
+
type: "NewLoan" | "EditLoan";
|
|
1436
1896
|
isCoBorrower: boolean;
|
|
1437
1897
|
}
|
|
1438
1898
|
|
|
@@ -1451,7 +1911,7 @@ export interface DraftContent {
|
|
|
1451
1911
|
siteConfiguration: SiteConfigurationReduced;
|
|
1452
1912
|
/** @format uuid */
|
|
1453
1913
|
loanID?: string | null;
|
|
1454
|
-
type:
|
|
1914
|
+
type: "NewLoan" | "EditLoan";
|
|
1455
1915
|
isCoBorrower: boolean;
|
|
1456
1916
|
applicationPayload: any;
|
|
1457
1917
|
}
|
|
@@ -1483,7 +1943,7 @@ export interface EConsentInformation {
|
|
|
1483
1943
|
|
|
1484
1944
|
export interface EnabledServices {
|
|
1485
1945
|
/** @format date-time */
|
|
1486
|
-
createdAt
|
|
1946
|
+
createdAt: string;
|
|
1487
1947
|
/** @format date-time */
|
|
1488
1948
|
updatedAt?: string | null;
|
|
1489
1949
|
/** @format date-time */
|
|
@@ -1581,8 +2041,15 @@ export interface EncompassRequestLog {
|
|
|
1581
2041
|
losId?: string | null;
|
|
1582
2042
|
/** @format uuid */
|
|
1583
2043
|
accountId: string;
|
|
1584
|
-
operationType:
|
|
1585
|
-
|
|
2044
|
+
operationType:
|
|
2045
|
+
| "FieldUpdate"
|
|
2046
|
+
| "EConsentUpdate"
|
|
2047
|
+
| "DocumentSync"
|
|
2048
|
+
| "MilestoneUpdate"
|
|
2049
|
+
| "DocumentAttachment"
|
|
2050
|
+
| "General"
|
|
2051
|
+
| "FieldReader";
|
|
2052
|
+
outcome: "Success" | "Failure" | "PartialSuccess";
|
|
1586
2053
|
message: string;
|
|
1587
2054
|
endpoint?: string | null;
|
|
1588
2055
|
httpMethod?: string | null;
|
|
@@ -1653,7 +2120,7 @@ export interface ForcePasswordReset {
|
|
|
1653
2120
|
|
|
1654
2121
|
export interface Form {
|
|
1655
2122
|
/** @format date-time */
|
|
1656
|
-
createdAt
|
|
2123
|
+
createdAt: string;
|
|
1657
2124
|
/** @format date-time */
|
|
1658
2125
|
updatedAt?: string | null;
|
|
1659
2126
|
/** @format date-time */
|
|
@@ -1819,7 +2286,20 @@ export interface FusionFieldDisplay {
|
|
|
1819
2286
|
}
|
|
1820
2287
|
|
|
1821
2288
|
export interface FusionReportFilter {
|
|
1822
|
-
filterType:
|
|
2289
|
+
filterType:
|
|
2290
|
+
| "DateGreaterThanOrEqualTo"
|
|
2291
|
+
| "DateGreaterThan"
|
|
2292
|
+
| "DateLessThan"
|
|
2293
|
+
| "DateLessThanOrEqualTo"
|
|
2294
|
+
| "DateEquals"
|
|
2295
|
+
| "DateDoesntEqual"
|
|
2296
|
+
| "DateNonEmpty"
|
|
2297
|
+
| "DateEmpty"
|
|
2298
|
+
| "StringContains"
|
|
2299
|
+
| "StringEquals"
|
|
2300
|
+
| "StringNotEmpty"
|
|
2301
|
+
| "StringNotEquals"
|
|
2302
|
+
| "StringNotContains";
|
|
1823
2303
|
targetField: string;
|
|
1824
2304
|
targetValue: string;
|
|
1825
2305
|
}
|
|
@@ -1841,13 +2321,26 @@ export interface GenerateDocumentRequest {
|
|
|
1841
2321
|
recipients: string[];
|
|
1842
2322
|
}
|
|
1843
2323
|
|
|
2324
|
+
export interface GenerateSystemPrompt {
|
|
2325
|
+
systemPrompt: string;
|
|
2326
|
+
}
|
|
2327
|
+
|
|
2328
|
+
export interface GenerateSystemPromptRequest {
|
|
2329
|
+
/**
|
|
2330
|
+
* @minLength 1
|
|
2331
|
+
* @maxLength 2000
|
|
2332
|
+
*/
|
|
2333
|
+
description: string;
|
|
2334
|
+
category: "DocumentAnalysis" | "DataQuery" | "General" | "Action";
|
|
2335
|
+
}
|
|
2336
|
+
|
|
1844
2337
|
export interface GetApplications {
|
|
1845
2338
|
applications: ApplicationRowData[];
|
|
1846
2339
|
}
|
|
1847
2340
|
|
|
1848
2341
|
export interface GetBranch {
|
|
1849
2342
|
/** @format date-time */
|
|
1850
|
-
createdAt
|
|
2343
|
+
createdAt: string;
|
|
1851
2344
|
/** @format date-time */
|
|
1852
2345
|
updatedAt?: string | null;
|
|
1853
2346
|
/** @format date-time */
|
|
@@ -1947,7 +2440,40 @@ export interface GuidPatchOperation {
|
|
|
1947
2440
|
}
|
|
1948
2441
|
|
|
1949
2442
|
export interface IPAddress {
|
|
1950
|
-
addressFamily:
|
|
2443
|
+
addressFamily:
|
|
2444
|
+
| "Unspecified"
|
|
2445
|
+
| "Unix"
|
|
2446
|
+
| "InterNetwork"
|
|
2447
|
+
| "ImpLink"
|
|
2448
|
+
| "Pup"
|
|
2449
|
+
| "Chaos"
|
|
2450
|
+
| "NS"
|
|
2451
|
+
| "Ipx"
|
|
2452
|
+
| "Iso"
|
|
2453
|
+
| "Osi"
|
|
2454
|
+
| "Ecma"
|
|
2455
|
+
| "DataKit"
|
|
2456
|
+
| "Ccitt"
|
|
2457
|
+
| "Sna"
|
|
2458
|
+
| "DecNet"
|
|
2459
|
+
| "DataLink"
|
|
2460
|
+
| "Lat"
|
|
2461
|
+
| "HyperChannel"
|
|
2462
|
+
| "AppleTalk"
|
|
2463
|
+
| "NetBios"
|
|
2464
|
+
| "VoiceView"
|
|
2465
|
+
| "FireFox"
|
|
2466
|
+
| "Banyan"
|
|
2467
|
+
| "Atm"
|
|
2468
|
+
| "InterNetworkV6"
|
|
2469
|
+
| "Cluster"
|
|
2470
|
+
| "Ieee12844"
|
|
2471
|
+
| "Irda"
|
|
2472
|
+
| "NetworkDesigners"
|
|
2473
|
+
| "Max"
|
|
2474
|
+
| "Packet"
|
|
2475
|
+
| "ControllerAreaNetwork"
|
|
2476
|
+
| "Unknown";
|
|
1951
2477
|
/** @format int64 */
|
|
1952
2478
|
scopeId: number;
|
|
1953
2479
|
isIPv6Multicast: boolean;
|
|
@@ -1965,7 +2491,7 @@ export interface IPAddress {
|
|
|
1965
2491
|
|
|
1966
2492
|
export interface ImpersonatedDetailedUser {
|
|
1967
2493
|
/** @format date-time */
|
|
1968
|
-
createdAt
|
|
2494
|
+
createdAt: string;
|
|
1969
2495
|
/** @format date-time */
|
|
1970
2496
|
updatedAt?: string | null;
|
|
1971
2497
|
/** @format date-time */
|
|
@@ -2211,7 +2737,6 @@ export interface Loan {
|
|
|
2211
2737
|
financial?: LoanFinancial | null;
|
|
2212
2738
|
borrowers: LoanBorrower[];
|
|
2213
2739
|
nonOwningBorrowers: LoanNonOwningBorrower[];
|
|
2214
|
-
loanLogs: LoanLog[];
|
|
2215
2740
|
userLoans: UserLoan[];
|
|
2216
2741
|
contacts: LoanContact[];
|
|
2217
2742
|
}
|
|
@@ -2271,7 +2796,7 @@ export interface LoanBorrower {
|
|
|
2271
2796
|
citizenship?: LoanCitizenship | null;
|
|
2272
2797
|
maritalStatus?: LoanMaritalStatus | null;
|
|
2273
2798
|
languagePreference?: LoanLanguagePreference | null;
|
|
2274
|
-
applicationStatus:
|
|
2799
|
+
applicationStatus: "Draft" | "Complete";
|
|
2275
2800
|
/** @format int32 */
|
|
2276
2801
|
numberOfDependents?: number | null;
|
|
2277
2802
|
isPrimaryBorrower: boolean;
|
|
@@ -3196,7 +3721,19 @@ export interface LoanContact {
|
|
|
3196
3721
|
email?: string | null;
|
|
3197
3722
|
phone?: string | null;
|
|
3198
3723
|
companyName?: string | null;
|
|
3199
|
-
role:
|
|
3724
|
+
role:
|
|
3725
|
+
| "Borrower"
|
|
3726
|
+
| "CoBorrower"
|
|
3727
|
+
| "NonBorrower"
|
|
3728
|
+
| "LoanOfficer"
|
|
3729
|
+
| "LoanProcessor"
|
|
3730
|
+
| "LoanOfficerAssistant"
|
|
3731
|
+
| "SupportingLoanOfficer"
|
|
3732
|
+
| "BuyerAgent"
|
|
3733
|
+
| "SellerAgent"
|
|
3734
|
+
| "TitleInsuranceAgent"
|
|
3735
|
+
| "EscrowAgent"
|
|
3736
|
+
| "SettlementAgent";
|
|
3200
3737
|
}
|
|
3201
3738
|
|
|
3202
3739
|
export interface LoanContactList {
|
|
@@ -3230,7 +3767,7 @@ export interface LoanDocument {
|
|
|
3230
3767
|
|
|
3231
3768
|
export interface LoanDocumentSearch {
|
|
3232
3769
|
/** @format date-time */
|
|
3233
|
-
createdAt
|
|
3770
|
+
createdAt: string;
|
|
3234
3771
|
/** @format date-time */
|
|
3235
3772
|
updatedAt?: string | null;
|
|
3236
3773
|
/** @format date-time */
|
|
@@ -3332,14 +3869,19 @@ export interface LoanImport {
|
|
|
3332
3869
|
/** @format int32 */
|
|
3333
3870
|
importedCount: number;
|
|
3334
3871
|
statusMessage?: string | null;
|
|
3335
|
-
status:
|
|
3336
|
-
|
|
3872
|
+
status:
|
|
3873
|
+
| "WaitingProcess"
|
|
3874
|
+
| "InProgress"
|
|
3875
|
+
| "Completed"
|
|
3876
|
+
| "Failed"
|
|
3877
|
+
| "Cancelled";
|
|
3878
|
+
importMode: "All" | "NewOnly" | "UpdateOnly";
|
|
3337
3879
|
/** @format date-time */
|
|
3338
3880
|
createdAt?: string | null;
|
|
3339
3881
|
}
|
|
3340
3882
|
|
|
3341
3883
|
export interface LoanImportLog {
|
|
3342
|
-
level:
|
|
3884
|
+
level: "None" | "Info" | "Warning" | "Error";
|
|
3343
3885
|
message: string;
|
|
3344
3886
|
/** @format date-time */
|
|
3345
3887
|
createdAt: string;
|
|
@@ -3400,8 +3942,22 @@ export interface LoanListPaginated {
|
|
|
3400
3942
|
export interface LoanLog {
|
|
3401
3943
|
/** @format uuid */
|
|
3402
3944
|
id: string;
|
|
3403
|
-
level:
|
|
3404
|
-
type:
|
|
3945
|
+
level: "None" | "Info" | "Warning" | "Error";
|
|
3946
|
+
type:
|
|
3947
|
+
| "Loan"
|
|
3948
|
+
| "Queue"
|
|
3949
|
+
| "POSFlagChanged"
|
|
3950
|
+
| "Verification"
|
|
3951
|
+
| "DocumentUploaded"
|
|
3952
|
+
| "LoanCreated"
|
|
3953
|
+
| "WorkflowSubmitted"
|
|
3954
|
+
| "UserInvitationSent"
|
|
3955
|
+
| "CoBorrowerAdded"
|
|
3956
|
+
| "TaskCompleted"
|
|
3957
|
+
| "LoanStatusChanged"
|
|
3958
|
+
| "EConsent"
|
|
3959
|
+
| "SensitiveDataPurge"
|
|
3960
|
+
| "ClosingDateUpdated";
|
|
3405
3961
|
message: string;
|
|
3406
3962
|
/** @format date-time */
|
|
3407
3963
|
createdAt: string;
|
|
@@ -3410,8 +3966,22 @@ export interface LoanLog {
|
|
|
3410
3966
|
export interface LoanLogDetail {
|
|
3411
3967
|
/** @format uuid */
|
|
3412
3968
|
id: string;
|
|
3413
|
-
level:
|
|
3414
|
-
type:
|
|
3969
|
+
level: "None" | "Info" | "Warning" | "Error";
|
|
3970
|
+
type:
|
|
3971
|
+
| "Loan"
|
|
3972
|
+
| "Queue"
|
|
3973
|
+
| "POSFlagChanged"
|
|
3974
|
+
| "Verification"
|
|
3975
|
+
| "DocumentUploaded"
|
|
3976
|
+
| "LoanCreated"
|
|
3977
|
+
| "WorkflowSubmitted"
|
|
3978
|
+
| "UserInvitationSent"
|
|
3979
|
+
| "CoBorrowerAdded"
|
|
3980
|
+
| "TaskCompleted"
|
|
3981
|
+
| "LoanStatusChanged"
|
|
3982
|
+
| "EConsent"
|
|
3983
|
+
| "SensitiveDataPurge"
|
|
3984
|
+
| "ClosingDateUpdated";
|
|
3415
3985
|
message: string;
|
|
3416
3986
|
/** @format date-time */
|
|
3417
3987
|
createdAt: string;
|
|
@@ -3695,7 +4265,19 @@ export interface LoanUser {
|
|
|
3695
4265
|
email: string;
|
|
3696
4266
|
phone?: string | null;
|
|
3697
4267
|
role: string;
|
|
3698
|
-
loanRole:
|
|
4268
|
+
loanRole:
|
|
4269
|
+
| "Borrower"
|
|
4270
|
+
| "CoBorrower"
|
|
4271
|
+
| "NonBorrower"
|
|
4272
|
+
| "LoanOfficer"
|
|
4273
|
+
| "LoanProcessor"
|
|
4274
|
+
| "LoanOfficerAssistant"
|
|
4275
|
+
| "SupportingLoanOfficer"
|
|
4276
|
+
| "BuyerAgent"
|
|
4277
|
+
| "SellerAgent"
|
|
4278
|
+
| "TitleInsuranceAgent"
|
|
4279
|
+
| "EscrowAgent"
|
|
4280
|
+
| "SettlementAgent";
|
|
3699
4281
|
isUser: boolean;
|
|
3700
4282
|
/** @format date-time */
|
|
3701
4283
|
createdAt: string;
|
|
@@ -3853,7 +4435,7 @@ export interface NoContentResult {
|
|
|
3853
4435
|
|
|
3854
4436
|
export interface NotificationTemplate {
|
|
3855
4437
|
/** @format date-time */
|
|
3856
|
-
createdAt
|
|
4438
|
+
createdAt: string;
|
|
3857
4439
|
/** @format date-time */
|
|
3858
4440
|
updatedAt?: string | null;
|
|
3859
4441
|
/** @format date-time */
|
|
@@ -3878,7 +4460,7 @@ export interface NotificationTemplate {
|
|
|
3878
4460
|
|
|
3879
4461
|
export interface NotificationTemplateBase {
|
|
3880
4462
|
/** @format date-time */
|
|
3881
|
-
createdAt
|
|
4463
|
+
createdAt: string;
|
|
3882
4464
|
/** @format date-time */
|
|
3883
4465
|
updatedAt?: string | null;
|
|
3884
4466
|
/** @format date-time */
|
|
@@ -4340,7 +4922,7 @@ export interface SSOTokenRequest {
|
|
|
4340
4922
|
}
|
|
4341
4923
|
|
|
4342
4924
|
export interface SamlMetadataRequest {
|
|
4343
|
-
ssoIntegration:
|
|
4925
|
+
ssoIntegration: "ConsumerConnect" | "TheBigPOS" | "POSF";
|
|
4344
4926
|
}
|
|
4345
4927
|
|
|
4346
4928
|
export interface SendForgotPasswordRequest {
|
|
@@ -4372,14 +4954,14 @@ export interface SendNotificationForLoanRequest {
|
|
|
4372
4954
|
|
|
4373
4955
|
export interface SiteConfiguration {
|
|
4374
4956
|
/** @format date-time */
|
|
4375
|
-
createdAt
|
|
4957
|
+
createdAt: string;
|
|
4376
4958
|
/** @format date-time */
|
|
4377
4959
|
updatedAt?: string | null;
|
|
4378
4960
|
/** @format date-time */
|
|
4379
4961
|
deletedAt?: string | null;
|
|
4380
4962
|
/** @format uuid */
|
|
4381
4963
|
id: string;
|
|
4382
|
-
type:
|
|
4964
|
+
type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
|
|
4383
4965
|
/** @format uuid */
|
|
4384
4966
|
entityID: string;
|
|
4385
4967
|
/** @format int32 */
|
|
@@ -4567,14 +5149,14 @@ export interface SiteConfiguration {
|
|
|
4567
5149
|
|
|
4568
5150
|
export interface SiteConfigurationByUrl {
|
|
4569
5151
|
/** @format date-time */
|
|
4570
|
-
createdAt
|
|
5152
|
+
createdAt: string;
|
|
4571
5153
|
/** @format date-time */
|
|
4572
5154
|
updatedAt?: string | null;
|
|
4573
5155
|
/** @format date-time */
|
|
4574
5156
|
deletedAt?: string | null;
|
|
4575
5157
|
/** @format uuid */
|
|
4576
5158
|
id: string;
|
|
4577
|
-
type:
|
|
5159
|
+
type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
|
|
4578
5160
|
/** @format uuid */
|
|
4579
5161
|
entityID: string;
|
|
4580
5162
|
/** @format int32 */
|
|
@@ -4787,7 +5369,7 @@ export interface SiteConfigurationForm {
|
|
|
4787
5369
|
export interface SiteConfigurationReduced {
|
|
4788
5370
|
/** @format uuid */
|
|
4789
5371
|
id: string;
|
|
4790
|
-
type:
|
|
5372
|
+
type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
|
|
4791
5373
|
url?: string | null;
|
|
4792
5374
|
name: string;
|
|
4793
5375
|
/** @format int64 */
|
|
@@ -4805,7 +5387,7 @@ export interface SiteConfigurationRequest {
|
|
|
4805
5387
|
entityID: string;
|
|
4806
5388
|
/** @format int32 */
|
|
4807
5389
|
entityType: number;
|
|
4808
|
-
type:
|
|
5390
|
+
type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
|
|
4809
5391
|
url: string;
|
|
4810
5392
|
name: string;
|
|
4811
5393
|
introduction?: string | null;
|
|
@@ -4982,7 +5564,7 @@ export interface SiteConfigurationSearchCriteria {
|
|
|
4982
5564
|
export interface SiteConfigurationSummary {
|
|
4983
5565
|
/** @format uuid */
|
|
4984
5566
|
id: string;
|
|
4985
|
-
type:
|
|
5567
|
+
type: "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
|
|
4986
5568
|
url?: string | null;
|
|
4987
5569
|
name: string;
|
|
4988
5570
|
/** @format int64 */
|
|
@@ -5014,7 +5596,7 @@ export interface SiteConfigurationWithInherited {
|
|
|
5014
5596
|
|
|
5015
5597
|
export interface SocialSurveyRecord {
|
|
5016
5598
|
/** @format date-time */
|
|
5017
|
-
createdAt
|
|
5599
|
+
createdAt: string;
|
|
5018
5600
|
/** @format date-time */
|
|
5019
5601
|
updatedAt?: string | null;
|
|
5020
5602
|
/** @format date-time */
|
|
@@ -5030,6 +5612,14 @@ export interface SocialSurveyRecord {
|
|
|
5030
5612
|
reviewCompletedTimeStamp?: string | null;
|
|
5031
5613
|
}
|
|
5032
5614
|
|
|
5615
|
+
export interface SupportedModel {
|
|
5616
|
+
modelId: string;
|
|
5617
|
+
displayName: string;
|
|
5618
|
+
provider: string;
|
|
5619
|
+
description?: string | null;
|
|
5620
|
+
isDefault: boolean;
|
|
5621
|
+
}
|
|
5622
|
+
|
|
5033
5623
|
export interface SurveyEmailRequest {
|
|
5034
5624
|
/** @minLength 1 */
|
|
5035
5625
|
loanOfficerEmailAddress: string;
|
|
@@ -5290,30 +5880,87 @@ export interface UpdateAccountRequest {
|
|
|
5290
5880
|
settings: AccountSettingsRequest;
|
|
5291
5881
|
}
|
|
5292
5882
|
|
|
5293
|
-
export interface
|
|
5294
|
-
/** @minLength 1 */
|
|
5295
|
-
htmlBody: string;
|
|
5883
|
+
export interface UpdateAiCanonicalFieldRequest {
|
|
5296
5884
|
/**
|
|
5297
5885
|
* @minLength 1
|
|
5298
|
-
* @maxLength
|
|
5886
|
+
* @maxLength 200
|
|
5299
5887
|
*/
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5888
|
+
displayName: string;
|
|
5889
|
+
/** @minLength 1 */
|
|
5890
|
+
description: string;
|
|
5891
|
+
/** @minItems 1 */
|
|
5892
|
+
allowedRoles: string[];
|
|
5893
|
+
isPii: boolean;
|
|
5304
5894
|
}
|
|
5305
5895
|
|
|
5306
|
-
export interface
|
|
5307
|
-
/** @format uuid */
|
|
5308
|
-
id: string;
|
|
5309
|
-
/** @format int32 */
|
|
5310
|
-
weight: number;
|
|
5896
|
+
export interface UpdateAiGuardrailRequest {
|
|
5311
5897
|
/**
|
|
5312
5898
|
* @minLength 1
|
|
5313
|
-
* @maxLength
|
|
5899
|
+
* @maxLength 200
|
|
5314
5900
|
*/
|
|
5315
5901
|
name: string;
|
|
5316
|
-
|
|
5902
|
+
category: "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
|
|
5903
|
+
description?: string | null;
|
|
5904
|
+
/** @minItems 1 */
|
|
5905
|
+
keywords: string[];
|
|
5906
|
+
/** @minLength 1 */
|
|
5907
|
+
responseTemplate: string;
|
|
5908
|
+
}
|
|
5909
|
+
|
|
5910
|
+
export interface UpdateAiPromptRequest {
|
|
5911
|
+
/**
|
|
5912
|
+
* @minLength 1
|
|
5913
|
+
* @maxLength 200
|
|
5914
|
+
*/
|
|
5915
|
+
title: string;
|
|
5916
|
+
icon: string;
|
|
5917
|
+
/**
|
|
5918
|
+
* @minLength 1
|
|
5919
|
+
* @maxLength 500
|
|
5920
|
+
*/
|
|
5921
|
+
description: string;
|
|
5922
|
+
documentTypes: string[];
|
|
5923
|
+
applicableGuidelines: string[];
|
|
5924
|
+
allowedRoles: string[];
|
|
5925
|
+
/** @minLength 1 */
|
|
5926
|
+
systemPrompt: string;
|
|
5927
|
+
/** @minLength 1 */
|
|
5928
|
+
userPromptTemplate: string;
|
|
5929
|
+
followUpPrompts: string[];
|
|
5930
|
+
/** @format int32 */
|
|
5931
|
+
sortOrder: number;
|
|
5932
|
+
category?: AiPromptCategory | null;
|
|
5933
|
+
queryTemplateName?: AiQueryTemplateName | null;
|
|
5934
|
+
displayHint?: AiDisplayHint | null;
|
|
5935
|
+
bedrockModelId?: string | null;
|
|
5936
|
+
requiredDataSources?: string[] | null;
|
|
5937
|
+
outputType?: AiOutputType | null;
|
|
5938
|
+
}
|
|
5939
|
+
|
|
5940
|
+
export interface UpdateDocumentTemplateRequest {
|
|
5941
|
+
/** @minLength 1 */
|
|
5942
|
+
htmlBody: string;
|
|
5943
|
+
/**
|
|
5944
|
+
* @minLength 1
|
|
5945
|
+
* @maxLength 255
|
|
5946
|
+
*/
|
|
5947
|
+
name: string;
|
|
5948
|
+
description?: string | null;
|
|
5949
|
+
destinationBucket?: string | null;
|
|
5950
|
+
status: string;
|
|
5951
|
+
}
|
|
5952
|
+
|
|
5953
|
+
export interface UpdateListingFileRequest {
|
|
5954
|
+
/** @format uuid */
|
|
5955
|
+
id: string;
|
|
5956
|
+
/** @format int32 */
|
|
5957
|
+
weight: number;
|
|
5958
|
+
/**
|
|
5959
|
+
* @minLength 1
|
|
5960
|
+
* @maxLength 250
|
|
5961
|
+
*/
|
|
5962
|
+
name: string;
|
|
5963
|
+
}
|
|
5317
5964
|
|
|
5318
5965
|
export interface UpdateListingPhotoRequest {
|
|
5319
5966
|
/** @format uuid */
|
|
@@ -5558,7 +6205,7 @@ export interface UsageReportStatistics {
|
|
|
5558
6205
|
|
|
5559
6206
|
export interface User {
|
|
5560
6207
|
/** @format date-time */
|
|
5561
|
-
createdAt
|
|
6208
|
+
createdAt: string;
|
|
5562
6209
|
/** @format date-time */
|
|
5563
6210
|
updatedAt?: string | null;
|
|
5564
6211
|
/** @format date-time */
|
|
@@ -5608,7 +6255,19 @@ export interface UserDevice {
|
|
|
5608
6255
|
export interface UserDraft {
|
|
5609
6256
|
/** @format uuid */
|
|
5610
6257
|
draftID: string;
|
|
5611
|
-
role:
|
|
6258
|
+
role:
|
|
6259
|
+
| "Borrower"
|
|
6260
|
+
| "CoBorrower"
|
|
6261
|
+
| "NonBorrower"
|
|
6262
|
+
| "LoanOfficer"
|
|
6263
|
+
| "LoanProcessor"
|
|
6264
|
+
| "LoanOfficerAssistant"
|
|
6265
|
+
| "SupportingLoanOfficer"
|
|
6266
|
+
| "BuyerAgent"
|
|
6267
|
+
| "SellerAgent"
|
|
6268
|
+
| "TitleInsuranceAgent"
|
|
6269
|
+
| "EscrowAgent"
|
|
6270
|
+
| "SettlementAgent";
|
|
5612
6271
|
user: User;
|
|
5613
6272
|
}
|
|
5614
6273
|
|
|
@@ -5635,7 +6294,7 @@ export interface UserGroupAccessScope {
|
|
|
5635
6294
|
id: string;
|
|
5636
6295
|
/** @format uuid */
|
|
5637
6296
|
groupId: string;
|
|
5638
|
-
scopeType:
|
|
6297
|
+
scopeType: "User" | "Branch";
|
|
5639
6298
|
/** @format uuid */
|
|
5640
6299
|
userId?: string | null;
|
|
5641
6300
|
/** @format uuid */
|
|
@@ -5671,7 +6330,19 @@ export interface UserLoan {
|
|
|
5671
6330
|
deletedAt?: string | null;
|
|
5672
6331
|
loanID: string;
|
|
5673
6332
|
user: User;
|
|
5674
|
-
role:
|
|
6333
|
+
role:
|
|
6334
|
+
| "Borrower"
|
|
6335
|
+
| "CoBorrower"
|
|
6336
|
+
| "NonBorrower"
|
|
6337
|
+
| "LoanOfficer"
|
|
6338
|
+
| "LoanProcessor"
|
|
6339
|
+
| "LoanOfficerAssistant"
|
|
6340
|
+
| "SupportingLoanOfficer"
|
|
6341
|
+
| "BuyerAgent"
|
|
6342
|
+
| "SellerAgent"
|
|
6343
|
+
| "TitleInsuranceAgent"
|
|
6344
|
+
| "EscrowAgent"
|
|
6345
|
+
| "SettlementAgent";
|
|
5675
6346
|
/** @format int32 */
|
|
5676
6347
|
borrowerPair?: number | null;
|
|
5677
6348
|
/** @format int32 */
|
|
@@ -5684,10 +6355,10 @@ export interface UserLoanConsent {
|
|
|
5684
6355
|
id: string;
|
|
5685
6356
|
/** @format uuid */
|
|
5686
6357
|
userLoanID: string;
|
|
5687
|
-
type:
|
|
6358
|
+
type: "Econsent" | "CreditAuthorization" | "Tcpa";
|
|
5688
6359
|
providedConsent: boolean;
|
|
5689
6360
|
ipAddress?: string | null;
|
|
5690
|
-
losSyncStatus:
|
|
6361
|
+
losSyncStatus: "NotStarted" | "Failed" | "Success";
|
|
5691
6362
|
/** @format date-time */
|
|
5692
6363
|
createdAt: string;
|
|
5693
6364
|
}
|
|
@@ -5832,7 +6503,16 @@ export interface UserSummary {
|
|
|
5832
6503
|
id: string;
|
|
5833
6504
|
name?: string | null;
|
|
5834
6505
|
email?: string | null;
|
|
5835
|
-
role:
|
|
6506
|
+
role:
|
|
6507
|
+
| "Borrower"
|
|
6508
|
+
| "LoanOfficer"
|
|
6509
|
+
| "Admin"
|
|
6510
|
+
| "SuperAdmin"
|
|
6511
|
+
| "Realtor"
|
|
6512
|
+
| "SettlementAgent"
|
|
6513
|
+
| "LoanProcessor"
|
|
6514
|
+
| "LoanOfficerAssistant"
|
|
6515
|
+
| "SystemAdmin";
|
|
5836
6516
|
}
|
|
5837
6517
|
|
|
5838
6518
|
export interface VerifyPasswordRequest {
|
|
@@ -5868,562 +6548,726 @@ export interface Workflow {
|
|
|
5868
6548
|
icon: string;
|
|
5869
6549
|
}
|
|
5870
6550
|
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
| "Production";
|
|
5880
|
-
|
|
5881
|
-
export type CreateGroupMemberRequestLoanRoleEnum =
|
|
5882
|
-
| "Borrower"
|
|
5883
|
-
| "CoBorrower"
|
|
5884
|
-
| "NonBorrower"
|
|
5885
|
-
| "LoanOfficer"
|
|
5886
|
-
| "LoanProcessor"
|
|
5887
|
-
| "LoanOfficerAssistant"
|
|
5888
|
-
| "SupportingLoanOfficer"
|
|
5889
|
-
| "BuyerAgent"
|
|
5890
|
-
| "SellerAgent"
|
|
5891
|
-
| "TitleInsuranceAgent"
|
|
5892
|
-
| "EscrowAgent"
|
|
5893
|
-
| "SettlementAgent";
|
|
5894
|
-
|
|
5895
|
-
/** @deprecated */
|
|
5896
|
-
export type CreateInviteRequestRelationshipEnum =
|
|
5897
|
-
| "NotApplicable"
|
|
5898
|
-
| "Spouse"
|
|
5899
|
-
| "NonSpouse";
|
|
6551
|
+
import type {
|
|
6552
|
+
AxiosInstance,
|
|
6553
|
+
AxiosRequestConfig,
|
|
6554
|
+
AxiosResponse,
|
|
6555
|
+
HeadersDefaults,
|
|
6556
|
+
ResponseType,
|
|
6557
|
+
} from "axios";
|
|
6558
|
+
import axios from "axios";
|
|
5900
6559
|
|
|
5901
|
-
export type
|
|
5902
|
-
| "All"
|
|
5903
|
-
| "NewOnly"
|
|
5904
|
-
| "UpdateOnly";
|
|
6560
|
+
export type QueryParamsType = Record<string | number, any>;
|
|
5905
6561
|
|
|
5906
|
-
export
|
|
5907
|
-
| "
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
6562
|
+
export interface FullRequestParams
|
|
6563
|
+
extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
|
|
6564
|
+
/** set parameter to `true` for call `securityWorker` for this request */
|
|
6565
|
+
secure?: boolean;
|
|
6566
|
+
/** request path */
|
|
6567
|
+
path: string;
|
|
6568
|
+
/** content type of request body */
|
|
6569
|
+
type?: ContentType;
|
|
6570
|
+
/** query params */
|
|
6571
|
+
query?: QueryParamsType;
|
|
6572
|
+
/** format of response (i.e. response.json() -> format: "json") */
|
|
6573
|
+
format?: ResponseType;
|
|
6574
|
+
/** request body */
|
|
6575
|
+
body?: unknown;
|
|
6576
|
+
}
|
|
5919
6577
|
|
|
5920
|
-
export type
|
|
6578
|
+
export type RequestParams = Omit<
|
|
6579
|
+
FullRequestParams,
|
|
6580
|
+
"body" | "method" | "query" | "path"
|
|
6581
|
+
>;
|
|
5921
6582
|
|
|
5922
|
-
export
|
|
6583
|
+
export interface ApiConfig<SecurityDataType = unknown>
|
|
6584
|
+
extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
|
|
6585
|
+
securityWorker?: (
|
|
6586
|
+
securityData: SecurityDataType | null,
|
|
6587
|
+
) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
|
|
6588
|
+
secure?: boolean;
|
|
6589
|
+
format?: ResponseType;
|
|
6590
|
+
}
|
|
5923
6591
|
|
|
5924
|
-
export
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
6592
|
+
export enum ContentType {
|
|
6593
|
+
JsonPatch = "application/json-patch+json",
|
|
6594
|
+
Json = "application/json",
|
|
6595
|
+
JsonApi = "application/vnd.api+json",
|
|
6596
|
+
FormData = "multipart/form-data",
|
|
6597
|
+
UrlEncoded = "application/x-www-form-urlencoded",
|
|
6598
|
+
Text = "text/plain",
|
|
6599
|
+
}
|
|
5932
6600
|
|
|
5933
|
-
export
|
|
5934
|
-
|
|
5935
|
-
|
|
|
5936
|
-
|
|
6601
|
+
export class HttpClient<SecurityDataType = unknown> {
|
|
6602
|
+
public instance: AxiosInstance;
|
|
6603
|
+
private securityData: SecurityDataType | null = null;
|
|
6604
|
+
private securityWorker?: ApiConfig<SecurityDataType>["securityWorker"];
|
|
6605
|
+
private secure?: boolean;
|
|
6606
|
+
private format?: ResponseType;
|
|
5937
6607
|
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
6608
|
+
constructor({
|
|
6609
|
+
securityWorker,
|
|
6610
|
+
secure,
|
|
6611
|
+
format,
|
|
6612
|
+
...axiosConfig
|
|
6613
|
+
}: ApiConfig<SecurityDataType> = {}) {
|
|
6614
|
+
this.instance = axios.create({
|
|
6615
|
+
...axiosConfig,
|
|
6616
|
+
baseURL: axiosConfig.baseURL || "",
|
|
6617
|
+
});
|
|
6618
|
+
this.secure = secure;
|
|
6619
|
+
this.format = format;
|
|
6620
|
+
this.securityWorker = securityWorker;
|
|
6621
|
+
}
|
|
5952
6622
|
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
| "InterNetwork"
|
|
5957
|
-
| "ImpLink"
|
|
5958
|
-
| "Pup"
|
|
5959
|
-
| "Chaos"
|
|
5960
|
-
| "NS"
|
|
5961
|
-
| "Ipx"
|
|
5962
|
-
| "Iso"
|
|
5963
|
-
| "Osi"
|
|
5964
|
-
| "Ecma"
|
|
5965
|
-
| "DataKit"
|
|
5966
|
-
| "Ccitt"
|
|
5967
|
-
| "Sna"
|
|
5968
|
-
| "DecNet"
|
|
5969
|
-
| "DataLink"
|
|
5970
|
-
| "Lat"
|
|
5971
|
-
| "HyperChannel"
|
|
5972
|
-
| "AppleTalk"
|
|
5973
|
-
| "NetBios"
|
|
5974
|
-
| "VoiceView"
|
|
5975
|
-
| "FireFox"
|
|
5976
|
-
| "Banyan"
|
|
5977
|
-
| "Atm"
|
|
5978
|
-
| "InterNetworkV6"
|
|
5979
|
-
| "Cluster"
|
|
5980
|
-
| "Ieee12844"
|
|
5981
|
-
| "Irda"
|
|
5982
|
-
| "NetworkDesigners"
|
|
5983
|
-
| "Max"
|
|
5984
|
-
| "Packet"
|
|
5985
|
-
| "ControllerAreaNetwork"
|
|
5986
|
-
| "Unknown";
|
|
6623
|
+
public setSecurityData = (data: SecurityDataType | null) => {
|
|
6624
|
+
this.securityData = data;
|
|
6625
|
+
};
|
|
5987
6626
|
|
|
5988
|
-
|
|
6627
|
+
protected mergeRequestParams(
|
|
6628
|
+
params1: AxiosRequestConfig,
|
|
6629
|
+
params2?: AxiosRequestConfig,
|
|
6630
|
+
): AxiosRequestConfig {
|
|
6631
|
+
const method = params1.method || (params2 && params2.method);
|
|
5989
6632
|
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6633
|
+
return {
|
|
6634
|
+
...this.instance.defaults,
|
|
6635
|
+
...params1,
|
|
6636
|
+
...(params2 || {}),
|
|
6637
|
+
headers: {
|
|
6638
|
+
...((method &&
|
|
6639
|
+
this.instance.defaults.headers[
|
|
6640
|
+
method.toLowerCase() as keyof HeadersDefaults
|
|
6641
|
+
]) ||
|
|
6642
|
+
{}),
|
|
6643
|
+
...(params1.headers || {}),
|
|
6644
|
+
...((params2 && params2.headers) || {}),
|
|
6645
|
+
},
|
|
6646
|
+
};
|
|
6647
|
+
}
|
|
6003
6648
|
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6649
|
+
protected stringifyFormItem(formItem: unknown) {
|
|
6650
|
+
if (typeof formItem === "object" && formItem !== null) {
|
|
6651
|
+
return JSON.stringify(formItem);
|
|
6652
|
+
} else {
|
|
6653
|
+
return `${formItem}`;
|
|
6654
|
+
}
|
|
6655
|
+
}
|
|
6010
6656
|
|
|
6011
|
-
|
|
6657
|
+
protected createFormData(input: Record<string, unknown>): FormData {
|
|
6658
|
+
if (input instanceof FormData) {
|
|
6659
|
+
return input;
|
|
6660
|
+
}
|
|
6661
|
+
return Object.keys(input || {}).reduce((formData, key) => {
|
|
6662
|
+
const property = input[key];
|
|
6663
|
+
const propertyContent: any[] =
|
|
6664
|
+
property instanceof Array ? property : [property];
|
|
6012
6665
|
|
|
6013
|
-
|
|
6666
|
+
for (const formItem of propertyContent) {
|
|
6667
|
+
const isFileType = formItem instanceof Blob || formItem instanceof File;
|
|
6668
|
+
formData.append(
|
|
6669
|
+
key,
|
|
6670
|
+
isFileType ? formItem : this.stringifyFormItem(formItem),
|
|
6671
|
+
);
|
|
6672
|
+
}
|
|
6014
6673
|
|
|
6015
|
-
|
|
6674
|
+
return formData;
|
|
6675
|
+
}, new FormData());
|
|
6676
|
+
}
|
|
6016
6677
|
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
export type LoanLogDetailLevelEnum = "None" | "Info" | "Warning" | "Error";
|
|
6034
|
-
|
|
6035
|
-
export type LoanLogDetailTypeEnum =
|
|
6036
|
-
| "Loan"
|
|
6037
|
-
| "Queue"
|
|
6038
|
-
| "POSFlagChanged"
|
|
6039
|
-
| "Verification"
|
|
6040
|
-
| "DocumentUploaded"
|
|
6041
|
-
| "LoanCreated"
|
|
6042
|
-
| "WorkflowSubmitted"
|
|
6043
|
-
| "UserInvitationSent"
|
|
6044
|
-
| "CoBorrowerAdded"
|
|
6045
|
-
| "TaskCompleted"
|
|
6046
|
-
| "LoanStatusChanged"
|
|
6047
|
-
| "EConsent"
|
|
6048
|
-
| "SensitiveDataPurge"
|
|
6049
|
-
| "ClosingDateUpdated";
|
|
6050
|
-
|
|
6051
|
-
export type LoanUserLoanRoleEnum =
|
|
6052
|
-
| "Borrower"
|
|
6053
|
-
| "CoBorrower"
|
|
6054
|
-
| "NonBorrower"
|
|
6055
|
-
| "LoanOfficer"
|
|
6056
|
-
| "LoanProcessor"
|
|
6057
|
-
| "LoanOfficerAssistant"
|
|
6058
|
-
| "SupportingLoanOfficer"
|
|
6059
|
-
| "BuyerAgent"
|
|
6060
|
-
| "SellerAgent"
|
|
6061
|
-
| "TitleInsuranceAgent"
|
|
6062
|
-
| "EscrowAgent"
|
|
6063
|
-
| "SettlementAgent";
|
|
6064
|
-
|
|
6065
|
-
export type SamlMetadataRequestSsoIntegrationEnum =
|
|
6066
|
-
| "ConsumerConnect"
|
|
6067
|
-
| "TheBigPOS"
|
|
6068
|
-
| "POSF";
|
|
6069
|
-
|
|
6070
|
-
export type SiteConfigurationTypeEnum =
|
|
6071
|
-
| "None"
|
|
6072
|
-
| "Account"
|
|
6073
|
-
| "Corporate"
|
|
6074
|
-
| "Branch"
|
|
6075
|
-
| "LoanOfficer"
|
|
6076
|
-
| "Partner";
|
|
6077
|
-
|
|
6078
|
-
export type SiteConfigurationByUrlTypeEnum =
|
|
6079
|
-
| "None"
|
|
6080
|
-
| "Account"
|
|
6081
|
-
| "Corporate"
|
|
6082
|
-
| "Branch"
|
|
6083
|
-
| "LoanOfficer"
|
|
6084
|
-
| "Partner";
|
|
6085
|
-
|
|
6086
|
-
export type SiteConfigurationReducedTypeEnum =
|
|
6087
|
-
| "None"
|
|
6088
|
-
| "Account"
|
|
6089
|
-
| "Corporate"
|
|
6090
|
-
| "Branch"
|
|
6091
|
-
| "LoanOfficer"
|
|
6092
|
-
| "Partner";
|
|
6093
|
-
|
|
6094
|
-
export type SiteConfigurationRequestTypeEnum =
|
|
6095
|
-
| "None"
|
|
6096
|
-
| "Account"
|
|
6097
|
-
| "Corporate"
|
|
6098
|
-
| "Branch"
|
|
6099
|
-
| "LoanOfficer"
|
|
6100
|
-
| "Partner";
|
|
6101
|
-
|
|
6102
|
-
export type SiteConfigurationSummaryTypeEnum =
|
|
6103
|
-
| "None"
|
|
6104
|
-
| "Account"
|
|
6105
|
-
| "Corporate"
|
|
6106
|
-
| "Branch"
|
|
6107
|
-
| "LoanOfficer"
|
|
6108
|
-
| "Partner";
|
|
6109
|
-
|
|
6110
|
-
export type UserDraftRoleEnum =
|
|
6111
|
-
| "Borrower"
|
|
6112
|
-
| "CoBorrower"
|
|
6113
|
-
| "NonBorrower"
|
|
6114
|
-
| "LoanOfficer"
|
|
6115
|
-
| "LoanProcessor"
|
|
6116
|
-
| "LoanOfficerAssistant"
|
|
6117
|
-
| "SupportingLoanOfficer"
|
|
6118
|
-
| "BuyerAgent"
|
|
6119
|
-
| "SellerAgent"
|
|
6120
|
-
| "TitleInsuranceAgent"
|
|
6121
|
-
| "EscrowAgent"
|
|
6122
|
-
| "SettlementAgent";
|
|
6123
|
-
|
|
6124
|
-
export type UserGroupAccessScopeScopeTypeEnum = "User" | "Branch";
|
|
6125
|
-
|
|
6126
|
-
export type UserLoanRoleEnum =
|
|
6127
|
-
| "Borrower"
|
|
6128
|
-
| "CoBorrower"
|
|
6129
|
-
| "NonBorrower"
|
|
6130
|
-
| "LoanOfficer"
|
|
6131
|
-
| "LoanProcessor"
|
|
6132
|
-
| "LoanOfficerAssistant"
|
|
6133
|
-
| "SupportingLoanOfficer"
|
|
6134
|
-
| "BuyerAgent"
|
|
6135
|
-
| "SellerAgent"
|
|
6136
|
-
| "TitleInsuranceAgent"
|
|
6137
|
-
| "EscrowAgent"
|
|
6138
|
-
| "SettlementAgent";
|
|
6139
|
-
|
|
6140
|
-
export type UserLoanConsentTypeEnum =
|
|
6141
|
-
| "Econsent"
|
|
6142
|
-
| "CreditAuthorization"
|
|
6143
|
-
| "Tcpa";
|
|
6144
|
-
|
|
6145
|
-
export type UserLoanConsentLosSyncStatusEnum =
|
|
6146
|
-
| "NotStarted"
|
|
6147
|
-
| "Failed"
|
|
6148
|
-
| "Success";
|
|
6149
|
-
|
|
6150
|
-
export type UserSummaryRoleEnum =
|
|
6151
|
-
| "Borrower"
|
|
6152
|
-
| "LoanOfficer"
|
|
6153
|
-
| "Admin"
|
|
6154
|
-
| "SuperAdmin"
|
|
6155
|
-
| "Realtor"
|
|
6156
|
-
| "SettlementAgent"
|
|
6157
|
-
| "LoanProcessor"
|
|
6158
|
-
| "LoanOfficerAssistant"
|
|
6159
|
-
| "SystemAdmin";
|
|
6678
|
+
public request = async <T = any, _E = any>({
|
|
6679
|
+
secure,
|
|
6680
|
+
path,
|
|
6681
|
+
type,
|
|
6682
|
+
query,
|
|
6683
|
+
format,
|
|
6684
|
+
body,
|
|
6685
|
+
...params
|
|
6686
|
+
}: FullRequestParams): Promise<AxiosResponse<T>> => {
|
|
6687
|
+
const secureParams =
|
|
6688
|
+
((typeof secure === "boolean" ? secure : this.secure) &&
|
|
6689
|
+
this.securityWorker &&
|
|
6690
|
+
(await this.securityWorker(this.securityData))) ||
|
|
6691
|
+
{};
|
|
6692
|
+
const requestParams = this.mergeRequestParams(params, secureParams);
|
|
6693
|
+
const responseFormat = format || this.format || undefined;
|
|
6160
6694
|
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
| "LoanProcessor"
|
|
6170
|
-
| "LoanOfficerAssistant"
|
|
6171
|
-
| "SystemAdmin";
|
|
6695
|
+
if (
|
|
6696
|
+
type === ContentType.FormData &&
|
|
6697
|
+
body &&
|
|
6698
|
+
body !== null &&
|
|
6699
|
+
typeof body === "object"
|
|
6700
|
+
) {
|
|
6701
|
+
body = this.createFormData(body as Record<string, unknown>);
|
|
6702
|
+
}
|
|
6172
6703
|
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6704
|
+
if (
|
|
6705
|
+
type === ContentType.Text &&
|
|
6706
|
+
body &&
|
|
6707
|
+
body !== null &&
|
|
6708
|
+
typeof body !== "string"
|
|
6709
|
+
) {
|
|
6710
|
+
body = JSON.stringify(body);
|
|
6711
|
+
}
|
|
6177
6712
|
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6713
|
+
return this.instance.request({
|
|
6714
|
+
...requestParams,
|
|
6715
|
+
headers: {
|
|
6716
|
+
...(requestParams.headers || {}),
|
|
6717
|
+
...(type ? { "Content-Type": type } : {}),
|
|
6718
|
+
},
|
|
6719
|
+
params: query,
|
|
6720
|
+
responseType: responseFormat,
|
|
6721
|
+
data: body,
|
|
6722
|
+
url: path,
|
|
6723
|
+
});
|
|
6724
|
+
};
|
|
6725
|
+
}
|
|
6182
6726
|
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6727
|
+
/**
|
|
6728
|
+
* @title The Big POS API
|
|
6729
|
+
* @version v2.37.6
|
|
6730
|
+
* @termsOfService https://www.thebigpos.com/terms-of-use/
|
|
6731
|
+
* @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
|
|
6732
|
+
*/
|
|
6733
|
+
export class Api<
|
|
6734
|
+
SecurityDataType extends unknown,
|
|
6735
|
+
> extends HttpClient<SecurityDataType> {
|
|
6736
|
+
/**
|
|
6737
|
+
* No description
|
|
6738
|
+
*
|
|
6739
|
+
* @tags Saml
|
|
6740
|
+
* @name PostRoot
|
|
6741
|
+
* @request POST:/
|
|
6742
|
+
* @secure
|
|
6743
|
+
* @response `200` `void` Success
|
|
6744
|
+
*/
|
|
6745
|
+
postRoot = (params: RequestParams = {}) =>
|
|
6746
|
+
this.request<void, any>({
|
|
6747
|
+
path: `/`,
|
|
6748
|
+
method: "POST",
|
|
6749
|
+
secure: true,
|
|
6750
|
+
...params,
|
|
6751
|
+
});
|
|
6187
6752
|
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6753
|
+
/**
|
|
6754
|
+
* No description
|
|
6755
|
+
*
|
|
6756
|
+
* @tags TheBigPOS
|
|
6757
|
+
* @name GetRoot
|
|
6758
|
+
* @request GET:/
|
|
6759
|
+
* @secure
|
|
6760
|
+
* @response `200` `string` Success
|
|
6761
|
+
*/
|
|
6762
|
+
getRoot = (params: RequestParams = {}) =>
|
|
6763
|
+
this.request<string, any>({
|
|
6764
|
+
path: `/`,
|
|
6765
|
+
method: "GET",
|
|
6766
|
+
secure: true,
|
|
6767
|
+
...params,
|
|
6768
|
+
});
|
|
6192
6769
|
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6770
|
+
api = {
|
|
6771
|
+
/**
|
|
6772
|
+
* No description
|
|
6773
|
+
*
|
|
6774
|
+
* @tags Account
|
|
6775
|
+
* @name GetMyAccount
|
|
6776
|
+
* @summary Get
|
|
6777
|
+
* @request GET:/api/account
|
|
6778
|
+
* @secure
|
|
6779
|
+
* @response `200` `Account` Success
|
|
6780
|
+
* @response `404` `ProblemDetails` Not Found
|
|
6781
|
+
*/
|
|
6782
|
+
getMyAccount: (params: RequestParams = {}) =>
|
|
6783
|
+
this.request<Account, ProblemDetails>({
|
|
6784
|
+
path: `/api/account`,
|
|
6785
|
+
method: "GET",
|
|
6786
|
+
secure: true,
|
|
6787
|
+
format: "json",
|
|
6788
|
+
...params,
|
|
6789
|
+
}),
|
|
6201
6790
|
|
|
6202
|
-
|
|
6791
|
+
/**
|
|
6792
|
+
* No description
|
|
6793
|
+
*
|
|
6794
|
+
* @tags Account
|
|
6795
|
+
* @name ReplaceMyAccount
|
|
6796
|
+
* @summary Replace
|
|
6797
|
+
* @request PUT:/api/account
|
|
6798
|
+
* @secure
|
|
6799
|
+
* @response `200` `Account` Success
|
|
6800
|
+
* @response `404` `ProblemDetails` Not Found
|
|
6801
|
+
* @response `422` `ProblemDetails` Client Error
|
|
6802
|
+
*/
|
|
6803
|
+
replaceMyAccount: (
|
|
6804
|
+
data: UpdateAccountRequest,
|
|
6805
|
+
params: RequestParams = {},
|
|
6806
|
+
) =>
|
|
6807
|
+
this.request<Account, ProblemDetails>({
|
|
6808
|
+
path: `/api/account`,
|
|
6809
|
+
method: "PUT",
|
|
6810
|
+
body: data,
|
|
6811
|
+
secure: true,
|
|
6812
|
+
type: ContentType.Json,
|
|
6813
|
+
format: "json",
|
|
6814
|
+
...params,
|
|
6815
|
+
}),
|
|
6203
6816
|
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6817
|
+
/**
|
|
6818
|
+
* No description
|
|
6819
|
+
*
|
|
6820
|
+
* @tags Account
|
|
6821
|
+
* @name GetSiteConfigurationByAccount
|
|
6822
|
+
* @summary Get Site Configuration
|
|
6823
|
+
* @request GET:/api/account/site-configurations
|
|
6824
|
+
* @secure
|
|
6825
|
+
* @response `200` `SiteConfiguration` Success
|
|
6826
|
+
*/
|
|
6827
|
+
getSiteConfigurationByAccount: (params: RequestParams = {}) =>
|
|
6828
|
+
this.request<SiteConfiguration, any>({
|
|
6829
|
+
path: `/api/account/site-configurations`,
|
|
6830
|
+
method: "GET",
|
|
6831
|
+
secure: true,
|
|
6832
|
+
format: "json",
|
|
6833
|
+
...params,
|
|
6834
|
+
}),
|
|
6219
6835
|
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6836
|
+
/**
|
|
6837
|
+
* No description
|
|
6838
|
+
*
|
|
6839
|
+
* @tags Account
|
|
6840
|
+
* @name UpdateSiteConfigurationForAccount
|
|
6841
|
+
* @summary Update Site Configuration
|
|
6842
|
+
* @request PUT:/api/account/site-configurations
|
|
6843
|
+
* @secure
|
|
6844
|
+
* @response `200` `SiteConfiguration` Success
|
|
6845
|
+
* @response `422` `UnprocessableEntity` Client Error
|
|
6846
|
+
*/
|
|
6847
|
+
updateSiteConfigurationForAccount: (
|
|
6848
|
+
data: SiteConfiguration,
|
|
6849
|
+
params: RequestParams = {},
|
|
6850
|
+
) =>
|
|
6851
|
+
this.request<SiteConfiguration, UnprocessableEntity>({
|
|
6852
|
+
path: `/api/account/site-configurations`,
|
|
6853
|
+
method: "PUT",
|
|
6854
|
+
body: data,
|
|
6855
|
+
secure: true,
|
|
6856
|
+
type: ContentType.Json,
|
|
6857
|
+
format: "json",
|
|
6858
|
+
...params,
|
|
6859
|
+
}),
|
|
6224
6860
|
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6861
|
+
/**
|
|
6862
|
+
* No description
|
|
6863
|
+
*
|
|
6864
|
+
* @tags Accounts
|
|
6865
|
+
* @name GetAccounts
|
|
6866
|
+
* @summary Get All
|
|
6867
|
+
* @request GET:/api/accounts
|
|
6868
|
+
* @secure
|
|
6869
|
+
* @response `200` `(Account)[]` Success
|
|
6870
|
+
*/
|
|
6871
|
+
getAccounts: (params: RequestParams = {}) =>
|
|
6872
|
+
this.request<Account[], any>({
|
|
6873
|
+
path: `/api/accounts`,
|
|
6874
|
+
method: "GET",
|
|
6875
|
+
secure: true,
|
|
6876
|
+
format: "json",
|
|
6877
|
+
...params,
|
|
6878
|
+
}),
|
|
6233
6879
|
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6880
|
+
/**
|
|
6881
|
+
* No description
|
|
6882
|
+
*
|
|
6883
|
+
* @tags Accounts
|
|
6884
|
+
* @name CreateAccount
|
|
6885
|
+
* @summary Create
|
|
6886
|
+
* @request POST:/api/accounts
|
|
6887
|
+
* @secure
|
|
6888
|
+
* @response `201` `Account` Created
|
|
6889
|
+
* @response `422` `ProblemDetails` Client Error
|
|
6890
|
+
*/
|
|
6891
|
+
createAccount: (data: CreateAccountRequest, params: RequestParams = {}) =>
|
|
6892
|
+
this.request<Account, ProblemDetails>({
|
|
6893
|
+
path: `/api/accounts`,
|
|
6894
|
+
method: "POST",
|
|
6895
|
+
body: data,
|
|
6896
|
+
secure: true,
|
|
6897
|
+
type: ContentType.Json,
|
|
6898
|
+
format: "json",
|
|
6899
|
+
...params,
|
|
6900
|
+
}),
|
|
6242
6901
|
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6902
|
+
/**
|
|
6903
|
+
* No description
|
|
6904
|
+
*
|
|
6905
|
+
* @tags Accounts
|
|
6906
|
+
* @name GetAccount
|
|
6907
|
+
* @summary Get by ID
|
|
6908
|
+
* @request GET:/api/accounts/{id}
|
|
6909
|
+
* @secure
|
|
6910
|
+
* @response `201` `Account` Created
|
|
6911
|
+
* @response `422` `ProblemDetails` Client Error
|
|
6912
|
+
*/
|
|
6913
|
+
getAccount: (id: string, params: RequestParams = {}) =>
|
|
6914
|
+
this.request<Account, ProblemDetails>({
|
|
6915
|
+
path: `/api/accounts/${id}`,
|
|
6916
|
+
method: "GET",
|
|
6917
|
+
secure: true,
|
|
6918
|
+
format: "json",
|
|
6919
|
+
...params,
|
|
6920
|
+
}),
|
|
6249
6921
|
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6922
|
+
/**
|
|
6923
|
+
* No description
|
|
6924
|
+
*
|
|
6925
|
+
* @tags Accounts
|
|
6926
|
+
* @name DeleteAccount
|
|
6927
|
+
* @summary Delete
|
|
6928
|
+
* @request DELETE:/api/accounts/{id}
|
|
6929
|
+
* @secure
|
|
6930
|
+
* @response `204` `Account` No Content
|
|
6931
|
+
* @response `404` `ProblemDetails` Not Found
|
|
6932
|
+
* @response `422` `ProblemDetails` Client Error
|
|
6933
|
+
*/
|
|
6934
|
+
deleteAccount: (
|
|
6935
|
+
id: string,
|
|
6936
|
+
query?: {
|
|
6937
|
+
/** @default false */
|
|
6938
|
+
hardDelete?: boolean;
|
|
6939
|
+
},
|
|
6940
|
+
params: RequestParams = {},
|
|
6941
|
+
) =>
|
|
6942
|
+
this.request<Account, ProblemDetails>({
|
|
6943
|
+
path: `/api/accounts/${id}`,
|
|
6944
|
+
method: "DELETE",
|
|
6945
|
+
query: query,
|
|
6946
|
+
secure: true,
|
|
6947
|
+
format: "json",
|
|
6948
|
+
...params,
|
|
6949
|
+
}),
|
|
6264
6950
|
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6951
|
+
/**
|
|
6952
|
+
* No description
|
|
6953
|
+
*
|
|
6954
|
+
* @tags Accounts
|
|
6955
|
+
* @name UpdateAccountBilling
|
|
6956
|
+
* @summary Update billing configuration
|
|
6957
|
+
* @request PUT:/api/accounts/{id}/billing
|
|
6958
|
+
* @secure
|
|
6959
|
+
* @response `200` `AccountBilling` Success
|
|
6960
|
+
* @response `404` `ProblemDetails` Not Found
|
|
6961
|
+
* @response `422` `ProblemDetails` Client Error
|
|
6962
|
+
*/
|
|
6963
|
+
updateAccountBilling: (
|
|
6964
|
+
id: string,
|
|
6965
|
+
data: AccountBillingRequest,
|
|
6966
|
+
params: RequestParams = {},
|
|
6967
|
+
) =>
|
|
6968
|
+
this.request<AccountBilling, ProblemDetails>({
|
|
6969
|
+
path: `/api/accounts/${id}/billing`,
|
|
6970
|
+
method: "PUT",
|
|
6971
|
+
body: data,
|
|
6972
|
+
secure: true,
|
|
6973
|
+
type: ContentType.Json,
|
|
6974
|
+
format: "json",
|
|
6975
|
+
...params,
|
|
6976
|
+
}),
|
|
6268
6977
|
|
|
6269
|
-
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6978
|
+
/**
|
|
6979
|
+
* No description
|
|
6980
|
+
*
|
|
6981
|
+
* @tags AiAdmin
|
|
6982
|
+
* @name GetAiAuditLogs
|
|
6983
|
+
* @summary Get paginated audit logs
|
|
6984
|
+
* @request GET:/api/ai/admin/audit-logs
|
|
6985
|
+
* @secure
|
|
6986
|
+
* @response `200` `AiAuditLogPaginated` Success
|
|
6987
|
+
*/
|
|
6988
|
+
getAiAuditLogs: (
|
|
6989
|
+
query?: {
|
|
6990
|
+
eventType?: AiAuditEventType;
|
|
6991
|
+
/** @format date-time */
|
|
6992
|
+
startDate?: string;
|
|
6993
|
+
/** @format date-time */
|
|
6994
|
+
endDate?: string;
|
|
6995
|
+
/** @format int32 */
|
|
6996
|
+
pageSize?: number;
|
|
6997
|
+
/** @format int32 */
|
|
6998
|
+
pageNumber?: number;
|
|
6999
|
+
sortBy?: string;
|
|
7000
|
+
sortDirection?: string;
|
|
7001
|
+
},
|
|
7002
|
+
params: RequestParams = {},
|
|
7003
|
+
) =>
|
|
7004
|
+
this.request<AiAuditLogPaginated, any>({
|
|
7005
|
+
path: `/api/ai/admin/audit-logs`,
|
|
7006
|
+
method: "GET",
|
|
7007
|
+
query: query,
|
|
7008
|
+
secure: true,
|
|
7009
|
+
format: "json",
|
|
7010
|
+
...params,
|
|
7011
|
+
}),
|
|
6274
7012
|
|
|
6275
|
-
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
7013
|
+
/**
|
|
7014
|
+
* No description
|
|
7015
|
+
*
|
|
7016
|
+
* @tags AiAdmin
|
|
7017
|
+
* @name GetAiAdminStats
|
|
7018
|
+
* @summary Get AI admin dashboard stats
|
|
7019
|
+
* @request GET:/api/ai/admin/stats
|
|
7020
|
+
* @secure
|
|
7021
|
+
* @response `200` `AiAdminStats` Success
|
|
7022
|
+
*/
|
|
7023
|
+
getAiAdminStats: (
|
|
7024
|
+
query?: {
|
|
7025
|
+
/** @format date-time */
|
|
7026
|
+
startDate?: string;
|
|
7027
|
+
/** @format date-time */
|
|
7028
|
+
endDate?: string;
|
|
6287
7029
|
},
|
|
6288
|
-
|
|
6289
|
-
|
|
7030
|
+
params: RequestParams = {},
|
|
7031
|
+
) =>
|
|
7032
|
+
this.request<AiAdminStats, any>({
|
|
7033
|
+
path: `/api/ai/admin/stats`,
|
|
7034
|
+
method: "GET",
|
|
7035
|
+
query: query,
|
|
7036
|
+
secure: true,
|
|
7037
|
+
format: "json",
|
|
7038
|
+
...params,
|
|
7039
|
+
}),
|
|
6290
7040
|
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
7041
|
+
/**
|
|
7042
|
+
* No description
|
|
7043
|
+
*
|
|
7044
|
+
* @tags AiAdminPrompt
|
|
7045
|
+
* @name GetAiPrompts
|
|
7046
|
+
* @summary Get all prompts
|
|
7047
|
+
* @request GET:/api/ai/admin/prompts
|
|
7048
|
+
* @secure
|
|
7049
|
+
* @response `200` `(AiPrompt)[]` Success
|
|
7050
|
+
*/
|
|
7051
|
+
getAiPrompts: (params: RequestParams = {}) =>
|
|
7052
|
+
this.request<AiPrompt[], any>({
|
|
7053
|
+
path: `/api/ai/admin/prompts`,
|
|
7054
|
+
method: "GET",
|
|
7055
|
+
secure: true,
|
|
7056
|
+
format: "json",
|
|
7057
|
+
...params,
|
|
7058
|
+
}),
|
|
6298
7059
|
|
|
6299
|
-
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
|
|
7060
|
+
/**
|
|
7061
|
+
* No description
|
|
7062
|
+
*
|
|
7063
|
+
* @tags AiAdminPrompt
|
|
7064
|
+
* @name CreateAiPrompt
|
|
7065
|
+
* @summary Create custom prompt
|
|
7066
|
+
* @request POST:/api/ai/admin/prompts
|
|
7067
|
+
* @secure
|
|
7068
|
+
* @response `201` `AiPrompt` Created
|
|
7069
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
7070
|
+
*/
|
|
7071
|
+
createAiPrompt: (data: CreateAiPromptRequest, params: RequestParams = {}) =>
|
|
7072
|
+
this.request<AiPrompt, ProblemDetails>({
|
|
7073
|
+
path: `/api/ai/admin/prompts`,
|
|
7074
|
+
method: "POST",
|
|
7075
|
+
body: data,
|
|
7076
|
+
secure: true,
|
|
7077
|
+
type: ContentType.Json,
|
|
7078
|
+
format: "json",
|
|
7079
|
+
...params,
|
|
7080
|
+
}),
|
|
6307
7081
|
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
7082
|
+
/**
|
|
7083
|
+
* No description
|
|
7084
|
+
*
|
|
7085
|
+
* @tags AiAdminPrompt
|
|
7086
|
+
* @name GetAiPrompt
|
|
7087
|
+
* @summary Get prompt by ID
|
|
7088
|
+
* @request GET:/api/ai/admin/prompts/{id}
|
|
7089
|
+
* @secure
|
|
7090
|
+
* @response `200` `AiPrompt` Success
|
|
7091
|
+
* @response `404` `ProblemDetails` Not Found
|
|
7092
|
+
*/
|
|
7093
|
+
getAiPrompt: (id: string, params: RequestParams = {}) =>
|
|
7094
|
+
this.request<AiPrompt, ProblemDetails>({
|
|
7095
|
+
path: `/api/ai/admin/prompts/${id}`,
|
|
7096
|
+
method: "GET",
|
|
7097
|
+
secure: true,
|
|
7098
|
+
format: "json",
|
|
7099
|
+
...params,
|
|
7100
|
+
}),
|
|
6315
7101
|
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
7102
|
+
/**
|
|
7103
|
+
* No description
|
|
7104
|
+
*
|
|
7105
|
+
* @tags AiAdminPrompt
|
|
7106
|
+
* @name UpdateAiPrompt
|
|
7107
|
+
* @summary Update prompt
|
|
7108
|
+
* @request PUT:/api/ai/admin/prompts/{id}
|
|
7109
|
+
* @secure
|
|
7110
|
+
* @response `200` `AiPrompt` Success
|
|
7111
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
7112
|
+
* @response `404` `ProblemDetails` Not Found
|
|
7113
|
+
*/
|
|
7114
|
+
updateAiPrompt: (
|
|
7115
|
+
id: string,
|
|
7116
|
+
data: UpdateAiPromptRequest,
|
|
7117
|
+
params: RequestParams = {},
|
|
7118
|
+
) =>
|
|
7119
|
+
this.request<AiPrompt, ProblemDetails>({
|
|
7120
|
+
path: `/api/ai/admin/prompts/${id}`,
|
|
7121
|
+
method: "PUT",
|
|
7122
|
+
body: data,
|
|
7123
|
+
secure: true,
|
|
7124
|
+
type: ContentType.Json,
|
|
7125
|
+
format: "json",
|
|
7126
|
+
...params,
|
|
7127
|
+
}),
|
|
6319
7128
|
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
{
|
|
6334
|
-
|
|
6335
|
-
|
|
7129
|
+
/**
|
|
7130
|
+
* No description
|
|
7131
|
+
*
|
|
7132
|
+
* @tags AiAdminPrompt
|
|
7133
|
+
* @name DeleteAiPrompt
|
|
7134
|
+
* @summary Delete prompt
|
|
7135
|
+
* @request DELETE:/api/ai/admin/prompts/{id}
|
|
7136
|
+
* @secure
|
|
7137
|
+
* @response `204` `void` No Content
|
|
7138
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
7139
|
+
* @response `404` `ProblemDetails` Not Found
|
|
7140
|
+
*/
|
|
7141
|
+
deleteAiPrompt: (id: string, params: RequestParams = {}) =>
|
|
7142
|
+
this.request<void, ProblemDetails>({
|
|
7143
|
+
path: `/api/ai/admin/prompts/${id}`,
|
|
7144
|
+
method: "DELETE",
|
|
7145
|
+
secure: true,
|
|
7146
|
+
...params,
|
|
7147
|
+
}),
|
|
6336
7148
|
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
7149
|
+
/**
|
|
7150
|
+
* No description
|
|
7151
|
+
*
|
|
7152
|
+
* @tags AiAdminPrompt
|
|
7153
|
+
* @name ToggleAiPrompt
|
|
7154
|
+
* @summary Toggle prompt active/inactive
|
|
7155
|
+
* @request PATCH:/api/ai/admin/prompts/{id}/toggle
|
|
7156
|
+
* @secure
|
|
7157
|
+
* @response `200` `AiPrompt` Success
|
|
7158
|
+
* @response `404` `ProblemDetails` Not Found
|
|
7159
|
+
*/
|
|
7160
|
+
toggleAiPrompt: (id: string, params: RequestParams = {}) =>
|
|
7161
|
+
this.request<AiPrompt, ProblemDetails>({
|
|
7162
|
+
path: `/api/ai/admin/prompts/${id}/toggle`,
|
|
7163
|
+
method: "PATCH",
|
|
7164
|
+
secure: true,
|
|
7165
|
+
format: "json",
|
|
7166
|
+
...params,
|
|
7167
|
+
}),
|
|
6345
7168
|
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
|
|
6353
|
-
|
|
7169
|
+
/**
|
|
7170
|
+
* No description
|
|
7171
|
+
*
|
|
7172
|
+
* @tags AiAdminPrompt
|
|
7173
|
+
* @name GenerateAiSystemPrompt
|
|
7174
|
+
* @summary Generate a system prompt from description
|
|
7175
|
+
* @request POST:/api/ai/admin/prompts/generate
|
|
7176
|
+
* @secure
|
|
7177
|
+
* @response `200` `GenerateSystemPrompt` Success
|
|
7178
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
7179
|
+
*/
|
|
7180
|
+
generateAiSystemPrompt: (
|
|
7181
|
+
data: GenerateSystemPromptRequest,
|
|
7182
|
+
params: RequestParams = {},
|
|
7183
|
+
) =>
|
|
7184
|
+
this.request<GenerateSystemPrompt, ProblemDetails>({
|
|
7185
|
+
path: `/api/ai/admin/prompts/generate`,
|
|
7186
|
+
method: "POST",
|
|
7187
|
+
body: data,
|
|
7188
|
+
secure: true,
|
|
7189
|
+
type: ContentType.JsonPatch,
|
|
7190
|
+
format: "json",
|
|
7191
|
+
...params,
|
|
7192
|
+
}),
|
|
6354
7193
|
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
})
|
|
6366
|
-
|
|
6367
|
-
|
|
7194
|
+
/**
|
|
7195
|
+
* No description
|
|
7196
|
+
*
|
|
7197
|
+
* @tags AiAdminPrompt
|
|
7198
|
+
* @name GetSupportedModels
|
|
7199
|
+
* @summary Get supported LLM models
|
|
7200
|
+
* @request GET:/api/ai/admin/prompts/supported-models
|
|
7201
|
+
* @secure
|
|
7202
|
+
* @response `200` `(SupportedModel)[]` Success
|
|
7203
|
+
*/
|
|
7204
|
+
getSupportedModels: (params: RequestParams = {}) =>
|
|
7205
|
+
this.request<SupportedModel[], any>({
|
|
7206
|
+
path: `/api/ai/admin/prompts/supported-models`,
|
|
7207
|
+
method: "GET",
|
|
7208
|
+
secure: true,
|
|
7209
|
+
format: "json",
|
|
7210
|
+
...params,
|
|
7211
|
+
}),
|
|
6368
7212
|
|
|
6369
|
-
/**
|
|
6370
|
-
|
|
6371
|
-
|
|
6372
|
-
|
|
6373
|
-
|
|
6374
|
-
|
|
6375
|
-
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
postRoot = (params: RequestParams = {}) =>
|
|
6388
|
-
this.request<void, any>({
|
|
6389
|
-
path: `/`,
|
|
6390
|
-
method: "POST",
|
|
6391
|
-
secure: true,
|
|
6392
|
-
...params,
|
|
6393
|
-
});
|
|
7213
|
+
/**
|
|
7214
|
+
* No description
|
|
7215
|
+
*
|
|
7216
|
+
* @tags AiCanonicalField
|
|
7217
|
+
* @name GetAiCanonicalFields
|
|
7218
|
+
* @summary Get all canonical fields
|
|
7219
|
+
* @request GET:/api/ai/admin/fields
|
|
7220
|
+
* @secure
|
|
7221
|
+
* @response `200` `(AiCanonicalField)[]` Success
|
|
7222
|
+
*/
|
|
7223
|
+
getAiCanonicalFields: (params: RequestParams = {}) =>
|
|
7224
|
+
this.request<AiCanonicalField[], any>({
|
|
7225
|
+
path: `/api/ai/admin/fields`,
|
|
7226
|
+
method: "GET",
|
|
7227
|
+
secure: true,
|
|
7228
|
+
format: "json",
|
|
7229
|
+
...params,
|
|
7230
|
+
}),
|
|
6394
7231
|
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6400
|
-
|
|
6401
|
-
|
|
6402
|
-
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
|
|
7232
|
+
/**
|
|
7233
|
+
* No description
|
|
7234
|
+
*
|
|
7235
|
+
* @tags AiCanonicalField
|
|
7236
|
+
* @name CreateAiCanonicalField
|
|
7237
|
+
* @summary Create canonical field
|
|
7238
|
+
* @request POST:/api/ai/admin/fields
|
|
7239
|
+
* @secure
|
|
7240
|
+
* @response `201` `AiCanonicalField` Created
|
|
7241
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
7242
|
+
*/
|
|
7243
|
+
createAiCanonicalField: (
|
|
7244
|
+
data: CreateAiCanonicalFieldRequest,
|
|
7245
|
+
params: RequestParams = {},
|
|
7246
|
+
) =>
|
|
7247
|
+
this.request<AiCanonicalField, ProblemDetails>({
|
|
7248
|
+
path: `/api/ai/admin/fields`,
|
|
7249
|
+
method: "POST",
|
|
7250
|
+
body: data,
|
|
7251
|
+
secure: true,
|
|
7252
|
+
type: ContentType.Json,
|
|
7253
|
+
format: "json",
|
|
7254
|
+
...params,
|
|
7255
|
+
}),
|
|
6411
7256
|
|
|
6412
|
-
api = {
|
|
6413
7257
|
/**
|
|
6414
7258
|
* No description
|
|
6415
7259
|
*
|
|
6416
|
-
* @tags
|
|
6417
|
-
* @name
|
|
6418
|
-
* @summary Get
|
|
6419
|
-
* @request GET:/api/
|
|
7260
|
+
* @tags AiCanonicalField
|
|
7261
|
+
* @name GetAiCanonicalField
|
|
7262
|
+
* @summary Get canonical field by ID
|
|
7263
|
+
* @request GET:/api/ai/admin/fields/{id}
|
|
6420
7264
|
* @secure
|
|
6421
|
-
* @response `200` `
|
|
7265
|
+
* @response `200` `AiCanonicalField` Success
|
|
6422
7266
|
* @response `404` `ProblemDetails` Not Found
|
|
6423
7267
|
*/
|
|
6424
|
-
|
|
6425
|
-
this.request<
|
|
6426
|
-
path: `/api/
|
|
7268
|
+
getAiCanonicalField: (id: string, params: RequestParams = {}) =>
|
|
7269
|
+
this.request<AiCanonicalField, ProblemDetails>({
|
|
7270
|
+
path: `/api/ai/admin/fields/${id}`,
|
|
6427
7271
|
method: "GET",
|
|
6428
7272
|
secure: true,
|
|
6429
7273
|
format: "json",
|
|
@@ -6433,21 +7277,22 @@ export class Api<
|
|
|
6433
7277
|
/**
|
|
6434
7278
|
* No description
|
|
6435
7279
|
*
|
|
6436
|
-
* @tags
|
|
6437
|
-
* @name
|
|
6438
|
-
* @summary
|
|
6439
|
-
* @request PUT:/api/
|
|
7280
|
+
* @tags AiCanonicalField
|
|
7281
|
+
* @name UpdateAiCanonicalField
|
|
7282
|
+
* @summary Update canonical field
|
|
7283
|
+
* @request PUT:/api/ai/admin/fields/{id}
|
|
6440
7284
|
* @secure
|
|
6441
|
-
* @response `200` `
|
|
7285
|
+
* @response `200` `AiCanonicalField` Success
|
|
7286
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
6442
7287
|
* @response `404` `ProblemDetails` Not Found
|
|
6443
|
-
* @response `422` `ProblemDetails` Client Error
|
|
6444
7288
|
*/
|
|
6445
|
-
|
|
6446
|
-
|
|
7289
|
+
updateAiCanonicalField: (
|
|
7290
|
+
id: string,
|
|
7291
|
+
data: UpdateAiCanonicalFieldRequest,
|
|
6447
7292
|
params: RequestParams = {},
|
|
6448
7293
|
) =>
|
|
6449
|
-
this.request<
|
|
6450
|
-
path: `/api/
|
|
7294
|
+
this.request<AiCanonicalField, ProblemDetails>({
|
|
7295
|
+
path: `/api/ai/admin/fields/${id}`,
|
|
6451
7296
|
method: "PUT",
|
|
6452
7297
|
body: data,
|
|
6453
7298
|
secure: true,
|
|
@@ -6459,17 +7304,37 @@ export class Api<
|
|
|
6459
7304
|
/**
|
|
6460
7305
|
* No description
|
|
6461
7306
|
*
|
|
6462
|
-
* @tags
|
|
6463
|
-
* @name
|
|
6464
|
-
* @summary
|
|
6465
|
-
* @request
|
|
7307
|
+
* @tags AiCanonicalField
|
|
7308
|
+
* @name DeleteAiCanonicalField
|
|
7309
|
+
* @summary Delete canonical field
|
|
7310
|
+
* @request DELETE:/api/ai/admin/fields/{id}
|
|
6466
7311
|
* @secure
|
|
6467
|
-
* @response `
|
|
7312
|
+
* @response `204` `void` No Content
|
|
7313
|
+
* @response `404` `ProblemDetails` Not Found
|
|
6468
7314
|
*/
|
|
6469
|
-
|
|
6470
|
-
this.request<
|
|
6471
|
-
path: `/api/
|
|
6472
|
-
method: "
|
|
7315
|
+
deleteAiCanonicalField: (id: string, params: RequestParams = {}) =>
|
|
7316
|
+
this.request<void, ProblemDetails>({
|
|
7317
|
+
path: `/api/ai/admin/fields/${id}`,
|
|
7318
|
+
method: "DELETE",
|
|
7319
|
+
secure: true,
|
|
7320
|
+
...params,
|
|
7321
|
+
}),
|
|
7322
|
+
|
|
7323
|
+
/**
|
|
7324
|
+
* No description
|
|
7325
|
+
*
|
|
7326
|
+
* @tags AiCanonicalField
|
|
7327
|
+
* @name ToggleAiCanonicalField
|
|
7328
|
+
* @summary Toggle canonical field active/inactive
|
|
7329
|
+
* @request PATCH:/api/ai/admin/fields/{id}/toggle
|
|
7330
|
+
* @secure
|
|
7331
|
+
* @response `200` `AiCanonicalField` Success
|
|
7332
|
+
* @response `404` `ProblemDetails` Not Found
|
|
7333
|
+
*/
|
|
7334
|
+
toggleAiCanonicalField: (id: string, params: RequestParams = {}) =>
|
|
7335
|
+
this.request<AiCanonicalField, ProblemDetails>({
|
|
7336
|
+
path: `/api/ai/admin/fields/${id}/toggle`,
|
|
7337
|
+
method: "PATCH",
|
|
6473
7338
|
secure: true,
|
|
6474
7339
|
format: "json",
|
|
6475
7340
|
...params,
|
|
@@ -6478,24 +7343,52 @@ export class Api<
|
|
|
6478
7343
|
/**
|
|
6479
7344
|
* No description
|
|
6480
7345
|
*
|
|
6481
|
-
* @tags
|
|
6482
|
-
* @name
|
|
6483
|
-
* @summary
|
|
6484
|
-
* @request
|
|
7346
|
+
* @tags AiChat
|
|
7347
|
+
* @name AiChat
|
|
7348
|
+
* @summary Send AI chat message
|
|
7349
|
+
* @request POST:/api/ai/chat
|
|
6485
7350
|
* @secure
|
|
6486
|
-
* @response `200` `
|
|
6487
|
-
* @response `
|
|
7351
|
+
* @response `200` `AiChat` Success
|
|
7352
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
7353
|
+
* @response `401` `ProblemDetails` Unauthorized
|
|
6488
7354
|
*/
|
|
6489
|
-
|
|
6490
|
-
|
|
7355
|
+
aiChat: (data: AiChatRequest, params: RequestParams = {}) =>
|
|
7356
|
+
this.request<AiChat, ProblemDetails>({
|
|
7357
|
+
path: `/api/ai/chat`,
|
|
7358
|
+
method: "POST",
|
|
7359
|
+
body: data,
|
|
7360
|
+
secure: true,
|
|
7361
|
+
type: ContentType.JsonPatch,
|
|
7362
|
+
format: "json",
|
|
7363
|
+
...params,
|
|
7364
|
+
}),
|
|
7365
|
+
|
|
7366
|
+
/**
|
|
7367
|
+
* No description
|
|
7368
|
+
*
|
|
7369
|
+
* @tags AiConversation
|
|
7370
|
+
* @name GetAiConversations
|
|
7371
|
+
* @summary Get user conversations
|
|
7372
|
+
* @request GET:/api/ai/conversations
|
|
7373
|
+
* @secure
|
|
7374
|
+
* @response `200` `AiConversationListItemPaginated` Success
|
|
7375
|
+
*/
|
|
7376
|
+
getAiConversations: (
|
|
7377
|
+
query?: {
|
|
7378
|
+
/** @format int32 */
|
|
7379
|
+
pageSize?: number;
|
|
7380
|
+
/** @format int32 */
|
|
7381
|
+
pageNumber?: number;
|
|
7382
|
+
sortBy?: string;
|
|
7383
|
+
sortDirection?: string;
|
|
7384
|
+
},
|
|
6491
7385
|
params: RequestParams = {},
|
|
6492
7386
|
) =>
|
|
6493
|
-
this.request<
|
|
6494
|
-
path: `/api/
|
|
6495
|
-
method: "
|
|
6496
|
-
|
|
7387
|
+
this.request<AiConversationListItemPaginated, any>({
|
|
7388
|
+
path: `/api/ai/conversations`,
|
|
7389
|
+
method: "GET",
|
|
7390
|
+
query: query,
|
|
6497
7391
|
secure: true,
|
|
6498
|
-
type: ContentType.Json,
|
|
6499
7392
|
format: "json",
|
|
6500
7393
|
...params,
|
|
6501
7394
|
}),
|
|
@@ -6503,16 +7396,18 @@ export class Api<
|
|
|
6503
7396
|
/**
|
|
6504
7397
|
* No description
|
|
6505
7398
|
*
|
|
6506
|
-
* @tags
|
|
6507
|
-
* @name
|
|
6508
|
-
* @summary Get
|
|
6509
|
-
* @request GET:/api/
|
|
7399
|
+
* @tags AiConversation
|
|
7400
|
+
* @name GetAiConversation
|
|
7401
|
+
* @summary Get conversation with messages
|
|
7402
|
+
* @request GET:/api/ai/conversations/{id}
|
|
6510
7403
|
* @secure
|
|
6511
|
-
* @response `200` `
|
|
7404
|
+
* @response `200` `AiConversationDetail` Success
|
|
7405
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
7406
|
+
* @response `404` `ProblemDetails` Not Found
|
|
6512
7407
|
*/
|
|
6513
|
-
|
|
6514
|
-
this.request<
|
|
6515
|
-
path: `/api/
|
|
7408
|
+
getAiConversation: (id: string, params: RequestParams = {}) =>
|
|
7409
|
+
this.request<AiConversationDetail, ProblemDetails>({
|
|
7410
|
+
path: `/api/ai/conversations/${id}`,
|
|
6516
7411
|
method: "GET",
|
|
6517
7412
|
secure: true,
|
|
6518
7413
|
format: "json",
|
|
@@ -6522,17 +7417,59 @@ export class Api<
|
|
|
6522
7417
|
/**
|
|
6523
7418
|
* No description
|
|
6524
7419
|
*
|
|
6525
|
-
* @tags
|
|
6526
|
-
* @name
|
|
6527
|
-
* @summary
|
|
6528
|
-
* @request
|
|
7420
|
+
* @tags AiConversation
|
|
7421
|
+
* @name DeleteAiConversation
|
|
7422
|
+
* @summary Delete conversation
|
|
7423
|
+
* @request DELETE:/api/ai/conversations/{id}
|
|
6529
7424
|
* @secure
|
|
6530
|
-
* @response `
|
|
6531
|
-
* @response `
|
|
7425
|
+
* @response `204` `void` No Content
|
|
7426
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
7427
|
+
* @response `404` `ProblemDetails` Not Found
|
|
6532
7428
|
*/
|
|
6533
|
-
|
|
6534
|
-
this.request<
|
|
6535
|
-
path: `/api/
|
|
7429
|
+
deleteAiConversation: (id: string, params: RequestParams = {}) =>
|
|
7430
|
+
this.request<void, ProblemDetails>({
|
|
7431
|
+
path: `/api/ai/conversations/${id}`,
|
|
7432
|
+
method: "DELETE",
|
|
7433
|
+
secure: true,
|
|
7434
|
+
...params,
|
|
7435
|
+
}),
|
|
7436
|
+
|
|
7437
|
+
/**
|
|
7438
|
+
* No description
|
|
7439
|
+
*
|
|
7440
|
+
* @tags AiGuardrail
|
|
7441
|
+
* @name GetAiGuardrails
|
|
7442
|
+
* @summary Get all guardrails
|
|
7443
|
+
* @request GET:/api/ai/admin/guardrails
|
|
7444
|
+
* @secure
|
|
7445
|
+
* @response `200` `(AiGuardrail)[]` Success
|
|
7446
|
+
*/
|
|
7447
|
+
getAiGuardrails: (params: RequestParams = {}) =>
|
|
7448
|
+
this.request<AiGuardrail[], any>({
|
|
7449
|
+
path: `/api/ai/admin/guardrails`,
|
|
7450
|
+
method: "GET",
|
|
7451
|
+
secure: true,
|
|
7452
|
+
format: "json",
|
|
7453
|
+
...params,
|
|
7454
|
+
}),
|
|
7455
|
+
|
|
7456
|
+
/**
|
|
7457
|
+
* No description
|
|
7458
|
+
*
|
|
7459
|
+
* @tags AiGuardrail
|
|
7460
|
+
* @name CreateAiGuardrail
|
|
7461
|
+
* @summary Create custom guardrail
|
|
7462
|
+
* @request POST:/api/ai/admin/guardrails
|
|
7463
|
+
* @secure
|
|
7464
|
+
* @response `201` `AiGuardrail` Created
|
|
7465
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
7466
|
+
*/
|
|
7467
|
+
createAiGuardrail: (
|
|
7468
|
+
data: CreateAiGuardrailRequest,
|
|
7469
|
+
params: RequestParams = {},
|
|
7470
|
+
) =>
|
|
7471
|
+
this.request<AiGuardrail, ProblemDetails>({
|
|
7472
|
+
path: `/api/ai/admin/guardrails`,
|
|
6536
7473
|
method: "POST",
|
|
6537
7474
|
body: data,
|
|
6538
7475
|
secure: true,
|
|
@@ -6544,17 +7481,17 @@ export class Api<
|
|
|
6544
7481
|
/**
|
|
6545
7482
|
* No description
|
|
6546
7483
|
*
|
|
6547
|
-
* @tags
|
|
6548
|
-
* @name
|
|
6549
|
-
* @summary Get by ID
|
|
6550
|
-
* @request GET:/api/
|
|
7484
|
+
* @tags AiGuardrail
|
|
7485
|
+
* @name GetAiGuardrail
|
|
7486
|
+
* @summary Get guardrail by ID
|
|
7487
|
+
* @request GET:/api/ai/admin/guardrails/{id}
|
|
6551
7488
|
* @secure
|
|
6552
|
-
* @response `
|
|
6553
|
-
* @response `
|
|
7489
|
+
* @response `200` `AiGuardrail` Success
|
|
7490
|
+
* @response `404` `ProblemDetails` Not Found
|
|
6554
7491
|
*/
|
|
6555
|
-
|
|
6556
|
-
this.request<
|
|
6557
|
-
path: `/api/
|
|
7492
|
+
getAiGuardrail: (id: string, params: RequestParams = {}) =>
|
|
7493
|
+
this.request<AiGuardrail, ProblemDetails>({
|
|
7494
|
+
path: `/api/ai/admin/guardrails/${id}`,
|
|
6558
7495
|
method: "GET",
|
|
6559
7496
|
secure: true,
|
|
6560
7497
|
format: "json",
|
|
@@ -6564,26 +7501,89 @@ export class Api<
|
|
|
6564
7501
|
/**
|
|
6565
7502
|
* No description
|
|
6566
7503
|
*
|
|
6567
|
-
* @tags
|
|
6568
|
-
* @name
|
|
6569
|
-
* @summary
|
|
6570
|
-
* @request
|
|
7504
|
+
* @tags AiGuardrail
|
|
7505
|
+
* @name UpdateAiGuardrail
|
|
7506
|
+
* @summary Update guardrail
|
|
7507
|
+
* @request PUT:/api/ai/admin/guardrails/{id}
|
|
6571
7508
|
* @secure
|
|
6572
|
-
* @response `
|
|
7509
|
+
* @response `200` `AiGuardrail` Success
|
|
7510
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
6573
7511
|
* @response `404` `ProblemDetails` Not Found
|
|
6574
|
-
* @response `422` `ProblemDetails` Client Error
|
|
6575
7512
|
*/
|
|
6576
|
-
|
|
7513
|
+
updateAiGuardrail: (
|
|
6577
7514
|
id: string,
|
|
7515
|
+
data: UpdateAiGuardrailRequest,
|
|
7516
|
+
params: RequestParams = {},
|
|
7517
|
+
) =>
|
|
7518
|
+
this.request<AiGuardrail, ProblemDetails>({
|
|
7519
|
+
path: `/api/ai/admin/guardrails/${id}`,
|
|
7520
|
+
method: "PUT",
|
|
7521
|
+
body: data,
|
|
7522
|
+
secure: true,
|
|
7523
|
+
type: ContentType.Json,
|
|
7524
|
+
format: "json",
|
|
7525
|
+
...params,
|
|
7526
|
+
}),
|
|
7527
|
+
|
|
7528
|
+
/**
|
|
7529
|
+
* No description
|
|
7530
|
+
*
|
|
7531
|
+
* @tags AiGuardrail
|
|
7532
|
+
* @name DeleteAiGuardrail
|
|
7533
|
+
* @summary Delete guardrail
|
|
7534
|
+
* @request DELETE:/api/ai/admin/guardrails/{id}
|
|
7535
|
+
* @secure
|
|
7536
|
+
* @response `204` `void` No Content
|
|
7537
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
7538
|
+
* @response `404` `ProblemDetails` Not Found
|
|
7539
|
+
*/
|
|
7540
|
+
deleteAiGuardrail: (id: string, params: RequestParams = {}) =>
|
|
7541
|
+
this.request<void, ProblemDetails>({
|
|
7542
|
+
path: `/api/ai/admin/guardrails/${id}`,
|
|
7543
|
+
method: "DELETE",
|
|
7544
|
+
secure: true,
|
|
7545
|
+
...params,
|
|
7546
|
+
}),
|
|
7547
|
+
|
|
7548
|
+
/**
|
|
7549
|
+
* No description
|
|
7550
|
+
*
|
|
7551
|
+
* @tags AiGuardrail
|
|
7552
|
+
* @name ToggleAiGuardrail
|
|
7553
|
+
* @summary Toggle guardrail enabled/disabled
|
|
7554
|
+
* @request PATCH:/api/ai/admin/guardrails/{id}/toggle
|
|
7555
|
+
* @secure
|
|
7556
|
+
* @response `200` `AiGuardrail` Success
|
|
7557
|
+
* @response `404` `ProblemDetails` Not Found
|
|
7558
|
+
*/
|
|
7559
|
+
toggleAiGuardrail: (id: string, params: RequestParams = {}) =>
|
|
7560
|
+
this.request<AiGuardrail, ProblemDetails>({
|
|
7561
|
+
path: `/api/ai/admin/guardrails/${id}/toggle`,
|
|
7562
|
+
method: "PATCH",
|
|
7563
|
+
secure: true,
|
|
7564
|
+
format: "json",
|
|
7565
|
+
...params,
|
|
7566
|
+
}),
|
|
7567
|
+
|
|
7568
|
+
/**
|
|
7569
|
+
* No description
|
|
7570
|
+
*
|
|
7571
|
+
* @tags AiPrompt
|
|
7572
|
+
* @name GetAvailablePrompts
|
|
7573
|
+
* @summary Get available prompts for current user
|
|
7574
|
+
* @request GET:/api/ai/prompts
|
|
7575
|
+
* @secure
|
|
7576
|
+
* @response `200` `(AiPromptSummary)[]` Success
|
|
7577
|
+
*/
|
|
7578
|
+
getAvailablePrompts: (
|
|
6578
7579
|
query?: {
|
|
6579
|
-
|
|
6580
|
-
hardDelete?: boolean;
|
|
7580
|
+
documentType?: string;
|
|
6581
7581
|
},
|
|
6582
7582
|
params: RequestParams = {},
|
|
6583
7583
|
) =>
|
|
6584
|
-
this.request<
|
|
6585
|
-
path: `/api/
|
|
6586
|
-
method: "
|
|
7584
|
+
this.request<AiPromptSummary[], any>({
|
|
7585
|
+
path: `/api/ai/prompts`,
|
|
7586
|
+
method: "GET",
|
|
6587
7587
|
query: query,
|
|
6588
7588
|
secure: true,
|
|
6589
7589
|
format: "json",
|
|
@@ -6593,26 +7593,52 @@ export class Api<
|
|
|
6593
7593
|
/**
|
|
6594
7594
|
* No description
|
|
6595
7595
|
*
|
|
6596
|
-
* @tags
|
|
6597
|
-
* @name
|
|
6598
|
-
* @summary
|
|
6599
|
-
* @request
|
|
7596
|
+
* @tags AuditLog
|
|
7597
|
+
* @name SearchAuditLogs
|
|
7598
|
+
* @summary Search
|
|
7599
|
+
* @request POST:/api/audit-logs/search
|
|
6600
7600
|
* @secure
|
|
6601
|
-
* @response `200` `
|
|
6602
|
-
* @response `404` `ProblemDetails` Not Found
|
|
6603
|
-
* @response `422` `ProblemDetails` Client Error
|
|
7601
|
+
* @response `200` `AuditLogEntryPaginated` Success
|
|
6604
7602
|
*/
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
7603
|
+
searchAuditLogs: (
|
|
7604
|
+
data: AuditLogSearchCriteria,
|
|
7605
|
+
query?: {
|
|
7606
|
+
/** @format int32 */
|
|
7607
|
+
pageSize?: number;
|
|
7608
|
+
/** @format int32 */
|
|
7609
|
+
pageNumber?: number;
|
|
7610
|
+
sortBy?: string;
|
|
7611
|
+
sortDirection?: string;
|
|
7612
|
+
},
|
|
6608
7613
|
params: RequestParams = {},
|
|
6609
7614
|
) =>
|
|
6610
|
-
this.request<
|
|
6611
|
-
path: `/api/
|
|
6612
|
-
method: "
|
|
7615
|
+
this.request<AuditLogEntryPaginated, any>({
|
|
7616
|
+
path: `/api/audit-logs/search`,
|
|
7617
|
+
method: "POST",
|
|
7618
|
+
query: query,
|
|
6613
7619
|
body: data,
|
|
6614
7620
|
secure: true,
|
|
6615
|
-
type: ContentType.
|
|
7621
|
+
type: ContentType.JsonPatch,
|
|
7622
|
+
format: "json",
|
|
7623
|
+
...params,
|
|
7624
|
+
}),
|
|
7625
|
+
|
|
7626
|
+
/**
|
|
7627
|
+
* No description
|
|
7628
|
+
*
|
|
7629
|
+
* @tags AuditLog
|
|
7630
|
+
* @name GetAuditLogById
|
|
7631
|
+
* @summary Get by ID
|
|
7632
|
+
* @request GET:/api/audit-logs/{id}
|
|
7633
|
+
* @secure
|
|
7634
|
+
* @response `200` `AuditLogEntry` Success
|
|
7635
|
+
* @response `404` `ProblemDetails` Not Found
|
|
7636
|
+
*/
|
|
7637
|
+
getAuditLogById: (id: string, params: RequestParams = {}) =>
|
|
7638
|
+
this.request<AuditLogEntry, ProblemDetails>({
|
|
7639
|
+
path: `/api/audit-logs/${id}`,
|
|
7640
|
+
method: "GET",
|
|
7641
|
+
secure: true,
|
|
6616
7642
|
format: "json",
|
|
6617
7643
|
...params,
|
|
6618
7644
|
}),
|
|
@@ -10627,6 +11653,25 @@ export class Api<
|
|
|
10627
11653
|
...params,
|
|
10628
11654
|
}),
|
|
10629
11655
|
|
|
11656
|
+
/**
|
|
11657
|
+
* No description
|
|
11658
|
+
*
|
|
11659
|
+
* @tags Loans
|
|
11660
|
+
* @name SyncLoanToLos
|
|
11661
|
+
* @summary Sync loan to LOS
|
|
11662
|
+
* @request POST:/api/loans/{loanId}/sync-to-los
|
|
11663
|
+
* @secure
|
|
11664
|
+
* @response `202` `void` Accepted
|
|
11665
|
+
* @response `404` `ProblemDetails` Not Found
|
|
11666
|
+
*/
|
|
11667
|
+
syncLoanToLos: (loanId: string, params: RequestParams = {}) =>
|
|
11668
|
+
this.request<void, ProblemDetails>({
|
|
11669
|
+
path: `/api/loans/${loanId}/sync-to-los`,
|
|
11670
|
+
method: "POST",
|
|
11671
|
+
secure: true,
|
|
11672
|
+
...params,
|
|
11673
|
+
}),
|
|
11674
|
+
|
|
10630
11675
|
/**
|
|
10631
11676
|
* No description
|
|
10632
11677
|
*
|
|
@@ -11670,7 +12715,16 @@ export class Api<
|
|
|
11670
12715
|
query?: {
|
|
11671
12716
|
showAll?: boolean;
|
|
11672
12717
|
/** @default "Realtor" */
|
|
11673
|
-
role?:
|
|
12718
|
+
role?:
|
|
12719
|
+
| "Borrower"
|
|
12720
|
+
| "LoanOfficer"
|
|
12721
|
+
| "Admin"
|
|
12722
|
+
| "SuperAdmin"
|
|
12723
|
+
| "Realtor"
|
|
12724
|
+
| "SettlementAgent"
|
|
12725
|
+
| "LoanProcessor"
|
|
12726
|
+
| "LoanOfficerAssistant"
|
|
12727
|
+
| "SystemAdmin";
|
|
11674
12728
|
/** @format int32 */
|
|
11675
12729
|
pageSize?: number;
|
|
11676
12730
|
/** @format int32 */
|
|
@@ -12006,7 +13060,7 @@ export class Api<
|
|
|
12006
13060
|
* @response `404` `ProblemDetails` Not Found
|
|
12007
13061
|
*/
|
|
12008
13062
|
getSamlMetadata: (
|
|
12009
|
-
sSoIntegration:
|
|
13063
|
+
sSoIntegration: "ConsumerConnect" | "TheBigPOS" | "POSF",
|
|
12010
13064
|
ssoIntegration: string,
|
|
12011
13065
|
params: RequestParams = {},
|
|
12012
13066
|
) =>
|
|
@@ -12028,7 +13082,7 @@ export class Api<
|
|
|
12028
13082
|
* @response `200` `File` Success
|
|
12029
13083
|
*/
|
|
12030
13084
|
createOrReplaceSamlMetadata: (
|
|
12031
|
-
sSoIntegration:
|
|
13085
|
+
sSoIntegration: "ConsumerConnect" | "TheBigPOS" | "POSF",
|
|
12032
13086
|
ssoIntegration: string,
|
|
12033
13087
|
params: RequestParams = {},
|
|
12034
13088
|
) =>
|