@botpress/client 0.40.0 → 0.41.1
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 +9 -9
- package/.turbo/turbo-generate.log +1 -1
- package/dist/bundle.cjs +13 -13
- package/dist/bundle.cjs.map +4 -4
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +472 -13
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +4 -4
- package/{tests/e2e → e2e}/node.ts +1 -1
- package/package.json +4 -6
- package/tsconfig.build.json +9 -0
- package/tests/manual/file-upload.test.ts +0 -88
- /package/{tests/e2e → e2e}/consts.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1721,7 +1721,11 @@ interface ConfigureIntegrationRequestBody {
|
|
|
1721
1721
|
/**
|
|
1722
1722
|
* Unique identifier of the integration that was installed on the bot
|
|
1723
1723
|
*/
|
|
1724
|
-
identifier
|
|
1724
|
+
identifier?: string;
|
|
1725
|
+
/**
|
|
1726
|
+
* Recurring schedule on which `register()` will be called on the integration
|
|
1727
|
+
*/
|
|
1728
|
+
scheduleRegisterCall?: "hourly" | "daily" | "weekly" | "bi-weekly" | "monthly" | "bi-monthly" | "quarterly" | "yearly";
|
|
1725
1729
|
}
|
|
1726
1730
|
type ConfigureIntegrationInput = ConfigureIntegrationRequestBody & ConfigureIntegrationRequestHeaders & ConfigureIntegrationRequestQuery & ConfigureIntegrationRequestParams;
|
|
1727
1731
|
interface ConfigureIntegrationResponse {
|
|
@@ -2658,6 +2662,30 @@ interface GetOrCreateWorkflowResponse {
|
|
|
2658
2662
|
};
|
|
2659
2663
|
}
|
|
2660
2664
|
|
|
2665
|
+
interface ListTagValuesRequestHeaders {
|
|
2666
|
+
}
|
|
2667
|
+
interface ListTagValuesRequestQuery {
|
|
2668
|
+
nextToken?: string;
|
|
2669
|
+
type: "user" | "conversation" | "message";
|
|
2670
|
+
}
|
|
2671
|
+
interface ListTagValuesRequestParams {
|
|
2672
|
+
key: string;
|
|
2673
|
+
}
|
|
2674
|
+
interface ListTagValuesRequestBody {
|
|
2675
|
+
}
|
|
2676
|
+
type ListTagValuesInput = ListTagValuesRequestBody & ListTagValuesRequestHeaders & ListTagValuesRequestQuery & ListTagValuesRequestParams;
|
|
2677
|
+
interface ListTagValuesResponse {
|
|
2678
|
+
tags: {
|
|
2679
|
+
value: string;
|
|
2680
|
+
}[];
|
|
2681
|
+
meta: {
|
|
2682
|
+
/**
|
|
2683
|
+
* The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint.
|
|
2684
|
+
*/
|
|
2685
|
+
nextToken?: string;
|
|
2686
|
+
};
|
|
2687
|
+
}
|
|
2688
|
+
|
|
2661
2689
|
interface TrackAnalyticsRequestHeaders {
|
|
2662
2690
|
}
|
|
2663
2691
|
interface TrackAnalyticsRequestQuery {
|
|
@@ -6271,6 +6299,7 @@ interface CreateIntegrationRequestBody {
|
|
|
6271
6299
|
* Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
6272
6300
|
*/
|
|
6273
6301
|
public?: boolean;
|
|
6302
|
+
layers?: string[];
|
|
6274
6303
|
}
|
|
6275
6304
|
type CreateIntegrationInput = CreateIntegrationRequestBody & CreateIntegrationRequestHeaders & CreateIntegrationRequestQuery & CreateIntegrationRequestParams;
|
|
6276
6305
|
interface CreateIntegrationResponse {
|
|
@@ -6929,6 +6958,7 @@ interface UpdateIntegrationRequestBody {
|
|
|
6929
6958
|
* Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
6930
6959
|
*/
|
|
6931
6960
|
public?: boolean;
|
|
6961
|
+
layers?: string[];
|
|
6932
6962
|
}
|
|
6933
6963
|
type UpdateIntegrationInput = UpdateIntegrationRequestBody & UpdateIntegrationRequestHeaders & UpdateIntegrationRequestQuery & UpdateIntegrationRequestParams;
|
|
6934
6964
|
interface UpdateIntegrationResponse {
|
|
@@ -9007,7 +9037,48 @@ interface CreatePluginRequestBody {
|
|
|
9007
9037
|
};
|
|
9008
9038
|
};
|
|
9009
9039
|
};
|
|
9010
|
-
|
|
9040
|
+
/**
|
|
9041
|
+
* Conversation object configuration
|
|
9042
|
+
*/
|
|
9043
|
+
conversation?: {
|
|
9044
|
+
tags: {
|
|
9045
|
+
/**
|
|
9046
|
+
* Definition of a tag that can be provided on the object
|
|
9047
|
+
*/
|
|
9048
|
+
[k: string]: {
|
|
9049
|
+
/**
|
|
9050
|
+
* Title of the tag
|
|
9051
|
+
*/
|
|
9052
|
+
title?: string;
|
|
9053
|
+
/**
|
|
9054
|
+
* Description of the tag
|
|
9055
|
+
*/
|
|
9056
|
+
description?: string;
|
|
9057
|
+
};
|
|
9058
|
+
};
|
|
9059
|
+
};
|
|
9060
|
+
dependencies?: {
|
|
9061
|
+
interfaces?: {
|
|
9062
|
+
[k: string]: {
|
|
9063
|
+
id: string;
|
|
9064
|
+
};
|
|
9065
|
+
};
|
|
9066
|
+
integrations?: {
|
|
9067
|
+
[k: string]: {
|
|
9068
|
+
id: string;
|
|
9069
|
+
};
|
|
9070
|
+
};
|
|
9071
|
+
};
|
|
9072
|
+
code: {
|
|
9073
|
+
/**
|
|
9074
|
+
* Code of plugin bundled for Node.JS
|
|
9075
|
+
*/
|
|
9076
|
+
node: string;
|
|
9077
|
+
/**
|
|
9078
|
+
* Code of plugin bundled for the browser
|
|
9079
|
+
*/
|
|
9080
|
+
browser: string;
|
|
9081
|
+
};
|
|
9011
9082
|
}
|
|
9012
9083
|
type CreatePluginInput = CreatePluginRequestBody & CreatePluginRequestHeaders & CreatePluginRequestQuery & CreatePluginRequestParams;
|
|
9013
9084
|
interface CreatePluginResponse {
|
|
@@ -9117,6 +9188,22 @@ interface CreatePluginResponse {
|
|
|
9117
9188
|
};
|
|
9118
9189
|
};
|
|
9119
9190
|
};
|
|
9191
|
+
dependencies: {
|
|
9192
|
+
interfaces: {
|
|
9193
|
+
[k: string]: {
|
|
9194
|
+
id: string;
|
|
9195
|
+
name: string;
|
|
9196
|
+
version: string;
|
|
9197
|
+
};
|
|
9198
|
+
};
|
|
9199
|
+
integrations: {
|
|
9200
|
+
[k: string]: {
|
|
9201
|
+
id: string;
|
|
9202
|
+
name: string;
|
|
9203
|
+
version: string;
|
|
9204
|
+
};
|
|
9205
|
+
};
|
|
9206
|
+
};
|
|
9120
9207
|
/**
|
|
9121
9208
|
* User object configuration
|
|
9122
9209
|
*/
|
|
@@ -9137,7 +9224,26 @@ interface CreatePluginResponse {
|
|
|
9137
9224
|
};
|
|
9138
9225
|
};
|
|
9139
9226
|
};
|
|
9140
|
-
|
|
9227
|
+
/**
|
|
9228
|
+
* Conversation object configuration
|
|
9229
|
+
*/
|
|
9230
|
+
conversation: {
|
|
9231
|
+
tags: {
|
|
9232
|
+
/**
|
|
9233
|
+
* Definition of a tag that can be provided on the object
|
|
9234
|
+
*/
|
|
9235
|
+
[k: string]: {
|
|
9236
|
+
/**
|
|
9237
|
+
* Title of the tag
|
|
9238
|
+
*/
|
|
9239
|
+
title?: string;
|
|
9240
|
+
/**
|
|
9241
|
+
* Description of the tag
|
|
9242
|
+
*/
|
|
9243
|
+
description?: string;
|
|
9244
|
+
};
|
|
9245
|
+
};
|
|
9246
|
+
};
|
|
9141
9247
|
};
|
|
9142
9248
|
}
|
|
9143
9249
|
|
|
@@ -9258,6 +9364,22 @@ interface GetPluginResponse {
|
|
|
9258
9364
|
};
|
|
9259
9365
|
};
|
|
9260
9366
|
};
|
|
9367
|
+
dependencies: {
|
|
9368
|
+
interfaces: {
|
|
9369
|
+
[k: string]: {
|
|
9370
|
+
id: string;
|
|
9371
|
+
name: string;
|
|
9372
|
+
version: string;
|
|
9373
|
+
};
|
|
9374
|
+
};
|
|
9375
|
+
integrations: {
|
|
9376
|
+
[k: string]: {
|
|
9377
|
+
id: string;
|
|
9378
|
+
name: string;
|
|
9379
|
+
version: string;
|
|
9380
|
+
};
|
|
9381
|
+
};
|
|
9382
|
+
};
|
|
9261
9383
|
/**
|
|
9262
9384
|
* User object configuration
|
|
9263
9385
|
*/
|
|
@@ -9278,7 +9400,26 @@ interface GetPluginResponse {
|
|
|
9278
9400
|
};
|
|
9279
9401
|
};
|
|
9280
9402
|
};
|
|
9281
|
-
|
|
9403
|
+
/**
|
|
9404
|
+
* Conversation object configuration
|
|
9405
|
+
*/
|
|
9406
|
+
conversation: {
|
|
9407
|
+
tags: {
|
|
9408
|
+
/**
|
|
9409
|
+
* Definition of a tag that can be provided on the object
|
|
9410
|
+
*/
|
|
9411
|
+
[k: string]: {
|
|
9412
|
+
/**
|
|
9413
|
+
* Title of the tag
|
|
9414
|
+
*/
|
|
9415
|
+
title?: string;
|
|
9416
|
+
/**
|
|
9417
|
+
* Description of the tag
|
|
9418
|
+
*/
|
|
9419
|
+
description?: string;
|
|
9420
|
+
};
|
|
9421
|
+
};
|
|
9422
|
+
};
|
|
9282
9423
|
};
|
|
9283
9424
|
}
|
|
9284
9425
|
|
|
@@ -9400,6 +9541,22 @@ interface GetPluginByNameResponse {
|
|
|
9400
9541
|
};
|
|
9401
9542
|
};
|
|
9402
9543
|
};
|
|
9544
|
+
dependencies: {
|
|
9545
|
+
interfaces: {
|
|
9546
|
+
[k: string]: {
|
|
9547
|
+
id: string;
|
|
9548
|
+
name: string;
|
|
9549
|
+
version: string;
|
|
9550
|
+
};
|
|
9551
|
+
};
|
|
9552
|
+
integrations: {
|
|
9553
|
+
[k: string]: {
|
|
9554
|
+
id: string;
|
|
9555
|
+
name: string;
|
|
9556
|
+
version: string;
|
|
9557
|
+
};
|
|
9558
|
+
};
|
|
9559
|
+
};
|
|
9403
9560
|
/**
|
|
9404
9561
|
* User object configuration
|
|
9405
9562
|
*/
|
|
@@ -9420,7 +9577,26 @@ interface GetPluginByNameResponse {
|
|
|
9420
9577
|
};
|
|
9421
9578
|
};
|
|
9422
9579
|
};
|
|
9423
|
-
|
|
9580
|
+
/**
|
|
9581
|
+
* Conversation object configuration
|
|
9582
|
+
*/
|
|
9583
|
+
conversation: {
|
|
9584
|
+
tags: {
|
|
9585
|
+
/**
|
|
9586
|
+
* Definition of a tag that can be provided on the object
|
|
9587
|
+
*/
|
|
9588
|
+
[k: string]: {
|
|
9589
|
+
/**
|
|
9590
|
+
* Title of the tag
|
|
9591
|
+
*/
|
|
9592
|
+
title?: string;
|
|
9593
|
+
/**
|
|
9594
|
+
* Description of the tag
|
|
9595
|
+
*/
|
|
9596
|
+
description?: string;
|
|
9597
|
+
};
|
|
9598
|
+
};
|
|
9599
|
+
};
|
|
9424
9600
|
};
|
|
9425
9601
|
}
|
|
9426
9602
|
|
|
@@ -9514,9 +9690,6 @@ interface UpdatePluginRequestBody {
|
|
|
9514
9690
|
};
|
|
9515
9691
|
} | null;
|
|
9516
9692
|
};
|
|
9517
|
-
/**
|
|
9518
|
-
* User object configuration
|
|
9519
|
-
*/
|
|
9520
9693
|
user?: {
|
|
9521
9694
|
tags: {
|
|
9522
9695
|
/**
|
|
@@ -9531,10 +9704,48 @@ interface UpdatePluginRequestBody {
|
|
|
9531
9704
|
* Description of the tag
|
|
9532
9705
|
*/
|
|
9533
9706
|
description?: string;
|
|
9534
|
-
};
|
|
9707
|
+
} | null;
|
|
9535
9708
|
};
|
|
9536
|
-
}
|
|
9537
|
-
|
|
9709
|
+
};
|
|
9710
|
+
conversation?: {
|
|
9711
|
+
tags: {
|
|
9712
|
+
/**
|
|
9713
|
+
* Definition of a tag that can be provided on the object
|
|
9714
|
+
*/
|
|
9715
|
+
[k: string]: {
|
|
9716
|
+
/**
|
|
9717
|
+
* Title of the tag
|
|
9718
|
+
*/
|
|
9719
|
+
title?: string;
|
|
9720
|
+
/**
|
|
9721
|
+
* Description of the tag
|
|
9722
|
+
*/
|
|
9723
|
+
description?: string;
|
|
9724
|
+
} | null;
|
|
9725
|
+
};
|
|
9726
|
+
};
|
|
9727
|
+
dependencies?: {
|
|
9728
|
+
interfaces?: {
|
|
9729
|
+
[k: string]: {
|
|
9730
|
+
id: string;
|
|
9731
|
+
} | null;
|
|
9732
|
+
};
|
|
9733
|
+
integrations?: {
|
|
9734
|
+
[k: string]: {
|
|
9735
|
+
id: string;
|
|
9736
|
+
} | null;
|
|
9737
|
+
};
|
|
9738
|
+
};
|
|
9739
|
+
code?: {
|
|
9740
|
+
/**
|
|
9741
|
+
* Code of plugin bundled for Node.JS
|
|
9742
|
+
*/
|
|
9743
|
+
node?: string;
|
|
9744
|
+
/**
|
|
9745
|
+
* Code of plugin bundled for the browser
|
|
9746
|
+
*/
|
|
9747
|
+
browser?: string;
|
|
9748
|
+
};
|
|
9538
9749
|
}
|
|
9539
9750
|
type UpdatePluginInput = UpdatePluginRequestBody & UpdatePluginRequestHeaders & UpdatePluginRequestQuery & UpdatePluginRequestParams;
|
|
9540
9751
|
interface UpdatePluginResponse {
|
|
@@ -9644,6 +9855,22 @@ interface UpdatePluginResponse {
|
|
|
9644
9855
|
};
|
|
9645
9856
|
};
|
|
9646
9857
|
};
|
|
9858
|
+
dependencies: {
|
|
9859
|
+
interfaces: {
|
|
9860
|
+
[k: string]: {
|
|
9861
|
+
id: string;
|
|
9862
|
+
name: string;
|
|
9863
|
+
version: string;
|
|
9864
|
+
};
|
|
9865
|
+
};
|
|
9866
|
+
integrations: {
|
|
9867
|
+
[k: string]: {
|
|
9868
|
+
id: string;
|
|
9869
|
+
name: string;
|
|
9870
|
+
version: string;
|
|
9871
|
+
};
|
|
9872
|
+
};
|
|
9873
|
+
};
|
|
9647
9874
|
/**
|
|
9648
9875
|
* User object configuration
|
|
9649
9876
|
*/
|
|
@@ -9664,7 +9891,26 @@ interface UpdatePluginResponse {
|
|
|
9664
9891
|
};
|
|
9665
9892
|
};
|
|
9666
9893
|
};
|
|
9667
|
-
|
|
9894
|
+
/**
|
|
9895
|
+
* Conversation object configuration
|
|
9896
|
+
*/
|
|
9897
|
+
conversation: {
|
|
9898
|
+
tags: {
|
|
9899
|
+
/**
|
|
9900
|
+
* Definition of a tag that can be provided on the object
|
|
9901
|
+
*/
|
|
9902
|
+
[k: string]: {
|
|
9903
|
+
/**
|
|
9904
|
+
* Title of the tag
|
|
9905
|
+
*/
|
|
9906
|
+
title?: string;
|
|
9907
|
+
/**
|
|
9908
|
+
* Description of the tag
|
|
9909
|
+
*/
|
|
9910
|
+
description?: string;
|
|
9911
|
+
};
|
|
9912
|
+
};
|
|
9913
|
+
};
|
|
9668
9914
|
};
|
|
9669
9915
|
}
|
|
9670
9916
|
|
|
@@ -9723,6 +9969,21 @@ interface ListPluginsResponse {
|
|
|
9723
9969
|
};
|
|
9724
9970
|
}
|
|
9725
9971
|
|
|
9972
|
+
interface GetPluginCodeRequestHeaders {
|
|
9973
|
+
}
|
|
9974
|
+
interface GetPluginCodeRequestQuery {
|
|
9975
|
+
}
|
|
9976
|
+
interface GetPluginCodeRequestParams {
|
|
9977
|
+
id: string;
|
|
9978
|
+
platform: "node" | "browser";
|
|
9979
|
+
}
|
|
9980
|
+
interface GetPluginCodeRequestBody {
|
|
9981
|
+
}
|
|
9982
|
+
type GetPluginCodeInput = GetPluginCodeRequestBody & GetPluginCodeRequestHeaders & GetPluginCodeRequestQuery & GetPluginCodeRequestParams;
|
|
9983
|
+
interface GetPluginCodeResponse {
|
|
9984
|
+
code: string;
|
|
9985
|
+
}
|
|
9986
|
+
|
|
9726
9987
|
interface GetUsageRequestHeaders {
|
|
9727
9988
|
}
|
|
9728
9989
|
interface GetUsageRequestQuery {
|
|
@@ -9837,6 +10098,8 @@ interface ListUsageActivityRequestHeaders {
|
|
|
9837
10098
|
}
|
|
9838
10099
|
interface ListUsageActivityRequestQuery {
|
|
9839
10100
|
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive";
|
|
10101
|
+
timestampFrom?: string;
|
|
10102
|
+
timestampUntil?: string;
|
|
9840
10103
|
nextToken?: string;
|
|
9841
10104
|
}
|
|
9842
10105
|
interface ListUsageActivityRequestParams {
|
|
@@ -9859,6 +10122,30 @@ interface ListUsageActivityResponse {
|
|
|
9859
10122
|
};
|
|
9860
10123
|
}
|
|
9861
10124
|
|
|
10125
|
+
interface ListUsageActivityDailyRequestHeaders {
|
|
10126
|
+
}
|
|
10127
|
+
interface ListUsageActivityDailyRequestQuery {
|
|
10128
|
+
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive";
|
|
10129
|
+
dateFrom?: string;
|
|
10130
|
+
dateUntil?: string;
|
|
10131
|
+
nextToken?: string;
|
|
10132
|
+
}
|
|
10133
|
+
interface ListUsageActivityDailyRequestParams {
|
|
10134
|
+
id: string;
|
|
10135
|
+
}
|
|
10136
|
+
interface ListUsageActivityDailyRequestBody {
|
|
10137
|
+
}
|
|
10138
|
+
type ListUsageActivityDailyInput = ListUsageActivityDailyRequestBody & ListUsageActivityDailyRequestHeaders & ListUsageActivityDailyRequestQuery & ListUsageActivityDailyRequestParams;
|
|
10139
|
+
interface ListUsageActivityDailyResponse {
|
|
10140
|
+
data: {
|
|
10141
|
+
date: string;
|
|
10142
|
+
value: number;
|
|
10143
|
+
}[];
|
|
10144
|
+
meta: {
|
|
10145
|
+
nextToken?: string;
|
|
10146
|
+
};
|
|
10147
|
+
}
|
|
10148
|
+
|
|
9862
10149
|
interface ChangeAispendQuotaRequestHeaders {
|
|
9863
10150
|
}
|
|
9864
10151
|
interface ChangeAispendQuotaRequestQuery {
|
|
@@ -10459,6 +10746,96 @@ interface UpdateFileMetadataResponse {
|
|
|
10459
10746
|
};
|
|
10460
10747
|
}
|
|
10461
10748
|
|
|
10749
|
+
interface CopyFileRequestHeaders {
|
|
10750
|
+
"x-destination-bot-id"?: string;
|
|
10751
|
+
}
|
|
10752
|
+
interface CopyFileRequestQuery {
|
|
10753
|
+
}
|
|
10754
|
+
interface CopyFileRequestParams {
|
|
10755
|
+
idOrKey: string;
|
|
10756
|
+
destinationKey: string;
|
|
10757
|
+
}
|
|
10758
|
+
interface CopyFileRequestBody {
|
|
10759
|
+
i?: boolean;
|
|
10760
|
+
}
|
|
10761
|
+
type CopyFileInput = CopyFileRequestBody & CopyFileRequestHeaders & CopyFileRequestQuery & CopyFileRequestParams;
|
|
10762
|
+
interface CopyFileResponse {
|
|
10763
|
+
file: {
|
|
10764
|
+
/**
|
|
10765
|
+
* File ID
|
|
10766
|
+
*/
|
|
10767
|
+
id: string;
|
|
10768
|
+
/**
|
|
10769
|
+
* The ID of the bot the file belongs to
|
|
10770
|
+
*/
|
|
10771
|
+
botId: string;
|
|
10772
|
+
/**
|
|
10773
|
+
* Unique key for the file. Must be unique across the bot (and the integration, when applicable).
|
|
10774
|
+
*/
|
|
10775
|
+
key: string;
|
|
10776
|
+
/**
|
|
10777
|
+
* URL to retrieve the file content. This URL will be ready to use once the file is uploaded.
|
|
10778
|
+
*
|
|
10779
|
+
* If the file has a `public_content` policy, this will contain the permanent public URL to retrieve the file, otherwise this will contain a temporary pre-signed URL to download the file which should be used shortly after retrieving and should not be stored long-term as the URL will expire after a short timeframe.
|
|
10780
|
+
*/
|
|
10781
|
+
url: string;
|
|
10782
|
+
/**
|
|
10783
|
+
* File size in bytes. Non-null if file upload status is "COMPLETE".
|
|
10784
|
+
*/
|
|
10785
|
+
size: number | null;
|
|
10786
|
+
/**
|
|
10787
|
+
* MIME type of the file's content
|
|
10788
|
+
*/
|
|
10789
|
+
contentType: string;
|
|
10790
|
+
/**
|
|
10791
|
+
* The tags of the file as an object of key/value pairs
|
|
10792
|
+
*/
|
|
10793
|
+
tags: {
|
|
10794
|
+
[k: string]: string;
|
|
10795
|
+
};
|
|
10796
|
+
/**
|
|
10797
|
+
* Metadata of the file as an object of key/value pairs. The values can be of any type.
|
|
10798
|
+
*/
|
|
10799
|
+
metadata: {
|
|
10800
|
+
[k: string]: any;
|
|
10801
|
+
};
|
|
10802
|
+
/**
|
|
10803
|
+
* File creation timestamp in ISO 8601 format
|
|
10804
|
+
*/
|
|
10805
|
+
createdAt: string;
|
|
10806
|
+
/**
|
|
10807
|
+
* File last update timestamp in ISO 8601 format
|
|
10808
|
+
*/
|
|
10809
|
+
updatedAt: string;
|
|
10810
|
+
/**
|
|
10811
|
+
* Access policies configured for the file.
|
|
10812
|
+
*/
|
|
10813
|
+
accessPolicies: ("integrations" | "public_content")[];
|
|
10814
|
+
/**
|
|
10815
|
+
* Whether the file was requested to be indexed for search or not.
|
|
10816
|
+
*/
|
|
10817
|
+
index: boolean;
|
|
10818
|
+
/**
|
|
10819
|
+
* Status of the file. If the status is `upload_pending`, the file content has not been uploaded yet. The status will be set to `upload_completed` once the file content has been uploaded successfully.
|
|
10820
|
+
*
|
|
10821
|
+
* If the upload failed for any reason (e.g. exceeding the storage quota or the maximum file size limit) the status will be set to `upload_failed` and the reason for the failure will be available in the `failedStatusReason` field of the file.
|
|
10822
|
+
*
|
|
10823
|
+
* However, if the file has been uploaded and the `index` attribute was set to `true` on the file, the status will immediately transition to the `indexing_pending` status (the `upload_completed` status step will be skipped).
|
|
10824
|
+
*
|
|
10825
|
+
* Once the indexing is completed and the file is ready to be used for searching its status will be set to `indexing_completed`. If the indexing failed the status will be set to `indexing_failed` and the reason for the failure will be available in the `failedStatusReason` field.
|
|
10826
|
+
*/
|
|
10827
|
+
status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
|
|
10828
|
+
/**
|
|
10829
|
+
* If the file status is `upload_failed` or `indexing_failed` this will contain the reason of the failure.
|
|
10830
|
+
*/
|
|
10831
|
+
failedStatusReason?: string;
|
|
10832
|
+
/**
|
|
10833
|
+
* File expiry timestamp in ISO 8601 format
|
|
10834
|
+
*/
|
|
10835
|
+
expiresAt?: string;
|
|
10836
|
+
};
|
|
10837
|
+
}
|
|
10838
|
+
|
|
10462
10839
|
interface SearchFilesRequestHeaders {
|
|
10463
10840
|
}
|
|
10464
10841
|
interface SearchFilesRequestQuery {
|
|
@@ -10596,6 +10973,47 @@ interface ListFilePassagesResponse {
|
|
|
10596
10973
|
};
|
|
10597
10974
|
}
|
|
10598
10975
|
|
|
10976
|
+
interface ListFileTagsRequestHeaders {
|
|
10977
|
+
}
|
|
10978
|
+
interface ListFileTagsRequestQuery {
|
|
10979
|
+
nextToken?: string;
|
|
10980
|
+
}
|
|
10981
|
+
interface ListFileTagsRequestParams {
|
|
10982
|
+
}
|
|
10983
|
+
interface ListFileTagsRequestBody {
|
|
10984
|
+
}
|
|
10985
|
+
type ListFileTagsInput = ListFileTagsRequestBody & ListFileTagsRequestHeaders & ListFileTagsRequestQuery & ListFileTagsRequestParams;
|
|
10986
|
+
interface ListFileTagsResponse {
|
|
10987
|
+
tags: string[];
|
|
10988
|
+
meta: {
|
|
10989
|
+
/**
|
|
10990
|
+
* The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint.
|
|
10991
|
+
*/
|
|
10992
|
+
nextToken?: string;
|
|
10993
|
+
};
|
|
10994
|
+
}
|
|
10995
|
+
|
|
10996
|
+
interface ListFileTagValuesRequestHeaders {
|
|
10997
|
+
}
|
|
10998
|
+
interface ListFileTagValuesRequestQuery {
|
|
10999
|
+
nextToken?: string;
|
|
11000
|
+
}
|
|
11001
|
+
interface ListFileTagValuesRequestParams {
|
|
11002
|
+
tag: string;
|
|
11003
|
+
}
|
|
11004
|
+
interface ListFileTagValuesRequestBody {
|
|
11005
|
+
}
|
|
11006
|
+
type ListFileTagValuesInput = ListFileTagValuesRequestBody & ListFileTagValuesRequestHeaders & ListFileTagValuesRequestQuery & ListFileTagValuesRequestParams;
|
|
11007
|
+
interface ListFileTagValuesResponse {
|
|
11008
|
+
values: string[];
|
|
11009
|
+
meta: {
|
|
11010
|
+
/**
|
|
11011
|
+
* The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint.
|
|
11012
|
+
*/
|
|
11013
|
+
nextToken?: string;
|
|
11014
|
+
};
|
|
11015
|
+
}
|
|
11016
|
+
|
|
10599
11017
|
interface ListTablesRequestHeaders {
|
|
10600
11018
|
}
|
|
10601
11019
|
interface ListTablesRequestQuery {
|
|
@@ -13094,6 +13512,22 @@ interface Plugin {
|
|
|
13094
13512
|
};
|
|
13095
13513
|
};
|
|
13096
13514
|
};
|
|
13515
|
+
dependencies: {
|
|
13516
|
+
interfaces: {
|
|
13517
|
+
[k: string]: {
|
|
13518
|
+
id: string;
|
|
13519
|
+
name: string;
|
|
13520
|
+
version: string;
|
|
13521
|
+
};
|
|
13522
|
+
};
|
|
13523
|
+
integrations: {
|
|
13524
|
+
[k: string]: {
|
|
13525
|
+
id: string;
|
|
13526
|
+
name: string;
|
|
13527
|
+
version: string;
|
|
13528
|
+
};
|
|
13529
|
+
};
|
|
13530
|
+
};
|
|
13097
13531
|
/**
|
|
13098
13532
|
* User object configuration
|
|
13099
13533
|
*/
|
|
@@ -13114,7 +13548,26 @@ interface Plugin {
|
|
|
13114
13548
|
};
|
|
13115
13549
|
};
|
|
13116
13550
|
};
|
|
13117
|
-
|
|
13551
|
+
/**
|
|
13552
|
+
* Conversation object configuration
|
|
13553
|
+
*/
|
|
13554
|
+
conversation: {
|
|
13555
|
+
tags: {
|
|
13556
|
+
/**
|
|
13557
|
+
* Definition of a tag that can be provided on the object
|
|
13558
|
+
*/
|
|
13559
|
+
[k: string]: {
|
|
13560
|
+
/**
|
|
13561
|
+
* Title of the tag
|
|
13562
|
+
*/
|
|
13563
|
+
title?: string;
|
|
13564
|
+
/**
|
|
13565
|
+
* Description of the tag
|
|
13566
|
+
*/
|
|
13567
|
+
description?: string;
|
|
13568
|
+
};
|
|
13569
|
+
};
|
|
13570
|
+
};
|
|
13118
13571
|
}
|
|
13119
13572
|
interface Workspace {
|
|
13120
13573
|
id: string;
|
|
@@ -13803,6 +14256,7 @@ declare class Client$1 {
|
|
|
13803
14256
|
readonly deleteWorkflow: (input: DeleteWorkflowInput) => Promise<DeleteWorkflowResponse>;
|
|
13804
14257
|
readonly listWorkflows: (input: ListWorkflowsInput) => Promise<ListWorkflowsResponse>;
|
|
13805
14258
|
readonly getOrCreateWorkflow: (input: GetOrCreateWorkflowInput) => Promise<GetOrCreateWorkflowResponse>;
|
|
14259
|
+
readonly listTagValues: (input: ListTagValuesInput) => Promise<ListTagValuesResponse>;
|
|
13806
14260
|
readonly trackAnalytics: (input: TrackAnalyticsInput) => Promise<TrackAnalyticsResponse>;
|
|
13807
14261
|
readonly runVrl: (input: RunVrlInput) => Promise<RunVrlResponse>;
|
|
13808
14262
|
readonly getAccount: (input: GetAccountInput) => Promise<GetAccountResponse>;
|
|
@@ -13877,10 +14331,12 @@ declare class Client$1 {
|
|
|
13877
14331
|
readonly updatePlugin: (input: UpdatePluginInput) => Promise<UpdatePluginResponse>;
|
|
13878
14332
|
readonly deletePlugin: (input: DeletePluginInput) => Promise<DeletePluginResponse>;
|
|
13879
14333
|
readonly listPlugins: (input: ListPluginsInput) => Promise<ListPluginsResponse>;
|
|
14334
|
+
readonly getPluginCode: (input: GetPluginCodeInput) => Promise<GetPluginCodeResponse>;
|
|
13880
14335
|
readonly getUsage: (input: GetUsageInput) => Promise<GetUsageResponse>;
|
|
13881
14336
|
readonly getMultipleUsages: (input: GetMultipleUsagesInput) => Promise<GetMultipleUsagesResponse>;
|
|
13882
14337
|
readonly listUsageHistory: (input: ListUsageHistoryInput) => Promise<ListUsageHistoryResponse>;
|
|
13883
14338
|
readonly listUsageActivity: (input: ListUsageActivityInput) => Promise<ListUsageActivityResponse>;
|
|
14339
|
+
readonly listUsageActivityDaily: (input: ListUsageActivityDailyInput) => Promise<ListUsageActivityDailyResponse>;
|
|
13884
14340
|
readonly changeAISpendQuota: (input: ChangeAispendQuotaInput) => Promise<ChangeAispendQuotaResponse>;
|
|
13885
14341
|
readonly listActivities: (input: ListActivitiesInput) => Promise<ListActivitiesResponse>;
|
|
13886
14342
|
readonly introspect: (input: IntrospectInput) => Promise<IntrospectResponse>;
|
|
@@ -13889,8 +14345,11 @@ declare class Client$1 {
|
|
|
13889
14345
|
readonly listFiles: (input: ListFilesInput) => Promise<ListFilesResponse>;
|
|
13890
14346
|
readonly getFile: (input: GetFileInput) => Promise<GetFileResponse>;
|
|
13891
14347
|
readonly updateFileMetadata: (input: UpdateFileMetadataInput) => Promise<UpdateFileMetadataResponse>;
|
|
14348
|
+
readonly copyFile: (input: CopyFileInput) => Promise<CopyFileResponse>;
|
|
13892
14349
|
readonly searchFiles: (input: SearchFilesInput) => Promise<SearchFilesResponse>;
|
|
13893
14350
|
readonly listFilePassages: (input: ListFilePassagesInput) => Promise<ListFilePassagesResponse>;
|
|
14351
|
+
readonly listFileTags: (input: ListFileTagsInput) => Promise<ListFileTagsResponse>;
|
|
14352
|
+
readonly listFileTagValues: (input: ListFileTagValuesInput) => Promise<ListFileTagValuesResponse>;
|
|
13894
14353
|
readonly listTables: (input: ListTablesInput) => Promise<ListTablesResponse>;
|
|
13895
14354
|
readonly getTable: (input: GetTableInput) => Promise<GetTableResponse>;
|
|
13896
14355
|
readonly getOrCreateTable: (input: GetOrCreateTableInput) => Promise<GetOrCreateTableResponse>;
|