@botpress/client 0.26.2 → 0.26.4

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
@@ -7019,6 +7019,19 @@ type DeleteIntegrationInput = DeleteIntegrationRequestBody & DeleteIntegrationRe
7019
7019
  interface DeleteIntegrationResponse {
7020
7020
  }
7021
7021
 
7022
+ interface RequestIntegrationVerificationRequestHeaders {
7023
+ }
7024
+ interface RequestIntegrationVerificationRequestQuery {
7025
+ }
7026
+ interface RequestIntegrationVerificationRequestParams {
7027
+ }
7028
+ interface RequestIntegrationVerificationRequestBody {
7029
+ integrationId: string;
7030
+ }
7031
+ type RequestIntegrationVerificationInput = RequestIntegrationVerificationRequestBody & RequestIntegrationVerificationRequestHeaders & RequestIntegrationVerificationRequestQuery & RequestIntegrationVerificationRequestParams;
7032
+ interface RequestIntegrationVerificationResponse {
7033
+ }
7034
+
7022
7035
  interface CreateInterfaceRequestHeaders {
7023
7036
  }
7024
7037
  interface CreateInterfaceRequestQuery {
@@ -7793,6 +7806,10 @@ interface UpsertFileRequestBody {
7793
7806
  * File content type. If omitted, the content type will be inferred from the file extension (if any) specified in `key`. If a content type cannot be inferred, the default is "application/octet-stream".
7794
7807
  */
7795
7808
  contentType?: string;
7809
+ /**
7810
+ * Expiry timestamp in ISO 8601 format with UTC timezone. After expiry, the File will be deleted. Must be in the future. Cannot be more than 30 days from now. The value up to minutes is considered. Seconds and milliseconds are ignored.
7811
+ */
7812
+ expiresAt?: string;
7796
7813
  }
7797
7814
  type UpsertFileInput = UpsertFileRequestBody & UpsertFileRequestHeaders & UpsertFileRequestQuery & UpsertFileRequestParams;
7798
7815
  interface UpsertFileResponse {
@@ -7859,6 +7876,10 @@ interface UpsertFileResponse {
7859
7876
  * If the file status is `upload_failed` or `indexing_failed` this will contain the reason of the failure.
7860
7877
  */
7861
7878
  failedStatusReason?: string;
7879
+ /**
7880
+ * File expiry timestamp in ISO 8601 format
7881
+ */
7882
+ expiresAt?: string;
7862
7883
  /**
7863
7884
  * URL to upload the file content. File content needs to be sent to this URL via a PUT request.
7864
7885
  */
@@ -7956,6 +7977,10 @@ interface ListFilesResponse {
7956
7977
  * If the file status is `upload_failed` or `indexing_failed` this will contain the reason of the failure.
7957
7978
  */
7958
7979
  failedStatusReason?: string;
7980
+ /**
7981
+ * File expiry timestamp in ISO 8601 format
7982
+ */
7983
+ expiresAt?: string;
7959
7984
  }[];
7960
7985
  meta: {
7961
7986
  /**
@@ -8039,6 +8064,10 @@ interface GetFileResponse {
8039
8064
  * If the file status is `upload_failed` or `indexing_failed` this will contain the reason of the failure.
8040
8065
  */
8041
8066
  failedStatusReason?: string;
8067
+ /**
8068
+ * File expiry timestamp in ISO 8601 format
8069
+ */
8070
+ expiresAt?: string;
8042
8071
  };
8043
8072
  }
8044
8073
 
@@ -8060,6 +8089,10 @@ interface UpdateFileMetadataRequestBody {
8060
8089
  * New access policies to set for the file. Omit to keep existing policies intact.
8061
8090
  */
8062
8091
  accessPolicies?: ("integrations" | "public_content")[];
8092
+ /**
8093
+ * Expiry timestamp in ISO 8601 format with UTC timezone. After expiry, the File will be deleted. Must be in the future. Cannot be more than 30 days from now. The value up to minutes is considered. Seconds and milliseconds are ignored. Omit to keep the existing expiry intact. Set to `null` to remove the expiry.
8094
+ */
8095
+ expiresAt?: string | null;
8063
8096
  }
8064
8097
  type UpdateFileMetadataInput = UpdateFileMetadataRequestBody & UpdateFileMetadataRequestHeaders & UpdateFileMetadataRequestQuery & UpdateFileMetadataRequestParams;
8065
8098
  interface UpdateFileMetadataResponse {
@@ -8126,6 +8159,10 @@ interface UpdateFileMetadataResponse {
8126
8159
  * If the file status is `upload_failed` or `indexing_failed` this will contain the reason of the failure.
8127
8160
  */
8128
8161
  failedStatusReason?: string;
8162
+ /**
8163
+ * File expiry timestamp in ISO 8601 format
8164
+ */
8165
+ expiresAt?: string;
8129
8166
  };
8130
8167
  }
8131
8168
 
@@ -8322,12 +8359,16 @@ interface ListTablesResponse {
8322
8359
  */
8323
8360
  width?: number;
8324
8361
  computed?: {
8325
- action: "ai" | "workflow";
8362
+ action: "ai" | "code" | "workflow";
8326
8363
  dependencies?: string[];
8327
8364
  /**
8328
8365
  * Prompt when action is "ai"
8329
8366
  */
8330
8367
  prompt?: string;
8368
+ /**
8369
+ * Code to execute when action is "code"
8370
+ */
8371
+ code?: string;
8331
8372
  /**
8332
8373
  * Model to use when action is "ai"
8333
8374
  */
@@ -8438,12 +8479,16 @@ interface GetTableResponse {
8438
8479
  */
8439
8480
  width?: number;
8440
8481
  computed?: {
8441
- action: "ai" | "workflow";
8482
+ action: "ai" | "code" | "workflow";
8442
8483
  dependencies?: string[];
8443
8484
  /**
8444
8485
  * Prompt when action is "ai"
8445
8486
  */
8446
8487
  prompt?: string;
8488
+ /**
8489
+ * Code to execute when action is "code"
8490
+ */
8491
+ code?: string;
8447
8492
  /**
8448
8493
  * Model to use when action is "ai"
8449
8494
  */
@@ -8590,12 +8635,16 @@ interface GetOrCreateTableResponse {
8590
8635
  */
8591
8636
  width?: number;
8592
8637
  computed?: {
8593
- action: "ai" | "workflow";
8638
+ action: "ai" | "code" | "workflow";
8594
8639
  dependencies?: string[];
8595
8640
  /**
8596
8641
  * Prompt when action is "ai"
8597
8642
  */
8598
8643
  prompt?: string;
8644
+ /**
8645
+ * Code to execute when action is "code"
8646
+ */
8647
+ code?: string;
8599
8648
  /**
8600
8649
  * Model to use when action is "ai"
8601
8650
  */
@@ -8749,12 +8798,16 @@ interface CreateTableResponse {
8749
8798
  */
8750
8799
  width?: number;
8751
8800
  computed?: {
8752
- action: "ai" | "workflow";
8801
+ action: "ai" | "code" | "workflow";
8753
8802
  dependencies?: string[];
8754
8803
  /**
8755
8804
  * Prompt when action is "ai"
8756
8805
  */
8757
8806
  prompt?: string;
8807
+ /**
8808
+ * Code to execute when action is "code"
8809
+ */
8810
+ code?: string;
8758
8811
  /**
8759
8812
  * Model to use when action is "ai"
8760
8813
  */
@@ -8874,12 +8927,16 @@ interface DuplicateTableResponse {
8874
8927
  */
8875
8928
  width?: number;
8876
8929
  computed?: {
8877
- action: "ai" | "workflow";
8930
+ action: "ai" | "code" | "workflow";
8878
8931
  dependencies?: string[];
8879
8932
  /**
8880
8933
  * Prompt when action is "ai"
8881
8934
  */
8882
8935
  prompt?: string;
8936
+ /**
8937
+ * Code to execute when action is "code"
8938
+ */
8939
+ code?: string;
8883
8940
  /**
8884
8941
  * Model to use when action is "ai"
8885
8942
  */
@@ -9018,12 +9075,16 @@ interface UpdateTableResponse {
9018
9075
  */
9019
9076
  width?: number;
9020
9077
  computed?: {
9021
- action: "ai" | "workflow";
9078
+ action: "ai" | "code" | "workflow";
9022
9079
  dependencies?: string[];
9023
9080
  /**
9024
9081
  * Prompt when action is "ai"
9025
9082
  */
9026
9083
  prompt?: string;
9084
+ /**
9085
+ * Code to execute when action is "code"
9086
+ */
9087
+ code?: string;
9027
9088
  /**
9028
9089
  * Model to use when action is "ai"
9029
9090
  */
@@ -9146,12 +9207,16 @@ interface RenameTableColumnResponse {
9146
9207
  */
9147
9208
  width?: number;
9148
9209
  computed?: {
9149
- action: "ai" | "workflow";
9210
+ action: "ai" | "code" | "workflow";
9150
9211
  dependencies?: string[];
9151
9212
  /**
9152
9213
  * Prompt when action is "ai"
9153
9214
  */
9154
9215
  prompt?: string;
9216
+ /**
9217
+ * Code to execute when action is "code"
9218
+ */
9219
+ code?: string;
9155
9220
  /**
9156
9221
  * Model to use when action is "ai"
9157
9222
  */
@@ -10601,12 +10666,16 @@ interface Table {
10601
10666
  */
10602
10667
  width?: number;
10603
10668
  computed?: {
10604
- action: "ai" | "workflow";
10669
+ action: "ai" | "code" | "workflow";
10605
10670
  dependencies?: string[];
10606
10671
  /**
10607
10672
  * Prompt when action is "ai"
10608
10673
  */
10609
10674
  prompt?: string;
10675
+ /**
10676
+ * Code to execute when action is "code"
10677
+ */
10678
+ code?: string;
10610
10679
  /**
10611
10680
  * Model to use when action is "ai"
10612
10681
  */
@@ -10679,12 +10748,16 @@ interface Column {
10679
10748
  */
10680
10749
  typings?: string;
10681
10750
  computed?: {
10682
- action: "ai" | "workflow";
10751
+ action: "ai" | "code" | "workflow";
10683
10752
  dependencies?: string[];
10684
10753
  /**
10685
10754
  * Prompt when action is "ai"
10686
10755
  */
10687
10756
  prompt?: string;
10757
+ /**
10758
+ * Code to execute when action is "code"
10759
+ */
10760
+ code?: string;
10688
10761
  /**
10689
10762
  * Model to use when action is "ai"
10690
10763
  */
@@ -10793,6 +10866,10 @@ interface File {
10793
10866
  * If the file status is `upload_failed` or `indexing_failed` this will contain the reason of the failure.
10794
10867
  */
10795
10868
  failedStatusReason?: string;
10869
+ /**
10870
+ * File expiry timestamp in ISO 8601 format
10871
+ */
10872
+ expiresAt?: string;
10796
10873
  }
10797
10874
 
10798
10875
  type ClientProps$1 = {
@@ -10900,6 +10977,7 @@ declare class Client$1 {
10900
10977
  readonly getIntegrationLogs: (input: GetIntegrationLogsInput) => Promise<GetIntegrationLogsResponse>;
10901
10978
  readonly getIntegrationByName: (input: GetIntegrationByNameInput) => Promise<GetIntegrationByNameResponse>;
10902
10979
  readonly deleteIntegration: (input: DeleteIntegrationInput) => Promise<DeleteIntegrationResponse>;
10980
+ readonly requestIntegrationVerification: (input: RequestIntegrationVerificationInput) => Promise<RequestIntegrationVerificationResponse>;
10903
10981
  readonly createInterface: (input: CreateInterfaceInput) => Promise<CreateInterfaceResponse>;
10904
10982
  readonly getInterface: (input: GetInterfaceInput) => Promise<GetInterfaceResponse>;
10905
10983
  readonly getInterfaceByName: (input: GetInterfaceByNameInput) => Promise<GetInterfaceByNameResponse>;
@@ -11210,6 +11288,7 @@ declare class UploadFileError extends Error {
11210
11288
  index: boolean;
11211
11289
  status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
11212
11290
  failedStatusReason?: string | undefined;
11291
+ expiresAt?: string | undefined;
11213
11292
  uploadUrl: string;
11214
11293
  } | undefined;
11215
11294
  constructor(message: string, innerError?: AxiosError<unknown, any> | undefined, file?: {
@@ -11228,6 +11307,7 @@ declare class UploadFileError extends Error {
11228
11307
  index: boolean;
11229
11308
  status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
11230
11309
  failedStatusReason?: string | undefined;
11310
+ expiresAt?: string | undefined;
11231
11311
  uploadUrl: string;
11232
11312
  } | undefined);
11233
11313
  }