@matech/thebigpos-sdk 2.44.4-rc0 → 2.45.0-rc10
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 +1882 -502
- package/dist/index.js +709 -52
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +2506 -196
- package/.claude/settings.local.json +0 -52
package/src/index.ts
CHANGED
|
@@ -211,7 +211,8 @@ export type LoanLogType =
|
|
|
211
211
|
| "SensitiveDataPurge"
|
|
212
212
|
| "ClosingDateUpdated"
|
|
213
213
|
| "ConsumerConnectAssociation"
|
|
214
|
-
| "TaskReminderSent"
|
|
214
|
+
| "TaskReminderSent"
|
|
215
|
+
| "DocumentClassified";
|
|
215
216
|
|
|
216
217
|
export type LoanLienPosition = "First" | "Subordinate";
|
|
217
218
|
|
|
@@ -229,7 +230,8 @@ export type LoanLanguagePreference =
|
|
|
229
230
|
| "Spanish"
|
|
230
231
|
| "Tagalog"
|
|
231
232
|
| "Vietnamese"
|
|
232
|
-
| "Other"
|
|
233
|
+
| "Other"
|
|
234
|
+
| "DoNotWishToRespond";
|
|
233
235
|
|
|
234
236
|
export type LoanImportStatus =
|
|
235
237
|
| "WaitingProcess"
|
|
@@ -262,12 +264,74 @@ export type LoanGiftSource =
|
|
|
262
264
|
| "StateAgency"
|
|
263
265
|
| "UnmarriedPartner"
|
|
264
266
|
| "Lender"
|
|
265
|
-
| "Other"
|
|
267
|
+
| "Other"
|
|
268
|
+
| "Institutional"
|
|
269
|
+
| "Borrower";
|
|
266
270
|
|
|
267
271
|
export type LoanGiftAssetType = "Cash" | "Asset" | "Equity";
|
|
268
272
|
|
|
269
273
|
export type LoanGenderType = "Male" | "Female";
|
|
270
274
|
|
|
275
|
+
export type LoanDocumentType =
|
|
276
|
+
| "W2"
|
|
277
|
+
| "Paystub"
|
|
278
|
+
| "Form1099"
|
|
279
|
+
| "Form1099Int"
|
|
280
|
+
| "Form1099Misc"
|
|
281
|
+
| "Form1099Nec"
|
|
282
|
+
| "Form1099R"
|
|
283
|
+
| "Form1099G"
|
|
284
|
+
| "Form1099Div"
|
|
285
|
+
| "Form1099Ssa"
|
|
286
|
+
| "FederalTaxReturn1040"
|
|
287
|
+
| "TaxReturnScheduleC"
|
|
288
|
+
| "TaxReturnScheduleD"
|
|
289
|
+
| "TaxReturnScheduleE"
|
|
290
|
+
| "Form1065"
|
|
291
|
+
| "Form1120"
|
|
292
|
+
| "Form1120S"
|
|
293
|
+
| "ProfitAndLossStatement"
|
|
294
|
+
| "VerificationOfEmployment"
|
|
295
|
+
| "BankStatement"
|
|
296
|
+
| "InvestmentStatement"
|
|
297
|
+
| "CreditCardStatement"
|
|
298
|
+
| "MortgageStatement"
|
|
299
|
+
| "PayoffStatement"
|
|
300
|
+
| "HoaDocuments"
|
|
301
|
+
| "UtilityBill"
|
|
302
|
+
| "IdentityDocument"
|
|
303
|
+
| "DemographicAddendum"
|
|
304
|
+
| "Ssa89"
|
|
305
|
+
| "Vba260551"
|
|
306
|
+
| "Hud92900B"
|
|
307
|
+
| "Check"
|
|
308
|
+
| "Invoice"
|
|
309
|
+
| "Receipt"
|
|
310
|
+
| "LoanApplication1003"
|
|
311
|
+
| "UnderwritingTransmittal1008"
|
|
312
|
+
| "Other"
|
|
313
|
+
| "SalesContract"
|
|
314
|
+
| "TitleCommitment"
|
|
315
|
+
| "DriversLicense"
|
|
316
|
+
| "VerificationOfIncome"
|
|
317
|
+
| "VerificationOfAssets"
|
|
318
|
+
| "FloodCertificate"
|
|
319
|
+
| "FraudReport"
|
|
320
|
+
| "AddendumToSalesContract"
|
|
321
|
+
| "GiftLetter"
|
|
322
|
+
| "CpaLetter"
|
|
323
|
+
| "TaxBill"
|
|
324
|
+
| "CondoQuestionnaire"
|
|
325
|
+
| "CondoBudget"
|
|
326
|
+
| "CondoBylaws"
|
|
327
|
+
| "RentalAgreements"
|
|
328
|
+
| "Lease"
|
|
329
|
+
| "HazardInsurance"
|
|
330
|
+
| "VaCertificateOfEligibility"
|
|
331
|
+
| "Appraisal"
|
|
332
|
+
| "CreditReport"
|
|
333
|
+
| "CondoMasterPolicy";
|
|
334
|
+
|
|
271
335
|
export type LoanDocumentFolderPermissionLevel =
|
|
272
336
|
| "None"
|
|
273
337
|
| "Read"
|
|
@@ -381,6 +445,8 @@ export type ConsentSource = "TheBigPOS" | "ConsumerConnect";
|
|
|
381
445
|
|
|
382
446
|
export type ConsentLosSyncStatus = "NotStarted" | "Failed" | "Success";
|
|
383
447
|
|
|
448
|
+
export type ClassificationSource = "Textract" | "Llm" | "Manual";
|
|
449
|
+
|
|
384
450
|
export type BranchType = "Mortgage" | "RealEstate";
|
|
385
451
|
|
|
386
452
|
export type BorrowerType = "Borrower" | "CoBorrower" | "Unknown";
|
|
@@ -400,6 +466,116 @@ export type AuditChangeType =
|
|
|
400
466
|
| "Deactivated"
|
|
401
467
|
| "Reactivated";
|
|
402
468
|
|
|
469
|
+
export type AiUrlSourceScope = "FullDomain" | "SpecificPath";
|
|
470
|
+
|
|
471
|
+
export type AiUrlSourceCategory =
|
|
472
|
+
| "Regulatory"
|
|
473
|
+
| "Guidelines"
|
|
474
|
+
| "MarketData"
|
|
475
|
+
| "Custom";
|
|
476
|
+
|
|
477
|
+
export type AiStructuredDataType =
|
|
478
|
+
| "Table"
|
|
479
|
+
| "DocumentAnalysis"
|
|
480
|
+
| "DocumentList"
|
|
481
|
+
| "GeneratedDocument";
|
|
482
|
+
|
|
483
|
+
export type AiQueryTemplateName =
|
|
484
|
+
| "PipelineSummary"
|
|
485
|
+
| "LoanDetail"
|
|
486
|
+
| "LoansClosing"
|
|
487
|
+
| "StaleLoans"
|
|
488
|
+
| "LoansByType"
|
|
489
|
+
| "LoansByOfficer"
|
|
490
|
+
| "AverageLoanAmount"
|
|
491
|
+
| "LockedVsUnlocked"
|
|
492
|
+
| "LoansByPurpose"
|
|
493
|
+
| "LoansByPropertyState"
|
|
494
|
+
| "LoansByRate"
|
|
495
|
+
| "DtiLtvRisk"
|
|
496
|
+
| "DisclosureTracking"
|
|
497
|
+
| "NewLoans"
|
|
498
|
+
| "ExpiringLocks"
|
|
499
|
+
| "ClosedLoans"
|
|
500
|
+
| "VerificationGaps"
|
|
501
|
+
| "CreditScoreDistribution"
|
|
502
|
+
| "OccupancyMix"
|
|
503
|
+
| "PropertyTypeMix"
|
|
504
|
+
| "FirstTimeHomebuyer"
|
|
505
|
+
| "SelfEmployed"
|
|
506
|
+
| "ReferralSourcePerformance"
|
|
507
|
+
| "AmortizationMix"
|
|
508
|
+
| "TimeToClose"
|
|
509
|
+
| "ConversionFunnel"
|
|
510
|
+
| "MonthlyProduction"
|
|
511
|
+
| "PaymentAffordability"
|
|
512
|
+
| "DownPaymentCashToClose"
|
|
513
|
+
| "ApprovalExpirations"
|
|
514
|
+
| "ApplicationCompleteness"
|
|
515
|
+
| "LosSyncHealth"
|
|
516
|
+
| "DeclarationsRisk"
|
|
517
|
+
| "MilitaryEligibility"
|
|
518
|
+
| "OutstandingTasks"
|
|
519
|
+
| "ConsentTracking";
|
|
520
|
+
|
|
521
|
+
export type AiPromptCategory =
|
|
522
|
+
| "DocumentAnalysis"
|
|
523
|
+
| "DataQuery"
|
|
524
|
+
| "General"
|
|
525
|
+
| "Action";
|
|
526
|
+
|
|
527
|
+
export type AiOutputType = "Text" | "Document";
|
|
528
|
+
|
|
529
|
+
export type AiIntent =
|
|
530
|
+
| "Greeting"
|
|
531
|
+
| "Invalid"
|
|
532
|
+
| "Relevant"
|
|
533
|
+
| "LoanSpecific"
|
|
534
|
+
| "DocumentList"
|
|
535
|
+
| "GeneralKnowledge"
|
|
536
|
+
| "Blocked"
|
|
537
|
+
| "Action"
|
|
538
|
+
| "ConversationMeta"
|
|
539
|
+
| "Capabilities"
|
|
540
|
+
| "UsageReport";
|
|
541
|
+
|
|
542
|
+
export type AiGuardrailCategory =
|
|
543
|
+
| "ContentSafety"
|
|
544
|
+
| "PromptInjection"
|
|
545
|
+
| "Privacy"
|
|
546
|
+
| "Legal";
|
|
547
|
+
|
|
548
|
+
export type AiDisplayHint =
|
|
549
|
+
| "Table"
|
|
550
|
+
| "SummaryCards"
|
|
551
|
+
| "RankedList"
|
|
552
|
+
| "Comparison"
|
|
553
|
+
| "ExecutiveBrief";
|
|
554
|
+
|
|
555
|
+
export type AiAuditEventType =
|
|
556
|
+
| "Error"
|
|
557
|
+
| "GuardrailBlockedPre"
|
|
558
|
+
| "GuardrailPassedPre"
|
|
559
|
+
| "IntentClassified"
|
|
560
|
+
| "LoanResolvedFromMessage"
|
|
561
|
+
| "DocumentNotFound"
|
|
562
|
+
| "GuardrailBlockedPost"
|
|
563
|
+
| "GuardrailPassedPost"
|
|
564
|
+
| "DocumentAnalyzed"
|
|
565
|
+
| "DocumentList"
|
|
566
|
+
| "DocumentResolutionAmbiguous"
|
|
567
|
+
| "ResponseGenerated"
|
|
568
|
+
| "ParametersExtracted"
|
|
569
|
+
| "QueryExecuted"
|
|
570
|
+
| "LoanContextNotFound"
|
|
571
|
+
| "LoanContextLoaded"
|
|
572
|
+
| "GuardrailBlockedBedrock"
|
|
573
|
+
| "PromptMatched"
|
|
574
|
+
| "QueryCondensed"
|
|
575
|
+
| "IntentParseFailed"
|
|
576
|
+
| "LoanSearchTermDiscarded"
|
|
577
|
+
| "CanonicalFieldsSelected";
|
|
578
|
+
|
|
403
579
|
export type AddressFamily =
|
|
404
580
|
| "Unspecified"
|
|
405
581
|
| "Unix"
|
|
@@ -679,6 +855,415 @@ export interface AffordabilityCalculatorRequest {
|
|
|
679
855
|
annualInsurance: number;
|
|
680
856
|
}
|
|
681
857
|
|
|
858
|
+
export interface AiAccountSettings {
|
|
859
|
+
bedrockModelId: string;
|
|
860
|
+
isUsingAppDefault: boolean;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
export interface AiAccountSettingsRequest {
|
|
864
|
+
bedrockModelId?: string | null;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
export interface AiAccountUsageOverview {
|
|
868
|
+
/** @format uuid */
|
|
869
|
+
accountId: string;
|
|
870
|
+
accountName: string;
|
|
871
|
+
/** @format int32 */
|
|
872
|
+
limit: number;
|
|
873
|
+
/** @format int64 */
|
|
874
|
+
used: number;
|
|
875
|
+
/** @format int64 */
|
|
876
|
+
remaining: number;
|
|
877
|
+
/** @format double */
|
|
878
|
+
percentUsed: number;
|
|
879
|
+
limitReached: boolean;
|
|
880
|
+
/** @format date-time */
|
|
881
|
+
windowStart: string;
|
|
882
|
+
/** @format date-time */
|
|
883
|
+
windowEnd: string;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
export interface AiAccountUsageOverviewPaginated {
|
|
887
|
+
rows: AiAccountUsageOverview[];
|
|
888
|
+
pagination: Pagination;
|
|
889
|
+
/** @format int64 */
|
|
890
|
+
count: number;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
export interface AiAdminSettings {
|
|
894
|
+
bedrockModelId: string;
|
|
895
|
+
/** @format int32 */
|
|
896
|
+
maxTokens: number;
|
|
897
|
+
/** @format double */
|
|
898
|
+
temperature: number;
|
|
899
|
+
/** @format int32 */
|
|
900
|
+
conversationContextTurns: number;
|
|
901
|
+
/** @format int32 */
|
|
902
|
+
requestTimeoutSeconds: number;
|
|
903
|
+
/** @format int32 */
|
|
904
|
+
defaultTokenLimit: number;
|
|
905
|
+
bedrockRegion: string;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
export interface AiAdminSettingsRequest {
|
|
909
|
+
bedrockModelId?: string | null;
|
|
910
|
+
/** @format int32 */
|
|
911
|
+
maxTokens?: number | null;
|
|
912
|
+
/** @format double */
|
|
913
|
+
temperature?: number | null;
|
|
914
|
+
/** @format int32 */
|
|
915
|
+
conversationContextTurns?: number | null;
|
|
916
|
+
/** @format int32 */
|
|
917
|
+
requestTimeoutSeconds?: number | null;
|
|
918
|
+
/** @format int32 */
|
|
919
|
+
defaultTokenLimit?: number | null;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
export interface AiAdminStats {
|
|
923
|
+
/** @format int32 */
|
|
924
|
+
totalRequests: number;
|
|
925
|
+
/** @format int32 */
|
|
926
|
+
blockedRequests: number;
|
|
927
|
+
/** @format double */
|
|
928
|
+
averageResponseTimeMs: number;
|
|
929
|
+
/** @format int32 */
|
|
930
|
+
totalInputTokens: number;
|
|
931
|
+
/** @format int32 */
|
|
932
|
+
totalOutputTokens: number;
|
|
933
|
+
/** @format int32 */
|
|
934
|
+
totalTokens: number;
|
|
935
|
+
intentDistribution: Record<string, number>;
|
|
936
|
+
topQueryTemplates: Record<string, number>;
|
|
937
|
+
period: string;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
export interface AiAuditLog {
|
|
941
|
+
/** @format uuid */
|
|
942
|
+
id: string;
|
|
943
|
+
/** @format uuid */
|
|
944
|
+
requestId: string;
|
|
945
|
+
/** @format uuid */
|
|
946
|
+
userId: string;
|
|
947
|
+
/** @format uuid */
|
|
948
|
+
conversationId?: string | null;
|
|
949
|
+
/** @format uuid */
|
|
950
|
+
messageId?: string | null;
|
|
951
|
+
eventType: AiAuditLogEventTypeEnum;
|
|
952
|
+
modelId?: string | null;
|
|
953
|
+
/** @format int32 */
|
|
954
|
+
inputTokens?: number | null;
|
|
955
|
+
/** @format int32 */
|
|
956
|
+
outputTokens?: number | null;
|
|
957
|
+
/** @format int32 */
|
|
958
|
+
latencyMs?: number | null;
|
|
959
|
+
bedrockRequestId?: string | null;
|
|
960
|
+
guardrailName?: string | null;
|
|
961
|
+
guardrailCategory?: string | null;
|
|
962
|
+
rawRequest?: string | null;
|
|
963
|
+
rawResponse?: string | null;
|
|
964
|
+
details?: any | null;
|
|
965
|
+
/** @format date-time */
|
|
966
|
+
createdAt: string;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
export interface AiAuditLogPaginated {
|
|
970
|
+
rows: AiAuditLog[];
|
|
971
|
+
pagination: Pagination;
|
|
972
|
+
/** @format int64 */
|
|
973
|
+
count: number;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
export interface AiCanonicalField {
|
|
977
|
+
/** @format uuid */
|
|
978
|
+
id: string;
|
|
979
|
+
canonicalName: string;
|
|
980
|
+
displayName: string;
|
|
981
|
+
description: string;
|
|
982
|
+
allowedRoles: string[];
|
|
983
|
+
efPath?: string | null;
|
|
984
|
+
isPii: boolean;
|
|
985
|
+
isActive: boolean;
|
|
986
|
+
dataSource: string;
|
|
987
|
+
isDefault: boolean;
|
|
988
|
+
category?: string | null;
|
|
989
|
+
jsonPropertyName?: string | null;
|
|
990
|
+
textractKey?: string | null;
|
|
991
|
+
textractKeyAliases: string[];
|
|
992
|
+
hasAccountOverride: boolean;
|
|
993
|
+
/** @format date-time */
|
|
994
|
+
createdAt: string;
|
|
995
|
+
/** @format date-time */
|
|
996
|
+
updatedAt?: string | null;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
export interface AiChat {
|
|
1000
|
+
/** @format uuid */
|
|
1001
|
+
conversationId: string;
|
|
1002
|
+
/** @format uuid */
|
|
1003
|
+
messageId: string;
|
|
1004
|
+
response: AiChatBody;
|
|
1005
|
+
metadata: AiChatMetadata;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
export interface AiChatBody {
|
|
1009
|
+
text: string;
|
|
1010
|
+
data?: AiChatStructuredData | null;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
export interface AiChatMessage {
|
|
1014
|
+
/** @format uuid */
|
|
1015
|
+
id: string;
|
|
1016
|
+
userMessage: string;
|
|
1017
|
+
assistantResponse: string;
|
|
1018
|
+
intent?: AiIntent | null;
|
|
1019
|
+
fieldsAccessed?: string[] | null;
|
|
1020
|
+
data?: AiChatStructuredData | null;
|
|
1021
|
+
/** @format date-time */
|
|
1022
|
+
createdAt: string;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
export interface AiChatMessagePaginated {
|
|
1026
|
+
rows: AiChatMessage[];
|
|
1027
|
+
pagination: Pagination;
|
|
1028
|
+
/** @format int64 */
|
|
1029
|
+
count: number;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
export interface AiChatMetadata {
|
|
1033
|
+
intent: AiChatMetadataIntentEnum;
|
|
1034
|
+
fieldsAccessed: string[];
|
|
1035
|
+
/** @format int64 */
|
|
1036
|
+
queryTimeMs: number;
|
|
1037
|
+
/** @format int64 */
|
|
1038
|
+
llmTimeMs: number;
|
|
1039
|
+
/** @format int32 */
|
|
1040
|
+
inputTokens: number;
|
|
1041
|
+
/** @format int32 */
|
|
1042
|
+
outputTokens: number;
|
|
1043
|
+
modelId?: string | null;
|
|
1044
|
+
wasBlocked: boolean;
|
|
1045
|
+
blockedReason?: string | null;
|
|
1046
|
+
tokenBudget?: AiTokenBudgetStatus | null;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
export interface AiChatRequest {
|
|
1050
|
+
message: string;
|
|
1051
|
+
/** @format uuid */
|
|
1052
|
+
conversationId?: string | null;
|
|
1053
|
+
/** @format uuid */
|
|
1054
|
+
loanId?: string | null;
|
|
1055
|
+
documentIds?: string[] | null;
|
|
1056
|
+
/** @format uuid */
|
|
1057
|
+
promptId?: string | null;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
export interface AiChatStructuredData {
|
|
1061
|
+
type: AiChatStructuredDataTypeEnum;
|
|
1062
|
+
displayHint?: AiDisplayHint | null;
|
|
1063
|
+
detectedDocumentType?: string | null;
|
|
1064
|
+
columns: string[];
|
|
1065
|
+
rows: string[][];
|
|
1066
|
+
/** @format uuid */
|
|
1067
|
+
generatedDocumentId?: string | null;
|
|
1068
|
+
generatedFileName?: string | null;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
export interface AiConversationAuditSummary {
|
|
1072
|
+
/** @format uuid */
|
|
1073
|
+
conversationId: string;
|
|
1074
|
+
/** @format uuid */
|
|
1075
|
+
userId: string;
|
|
1076
|
+
userName?: string | null;
|
|
1077
|
+
userRole?: string | null;
|
|
1078
|
+
name?: string | null;
|
|
1079
|
+
/** @format int32 */
|
|
1080
|
+
turnCount: number;
|
|
1081
|
+
/** @format int32 */
|
|
1082
|
+
completedCount: number;
|
|
1083
|
+
/** @format int32 */
|
|
1084
|
+
blockedCount: number;
|
|
1085
|
+
/** @format int32 */
|
|
1086
|
+
errorCount: number;
|
|
1087
|
+
/** @format int32 */
|
|
1088
|
+
totalTokens: number;
|
|
1089
|
+
/** @format date-time */
|
|
1090
|
+
lastActivityAt: string;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
export interface AiConversationAuditSummaryPaginated {
|
|
1094
|
+
rows: AiConversationAuditSummary[];
|
|
1095
|
+
pagination: Pagination;
|
|
1096
|
+
/** @format int64 */
|
|
1097
|
+
count: number;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
export interface AiConversationDetail {
|
|
1101
|
+
/** @format uuid */
|
|
1102
|
+
id: string;
|
|
1103
|
+
name?: string | null;
|
|
1104
|
+
isPinned: boolean;
|
|
1105
|
+
/** @format date-time */
|
|
1106
|
+
createdAt: string;
|
|
1107
|
+
/** @format date-time */
|
|
1108
|
+
updatedAt?: string | null;
|
|
1109
|
+
/** @format int32 */
|
|
1110
|
+
messageCount: number;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
export interface AiConversationListItem {
|
|
1114
|
+
/** @format uuid */
|
|
1115
|
+
id: string;
|
|
1116
|
+
/** @format uuid */
|
|
1117
|
+
userId: string;
|
|
1118
|
+
name?: string | null;
|
|
1119
|
+
preview: string;
|
|
1120
|
+
/** @format int32 */
|
|
1121
|
+
messageCount: number;
|
|
1122
|
+
isPinned: boolean;
|
|
1123
|
+
/** @format date-time */
|
|
1124
|
+
createdAt: string;
|
|
1125
|
+
/** @format date-time */
|
|
1126
|
+
updatedAt?: string | null;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
export interface AiConversationListItemPaginated {
|
|
1130
|
+
rows: AiConversationListItem[];
|
|
1131
|
+
pagination: Pagination;
|
|
1132
|
+
/** @format int64 */
|
|
1133
|
+
count: number;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
export interface AiEnabled {
|
|
1137
|
+
isEnabled: boolean;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
export interface AiGuardrail {
|
|
1141
|
+
/** @format uuid */
|
|
1142
|
+
id: string;
|
|
1143
|
+
name: string;
|
|
1144
|
+
category: AiGuardrailCategoryEnum;
|
|
1145
|
+
description?: string | null;
|
|
1146
|
+
keywords: string[];
|
|
1147
|
+
responseTemplate: string;
|
|
1148
|
+
isDefault: boolean;
|
|
1149
|
+
isEnabled: boolean;
|
|
1150
|
+
hasAccountOverride: boolean;
|
|
1151
|
+
/** @format date-time */
|
|
1152
|
+
createdAt: string;
|
|
1153
|
+
/** @format date-time */
|
|
1154
|
+
updatedAt?: string | null;
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
export interface AiPrompt {
|
|
1158
|
+
/** @format uuid */
|
|
1159
|
+
id: string;
|
|
1160
|
+
title: string;
|
|
1161
|
+
slug?: string | null;
|
|
1162
|
+
description: string;
|
|
1163
|
+
documentTypes: string[];
|
|
1164
|
+
applicableUrlSourceIds: string[];
|
|
1165
|
+
allowedRoles: string[];
|
|
1166
|
+
systemPrompt: string;
|
|
1167
|
+
/** @format int32 */
|
|
1168
|
+
sortOrder: number;
|
|
1169
|
+
isDefault: boolean;
|
|
1170
|
+
/** @format uuid */
|
|
1171
|
+
accountId?: string | null;
|
|
1172
|
+
isActive: boolean;
|
|
1173
|
+
category?: AiPromptCategory | null;
|
|
1174
|
+
queryTemplateName?: AiQueryTemplateName | null;
|
|
1175
|
+
displayHint?: AiDisplayHint | null;
|
|
1176
|
+
bedrockModelId?: string | null;
|
|
1177
|
+
requiredDataSources?: string[] | null;
|
|
1178
|
+
outputType?: AiOutputType | null;
|
|
1179
|
+
hasAccountOverride: boolean;
|
|
1180
|
+
/** @format date-time */
|
|
1181
|
+
createdAt: string;
|
|
1182
|
+
/** @format date-time */
|
|
1183
|
+
updatedAt?: string | null;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
export interface AiPromptSummary {
|
|
1187
|
+
/** @format uuid */
|
|
1188
|
+
id: string;
|
|
1189
|
+
title: string;
|
|
1190
|
+
slug?: string | null;
|
|
1191
|
+
description: string;
|
|
1192
|
+
documentTypes: string[];
|
|
1193
|
+
applicableUrlSourceIds: string[];
|
|
1194
|
+
/** @format int32 */
|
|
1195
|
+
sortOrder: number;
|
|
1196
|
+
category?: AiPromptCategory | null;
|
|
1197
|
+
queryTemplateName?: AiQueryTemplateName | null;
|
|
1198
|
+
displayHint?: AiDisplayHint | null;
|
|
1199
|
+
bedrockModelId?: string | null;
|
|
1200
|
+
requiredDataSources?: string[] | null;
|
|
1201
|
+
outputType?: AiOutputType | null;
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
export interface AiTokenBudgetStatus {
|
|
1205
|
+
/** @format int32 */
|
|
1206
|
+
limit: number;
|
|
1207
|
+
/** @format int64 */
|
|
1208
|
+
used: number;
|
|
1209
|
+
/** @format int64 */
|
|
1210
|
+
inputTokens: number;
|
|
1211
|
+
/** @format int64 */
|
|
1212
|
+
outputTokens: number;
|
|
1213
|
+
/** @format int64 */
|
|
1214
|
+
remaining: number;
|
|
1215
|
+
/** @format double */
|
|
1216
|
+
percentUsed: number;
|
|
1217
|
+
/** @format date-time */
|
|
1218
|
+
windowStart: string;
|
|
1219
|
+
/** @format date-time */
|
|
1220
|
+
windowEnd: string;
|
|
1221
|
+
limitReached: boolean;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
export interface AiTokenUsageWindow {
|
|
1225
|
+
/** @format date-time */
|
|
1226
|
+
windowStart: string;
|
|
1227
|
+
/** @format date-time */
|
|
1228
|
+
windowEnd: string;
|
|
1229
|
+
/** @format int32 */
|
|
1230
|
+
limit: number;
|
|
1231
|
+
/** @format int64 */
|
|
1232
|
+
used: number;
|
|
1233
|
+
/** @format int64 */
|
|
1234
|
+
inputTokens: number;
|
|
1235
|
+
/** @format int64 */
|
|
1236
|
+
outputTokens: number;
|
|
1237
|
+
/** @format double */
|
|
1238
|
+
percentUsed: number;
|
|
1239
|
+
limitReached: boolean;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
export interface AiTokenUsageWindowPaginated {
|
|
1243
|
+
rows: AiTokenUsageWindow[];
|
|
1244
|
+
pagination: Pagination;
|
|
1245
|
+
/** @format int64 */
|
|
1246
|
+
count: number;
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
export interface AiUrlSource {
|
|
1250
|
+
/** @format uuid */
|
|
1251
|
+
id: string;
|
|
1252
|
+
slug?: string | null;
|
|
1253
|
+
name: string;
|
|
1254
|
+
url: string;
|
|
1255
|
+
description?: string | null;
|
|
1256
|
+
category: AiUrlSourceCategoryEnum;
|
|
1257
|
+
scope: AiUrlSourceScopeEnum;
|
|
1258
|
+
isActive: boolean;
|
|
1259
|
+
isDefault: boolean;
|
|
1260
|
+
hasAccountOverride: boolean;
|
|
1261
|
+
/** @format date-time */
|
|
1262
|
+
createdAt: string;
|
|
1263
|
+
/** @format date-time */
|
|
1264
|
+
updatedAt?: string | null;
|
|
1265
|
+
}
|
|
1266
|
+
|
|
682
1267
|
export interface AllowImpersonationRequest {
|
|
683
1268
|
email: string;
|
|
684
1269
|
}
|
|
@@ -773,11 +1358,6 @@ export interface ApplicationRowData {
|
|
|
773
1358
|
titleInsuranceAgent?: EncompassContact | null;
|
|
774
1359
|
}
|
|
775
1360
|
|
|
776
|
-
export interface Attachment {
|
|
777
|
-
fileName: string;
|
|
778
|
-
base64Data: string;
|
|
779
|
-
}
|
|
780
|
-
|
|
781
1361
|
export interface AuditEntityType {
|
|
782
1362
|
entityType: string;
|
|
783
1363
|
rootEntityType?: string | null;
|
|
@@ -1135,6 +1715,49 @@ export interface CreateAccountRequest {
|
|
|
1135
1715
|
billingSettings: AccountBillingRequest;
|
|
1136
1716
|
}
|
|
1137
1717
|
|
|
1718
|
+
export interface CreateAiCanonicalFieldRequest {
|
|
1719
|
+
displayName: string;
|
|
1720
|
+
description: string;
|
|
1721
|
+
allowedRoles: string[];
|
|
1722
|
+
isPii: boolean;
|
|
1723
|
+
dataSource: string;
|
|
1724
|
+
category?: string | null;
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
export interface CreateAiGuardrailRequest {
|
|
1728
|
+
name: string;
|
|
1729
|
+
category: CreateAiGuardrailRequestCategoryEnum;
|
|
1730
|
+
description?: string | null;
|
|
1731
|
+
keywords: string[];
|
|
1732
|
+
responseTemplate: string;
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
export interface CreateAiPromptRequest {
|
|
1736
|
+
title: string;
|
|
1737
|
+
slug?: string | null;
|
|
1738
|
+
description: string;
|
|
1739
|
+
documentTypes: string[];
|
|
1740
|
+
applicableUrlSourceIds: string[];
|
|
1741
|
+
allowedRoles: string[];
|
|
1742
|
+
systemPrompt: string;
|
|
1743
|
+
/** @format int32 */
|
|
1744
|
+
sortOrder: number;
|
|
1745
|
+
category?: AiPromptCategory | null;
|
|
1746
|
+
queryTemplateName?: AiQueryTemplateName | null;
|
|
1747
|
+
displayHint?: AiDisplayHint | null;
|
|
1748
|
+
bedrockModelId?: string | null;
|
|
1749
|
+
requiredDataSources?: string[] | null;
|
|
1750
|
+
outputType?: AiOutputType | null;
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1753
|
+
export interface CreateAiUrlSourceRequest {
|
|
1754
|
+
name: string;
|
|
1755
|
+
url: string;
|
|
1756
|
+
description?: string | null;
|
|
1757
|
+
category: CreateAiUrlSourceRequestCategoryEnum;
|
|
1758
|
+
scope: CreateAiUrlSourceRequestScopeEnum;
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1138
1761
|
export interface CreateBranchRequest {
|
|
1139
1762
|
name: string;
|
|
1140
1763
|
/** @format uuid */
|
|
@@ -1824,6 +2447,7 @@ export interface EncompassPackageItem {
|
|
|
1824
2447
|
/** @format date-time */
|
|
1825
2448
|
createdAt: string;
|
|
1826
2449
|
recipientId: string;
|
|
2450
|
+
borrowerName?: string | null;
|
|
1827
2451
|
title?: string | null;
|
|
1828
2452
|
/** @format date-time */
|
|
1829
2453
|
issuedAt?: string | null;
|
|
@@ -2098,8 +2722,6 @@ export interface FusionReportFilter {
|
|
|
2098
2722
|
}
|
|
2099
2723
|
|
|
2100
2724
|
export interface GenerateDocumentRequest {
|
|
2101
|
-
/** @deprecated */
|
|
2102
|
-
loanID?: string | null;
|
|
2103
2725
|
/** @format uuid */
|
|
2104
2726
|
templateID: string;
|
|
2105
2727
|
/**
|
|
@@ -2111,6 +2733,15 @@ export interface GenerateDocumentRequest {
|
|
|
2111
2733
|
recipients: string[];
|
|
2112
2734
|
}
|
|
2113
2735
|
|
|
2736
|
+
export interface GenerateSystemPrompt {
|
|
2737
|
+
systemPrompt: string;
|
|
2738
|
+
}
|
|
2739
|
+
|
|
2740
|
+
export interface GenerateSystemPromptRequest {
|
|
2741
|
+
description: string;
|
|
2742
|
+
category: GenerateSystemPromptRequestCategoryEnum;
|
|
2743
|
+
}
|
|
2744
|
+
|
|
2114
2745
|
export interface GetApplications {
|
|
2115
2746
|
applications: ApplicationRowData[];
|
|
2116
2747
|
}
|
|
@@ -2465,6 +3096,8 @@ export interface Loan {
|
|
|
2465
3096
|
financial?: LoanFinancial | null;
|
|
2466
3097
|
financialTerms?: LoanFinancialTerms | null;
|
|
2467
3098
|
monthlyPayment?: LoanMonthlyPayment | null;
|
|
3099
|
+
costDetails?: LoanCostDetails | null;
|
|
3100
|
+
metrics?: LoanMetrics | null;
|
|
2468
3101
|
borrowers: LoanBorrower[];
|
|
2469
3102
|
nonOwningBorrowers: LoanNonOwningBorrower[];
|
|
2470
3103
|
userLoans: UserLoan[];
|
|
@@ -2505,6 +3138,8 @@ export interface LoanApplicationRequest {
|
|
|
2505
3138
|
companyName?: string | null;
|
|
2506
3139
|
property?: LoanPropertyRequest | null;
|
|
2507
3140
|
financial?: LoanFinancialRequest | null;
|
|
3141
|
+
financialTerms?: LoanFinancialTermsRequest | null;
|
|
3142
|
+
monthlyPayment?: LoanMonthlyPaymentRequest | null;
|
|
2508
3143
|
borrowers: LoanBorrowerRequest[];
|
|
2509
3144
|
nonOwningBorrowers: LoanNonOwningBorrowerRequest[];
|
|
2510
3145
|
/** @format uuid */
|
|
@@ -2532,6 +3167,8 @@ export interface LoanBorrower {
|
|
|
2532
3167
|
applicationStatus: LoanBorrowerApplicationStatusEnum;
|
|
2533
3168
|
/** @format int32 */
|
|
2534
3169
|
numberOfDependents?: number | null;
|
|
3170
|
+
/** @format int32 */
|
|
3171
|
+
creditDecisionScore?: number | null;
|
|
2535
3172
|
isPrimaryBorrower: boolean;
|
|
2536
3173
|
isFirstTimeHomeBuyer?: boolean | null;
|
|
2537
3174
|
hasJointAssetsAndLiabilities?: boolean | null;
|
|
@@ -2921,6 +3558,11 @@ export interface LoanBorrowerGift {
|
|
|
2921
3558
|
isDeposited?: boolean | null;
|
|
2922
3559
|
source?: LoanGiftSource | null;
|
|
2923
3560
|
assetType?: LoanGiftAssetType | null;
|
|
3561
|
+
grantorDonorName?: string | null;
|
|
3562
|
+
/** @format double */
|
|
3563
|
+
amountAppliedToDownPayment?: number | null;
|
|
3564
|
+
/** @format double */
|
|
3565
|
+
amountAppliedToClosingCosts?: number | null;
|
|
2924
3566
|
}
|
|
2925
3567
|
|
|
2926
3568
|
export interface LoanBorrowerGiftRequest {
|
|
@@ -3109,9 +3751,26 @@ export interface LoanBorrowerRealEstateAsset {
|
|
|
3109
3751
|
/** @format double */
|
|
3110
3752
|
marketValue?: number | null;
|
|
3111
3753
|
/** @format double */
|
|
3754
|
+
purchasePrice?: number | null;
|
|
3755
|
+
/** @format int32 */
|
|
3756
|
+
yearBuilt?: number | null;
|
|
3757
|
+
/** @format int32 */
|
|
3758
|
+
numberOfUnits?: number | null;
|
|
3759
|
+
/** @format double */
|
|
3112
3760
|
monthlyInsTaxDues?: number | null;
|
|
3113
3761
|
/** @format double */
|
|
3114
3762
|
monthlyRentalIncome?: number | null;
|
|
3763
|
+
/** @format double */
|
|
3764
|
+
rentalIncomeNetAmount?: number | null;
|
|
3765
|
+
/** @format double */
|
|
3766
|
+
maintenanceExpense?: number | null;
|
|
3767
|
+
/** @format double */
|
|
3768
|
+
percentageOfRental?: number | null;
|
|
3769
|
+
/** @format double */
|
|
3770
|
+
participationPercentage?: number | null;
|
|
3771
|
+
/** @format date */
|
|
3772
|
+
acquiredDate?: string | null;
|
|
3773
|
+
dispositionStatus?: string | null;
|
|
3115
3774
|
address?: AddressV3 | null;
|
|
3116
3775
|
mortgages?: LoanBorrowerRealEstateAssetMortgage[] | null;
|
|
3117
3776
|
}
|
|
@@ -3324,6 +3983,23 @@ export interface LoanContactList {
|
|
|
3324
3983
|
email: string;
|
|
3325
3984
|
}
|
|
3326
3985
|
|
|
3986
|
+
export interface LoanCostDetails {
|
|
3987
|
+
/** @format uuid */
|
|
3988
|
+
id?: string | null;
|
|
3989
|
+
/** @format double */
|
|
3990
|
+
closingCosts?: number | null;
|
|
3991
|
+
/** @format double */
|
|
3992
|
+
prepaidCharges?: number | null;
|
|
3993
|
+
/** @format double */
|
|
3994
|
+
discount?: number | null;
|
|
3995
|
+
/** @format double */
|
|
3996
|
+
lenderCredit?: number | null;
|
|
3997
|
+
/** @format double */
|
|
3998
|
+
totalCost?: number | null;
|
|
3999
|
+
/** @format double */
|
|
4000
|
+
totalFinancing?: number | null;
|
|
4001
|
+
}
|
|
4002
|
+
|
|
3327
4003
|
export interface LoanCustomFieldsRequest {
|
|
3328
4004
|
additionalFields?: Record<string, string> | null;
|
|
3329
4005
|
}
|
|
@@ -3347,6 +4023,13 @@ export interface LoanDocument {
|
|
|
3347
4023
|
failoverDocumentPath?: string | null;
|
|
3348
4024
|
/** @format date-time */
|
|
3349
4025
|
sensitiveDataPurgedOn?: string | null;
|
|
4026
|
+
observedDocumentType?: LoanDocumentType | null;
|
|
4027
|
+
classificationSource?: ClassificationSource | null;
|
|
4028
|
+
verified: boolean;
|
|
4029
|
+
/** @format date-time */
|
|
4030
|
+
classifiedAt?: string | null;
|
|
4031
|
+
classificationMismatch: boolean;
|
|
4032
|
+
classificationMismatchReason?: string | null;
|
|
3350
4033
|
}
|
|
3351
4034
|
|
|
3352
4035
|
export interface LoanDocumentFolder {
|
|
@@ -3482,6 +4165,25 @@ export interface LoanFinancialTerms {
|
|
|
3482
4165
|
baseLoanAmount?: number | null;
|
|
3483
4166
|
/** @format double */
|
|
3484
4167
|
totalLoanAmount?: number | null;
|
|
4168
|
+
/** @format double */
|
|
4169
|
+
mortgageInsuranceFactor?: number | null;
|
|
4170
|
+
isEscrowWaived?: boolean | null;
|
|
4171
|
+
}
|
|
4172
|
+
|
|
4173
|
+
export interface LoanFinancialTermsRequest {
|
|
4174
|
+
/** @format int32 */
|
|
4175
|
+
loanTermMonths?: number | null;
|
|
4176
|
+
amortizationType?: LoanAmortizationType | null;
|
|
4177
|
+
/** @format double */
|
|
4178
|
+
apr?: number | null;
|
|
4179
|
+
/** @format double */
|
|
4180
|
+
interestRate?: number | null;
|
|
4181
|
+
/** @format double */
|
|
4182
|
+
downPayment?: number | null;
|
|
4183
|
+
/** @format double */
|
|
4184
|
+
baseLoanAmount?: number | null;
|
|
4185
|
+
/** @format double */
|
|
4186
|
+
totalLoanAmount?: number | null;
|
|
3485
4187
|
}
|
|
3486
4188
|
|
|
3487
4189
|
export interface LoanIdentifier {
|
|
@@ -3603,6 +4305,19 @@ export interface LoanLogSearchCriteria {
|
|
|
3603
4305
|
levels?: LogLevel[] | null;
|
|
3604
4306
|
}
|
|
3605
4307
|
|
|
4308
|
+
export interface LoanMetrics {
|
|
4309
|
+
/** @format uuid */
|
|
4310
|
+
id?: string | null;
|
|
4311
|
+
/** @format double */
|
|
4312
|
+
ltv?: number | null;
|
|
4313
|
+
/** @format double */
|
|
4314
|
+
cltv?: number | null;
|
|
4315
|
+
/** @format double */
|
|
4316
|
+
frontDti?: number | null;
|
|
4317
|
+
/** @format double */
|
|
4318
|
+
backDti?: number | null;
|
|
4319
|
+
}
|
|
4320
|
+
|
|
3606
4321
|
export interface LoanMilestone {
|
|
3607
4322
|
/** @format uuid */
|
|
3608
4323
|
id: string;
|
|
@@ -3631,6 +4346,23 @@ export interface LoanMonthlyPayment {
|
|
|
3631
4346
|
other?: number | null;
|
|
3632
4347
|
}
|
|
3633
4348
|
|
|
4349
|
+
export interface LoanMonthlyPaymentRequest {
|
|
4350
|
+
/** @format double */
|
|
4351
|
+
principalAndInterest?: number | null;
|
|
4352
|
+
/** @format double */
|
|
4353
|
+
taxes?: number | null;
|
|
4354
|
+
/** @format double */
|
|
4355
|
+
insurance?: number | null;
|
|
4356
|
+
/** @format double */
|
|
4357
|
+
mortgageInsurance?: number | null;
|
|
4358
|
+
/** @format double */
|
|
4359
|
+
floodInsurance?: number | null;
|
|
4360
|
+
/** @format double */
|
|
4361
|
+
hoa?: number | null;
|
|
4362
|
+
/** @format double */
|
|
4363
|
+
other?: number | null;
|
|
4364
|
+
}
|
|
4365
|
+
|
|
3634
4366
|
export interface LoanNonOwningBorrower {
|
|
3635
4367
|
/** @format uuid */
|
|
3636
4368
|
id?: string | null;
|
|
@@ -4004,6 +4736,10 @@ export interface LosWebhook {
|
|
|
4004
4736
|
enableSubscription: boolean;
|
|
4005
4737
|
}
|
|
4006
4738
|
|
|
4739
|
+
export interface ManualDocumentClassificationRequest {
|
|
4740
|
+
documentType: ManualDocumentClassificationRequestDocumentTypeEnum;
|
|
4741
|
+
}
|
|
4742
|
+
|
|
4007
4743
|
export interface MdmUser {
|
|
4008
4744
|
user_email?: string | null;
|
|
4009
4745
|
user_id?: string | null;
|
|
@@ -4274,7 +5010,7 @@ export interface NotificationTemplateVersionUpdateRequest {
|
|
|
4274
5010
|
|
|
4275
5011
|
export interface Operation {
|
|
4276
5012
|
op?: string;
|
|
4277
|
-
value?:
|
|
5013
|
+
value?: string | number | boolean | null | object;
|
|
4278
5014
|
path?: string;
|
|
4279
5015
|
}
|
|
4280
5016
|
|
|
@@ -4327,6 +5063,10 @@ export interface PendingTasksSummary {
|
|
|
4327
5063
|
borrowers: BorrowerCount[];
|
|
4328
5064
|
}
|
|
4329
5065
|
|
|
5066
|
+
export interface PinAiConversationRequest {
|
|
5067
|
+
isPinned: boolean;
|
|
5068
|
+
}
|
|
5069
|
+
|
|
4330
5070
|
export interface PostLoanComparisonPdfRequest {
|
|
4331
5071
|
/** @format uuid */
|
|
4332
5072
|
siteConfigurationID: string;
|
|
@@ -4487,6 +5227,10 @@ export interface RegisterUserRequest {
|
|
|
4487
5227
|
inviteCode?: string | null;
|
|
4488
5228
|
}
|
|
4489
5229
|
|
|
5230
|
+
export interface RenameAiConversationRequest {
|
|
5231
|
+
name: string;
|
|
5232
|
+
}
|
|
5233
|
+
|
|
4490
5234
|
export interface RequestImpersonationRequest {
|
|
4491
5235
|
email: string;
|
|
4492
5236
|
}
|
|
@@ -4571,6 +5315,15 @@ export interface SSOTokenRequest {
|
|
|
4571
5315
|
redirectUri?: string | null;
|
|
4572
5316
|
}
|
|
4573
5317
|
|
|
5318
|
+
export interface SearchCriteria {
|
|
5319
|
+
searchText?: string | null;
|
|
5320
|
+
}
|
|
5321
|
+
|
|
5322
|
+
export interface SendESignatureReminderRequest {
|
|
5323
|
+
/** @format uuid */
|
|
5324
|
+
userId: string;
|
|
5325
|
+
}
|
|
5326
|
+
|
|
4574
5327
|
export interface SendForgotPasswordRequest {
|
|
4575
5328
|
email: string;
|
|
4576
5329
|
}
|
|
@@ -4592,15 +5345,12 @@ export interface SendLoanTaskReminderRequest {
|
|
|
4592
5345
|
userIds?: string[] | null;
|
|
4593
5346
|
}
|
|
4594
5347
|
|
|
4595
|
-
export interface
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
email?: string | null;
|
|
4602
|
-
phone?: string | null;
|
|
4603
|
-
attachments: Attachment[];
|
|
5348
|
+
export interface SendOutstandingTaskReminderRequest {
|
|
5349
|
+
userIds?: string[] | null;
|
|
5350
|
+
}
|
|
5351
|
+
|
|
5352
|
+
export interface SetAiEnabledRequest {
|
|
5353
|
+
isEnabled: boolean;
|
|
4604
5354
|
}
|
|
4605
5355
|
|
|
4606
5356
|
export interface SetCustomFieldValueRequest {
|
|
@@ -5271,6 +6021,14 @@ export interface SocialSurveyRecord {
|
|
|
5271
6021
|
reviewCompletedTimeStamp?: string | null;
|
|
5272
6022
|
}
|
|
5273
6023
|
|
|
6024
|
+
export interface SupportedModel {
|
|
6025
|
+
modelId: string;
|
|
6026
|
+
displayName: string;
|
|
6027
|
+
provider: string;
|
|
6028
|
+
description?: string | null;
|
|
6029
|
+
isDefault: boolean;
|
|
6030
|
+
}
|
|
6031
|
+
|
|
5274
6032
|
export interface SurveyEmailRequest {
|
|
5275
6033
|
loanOfficerEmailAddress: string;
|
|
5276
6034
|
}
|
|
@@ -5383,16 +6141,6 @@ export interface TaxRatesRequest {
|
|
|
5383
6141
|
marginalIncomeTaxRate: number;
|
|
5384
6142
|
}
|
|
5385
6143
|
|
|
5386
|
-
export interface TestSendNotificationForLoanRequest {
|
|
5387
|
-
loanData: Record<string, string>;
|
|
5388
|
-
/** @format uuid */
|
|
5389
|
-
siteConfigurationId: string;
|
|
5390
|
-
toAddress?: string | null;
|
|
5391
|
-
toPhoneNumber?: string | null;
|
|
5392
|
-
templateKey?: string | null;
|
|
5393
|
-
attachments: Attachment[];
|
|
5394
|
-
}
|
|
5395
|
-
|
|
5396
6144
|
export interface Theme {
|
|
5397
6145
|
logoURL: string;
|
|
5398
6146
|
primaryColor: string;
|
|
@@ -5519,6 +6267,52 @@ export interface UpdateAccountRequest {
|
|
|
5519
6267
|
settings: AccountSettingsRequest;
|
|
5520
6268
|
}
|
|
5521
6269
|
|
|
6270
|
+
export interface UpdateAiAccountTokenLimitRequest {
|
|
6271
|
+
/** @format int32 */
|
|
6272
|
+
tokenLimit: number;
|
|
6273
|
+
}
|
|
6274
|
+
|
|
6275
|
+
export interface UpdateAiCanonicalFieldRequest {
|
|
6276
|
+
displayName: string;
|
|
6277
|
+
description: string;
|
|
6278
|
+
allowedRoles: string[];
|
|
6279
|
+
isPii: boolean;
|
|
6280
|
+
category?: string | null;
|
|
6281
|
+
}
|
|
6282
|
+
|
|
6283
|
+
export interface UpdateAiGuardrailRequest {
|
|
6284
|
+
name: string;
|
|
6285
|
+
category: UpdateAiGuardrailRequestCategoryEnum;
|
|
6286
|
+
description?: string | null;
|
|
6287
|
+
keywords: string[];
|
|
6288
|
+
responseTemplate: string;
|
|
6289
|
+
}
|
|
6290
|
+
|
|
6291
|
+
export interface UpdateAiPromptRequest {
|
|
6292
|
+
title: string;
|
|
6293
|
+
description: string;
|
|
6294
|
+
documentTypes: string[];
|
|
6295
|
+
applicableUrlSourceIds: string[];
|
|
6296
|
+
allowedRoles: string[];
|
|
6297
|
+
systemPrompt: string;
|
|
6298
|
+
/** @format int32 */
|
|
6299
|
+
sortOrder: number;
|
|
6300
|
+
category?: AiPromptCategory | null;
|
|
6301
|
+
queryTemplateName?: AiQueryTemplateName | null;
|
|
6302
|
+
displayHint?: AiDisplayHint | null;
|
|
6303
|
+
bedrockModelId?: string | null;
|
|
6304
|
+
requiredDataSources?: string[] | null;
|
|
6305
|
+
outputType?: AiOutputType | null;
|
|
6306
|
+
}
|
|
6307
|
+
|
|
6308
|
+
export interface UpdateAiUrlSourceRequest {
|
|
6309
|
+
name: string;
|
|
6310
|
+
url: string;
|
|
6311
|
+
description?: string | null;
|
|
6312
|
+
category: UpdateAiUrlSourceRequestCategoryEnum;
|
|
6313
|
+
scope: UpdateAiUrlSourceRequestScopeEnum;
|
|
6314
|
+
}
|
|
6315
|
+
|
|
5522
6316
|
export interface UpdateCustomFieldDefinitionRequest {
|
|
5523
6317
|
isRequired: boolean;
|
|
5524
6318
|
/** @format int32 */
|
|
@@ -6084,6 +6878,63 @@ export interface Workflow {
|
|
|
6084
6878
|
|
|
6085
6879
|
export type AccountBillingRequestBillingTypeEnum = "ClosedLoan" | "LoanOfficer";
|
|
6086
6880
|
|
|
6881
|
+
export type AiAuditLogEventTypeEnum =
|
|
6882
|
+
| "Error"
|
|
6883
|
+
| "GuardrailBlockedPre"
|
|
6884
|
+
| "GuardrailPassedPre"
|
|
6885
|
+
| "IntentClassified"
|
|
6886
|
+
| "LoanResolvedFromMessage"
|
|
6887
|
+
| "DocumentNotFound"
|
|
6888
|
+
| "GuardrailBlockedPost"
|
|
6889
|
+
| "GuardrailPassedPost"
|
|
6890
|
+
| "DocumentAnalyzed"
|
|
6891
|
+
| "DocumentList"
|
|
6892
|
+
| "DocumentResolutionAmbiguous"
|
|
6893
|
+
| "ResponseGenerated"
|
|
6894
|
+
| "ParametersExtracted"
|
|
6895
|
+
| "QueryExecuted"
|
|
6896
|
+
| "LoanContextNotFound"
|
|
6897
|
+
| "LoanContextLoaded"
|
|
6898
|
+
| "GuardrailBlockedBedrock"
|
|
6899
|
+
| "PromptMatched"
|
|
6900
|
+
| "QueryCondensed"
|
|
6901
|
+
| "IntentParseFailed"
|
|
6902
|
+
| "LoanSearchTermDiscarded"
|
|
6903
|
+
| "CanonicalFieldsSelected";
|
|
6904
|
+
|
|
6905
|
+
export type AiChatMetadataIntentEnum =
|
|
6906
|
+
| "Greeting"
|
|
6907
|
+
| "Invalid"
|
|
6908
|
+
| "Relevant"
|
|
6909
|
+
| "LoanSpecific"
|
|
6910
|
+
| "DocumentList"
|
|
6911
|
+
| "GeneralKnowledge"
|
|
6912
|
+
| "Blocked"
|
|
6913
|
+
| "Action"
|
|
6914
|
+
| "ConversationMeta"
|
|
6915
|
+
| "Capabilities"
|
|
6916
|
+
| "UsageReport";
|
|
6917
|
+
|
|
6918
|
+
export type AiChatStructuredDataTypeEnum =
|
|
6919
|
+
| "Table"
|
|
6920
|
+
| "DocumentAnalysis"
|
|
6921
|
+
| "DocumentList"
|
|
6922
|
+
| "GeneratedDocument";
|
|
6923
|
+
|
|
6924
|
+
export type AiGuardrailCategoryEnum =
|
|
6925
|
+
| "ContentSafety"
|
|
6926
|
+
| "PromptInjection"
|
|
6927
|
+
| "Privacy"
|
|
6928
|
+
| "Legal";
|
|
6929
|
+
|
|
6930
|
+
export type AiUrlSourceCategoryEnum =
|
|
6931
|
+
| "Regulatory"
|
|
6932
|
+
| "Guidelines"
|
|
6933
|
+
| "MarketData"
|
|
6934
|
+
| "Custom";
|
|
6935
|
+
|
|
6936
|
+
export type AiUrlSourceScopeEnum = "FullDomain" | "SpecificPath";
|
|
6937
|
+
|
|
6087
6938
|
export type AuditLogEntryChangeTypeEnum =
|
|
6088
6939
|
| "Created"
|
|
6089
6940
|
| "Modified"
|
|
@@ -6131,6 +6982,20 @@ export type CreateAccountRequestEnvironmentEnum =
|
|
|
6131
6982
|
| "UAT"
|
|
6132
6983
|
| "Production";
|
|
6133
6984
|
|
|
6985
|
+
export type CreateAiGuardrailRequestCategoryEnum =
|
|
6986
|
+
| "ContentSafety"
|
|
6987
|
+
| "PromptInjection"
|
|
6988
|
+
| "Privacy"
|
|
6989
|
+
| "Legal";
|
|
6990
|
+
|
|
6991
|
+
export type CreateAiUrlSourceRequestCategoryEnum =
|
|
6992
|
+
| "Regulatory"
|
|
6993
|
+
| "Guidelines"
|
|
6994
|
+
| "MarketData"
|
|
6995
|
+
| "Custom";
|
|
6996
|
+
|
|
6997
|
+
export type CreateAiUrlSourceRequestScopeEnum = "FullDomain" | "SpecificPath";
|
|
6998
|
+
|
|
6134
6999
|
export type CreateCustomFieldDefinitionRequestDataTypeEnum =
|
|
6135
7000
|
| "String"
|
|
6136
7001
|
| "Number"
|
|
@@ -6293,6 +7158,12 @@ export type FusionReportFilterFilterTypeEnum =
|
|
|
6293
7158
|
| "StringNotEquals"
|
|
6294
7159
|
| "StringNotContains";
|
|
6295
7160
|
|
|
7161
|
+
export type GenerateSystemPromptRequestCategoryEnum =
|
|
7162
|
+
| "DocumentAnalysis"
|
|
7163
|
+
| "DataQuery"
|
|
7164
|
+
| "General"
|
|
7165
|
+
| "Action";
|
|
7166
|
+
|
|
6296
7167
|
export type IpAddressAddressFamilyEnum =
|
|
6297
7168
|
| "Unspecified"
|
|
6298
7169
|
| "Unix"
|
|
@@ -6418,7 +7289,8 @@ export type LoanLogTypeEnum =
|
|
|
6418
7289
|
| "SensitiveDataPurge"
|
|
6419
7290
|
| "ClosingDateUpdated"
|
|
6420
7291
|
| "ConsumerConnectAssociation"
|
|
6421
|
-
| "TaskReminderSent"
|
|
7292
|
+
| "TaskReminderSent"
|
|
7293
|
+
| "DocumentClassified";
|
|
6422
7294
|
|
|
6423
7295
|
export type LoanLogDetailLevelEnum = "None" | "Info" | "Warning" | "Error";
|
|
6424
7296
|
|
|
@@ -6438,7 +7310,8 @@ export type LoanLogDetailTypeEnum =
|
|
|
6438
7310
|
| "SensitiveDataPurge"
|
|
6439
7311
|
| "ClosingDateUpdated"
|
|
6440
7312
|
| "ConsumerConnectAssociation"
|
|
6441
|
-
| "TaskReminderSent"
|
|
7313
|
+
| "TaskReminderSent"
|
|
7314
|
+
| "DocumentClassified";
|
|
6442
7315
|
|
|
6443
7316
|
export type LoanTaskStatusSummaryStatusEnum =
|
|
6444
7317
|
| "Outstanding"
|
|
@@ -6472,6 +7345,66 @@ export type LosOperationTrackingStatusEnum =
|
|
|
6472
7345
|
|
|
6473
7346
|
export type LosSyncStepSeverityEnum = "Success" | "Info" | "Warning" | "Error";
|
|
6474
7347
|
|
|
7348
|
+
export type ManualDocumentClassificationRequestDocumentTypeEnum =
|
|
7349
|
+
| "W2"
|
|
7350
|
+
| "Paystub"
|
|
7351
|
+
| "Form1099"
|
|
7352
|
+
| "Form1099Int"
|
|
7353
|
+
| "Form1099Misc"
|
|
7354
|
+
| "Form1099Nec"
|
|
7355
|
+
| "Form1099R"
|
|
7356
|
+
| "Form1099G"
|
|
7357
|
+
| "Form1099Div"
|
|
7358
|
+
| "Form1099Ssa"
|
|
7359
|
+
| "FederalTaxReturn1040"
|
|
7360
|
+
| "TaxReturnScheduleC"
|
|
7361
|
+
| "TaxReturnScheduleD"
|
|
7362
|
+
| "TaxReturnScheduleE"
|
|
7363
|
+
| "Form1065"
|
|
7364
|
+
| "Form1120"
|
|
7365
|
+
| "Form1120S"
|
|
7366
|
+
| "ProfitAndLossStatement"
|
|
7367
|
+
| "VerificationOfEmployment"
|
|
7368
|
+
| "BankStatement"
|
|
7369
|
+
| "InvestmentStatement"
|
|
7370
|
+
| "CreditCardStatement"
|
|
7371
|
+
| "MortgageStatement"
|
|
7372
|
+
| "PayoffStatement"
|
|
7373
|
+
| "HoaDocuments"
|
|
7374
|
+
| "UtilityBill"
|
|
7375
|
+
| "IdentityDocument"
|
|
7376
|
+
| "DemographicAddendum"
|
|
7377
|
+
| "Ssa89"
|
|
7378
|
+
| "Vba260551"
|
|
7379
|
+
| "Hud92900B"
|
|
7380
|
+
| "Check"
|
|
7381
|
+
| "Invoice"
|
|
7382
|
+
| "Receipt"
|
|
7383
|
+
| "LoanApplication1003"
|
|
7384
|
+
| "UnderwritingTransmittal1008"
|
|
7385
|
+
| "Other"
|
|
7386
|
+
| "SalesContract"
|
|
7387
|
+
| "TitleCommitment"
|
|
7388
|
+
| "DriversLicense"
|
|
7389
|
+
| "VerificationOfIncome"
|
|
7390
|
+
| "VerificationOfAssets"
|
|
7391
|
+
| "FloodCertificate"
|
|
7392
|
+
| "FraudReport"
|
|
7393
|
+
| "AddendumToSalesContract"
|
|
7394
|
+
| "GiftLetter"
|
|
7395
|
+
| "CpaLetter"
|
|
7396
|
+
| "TaxBill"
|
|
7397
|
+
| "CondoQuestionnaire"
|
|
7398
|
+
| "CondoBudget"
|
|
7399
|
+
| "CondoBylaws"
|
|
7400
|
+
| "RentalAgreements"
|
|
7401
|
+
| "Lease"
|
|
7402
|
+
| "HazardInsurance"
|
|
7403
|
+
| "VaCertificateOfEligibility"
|
|
7404
|
+
| "Appraisal"
|
|
7405
|
+
| "CreditReport"
|
|
7406
|
+
| "CondoMasterPolicy";
|
|
7407
|
+
|
|
6475
7408
|
export type SiteConfigurationTypeEnum =
|
|
6476
7409
|
| "None"
|
|
6477
7410
|
| "Account"
|
|
@@ -6527,6 +7460,20 @@ export type UnregisteredBorrowerRoleEnum =
|
|
|
6527
7460
|
| "SettlementAgent"
|
|
6528
7461
|
| "Admin";
|
|
6529
7462
|
|
|
7463
|
+
export type UpdateAiGuardrailRequestCategoryEnum =
|
|
7464
|
+
| "ContentSafety"
|
|
7465
|
+
| "PromptInjection"
|
|
7466
|
+
| "Privacy"
|
|
7467
|
+
| "Legal";
|
|
7468
|
+
|
|
7469
|
+
export type UpdateAiUrlSourceRequestCategoryEnum =
|
|
7470
|
+
| "Regulatory"
|
|
7471
|
+
| "Guidelines"
|
|
7472
|
+
| "MarketData"
|
|
7473
|
+
| "Custom";
|
|
7474
|
+
|
|
7475
|
+
export type UpdateAiUrlSourceRequestScopeEnum = "FullDomain" | "SpecificPath";
|
|
7476
|
+
|
|
6530
7477
|
export type UserDraftRoleEnum =
|
|
6531
7478
|
| "Borrower"
|
|
6532
7479
|
| "CoBorrower"
|
|
@@ -6790,7 +7737,7 @@ export class HttpClient<SecurityDataType = unknown> {
|
|
|
6790
7737
|
|
|
6791
7738
|
/**
|
|
6792
7739
|
* @title The Big POS API
|
|
6793
|
-
* @version v2.
|
|
7740
|
+
* @version v2.45.0
|
|
6794
7741
|
* @termsOfService https://www.thebigpos.com/terms-of-use/
|
|
6795
7742
|
* @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
|
|
6796
7743
|
*/
|
|
@@ -6960,28 +7907,1372 @@ export class Api<
|
|
|
6960
7907
|
data: AccountReactivationCompleteRequest,
|
|
6961
7908
|
params: RequestParams = {},
|
|
6962
7909
|
) =>
|
|
6963
|
-
this.request<void, ProblemDetails>({
|
|
6964
|
-
path: `/api/account/reactivation/complete`,
|
|
7910
|
+
this.request<void, ProblemDetails>({
|
|
7911
|
+
path: `/api/account/reactivation/complete`,
|
|
7912
|
+
method: "POST",
|
|
7913
|
+
body: data,
|
|
7914
|
+
secure: true,
|
|
7915
|
+
type: "application/json",
|
|
7916
|
+
...params,
|
|
7917
|
+
}),
|
|
7918
|
+
|
|
7919
|
+
/**
|
|
7920
|
+
* No description
|
|
7921
|
+
*
|
|
7922
|
+
* @tags Accounts
|
|
7923
|
+
* @name GetAccounts
|
|
7924
|
+
* @summary Get All
|
|
7925
|
+
* @request GET:/api/accounts
|
|
7926
|
+
* @secure
|
|
7927
|
+
* @response `200` `(Account)[]` OK
|
|
7928
|
+
*/
|
|
7929
|
+
getAccounts: (params: RequestParams = {}) =>
|
|
7930
|
+
this.request<Account[], any>({
|
|
7931
|
+
path: `/api/accounts`,
|
|
7932
|
+
method: "GET",
|
|
7933
|
+
secure: true,
|
|
7934
|
+
format: "json",
|
|
7935
|
+
...params,
|
|
7936
|
+
}),
|
|
7937
|
+
|
|
7938
|
+
/**
|
|
7939
|
+
* No description
|
|
7940
|
+
*
|
|
7941
|
+
* @tags Accounts
|
|
7942
|
+
* @name CreateAccount
|
|
7943
|
+
* @summary Create
|
|
7944
|
+
* @request POST:/api/accounts
|
|
7945
|
+
* @secure
|
|
7946
|
+
* @response `201` `Account` Created
|
|
7947
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
7948
|
+
*/
|
|
7949
|
+
createAccount: (data: CreateAccountRequest, params: RequestParams = {}) =>
|
|
7950
|
+
this.request<Account, ProblemDetails>({
|
|
7951
|
+
path: `/api/accounts`,
|
|
7952
|
+
method: "POST",
|
|
7953
|
+
body: data,
|
|
7954
|
+
secure: true,
|
|
7955
|
+
type: "application/json",
|
|
7956
|
+
format: "json",
|
|
7957
|
+
...params,
|
|
7958
|
+
}),
|
|
7959
|
+
|
|
7960
|
+
/**
|
|
7961
|
+
* No description
|
|
7962
|
+
*
|
|
7963
|
+
* @tags Accounts
|
|
7964
|
+
* @name GetAccount
|
|
7965
|
+
* @summary Get by ID
|
|
7966
|
+
* @request GET:/api/accounts/{id}
|
|
7967
|
+
* @secure
|
|
7968
|
+
* @response `201` `Account` Created
|
|
7969
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
7970
|
+
*/
|
|
7971
|
+
getAccount: (id: string, params: RequestParams = {}) =>
|
|
7972
|
+
this.request<Account, ProblemDetails>({
|
|
7973
|
+
path: `/api/accounts/${id}`,
|
|
7974
|
+
method: "GET",
|
|
7975
|
+
secure: true,
|
|
7976
|
+
format: "json",
|
|
7977
|
+
...params,
|
|
7978
|
+
}),
|
|
7979
|
+
|
|
7980
|
+
/**
|
|
7981
|
+
* No description
|
|
7982
|
+
*
|
|
7983
|
+
* @tags Accounts
|
|
7984
|
+
* @name DeleteAccount
|
|
7985
|
+
* @summary Delete
|
|
7986
|
+
* @request DELETE:/api/accounts/{id}
|
|
7987
|
+
* @secure
|
|
7988
|
+
* @response `204` `Account` No Content
|
|
7989
|
+
* @response `404` `ProblemDetails` Not Found
|
|
7990
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
7991
|
+
*/
|
|
7992
|
+
deleteAccount: (
|
|
7993
|
+
id: string,
|
|
7994
|
+
query?: {
|
|
7995
|
+
/** @default false */
|
|
7996
|
+
hardDelete?: boolean;
|
|
7997
|
+
},
|
|
7998
|
+
params: RequestParams = {},
|
|
7999
|
+
) =>
|
|
8000
|
+
this.request<Account, ProblemDetails>({
|
|
8001
|
+
path: `/api/accounts/${id}`,
|
|
8002
|
+
method: "DELETE",
|
|
8003
|
+
query: query,
|
|
8004
|
+
secure: true,
|
|
8005
|
+
format: "json",
|
|
8006
|
+
...params,
|
|
8007
|
+
}),
|
|
8008
|
+
|
|
8009
|
+
/**
|
|
8010
|
+
* No description
|
|
8011
|
+
*
|
|
8012
|
+
* @tags Accounts
|
|
8013
|
+
* @name UpdateAccountBilling
|
|
8014
|
+
* @summary Update billing configuration
|
|
8015
|
+
* @request PUT:/api/accounts/{id}/billing
|
|
8016
|
+
* @secure
|
|
8017
|
+
* @response `200` `AccountBilling` OK
|
|
8018
|
+
* @response `404` `ProblemDetails` Not Found
|
|
8019
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
8020
|
+
*/
|
|
8021
|
+
updateAccountBilling: (
|
|
8022
|
+
id: string,
|
|
8023
|
+
data: AccountBillingRequest,
|
|
8024
|
+
params: RequestParams = {},
|
|
8025
|
+
) =>
|
|
8026
|
+
this.request<AccountBilling, ProblemDetails>({
|
|
8027
|
+
path: `/api/accounts/${id}/billing`,
|
|
8028
|
+
method: "PUT",
|
|
8029
|
+
body: data,
|
|
8030
|
+
secure: true,
|
|
8031
|
+
type: "application/json",
|
|
8032
|
+
format: "json",
|
|
8033
|
+
...params,
|
|
8034
|
+
}),
|
|
8035
|
+
|
|
8036
|
+
/**
|
|
8037
|
+
* No description
|
|
8038
|
+
*
|
|
8039
|
+
* @tags AiAccess
|
|
8040
|
+
* @name GetAiAccess
|
|
8041
|
+
* @summary Get whether AI is enabled for the current user's account
|
|
8042
|
+
* @request GET:/api/ai/access
|
|
8043
|
+
* @secure
|
|
8044
|
+
* @response `200` `AiEnabled` OK
|
|
8045
|
+
*/
|
|
8046
|
+
getAiAccess: (params: RequestParams = {}) =>
|
|
8047
|
+
this.request<AiEnabled, any>({
|
|
8048
|
+
path: `/api/ai/access`,
|
|
8049
|
+
method: "GET",
|
|
8050
|
+
secure: true,
|
|
8051
|
+
format: "json",
|
|
8052
|
+
...params,
|
|
8053
|
+
}),
|
|
8054
|
+
|
|
8055
|
+
/**
|
|
8056
|
+
* No description
|
|
8057
|
+
*
|
|
8058
|
+
* @tags AiAccount
|
|
8059
|
+
* @name GetAccountAiEnabled
|
|
8060
|
+
* @summary Get whether AI is enabled for an account (SuperAdmin only)
|
|
8061
|
+
* @request GET:/api/ai/accounts/{accountId}/ai-enabled
|
|
8062
|
+
* @secure
|
|
8063
|
+
* @response `200` `AiEnabled` OK
|
|
8064
|
+
*/
|
|
8065
|
+
getAccountAiEnabled: (accountId: string, params: RequestParams = {}) =>
|
|
8066
|
+
this.request<AiEnabled, any>({
|
|
8067
|
+
path: `/api/ai/accounts/${accountId}/ai-enabled`,
|
|
8068
|
+
method: "GET",
|
|
8069
|
+
secure: true,
|
|
8070
|
+
format: "json",
|
|
8071
|
+
...params,
|
|
8072
|
+
}),
|
|
8073
|
+
|
|
8074
|
+
/**
|
|
8075
|
+
* No description
|
|
8076
|
+
*
|
|
8077
|
+
* @tags AiAccount
|
|
8078
|
+
* @name SetAccountAiEnabled
|
|
8079
|
+
* @summary Enable or disable AI for an account (SuperAdmin only)
|
|
8080
|
+
* @request PUT:/api/ai/accounts/{accountId}/ai-enabled
|
|
8081
|
+
* @secure
|
|
8082
|
+
* @response `204` `void` No Content
|
|
8083
|
+
*/
|
|
8084
|
+
setAccountAiEnabled: (
|
|
8085
|
+
accountId: string,
|
|
8086
|
+
data: SetAiEnabledRequest,
|
|
8087
|
+
params: RequestParams = {},
|
|
8088
|
+
) =>
|
|
8089
|
+
this.request<void, any>({
|
|
8090
|
+
path: `/api/ai/accounts/${accountId}/ai-enabled`,
|
|
8091
|
+
method: "PUT",
|
|
8092
|
+
body: data,
|
|
8093
|
+
secure: true,
|
|
8094
|
+
type: "application/json",
|
|
8095
|
+
...params,
|
|
8096
|
+
}),
|
|
8097
|
+
|
|
8098
|
+
/**
|
|
8099
|
+
* No description
|
|
8100
|
+
*
|
|
8101
|
+
* @tags AiAccountSettings
|
|
8102
|
+
* @name GetAiAccountSettings
|
|
8103
|
+
* @summary Get account AI settings
|
|
8104
|
+
* @request GET:/api/ai/account-settings
|
|
8105
|
+
* @secure
|
|
8106
|
+
* @response `200` `AiAccountSettings` OK
|
|
8107
|
+
*/
|
|
8108
|
+
getAiAccountSettings: (params: RequestParams = {}) =>
|
|
8109
|
+
this.request<AiAccountSettings, any>({
|
|
8110
|
+
path: `/api/ai/account-settings`,
|
|
8111
|
+
method: "GET",
|
|
8112
|
+
secure: true,
|
|
8113
|
+
format: "json",
|
|
8114
|
+
...params,
|
|
8115
|
+
}),
|
|
8116
|
+
|
|
8117
|
+
/**
|
|
8118
|
+
* No description
|
|
8119
|
+
*
|
|
8120
|
+
* @tags AiAccountSettings
|
|
8121
|
+
* @name UpdateAiAccountSettings
|
|
8122
|
+
* @summary Update account AI settings
|
|
8123
|
+
* @request PUT:/api/ai/account-settings
|
|
8124
|
+
* @secure
|
|
8125
|
+
* @response `200` `AiAccountSettings` OK
|
|
8126
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
8127
|
+
*/
|
|
8128
|
+
updateAiAccountSettings: (
|
|
8129
|
+
data: AiAccountSettingsRequest,
|
|
8130
|
+
params: RequestParams = {},
|
|
8131
|
+
) =>
|
|
8132
|
+
this.request<AiAccountSettings, ProblemDetails>({
|
|
8133
|
+
path: `/api/ai/account-settings`,
|
|
8134
|
+
method: "PUT",
|
|
8135
|
+
body: data,
|
|
8136
|
+
secure: true,
|
|
8137
|
+
type: "application/json",
|
|
8138
|
+
format: "json",
|
|
8139
|
+
...params,
|
|
8140
|
+
}),
|
|
8141
|
+
|
|
8142
|
+
/**
|
|
8143
|
+
* No description
|
|
8144
|
+
*
|
|
8145
|
+
* @tags AiAdminPrompt
|
|
8146
|
+
* @name GetAiPrompts
|
|
8147
|
+
* @summary Get all prompts
|
|
8148
|
+
* @request GET:/api/ai/prompts
|
|
8149
|
+
* @secure
|
|
8150
|
+
* @response `200` `(AiPrompt)[]` OK
|
|
8151
|
+
*/
|
|
8152
|
+
getAiPrompts: (params: RequestParams = {}) =>
|
|
8153
|
+
this.request<AiPrompt[], any>({
|
|
8154
|
+
path: `/api/ai/prompts`,
|
|
8155
|
+
method: "GET",
|
|
8156
|
+
secure: true,
|
|
8157
|
+
format: "json",
|
|
8158
|
+
...params,
|
|
8159
|
+
}),
|
|
8160
|
+
|
|
8161
|
+
/**
|
|
8162
|
+
* No description
|
|
8163
|
+
*
|
|
8164
|
+
* @tags AiAdminPrompt
|
|
8165
|
+
* @name CreateAiPrompt
|
|
8166
|
+
* @summary Create custom prompt
|
|
8167
|
+
* @request POST:/api/ai/prompts
|
|
8168
|
+
* @secure
|
|
8169
|
+
* @response `201` `AiPrompt` Created
|
|
8170
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
8171
|
+
*/
|
|
8172
|
+
createAiPrompt: (data: CreateAiPromptRequest, params: RequestParams = {}) =>
|
|
8173
|
+
this.request<AiPrompt, ProblemDetails>({
|
|
8174
|
+
path: `/api/ai/prompts`,
|
|
8175
|
+
method: "POST",
|
|
8176
|
+
body: data,
|
|
8177
|
+
secure: true,
|
|
8178
|
+
type: "application/json",
|
|
8179
|
+
format: "json",
|
|
8180
|
+
...params,
|
|
8181
|
+
}),
|
|
8182
|
+
|
|
8183
|
+
/**
|
|
8184
|
+
* No description
|
|
8185
|
+
*
|
|
8186
|
+
* @tags AiAdminPrompt
|
|
8187
|
+
* @name GetAiPrompt
|
|
8188
|
+
* @summary Get prompt by ID
|
|
8189
|
+
* @request GET:/api/ai/prompts/{id}
|
|
8190
|
+
* @secure
|
|
8191
|
+
* @response `200` `AiPrompt` OK
|
|
8192
|
+
* @response `404` `ProblemDetails` Not Found
|
|
8193
|
+
*/
|
|
8194
|
+
getAiPrompt: (id: string, params: RequestParams = {}) =>
|
|
8195
|
+
this.request<AiPrompt, ProblemDetails>({
|
|
8196
|
+
path: `/api/ai/prompts/${id}`,
|
|
8197
|
+
method: "GET",
|
|
8198
|
+
secure: true,
|
|
8199
|
+
format: "json",
|
|
8200
|
+
...params,
|
|
8201
|
+
}),
|
|
8202
|
+
|
|
8203
|
+
/**
|
|
8204
|
+
* No description
|
|
8205
|
+
*
|
|
8206
|
+
* @tags AiAdminPrompt
|
|
8207
|
+
* @name UpdateAiPrompt
|
|
8208
|
+
* @summary Update prompt
|
|
8209
|
+
* @request PUT:/api/ai/prompts/{id}
|
|
8210
|
+
* @secure
|
|
8211
|
+
* @response `200` `AiPrompt` OK
|
|
8212
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
8213
|
+
* @response `404` `ProblemDetails` Not Found
|
|
8214
|
+
*/
|
|
8215
|
+
updateAiPrompt: (
|
|
8216
|
+
id: string,
|
|
8217
|
+
data: UpdateAiPromptRequest,
|
|
8218
|
+
params: RequestParams = {},
|
|
8219
|
+
) =>
|
|
8220
|
+
this.request<AiPrompt, ProblemDetails>({
|
|
8221
|
+
path: `/api/ai/prompts/${id}`,
|
|
8222
|
+
method: "PUT",
|
|
8223
|
+
body: data,
|
|
8224
|
+
secure: true,
|
|
8225
|
+
type: "application/json",
|
|
8226
|
+
format: "json",
|
|
8227
|
+
...params,
|
|
8228
|
+
}),
|
|
8229
|
+
|
|
8230
|
+
/**
|
|
8231
|
+
* No description
|
|
8232
|
+
*
|
|
8233
|
+
* @tags AiAdminPrompt
|
|
8234
|
+
* @name DeleteAiPrompt
|
|
8235
|
+
* @summary Delete prompt
|
|
8236
|
+
* @request DELETE:/api/ai/prompts/{id}
|
|
8237
|
+
* @secure
|
|
8238
|
+
* @response `204` `void` No Content
|
|
8239
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
8240
|
+
* @response `404` `ProblemDetails` Not Found
|
|
8241
|
+
*/
|
|
8242
|
+
deleteAiPrompt: (id: string, params: RequestParams = {}) =>
|
|
8243
|
+
this.request<void, ProblemDetails>({
|
|
8244
|
+
path: `/api/ai/prompts/${id}`,
|
|
8245
|
+
method: "DELETE",
|
|
8246
|
+
secure: true,
|
|
8247
|
+
...params,
|
|
8248
|
+
}),
|
|
8249
|
+
|
|
8250
|
+
/**
|
|
8251
|
+
* No description
|
|
8252
|
+
*
|
|
8253
|
+
* @tags AiAdminPrompt
|
|
8254
|
+
* @name ToggleAiPrompt
|
|
8255
|
+
* @summary Toggle prompt active/inactive
|
|
8256
|
+
* @request PATCH:/api/ai/prompts/{id}/toggle
|
|
8257
|
+
* @secure
|
|
8258
|
+
* @response `200` `AiPrompt` OK
|
|
8259
|
+
* @response `404` `ProblemDetails` Not Found
|
|
8260
|
+
*/
|
|
8261
|
+
toggleAiPrompt: (id: string, params: RequestParams = {}) =>
|
|
8262
|
+
this.request<AiPrompt, ProblemDetails>({
|
|
8263
|
+
path: `/api/ai/prompts/${id}/toggle`,
|
|
8264
|
+
method: "PATCH",
|
|
8265
|
+
secure: true,
|
|
8266
|
+
format: "json",
|
|
8267
|
+
...params,
|
|
8268
|
+
}),
|
|
8269
|
+
|
|
8270
|
+
/**
|
|
8271
|
+
* No description
|
|
8272
|
+
*
|
|
8273
|
+
* @tags AiAdminPrompt
|
|
8274
|
+
* @name GenerateAiSystemPrompt
|
|
8275
|
+
* @summary Generate a system prompt from description
|
|
8276
|
+
* @request POST:/api/ai/prompts/generate
|
|
8277
|
+
* @secure
|
|
8278
|
+
* @response `200` `GenerateSystemPrompt` OK
|
|
8279
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
8280
|
+
*/
|
|
8281
|
+
generateAiSystemPrompt: (
|
|
8282
|
+
data: GenerateSystemPromptRequest,
|
|
8283
|
+
params: RequestParams = {},
|
|
8284
|
+
) =>
|
|
8285
|
+
this.request<GenerateSystemPrompt, ProblemDetails>({
|
|
8286
|
+
path: `/api/ai/prompts/generate`,
|
|
8287
|
+
method: "POST",
|
|
8288
|
+
body: data,
|
|
8289
|
+
secure: true,
|
|
8290
|
+
type: "application/json",
|
|
8291
|
+
format: "json",
|
|
8292
|
+
...params,
|
|
8293
|
+
}),
|
|
8294
|
+
|
|
8295
|
+
/**
|
|
8296
|
+
* No description
|
|
8297
|
+
*
|
|
8298
|
+
* @tags AiAdminPrompt
|
|
8299
|
+
* @name GetAiSupportedModels
|
|
8300
|
+
* @summary Get supported LLM models
|
|
8301
|
+
* @request GET:/api/ai/prompts/supported-models
|
|
8302
|
+
* @secure
|
|
8303
|
+
* @response `200` `(SupportedModel)[]` OK
|
|
8304
|
+
*/
|
|
8305
|
+
getAiSupportedModels: (params: RequestParams = {}) =>
|
|
8306
|
+
this.request<SupportedModel[], any>({
|
|
8307
|
+
path: `/api/ai/prompts/supported-models`,
|
|
8308
|
+
method: "GET",
|
|
8309
|
+
secure: true,
|
|
8310
|
+
format: "json",
|
|
8311
|
+
...params,
|
|
8312
|
+
}),
|
|
8313
|
+
|
|
8314
|
+
/**
|
|
8315
|
+
* No description
|
|
8316
|
+
*
|
|
8317
|
+
* @tags AiAdminSettings
|
|
8318
|
+
* @name GetAiAdminSettings
|
|
8319
|
+
* @summary Get global AI settings
|
|
8320
|
+
* @request GET:/api/ai/settings
|
|
8321
|
+
* @secure
|
|
8322
|
+
* @response `200` `AiAdminSettings` OK
|
|
8323
|
+
*/
|
|
8324
|
+
getAiAdminSettings: (params: RequestParams = {}) =>
|
|
8325
|
+
this.request<AiAdminSettings, any>({
|
|
8326
|
+
path: `/api/ai/settings`,
|
|
8327
|
+
method: "GET",
|
|
8328
|
+
secure: true,
|
|
8329
|
+
format: "json",
|
|
8330
|
+
...params,
|
|
8331
|
+
}),
|
|
8332
|
+
|
|
8333
|
+
/**
|
|
8334
|
+
* No description
|
|
8335
|
+
*
|
|
8336
|
+
* @tags AiAdminSettings
|
|
8337
|
+
* @name UpdateAiAdminSettings
|
|
8338
|
+
* @summary Update global AI settings
|
|
8339
|
+
* @request PUT:/api/ai/settings
|
|
8340
|
+
* @secure
|
|
8341
|
+
* @response `200` `AiAdminSettings` OK
|
|
8342
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
8343
|
+
*/
|
|
8344
|
+
updateAiAdminSettings: (
|
|
8345
|
+
data: AiAdminSettingsRequest,
|
|
8346
|
+
params: RequestParams = {},
|
|
8347
|
+
) =>
|
|
8348
|
+
this.request<AiAdminSettings, ProblemDetails>({
|
|
8349
|
+
path: `/api/ai/settings`,
|
|
8350
|
+
method: "PUT",
|
|
8351
|
+
body: data,
|
|
8352
|
+
secure: true,
|
|
8353
|
+
type: "application/json",
|
|
8354
|
+
format: "json",
|
|
8355
|
+
...params,
|
|
8356
|
+
}),
|
|
8357
|
+
|
|
8358
|
+
/**
|
|
8359
|
+
* No description
|
|
8360
|
+
*
|
|
8361
|
+
* @tags AiAudit
|
|
8362
|
+
* @name GetAiAuditLogs
|
|
8363
|
+
* @summary Get paginated AI audit logs (own account, or any/all accounts for SuperAdmin)
|
|
8364
|
+
* @request GET:/api/ai/audit-logs
|
|
8365
|
+
* @secure
|
|
8366
|
+
* @response `200` `AiAuditLogPaginated` OK
|
|
8367
|
+
*/
|
|
8368
|
+
getAiAuditLogs: (
|
|
8369
|
+
query?: {
|
|
8370
|
+
/** @format uuid */
|
|
8371
|
+
accountId?: string;
|
|
8372
|
+
eventType?: AiAuditEventType;
|
|
8373
|
+
/** @format uuid */
|
|
8374
|
+
requestId?: string;
|
|
8375
|
+
/** @format uuid */
|
|
8376
|
+
userId?: string;
|
|
8377
|
+
/** @format uuid */
|
|
8378
|
+
conversationId?: string;
|
|
8379
|
+
blockedOnly?: boolean;
|
|
8380
|
+
/** @format date-time */
|
|
8381
|
+
startDate?: string;
|
|
8382
|
+
/** @format date-time */
|
|
8383
|
+
endDate?: string;
|
|
8384
|
+
/** @format int32 */
|
|
8385
|
+
pageSize?: number;
|
|
8386
|
+
/** @format int32 */
|
|
8387
|
+
pageNumber?: number;
|
|
8388
|
+
sortBy?: string;
|
|
8389
|
+
sortDirection?: string;
|
|
8390
|
+
},
|
|
8391
|
+
params: RequestParams = {},
|
|
8392
|
+
) =>
|
|
8393
|
+
this.request<AiAuditLogPaginated, any>({
|
|
8394
|
+
path: `/api/ai/audit-logs`,
|
|
8395
|
+
method: "GET",
|
|
8396
|
+
query: query,
|
|
8397
|
+
secure: true,
|
|
8398
|
+
format: "json",
|
|
8399
|
+
...params,
|
|
8400
|
+
}),
|
|
8401
|
+
|
|
8402
|
+
/**
|
|
8403
|
+
* No description
|
|
8404
|
+
*
|
|
8405
|
+
* @tags AiAudit
|
|
8406
|
+
* @name GetAiRequestLifecycle
|
|
8407
|
+
* @summary Get the full event lifecycle of a single AI request
|
|
8408
|
+
* @request GET:/api/ai/audit-logs/request/{requestId}
|
|
8409
|
+
* @secure
|
|
8410
|
+
* @response `200` `(AiAuditLog)[]` OK
|
|
8411
|
+
*/
|
|
8412
|
+
getAiRequestLifecycle: (
|
|
8413
|
+
requestId: string,
|
|
8414
|
+
query?: {
|
|
8415
|
+
/** @format uuid */
|
|
8416
|
+
accountId?: string;
|
|
8417
|
+
},
|
|
8418
|
+
params: RequestParams = {},
|
|
8419
|
+
) =>
|
|
8420
|
+
this.request<AiAuditLog[], any>({
|
|
8421
|
+
path: `/api/ai/audit-logs/request/${requestId}`,
|
|
8422
|
+
method: "GET",
|
|
8423
|
+
query: query,
|
|
8424
|
+
secure: true,
|
|
8425
|
+
format: "json",
|
|
8426
|
+
...params,
|
|
8427
|
+
}),
|
|
8428
|
+
|
|
8429
|
+
/**
|
|
8430
|
+
* No description
|
|
8431
|
+
*
|
|
8432
|
+
* @tags AiAudit
|
|
8433
|
+
* @name GetAiAuditConversations
|
|
8434
|
+
* @summary List conversations with their audit roll-up — origin user, turns, status, tokens
|
|
8435
|
+
* @request GET:/api/ai/audit-conversations
|
|
8436
|
+
* @secure
|
|
8437
|
+
* @response `200` `AiConversationAuditSummaryPaginated` OK
|
|
8438
|
+
*/
|
|
8439
|
+
getAiAuditConversations: (
|
|
8440
|
+
query?: {
|
|
8441
|
+
/** @format uuid */
|
|
8442
|
+
accountId?: string;
|
|
8443
|
+
searchText?: string;
|
|
8444
|
+
/** @format date-time */
|
|
8445
|
+
startDate?: string;
|
|
8446
|
+
/** @format date-time */
|
|
8447
|
+
endDate?: string;
|
|
8448
|
+
/** @format int32 */
|
|
8449
|
+
pageSize?: number;
|
|
8450
|
+
/** @format int32 */
|
|
8451
|
+
pageNumber?: number;
|
|
8452
|
+
sortBy?: string;
|
|
8453
|
+
sortDirection?: string;
|
|
8454
|
+
},
|
|
8455
|
+
params: RequestParams = {},
|
|
8456
|
+
) =>
|
|
8457
|
+
this.request<AiConversationAuditSummaryPaginated, any>({
|
|
8458
|
+
path: `/api/ai/audit-conversations`,
|
|
8459
|
+
method: "GET",
|
|
8460
|
+
query: query,
|
|
8461
|
+
secure: true,
|
|
8462
|
+
format: "json",
|
|
8463
|
+
...params,
|
|
8464
|
+
}),
|
|
8465
|
+
|
|
8466
|
+
/**
|
|
8467
|
+
* No description
|
|
8468
|
+
*
|
|
8469
|
+
* @tags AiAudit
|
|
8470
|
+
* @name GetAiStats
|
|
8471
|
+
* @summary Get AI dashboard stats (own account, or any/all accounts for SuperAdmin)
|
|
8472
|
+
* @request GET:/api/ai/stats
|
|
8473
|
+
* @secure
|
|
8474
|
+
* @response `200` `AiAdminStats` OK
|
|
8475
|
+
*/
|
|
8476
|
+
getAiStats: (
|
|
8477
|
+
query?: {
|
|
8478
|
+
/** @format uuid */
|
|
8479
|
+
accountId?: string;
|
|
8480
|
+
/** @format date-time */
|
|
8481
|
+
startDate?: string;
|
|
8482
|
+
/** @format date-time */
|
|
8483
|
+
endDate?: string;
|
|
8484
|
+
},
|
|
8485
|
+
params: RequestParams = {},
|
|
8486
|
+
) =>
|
|
8487
|
+
this.request<AiAdminStats, any>({
|
|
8488
|
+
path: `/api/ai/stats`,
|
|
8489
|
+
method: "GET",
|
|
8490
|
+
query: query,
|
|
8491
|
+
secure: true,
|
|
8492
|
+
format: "json",
|
|
8493
|
+
...params,
|
|
8494
|
+
}),
|
|
8495
|
+
|
|
8496
|
+
/**
|
|
8497
|
+
* No description
|
|
8498
|
+
*
|
|
8499
|
+
* @tags AiAudit
|
|
8500
|
+
* @name GetAiConfigChanges
|
|
8501
|
+
* @summary Get the AI configuration change history (who changed prompts, guardrails, fields, sources)
|
|
8502
|
+
* @request GET:/api/ai/config-changes
|
|
8503
|
+
* @secure
|
|
8504
|
+
* @response `200` `AuditLogEntryPaginated` OK
|
|
8505
|
+
*/
|
|
8506
|
+
getAiConfigChanges: (
|
|
8507
|
+
query?: {
|
|
8508
|
+
/** @format uuid */
|
|
8509
|
+
accountId?: string;
|
|
8510
|
+
/** @format uuid */
|
|
8511
|
+
entityId?: string;
|
|
8512
|
+
/** @format uuid */
|
|
8513
|
+
actorUserId?: string;
|
|
8514
|
+
/** @format date-time */
|
|
8515
|
+
startDate?: string;
|
|
8516
|
+
/** @format date-time */
|
|
8517
|
+
endDate?: string;
|
|
8518
|
+
/** @format int32 */
|
|
8519
|
+
pageSize?: number;
|
|
8520
|
+
/** @format int32 */
|
|
8521
|
+
pageNumber?: number;
|
|
8522
|
+
sortBy?: string;
|
|
8523
|
+
sortDirection?: string;
|
|
8524
|
+
},
|
|
8525
|
+
params: RequestParams = {},
|
|
8526
|
+
) =>
|
|
8527
|
+
this.request<AuditLogEntryPaginated, any>({
|
|
8528
|
+
path: `/api/ai/config-changes`,
|
|
8529
|
+
method: "GET",
|
|
8530
|
+
query: query,
|
|
8531
|
+
secure: true,
|
|
8532
|
+
format: "json",
|
|
8533
|
+
...params,
|
|
8534
|
+
}),
|
|
8535
|
+
|
|
8536
|
+
/**
|
|
8537
|
+
* No description
|
|
8538
|
+
*
|
|
8539
|
+
* @tags AiCanonicalField
|
|
8540
|
+
* @name GetAiCanonicalFields
|
|
8541
|
+
* @summary Get all canonical fields
|
|
8542
|
+
* @request GET:/api/ai/canonical-fields
|
|
8543
|
+
* @secure
|
|
8544
|
+
* @response `200` `(AiCanonicalField)[]` OK
|
|
8545
|
+
*/
|
|
8546
|
+
getAiCanonicalFields: (params: RequestParams = {}) =>
|
|
8547
|
+
this.request<AiCanonicalField[], any>({
|
|
8548
|
+
path: `/api/ai/canonical-fields`,
|
|
8549
|
+
method: "GET",
|
|
8550
|
+
secure: true,
|
|
8551
|
+
format: "json",
|
|
8552
|
+
...params,
|
|
8553
|
+
}),
|
|
8554
|
+
|
|
8555
|
+
/**
|
|
8556
|
+
* No description
|
|
8557
|
+
*
|
|
8558
|
+
* @tags AiCanonicalField
|
|
8559
|
+
* @name CreateAiCanonicalField
|
|
8560
|
+
* @summary Create canonical field
|
|
8561
|
+
* @request POST:/api/ai/canonical-fields
|
|
8562
|
+
* @secure
|
|
8563
|
+
* @response `201` `AiCanonicalField` Created
|
|
8564
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
8565
|
+
*/
|
|
8566
|
+
createAiCanonicalField: (
|
|
8567
|
+
data: CreateAiCanonicalFieldRequest,
|
|
8568
|
+
params: RequestParams = {},
|
|
8569
|
+
) =>
|
|
8570
|
+
this.request<AiCanonicalField, ProblemDetails>({
|
|
8571
|
+
path: `/api/ai/canonical-fields`,
|
|
8572
|
+
method: "POST",
|
|
8573
|
+
body: data,
|
|
8574
|
+
secure: true,
|
|
8575
|
+
type: "application/json",
|
|
8576
|
+
format: "json",
|
|
8577
|
+
...params,
|
|
8578
|
+
}),
|
|
8579
|
+
|
|
8580
|
+
/**
|
|
8581
|
+
* No description
|
|
8582
|
+
*
|
|
8583
|
+
* @tags AiCanonicalField
|
|
8584
|
+
* @name GetAiCanonicalField
|
|
8585
|
+
* @summary Get canonical field by ID
|
|
8586
|
+
* @request GET:/api/ai/canonical-fields/{id}
|
|
8587
|
+
* @secure
|
|
8588
|
+
* @response `200` `AiCanonicalField` OK
|
|
8589
|
+
* @response `404` `ProblemDetails` Not Found
|
|
8590
|
+
*/
|
|
8591
|
+
getAiCanonicalField: (id: string, params: RequestParams = {}) =>
|
|
8592
|
+
this.request<AiCanonicalField, ProblemDetails>({
|
|
8593
|
+
path: `/api/ai/canonical-fields/${id}`,
|
|
8594
|
+
method: "GET",
|
|
8595
|
+
secure: true,
|
|
8596
|
+
format: "json",
|
|
8597
|
+
...params,
|
|
8598
|
+
}),
|
|
8599
|
+
|
|
8600
|
+
/**
|
|
8601
|
+
* No description
|
|
8602
|
+
*
|
|
8603
|
+
* @tags AiCanonicalField
|
|
8604
|
+
* @name UpdateAiCanonicalField
|
|
8605
|
+
* @summary Update canonical field
|
|
8606
|
+
* @request PUT:/api/ai/canonical-fields/{id}
|
|
8607
|
+
* @secure
|
|
8608
|
+
* @response `200` `AiCanonicalField` OK
|
|
8609
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
8610
|
+
* @response `404` `ProblemDetails` Not Found
|
|
8611
|
+
*/
|
|
8612
|
+
updateAiCanonicalField: (
|
|
8613
|
+
id: string,
|
|
8614
|
+
data: UpdateAiCanonicalFieldRequest,
|
|
8615
|
+
params: RequestParams = {},
|
|
8616
|
+
) =>
|
|
8617
|
+
this.request<AiCanonicalField, ProblemDetails>({
|
|
8618
|
+
path: `/api/ai/canonical-fields/${id}`,
|
|
8619
|
+
method: "PUT",
|
|
8620
|
+
body: data,
|
|
8621
|
+
secure: true,
|
|
8622
|
+
type: "application/json",
|
|
8623
|
+
format: "json",
|
|
8624
|
+
...params,
|
|
8625
|
+
}),
|
|
8626
|
+
|
|
8627
|
+
/**
|
|
8628
|
+
* No description
|
|
8629
|
+
*
|
|
8630
|
+
* @tags AiCanonicalField
|
|
8631
|
+
* @name DeleteAiCanonicalField
|
|
8632
|
+
* @summary Delete canonical field
|
|
8633
|
+
* @request DELETE:/api/ai/canonical-fields/{id}
|
|
8634
|
+
* @secure
|
|
8635
|
+
* @response `204` `void` No Content
|
|
8636
|
+
* @response `404` `ProblemDetails` Not Found
|
|
8637
|
+
*/
|
|
8638
|
+
deleteAiCanonicalField: (id: string, params: RequestParams = {}) =>
|
|
8639
|
+
this.request<void, ProblemDetails>({
|
|
8640
|
+
path: `/api/ai/canonical-fields/${id}`,
|
|
8641
|
+
method: "DELETE",
|
|
8642
|
+
secure: true,
|
|
8643
|
+
...params,
|
|
8644
|
+
}),
|
|
8645
|
+
|
|
8646
|
+
/**
|
|
8647
|
+
* No description
|
|
8648
|
+
*
|
|
8649
|
+
* @tags AiCanonicalField
|
|
8650
|
+
* @name ToggleAiCanonicalField
|
|
8651
|
+
* @summary Toggle canonical field active/inactive
|
|
8652
|
+
* @request PATCH:/api/ai/canonical-fields/{id}/toggle
|
|
8653
|
+
* @secure
|
|
8654
|
+
* @response `200` `AiCanonicalField` OK
|
|
8655
|
+
* @response `404` `ProblemDetails` Not Found
|
|
8656
|
+
*/
|
|
8657
|
+
toggleAiCanonicalField: (id: string, params: RequestParams = {}) =>
|
|
8658
|
+
this.request<AiCanonicalField, ProblemDetails>({
|
|
8659
|
+
path: `/api/ai/canonical-fields/${id}/toggle`,
|
|
8660
|
+
method: "PATCH",
|
|
8661
|
+
secure: true,
|
|
8662
|
+
format: "json",
|
|
8663
|
+
...params,
|
|
8664
|
+
}),
|
|
8665
|
+
|
|
8666
|
+
/**
|
|
8667
|
+
* No description
|
|
8668
|
+
*
|
|
8669
|
+
* @tags AiChat
|
|
8670
|
+
* @name AiChat
|
|
8671
|
+
* @summary Send AI chat message
|
|
8672
|
+
* @request POST:/api/ai/chats
|
|
8673
|
+
* @secure
|
|
8674
|
+
* @response `200` `AiChat` OK
|
|
8675
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
8676
|
+
* @response `401` `ProblemDetails` Unauthorized
|
|
8677
|
+
*/
|
|
8678
|
+
aiChat: (data: AiChatRequest, params: RequestParams = {}) =>
|
|
8679
|
+
this.request<AiChat, ProblemDetails>({
|
|
8680
|
+
path: `/api/ai/chats`,
|
|
8681
|
+
method: "POST",
|
|
8682
|
+
body: data,
|
|
8683
|
+
secure: true,
|
|
8684
|
+
type: "application/json",
|
|
8685
|
+
format: "json",
|
|
8686
|
+
...params,
|
|
8687
|
+
}),
|
|
8688
|
+
|
|
8689
|
+
/**
|
|
8690
|
+
* No description
|
|
8691
|
+
*
|
|
8692
|
+
* @tags AiConversation
|
|
8693
|
+
* @name GetAiConversations
|
|
8694
|
+
* @summary Get user conversations
|
|
8695
|
+
* @request GET:/api/ai/conversations
|
|
8696
|
+
* @secure
|
|
8697
|
+
* @response `200` `AiConversationListItemPaginated` OK
|
|
8698
|
+
*/
|
|
8699
|
+
getAiConversations: (
|
|
8700
|
+
query?: {
|
|
8701
|
+
/** @format int32 */
|
|
8702
|
+
pageSize?: number;
|
|
8703
|
+
/** @format int32 */
|
|
8704
|
+
pageNumber?: number;
|
|
8705
|
+
sortBy?: string;
|
|
8706
|
+
sortDirection?: string;
|
|
8707
|
+
},
|
|
8708
|
+
params: RequestParams = {},
|
|
8709
|
+
) =>
|
|
8710
|
+
this.request<AiConversationListItemPaginated, any>({
|
|
8711
|
+
path: `/api/ai/conversations`,
|
|
8712
|
+
method: "GET",
|
|
8713
|
+
query: query,
|
|
8714
|
+
secure: true,
|
|
8715
|
+
format: "json",
|
|
8716
|
+
...params,
|
|
8717
|
+
}),
|
|
8718
|
+
|
|
8719
|
+
/**
|
|
8720
|
+
* No description
|
|
8721
|
+
*
|
|
8722
|
+
* @tags AiConversation
|
|
8723
|
+
* @name GetAiConversation
|
|
8724
|
+
* @summary Get conversation metadata
|
|
8725
|
+
* @request GET:/api/ai/conversations/{id}
|
|
8726
|
+
* @secure
|
|
8727
|
+
* @response `200` `AiConversationDetail` OK
|
|
8728
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
8729
|
+
* @response `404` `ProblemDetails` Not Found
|
|
8730
|
+
*/
|
|
8731
|
+
getAiConversation: (id: string, params: RequestParams = {}) =>
|
|
8732
|
+
this.request<AiConversationDetail, ProblemDetails>({
|
|
8733
|
+
path: `/api/ai/conversations/${id}`,
|
|
8734
|
+
method: "GET",
|
|
8735
|
+
secure: true,
|
|
8736
|
+
format: "json",
|
|
8737
|
+
...params,
|
|
8738
|
+
}),
|
|
8739
|
+
|
|
8740
|
+
/**
|
|
8741
|
+
* No description
|
|
8742
|
+
*
|
|
8743
|
+
* @tags AiConversation
|
|
8744
|
+
* @name RenameAiConversation
|
|
8745
|
+
* @summary Rename conversation
|
|
8746
|
+
* @request PATCH:/api/ai/conversations/{id}
|
|
8747
|
+
* @secure
|
|
8748
|
+
* @response `200` `AiConversationDetail` OK
|
|
8749
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
8750
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
8751
|
+
* @response `404` `ProblemDetails` Not Found
|
|
8752
|
+
*/
|
|
8753
|
+
renameAiConversation: (
|
|
8754
|
+
id: string,
|
|
8755
|
+
data: JsonPatchDocument,
|
|
8756
|
+
params: RequestParams = {},
|
|
8757
|
+
) =>
|
|
8758
|
+
this.request<AiConversationDetail, ProblemDetails>({
|
|
8759
|
+
path: `/api/ai/conversations/${id}`,
|
|
8760
|
+
method: "PATCH",
|
|
8761
|
+
body: data,
|
|
8762
|
+
secure: true,
|
|
8763
|
+
type: "application/json",
|
|
8764
|
+
format: "json",
|
|
8765
|
+
...params,
|
|
8766
|
+
}),
|
|
8767
|
+
|
|
8768
|
+
/**
|
|
8769
|
+
* No description
|
|
8770
|
+
*
|
|
8771
|
+
* @tags AiConversation
|
|
8772
|
+
* @name DeleteAiConversation
|
|
8773
|
+
* @summary Delete conversation
|
|
8774
|
+
* @request DELETE:/api/ai/conversations/{id}
|
|
8775
|
+
* @secure
|
|
8776
|
+
* @response `204` `void` No Content
|
|
8777
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
8778
|
+
* @response `404` `ProblemDetails` Not Found
|
|
8779
|
+
*/
|
|
8780
|
+
deleteAiConversation: (id: string, params: RequestParams = {}) =>
|
|
8781
|
+
this.request<void, ProblemDetails>({
|
|
8782
|
+
path: `/api/ai/conversations/${id}`,
|
|
8783
|
+
method: "DELETE",
|
|
8784
|
+
secure: true,
|
|
8785
|
+
...params,
|
|
8786
|
+
}),
|
|
8787
|
+
|
|
8788
|
+
/**
|
|
8789
|
+
* No description
|
|
8790
|
+
*
|
|
8791
|
+
* @tags AiConversation
|
|
8792
|
+
* @name GetAiConversationMessages
|
|
8793
|
+
* @summary Get conversation messages
|
|
8794
|
+
* @request GET:/api/ai/conversations/{id}/messages
|
|
8795
|
+
* @secure
|
|
8796
|
+
* @response `200` `AiChatMessagePaginated` OK
|
|
8797
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
8798
|
+
* @response `404` `ProblemDetails` Not Found
|
|
8799
|
+
*/
|
|
8800
|
+
getAiConversationMessages: (
|
|
8801
|
+
id: string,
|
|
8802
|
+
query?: {
|
|
8803
|
+
/** @format int32 */
|
|
8804
|
+
pageSize?: number;
|
|
8805
|
+
/** @format int32 */
|
|
8806
|
+
pageNumber?: number;
|
|
8807
|
+
sortBy?: string;
|
|
8808
|
+
sortDirection?: string;
|
|
8809
|
+
},
|
|
8810
|
+
params: RequestParams = {},
|
|
8811
|
+
) =>
|
|
8812
|
+
this.request<AiChatMessagePaginated, ProblemDetails>({
|
|
8813
|
+
path: `/api/ai/conversations/${id}/messages`,
|
|
8814
|
+
method: "GET",
|
|
8815
|
+
query: query,
|
|
8816
|
+
secure: true,
|
|
8817
|
+
format: "json",
|
|
8818
|
+
...params,
|
|
8819
|
+
}),
|
|
8820
|
+
|
|
8821
|
+
/**
|
|
8822
|
+
* No description
|
|
8823
|
+
*
|
|
8824
|
+
* @tags AiConversation
|
|
8825
|
+
* @name ClearAiConversationHistory
|
|
8826
|
+
* @summary Clear conversation history
|
|
8827
|
+
* @request DELETE:/api/ai/conversations/{id}/messages
|
|
8828
|
+
* @secure
|
|
8829
|
+
* @response `204` `void` No Content
|
|
8830
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
8831
|
+
* @response `404` `ProblemDetails` Not Found
|
|
8832
|
+
*/
|
|
8833
|
+
clearAiConversationHistory: (id: string, params: RequestParams = {}) =>
|
|
8834
|
+
this.request<void, ProblemDetails>({
|
|
8835
|
+
path: `/api/ai/conversations/${id}/messages`,
|
|
8836
|
+
method: "DELETE",
|
|
8837
|
+
secure: true,
|
|
8838
|
+
...params,
|
|
8839
|
+
}),
|
|
8840
|
+
|
|
8841
|
+
/**
|
|
8842
|
+
* No description
|
|
8843
|
+
*
|
|
8844
|
+
* @tags AiConversation
|
|
8845
|
+
* @name PinAiConversation
|
|
8846
|
+
* @summary Pin or unpin conversation
|
|
8847
|
+
* @request PUT:/api/ai/conversations/{id}/pin
|
|
8848
|
+
* @secure
|
|
8849
|
+
* @response `200` `AiConversationDetail` OK
|
|
8850
|
+
* @response `403` `ProblemDetails` Forbidden
|
|
8851
|
+
* @response `404` `ProblemDetails` Not Found
|
|
8852
|
+
*/
|
|
8853
|
+
pinAiConversation: (
|
|
8854
|
+
id: string,
|
|
8855
|
+
data: PinAiConversationRequest,
|
|
8856
|
+
params: RequestParams = {},
|
|
8857
|
+
) =>
|
|
8858
|
+
this.request<AiConversationDetail, ProblemDetails>({
|
|
8859
|
+
path: `/api/ai/conversations/${id}/pin`,
|
|
8860
|
+
method: "PUT",
|
|
8861
|
+
body: data,
|
|
8862
|
+
secure: true,
|
|
8863
|
+
type: "application/json",
|
|
8864
|
+
format: "json",
|
|
8865
|
+
...params,
|
|
8866
|
+
}),
|
|
8867
|
+
|
|
8868
|
+
/**
|
|
8869
|
+
* No description
|
|
8870
|
+
*
|
|
8871
|
+
* @tags AiConversationAdmin
|
|
8872
|
+
* @name GetAiAccountConversations
|
|
8873
|
+
* @summary List AI conversations across the account, optionally filtered by user (admin supervision)
|
|
8874
|
+
* @request GET:/api/ai/conversations/all
|
|
8875
|
+
* @secure
|
|
8876
|
+
* @response `200` `AiConversationListItemPaginated` OK
|
|
8877
|
+
*/
|
|
8878
|
+
getAiAccountConversations: (
|
|
8879
|
+
query?: {
|
|
8880
|
+
/** @format uuid */
|
|
8881
|
+
userId?: string;
|
|
8882
|
+
/** @format int32 */
|
|
8883
|
+
pageSize?: number;
|
|
8884
|
+
/** @format int32 */
|
|
8885
|
+
pageNumber?: number;
|
|
8886
|
+
sortBy?: string;
|
|
8887
|
+
sortDirection?: string;
|
|
8888
|
+
},
|
|
8889
|
+
params: RequestParams = {},
|
|
8890
|
+
) =>
|
|
8891
|
+
this.request<AiConversationListItemPaginated, any>({
|
|
8892
|
+
path: `/api/ai/conversations/all`,
|
|
8893
|
+
method: "GET",
|
|
8894
|
+
query: query,
|
|
8895
|
+
secure: true,
|
|
8896
|
+
format: "json",
|
|
8897
|
+
...params,
|
|
8898
|
+
}),
|
|
8899
|
+
|
|
8900
|
+
/**
|
|
8901
|
+
* No description
|
|
8902
|
+
*
|
|
8903
|
+
* @tags AiConversationAdmin
|
|
8904
|
+
* @name GetAiAccountConversation
|
|
8905
|
+
* @summary Get an account conversation's detail (admin supervision)
|
|
8906
|
+
* @request GET:/api/ai/conversations/all/{id}
|
|
8907
|
+
* @secure
|
|
8908
|
+
* @response `200` `AiConversationDetail` OK
|
|
8909
|
+
* @response `404` `ProblemDetails` Not Found
|
|
8910
|
+
*/
|
|
8911
|
+
getAiAccountConversation: (id: string, params: RequestParams = {}) =>
|
|
8912
|
+
this.request<AiConversationDetail, ProblemDetails>({
|
|
8913
|
+
path: `/api/ai/conversations/all/${id}`,
|
|
8914
|
+
method: "GET",
|
|
8915
|
+
secure: true,
|
|
8916
|
+
format: "json",
|
|
8917
|
+
...params,
|
|
8918
|
+
}),
|
|
8919
|
+
|
|
8920
|
+
/**
|
|
8921
|
+
* No description
|
|
8922
|
+
*
|
|
8923
|
+
* @tags AiConversationAdmin
|
|
8924
|
+
* @name GetAiAccountConversationMessages
|
|
8925
|
+
* @summary Get an account conversation's messages (admin supervision)
|
|
8926
|
+
* @request GET:/api/ai/conversations/all/{id}/messages
|
|
8927
|
+
* @secure
|
|
8928
|
+
* @response `200` `AiChatMessagePaginated` OK
|
|
8929
|
+
* @response `404` `ProblemDetails` Not Found
|
|
8930
|
+
*/
|
|
8931
|
+
getAiAccountConversationMessages: (
|
|
8932
|
+
id: string,
|
|
8933
|
+
query?: {
|
|
8934
|
+
/** @format int32 */
|
|
8935
|
+
pageSize?: number;
|
|
8936
|
+
/** @format int32 */
|
|
8937
|
+
pageNumber?: number;
|
|
8938
|
+
sortBy?: string;
|
|
8939
|
+
sortDirection?: string;
|
|
8940
|
+
},
|
|
8941
|
+
params: RequestParams = {},
|
|
8942
|
+
) =>
|
|
8943
|
+
this.request<AiChatMessagePaginated, ProblemDetails>({
|
|
8944
|
+
path: `/api/ai/conversations/all/${id}/messages`,
|
|
8945
|
+
method: "GET",
|
|
8946
|
+
query: query,
|
|
8947
|
+
secure: true,
|
|
8948
|
+
format: "json",
|
|
8949
|
+
...params,
|
|
8950
|
+
}),
|
|
8951
|
+
|
|
8952
|
+
/**
|
|
8953
|
+
* No description
|
|
8954
|
+
*
|
|
8955
|
+
* @tags AiGuardrail
|
|
8956
|
+
* @name GetAiGuardrails
|
|
8957
|
+
* @summary Get all guardrails
|
|
8958
|
+
* @request GET:/api/ai/guardrails
|
|
8959
|
+
* @secure
|
|
8960
|
+
* @response `200` `(AiGuardrail)[]` OK
|
|
8961
|
+
*/
|
|
8962
|
+
getAiGuardrails: (params: RequestParams = {}) =>
|
|
8963
|
+
this.request<AiGuardrail[], any>({
|
|
8964
|
+
path: `/api/ai/guardrails`,
|
|
8965
|
+
method: "GET",
|
|
8966
|
+
secure: true,
|
|
8967
|
+
format: "json",
|
|
8968
|
+
...params,
|
|
8969
|
+
}),
|
|
8970
|
+
|
|
8971
|
+
/**
|
|
8972
|
+
* No description
|
|
8973
|
+
*
|
|
8974
|
+
* @tags AiGuardrail
|
|
8975
|
+
* @name CreateAiGuardrail
|
|
8976
|
+
* @summary Create custom guardrail
|
|
8977
|
+
* @request POST:/api/ai/guardrails
|
|
8978
|
+
* @secure
|
|
8979
|
+
* @response `201` `AiGuardrail` Created
|
|
8980
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
8981
|
+
*/
|
|
8982
|
+
createAiGuardrail: (
|
|
8983
|
+
data: CreateAiGuardrailRequest,
|
|
8984
|
+
params: RequestParams = {},
|
|
8985
|
+
) =>
|
|
8986
|
+
this.request<AiGuardrail, ProblemDetails>({
|
|
8987
|
+
path: `/api/ai/guardrails`,
|
|
8988
|
+
method: "POST",
|
|
8989
|
+
body: data,
|
|
8990
|
+
secure: true,
|
|
8991
|
+
type: "application/json",
|
|
8992
|
+
format: "json",
|
|
8993
|
+
...params,
|
|
8994
|
+
}),
|
|
8995
|
+
|
|
8996
|
+
/**
|
|
8997
|
+
* No description
|
|
8998
|
+
*
|
|
8999
|
+
* @tags AiGuardrail
|
|
9000
|
+
* @name GetAiGuardrail
|
|
9001
|
+
* @summary Get guardrail by ID
|
|
9002
|
+
* @request GET:/api/ai/guardrails/{id}
|
|
9003
|
+
* @secure
|
|
9004
|
+
* @response `200` `AiGuardrail` OK
|
|
9005
|
+
* @response `404` `ProblemDetails` Not Found
|
|
9006
|
+
*/
|
|
9007
|
+
getAiGuardrail: (id: string, params: RequestParams = {}) =>
|
|
9008
|
+
this.request<AiGuardrail, ProblemDetails>({
|
|
9009
|
+
path: `/api/ai/guardrails/${id}`,
|
|
9010
|
+
method: "GET",
|
|
9011
|
+
secure: true,
|
|
9012
|
+
format: "json",
|
|
9013
|
+
...params,
|
|
9014
|
+
}),
|
|
9015
|
+
|
|
9016
|
+
/**
|
|
9017
|
+
* No description
|
|
9018
|
+
*
|
|
9019
|
+
* @tags AiGuardrail
|
|
9020
|
+
* @name UpdateAiGuardrail
|
|
9021
|
+
* @summary Update guardrail
|
|
9022
|
+
* @request PUT:/api/ai/guardrails/{id}
|
|
9023
|
+
* @secure
|
|
9024
|
+
* @response `200` `AiGuardrail` OK
|
|
9025
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
9026
|
+
* @response `404` `ProblemDetails` Not Found
|
|
9027
|
+
*/
|
|
9028
|
+
updateAiGuardrail: (
|
|
9029
|
+
id: string,
|
|
9030
|
+
data: UpdateAiGuardrailRequest,
|
|
9031
|
+
params: RequestParams = {},
|
|
9032
|
+
) =>
|
|
9033
|
+
this.request<AiGuardrail, ProblemDetails>({
|
|
9034
|
+
path: `/api/ai/guardrails/${id}`,
|
|
9035
|
+
method: "PUT",
|
|
9036
|
+
body: data,
|
|
9037
|
+
secure: true,
|
|
9038
|
+
type: "application/json",
|
|
9039
|
+
format: "json",
|
|
9040
|
+
...params,
|
|
9041
|
+
}),
|
|
9042
|
+
|
|
9043
|
+
/**
|
|
9044
|
+
* No description
|
|
9045
|
+
*
|
|
9046
|
+
* @tags AiGuardrail
|
|
9047
|
+
* @name DeleteAiGuardrail
|
|
9048
|
+
* @summary Delete guardrail
|
|
9049
|
+
* @request DELETE:/api/ai/guardrails/{id}
|
|
9050
|
+
* @secure
|
|
9051
|
+
* @response `204` `void` No Content
|
|
9052
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
9053
|
+
* @response `404` `ProblemDetails` Not Found
|
|
9054
|
+
*/
|
|
9055
|
+
deleteAiGuardrail: (id: string, params: RequestParams = {}) =>
|
|
9056
|
+
this.request<void, ProblemDetails>({
|
|
9057
|
+
path: `/api/ai/guardrails/${id}`,
|
|
9058
|
+
method: "DELETE",
|
|
9059
|
+
secure: true,
|
|
9060
|
+
...params,
|
|
9061
|
+
}),
|
|
9062
|
+
|
|
9063
|
+
/**
|
|
9064
|
+
* No description
|
|
9065
|
+
*
|
|
9066
|
+
* @tags AiGuardrail
|
|
9067
|
+
* @name ToggleAiGuardrail
|
|
9068
|
+
* @summary Toggle guardrail enabled/disabled
|
|
9069
|
+
* @request PATCH:/api/ai/guardrails/{id}/toggle
|
|
9070
|
+
* @secure
|
|
9071
|
+
* @response `200` `AiGuardrail` OK
|
|
9072
|
+
* @response `404` `ProblemDetails` Not Found
|
|
9073
|
+
*/
|
|
9074
|
+
toggleAiGuardrail: (id: string, params: RequestParams = {}) =>
|
|
9075
|
+
this.request<AiGuardrail, ProblemDetails>({
|
|
9076
|
+
path: `/api/ai/guardrails/${id}/toggle`,
|
|
9077
|
+
method: "PATCH",
|
|
9078
|
+
secure: true,
|
|
9079
|
+
format: "json",
|
|
9080
|
+
...params,
|
|
9081
|
+
}),
|
|
9082
|
+
|
|
9083
|
+
/**
|
|
9084
|
+
* No description
|
|
9085
|
+
*
|
|
9086
|
+
* @tags AiPrompt
|
|
9087
|
+
* @name GetAiAvailablePrompts
|
|
9088
|
+
* @summary Get available prompts for current user
|
|
9089
|
+
* @request GET:/api/ai/prompts/available
|
|
9090
|
+
* @secure
|
|
9091
|
+
* @response `200` `(AiPromptSummary)[]` OK
|
|
9092
|
+
*/
|
|
9093
|
+
getAiAvailablePrompts: (
|
|
9094
|
+
query?: {
|
|
9095
|
+
documentType?: string;
|
|
9096
|
+
},
|
|
9097
|
+
params: RequestParams = {},
|
|
9098
|
+
) =>
|
|
9099
|
+
this.request<AiPromptSummary[], any>({
|
|
9100
|
+
path: `/api/ai/prompts/available`,
|
|
9101
|
+
method: "GET",
|
|
9102
|
+
query: query,
|
|
9103
|
+
secure: true,
|
|
9104
|
+
format: "json",
|
|
9105
|
+
...params,
|
|
9106
|
+
}),
|
|
9107
|
+
|
|
9108
|
+
/**
|
|
9109
|
+
* No description
|
|
9110
|
+
*
|
|
9111
|
+
* @tags AiTokenUsageAdmin
|
|
9112
|
+
* @name SearchAiAccountTokenUsage
|
|
9113
|
+
* @summary Search accounts by current-month AI token usage and classification
|
|
9114
|
+
* @request POST:/api/ai/token-usage/search
|
|
9115
|
+
* @secure
|
|
9116
|
+
* @response `200` `AiAccountUsageOverviewPaginated` OK
|
|
9117
|
+
*/
|
|
9118
|
+
searchAiAccountTokenUsage: (
|
|
9119
|
+
data: SearchCriteria,
|
|
9120
|
+
query?: {
|
|
9121
|
+
/** @format int32 */
|
|
9122
|
+
pageSize?: number;
|
|
9123
|
+
/** @format int32 */
|
|
9124
|
+
pageNumber?: number;
|
|
9125
|
+
sortBy?: string;
|
|
9126
|
+
sortDirection?: string;
|
|
9127
|
+
},
|
|
9128
|
+
params: RequestParams = {},
|
|
9129
|
+
) =>
|
|
9130
|
+
this.request<AiAccountUsageOverviewPaginated, any>({
|
|
9131
|
+
path: `/api/ai/token-usage/search`,
|
|
9132
|
+
method: "POST",
|
|
9133
|
+
query: query,
|
|
9134
|
+
body: data,
|
|
9135
|
+
secure: true,
|
|
9136
|
+
type: "application/json",
|
|
9137
|
+
format: "json",
|
|
9138
|
+
...params,
|
|
9139
|
+
}),
|
|
9140
|
+
|
|
9141
|
+
/**
|
|
9142
|
+
* No description
|
|
9143
|
+
*
|
|
9144
|
+
* @tags AiTokenUsageAdmin
|
|
9145
|
+
* @name GetAiAccountTokenUsage
|
|
9146
|
+
* @summary Get an account's current-month AI token usage
|
|
9147
|
+
* @request GET:/api/ai/token-usage/{accountId}
|
|
9148
|
+
* @secure
|
|
9149
|
+
* @response `200` `AiTokenBudgetStatus` OK
|
|
9150
|
+
*/
|
|
9151
|
+
getAiAccountTokenUsage: (accountId: string, params: RequestParams = {}) =>
|
|
9152
|
+
this.request<AiTokenBudgetStatus, any>({
|
|
9153
|
+
path: `/api/ai/token-usage/${accountId}`,
|
|
9154
|
+
method: "GET",
|
|
9155
|
+
secure: true,
|
|
9156
|
+
format: "json",
|
|
9157
|
+
...params,
|
|
9158
|
+
}),
|
|
9159
|
+
|
|
9160
|
+
/**
|
|
9161
|
+
* No description
|
|
9162
|
+
*
|
|
9163
|
+
* @tags AiTokenUsageAdmin
|
|
9164
|
+
* @name GetAiAccountTokenUsageHistory
|
|
9165
|
+
* @summary Get an account's monthly AI token usage history
|
|
9166
|
+
* @request GET:/api/ai/token-usage/{accountId}/history
|
|
9167
|
+
* @secure
|
|
9168
|
+
* @response `200` `AiTokenUsageWindowPaginated` OK
|
|
9169
|
+
*/
|
|
9170
|
+
getAiAccountTokenUsageHistory: (
|
|
9171
|
+
accountId: string,
|
|
9172
|
+
query?: {
|
|
9173
|
+
/** @format int32 */
|
|
9174
|
+
pageSize?: number;
|
|
9175
|
+
/** @format int32 */
|
|
9176
|
+
pageNumber?: number;
|
|
9177
|
+
sortBy?: string;
|
|
9178
|
+
sortDirection?: string;
|
|
9179
|
+
},
|
|
9180
|
+
params: RequestParams = {},
|
|
9181
|
+
) =>
|
|
9182
|
+
this.request<AiTokenUsageWindowPaginated, any>({
|
|
9183
|
+
path: `/api/ai/token-usage/${accountId}/history`,
|
|
9184
|
+
method: "GET",
|
|
9185
|
+
query: query,
|
|
9186
|
+
secure: true,
|
|
9187
|
+
format: "json",
|
|
9188
|
+
...params,
|
|
9189
|
+
}),
|
|
9190
|
+
|
|
9191
|
+
/**
|
|
9192
|
+
* No description
|
|
9193
|
+
*
|
|
9194
|
+
* @tags AiTokenUsageAdmin
|
|
9195
|
+
* @name SetAiAccountTokenLimit
|
|
9196
|
+
* @summary Set or raise an account's monthly AI token limit
|
|
9197
|
+
* @request PUT:/api/ai/token-usage/{accountId}/limit
|
|
9198
|
+
* @secure
|
|
9199
|
+
* @response `200` `AiTokenBudgetStatus` OK
|
|
9200
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
9201
|
+
*/
|
|
9202
|
+
setAiAccountTokenLimit: (
|
|
9203
|
+
accountId: string,
|
|
9204
|
+
data: UpdateAiAccountTokenLimitRequest,
|
|
9205
|
+
params: RequestParams = {},
|
|
9206
|
+
) =>
|
|
9207
|
+
this.request<AiTokenBudgetStatus, ProblemDetails>({
|
|
9208
|
+
path: `/api/ai/token-usage/${accountId}/limit`,
|
|
9209
|
+
method: "PUT",
|
|
9210
|
+
body: data,
|
|
9211
|
+
secure: true,
|
|
9212
|
+
type: "application/json",
|
|
9213
|
+
format: "json",
|
|
9214
|
+
...params,
|
|
9215
|
+
}),
|
|
9216
|
+
|
|
9217
|
+
/**
|
|
9218
|
+
* No description
|
|
9219
|
+
*
|
|
9220
|
+
* @tags AiUrlSource
|
|
9221
|
+
* @name GetAiUrlSources
|
|
9222
|
+
* @summary Get all URL sources
|
|
9223
|
+
* @request GET:/api/ai/url-sources
|
|
9224
|
+
* @secure
|
|
9225
|
+
* @response `200` `(AiUrlSource)[]` OK
|
|
9226
|
+
*/
|
|
9227
|
+
getAiUrlSources: (params: RequestParams = {}) =>
|
|
9228
|
+
this.request<AiUrlSource[], any>({
|
|
9229
|
+
path: `/api/ai/url-sources`,
|
|
9230
|
+
method: "GET",
|
|
9231
|
+
secure: true,
|
|
9232
|
+
format: "json",
|
|
9233
|
+
...params,
|
|
9234
|
+
}),
|
|
9235
|
+
|
|
9236
|
+
/**
|
|
9237
|
+
* No description
|
|
9238
|
+
*
|
|
9239
|
+
* @tags AiUrlSource
|
|
9240
|
+
* @name CreateAiUrlSource
|
|
9241
|
+
* @summary Create URL source
|
|
9242
|
+
* @request POST:/api/ai/url-sources
|
|
9243
|
+
* @secure
|
|
9244
|
+
* @response `201` `AiUrlSource` Created
|
|
9245
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
9246
|
+
* @response `409` `ProblemDetails` Conflict
|
|
9247
|
+
*/
|
|
9248
|
+
createAiUrlSource: (
|
|
9249
|
+
data: CreateAiUrlSourceRequest,
|
|
9250
|
+
params: RequestParams = {},
|
|
9251
|
+
) =>
|
|
9252
|
+
this.request<AiUrlSource, ProblemDetails>({
|
|
9253
|
+
path: `/api/ai/url-sources`,
|
|
6965
9254
|
method: "POST",
|
|
6966
9255
|
body: data,
|
|
6967
9256
|
secure: true,
|
|
6968
9257
|
type: "application/json",
|
|
9258
|
+
format: "json",
|
|
6969
9259
|
...params,
|
|
6970
9260
|
}),
|
|
6971
9261
|
|
|
6972
9262
|
/**
|
|
6973
9263
|
* No description
|
|
6974
9264
|
*
|
|
6975
|
-
* @tags
|
|
6976
|
-
* @name
|
|
6977
|
-
* @summary Get
|
|
6978
|
-
* @request GET:/api/
|
|
9265
|
+
* @tags AiUrlSource
|
|
9266
|
+
* @name GetAiUrlSource
|
|
9267
|
+
* @summary Get URL source by ID
|
|
9268
|
+
* @request GET:/api/ai/url-sources/{id}
|
|
6979
9269
|
* @secure
|
|
6980
|
-
* @response `200` `
|
|
9270
|
+
* @response `200` `AiUrlSource` OK
|
|
9271
|
+
* @response `404` `ProblemDetails` Not Found
|
|
6981
9272
|
*/
|
|
6982
|
-
|
|
6983
|
-
this.request<
|
|
6984
|
-
path: `/api/
|
|
9273
|
+
getAiUrlSource: (id: string, params: RequestParams = {}) =>
|
|
9274
|
+
this.request<AiUrlSource, ProblemDetails>({
|
|
9275
|
+
path: `/api/ai/url-sources/${id}`,
|
|
6985
9276
|
method: "GET",
|
|
6986
9277
|
secure: true,
|
|
6987
9278
|
format: "json",
|
|
@@ -6991,18 +9282,24 @@ export class Api<
|
|
|
6991
9282
|
/**
|
|
6992
9283
|
* No description
|
|
6993
9284
|
*
|
|
6994
|
-
* @tags
|
|
6995
|
-
* @name
|
|
6996
|
-
* @summary
|
|
6997
|
-
* @request
|
|
9285
|
+
* @tags AiUrlSource
|
|
9286
|
+
* @name UpdateAiUrlSource
|
|
9287
|
+
* @summary Update URL source
|
|
9288
|
+
* @request PUT:/api/ai/url-sources/{id}
|
|
6998
9289
|
* @secure
|
|
6999
|
-
* @response `
|
|
7000
|
-
* @response `
|
|
9290
|
+
* @response `200` `AiUrlSource` OK
|
|
9291
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
9292
|
+
* @response `404` `ProblemDetails` Not Found
|
|
9293
|
+
* @response `409` `ProblemDetails` Conflict
|
|
7001
9294
|
*/
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
9295
|
+
updateAiUrlSource: (
|
|
9296
|
+
id: string,
|
|
9297
|
+
data: UpdateAiUrlSourceRequest,
|
|
9298
|
+
params: RequestParams = {},
|
|
9299
|
+
) =>
|
|
9300
|
+
this.request<AiUrlSource, ProblemDetails>({
|
|
9301
|
+
path: `/api/ai/url-sources/${id}`,
|
|
9302
|
+
method: "PUT",
|
|
7006
9303
|
body: data,
|
|
7007
9304
|
secure: true,
|
|
7008
9305
|
type: "application/json",
|
|
@@ -7013,47 +9310,37 @@ export class Api<
|
|
|
7013
9310
|
/**
|
|
7014
9311
|
* No description
|
|
7015
9312
|
*
|
|
7016
|
-
* @tags
|
|
7017
|
-
* @name
|
|
7018
|
-
* @summary
|
|
7019
|
-
* @request
|
|
9313
|
+
* @tags AiUrlSource
|
|
9314
|
+
* @name DeleteAiUrlSource
|
|
9315
|
+
* @summary Delete URL source
|
|
9316
|
+
* @request DELETE:/api/ai/url-sources/{id}
|
|
7020
9317
|
* @secure
|
|
7021
|
-
* @response `
|
|
7022
|
-
* @response `
|
|
9318
|
+
* @response `204` `void` No Content
|
|
9319
|
+
* @response `404` `ProblemDetails` Not Found
|
|
7023
9320
|
*/
|
|
7024
|
-
|
|
7025
|
-
this.request<
|
|
7026
|
-
path: `/api/
|
|
7027
|
-
method: "
|
|
9321
|
+
deleteAiUrlSource: (id: string, params: RequestParams = {}) =>
|
|
9322
|
+
this.request<void, ProblemDetails>({
|
|
9323
|
+
path: `/api/ai/url-sources/${id}`,
|
|
9324
|
+
method: "DELETE",
|
|
7028
9325
|
secure: true,
|
|
7029
|
-
format: "json",
|
|
7030
9326
|
...params,
|
|
7031
9327
|
}),
|
|
7032
9328
|
|
|
7033
9329
|
/**
|
|
7034
9330
|
* No description
|
|
7035
9331
|
*
|
|
7036
|
-
* @tags
|
|
7037
|
-
* @name
|
|
7038
|
-
* @summary
|
|
7039
|
-
* @request
|
|
9332
|
+
* @tags AiUrlSource
|
|
9333
|
+
* @name ToggleAiUrlSource
|
|
9334
|
+
* @summary Toggle URL source active/inactive
|
|
9335
|
+
* @request PATCH:/api/ai/url-sources/{id}/toggle
|
|
7040
9336
|
* @secure
|
|
7041
|
-
* @response `
|
|
9337
|
+
* @response `200` `AiUrlSource` OK
|
|
7042
9338
|
* @response `404` `ProblemDetails` Not Found
|
|
7043
|
-
* @response `422` `ProblemDetails` Unprocessable Content
|
|
7044
9339
|
*/
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
hardDelete?: boolean;
|
|
7050
|
-
},
|
|
7051
|
-
params: RequestParams = {},
|
|
7052
|
-
) =>
|
|
7053
|
-
this.request<Account, ProblemDetails>({
|
|
7054
|
-
path: `/api/accounts/${id}`,
|
|
7055
|
-
method: "DELETE",
|
|
7056
|
-
query: query,
|
|
9340
|
+
toggleAiUrlSource: (id: string, params: RequestParams = {}) =>
|
|
9341
|
+
this.request<AiUrlSource, ProblemDetails>({
|
|
9342
|
+
path: `/api/ai/url-sources/${id}/toggle`,
|
|
9343
|
+
method: "PATCH",
|
|
7057
9344
|
secure: true,
|
|
7058
9345
|
format: "json",
|
|
7059
9346
|
...params,
|
|
@@ -7062,26 +9349,48 @@ export class Api<
|
|
|
7062
9349
|
/**
|
|
7063
9350
|
* No description
|
|
7064
9351
|
*
|
|
7065
|
-
* @tags
|
|
7066
|
-
* @name
|
|
7067
|
-
* @summary
|
|
7068
|
-
* @request
|
|
9352
|
+
* @tags AiUsage
|
|
9353
|
+
* @name GetAiUsage
|
|
9354
|
+
* @summary Get the current account's AI token usage for the active monthly window
|
|
9355
|
+
* @request GET:/api/ai/usage
|
|
7069
9356
|
* @secure
|
|
7070
|
-
* @response `200` `
|
|
7071
|
-
* @response `404` `ProblemDetails` Not Found
|
|
7072
|
-
* @response `422` `ProblemDetails` Unprocessable Content
|
|
9357
|
+
* @response `200` `AiTokenBudgetStatus` OK
|
|
7073
9358
|
*/
|
|
7074
|
-
|
|
7075
|
-
|
|
7076
|
-
|
|
9359
|
+
getAiUsage: (params: RequestParams = {}) =>
|
|
9360
|
+
this.request<AiTokenBudgetStatus, any>({
|
|
9361
|
+
path: `/api/ai/usage`,
|
|
9362
|
+
method: "GET",
|
|
9363
|
+
secure: true,
|
|
9364
|
+
format: "json",
|
|
9365
|
+
...params,
|
|
9366
|
+
}),
|
|
9367
|
+
|
|
9368
|
+
/**
|
|
9369
|
+
* No description
|
|
9370
|
+
*
|
|
9371
|
+
* @tags AiUsage
|
|
9372
|
+
* @name GetAiUsageHistory
|
|
9373
|
+
* @summary Get the current account's monthly AI token usage history
|
|
9374
|
+
* @request GET:/api/ai/usage/history
|
|
9375
|
+
* @secure
|
|
9376
|
+
* @response `200` `AiTokenUsageWindowPaginated` OK
|
|
9377
|
+
*/
|
|
9378
|
+
getAiUsageHistory: (
|
|
9379
|
+
query?: {
|
|
9380
|
+
/** @format int32 */
|
|
9381
|
+
pageSize?: number;
|
|
9382
|
+
/** @format int32 */
|
|
9383
|
+
pageNumber?: number;
|
|
9384
|
+
sortBy?: string;
|
|
9385
|
+
sortDirection?: string;
|
|
9386
|
+
},
|
|
7077
9387
|
params: RequestParams = {},
|
|
7078
9388
|
) =>
|
|
7079
|
-
this.request<
|
|
7080
|
-
path: `/api/
|
|
7081
|
-
method: "
|
|
7082
|
-
|
|
9389
|
+
this.request<AiTokenUsageWindowPaginated, any>({
|
|
9390
|
+
path: `/api/ai/usage/history`,
|
|
9391
|
+
method: "GET",
|
|
9392
|
+
query: query,
|
|
7083
9393
|
secure: true,
|
|
7084
|
-
type: "application/json",
|
|
7085
9394
|
format: "json",
|
|
7086
9395
|
...params,
|
|
7087
9396
|
}),
|
|
@@ -8813,6 +11122,47 @@ export class Api<
|
|
|
8813
11122
|
...params,
|
|
8814
11123
|
}),
|
|
8815
11124
|
|
|
11125
|
+
/**
|
|
11126
|
+
* No description
|
|
11127
|
+
*
|
|
11128
|
+
* @tags Encompass Packages
|
|
11129
|
+
* @name GetLoanPackages
|
|
11130
|
+
* @request GET:/api/los/encompass/eclose/loans/{loanId}/packages
|
|
11131
|
+
* @secure
|
|
11132
|
+
* @response `200` `EncompassPackageList` OK
|
|
11133
|
+
* @response `400` `EncompassError` Bad Request
|
|
11134
|
+
* @response `401` `EncompassError` Unauthorized
|
|
11135
|
+
* @response `403` `EncompassError` Forbidden
|
|
11136
|
+
* @response `500` `EncompassError` Internal Server Error
|
|
11137
|
+
*/
|
|
11138
|
+
getLoanPackages: (
|
|
11139
|
+
loanId: string,
|
|
11140
|
+
query?: {
|
|
11141
|
+
status?: string;
|
|
11142
|
+
/**
|
|
11143
|
+
* @format int32
|
|
11144
|
+
* @default 1
|
|
11145
|
+
*/
|
|
11146
|
+
page?: number;
|
|
11147
|
+
/**
|
|
11148
|
+
* @format int32
|
|
11149
|
+
* @default 20
|
|
11150
|
+
*/
|
|
11151
|
+
pageSize?: number;
|
|
11152
|
+
sortBy?: string;
|
|
11153
|
+
sortDirection?: string;
|
|
11154
|
+
},
|
|
11155
|
+
params: RequestParams = {},
|
|
11156
|
+
) =>
|
|
11157
|
+
this.request<EncompassPackageList, EncompassError>({
|
|
11158
|
+
path: `/api/los/encompass/eclose/loans/${loanId}/packages`,
|
|
11159
|
+
method: "GET",
|
|
11160
|
+
query: query,
|
|
11161
|
+
secure: true,
|
|
11162
|
+
format: "json",
|
|
11163
|
+
...params,
|
|
11164
|
+
}),
|
|
11165
|
+
|
|
8816
11166
|
/**
|
|
8817
11167
|
* No description
|
|
8818
11168
|
*
|
|
@@ -9819,31 +12169,6 @@ export class Api<
|
|
|
9819
12169
|
...params,
|
|
9820
12170
|
}),
|
|
9821
12171
|
|
|
9822
|
-
/**
|
|
9823
|
-
* No description
|
|
9824
|
-
*
|
|
9825
|
-
* @tags LegacyLoan
|
|
9826
|
-
* @name CreateLegacyLoanDocument
|
|
9827
|
-
* @summary Create Document
|
|
9828
|
-
* @request POST:/api/los/loan/generatedocument
|
|
9829
|
-
* @deprecated
|
|
9830
|
-
* @secure
|
|
9831
|
-
* @response `200` `DocumentDataRequest` OK
|
|
9832
|
-
*/
|
|
9833
|
-
createLegacyLoanDocument: (
|
|
9834
|
-
data: GenerateDocumentRequest,
|
|
9835
|
-
params: RequestParams = {},
|
|
9836
|
-
) =>
|
|
9837
|
-
this.request<DocumentDataRequest, any>({
|
|
9838
|
-
path: `/api/los/loan/generatedocument`,
|
|
9839
|
-
method: "POST",
|
|
9840
|
-
body: data,
|
|
9841
|
-
secure: true,
|
|
9842
|
-
type: "application/json",
|
|
9843
|
-
format: "json",
|
|
9844
|
-
...params,
|
|
9845
|
-
}),
|
|
9846
|
-
|
|
9847
12172
|
/**
|
|
9848
12173
|
* No description
|
|
9849
12174
|
*
|
|
@@ -11009,6 +13334,34 @@ export class Api<
|
|
|
11009
13334
|
...params,
|
|
11010
13335
|
}),
|
|
11011
13336
|
|
|
13337
|
+
/**
|
|
13338
|
+
* No description
|
|
13339
|
+
*
|
|
13340
|
+
* @tags LoanDocuments
|
|
13341
|
+
* @name ClassifyLoanDocumentManually
|
|
13342
|
+
* @summary Manually classify a loan document
|
|
13343
|
+
* @request POST:/api/loans/{loanId}/documents/{documentId}/classify-manual
|
|
13344
|
+
* @secure
|
|
13345
|
+
* @response `200` `LoanDocument` OK
|
|
13346
|
+
* @response `404` `ProblemDetails` Not Found
|
|
13347
|
+
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
13348
|
+
*/
|
|
13349
|
+
classifyLoanDocumentManually: (
|
|
13350
|
+
loanId: string,
|
|
13351
|
+
documentId: string,
|
|
13352
|
+
data: ManualDocumentClassificationRequest,
|
|
13353
|
+
params: RequestParams = {},
|
|
13354
|
+
) =>
|
|
13355
|
+
this.request<LoanDocument, ProblemDetails | UnprocessableEntity>({
|
|
13356
|
+
path: `/api/loans/${loanId}/documents/${documentId}/classify-manual`,
|
|
13357
|
+
method: "POST",
|
|
13358
|
+
body: data,
|
|
13359
|
+
secure: true,
|
|
13360
|
+
type: "application/json",
|
|
13361
|
+
format: "json",
|
|
13362
|
+
...params,
|
|
13363
|
+
}),
|
|
13364
|
+
|
|
11012
13365
|
/**
|
|
11013
13366
|
* @description Re-attempts to push a failed document to LOS
|
|
11014
13367
|
*
|
|
@@ -11448,6 +13801,32 @@ export class Api<
|
|
|
11448
13801
|
...params,
|
|
11449
13802
|
}),
|
|
11450
13803
|
|
|
13804
|
+
/**
|
|
13805
|
+
* No description
|
|
13806
|
+
*
|
|
13807
|
+
* @tags LoanNotification
|
|
13808
|
+
* @name SendESignatureReminder
|
|
13809
|
+
* @summary Send eSignature Reminder
|
|
13810
|
+
* @request POST:/api/loans/{loanID}/notifications/esignature-reminders
|
|
13811
|
+
* @secure
|
|
13812
|
+
* @response `204` `void` No Content
|
|
13813
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
13814
|
+
* @response `404` `ProblemDetails` Not Found
|
|
13815
|
+
*/
|
|
13816
|
+
sendESignatureReminder: (
|
|
13817
|
+
loanId: string,
|
|
13818
|
+
data: SendESignatureReminderRequest,
|
|
13819
|
+
params: RequestParams = {},
|
|
13820
|
+
) =>
|
|
13821
|
+
this.request<void, ProblemDetails>({
|
|
13822
|
+
path: `/api/loans/${loanId}/notifications/esignature-reminders`,
|
|
13823
|
+
method: "POST",
|
|
13824
|
+
body: data,
|
|
13825
|
+
secure: true,
|
|
13826
|
+
type: "application/json",
|
|
13827
|
+
...params,
|
|
13828
|
+
}),
|
|
13829
|
+
|
|
11451
13830
|
/**
|
|
11452
13831
|
* No description
|
|
11453
13832
|
*
|
|
@@ -12139,30 +14518,6 @@ export class Api<
|
|
|
12139
14518
|
...params,
|
|
12140
14519
|
}),
|
|
12141
14520
|
|
|
12142
|
-
/**
|
|
12143
|
-
* No description
|
|
12144
|
-
*
|
|
12145
|
-
* @tags LoanTaskDocuments
|
|
12146
|
-
* @name CreateLoanTaskDocumentBucket
|
|
12147
|
-
* @summary Create Bucket
|
|
12148
|
-
* @request POST:/api/loans/{loanID}/tasks/{loanTaskId}/documents/bucket
|
|
12149
|
-
* @secure
|
|
12150
|
-
* @response `204` `UserLoanTask` No Content
|
|
12151
|
-
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
12152
|
-
*/
|
|
12153
|
-
createLoanTaskDocumentBucket: (
|
|
12154
|
-
loanId: string,
|
|
12155
|
-
loanTaskId: string,
|
|
12156
|
-
params: RequestParams = {},
|
|
12157
|
-
) =>
|
|
12158
|
-
this.request<UserLoanTask, UnprocessableEntity>({
|
|
12159
|
-
path: `/api/loans/${loanId}/tasks/${loanTaskId}/documents/bucket`,
|
|
12160
|
-
method: "POST",
|
|
12161
|
-
secure: true,
|
|
12162
|
-
format: "json",
|
|
12163
|
-
...params,
|
|
12164
|
-
}),
|
|
12165
|
-
|
|
12166
14521
|
/**
|
|
12167
14522
|
* No description
|
|
12168
14523
|
*
|
|
@@ -12172,16 +14527,21 @@ export class Api<
|
|
|
12172
14527
|
* @request POST:/api/loans/{loanID}/tasks/reminders/outstanding
|
|
12173
14528
|
* @secure
|
|
12174
14529
|
* @response `204` `void` No Content
|
|
14530
|
+
* @response `400` `ProblemDetails` Bad Request
|
|
12175
14531
|
* @response `404` `ProblemDetails` Not Found
|
|
14532
|
+
* @response `422` `ProblemDetails` Unprocessable Content
|
|
12176
14533
|
*/
|
|
12177
14534
|
sendOutstandingLoanTaskNotification: (
|
|
12178
14535
|
loanId: string,
|
|
14536
|
+
data: SendOutstandingTaskReminderRequest,
|
|
12179
14537
|
params: RequestParams = {},
|
|
12180
14538
|
) =>
|
|
12181
14539
|
this.request<void, ProblemDetails>({
|
|
12182
14540
|
path: `/api/loans/${loanId}/tasks/reminders/outstanding`,
|
|
12183
14541
|
method: "POST",
|
|
14542
|
+
body: data,
|
|
12184
14543
|
secure: true,
|
|
14544
|
+
type: "application/json",
|
|
12185
14545
|
...params,
|
|
12186
14546
|
}),
|
|
12187
14547
|
|
|
@@ -12841,56 +15201,6 @@ export class Api<
|
|
|
12841
15201
|
...params,
|
|
12842
15202
|
}),
|
|
12843
15203
|
|
|
12844
|
-
/**
|
|
12845
|
-
* No description
|
|
12846
|
-
*
|
|
12847
|
-
* @tags Notifications
|
|
12848
|
-
* @name SendNotificationForLoan
|
|
12849
|
-
* @summary Send Notification for Loan
|
|
12850
|
-
* @request POST:/api/notifications
|
|
12851
|
-
* @deprecated
|
|
12852
|
-
* @secure
|
|
12853
|
-
* @response `200` `void` OK
|
|
12854
|
-
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
12855
|
-
*/
|
|
12856
|
-
sendNotificationForLoan: (
|
|
12857
|
-
data: SendNotificationForLoanRequest,
|
|
12858
|
-
params: RequestParams = {},
|
|
12859
|
-
) =>
|
|
12860
|
-
this.request<void, UnprocessableEntity>({
|
|
12861
|
-
path: `/api/notifications`,
|
|
12862
|
-
method: "POST",
|
|
12863
|
-
body: data,
|
|
12864
|
-
secure: true,
|
|
12865
|
-
type: "application/json",
|
|
12866
|
-
...params,
|
|
12867
|
-
}),
|
|
12868
|
-
|
|
12869
|
-
/**
|
|
12870
|
-
* No description
|
|
12871
|
-
*
|
|
12872
|
-
* @tags Notifications
|
|
12873
|
-
* @name SendTestNotificationForLoan
|
|
12874
|
-
* @summary Send Test Notification for Loan
|
|
12875
|
-
* @request POST:/api/notifications/test
|
|
12876
|
-
* @deprecated
|
|
12877
|
-
* @secure
|
|
12878
|
-
* @response `200` `void` OK
|
|
12879
|
-
* @response `422` `UnprocessableEntity` Unprocessable Content
|
|
12880
|
-
*/
|
|
12881
|
-
sendTestNotificationForLoan: (
|
|
12882
|
-
data: TestSendNotificationForLoanRequest,
|
|
12883
|
-
params: RequestParams = {},
|
|
12884
|
-
) =>
|
|
12885
|
-
this.request<void, UnprocessableEntity>({
|
|
12886
|
-
path: `/api/notifications/test`,
|
|
12887
|
-
method: "POST",
|
|
12888
|
-
body: data,
|
|
12889
|
-
secure: true,
|
|
12890
|
-
type: "application/json",
|
|
12891
|
-
...params,
|
|
12892
|
-
}),
|
|
12893
|
-
|
|
12894
15204
|
/**
|
|
12895
15205
|
* No description
|
|
12896
15206
|
*
|