@matech/thebigpos-sdk 3.25.0-dev-7851 → 3.25.0-dev-8059

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
@@ -117,6 +117,7 @@ export type AiUrlDomainStatus = "Approved" | "Rejected";
117
117
  export type AiStructuredDataType = "Table" | "DocumentAnalysis" | "DocumentList" | "GeneratedDocument" | "CitedPassages" | "PendingLoanUpdate";
118
118
  export type AiPromptScope = "General" | "LoanSpecific";
119
119
  export type AiPromptCategory = "DocumentAnalysis" | "DataQuery" | "General" | "Action";
120
+ export type AiPendingLoanUpdateOutcome = "Applied" | "Refused";
120
121
  export type AiGuardrailCategory = "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
121
122
  export type AiDisplayHint = "Table" | "SummaryCards" | "RankedList" | "Comparison" | "ExecutiveBrief";
122
123
  export type AiAuditEventType = "Error" | "GuardrailBlockedPre" | "GuardrailPassedPre" | "IntentClassified" | "LoanResolvedFromMessage" | "DocumentNotFound" | "GuardrailBlockedPost" | "GuardrailPassedPost" | "DocumentAnalyzed" | "DocumentList" | "DocumentResolutionAmbiguous" | "ResponseGenerated" | "ParametersExtracted" | "QueryExecuted" | "LoanContextNotFound" | "LoanContextLoaded" | "GuardrailBlockedBedrock" | "PromptMatched" | "QueryCondensed" | "IntentParseFailed" | "LoanSearchTermDiscarded" | "CanonicalFieldsSelected" | "LoanAccessDenied" | "AgentModelCall" | "AgentToolCallRequested" | "AgentToolCallCompleted" | "AgentToolCallFailed" | "AgentLoopLimitReached" | "RequestCancelled" | "KnowledgeBaseRetrieved" | "PromptResolutionFailed" | "PromptTriggerPublished" | "PromptTriggerSkipped" | "PromptRunCompleted" | "LoanUpdateProposed" | "LoanUpdateApplied" | "LoanUpdateRefused" | "PromptTriggerCoalesced" | "RecommendationRunCompleted" | "BoundPromptForced";
@@ -493,6 +494,7 @@ export interface AiChatMetadata {
493
494
  wasBlocked: boolean;
494
495
  blockedReason?: string | null;
495
496
  tokenBudget?: AiTokenBudgetStatus | null;
497
+ pendingLoanUpdateDecision?: AiPendingLoanUpdateDecision | null;
496
498
  }
497
499
  export interface AiChatRequest {
498
500
  message: string;
@@ -553,6 +555,9 @@ export interface AiConversationAuditSummary {
553
555
  userName?: string | null;
554
556
  userRole?: string | null;
555
557
  name?: string | null;
558
+ /** @format uuid */
559
+ loanId?: string | null;
560
+ loanNumber?: string | null;
556
561
  /** @format int32 */
557
562
  turnCount: number;
558
563
  /** @format int32 */
@@ -631,6 +636,12 @@ export interface AiGuardrail {
631
636
  updatedAt?: string | null;
632
637
  updatedBy?: AiUpdatedBy | null;
633
638
  }
639
+ export interface AiPendingLoanUpdateDecision {
640
+ /** @format uuid */
641
+ pendingLoanUpdateId: string;
642
+ outcome: AiPendingLoanUpdateDecisionOutcomeEnum;
643
+ reason?: string | null;
644
+ }
634
645
  export interface AiPrompt {
635
646
  /** @format uuid */
636
647
  id: string;
@@ -7324,6 +7335,7 @@ export type AiAuditLogEventTypeEnum = "Error" | "GuardrailBlockedPre" | "Guardra
7324
7335
  export type AiChatStructuredDataTypeEnum = "Table" | "DocumentAnalysis" | "DocumentList" | "GeneratedDocument" | "CitedPassages" | "PendingLoanUpdate";
7325
7336
  export type AiCitedDocumentSourceTypeEnum = "File" | "FreeText";
7326
7337
  export type AiGuardrailCategoryEnum = "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
7338
+ export type AiPendingLoanUpdateDecisionOutcomeEnum = "Applied" | "Refused";
7327
7339
  export type AiUrlSourceCategoryEnum = "Regulatory" | "Guidelines" | "MarketData" | "Custom";
7328
7340
  export type AiUrlSourceScopeEnum = "FullDomain" | "SpecificPath";
7329
7341
  export type AiUrlSourceApprovalStatusEnum = "Pending" | "Approved" | "Rejected";
@@ -7935,11 +7947,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7935
7947
  accountId?: string;
7936
7948
  }, params?: RequestParams) => Promise<AxiosResponse<AiAuditLog[], any, {}, any>>;
7937
7949
  /**
7938
- * @description startDate and endDate accept any ISO-8601 value. A value with no timezone designator (2026-09-01 or 2026-09-01T00:00:00) is read as UTC; a value with Z or an offset is used as the instant it names. A date-only value names the start of that day, so endDate=2026-09-01 returns nothing recorded on the 1st; to include that day send endDate=2026-09-02, or an explicit time such as 2026-09-01T23:59:59.
7950
+ * @description startDate and endDate accept any ISO-8601 value. A value with no timezone designator (2026-09-01 or 2026-09-01T00:00:00) is read as UTC; a value with Z or an offset is used as the instant it names. A date-only value names the start of that day, so endDate=2026-09-01 returns nothing recorded on the 1st; to include that day send endDate=2026-09-02, or an explicit time such as 2026-09-01T23:59:59. searchText matches a case-insensitive substring of the originating user's name or email, the conversation name or the loan number, or an exact conversation, request or user id.
7939
7951
  *
7940
7952
  * @tags AiAudit
7941
7953
  * @name GetAiAuditConversations
7942
- * @summary List conversations with their audit roll-up — origin user, turns, status, tokens
7954
+ * @summary List conversations with their audit roll-up — origin user, loan, turns, status, tokens
7943
7955
  * @request GET:/api/ai/audit-conversations
7944
7956
  * @secure
7945
7957
  * @response `200` `AiConversationAuditSummaryPaginated` OK
@@ -8019,6 +8031,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8019
8031
  * @response `429` `ProblemDetails` Too Many Requests
8020
8032
  */
8021
8033
  aiChat: (data: AiChatRequest, params?: RequestParams) => Promise<AxiosResponse<AiChat, any, {}, any>>;
8034
+ /**
8035
+ * No description
8036
+ *
8037
+ * @tags AiChat
8038
+ * @name RejectAiPendingLoanUpdate
8039
+ * @summary Reject a pending AI loan change so a new one can be proposed
8040
+ * @request POST:/api/ai/chats/pending-loan-updates/{pendingLoanUpdateId}/reject
8041
+ * @secure
8042
+ * @response `204` `void` No Content
8043
+ * @response `401` `ProblemDetails` Unauthorized
8044
+ * @response `404` `ProblemDetails` Not Found
8045
+ * @response `429` `ProblemDetails` Too Many Requests
8046
+ */
8047
+ rejectAiPendingLoanUpdate: (pendingLoanUpdateId: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}, any>>;
8022
8048
  /**
8023
8049
  * No description
8024
8050
  *
@@ -8306,6 +8332,25 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8306
8332
  /** @format uuid */
8307
8333
  subjectEntityId?: string;
8308
8334
  }, params?: RequestParams) => Promise<AxiosResponse<AiPromptRun[], any, {}, any>>;
8335
+ /**
8336
+ * No description
8337
+ *
8338
+ * @tags AiPromptRun
8339
+ * @name RerunAiPromptRun
8340
+ * @summary Re-run the AI verification bound to a loan task
8341
+ * @request POST:/api/ai/prompt-runs/rerun
8342
+ * @secure
8343
+ * @response `202` `void` Accepted
8344
+ * @response `400` `ProblemDetails` Bad Request
8345
+ * @response `404` `ProblemDetails` Not Found
8346
+ * @response `409` `ProblemDetails` Conflict
8347
+ * @response `429` `ProblemDetails` Too Many Requests
8348
+ * @response `503` `void` Service Unavailable
8349
+ */
8350
+ rerunAiPromptRun: (query?: {
8351
+ /** @format uuid */
8352
+ subjectEntityId?: string;
8353
+ }, params?: RequestParams) => Promise<AxiosResponse<void, any, {}, any>>;
8309
8354
  /**
8310
8355
  * No description
8311
8356
  *
package/dist/index.js CHANGED
@@ -452,11 +452,11 @@ export class Api extends HttpClient {
452
452
  */
453
453
  getAiRequestLifecycle: (requestId, query, params = {}) => this.request(Object.assign({ path: `/api/ai/audit-logs/request/${requestId}`, method: "GET", query: query, secure: true, format: "json" }, params)),
454
454
  /**
455
- * @description startDate and endDate accept any ISO-8601 value. A value with no timezone designator (2026-09-01 or 2026-09-01T00:00:00) is read as UTC; a value with Z or an offset is used as the instant it names. A date-only value names the start of that day, so endDate=2026-09-01 returns nothing recorded on the 1st; to include that day send endDate=2026-09-02, or an explicit time such as 2026-09-01T23:59:59.
455
+ * @description startDate and endDate accept any ISO-8601 value. A value with no timezone designator (2026-09-01 or 2026-09-01T00:00:00) is read as UTC; a value with Z or an offset is used as the instant it names. A date-only value names the start of that day, so endDate=2026-09-01 returns nothing recorded on the 1st; to include that day send endDate=2026-09-02, or an explicit time such as 2026-09-01T23:59:59. searchText matches a case-insensitive substring of the originating user's name or email, the conversation name or the loan number, or an exact conversation, request or user id.
456
456
  *
457
457
  * @tags AiAudit
458
458
  * @name GetAiAuditConversations
459
- * @summary List conversations with their audit roll-up — origin user, turns, status, tokens
459
+ * @summary List conversations with their audit roll-up — origin user, loan, turns, status, tokens
460
460
  * @request GET:/api/ai/audit-conversations
461
461
  * @secure
462
462
  * @response `200` `AiConversationAuditSummaryPaginated` OK
@@ -498,6 +498,20 @@ export class Api extends HttpClient {
498
498
  * @response `429` `ProblemDetails` Too Many Requests
499
499
  */
500
500
  aiChat: (data, params = {}) => this.request(Object.assign({ path: `/api/ai/chats`, method: "POST", body: data, secure: true, type: "application/json", format: "json" }, params)),
501
+ /**
502
+ * No description
503
+ *
504
+ * @tags AiChat
505
+ * @name RejectAiPendingLoanUpdate
506
+ * @summary Reject a pending AI loan change so a new one can be proposed
507
+ * @request POST:/api/ai/chats/pending-loan-updates/{pendingLoanUpdateId}/reject
508
+ * @secure
509
+ * @response `204` `void` No Content
510
+ * @response `401` `ProblemDetails` Unauthorized
511
+ * @response `404` `ProblemDetails` Not Found
512
+ * @response `429` `ProblemDetails` Too Many Requests
513
+ */
514
+ rejectAiPendingLoanUpdate: (pendingLoanUpdateId, params = {}) => this.request(Object.assign({ path: `/api/ai/chats/pending-loan-updates/${pendingLoanUpdateId}/reject`, method: "POST", secure: true }, params)),
501
515
  /**
502
516
  * No description
503
517
  *
@@ -744,6 +758,22 @@ export class Api extends HttpClient {
744
758
  * @response `400` `ProblemDetails` Bad Request
745
759
  */
746
760
  getAiPromptRuns: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/prompt-runs`, method: "GET", query: query, secure: true, format: "json" }, params)),
761
+ /**
762
+ * No description
763
+ *
764
+ * @tags AiPromptRun
765
+ * @name RerunAiPromptRun
766
+ * @summary Re-run the AI verification bound to a loan task
767
+ * @request POST:/api/ai/prompt-runs/rerun
768
+ * @secure
769
+ * @response `202` `void` Accepted
770
+ * @response `400` `ProblemDetails` Bad Request
771
+ * @response `404` `ProblemDetails` Not Found
772
+ * @response `409` `ProblemDetails` Conflict
773
+ * @response `429` `ProblemDetails` Too Many Requests
774
+ * @response `503` `void` Service Unavailable
775
+ */
776
+ rerunAiPromptRun: (query, params = {}) => this.request(Object.assign({ path: `/api/ai/prompt-runs/rerun`, method: "POST", query: query, secure: true }, params)),
747
777
  /**
748
778
  * No description
749
779
  *