@matech/thebigpos-sdk 3.21.0-dev-7192 → 3.21.0-main-7219

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
@@ -1446,6 +1446,7 @@ export interface AiPrompt {
1446
1446
  isFeatured: boolean;
1447
1447
  icon?: string | null;
1448
1448
  agentSystemPrompt?: string | null;
1449
+ tools?: AiPromptTool[] | null;
1449
1450
  hasAccountOverride: boolean;
1450
1451
  /** @format date-time */
1451
1452
  createdAt: string;
@@ -1547,6 +1548,14 @@ export interface AiPromptSummary {
1547
1548
  icon?: string | null;
1548
1549
  }
1549
1550
 
1551
+ export interface AiPromptTool {
1552
+ toolName: string;
1553
+ }
1554
+
1555
+ export interface AiPromptToolInput {
1556
+ toolName: string;
1557
+ }
1558
+
1550
1559
  export interface AiTokenBudgetStatus {
1551
1560
  /** @format int32 */
1552
1561
  limit: number;
@@ -1592,6 +1601,13 @@ export interface AiTokenUsageWindowPaginated {
1592
1601
  count: number;
1593
1602
  }
1594
1603
 
1604
+ export interface AiToolCatalogItem {
1605
+ toolName: string;
1606
+ displayName: string;
1607
+ description: string;
1608
+ isWriteTool: boolean;
1609
+ }
1610
+
1595
1611
  export interface AiUpdatedBy {
1596
1612
  /** @format uuid */
1597
1613
  id: string;
@@ -8033,6 +8049,10 @@ export interface UpdateAiPromptRequest {
8033
8049
  inputHint?: string | null;
8034
8050
  isFeatured?: boolean | null;
8035
8051
  icon?: string | null;
8052
+ }
8053
+
8054
+ export interface UpdateAiPromptToolsRequest {
8055
+ tools: AiPromptToolInput[];
8036
8056
  agentSystemPrompt?: string | null;
8037
8057
  }
8038
8058
 
@@ -10605,6 +10625,52 @@ export class Api<
10605
10625
  ...params,
10606
10626
  }),
10607
10627
 
10628
+ /**
10629
+ * No description
10630
+ *
10631
+ * @tags AiAdminPrompt
10632
+ * @name GetAiTools
10633
+ * @summary List available agent tools and their settings schema
10634
+ * @request GET:/api/ai/prompts/tools
10635
+ * @secure
10636
+ * @response `200` `(AiToolCatalogItem)[]` OK
10637
+ */
10638
+ getAiTools: (params: RequestParams = {}) =>
10639
+ this.request<AiToolCatalogItem[], any>({
10640
+ path: `/api/ai/prompts/tools`,
10641
+ method: "GET",
10642
+ secure: true,
10643
+ format: "json",
10644
+ ...params,
10645
+ }),
10646
+
10647
+ /**
10648
+ * No description
10649
+ *
10650
+ * @tags AiAdminPrompt
10651
+ * @name UpdateAiPromptTools
10652
+ * @summary Replace the prompt's agent tool configuration
10653
+ * @request PUT:/api/ai/prompts/{id}/tools
10654
+ * @secure
10655
+ * @response `200` `AiPrompt` OK
10656
+ * @response `400` `ProblemDetails` Bad Request
10657
+ * @response `404` `ProblemDetails` Not Found
10658
+ */
10659
+ updateAiPromptTools: (
10660
+ id: string,
10661
+ data: UpdateAiPromptToolsRequest,
10662
+ params: RequestParams = {},
10663
+ ) =>
10664
+ this.request<AiPrompt, ProblemDetails>({
10665
+ path: `/api/ai/prompts/${id}/tools`,
10666
+ method: "PUT",
10667
+ body: data,
10668
+ secure: true,
10669
+ type: "application/json",
10670
+ format: "json",
10671
+ ...params,
10672
+ }),
10673
+
10608
10674
  /**
10609
10675
  * No description
10610
10676
  *
@@ -16219,58 +16285,6 @@ export class Api<
16219
16285
  ...params,
16220
16286
  }),
16221
16287
 
16222
- /**
16223
- * No description
16224
- *
16225
- * @tags LoanBorrowerRemoval
16226
- * @name RemoveLoanBorrower
16227
- * @summary Remove a co-borrower from an application in progress
16228
- * @request POST:/api/loans/{loanId}/borrowers/{borrowerId}/remove
16229
- * @secure
16230
- * @response `204` `void` No Content
16231
- * @response `400` `ProblemDetails` Bad Request
16232
- * @response `403` `ProblemDetails` Forbidden
16233
- * @response `404` `ProblemDetails` Not Found
16234
- * @response `409` `ProblemDetails` Conflict
16235
- */
16236
- removeLoanBorrower: (
16237
- loanId: string,
16238
- borrowerId: string,
16239
- params: RequestParams = {},
16240
- ) =>
16241
- this.request<void, ProblemDetails>({
16242
- path: `/api/loans/${loanId}/borrowers/${borrowerId}/remove`,
16243
- method: "POST",
16244
- secure: true,
16245
- ...params,
16246
- }),
16247
-
16248
- /**
16249
- * No description
16250
- *
16251
- * @tags LoanBorrowerRemoval
16252
- * @name RestoreLoanBorrower
16253
- * @summary Restore a removed co-borrower to an application in progress
16254
- * @request POST:/api/loans/{loanId}/borrowers/{borrowerId}/restore
16255
- * @secure
16256
- * @response `204` `void` No Content
16257
- * @response `400` `ProblemDetails` Bad Request
16258
- * @response `403` `ProblemDetails` Forbidden
16259
- * @response `404` `ProblemDetails` Not Found
16260
- * @response `409` `ProblemDetails` Conflict
16261
- */
16262
- restoreLoanBorrower: (
16263
- loanId: string,
16264
- borrowerId: string,
16265
- params: RequestParams = {},
16266
- ) =>
16267
- this.request<void, ProblemDetails>({
16268
- path: `/api/loans/${loanId}/borrowers/${borrowerId}/restore`,
16269
- method: "POST",
16270
- secure: true,
16271
- ...params,
16272
- }),
16273
-
16274
16288
  /**
16275
16289
  * No description
16276
16290
  *