@botpress/client 2.1.0 → 2.3.0

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
@@ -16407,7 +16407,12 @@ interface GetAutoRechargeSettingsResponse {
16407
16407
  settings: {
16408
16408
  [k: string]: {
16409
16409
  enabled: boolean;
16410
- threshold?: number;
16410
+ targetType?: "addon" | "credit_grant";
16411
+ thresholdType?: "percentage" | "remaining_amount";
16412
+ threshold: number;
16413
+ addonId?: string;
16414
+ chunkSize?: number | null;
16415
+ maxAmount?: number | null;
16411
16416
  disabledReason?: string;
16412
16417
  };
16413
16418
  };
@@ -16423,7 +16428,12 @@ interface SetAutoRechargeSettingsRequestBody {
16423
16428
  settings: {
16424
16429
  [k: string]: {
16425
16430
  enabled: boolean;
16431
+ targetType?: "addon" | "credit_grant";
16432
+ thresholdType?: "percentage" | "remaining_amount";
16426
16433
  threshold?: number;
16434
+ addonId?: string;
16435
+ chunkSize?: number | null;
16436
+ maxAmount?: number | null;
16427
16437
  };
16428
16438
  };
16429
16439
  }
@@ -16432,7 +16442,12 @@ interface SetAutoRechargeSettingsResponse {
16432
16442
  settings: {
16433
16443
  [k: string]: {
16434
16444
  enabled: boolean;
16435
- threshold?: number;
16445
+ targetType?: "addon" | "credit_grant";
16446
+ thresholdType?: "percentage" | "remaining_amount";
16447
+ threshold: number;
16448
+ addonId?: string;
16449
+ chunkSize?: number | null;
16450
+ maxAmount?: number | null;
16436
16451
  disabledReason?: string;
16437
16452
  };
16438
16453
  };
@@ -16496,7 +16511,7 @@ interface CreateCreditGrantRequestParams {
16496
16511
  }
16497
16512
  interface CreateCreditGrantRequestBody {
16498
16513
  /**
16499
- * Nanodollar value of the credit grant (e.g. 10_000_000_000 = $10.00 USD)
16514
+ * Nanodollar value of the credit grant, must be at least $5 and a whole dollar amount
16500
16515
  */
16501
16516
  amount: number;
16502
16517
  feature: "ai_spend";
@@ -18963,7 +18978,7 @@ interface ExportTableResponse$1 {
18963
18978
  id: string;
18964
18979
  botId: string;
18965
18980
  tableId: string;
18966
- type: "export" | "import" | "clear_column" | "clear_vectors" | "delete_rows" | "duplicate_table";
18981
+ type: "export" | "import" | "clear_column" | "clear_vectors" | "delete_rows" | "duplicate_table" | "key_column";
18967
18982
  status: "pending" | "in_progress" | "finalizing" | "completed" | "failed";
18968
18983
  progress?: number;
18969
18984
  inputFileId: string | null;
@@ -18988,7 +19003,7 @@ interface GetTableJobsResponse$1 {
18988
19003
  id: string;
18989
19004
  botId: string;
18990
19005
  tableId: string;
18991
- type: "export" | "import" | "clear_column" | "clear_vectors" | "delete_rows" | "duplicate_table";
19006
+ type: "export" | "import" | "clear_column" | "clear_vectors" | "delete_rows" | "duplicate_table" | "key_column";
18992
19007
  status: "pending" | "in_progress" | "finalizing" | "completed" | "failed";
18993
19008
  progress?: number;
18994
19009
  inputFileId: string | null;
@@ -19017,7 +19032,7 @@ interface ImportTableResponse$1 {
19017
19032
  id: string;
19018
19033
  botId: string;
19019
19034
  tableId: string;
19020
- type: "export" | "import" | "clear_column" | "clear_vectors" | "delete_rows" | "duplicate_table";
19035
+ type: "export" | "import" | "clear_column" | "clear_vectors" | "delete_rows" | "duplicate_table" | "key_column";
19021
19036
  status: "pending" | "in_progress" | "finalizing" | "completed" | "failed";
19022
19037
  progress?: number;
19023
19038
  inputFileId: string | null;
@@ -19210,6 +19225,10 @@ interface UpdateTableResponse$1 {
19210
19225
  * List of columns that have become stale following the modification.
19211
19226
  */
19212
19227
  staleColumns?: string[];
19228
+ job?: {
19229
+ id: string;
19230
+ status: string;
19231
+ };
19213
19232
  }
19214
19233
 
19215
19234
  interface RenameTableColumnRequestHeaders$1 {
@@ -36812,7 +36831,7 @@ interface ExportTableResponse {
36812
36831
  id: string;
36813
36832
  botId: string;
36814
36833
  tableId: string;
36815
- type: "export" | "import" | "clear_column" | "clear_vectors" | "delete_rows" | "duplicate_table";
36834
+ type: "export" | "import" | "clear_column" | "clear_vectors" | "delete_rows" | "duplicate_table" | "key_column";
36816
36835
  status: "pending" | "in_progress" | "finalizing" | "completed" | "failed";
36817
36836
  progress?: number;
36818
36837
  inputFileId: string | null;
@@ -36837,7 +36856,7 @@ interface GetTableJobsResponse {
36837
36856
  id: string;
36838
36857
  botId: string;
36839
36858
  tableId: string;
36840
- type: "export" | "import" | "clear_column" | "clear_vectors" | "delete_rows" | "duplicate_table";
36859
+ type: "export" | "import" | "clear_column" | "clear_vectors" | "delete_rows" | "duplicate_table" | "key_column";
36841
36860
  status: "pending" | "in_progress" | "finalizing" | "completed" | "failed";
36842
36861
  progress?: number;
36843
36862
  inputFileId: string | null;
@@ -36866,7 +36885,7 @@ interface ImportTableResponse {
36866
36885
  id: string;
36867
36886
  botId: string;
36868
36887
  tableId: string;
36869
- type: "export" | "import" | "clear_column" | "clear_vectors" | "delete_rows" | "duplicate_table";
36888
+ type: "export" | "import" | "clear_column" | "clear_vectors" | "delete_rows" | "duplicate_table" | "key_column";
36870
36889
  status: "pending" | "in_progress" | "finalizing" | "completed" | "failed";
36871
36890
  progress?: number;
36872
36891
  inputFileId: string | null;
@@ -37059,6 +37078,10 @@ interface UpdateTableResponse {
37059
37078
  * List of columns that have become stale following the modification.
37060
37079
  */
37061
37080
  staleColumns?: string[];
37081
+ job?: {
37082
+ id: string;
37083
+ status: string;
37084
+ };
37062
37085
  }
37063
37086
 
37064
37087
  interface RenameTableColumnRequestHeaders {