@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/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 {
@@ -1315,6 +1318,9 @@ export interface AiConversationAuditSummary {
1315
1318
  userName?: string | null;
1316
1319
  userRole?: string | null;
1317
1320
  name?: string | null;
1321
+ /** @format uuid */
1322
+ loanId?: string | null;
1323
+ loanNumber?: string | null;
1318
1324
  /** @format int32 */
1319
1325
  turnCount: number;
1320
1326
  /** @format int32 */
@@ -1400,6 +1406,13 @@ export interface AiGuardrail {
1400
1406
  updatedBy?: AiUpdatedBy | null;
1401
1407
  }
1402
1408
 
1409
+ export interface AiPendingLoanUpdateDecision {
1410
+ /** @format uuid */
1411
+ pendingLoanUpdateId: string;
1412
+ outcome: AiPendingLoanUpdateDecisionOutcomeEnum;
1413
+ reason?: string | null;
1414
+ }
1415
+
1403
1416
  export interface AiPrompt {
1404
1417
  /** @format uuid */
1405
1418
  id: string;
@@ -8835,6 +8848,8 @@ export type AiGuardrailCategoryEnum =
8835
8848
  | "Privacy"
8836
8849
  | "Legal";
8837
8850
 
8851
+ export type AiPendingLoanUpdateDecisionOutcomeEnum = "Applied" | "Refused";
8852
+
8838
8853
  export type AiUrlSourceCategoryEnum =
8839
8854
  | "Regulatory"
8840
8855
  | "Guidelines"
@@ -10850,11 +10865,11 @@ export class Api<
10850
10865
  }),
10851
10866
 
10852
10867
  /**
10853
- * @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.
10868
+ * @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.
10854
10869
  *
10855
10870
  * @tags AiAudit
10856
10871
  * @name GetAiAuditConversations
10857
- * @summary List conversations with their audit roll-up — origin user, turns, status, tokens
10872
+ * @summary List conversations with their audit roll-up — origin user, loan, turns, status, tokens
10858
10873
  * @request GET:/api/ai/audit-conversations
10859
10874
  * @secure
10860
10875
  * @response `200` `AiConversationAuditSummaryPaginated` OK
@@ -10980,6 +10995,30 @@ export class Api<
10980
10995
  ...params,
10981
10996
  }),
10982
10997
 
10998
+ /**
10999
+ * No description
11000
+ *
11001
+ * @tags AiChat
11002
+ * @name RejectAiPendingLoanUpdate
11003
+ * @summary Reject a pending AI loan change so a new one can be proposed
11004
+ * @request POST:/api/ai/chats/pending-loan-updates/{pendingLoanUpdateId}/reject
11005
+ * @secure
11006
+ * @response `204` `void` No Content
11007
+ * @response `401` `ProblemDetails` Unauthorized
11008
+ * @response `404` `ProblemDetails` Not Found
11009
+ * @response `429` `ProblemDetails` Too Many Requests
11010
+ */
11011
+ rejectAiPendingLoanUpdate: (
11012
+ pendingLoanUpdateId: string,
11013
+ params: RequestParams = {},
11014
+ ) =>
11015
+ this.request<void, ProblemDetails>({
11016
+ path: `/api/ai/chats/pending-loan-updates/${pendingLoanUpdateId}/reject`,
11017
+ method: "POST",
11018
+ secure: true,
11019
+ ...params,
11020
+ }),
11021
+
10983
11022
  /**
10984
11023
  * No description
10985
11024
  *
@@ -11477,6 +11516,36 @@ export class Api<
11477
11516
  ...params,
11478
11517
  }),
11479
11518
 
11519
+ /**
11520
+ * No description
11521
+ *
11522
+ * @tags AiPromptRun
11523
+ * @name RerunAiPromptRun
11524
+ * @summary Re-run the AI verification bound to a loan task
11525
+ * @request POST:/api/ai/prompt-runs/rerun
11526
+ * @secure
11527
+ * @response `202` `void` Accepted
11528
+ * @response `400` `ProblemDetails` Bad Request
11529
+ * @response `404` `ProblemDetails` Not Found
11530
+ * @response `409` `ProblemDetails` Conflict
11531
+ * @response `429` `ProblemDetails` Too Many Requests
11532
+ * @response `503` `void` Service Unavailable
11533
+ */
11534
+ rerunAiPromptRun: (
11535
+ query?: {
11536
+ /** @format uuid */
11537
+ subjectEntityId?: string;
11538
+ },
11539
+ params: RequestParams = {},
11540
+ ) =>
11541
+ this.request<void, ProblemDetails | void>({
11542
+ path: `/api/ai/prompt-runs/rerun`,
11543
+ method: "POST",
11544
+ query: query,
11545
+ secure: true,
11546
+ ...params,
11547
+ }),
11548
+
11480
11549
  /**
11481
11550
  * No description
11482
11551
  *