@matech/thebigpos-sdk 3.25.0-dev-7840 → 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;
@@ -6793,6 +6803,10 @@ export interface RequestImpersonationRequest {
6793
6803
  email: string;
6794
6804
  }
6795
6805
 
6806
+ export interface ResendChallengeCodeRequest {
6807
+ sessionId: string;
6808
+ }
6809
+
6796
6810
  export interface ResetPasswordRequest {
6797
6811
  token: string;
6798
6812
  password: string;
@@ -8831,6 +8845,8 @@ export type AiGuardrailCategoryEnum =
8831
8845
  | "Privacy"
8832
8846
  | "Legal";
8833
8847
 
8848
+ export type AiPendingLoanUpdateDecisionOutcomeEnum = "Applied" | "Refused";
8849
+
8834
8850
  export type AiUrlSourceCategoryEnum =
8835
8851
  | "Regulatory"
8836
8852
  | "Guidelines"
@@ -10976,6 +10992,30 @@ export class Api<
10976
10992
  ...params,
10977
10993
  }),
10978
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
+
10979
11019
  /**
10980
11020
  * No description
10981
11021
  *
@@ -12220,6 +12260,32 @@ export class Api<
12220
12260
  ...params,
12221
12261
  }),
12222
12262
 
12263
+ /**
12264
+ * No description
12265
+ *
12266
+ * @tags Authentication
12267
+ * @name ResendChallengeCode
12268
+ * @summary Resend Challenge Code
12269
+ * @request POST:/api/token/code/resend
12270
+ * @secure
12271
+ * @response `204` `void` No Content
12272
+ * @response `422` `UnprocessableEntity` Unprocessable Content
12273
+ * @response `429` `ProblemDetails` Too Many Requests
12274
+ * @response `503` `void` Service Unavailable
12275
+ */
12276
+ resendChallengeCode: (
12277
+ data: ResendChallengeCodeRequest,
12278
+ params: RequestParams = {},
12279
+ ) =>
12280
+ this.request<void, UnprocessableEntity | ProblemDetails | void>({
12281
+ path: `/api/token/code/resend`,
12282
+ method: "POST",
12283
+ body: data,
12284
+ secure: true,
12285
+ type: "application/json",
12286
+ ...params,
12287
+ }),
12288
+
12223
12289
  /**
12224
12290
  * No description
12225
12291
  *