@botpress/client 0.26.1 → 0.26.3
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/.turbo/turbo-build.log +7 -7
- package/.turbo/turbo-generate.log +1 -1
- package/dist/bundle.cjs +7 -7
- package/dist/bundle.cjs.map +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +82 -0
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +2 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2260,6 +2260,10 @@ interface ListPublicIntegrationsResponse {
|
|
|
2260
2260
|
* Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
2261
2261
|
*/
|
|
2262
2262
|
public: boolean;
|
|
2263
|
+
/**
|
|
2264
|
+
* Status of the integration version verification
|
|
2265
|
+
*/
|
|
2266
|
+
verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
|
|
2263
2267
|
ownerWorkspace: {
|
|
2264
2268
|
id: string;
|
|
2265
2269
|
handle: string | null;
|
|
@@ -2574,6 +2578,10 @@ interface GetPublicIntegrationByIdResponse {
|
|
|
2574
2578
|
* Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
2575
2579
|
*/
|
|
2576
2580
|
public: boolean;
|
|
2581
|
+
/**
|
|
2582
|
+
* Status of the integration version verification
|
|
2583
|
+
*/
|
|
2584
|
+
verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
|
|
2577
2585
|
/**
|
|
2578
2586
|
* Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
|
|
2579
2587
|
*/
|
|
@@ -2887,6 +2895,10 @@ interface GetPublicIntegrationResponse {
|
|
|
2887
2895
|
* Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
2888
2896
|
*/
|
|
2889
2897
|
public: boolean;
|
|
2898
|
+
/**
|
|
2899
|
+
* Status of the integration version verification
|
|
2900
|
+
*/
|
|
2901
|
+
verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
|
|
2890
2902
|
/**
|
|
2891
2903
|
* Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
|
|
2892
2904
|
*/
|
|
@@ -3156,6 +3168,10 @@ interface CreateBotResponse {
|
|
|
3156
3168
|
* Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
3157
3169
|
*/
|
|
3158
3170
|
public: boolean;
|
|
3171
|
+
/**
|
|
3172
|
+
* Status of the integration version verification
|
|
3173
|
+
*/
|
|
3174
|
+
verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
|
|
3159
3175
|
};
|
|
3160
3176
|
};
|
|
3161
3177
|
/**
|
|
@@ -3634,6 +3650,10 @@ interface UpdateBotResponse {
|
|
|
3634
3650
|
* Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
3635
3651
|
*/
|
|
3636
3652
|
public: boolean;
|
|
3653
|
+
/**
|
|
3654
|
+
* Status of the integration version verification
|
|
3655
|
+
*/
|
|
3656
|
+
verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
|
|
3637
3657
|
};
|
|
3638
3658
|
};
|
|
3639
3659
|
/**
|
|
@@ -3989,6 +4009,10 @@ interface GetBotResponse {
|
|
|
3989
4009
|
* Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
3990
4010
|
*/
|
|
3991
4011
|
public: boolean;
|
|
4012
|
+
/**
|
|
4013
|
+
* Status of the integration version verification
|
|
4014
|
+
*/
|
|
4015
|
+
verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
|
|
3992
4016
|
};
|
|
3993
4017
|
};
|
|
3994
4018
|
/**
|
|
@@ -5704,6 +5728,10 @@ interface CreateIntegrationResponse {
|
|
|
5704
5728
|
* Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
5705
5729
|
*/
|
|
5706
5730
|
public: boolean;
|
|
5731
|
+
/**
|
|
5732
|
+
* Status of the integration version verification
|
|
5733
|
+
*/
|
|
5734
|
+
verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
|
|
5707
5735
|
/**
|
|
5708
5736
|
* Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
|
|
5709
5737
|
*/
|
|
@@ -6258,6 +6286,10 @@ interface UpdateIntegrationResponse {
|
|
|
6258
6286
|
* Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
6259
6287
|
*/
|
|
6260
6288
|
public: boolean;
|
|
6289
|
+
/**
|
|
6290
|
+
* Status of the integration version verification
|
|
6291
|
+
*/
|
|
6292
|
+
verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
|
|
6261
6293
|
/**
|
|
6262
6294
|
* Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
|
|
6263
6295
|
*/
|
|
@@ -6316,6 +6348,10 @@ interface ListIntegrationsResponse {
|
|
|
6316
6348
|
* Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
6317
6349
|
*/
|
|
6318
6350
|
public: boolean;
|
|
6351
|
+
/**
|
|
6352
|
+
* Status of the integration version verification
|
|
6353
|
+
*/
|
|
6354
|
+
verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
|
|
6319
6355
|
}[];
|
|
6320
6356
|
meta: {
|
|
6321
6357
|
/**
|
|
@@ -6625,6 +6661,10 @@ interface GetIntegrationResponse {
|
|
|
6625
6661
|
* Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
6626
6662
|
*/
|
|
6627
6663
|
public: boolean;
|
|
6664
|
+
/**
|
|
6665
|
+
* Status of the integration version verification
|
|
6666
|
+
*/
|
|
6667
|
+
verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
|
|
6628
6668
|
/**
|
|
6629
6669
|
* Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
|
|
6630
6670
|
*/
|
|
@@ -6955,6 +6995,10 @@ interface GetIntegrationByNameResponse {
|
|
|
6955
6995
|
* Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
6956
6996
|
*/
|
|
6957
6997
|
public: boolean;
|
|
6998
|
+
/**
|
|
6999
|
+
* Status of the integration version verification
|
|
7000
|
+
*/
|
|
7001
|
+
verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
|
|
6958
7002
|
/**
|
|
6959
7003
|
* Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
|
|
6960
7004
|
*/
|
|
@@ -7749,6 +7793,10 @@ interface UpsertFileRequestBody {
|
|
|
7749
7793
|
* 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".
|
|
7750
7794
|
*/
|
|
7751
7795
|
contentType?: string;
|
|
7796
|
+
/**
|
|
7797
|
+
* 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.
|
|
7798
|
+
*/
|
|
7799
|
+
expiresAt?: string;
|
|
7752
7800
|
}
|
|
7753
7801
|
type UpsertFileInput = UpsertFileRequestBody & UpsertFileRequestHeaders & UpsertFileRequestQuery & UpsertFileRequestParams;
|
|
7754
7802
|
interface UpsertFileResponse {
|
|
@@ -7815,6 +7863,10 @@ interface UpsertFileResponse {
|
|
|
7815
7863
|
* If the file status is `upload_failed` or `indexing_failed` this will contain the reason of the failure.
|
|
7816
7864
|
*/
|
|
7817
7865
|
failedStatusReason?: string;
|
|
7866
|
+
/**
|
|
7867
|
+
* File expiry timestamp in ISO 8601 format
|
|
7868
|
+
*/
|
|
7869
|
+
expiresAt?: string;
|
|
7818
7870
|
/**
|
|
7819
7871
|
* URL to upload the file content. File content needs to be sent to this URL via a PUT request.
|
|
7820
7872
|
*/
|
|
@@ -7912,6 +7964,10 @@ interface ListFilesResponse {
|
|
|
7912
7964
|
* If the file status is `upload_failed` or `indexing_failed` this will contain the reason of the failure.
|
|
7913
7965
|
*/
|
|
7914
7966
|
failedStatusReason?: string;
|
|
7967
|
+
/**
|
|
7968
|
+
* File expiry timestamp in ISO 8601 format
|
|
7969
|
+
*/
|
|
7970
|
+
expiresAt?: string;
|
|
7915
7971
|
}[];
|
|
7916
7972
|
meta: {
|
|
7917
7973
|
/**
|
|
@@ -7995,6 +8051,10 @@ interface GetFileResponse {
|
|
|
7995
8051
|
* If the file status is `upload_failed` or `indexing_failed` this will contain the reason of the failure.
|
|
7996
8052
|
*/
|
|
7997
8053
|
failedStatusReason?: string;
|
|
8054
|
+
/**
|
|
8055
|
+
* File expiry timestamp in ISO 8601 format
|
|
8056
|
+
*/
|
|
8057
|
+
expiresAt?: string;
|
|
7998
8058
|
};
|
|
7999
8059
|
}
|
|
8000
8060
|
|
|
@@ -8016,6 +8076,10 @@ interface UpdateFileMetadataRequestBody {
|
|
|
8016
8076
|
* New access policies to set for the file. Omit to keep existing policies intact.
|
|
8017
8077
|
*/
|
|
8018
8078
|
accessPolicies?: ("integrations" | "public_content")[];
|
|
8079
|
+
/**
|
|
8080
|
+
* 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.
|
|
8081
|
+
*/
|
|
8082
|
+
expiresAt?: string | null;
|
|
8019
8083
|
}
|
|
8020
8084
|
type UpdateFileMetadataInput = UpdateFileMetadataRequestBody & UpdateFileMetadataRequestHeaders & UpdateFileMetadataRequestQuery & UpdateFileMetadataRequestParams;
|
|
8021
8085
|
interface UpdateFileMetadataResponse {
|
|
@@ -8082,6 +8146,10 @@ interface UpdateFileMetadataResponse {
|
|
|
8082
8146
|
* If the file status is `upload_failed` or `indexing_failed` this will contain the reason of the failure.
|
|
8083
8147
|
*/
|
|
8084
8148
|
failedStatusReason?: string;
|
|
8149
|
+
/**
|
|
8150
|
+
* File expiry timestamp in ISO 8601 format
|
|
8151
|
+
*/
|
|
8152
|
+
expiresAt?: string;
|
|
8085
8153
|
};
|
|
8086
8154
|
}
|
|
8087
8155
|
|
|
@@ -9623,6 +9691,10 @@ interface Bot {
|
|
|
9623
9691
|
* Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
9624
9692
|
*/
|
|
9625
9693
|
public: boolean;
|
|
9694
|
+
/**
|
|
9695
|
+
* Status of the integration version verification
|
|
9696
|
+
*/
|
|
9697
|
+
verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
|
|
9626
9698
|
};
|
|
9627
9699
|
};
|
|
9628
9700
|
/**
|
|
@@ -10132,6 +10204,10 @@ interface Integration {
|
|
|
10132
10204
|
* Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
10133
10205
|
*/
|
|
10134
10206
|
public: boolean;
|
|
10207
|
+
/**
|
|
10208
|
+
* Status of the integration version verification
|
|
10209
|
+
*/
|
|
10210
|
+
verificationStatus: "unapproved" | "pending" | "approved" | "rejected";
|
|
10135
10211
|
/**
|
|
10136
10212
|
* Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
|
|
10137
10213
|
*/
|
|
@@ -10741,6 +10817,10 @@ interface File {
|
|
|
10741
10817
|
* If the file status is `upload_failed` or `indexing_failed` this will contain the reason of the failure.
|
|
10742
10818
|
*/
|
|
10743
10819
|
failedStatusReason?: string;
|
|
10820
|
+
/**
|
|
10821
|
+
* File expiry timestamp in ISO 8601 format
|
|
10822
|
+
*/
|
|
10823
|
+
expiresAt?: string;
|
|
10744
10824
|
}
|
|
10745
10825
|
|
|
10746
10826
|
type ClientProps$1 = {
|
|
@@ -11158,6 +11238,7 @@ declare class UploadFileError extends Error {
|
|
|
11158
11238
|
index: boolean;
|
|
11159
11239
|
status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
|
|
11160
11240
|
failedStatusReason?: string | undefined;
|
|
11241
|
+
expiresAt?: string | undefined;
|
|
11161
11242
|
uploadUrl: string;
|
|
11162
11243
|
} | undefined;
|
|
11163
11244
|
constructor(message: string, innerError?: AxiosError<unknown, any> | undefined, file?: {
|
|
@@ -11176,6 +11257,7 @@ declare class UploadFileError extends Error {
|
|
|
11176
11257
|
index: boolean;
|
|
11177
11258
|
status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
|
|
11178
11259
|
failedStatusReason?: string | undefined;
|
|
11260
|
+
expiresAt?: string | undefined;
|
|
11179
11261
|
uploadUrl: string;
|
|
11180
11262
|
} | undefined);
|
|
11181
11263
|
}
|