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

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;
@@ -631,6 +633,12 @@ export interface AiGuardrail {
631
633
  updatedAt?: string | null;
632
634
  updatedBy?: AiUpdatedBy | null;
633
635
  }
636
+ export interface AiPendingLoanUpdateDecision {
637
+ /** @format uuid */
638
+ pendingLoanUpdateId: string;
639
+ outcome: AiPendingLoanUpdateDecisionOutcomeEnum;
640
+ reason?: string | null;
641
+ }
634
642
  export interface AiPrompt {
635
643
  /** @format uuid */
636
644
  id: string;
@@ -7324,6 +7332,7 @@ export type AiAuditLogEventTypeEnum = "Error" | "GuardrailBlockedPre" | "Guardra
7324
7332
  export type AiChatStructuredDataTypeEnum = "Table" | "DocumentAnalysis" | "DocumentList" | "GeneratedDocument" | "CitedPassages" | "PendingLoanUpdate";
7325
7333
  export type AiCitedDocumentSourceTypeEnum = "File" | "FreeText";
7326
7334
  export type AiGuardrailCategoryEnum = "ContentSafety" | "PromptInjection" | "Privacy" | "Legal";
7335
+ export type AiPendingLoanUpdateDecisionOutcomeEnum = "Applied" | "Refused";
7327
7336
  export type AiUrlSourceCategoryEnum = "Regulatory" | "Guidelines" | "MarketData" | "Custom";
7328
7337
  export type AiUrlSourceScopeEnum = "FullDomain" | "SpecificPath";
7329
7338
  export type AiUrlSourceApprovalStatusEnum = "Pending" | "Approved" | "Rejected";
@@ -8019,6 +8028,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8019
8028
  * @response `429` `ProblemDetails` Too Many Requests
8020
8029
  */
8021
8030
  aiChat: (data: AiChatRequest, params?: RequestParams) => Promise<AxiosResponse<AiChat, any, {}, any>>;
8031
+ /**
8032
+ * No description
8033
+ *
8034
+ * @tags AiChat
8035
+ * @name RejectAiPendingLoanUpdate
8036
+ * @summary Reject a pending AI loan change so a new one can be proposed
8037
+ * @request POST:/api/ai/chats/pending-loan-updates/{pendingLoanUpdateId}/reject
8038
+ * @secure
8039
+ * @response `204` `void` No Content
8040
+ * @response `401` `ProblemDetails` Unauthorized
8041
+ * @response `404` `ProblemDetails` Not Found
8042
+ * @response `429` `ProblemDetails` Too Many Requests
8043
+ */
8044
+ rejectAiPendingLoanUpdate: (pendingLoanUpdateId: string, params?: RequestParams) => Promise<AxiosResponse<void, any, {}, any>>;
8022
8045
  /**
8023
8046
  * No description
8024
8047
  *
package/dist/index.js CHANGED
@@ -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
  *