@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/src/index.ts CHANGED
@@ -724,6 +724,8 @@ export type AiPromptCategory =
724
724
  | "General"
725
725
  | "Action";
726
726
 
727
+ export type AiPendingLoanUpdateOutcome = "Applied" | "Refused";
728
+
727
729
  export type AiGuardrailCategory =
728
730
  | "ContentSafety"
729
731
  | "PromptInjection"
@@ -1250,6 +1252,7 @@ export interface AiChatMetadata {
1250
1252
  wasBlocked: boolean;
1251
1253
  blockedReason?: string | null;
1252
1254
  tokenBudget?: AiTokenBudgetStatus | null;
1255
+ pendingLoanUpdateDecision?: AiPendingLoanUpdateDecision | null;
1253
1256
  }
1254
1257
 
1255
1258
  export interface AiChatRequest {
@@ -1400,6 +1403,13 @@ export interface AiGuardrail {
1400
1403
  updatedBy?: AiUpdatedBy | null;
1401
1404
  }
1402
1405
 
1406
+ export interface AiPendingLoanUpdateDecision {
1407
+ /** @format uuid */
1408
+ pendingLoanUpdateId: string;
1409
+ outcome: AiPendingLoanUpdateDecisionOutcomeEnum;
1410
+ reason?: string | null;
1411
+ }
1412
+
1403
1413
  export interface AiPrompt {
1404
1414
  /** @format uuid */
1405
1415
  id: string;
@@ -8835,6 +8845,8 @@ export type AiGuardrailCategoryEnum =
8835
8845
  | "Privacy"
8836
8846
  | "Legal";
8837
8847
 
8848
+ export type AiPendingLoanUpdateDecisionOutcomeEnum = "Applied" | "Refused";
8849
+
8838
8850
  export type AiUrlSourceCategoryEnum =
8839
8851
  | "Regulatory"
8840
8852
  | "Guidelines"
@@ -10980,6 +10992,30 @@ export class Api<
10980
10992
  ...params,
10981
10993
  }),
10982
10994
 
10995
+ /**
10996
+ * No description
10997
+ *
10998
+ * @tags AiChat
10999
+ * @name RejectAiPendingLoanUpdate
11000
+ * @summary Reject a pending AI loan change so a new one can be proposed
11001
+ * @request POST:/api/ai/chats/pending-loan-updates/{pendingLoanUpdateId}/reject
11002
+ * @secure
11003
+ * @response `204` `void` No Content
11004
+ * @response `401` `ProblemDetails` Unauthorized
11005
+ * @response `404` `ProblemDetails` Not Found
11006
+ * @response `429` `ProblemDetails` Too Many Requests
11007
+ */
11008
+ rejectAiPendingLoanUpdate: (
11009
+ pendingLoanUpdateId: string,
11010
+ params: RequestParams = {},
11011
+ ) =>
11012
+ this.request<void, ProblemDetails>({
11013
+ path: `/api/ai/chats/pending-loan-updates/${pendingLoanUpdateId}/reject`,
11014
+ method: "POST",
11015
+ secure: true,
11016
+ ...params,
11017
+ }),
11018
+
10983
11019
  /**
10984
11020
  * No description
10985
11021
  *