@matech/thebigpos-sdk 2.44.4-rc0 → 2.45.1-rc0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -28,7 +28,7 @@ export type LoanNameSuffix = "Jr" | "Sr" | "II" | "III" | "IV" | "V" | "VI" | "V
28
28
  export type LoanNamePrefix = "Mr" | "Mrs" | "Ms";
29
29
  export type LoanMilitaryServiceType = "Current" | "RetiredDischargedSeparated" | "NonActivatedNationalGuard" | "SurvivingSpouse";
30
30
  export type LoanMaritalStatus = "Married" | "Separated" | "Unmarried";
31
- export type LoanLogType = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent";
31
+ export type LoanLogType = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent" | "DocumentClassified";
32
32
  export type LoanLienPosition = "First" | "Subordinate";
33
33
  export type LoanLiabilityType = "Revolving" | "Installment" | "Open30Day" | "Lease" | "Other";
34
34
  export type LoanLanguagePreference = "English" | "Chinese" | "Korean" | "Spanish" | "Tagalog" | "Vietnamese" | "Other";
@@ -41,6 +41,7 @@ export type LoanHispanicEthnicity = "Mexican" | "PuertoRican" | "Cuban" | "Other
41
41
  export type LoanGiftSource = "CommunityNonProfit" | "Employer" | "FederalAgency" | "LocalAgency" | "Relative" | "ReligiousNonProfit" | "StateAgency" | "UnmarriedPartner" | "Lender" | "Other";
42
42
  export type LoanGiftAssetType = "Cash" | "Asset" | "Equity";
43
43
  export type LoanGenderType = "Male" | "Female";
44
+ export type LoanDocumentType = "W2" | "Paystub" | "Form1099" | "Form1099Int" | "Form1099Misc" | "Form1099Nec" | "Form1099R" | "Form1099G" | "Form1099Div" | "Form1099Ssa" | "FederalTaxReturn1040" | "TaxReturnScheduleC" | "TaxReturnScheduleD" | "TaxReturnScheduleE" | "Form1065" | "Form1120" | "Form1120S" | "ProfitAndLossStatement" | "VerificationOfEmployment" | "BankStatement" | "InvestmentStatement" | "CreditCardStatement" | "MortgageStatement" | "PayoffStatement" | "HoaDocuments" | "UtilityBill" | "IdentityDocument" | "DemographicAddendum" | "Ssa89" | "Vba260551" | "Hud92900B" | "Check" | "Invoice" | "Receipt" | "LoanApplication1003" | "UnderwritingTransmittal1008" | "Other" | "SalesContract" | "TitleCommitment" | "DriversLicense" | "VerificationOfIncome" | "VerificationOfAssets" | "FloodCertificate" | "FraudReport" | "AddendumToSalesContract" | "GiftLetter" | "CpaLetter" | "TaxBill" | "CondoQuestionnaire" | "CondoBudget" | "CondoBylaws" | "RentalAgreements" | "Lease" | "HazardInsurance" | "VaCertificateOfEligibility" | "Appraisal" | "CreditReport" | "CondoMasterPolicy";
44
45
  export type LoanDocumentFolderPermissionLevel = "None" | "Read" | "Write" | "Manage";
45
46
  export type LoanCitizenship = "USCitizen" | "PermanentResidentAlien" | "NonPermanentResidentAlien";
46
47
  export type LoanBankruptcyType = "Chapter7" | "Chapter11" | "Chapter12" | "Chapter13";
@@ -62,12 +63,25 @@ export type CustomFieldAccessLevel = "NoAccess" | "ReadOnly" | "ReadWrite";
62
63
  export type ConsentType = "Econsent" | "CreditAuthorization" | "Tcpa";
63
64
  export type ConsentSource = "TheBigPOS" | "ConsumerConnect";
64
65
  export type ConsentLosSyncStatus = "NotStarted" | "Failed" | "Success";
66
+ export type ClassificationSource = "Textract" | "Llm" | "Manual";
65
67
  export type BranchType = "Mortgage" | "RealEstate";
66
68
  export type BorrowerType = "Borrower" | "CoBorrower" | "Unknown";
67
69
  export type BorrowerRelationship = "NotApplicable" | "Spouse" | "NonSpouse";
68
70
  export type BorrowerApplicationStatus = "Draft" | "Complete";
69
71
  export type BillingType = "ClosedLoan" | "LoanOfficer";
70
72
  export type AuditChangeType = "Created" | "Modified" | "SoftDeleted" | "HardDeleted" | "Restored" | "Deactivated" | "Reactivated";
73
+ export type AiUrlSourceScope = "FullDomain" | "SpecificPath";
74
+ export type AiUrlSourceCategory = "Regulatory" | "Guidelines" | "MarketData" | "Custom";
75
+ export type AiStructuredDataType = "Table" | "DocumentAnalysis" | "DocumentList" | "GeneratedDocument";
76
+ export type AiQueryTemplateName = "PipelineSummary" | "LoanDetail" | "LoansClosing" | "StaleLoans" | "LoansByType" | "LoansByOfficer" | "AverageLoanAmount" | "LockedVsUnlocked" | "LoansByPurpose" | "LoansByPropertyState" | "LoansByRate" | "DtiLtvRisk" | "DisclosureTracking" | "NewLoans" | "ExpiringLocks" | "ClosedLoans" | "VerificationGaps" | "CreditScoreDistribution" | "OccupancyMix" | "PropertyTypeMix" | "FirstTimeHomebuyer" | "SelfEmployed" | "ReferralSourcePerformance" | "AmortizationMix" | "TimeToClose" | "ConversionFunnel" | "MonthlyProduction" | "PaymentAffordability" | "DownPaymentCashToClose" | "ApprovalExpirations" | "ApplicationCompleteness" | "LosSyncHealth" | "DeclarationsRisk" | "MilitaryEligibility" | "OutstandingTasks" | "ConsentTracking";
77
+ export type AiPromptCategory = "DocumentAnalysis" | "DataQuery" | "General" | "Action";
78
+ export type AiOutputType = "Text" | "Document";
79
+ export type AiIntent = "Greeting" | "Invalid" | "Relevant" | "LoanSpecific" | "DocumentList" | "GeneralKnowledge" | "Blocked" | "Action" | "ConversationMeta" | "Capabilities" | "UsageReport";
80
+ export type AiGuardrailCategory = "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
81
+ export type AiDisplayHint = "Table" | "SummaryCards" | "RankedList" | "Comparison" | "ExecutiveBrief";
82
+ export type AiConfigEntityType = "Prompt" | "Guardrail" | "CanonicalField" | "UrlSource" | "AdminSettings" | "AccountTokenSettings" | "AccountSettings";
83
+ export type AiConfigChangeAction = "Created" | "Updated" | "Deleted" | "Toggled";
84
+ export type AiAuditEventType = "Error" | "GuardrailBlockedPre" | "GuardrailPassedPre" | "IntentClassified" | "LoanResolvedFromMessage" | "DocumentNotFound" | "GuardrailBlockedPost" | "GuardrailPassedPost" | "DocumentAnalyzed" | "DocumentList" | "DocumentResolutionAmbiguous" | "ResponseGenerated" | "ParametersExtracted" | "QueryExecuted" | "LoanContextNotFound" | "LoanContextLoaded" | "GuardrailBlockedBedrock" | "PromptMatched" | "QueryCondensed" | "IntentParseFailed" | "LoanSearchTermDiscarded" | "CanonicalFieldsSelected";
71
85
  export type AddressFamily = "Unspecified" | "Unix" | "InterNetwork" | "ImpLink" | "Pup" | "Chaos" | "NS" | "Ipx" | "Iso" | "Osi" | "Ecma" | "DataKit" | "Ccitt" | "Sna" | "DecNet" | "DataLink" | "Lat" | "HyperChannel" | "AppleTalk" | "NetBios" | "VoiceView" | "FireFox" | "Banyan" | "Atm" | "InterNetworkV6" | "Cluster" | "Ieee12844" | "Irda" | "NetworkDesigners" | "Max" | "Packet" | "ControllerAreaNetwork" | "Unknown";
72
86
  export interface ASOSettings {
73
87
  enabled: boolean;
@@ -147,11 +161,13 @@ export interface AccountSettings {
147
161
  smsNumber?: string | null;
148
162
  ssoHostOverride?: string | null;
149
163
  isEarlyAdopter: boolean;
164
+ isAIEnabled: boolean;
150
165
  }
151
166
  export interface AccountSettingsRequest {
152
167
  isSmsEnabled: boolean;
153
168
  smsNumber?: string | null;
154
169
  isEarlyAdopter: boolean;
170
+ isAIEnabled: boolean;
155
171
  }
156
172
  export interface Action {
157
173
  /** @format uuid */
@@ -295,6 +311,404 @@ export interface AffordabilityCalculatorRequest {
295
311
  /** @format double */
296
312
  annualInsurance: number;
297
313
  }
314
+ export interface AiAccountSettings {
315
+ bedrockModelId: string;
316
+ isUsingAppDefault: boolean;
317
+ }
318
+ export interface AiAccountSettingsRequest {
319
+ bedrockModelId?: string | null;
320
+ }
321
+ export interface AiAccountUsageOverview {
322
+ /** @format uuid */
323
+ accountId: string;
324
+ accountName: string;
325
+ /** @format int32 */
326
+ limit: number;
327
+ /** @format int64 */
328
+ used: number;
329
+ /** @format int64 */
330
+ remaining: number;
331
+ /** @format double */
332
+ percentUsed: number;
333
+ limitReached: boolean;
334
+ /** @format date-time */
335
+ windowStart: string;
336
+ /** @format date-time */
337
+ windowEnd: string;
338
+ }
339
+ export interface AiAccountUsageOverviewPaginated {
340
+ rows: AiAccountUsageOverview[];
341
+ pagination: Pagination;
342
+ /** @format int64 */
343
+ count: number;
344
+ }
345
+ export interface AiAdminSettings {
346
+ bedrockModelId: string;
347
+ /** @format int32 */
348
+ maxTokens: number;
349
+ /** @format double */
350
+ temperature: number;
351
+ /** @format int32 */
352
+ conversationContextTurns: number;
353
+ /** @format int32 */
354
+ requestTimeoutSeconds: number;
355
+ /** @format int32 */
356
+ defaultTokenLimit: number;
357
+ bedrockRegion: string;
358
+ }
359
+ export interface AiAdminSettingsRequest {
360
+ bedrockModelId?: string | null;
361
+ /** @format int32 */
362
+ maxTokens?: number | null;
363
+ /** @format double */
364
+ temperature?: number | null;
365
+ /** @format int32 */
366
+ conversationContextTurns?: number | null;
367
+ /** @format int32 */
368
+ requestTimeoutSeconds?: number | null;
369
+ /** @format int32 */
370
+ defaultTokenLimit?: number | null;
371
+ }
372
+ export interface AiAdminStats {
373
+ /** @format int32 */
374
+ totalRequests: number;
375
+ /** @format int32 */
376
+ blockedRequests: number;
377
+ /** @format double */
378
+ averageResponseTimeMs: number;
379
+ /** @format int32 */
380
+ totalInputTokens: number;
381
+ /** @format int32 */
382
+ totalOutputTokens: number;
383
+ /** @format int32 */
384
+ totalTokens: number;
385
+ intentDistribution: Record<string, number>;
386
+ topQueryTemplates: Record<string, number>;
387
+ period: string;
388
+ }
389
+ export interface AiAuditLog {
390
+ /** @format uuid */
391
+ id: string;
392
+ /** @format uuid */
393
+ requestId: string;
394
+ /** @format uuid */
395
+ userId: string;
396
+ /** @format uuid */
397
+ conversationId?: string | null;
398
+ /** @format uuid */
399
+ messageId?: string | null;
400
+ eventType: AiAuditLogEventTypeEnum;
401
+ modelId?: string | null;
402
+ /** @format int32 */
403
+ inputTokens?: number | null;
404
+ /** @format int32 */
405
+ outputTokens?: number | null;
406
+ /** @format int32 */
407
+ latencyMs?: number | null;
408
+ bedrockRequestId?: string | null;
409
+ guardrailName?: string | null;
410
+ guardrailCategory?: string | null;
411
+ rawRequest?: string | null;
412
+ rawResponse?: string | null;
413
+ details?: any | null;
414
+ /** @format date-time */
415
+ createdAt: string;
416
+ }
417
+ export interface AiAuditLogPaginated {
418
+ rows: AiAuditLog[];
419
+ pagination: Pagination;
420
+ /** @format int64 */
421
+ count: number;
422
+ }
423
+ export interface AiCanonicalField {
424
+ /** @format uuid */
425
+ id: string;
426
+ canonicalName: string;
427
+ displayName: string;
428
+ description: string;
429
+ allowedRoles: string[];
430
+ efPath?: string | null;
431
+ isPii: boolean;
432
+ isActive: boolean;
433
+ dataSource: string;
434
+ isDefault: boolean;
435
+ category?: string | null;
436
+ jsonPropertyName?: string | null;
437
+ textractKey?: string | null;
438
+ textractKeyAliases: string[];
439
+ hasAccountOverride: boolean;
440
+ /** @format date-time */
441
+ createdAt: string;
442
+ /** @format date-time */
443
+ updatedAt?: string | null;
444
+ }
445
+ export interface AiChat {
446
+ /** @format uuid */
447
+ conversationId: string;
448
+ /** @format uuid */
449
+ messageId: string;
450
+ response: AiChatBody;
451
+ metadata: AiChatMetadata;
452
+ }
453
+ export interface AiChatBody {
454
+ text: string;
455
+ data?: AiChatStructuredData | null;
456
+ }
457
+ export interface AiChatMessage {
458
+ /** @format uuid */
459
+ id: string;
460
+ userMessage: string;
461
+ assistantResponse: string;
462
+ intent?: AiIntent | null;
463
+ fieldsAccessed?: string[] | null;
464
+ data?: AiChatStructuredData | null;
465
+ /** @format date-time */
466
+ createdAt: string;
467
+ }
468
+ export interface AiChatMessagePaginated {
469
+ rows: AiChatMessage[];
470
+ pagination: Pagination;
471
+ /** @format int64 */
472
+ count: number;
473
+ }
474
+ export interface AiChatMetadata {
475
+ intent: AiChatMetadataIntentEnum;
476
+ fieldsAccessed: string[];
477
+ /** @format int64 */
478
+ queryTimeMs: number;
479
+ /** @format int64 */
480
+ llmTimeMs: number;
481
+ /** @format int32 */
482
+ inputTokens: number;
483
+ /** @format int32 */
484
+ outputTokens: number;
485
+ modelId?: string | null;
486
+ wasBlocked: boolean;
487
+ blockedReason?: string | null;
488
+ tokenBudget?: AiTokenBudgetStatus | null;
489
+ }
490
+ export interface AiChatRequest {
491
+ message: string;
492
+ /** @format uuid */
493
+ conversationId?: string | null;
494
+ /** @format uuid */
495
+ loanId?: string | null;
496
+ documentIds?: string[] | null;
497
+ /** @format uuid */
498
+ promptId?: string | null;
499
+ }
500
+ export interface AiChatStructuredData {
501
+ type: AiChatStructuredDataTypeEnum;
502
+ displayHint?: AiDisplayHint | null;
503
+ detectedDocumentType?: string | null;
504
+ columns: string[];
505
+ rows: string[][];
506
+ /** @format uuid */
507
+ generatedDocumentId?: string | null;
508
+ generatedFileName?: string | null;
509
+ }
510
+ export interface AiConfigChangeLog {
511
+ /** @format uuid */
512
+ id: string;
513
+ /** @format uuid */
514
+ accountId?: string | null;
515
+ /** @format uuid */
516
+ actorUserId: string;
517
+ entityType: AiConfigChangeLogEntityTypeEnum;
518
+ /** @format uuid */
519
+ entityId?: string | null;
520
+ action: AiConfigChangeLogActionEnum;
521
+ before?: any | null;
522
+ after?: any | null;
523
+ /** @format date-time */
524
+ createdAt: string;
525
+ }
526
+ export interface AiConfigChangeLogPaginated {
527
+ rows: AiConfigChangeLog[];
528
+ pagination: Pagination;
529
+ /** @format int64 */
530
+ count: number;
531
+ }
532
+ export interface AiConversationAuditSummary {
533
+ /** @format uuid */
534
+ conversationId: string;
535
+ /** @format uuid */
536
+ userId: string;
537
+ userName?: string | null;
538
+ userRole?: string | null;
539
+ name?: string | null;
540
+ /** @format int32 */
541
+ turnCount: number;
542
+ /** @format int32 */
543
+ completedCount: number;
544
+ /** @format int32 */
545
+ blockedCount: number;
546
+ /** @format int32 */
547
+ errorCount: number;
548
+ /** @format int32 */
549
+ totalTokens: number;
550
+ /** @format date-time */
551
+ lastActivityAt: string;
552
+ }
553
+ export interface AiConversationAuditSummaryPaginated {
554
+ rows: AiConversationAuditSummary[];
555
+ pagination: Pagination;
556
+ /** @format int64 */
557
+ count: number;
558
+ }
559
+ export interface AiConversationDetail {
560
+ /** @format uuid */
561
+ id: string;
562
+ name?: string | null;
563
+ isPinned: boolean;
564
+ /** @format date-time */
565
+ createdAt: string;
566
+ /** @format date-time */
567
+ updatedAt?: string | null;
568
+ /** @format int32 */
569
+ messageCount: number;
570
+ }
571
+ export interface AiConversationListItem {
572
+ /** @format uuid */
573
+ id: string;
574
+ /** @format uuid */
575
+ userId: string;
576
+ name?: string | null;
577
+ preview: string;
578
+ /** @format int32 */
579
+ messageCount: number;
580
+ isPinned: boolean;
581
+ /** @format date-time */
582
+ createdAt: string;
583
+ /** @format date-time */
584
+ updatedAt?: string | null;
585
+ }
586
+ export interface AiConversationListItemPaginated {
587
+ rows: AiConversationListItem[];
588
+ pagination: Pagination;
589
+ /** @format int64 */
590
+ count: number;
591
+ }
592
+ export interface AiGuardrail {
593
+ /** @format uuid */
594
+ id: string;
595
+ name: string;
596
+ category: AiGuardrailCategoryEnum;
597
+ description?: string | null;
598
+ keywords: string[];
599
+ responseTemplate: string;
600
+ isDefault: boolean;
601
+ isEnabled: boolean;
602
+ hasAccountOverride: boolean;
603
+ /** @format date-time */
604
+ createdAt: string;
605
+ /** @format date-time */
606
+ updatedAt?: string | null;
607
+ }
608
+ export interface AiPrompt {
609
+ /** @format uuid */
610
+ id: string;
611
+ title: string;
612
+ slug?: string | null;
613
+ description: string;
614
+ documentTypes: string[];
615
+ applicableUrlSourceIds: string[];
616
+ allowedRoles: string[];
617
+ systemPrompt: string;
618
+ /** @format int32 */
619
+ sortOrder: number;
620
+ isDefault: boolean;
621
+ /** @format uuid */
622
+ accountId?: string | null;
623
+ isActive: boolean;
624
+ category?: AiPromptCategory | null;
625
+ queryTemplateName?: AiQueryTemplateName | null;
626
+ displayHint?: AiDisplayHint | null;
627
+ bedrockModelId?: string | null;
628
+ requiredDataSources?: string[] | null;
629
+ outputType?: AiOutputType | null;
630
+ hasAccountOverride: boolean;
631
+ /** @format date-time */
632
+ createdAt: string;
633
+ /** @format date-time */
634
+ updatedAt?: string | null;
635
+ }
636
+ export interface AiPromptSummary {
637
+ /** @format uuid */
638
+ id: string;
639
+ title: string;
640
+ slug?: string | null;
641
+ description: string;
642
+ documentTypes: string[];
643
+ applicableUrlSourceIds: string[];
644
+ /** @format int32 */
645
+ sortOrder: number;
646
+ category?: AiPromptCategory | null;
647
+ queryTemplateName?: AiQueryTemplateName | null;
648
+ displayHint?: AiDisplayHint | null;
649
+ bedrockModelId?: string | null;
650
+ requiredDataSources?: string[] | null;
651
+ outputType?: AiOutputType | null;
652
+ }
653
+ export interface AiTokenBudgetStatus {
654
+ /** @format int32 */
655
+ limit: number;
656
+ /** @format int64 */
657
+ used: number;
658
+ /** @format int64 */
659
+ inputTokens: number;
660
+ /** @format int64 */
661
+ outputTokens: number;
662
+ /** @format int64 */
663
+ remaining: number;
664
+ /** @format double */
665
+ percentUsed: number;
666
+ /** @format date-time */
667
+ windowStart: string;
668
+ /** @format date-time */
669
+ windowEnd: string;
670
+ limitReached: boolean;
671
+ }
672
+ export interface AiTokenUsageWindow {
673
+ /** @format date-time */
674
+ windowStart: string;
675
+ /** @format date-time */
676
+ windowEnd: string;
677
+ /** @format int32 */
678
+ limit: number;
679
+ /** @format int64 */
680
+ used: number;
681
+ /** @format int64 */
682
+ inputTokens: number;
683
+ /** @format int64 */
684
+ outputTokens: number;
685
+ /** @format double */
686
+ percentUsed: number;
687
+ limitReached: boolean;
688
+ }
689
+ export interface AiTokenUsageWindowPaginated {
690
+ rows: AiTokenUsageWindow[];
691
+ pagination: Pagination;
692
+ /** @format int64 */
693
+ count: number;
694
+ }
695
+ export interface AiUrlSource {
696
+ /** @format uuid */
697
+ id: string;
698
+ slug?: string | null;
699
+ name: string;
700
+ url: string;
701
+ description?: string | null;
702
+ category: AiUrlSourceCategoryEnum;
703
+ scope: AiUrlSourceScopeEnum;
704
+ isActive: boolean;
705
+ isDefault: boolean;
706
+ hasAccountOverride: boolean;
707
+ /** @format date-time */
708
+ createdAt: string;
709
+ /** @format date-time */
710
+ updatedAt?: string | null;
711
+ }
298
712
  export interface AllowImpersonationRequest {
299
713
  email: string;
300
714
  }
@@ -710,6 +1124,45 @@ export interface CreateAccountRequest {
710
1124
  losIntegration: LOSIntegration;
711
1125
  billingSettings: AccountBillingRequest;
712
1126
  }
1127
+ export interface CreateAiCanonicalFieldRequest {
1128
+ displayName: string;
1129
+ description: string;
1130
+ allowedRoles: string[];
1131
+ isPii: boolean;
1132
+ dataSource: string;
1133
+ category?: string | null;
1134
+ }
1135
+ export interface CreateAiGuardrailRequest {
1136
+ name: string;
1137
+ category: CreateAiGuardrailRequestCategoryEnum;
1138
+ description?: string | null;
1139
+ keywords: string[];
1140
+ responseTemplate: string;
1141
+ }
1142
+ export interface CreateAiPromptRequest {
1143
+ title: string;
1144
+ slug?: string | null;
1145
+ description: string;
1146
+ documentTypes: string[];
1147
+ applicableUrlSourceIds: string[];
1148
+ allowedRoles: string[];
1149
+ systemPrompt: string;
1150
+ /** @format int32 */
1151
+ sortOrder: number;
1152
+ category?: AiPromptCategory | null;
1153
+ queryTemplateName?: AiQueryTemplateName | null;
1154
+ displayHint?: AiDisplayHint | null;
1155
+ bedrockModelId?: string | null;
1156
+ requiredDataSources?: string[] | null;
1157
+ outputType?: AiOutputType | null;
1158
+ }
1159
+ export interface CreateAiUrlSourceRequest {
1160
+ name: string;
1161
+ url: string;
1162
+ description?: string | null;
1163
+ category: CreateAiUrlSourceRequestCategoryEnum;
1164
+ scope: CreateAiUrlSourceRequestScopeEnum;
1165
+ }
713
1166
  export interface CreateBranchRequest {
714
1167
  name: string;
715
1168
  /** @format uuid */
@@ -1602,6 +2055,13 @@ export interface GenerateDocumentRequest {
1602
2055
  preview: boolean;
1603
2056
  recipients: string[];
1604
2057
  }
2058
+ export interface GenerateSystemPrompt {
2059
+ systemPrompt: string;
2060
+ }
2061
+ export interface GenerateSystemPromptRequest {
2062
+ description: string;
2063
+ category: GenerateSystemPromptRequestCategoryEnum;
2064
+ }
1605
2065
  export interface GetApplications {
1606
2066
  applications: ApplicationRowData[];
1607
2067
  }
@@ -2737,6 +3197,13 @@ export interface LoanDocument {
2737
3197
  failoverDocumentPath?: string | null;
2738
3198
  /** @format date-time */
2739
3199
  sensitiveDataPurgedOn?: string | null;
3200
+ observedDocumentType?: LoanDocumentType | null;
3201
+ classificationSource?: ClassificationSource | null;
3202
+ verified: boolean;
3203
+ /** @format date-time */
3204
+ classifiedAt?: string | null;
3205
+ classificationMismatch: boolean;
3206
+ classificationMismatchReason?: string | null;
2740
3207
  }
2741
3208
  export interface LoanDocumentFolder {
2742
3209
  /** @format uuid */
@@ -3335,6 +3802,9 @@ export interface LosWebhook {
3335
3802
  events: string[];
3336
3803
  enableSubscription: boolean;
3337
3804
  }
3805
+ export interface ManualDocumentClassificationRequest {
3806
+ documentType: ManualDocumentClassificationRequestDocumentTypeEnum;
3807
+ }
3338
3808
  export interface MdmUser {
3339
3809
  user_email?: string | null;
3340
3810
  user_id?: string | null;
@@ -3630,6 +4100,9 @@ export interface PendingTasksSummary {
3630
4100
  total: number;
3631
4101
  borrowers: BorrowerCount[];
3632
4102
  }
4103
+ export interface PinAiConversationRequest {
4104
+ isPinned: boolean;
4105
+ }
3633
4106
  export interface PostLoanComparisonPdfRequest {
3634
4107
  /** @format uuid */
3635
4108
  siteConfigurationID: string;
@@ -3779,6 +4252,9 @@ export interface RegisterUserRequest {
3779
4252
  /** @format uuid */
3780
4253
  inviteCode?: string | null;
3781
4254
  }
4255
+ export interface RenameAiConversationRequest {
4256
+ name: string;
4257
+ }
3782
4258
  export interface RequestImpersonationRequest {
3783
4259
  email: string;
3784
4260
  }
@@ -3858,6 +4334,13 @@ export interface SSOTokenRequest {
3858
4334
  email: string;
3859
4335
  redirectUri?: string | null;
3860
4336
  }
4337
+ export interface SearchCriteria {
4338
+ searchText?: string | null;
4339
+ }
4340
+ export interface SendESignatureReminderRequest {
4341
+ /** @format uuid */
4342
+ userId: string;
4343
+ }
3861
4344
  export interface SendForgotPasswordRequest {
3862
4345
  email: string;
3863
4346
  }
@@ -4541,6 +5024,13 @@ export interface SocialSurveyRecord {
4541
5024
  /** @format date-time */
4542
5025
  reviewCompletedTimeStamp?: string | null;
4543
5026
  }
5027
+ export interface SupportedModel {
5028
+ modelId: string;
5029
+ displayName: string;
5030
+ provider: string;
5031
+ description?: string | null;
5032
+ isDefault: boolean;
5033
+ }
4544
5034
  export interface SurveyEmailRequest {
4545
5035
  loanOfficerEmailAddress: string;
4546
5036
  }
@@ -4764,6 +5254,47 @@ export interface UpdateAccountRequest {
4764
5254
  asoSettings?: ASOSettings | null;
4765
5255
  settings: AccountSettingsRequest;
4766
5256
  }
5257
+ export interface UpdateAiAccountTokenLimitRequest {
5258
+ /** @format int32 */
5259
+ tokenLimit: number;
5260
+ }
5261
+ export interface UpdateAiCanonicalFieldRequest {
5262
+ displayName: string;
5263
+ description: string;
5264
+ allowedRoles: string[];
5265
+ isPii: boolean;
5266
+ category?: string | null;
5267
+ }
5268
+ export interface UpdateAiGuardrailRequest {
5269
+ name: string;
5270
+ category: UpdateAiGuardrailRequestCategoryEnum;
5271
+ description?: string | null;
5272
+ keywords: string[];
5273
+ responseTemplate: string;
5274
+ }
5275
+ export interface UpdateAiPromptRequest {
5276
+ title: string;
5277
+ description: string;
5278
+ documentTypes: string[];
5279
+ applicableUrlSourceIds: string[];
5280
+ allowedRoles: string[];
5281
+ systemPrompt: string;
5282
+ /** @format int32 */
5283
+ sortOrder: number;
5284
+ category?: AiPromptCategory | null;
5285
+ queryTemplateName?: AiQueryTemplateName | null;
5286
+ displayHint?: AiDisplayHint | null;
5287
+ bedrockModelId?: string | null;
5288
+ requiredDataSources?: string[] | null;
5289
+ outputType?: AiOutputType | null;
5290
+ }
5291
+ export interface UpdateAiUrlSourceRequest {
5292
+ name: string;
5293
+ url: string;
5294
+ description?: string | null;
5295
+ category: UpdateAiUrlSourceRequestCategoryEnum;
5296
+ scope: UpdateAiUrlSourceRequestScopeEnum;
5297
+ }
4767
5298
  export interface UpdateCustomFieldDefinitionRequest {
4768
5299
  isRequired: boolean;
4769
5300
  /** @format int32 */
@@ -5280,11 +5811,22 @@ export interface Workflow {
5280
5811
  icon: string;
5281
5812
  }
5282
5813
  export type AccountBillingRequestBillingTypeEnum = "ClosedLoan" | "LoanOfficer";
5814
+ export type AiAuditLogEventTypeEnum = "Error" | "GuardrailBlockedPre" | "GuardrailPassedPre" | "IntentClassified" | "LoanResolvedFromMessage" | "DocumentNotFound" | "GuardrailBlockedPost" | "GuardrailPassedPost" | "DocumentAnalyzed" | "DocumentList" | "DocumentResolutionAmbiguous" | "ResponseGenerated" | "ParametersExtracted" | "QueryExecuted" | "LoanContextNotFound" | "LoanContextLoaded" | "GuardrailBlockedBedrock" | "PromptMatched" | "QueryCondensed" | "IntentParseFailed" | "LoanSearchTermDiscarded" | "CanonicalFieldsSelected";
5815
+ export type AiChatMetadataIntentEnum = "Greeting" | "Invalid" | "Relevant" | "LoanSpecific" | "DocumentList" | "GeneralKnowledge" | "Blocked" | "Action" | "ConversationMeta" | "Capabilities" | "UsageReport";
5816
+ export type AiChatStructuredDataTypeEnum = "Table" | "DocumentAnalysis" | "DocumentList" | "GeneratedDocument";
5817
+ export type AiConfigChangeLogEntityTypeEnum = "Prompt" | "Guardrail" | "CanonicalField" | "UrlSource" | "AdminSettings" | "AccountTokenSettings" | "AccountSettings";
5818
+ export type AiConfigChangeLogActionEnum = "Created" | "Updated" | "Deleted" | "Toggled";
5819
+ export type AiGuardrailCategoryEnum = "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
5820
+ export type AiUrlSourceCategoryEnum = "Regulatory" | "Guidelines" | "MarketData" | "Custom";
5821
+ export type AiUrlSourceScopeEnum = "FullDomain" | "SpecificPath";
5283
5822
  export type AuditLogEntryChangeTypeEnum = "Created" | "Modified" | "SoftDeleted" | "HardDeleted" | "Restored" | "Deactivated" | "Reactivated";
5284
5823
  export type BorrowerCountRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5285
5824
  export type BorrowerIdentityRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5286
5825
  export type CreateAccessScopeRequestScopeTypeEnum = "User" | "Branch";
5287
5826
  export type CreateAccountRequestEnvironmentEnum = "Development" | "Staging" | "UAT" | "Production";
5827
+ export type CreateAiGuardrailRequestCategoryEnum = "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
5828
+ export type CreateAiUrlSourceRequestCategoryEnum = "Regulatory" | "Guidelines" | "MarketData" | "Custom";
5829
+ export type CreateAiUrlSourceRequestScopeEnum = "FullDomain" | "SpecificPath";
5288
5830
  export type CreateCustomFieldDefinitionRequestDataTypeEnum = "String" | "Number" | "Decimal" | "Boolean" | "Date" | "SingleSelect" | "MultiSelect";
5289
5831
  export type CreateCustomFieldDefinitionRequestEntityTypeEnum = "Loan";
5290
5832
  export type CreateGroupMemberRequestLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
@@ -5309,6 +5851,7 @@ export type EncompassCredentialsRequestSigningMethodEnum = "ConsumerConnect" | "
5309
5851
  export type EncompassRequestLogOperationTypeEnum = "FieldUpdate" | "ConsentUpdate" | "DocumentSync" | "MilestoneUpdate" | "DocumentAttachment" | "General" | "FieldReader";
5310
5852
  export type EncompassRequestLogOutcomeEnum = "Success" | "Failure" | "PartialSuccess";
5311
5853
  export type FusionReportFilterFilterTypeEnum = "DateGreaterThanOrEqualTo" | "DateGreaterThan" | "DateLessThan" | "DateLessThanOrEqualTo" | "DateEquals" | "DateDoesntEqual" | "DateNonEmpty" | "DateEmpty" | "StringContains" | "StringEquals" | "StringNotEmpty" | "StringNotEquals" | "StringNotContains";
5854
+ export type GenerateSystemPromptRequestCategoryEnum = "DocumentAnalysis" | "DataQuery" | "General" | "Action";
5312
5855
  export type IpAddressAddressFamilyEnum = "Unspecified" | "Unix" | "InterNetwork" | "ImpLink" | "Pup" | "Chaos" | "NS" | "Ipx" | "Iso" | "Osi" | "Ecma" | "DataKit" | "Ccitt" | "Sna" | "DecNet" | "DataLink" | "Lat" | "HyperChannel" | "AppleTalk" | "NetBios" | "VoiceView" | "FireFox" | "Banyan" | "Atm" | "InterNetworkV6" | "Cluster" | "Ieee12844" | "Irda" | "NetworkDesigners" | "Max" | "Packet" | "ControllerAreaNetwork" | "Unknown";
5313
5856
  export type LoanSigningMethodEnum = "ConsumerConnect" | "POSF";
5314
5857
  export type LoanBorrowerApplicationStatusEnum = "Draft" | "Complete";
@@ -5321,19 +5864,23 @@ export type LoanImportStatusEnum = "WaitingProcess" | "InProgress" | "Completed"
5321
5864
  export type LoanImportImportModeEnum = "All" | "NewOnly" | "UpdateOnly";
5322
5865
  export type LoanImportLogLevelEnum = "None" | "Info" | "Warning" | "Error";
5323
5866
  export type LoanLogLevelEnum = "None" | "Info" | "Warning" | "Error";
5324
- export type LoanLogTypeEnum = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent";
5867
+ export type LoanLogTypeEnum = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent" | "DocumentClassified";
5325
5868
  export type LoanLogDetailLevelEnum = "None" | "Info" | "Warning" | "Error";
5326
- export type LoanLogDetailTypeEnum = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent";
5869
+ export type LoanLogDetailTypeEnum = "Loan" | "Queue" | "POSFlagChanged" | "Verification" | "DocumentUploaded" | "LoanCreated" | "WorkflowSubmitted" | "UserInvitationSent" | "CoBorrowerAdded" | "TaskCompleted" | "LoanStatusChanged" | "Consent" | "SensitiveDataPurge" | "ClosingDateUpdated" | "ConsumerConnectAssociation" | "TaskReminderSent" | "DocumentClassified";
5327
5870
  export type LoanTaskStatusSummaryStatusEnum = "Outstanding" | "Pending" | "Completed" | "Rejected" | "Unknown";
5328
5871
  export type LoanUserLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5329
5872
  export type LosOperationTrackingStatusEnum = "Pending" | "Success" | "Failed" | "ConfigurationError" | "PermanentFailure" | "Locked";
5330
5873
  export type LosSyncStepSeverityEnum = "Success" | "Info" | "Warning" | "Error";
5874
+ export type ManualDocumentClassificationRequestDocumentTypeEnum = "W2" | "Paystub" | "Form1099" | "Form1099Int" | "Form1099Misc" | "Form1099Nec" | "Form1099R" | "Form1099G" | "Form1099Div" | "Form1099Ssa" | "FederalTaxReturn1040" | "TaxReturnScheduleC" | "TaxReturnScheduleD" | "TaxReturnScheduleE" | "Form1065" | "Form1120" | "Form1120S" | "ProfitAndLossStatement" | "VerificationOfEmployment" | "BankStatement" | "InvestmentStatement" | "CreditCardStatement" | "MortgageStatement" | "PayoffStatement" | "HoaDocuments" | "UtilityBill" | "IdentityDocument" | "DemographicAddendum" | "Ssa89" | "Vba260551" | "Hud92900B" | "Check" | "Invoice" | "Receipt" | "LoanApplication1003" | "UnderwritingTransmittal1008" | "Other" | "SalesContract" | "TitleCommitment" | "DriversLicense" | "VerificationOfIncome" | "VerificationOfAssets" | "FloodCertificate" | "FraudReport" | "AddendumToSalesContract" | "GiftLetter" | "CpaLetter" | "TaxBill" | "CondoQuestionnaire" | "CondoBudget" | "CondoBylaws" | "RentalAgreements" | "Lease" | "HazardInsurance" | "VaCertificateOfEligibility" | "Appraisal" | "CreditReport" | "CondoMasterPolicy";
5331
5875
  export type SiteConfigurationTypeEnum = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5332
5876
  export type SiteConfigurationByUrlTypeEnum = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5333
5877
  export type SiteConfigurationReducedTypeEnum = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5334
5878
  export type SiteConfigurationRequestTypeEnum = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5335
5879
  export type SiteConfigurationSummaryTypeEnum = "None" | "Account" | "Corporate" | "Branch" | "LoanOfficer" | "Partner";
5336
5880
  export type UnregisteredBorrowerRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5881
+ export type UpdateAiGuardrailRequestCategoryEnum = "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
5882
+ export type UpdateAiUrlSourceRequestCategoryEnum = "Regulatory" | "Guidelines" | "MarketData" | "Custom";
5883
+ export type UpdateAiUrlSourceRequestScopeEnum = "FullDomain" | "SpecificPath";
5337
5884
  export type UserDraftRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
5338
5885
  export type UserGroupAccessScopeScopeTypeEnum = "User" | "Branch";
5339
5886
  export type UserLoanRoleEnum = "Borrower" | "CoBorrower" | "NonBorrower" | "LoanOfficer" | "LoanProcessor" | "LoanOfficerAssistant" | "SupportingLoanOfficer" | "BuyerAgent" | "SellerAgent" | "TitleInsuranceAgent" | "EscrowAgent" | "SettlementAgent" | "Admin";
@@ -5385,7 +5932,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
5385
5932
  }
5386
5933
  /**
5387
5934
  * @title The Big POS API
5388
- * @version v2.44.2
5935
+ * @version v2.45.0
5389
5936
  * @termsOfService https://www.thebigpos.com/terms-of-use/
5390
5937
  * @contact Mortgage Automation Technologies <support@thebigpos.com> (https://www.thebigpos.com/terms-of-use/)
5391
5938
  */
@@ -5549,12 +6096,844 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5549
6096
  /**
5550
6097
  * No description
5551
6098
  *
5552
- * @tags AuditLog
5553
- * @name SearchAuditLogs
5554
- * @summary Search
5555
- * @request POST:/api/audit-logs/search
6099
+ * @tags AiAccountSettings
6100
+ * @name GetAiAccountSettings
6101
+ * @summary Get account AI settings
6102
+ * @request GET:/api/ai/admin/account-settings
5556
6103
  * @secure
5557
- * @response `200` `AuditLogEntryPaginated` OK
6104
+ * @response `200` `AiAccountSettings` OK
6105
+ */
6106
+ getAiAccountSettings: (params?: RequestParams) => Promise<AxiosResponse<AiAccountSettings, any, {}>>;
6107
+ /**
6108
+ * No description
6109
+ *
6110
+ * @tags AiAccountSettings
6111
+ * @name UpdateAiAccountSettings
6112
+ * @summary Update account AI settings
6113
+ * @request PUT:/api/ai/admin/account-settings
6114
+ * @secure
6115
+ * @response `200` `AiAccountSettings` OK
6116
+ * @response `400` `ProblemDetails` Bad Request
6117
+ */
6118
+ updateAiAccountSettings: (data: AiAccountSettingsRequest, params?: RequestParams) => Promise<AxiosResponse<AiAccountSettings, any, {}>>;
6119
+ /**
6120
+ * No description
6121
+ *
6122
+ * @tags AiAdmin
6123
+ * @name GetAiAuditLogs
6124
+ * @summary Get paginated audit logs
6125
+ * @request GET:/api/ai/admin/audit-logs
6126
+ * @secure
6127
+ * @response `200` `AiAuditLogPaginated` OK
6128
+ */
6129
+ getAiAuditLogs: (query?: {
6130
+ eventType?: AiAuditEventType;
6131
+ /** @format uuid */
6132
+ requestId?: string;
6133
+ /** @format uuid */
6134
+ userId?: string;
6135
+ /** @format uuid */
6136
+ conversationId?: string;
6137
+ blockedOnly?: boolean;
6138
+ /** @format date-time */
6139
+ startDate?: string;
6140
+ /** @format date-time */
6141
+ endDate?: string;
6142
+ /** @format int32 */
6143
+ pageSize?: number;
6144
+ /** @format int32 */
6145
+ pageNumber?: number;
6146
+ sortBy?: string;
6147
+ sortDirection?: string;
6148
+ }, params?: RequestParams) => Promise<AxiosResponse<AiAuditLogPaginated, any, {}>>;
6149
+ /**
6150
+ * No description
6151
+ *
6152
+ * @tags AiAdmin
6153
+ * @name GetAiRequestLifecycle
6154
+ * @summary Get the full event lifecycle of a single AI request
6155
+ * @request GET:/api/ai/admin/audit-logs/request/{requestId}
6156
+ * @secure
6157
+ * @response `200` `(AiAuditLog)[]` OK
6158
+ */
6159
+ getAiRequestLifecycle: (requestId: string, params?: RequestParams) => Promise<AxiosResponse<AiAuditLog[], any, {}>>;
6160
+ /**
6161
+ * No description
6162
+ *
6163
+ * @tags AiAdmin
6164
+ * @name GetAiAuditConversations
6165
+ * @summary List conversations with their audit roll-up — origin user, turns, status, tokens
6166
+ * @request GET:/api/ai/admin/audit-conversations
6167
+ * @secure
6168
+ * @response `200` `AiConversationAuditSummaryPaginated` OK
6169
+ */
6170
+ getAiAuditConversations: (query?: {
6171
+ searchText?: string;
6172
+ /** @format date-time */
6173
+ startDate?: string;
6174
+ /** @format date-time */
6175
+ endDate?: string;
6176
+ /** @format int32 */
6177
+ pageSize?: number;
6178
+ /** @format int32 */
6179
+ pageNumber?: number;
6180
+ sortBy?: string;
6181
+ sortDirection?: string;
6182
+ }, params?: RequestParams) => Promise<AxiosResponse<AiConversationAuditSummaryPaginated, any, {}>>;
6183
+ /**
6184
+ * No description
6185
+ *
6186
+ * @tags AiAdmin
6187
+ * @name GetAiAdminStats
6188
+ * @summary Get AI admin dashboard stats
6189
+ * @request GET:/api/ai/admin/stats
6190
+ * @secure
6191
+ * @response `200` `AiAdminStats` OK
6192
+ */
6193
+ getAiAdminStats: (query?: {
6194
+ /** @format date-time */
6195
+ startDate?: string;
6196
+ /** @format date-time */
6197
+ endDate?: string;
6198
+ }, params?: RequestParams) => Promise<AxiosResponse<AiAdminStats, any, {}>>;
6199
+ /**
6200
+ * No description
6201
+ *
6202
+ * @tags AiAdmin
6203
+ * @name GetAiConfigChanges
6204
+ * @summary Get the AI configuration change history (who changed prompts, guardrails, fields, sources)
6205
+ * @request GET:/api/ai/admin/config-changes
6206
+ * @secure
6207
+ * @response `200` `AiConfigChangeLogPaginated` OK
6208
+ */
6209
+ getAiConfigChanges: (query?: {
6210
+ entityType?: AiConfigEntityType;
6211
+ /** @format uuid */
6212
+ entityId?: string;
6213
+ /** @format uuid */
6214
+ actorUserId?: string;
6215
+ action?: AiConfigChangeAction;
6216
+ /** @format date-time */
6217
+ startDate?: string;
6218
+ /** @format date-time */
6219
+ endDate?: string;
6220
+ /** @format int32 */
6221
+ pageSize?: number;
6222
+ /** @format int32 */
6223
+ pageNumber?: number;
6224
+ sortBy?: string;
6225
+ sortDirection?: string;
6226
+ }, params?: RequestParams) => Promise<AxiosResponse<AiConfigChangeLogPaginated, any, {}>>;
6227
+ /**
6228
+ * No description
6229
+ *
6230
+ * @tags AiAdminPrompt
6231
+ * @name GetAiPrompts
6232
+ * @summary Get all prompts
6233
+ * @request GET:/api/ai/admin/prompts
6234
+ * @secure
6235
+ * @response `200` `(AiPrompt)[]` OK
6236
+ */
6237
+ getAiPrompts: (params?: RequestParams) => Promise<AxiosResponse<AiPrompt[], any, {}>>;
6238
+ /**
6239
+ * No description
6240
+ *
6241
+ * @tags AiAdminPrompt
6242
+ * @name CreateAiPrompt
6243
+ * @summary Create custom prompt
6244
+ * @request POST:/api/ai/admin/prompts
6245
+ * @secure
6246
+ * @response `201` `AiPrompt` Created
6247
+ * @response `400` `ProblemDetails` Bad Request
6248
+ */
6249
+ createAiPrompt: (data: CreateAiPromptRequest, params?: RequestParams) => Promise<AxiosResponse<AiPrompt, any, {}>>;
6250
+ /**
6251
+ * No description
6252
+ *
6253
+ * @tags AiAdminPrompt
6254
+ * @name GetAiPrompt
6255
+ * @summary Get prompt by ID
6256
+ * @request GET:/api/ai/admin/prompts/{id}
6257
+ * @secure
6258
+ * @response `200` `AiPrompt` OK
6259
+ * @response `404` `ProblemDetails` Not Found
6260
+ */
6261
+ getAiPrompt: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiPrompt, any, {}>>;
6262
+ /**
6263
+ * No description
6264
+ *
6265
+ * @tags AiAdminPrompt
6266
+ * @name UpdateAiPrompt
6267
+ * @summary Update prompt
6268
+ * @request PUT:/api/ai/admin/prompts/{id}
6269
+ * @secure
6270
+ * @response `200` `AiPrompt` OK
6271
+ * @response `400` `ProblemDetails` Bad Request
6272
+ * @response `404` `ProblemDetails` Not Found
6273
+ */
6274
+ updateAiPrompt: (id: string, data: UpdateAiPromptRequest, params?: RequestParams) => Promise<AxiosResponse<AiPrompt, any, {}>>;
6275
+ /**
6276
+ * No description
6277
+ *
6278
+ * @tags AiAdminPrompt
6279
+ * @name DeleteAiPrompt
6280
+ * @summary Delete prompt
6281
+ * @request DELETE:/api/ai/admin/prompts/{id}
6282
+ * @secure
6283
+ * @response `204` `void` No Content
6284
+ * @response `400` `ProblemDetails` Bad Request
6285
+ * @response `404` `ProblemDetails` Not Found
6286
+ */
6287
+ deleteAiPrompt: (id: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
6288
+ /**
6289
+ * No description
6290
+ *
6291
+ * @tags AiAdminPrompt
6292
+ * @name ToggleAiPrompt
6293
+ * @summary Toggle prompt active/inactive
6294
+ * @request PATCH:/api/ai/admin/prompts/{id}/toggle
6295
+ * @secure
6296
+ * @response `200` `AiPrompt` OK
6297
+ * @response `404` `ProblemDetails` Not Found
6298
+ */
6299
+ toggleAiPrompt: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiPrompt, any, {}>>;
6300
+ /**
6301
+ * No description
6302
+ *
6303
+ * @tags AiAdminPrompt
6304
+ * @name GenerateAiSystemPrompt
6305
+ * @summary Generate a system prompt from description
6306
+ * @request POST:/api/ai/admin/prompts/generate
6307
+ * @secure
6308
+ * @response `200` `GenerateSystemPrompt` OK
6309
+ * @response `400` `ProblemDetails` Bad Request
6310
+ */
6311
+ generateAiSystemPrompt: (data: GenerateSystemPromptRequest, params?: RequestParams) => Promise<AxiosResponse<GenerateSystemPrompt, any, {}>>;
6312
+ /**
6313
+ * No description
6314
+ *
6315
+ * @tags AiAdminPrompt
6316
+ * @name GetSupportedModels
6317
+ * @summary Get supported LLM models
6318
+ * @request GET:/api/ai/admin/prompts/supported-models
6319
+ * @secure
6320
+ * @response `200` `(SupportedModel)[]` OK
6321
+ */
6322
+ getSupportedModels: (params?: RequestParams) => Promise<AxiosResponse<SupportedModel[], any, {}>>;
6323
+ /**
6324
+ * No description
6325
+ *
6326
+ * @tags AiAdminSettings
6327
+ * @name GetAiAdminSettings
6328
+ * @summary Get global AI settings
6329
+ * @request GET:/api/ai/admin/settings
6330
+ * @secure
6331
+ * @response `200` `AiAdminSettings` OK
6332
+ */
6333
+ getAiAdminSettings: (params?: RequestParams) => Promise<AxiosResponse<AiAdminSettings, any, {}>>;
6334
+ /**
6335
+ * No description
6336
+ *
6337
+ * @tags AiAdminSettings
6338
+ * @name UpdateAiAdminSettings
6339
+ * @summary Update global AI settings
6340
+ * @request PUT:/api/ai/admin/settings
6341
+ * @secure
6342
+ * @response `200` `AiAdminSettings` OK
6343
+ * @response `400` `ProblemDetails` Bad Request
6344
+ */
6345
+ updateAiAdminSettings: (data: AiAdminSettingsRequest, params?: RequestParams) => Promise<AxiosResponse<AiAdminSettings, any, {}>>;
6346
+ /**
6347
+ * No description
6348
+ *
6349
+ * @tags AiCanonicalField
6350
+ * @name GetAiCanonicalFields
6351
+ * @summary Get all canonical fields
6352
+ * @request GET:/api/ai/admin/fields
6353
+ * @secure
6354
+ * @response `200` `(AiCanonicalField)[]` OK
6355
+ */
6356
+ getAiCanonicalFields: (params?: RequestParams) => Promise<AxiosResponse<AiCanonicalField[], any, {}>>;
6357
+ /**
6358
+ * No description
6359
+ *
6360
+ * @tags AiCanonicalField
6361
+ * @name CreateAiCanonicalField
6362
+ * @summary Create canonical field
6363
+ * @request POST:/api/ai/admin/fields
6364
+ * @secure
6365
+ * @response `201` `AiCanonicalField` Created
6366
+ * @response `400` `ProblemDetails` Bad Request
6367
+ */
6368
+ createAiCanonicalField: (data: CreateAiCanonicalFieldRequest, params?: RequestParams) => Promise<AxiosResponse<AiCanonicalField, any, {}>>;
6369
+ /**
6370
+ * No description
6371
+ *
6372
+ * @tags AiCanonicalField
6373
+ * @name GetAiCanonicalField
6374
+ * @summary Get canonical field by ID
6375
+ * @request GET:/api/ai/admin/fields/{id}
6376
+ * @secure
6377
+ * @response `200` `AiCanonicalField` OK
6378
+ * @response `404` `ProblemDetails` Not Found
6379
+ */
6380
+ getAiCanonicalField: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiCanonicalField, any, {}>>;
6381
+ /**
6382
+ * No description
6383
+ *
6384
+ * @tags AiCanonicalField
6385
+ * @name UpdateAiCanonicalField
6386
+ * @summary Update canonical field
6387
+ * @request PUT:/api/ai/admin/fields/{id}
6388
+ * @secure
6389
+ * @response `200` `AiCanonicalField` OK
6390
+ * @response `400` `ProblemDetails` Bad Request
6391
+ * @response `404` `ProblemDetails` Not Found
6392
+ */
6393
+ updateAiCanonicalField: (id: string, data: UpdateAiCanonicalFieldRequest, params?: RequestParams) => Promise<AxiosResponse<AiCanonicalField, any, {}>>;
6394
+ /**
6395
+ * No description
6396
+ *
6397
+ * @tags AiCanonicalField
6398
+ * @name DeleteAiCanonicalField
6399
+ * @summary Delete canonical field
6400
+ * @request DELETE:/api/ai/admin/fields/{id}
6401
+ * @secure
6402
+ * @response `204` `void` No Content
6403
+ * @response `404` `ProblemDetails` Not Found
6404
+ */
6405
+ deleteAiCanonicalField: (id: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
6406
+ /**
6407
+ * No description
6408
+ *
6409
+ * @tags AiCanonicalField
6410
+ * @name ToggleAiCanonicalField
6411
+ * @summary Toggle canonical field active/inactive
6412
+ * @request PATCH:/api/ai/admin/fields/{id}/toggle
6413
+ * @secure
6414
+ * @response `200` `AiCanonicalField` OK
6415
+ * @response `404` `ProblemDetails` Not Found
6416
+ */
6417
+ toggleAiCanonicalField: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiCanonicalField, any, {}>>;
6418
+ /**
6419
+ * No description
6420
+ *
6421
+ * @tags AiChat
6422
+ * @name AiChat
6423
+ * @summary Send AI chat message
6424
+ * @request POST:/api/ai/chat
6425
+ * @secure
6426
+ * @response `200` `AiChat` OK
6427
+ * @response `400` `ProblemDetails` Bad Request
6428
+ * @response `401` `ProblemDetails` Unauthorized
6429
+ */
6430
+ aiChat: (data: AiChatRequest, params?: RequestParams) => Promise<AxiosResponse<AiChat, any, {}>>;
6431
+ /**
6432
+ * No description
6433
+ *
6434
+ * @tags AiConversation
6435
+ * @name GetAiConversations
6436
+ * @summary Get user conversations
6437
+ * @request GET:/api/ai/conversations
6438
+ * @secure
6439
+ * @response `200` `AiConversationListItemPaginated` OK
6440
+ */
6441
+ getAiConversations: (query?: {
6442
+ /** @format int32 */
6443
+ pageSize?: number;
6444
+ /** @format int32 */
6445
+ pageNumber?: number;
6446
+ sortBy?: string;
6447
+ sortDirection?: string;
6448
+ }, params?: RequestParams) => Promise<AxiosResponse<AiConversationListItemPaginated, any, {}>>;
6449
+ /**
6450
+ * No description
6451
+ *
6452
+ * @tags AiConversation
6453
+ * @name GetAiConversation
6454
+ * @summary Get conversation metadata
6455
+ * @request GET:/api/ai/conversations/{id}
6456
+ * @secure
6457
+ * @response `200` `AiConversationDetail` OK
6458
+ * @response `403` `ProblemDetails` Forbidden
6459
+ * @response `404` `ProblemDetails` Not Found
6460
+ */
6461
+ getAiConversation: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiConversationDetail, any, {}>>;
6462
+ /**
6463
+ * No description
6464
+ *
6465
+ * @tags AiConversation
6466
+ * @name RenameAiConversation
6467
+ * @summary Rename conversation
6468
+ * @request PATCH:/api/ai/conversations/{id}
6469
+ * @secure
6470
+ * @response `200` `AiConversationDetail` OK
6471
+ * @response `400` `ProblemDetails` Bad Request
6472
+ * @response `403` `ProblemDetails` Forbidden
6473
+ * @response `404` `ProblemDetails` Not Found
6474
+ */
6475
+ renameAiConversation: (id: string, data: JsonPatchDocument, params?: RequestParams) => Promise<AxiosResponse<AiConversationDetail, any, {}>>;
6476
+ /**
6477
+ * No description
6478
+ *
6479
+ * @tags AiConversation
6480
+ * @name DeleteAiConversation
6481
+ * @summary Delete conversation
6482
+ * @request DELETE:/api/ai/conversations/{id}
6483
+ * @secure
6484
+ * @response `204` `void` No Content
6485
+ * @response `403` `ProblemDetails` Forbidden
6486
+ * @response `404` `ProblemDetails` Not Found
6487
+ */
6488
+ deleteAiConversation: (id: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
6489
+ /**
6490
+ * No description
6491
+ *
6492
+ * @tags AiConversation
6493
+ * @name GetAiConversationMessages
6494
+ * @summary Get conversation messages
6495
+ * @request GET:/api/ai/conversations/{id}/messages
6496
+ * @secure
6497
+ * @response `200` `AiChatMessagePaginated` OK
6498
+ * @response `403` `ProblemDetails` Forbidden
6499
+ * @response `404` `ProblemDetails` Not Found
6500
+ */
6501
+ getAiConversationMessages: (id: string, query?: {
6502
+ /** @format int32 */
6503
+ pageSize?: number;
6504
+ /** @format int32 */
6505
+ pageNumber?: number;
6506
+ sortBy?: string;
6507
+ sortDirection?: string;
6508
+ }, params?: RequestParams) => Promise<AxiosResponse<AiChatMessagePaginated, any, {}>>;
6509
+ /**
6510
+ * No description
6511
+ *
6512
+ * @tags AiConversation
6513
+ * @name ClearAiConversationHistory
6514
+ * @summary Clear conversation history
6515
+ * @request DELETE:/api/ai/conversations/{id}/messages
6516
+ * @secure
6517
+ * @response `204` `void` No Content
6518
+ * @response `403` `ProblemDetails` Forbidden
6519
+ * @response `404` `ProblemDetails` Not Found
6520
+ */
6521
+ clearAiConversationHistory: (id: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
6522
+ /**
6523
+ * No description
6524
+ *
6525
+ * @tags AiConversation
6526
+ * @name PinAiConversation
6527
+ * @summary Pin or unpin conversation
6528
+ * @request PUT:/api/ai/conversations/{id}/pin
6529
+ * @secure
6530
+ * @response `200` `AiConversationDetail` OK
6531
+ * @response `403` `ProblemDetails` Forbidden
6532
+ * @response `404` `ProblemDetails` Not Found
6533
+ */
6534
+ pinAiConversation: (id: string, data: PinAiConversationRequest, params?: RequestParams) => Promise<AxiosResponse<AiConversationDetail, any, {}>>;
6535
+ /**
6536
+ * No description
6537
+ *
6538
+ * @tags AiConversationAdmin
6539
+ * @name GetAiAccountConversations
6540
+ * @summary List AI conversations across the account, optionally filtered by user (admin supervision)
6541
+ * @request GET:/api/ai/admin/conversations
6542
+ * @secure
6543
+ * @response `200` `AiConversationListItemPaginated` OK
6544
+ */
6545
+ getAiAccountConversations: (query?: {
6546
+ /** @format uuid */
6547
+ userId?: string;
6548
+ /** @format int32 */
6549
+ pageSize?: number;
6550
+ /** @format int32 */
6551
+ pageNumber?: number;
6552
+ sortBy?: string;
6553
+ sortDirection?: string;
6554
+ }, params?: RequestParams) => Promise<AxiosResponse<AiConversationListItemPaginated, any, {}>>;
6555
+ /**
6556
+ * No description
6557
+ *
6558
+ * @tags AiConversationAdmin
6559
+ * @name GetAiAccountConversation
6560
+ * @summary Get an account conversation's detail (admin supervision)
6561
+ * @request GET:/api/ai/admin/conversations/{id}
6562
+ * @secure
6563
+ * @response `200` `AiConversationDetail` OK
6564
+ * @response `404` `ProblemDetails` Not Found
6565
+ */
6566
+ getAiAccountConversation: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiConversationDetail, any, {}>>;
6567
+ /**
6568
+ * No description
6569
+ *
6570
+ * @tags AiConversationAdmin
6571
+ * @name GetAiAccountConversationMessages
6572
+ * @summary Get an account conversation's messages (admin supervision)
6573
+ * @request GET:/api/ai/admin/conversations/{id}/messages
6574
+ * @secure
6575
+ * @response `200` `AiChatMessagePaginated` OK
6576
+ * @response `404` `ProblemDetails` Not Found
6577
+ */
6578
+ getAiAccountConversationMessages: (id: string, query?: {
6579
+ /** @format int32 */
6580
+ pageSize?: number;
6581
+ /** @format int32 */
6582
+ pageNumber?: number;
6583
+ sortBy?: string;
6584
+ sortDirection?: string;
6585
+ }, params?: RequestParams) => Promise<AxiosResponse<AiChatMessagePaginated, any, {}>>;
6586
+ /**
6587
+ * No description
6588
+ *
6589
+ * @tags AiGuardrail
6590
+ * @name GetAiGuardrails
6591
+ * @summary Get all guardrails
6592
+ * @request GET:/api/ai/admin/guardrails
6593
+ * @secure
6594
+ * @response `200` `(AiGuardrail)[]` OK
6595
+ */
6596
+ getAiGuardrails: (params?: RequestParams) => Promise<AxiosResponse<AiGuardrail[], any, {}>>;
6597
+ /**
6598
+ * No description
6599
+ *
6600
+ * @tags AiGuardrail
6601
+ * @name CreateAiGuardrail
6602
+ * @summary Create custom guardrail
6603
+ * @request POST:/api/ai/admin/guardrails
6604
+ * @secure
6605
+ * @response `201` `AiGuardrail` Created
6606
+ * @response `400` `ProblemDetails` Bad Request
6607
+ */
6608
+ createAiGuardrail: (data: CreateAiGuardrailRequest, params?: RequestParams) => Promise<AxiosResponse<AiGuardrail, any, {}>>;
6609
+ /**
6610
+ * No description
6611
+ *
6612
+ * @tags AiGuardrail
6613
+ * @name GetAiGuardrail
6614
+ * @summary Get guardrail by ID
6615
+ * @request GET:/api/ai/admin/guardrails/{id}
6616
+ * @secure
6617
+ * @response `200` `AiGuardrail` OK
6618
+ * @response `404` `ProblemDetails` Not Found
6619
+ */
6620
+ getAiGuardrail: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiGuardrail, any, {}>>;
6621
+ /**
6622
+ * No description
6623
+ *
6624
+ * @tags AiGuardrail
6625
+ * @name UpdateAiGuardrail
6626
+ * @summary Update guardrail
6627
+ * @request PUT:/api/ai/admin/guardrails/{id}
6628
+ * @secure
6629
+ * @response `200` `AiGuardrail` OK
6630
+ * @response `400` `ProblemDetails` Bad Request
6631
+ * @response `404` `ProblemDetails` Not Found
6632
+ */
6633
+ updateAiGuardrail: (id: string, data: UpdateAiGuardrailRequest, params?: RequestParams) => Promise<AxiosResponse<AiGuardrail, any, {}>>;
6634
+ /**
6635
+ * No description
6636
+ *
6637
+ * @tags AiGuardrail
6638
+ * @name DeleteAiGuardrail
6639
+ * @summary Delete guardrail
6640
+ * @request DELETE:/api/ai/admin/guardrails/{id}
6641
+ * @secure
6642
+ * @response `204` `void` No Content
6643
+ * @response `400` `ProblemDetails` Bad Request
6644
+ * @response `404` `ProblemDetails` Not Found
6645
+ */
6646
+ deleteAiGuardrail: (id: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
6647
+ /**
6648
+ * No description
6649
+ *
6650
+ * @tags AiGuardrail
6651
+ * @name ToggleAiGuardrail
6652
+ * @summary Toggle guardrail enabled/disabled
6653
+ * @request PATCH:/api/ai/admin/guardrails/{id}/toggle
6654
+ * @secure
6655
+ * @response `200` `AiGuardrail` OK
6656
+ * @response `404` `ProblemDetails` Not Found
6657
+ */
6658
+ toggleAiGuardrail: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiGuardrail, any, {}>>;
6659
+ /**
6660
+ * No description
6661
+ *
6662
+ * @tags AiPrompt
6663
+ * @name GetAvailablePrompts
6664
+ * @summary Get available prompts for current user
6665
+ * @request GET:/api/ai/prompts
6666
+ * @secure
6667
+ * @response `200` `(AiPromptSummary)[]` OK
6668
+ */
6669
+ getAvailablePrompts: (query?: {
6670
+ documentType?: string;
6671
+ }, params?: RequestParams) => Promise<AxiosResponse<AiPromptSummary[], any, {}>>;
6672
+ /**
6673
+ * No description
6674
+ *
6675
+ * @tags AiSuperAdmin
6676
+ * @name GetAiAuditLogsCrossAccount
6677
+ * @summary Get AI audit logs for a specific account or across all accounts
6678
+ * @request GET:/api/ai/superadmin/audit-logs
6679
+ * @secure
6680
+ * @response `200` `AiAuditLogPaginated` OK
6681
+ */
6682
+ getAiAuditLogsCrossAccount: (query?: {
6683
+ /** @format uuid */
6684
+ accountId?: string;
6685
+ eventType?: AiAuditEventType;
6686
+ /** @format uuid */
6687
+ requestId?: string;
6688
+ /** @format uuid */
6689
+ userId?: string;
6690
+ /** @format uuid */
6691
+ conversationId?: string;
6692
+ blockedOnly?: boolean;
6693
+ /** @format date-time */
6694
+ startDate?: string;
6695
+ /** @format date-time */
6696
+ endDate?: string;
6697
+ /** @format int32 */
6698
+ pageSize?: number;
6699
+ /** @format int32 */
6700
+ pageNumber?: number;
6701
+ sortBy?: string;
6702
+ sortDirection?: string;
6703
+ }, params?: RequestParams) => Promise<AxiosResponse<AiAuditLogPaginated, any, {}>>;
6704
+ /**
6705
+ * No description
6706
+ *
6707
+ * @tags AiSuperAdmin
6708
+ * @name GetAiRequestLifecycleCrossAccount
6709
+ * @summary Get the full event lifecycle of a single AI request from any account
6710
+ * @request GET:/api/ai/superadmin/audit-logs/request/{requestId}
6711
+ * @secure
6712
+ * @response `200` `(AiAuditLog)[]` OK
6713
+ */
6714
+ getAiRequestLifecycleCrossAccount: (requestId: string, query?: {
6715
+ /** @format uuid */
6716
+ accountId?: string;
6717
+ }, params?: RequestParams) => Promise<AxiosResponse<AiAuditLog[], any, {}>>;
6718
+ /**
6719
+ * No description
6720
+ *
6721
+ * @tags AiSuperAdmin
6722
+ * @name GetAiStatsCrossAccount
6723
+ * @summary Get AI stats for a specific account or platform-wide
6724
+ * @request GET:/api/ai/superadmin/stats
6725
+ * @secure
6726
+ * @response `200` `AiAdminStats` OK
6727
+ */
6728
+ getAiStatsCrossAccount: (query?: {
6729
+ /** @format uuid */
6730
+ accountId?: string;
6731
+ /** @format date-time */
6732
+ startDate?: string;
6733
+ /** @format date-time */
6734
+ endDate?: string;
6735
+ }, params?: RequestParams) => Promise<AxiosResponse<AiAdminStats, any, {}>>;
6736
+ /**
6737
+ * No description
6738
+ *
6739
+ * @tags AiSuperAdmin
6740
+ * @name GetAiConfigChangesCrossAccount
6741
+ * @summary Get AI configuration change history for a specific account or across all accounts (incl. global defaults)
6742
+ * @request GET:/api/ai/superadmin/config-changes
6743
+ * @secure
6744
+ * @response `200` `AiConfigChangeLogPaginated` OK
6745
+ */
6746
+ getAiConfigChangesCrossAccount: (query?: {
6747
+ /** @format uuid */
6748
+ accountId?: string;
6749
+ entityType?: AiConfigEntityType;
6750
+ /** @format uuid */
6751
+ entityId?: string;
6752
+ /** @format uuid */
6753
+ actorUserId?: string;
6754
+ action?: AiConfigChangeAction;
6755
+ /** @format date-time */
6756
+ startDate?: string;
6757
+ /** @format date-time */
6758
+ endDate?: string;
6759
+ /** @format int32 */
6760
+ pageSize?: number;
6761
+ /** @format int32 */
6762
+ pageNumber?: number;
6763
+ sortBy?: string;
6764
+ sortDirection?: string;
6765
+ }, params?: RequestParams) => Promise<AxiosResponse<AiConfigChangeLogPaginated, any, {}>>;
6766
+ /**
6767
+ * No description
6768
+ *
6769
+ * @tags AiTokenUsageAdmin
6770
+ * @name SearchAiAccountTokenUsage
6771
+ * @summary Search accounts by current-month AI token usage and classification
6772
+ * @request POST:/api/ai/admin/token-usage/search
6773
+ * @secure
6774
+ * @response `200` `AiAccountUsageOverviewPaginated` OK
6775
+ */
6776
+ searchAiAccountTokenUsage: (data: SearchCriteria, query?: {
6777
+ /** @format int32 */
6778
+ pageSize?: number;
6779
+ /** @format int32 */
6780
+ pageNumber?: number;
6781
+ sortBy?: string;
6782
+ sortDirection?: string;
6783
+ }, params?: RequestParams) => Promise<AxiosResponse<AiAccountUsageOverviewPaginated, any, {}>>;
6784
+ /**
6785
+ * No description
6786
+ *
6787
+ * @tags AiTokenUsageAdmin
6788
+ * @name GetAiAccountTokenUsage
6789
+ * @summary Get an account's current-month AI token usage
6790
+ * @request GET:/api/ai/admin/token-usage/{accountId}
6791
+ * @secure
6792
+ * @response `200` `AiTokenBudgetStatus` OK
6793
+ */
6794
+ getAiAccountTokenUsage: (accountId: string, params?: RequestParams) => Promise<AxiosResponse<AiTokenBudgetStatus, any, {}>>;
6795
+ /**
6796
+ * No description
6797
+ *
6798
+ * @tags AiTokenUsageAdmin
6799
+ * @name GetAiAccountTokenUsageHistory
6800
+ * @summary Get an account's monthly AI token usage history
6801
+ * @request GET:/api/ai/admin/token-usage/{accountId}/history
6802
+ * @secure
6803
+ * @response `200` `AiTokenUsageWindowPaginated` OK
6804
+ */
6805
+ getAiAccountTokenUsageHistory: (accountId: string, query?: {
6806
+ /** @format int32 */
6807
+ pageSize?: number;
6808
+ /** @format int32 */
6809
+ pageNumber?: number;
6810
+ sortBy?: string;
6811
+ sortDirection?: string;
6812
+ }, params?: RequestParams) => Promise<AxiosResponse<AiTokenUsageWindowPaginated, any, {}>>;
6813
+ /**
6814
+ * No description
6815
+ *
6816
+ * @tags AiTokenUsageAdmin
6817
+ * @name SetAiAccountTokenLimit
6818
+ * @summary Set or raise an account's monthly AI token limit
6819
+ * @request PUT:/api/ai/admin/token-usage/{accountId}/limit
6820
+ * @secure
6821
+ * @response `200` `AiTokenBudgetStatus` OK
6822
+ * @response `400` `ProblemDetails` Bad Request
6823
+ */
6824
+ setAiAccountTokenLimit: (accountId: string, data: UpdateAiAccountTokenLimitRequest, params?: RequestParams) => Promise<AxiosResponse<AiTokenBudgetStatus, any, {}>>;
6825
+ /**
6826
+ * No description
6827
+ *
6828
+ * @tags AiUrlSource
6829
+ * @name GetAiUrlSources
6830
+ * @summary Get all URL sources
6831
+ * @request GET:/api/ai/admin/url-sources
6832
+ * @secure
6833
+ * @response `200` `(AiUrlSource)[]` OK
6834
+ */
6835
+ getAiUrlSources: (params?: RequestParams) => Promise<AxiosResponse<AiUrlSource[], any, {}>>;
6836
+ /**
6837
+ * No description
6838
+ *
6839
+ * @tags AiUrlSource
6840
+ * @name CreateAiUrlSource
6841
+ * @summary Create URL source
6842
+ * @request POST:/api/ai/admin/url-sources
6843
+ * @secure
6844
+ * @response `201` `AiUrlSource` Created
6845
+ * @response `400` `ProblemDetails` Bad Request
6846
+ * @response `409` `ProblemDetails` Conflict
6847
+ */
6848
+ createAiUrlSource: (data: CreateAiUrlSourceRequest, params?: RequestParams) => Promise<AxiosResponse<AiUrlSource, any, {}>>;
6849
+ /**
6850
+ * No description
6851
+ *
6852
+ * @tags AiUrlSource
6853
+ * @name GetAiUrlSource
6854
+ * @summary Get URL source by ID
6855
+ * @request GET:/api/ai/admin/url-sources/{id}
6856
+ * @secure
6857
+ * @response `200` `AiUrlSource` OK
6858
+ * @response `404` `ProblemDetails` Not Found
6859
+ */
6860
+ getAiUrlSource: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiUrlSource, any, {}>>;
6861
+ /**
6862
+ * No description
6863
+ *
6864
+ * @tags AiUrlSource
6865
+ * @name UpdateAiUrlSource
6866
+ * @summary Update URL source
6867
+ * @request PUT:/api/ai/admin/url-sources/{id}
6868
+ * @secure
6869
+ * @response `200` `AiUrlSource` OK
6870
+ * @response `400` `ProblemDetails` Bad Request
6871
+ * @response `404` `ProblemDetails` Not Found
6872
+ * @response `409` `ProblemDetails` Conflict
6873
+ */
6874
+ updateAiUrlSource: (id: string, data: UpdateAiUrlSourceRequest, params?: RequestParams) => Promise<AxiosResponse<AiUrlSource, any, {}>>;
6875
+ /**
6876
+ * No description
6877
+ *
6878
+ * @tags AiUrlSource
6879
+ * @name DeleteAiUrlSource
6880
+ * @summary Delete URL source
6881
+ * @request DELETE:/api/ai/admin/url-sources/{id}
6882
+ * @secure
6883
+ * @response `204` `void` No Content
6884
+ * @response `404` `ProblemDetails` Not Found
6885
+ */
6886
+ deleteAiUrlSource: (id: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
6887
+ /**
6888
+ * No description
6889
+ *
6890
+ * @tags AiUrlSource
6891
+ * @name ToggleAiUrlSource
6892
+ * @summary Toggle URL source active/inactive
6893
+ * @request PATCH:/api/ai/admin/url-sources/{id}/toggle
6894
+ * @secure
6895
+ * @response `200` `AiUrlSource` OK
6896
+ * @response `404` `ProblemDetails` Not Found
6897
+ */
6898
+ toggleAiUrlSource: (id: string, params?: RequestParams) => Promise<AxiosResponse<AiUrlSource, any, {}>>;
6899
+ /**
6900
+ * No description
6901
+ *
6902
+ * @tags AiUsage
6903
+ * @name GetAiUsage
6904
+ * @summary Get the current account's AI token usage for the active monthly window
6905
+ * @request GET:/api/ai/usage
6906
+ * @secure
6907
+ * @response `200` `AiTokenBudgetStatus` OK
6908
+ */
6909
+ getAiUsage: (params?: RequestParams) => Promise<AxiosResponse<AiTokenBudgetStatus, any, {}>>;
6910
+ /**
6911
+ * No description
6912
+ *
6913
+ * @tags AiUsage
6914
+ * @name GetAiUsageHistory
6915
+ * @summary Get the current account's monthly AI token usage history
6916
+ * @request GET:/api/ai/usage/history
6917
+ * @secure
6918
+ * @response `200` `AiTokenUsageWindowPaginated` OK
6919
+ */
6920
+ getAiUsageHistory: (query?: {
6921
+ /** @format int32 */
6922
+ pageSize?: number;
6923
+ /** @format int32 */
6924
+ pageNumber?: number;
6925
+ sortBy?: string;
6926
+ sortDirection?: string;
6927
+ }, params?: RequestParams) => Promise<AxiosResponse<AiTokenUsageWindowPaginated, any, {}>>;
6928
+ /**
6929
+ * No description
6930
+ *
6931
+ * @tags AuditLog
6932
+ * @name SearchAuditLogs
6933
+ * @summary Search
6934
+ * @request POST:/api/audit-logs/search
6935
+ * @secure
6936
+ * @response `200` `AuditLogEntryPaginated` OK
5558
6937
  */
5559
6938
  searchAuditLogs: (data: AuditLogSearchCriteria, query?: {
5560
6939
  /** @format int32 */
@@ -7650,6 +9029,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7650
9029
  * @response `404` `ProblemDetails` Not Found
7651
9030
  */
7652
9031
  syncLoanDocumentsFromLos: (loanId: string, params?: RequestParams) => Promise<AxiosResponse<DocumentSync, any, {}>>;
9032
+ /**
9033
+ * No description
9034
+ *
9035
+ * @tags LoanDocuments
9036
+ * @name ClassifyLoanDocumentManually
9037
+ * @summary Manually classify a loan document
9038
+ * @request POST:/api/loans/{loanId}/documents/{documentId}/classify-manual
9039
+ * @secure
9040
+ * @response `200` `LoanDocument` OK
9041
+ * @response `404` `ProblemDetails` Not Found
9042
+ * @response `422` `UnprocessableEntity` Unprocessable Content
9043
+ */
9044
+ classifyLoanDocumentManually: (loanId: string, documentId: string, data: ManualDocumentClassificationRequest, params?: RequestParams) => Promise<AxiosResponse<LoanDocument, any, {}>>;
7653
9045
  /**
7654
9046
  * @description Re-attempts to push a failed document to LOS
7655
9047
  *
@@ -7885,6 +9277,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7885
9277
  * @response `404` `ProblemDetails` Not Found
7886
9278
  */
7887
9279
  sendLoanOptInReminder: (loanId: string, data: SendLoanOptInReminderRequest, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
9280
+ /**
9281
+ * No description
9282
+ *
9283
+ * @tags LoanNotification
9284
+ * @name SendESignatureReminder
9285
+ * @summary Send eSignature Reminder
9286
+ * @request POST:/api/loans/{loanID}/notifications/esignature-reminders
9287
+ * @secure
9288
+ * @response `204` `void` No Content
9289
+ * @response `400` `ProblemDetails` Bad Request
9290
+ * @response `404` `ProblemDetails` Not Found
9291
+ */
9292
+ sendESignatureReminder: (loanId: string, data: SendESignatureReminderRequest, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
7888
9293
  /**
7889
9294
  * No description
7890
9295
  *