@botpress/client 1.15.1 → 1.15.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/dist/bundle.cjs +11 -11
- package/dist/bundle.cjs.map +4 -4
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +407 -30
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1389,7 +1389,7 @@ interface UpdateUserRequestBody$1 {
|
|
|
1389
1389
|
/**
|
|
1390
1390
|
* Name of the user
|
|
1391
1391
|
*/
|
|
1392
|
-
name?: string;
|
|
1392
|
+
name?: string | null;
|
|
1393
1393
|
/**
|
|
1394
1394
|
* URI of the user picture
|
|
1395
1395
|
*/
|
|
@@ -3070,6 +3070,18 @@ interface UpdateAccountResponse$1 {
|
|
|
3070
3070
|
};
|
|
3071
3071
|
}
|
|
3072
3072
|
|
|
3073
|
+
interface DeleteAccountRequestHeaders$1 {
|
|
3074
|
+
}
|
|
3075
|
+
interface DeleteAccountRequestQuery$1 {
|
|
3076
|
+
}
|
|
3077
|
+
interface DeleteAccountRequestParams$1 {
|
|
3078
|
+
}
|
|
3079
|
+
interface DeleteAccountRequestBody$1 {
|
|
3080
|
+
}
|
|
3081
|
+
type DeleteAccountInput$1 = DeleteAccountRequestBody$1 & DeleteAccountRequestHeaders$1 & DeleteAccountRequestQuery$1 & DeleteAccountRequestParams$1;
|
|
3082
|
+
interface DeleteAccountResponse$1 {
|
|
3083
|
+
}
|
|
3084
|
+
|
|
3073
3085
|
interface ListPersonalAccessTokensRequestHeaders$1 {
|
|
3074
3086
|
}
|
|
3075
3087
|
interface ListPersonalAccessTokensRequestQuery$1 {
|
|
@@ -5263,6 +5275,14 @@ interface CreateBotResponse$1 {
|
|
|
5263
5275
|
configuration: {
|
|
5264
5276
|
[k: string]: any;
|
|
5265
5277
|
};
|
|
5278
|
+
/**
|
|
5279
|
+
* A mapping of plugin interface aliases to their backing integrations
|
|
5280
|
+
*/
|
|
5281
|
+
interfaces?: {
|
|
5282
|
+
[k: string]: {
|
|
5283
|
+
integrationId: string;
|
|
5284
|
+
};
|
|
5285
|
+
};
|
|
5266
5286
|
/**
|
|
5267
5287
|
* ID of the [Plugin](#schema_plugin)
|
|
5268
5288
|
*/
|
|
@@ -5735,8 +5755,20 @@ interface UpdateBotRequestBody$1 {
|
|
|
5735
5755
|
configuration?: {
|
|
5736
5756
|
[k: string]: any;
|
|
5737
5757
|
};
|
|
5758
|
+
/**
|
|
5759
|
+
* A mapping of plugin interface aliases to their backing integrations
|
|
5760
|
+
*/
|
|
5761
|
+
interfaces?: {
|
|
5762
|
+
[k: string]: {
|
|
5763
|
+
integrationId: string;
|
|
5764
|
+
};
|
|
5765
|
+
};
|
|
5738
5766
|
} | null;
|
|
5739
5767
|
};
|
|
5768
|
+
/**
|
|
5769
|
+
* If true, plugins will be merged into the bot and entity references will be resolved. If you are uncertain about this field, you should probably set it to true
|
|
5770
|
+
*/
|
|
5771
|
+
shouldMergePlugins?: boolean;
|
|
5740
5772
|
subscriptions?: {
|
|
5741
5773
|
events: {
|
|
5742
5774
|
[k: string]: {} | null;
|
|
@@ -5856,6 +5888,14 @@ interface UpdateBotResponse$1 {
|
|
|
5856
5888
|
configuration: {
|
|
5857
5889
|
[k: string]: any;
|
|
5858
5890
|
};
|
|
5891
|
+
/**
|
|
5892
|
+
* A mapping of plugin interface aliases to their backing integrations
|
|
5893
|
+
*/
|
|
5894
|
+
interfaces?: {
|
|
5895
|
+
[k: string]: {
|
|
5896
|
+
integrationId: string;
|
|
5897
|
+
};
|
|
5898
|
+
};
|
|
5859
5899
|
/**
|
|
5860
5900
|
* ID of the [Plugin](#schema_plugin)
|
|
5861
5901
|
*/
|
|
@@ -6300,6 +6340,14 @@ interface GetBotResponse$1 {
|
|
|
6300
6340
|
configuration: {
|
|
6301
6341
|
[k: string]: any;
|
|
6302
6342
|
};
|
|
6343
|
+
/**
|
|
6344
|
+
* A mapping of plugin interface aliases to their backing integrations
|
|
6345
|
+
*/
|
|
6346
|
+
interfaces?: {
|
|
6347
|
+
[k: string]: {
|
|
6348
|
+
integrationId: string;
|
|
6349
|
+
};
|
|
6350
|
+
};
|
|
6303
6351
|
/**
|
|
6304
6352
|
* ID of the [Plugin](#schema_plugin)
|
|
6305
6353
|
*/
|
|
@@ -6651,7 +6699,7 @@ interface GetBotAnalyticsResponse$1 {
|
|
|
6651
6699
|
*/
|
|
6652
6700
|
startDateTimeUtc: string;
|
|
6653
6701
|
/**
|
|
6654
|
-
* ISO 8601 date string of the end (
|
|
6702
|
+
* ISO 8601 date string of the end (inclusive) of the period
|
|
6655
6703
|
*/
|
|
6656
6704
|
endDateTimeUtc: string;
|
|
6657
6705
|
returningUsers: number;
|
|
@@ -6707,6 +6755,50 @@ interface GetBotAnalyticsResponse$1 {
|
|
|
6707
6755
|
}[];
|
|
6708
6756
|
}
|
|
6709
6757
|
|
|
6758
|
+
interface ListActionRunsRequestHeaders$1 {
|
|
6759
|
+
}
|
|
6760
|
+
interface ListActionRunsRequestQuery$1 {
|
|
6761
|
+
integrationName: string;
|
|
6762
|
+
timestampFrom?: string;
|
|
6763
|
+
timestampUntil?: string;
|
|
6764
|
+
nextToken?: string;
|
|
6765
|
+
}
|
|
6766
|
+
interface ListActionRunsRequestParams$1 {
|
|
6767
|
+
id: string;
|
|
6768
|
+
}
|
|
6769
|
+
interface ListActionRunsRequestBody$1 {
|
|
6770
|
+
}
|
|
6771
|
+
type ListActionRunsInput$1 = ListActionRunsRequestBody$1 & ListActionRunsRequestHeaders$1 & ListActionRunsRequestQuery$1 & ListActionRunsRequestParams$1;
|
|
6772
|
+
interface ListActionRunsResponse$1 {
|
|
6773
|
+
data: {
|
|
6774
|
+
/**
|
|
6775
|
+
* ISO 8601 timestamp of the action run
|
|
6776
|
+
*/
|
|
6777
|
+
timestamp: string;
|
|
6778
|
+
integrationName?: string;
|
|
6779
|
+
actionType: string;
|
|
6780
|
+
/**
|
|
6781
|
+
* Input of the action
|
|
6782
|
+
*/
|
|
6783
|
+
input: {
|
|
6784
|
+
[k: string]: any;
|
|
6785
|
+
};
|
|
6786
|
+
/**
|
|
6787
|
+
* Output of the action
|
|
6788
|
+
*/
|
|
6789
|
+
output: {
|
|
6790
|
+
[k: string]: any;
|
|
6791
|
+
} | null;
|
|
6792
|
+
status: "SUCCESS" | "FAILURE";
|
|
6793
|
+
durationMs: number;
|
|
6794
|
+
cached: boolean;
|
|
6795
|
+
errorMessage?: string | null;
|
|
6796
|
+
}[];
|
|
6797
|
+
meta: {
|
|
6798
|
+
nextToken?: string;
|
|
6799
|
+
};
|
|
6800
|
+
}
|
|
6801
|
+
|
|
6710
6802
|
interface GetBotIssueRequestHeaders$1 {
|
|
6711
6803
|
}
|
|
6712
6804
|
interface GetBotIssueRequestQuery$1 {
|
|
@@ -6846,6 +6938,37 @@ interface GetBotVersionResponse$1 {
|
|
|
6846
6938
|
url: string;
|
|
6847
6939
|
}
|
|
6848
6940
|
|
|
6941
|
+
interface GetBotJsonRequestHeaders$1 {
|
|
6942
|
+
}
|
|
6943
|
+
interface GetBotJsonRequestQuery$1 {
|
|
6944
|
+
}
|
|
6945
|
+
interface GetBotJsonRequestParams$1 {
|
|
6946
|
+
id: string;
|
|
6947
|
+
}
|
|
6948
|
+
interface GetBotJsonRequestBody$1 {
|
|
6949
|
+
}
|
|
6950
|
+
type GetBotJsonInput$1 = GetBotJsonRequestBody$1 & GetBotJsonRequestHeaders$1 & GetBotJsonRequestQuery$1 & GetBotJsonRequestParams$1;
|
|
6951
|
+
interface GetBotJsonResponse$1 {
|
|
6952
|
+
[k: string]: any;
|
|
6953
|
+
}
|
|
6954
|
+
|
|
6955
|
+
interface PublishFromBotJsonRequestHeaders$1 {
|
|
6956
|
+
}
|
|
6957
|
+
interface PublishFromBotJsonRequestQuery$1 {
|
|
6958
|
+
}
|
|
6959
|
+
interface PublishFromBotJsonRequestParams$1 {
|
|
6960
|
+
id: string;
|
|
6961
|
+
}
|
|
6962
|
+
interface PublishFromBotJsonRequestBody$1 {
|
|
6963
|
+
botJson: {
|
|
6964
|
+
[k: string]: any;
|
|
6965
|
+
};
|
|
6966
|
+
}
|
|
6967
|
+
type PublishFromBotJsonInput$1 = PublishFromBotJsonRequestBody$1 & PublishFromBotJsonRequestHeaders$1 & PublishFromBotJsonRequestQuery$1 & PublishFromBotJsonRequestParams$1;
|
|
6968
|
+
interface PublishFromBotJsonResponse$1 {
|
|
6969
|
+
[k: string]: any;
|
|
6970
|
+
}
|
|
6971
|
+
|
|
6849
6972
|
interface CreateBotVersionRequestHeaders$1 {
|
|
6850
6973
|
}
|
|
6851
6974
|
interface CreateBotVersionRequestQuery$1 {
|
|
@@ -8993,10 +9116,6 @@ interface UpdateIntegrationRequestBody$1 {
|
|
|
8993
9116
|
};
|
|
8994
9117
|
} | null;
|
|
8995
9118
|
};
|
|
8996
|
-
sandbox?: {
|
|
8997
|
-
identifierExtractScript?: string | null;
|
|
8998
|
-
messageExtractScript?: string | null;
|
|
8999
|
-
};
|
|
9000
9119
|
/**
|
|
9001
9120
|
* Optional attributes. Set attributes to null to remove them
|
|
9002
9121
|
*/
|
|
@@ -9696,10 +9815,6 @@ interface ValidateIntegrationUpdateRequestBody$1 {
|
|
|
9696
9815
|
};
|
|
9697
9816
|
} | null;
|
|
9698
9817
|
};
|
|
9699
|
-
sandbox?: {
|
|
9700
|
-
identifierExtractScript?: string | null;
|
|
9701
|
-
messageExtractScript?: string | null;
|
|
9702
|
-
};
|
|
9703
9818
|
/**
|
|
9704
9819
|
* Optional attributes. Set attributes to null to remove them
|
|
9705
9820
|
*/
|
|
@@ -13143,8 +13258,8 @@ interface ListUsageActivityDailyResponse$1 {
|
|
|
13143
13258
|
value: number;
|
|
13144
13259
|
metadata?: {
|
|
13145
13260
|
botId: string;
|
|
13146
|
-
type: "IntegrationAction" | "FileIndexing";
|
|
13147
|
-
subtype
|
|
13261
|
+
type: "IntegrationAction" | "FileIndexing" | "BingSearch" | "WebSearch";
|
|
13262
|
+
subtype?: string;
|
|
13148
13263
|
source?: string;
|
|
13149
13264
|
};
|
|
13150
13265
|
}[];
|
|
@@ -13227,6 +13342,7 @@ declare class Client$7 {
|
|
|
13227
13342
|
readonly runVrl: (input: RunVrlInput$1) => Promise<RunVrlResponse$1>;
|
|
13228
13343
|
readonly getAccount: (input: GetAccountInput$1) => Promise<GetAccountResponse$1>;
|
|
13229
13344
|
readonly updateAccount: (input: UpdateAccountInput$1) => Promise<UpdateAccountResponse$1>;
|
|
13345
|
+
readonly deleteAccount: (input: DeleteAccountInput$1) => Promise<DeleteAccountResponse$1>;
|
|
13230
13346
|
readonly listPersonalAccessTokens: (input: ListPersonalAccessTokensInput$1) => Promise<ListPersonalAccessTokensResponse$1>;
|
|
13231
13347
|
readonly createPersonalAccessToken: (input: CreatePersonalAccessTokenInput$1) => Promise<CreatePersonalAccessTokenResponse$1>;
|
|
13232
13348
|
readonly deletePersonalAccessToken: (input: DeletePersonalAccessTokenInput$1) => Promise<DeletePersonalAccessTokenResponse$1>;
|
|
@@ -13251,12 +13367,15 @@ declare class Client$7 {
|
|
|
13251
13367
|
readonly getBotLogs: (input: GetBotLogsInput$1) => Promise<GetBotLogsResponse$1>;
|
|
13252
13368
|
readonly getBotWebchat: (input: GetBotWebchatInput$1) => Promise<GetBotWebchatResponse$1>;
|
|
13253
13369
|
readonly getBotAnalytics: (input: GetBotAnalyticsInput$1) => Promise<GetBotAnalyticsResponse$1>;
|
|
13370
|
+
readonly listActionRuns: (input: ListActionRunsInput$1) => Promise<ListActionRunsResponse$1>;
|
|
13254
13371
|
readonly getBotIssue: (input: GetBotIssueInput$1) => Promise<GetBotIssueResponse$1>;
|
|
13255
13372
|
readonly listBotIssues: (input: ListBotIssuesInput$1) => Promise<ListBotIssuesResponse$1>;
|
|
13256
13373
|
readonly deleteBotIssue: (input: DeleteBotIssueInput$1) => Promise<DeleteBotIssueResponse$1>;
|
|
13257
13374
|
readonly listBotIssueEvents: (input: ListBotIssueEventsInput$1) => Promise<ListBotIssueEventsResponse$1>;
|
|
13258
13375
|
readonly listBotVersions: (input: ListBotVersionsInput$1) => Promise<ListBotVersionsResponse$1>;
|
|
13259
13376
|
readonly getBotVersion: (input: GetBotVersionInput$1) => Promise<GetBotVersionResponse$1>;
|
|
13377
|
+
readonly getBotJson: (input: GetBotJsonInput$1) => Promise<GetBotJsonResponse$1>;
|
|
13378
|
+
readonly publishFromBotJson: (input: PublishFromBotJsonInput$1) => Promise<PublishFromBotJsonResponse$1>;
|
|
13260
13379
|
readonly createBotVersion: (input: CreateBotVersionInput$1) => Promise<CreateBotVersionResponse$1>;
|
|
13261
13380
|
readonly deployBotVersion: (input: DeployBotVersionInput$1) => Promise<DeployBotVersionResponse$1>;
|
|
13262
13381
|
readonly createIntegrationShareableId: (input: CreateIntegrationShareableIdInput$1) => Promise<CreateIntegrationShareableIdResponse$1>;
|
|
@@ -13517,8 +13636,8 @@ declare class Client$6 extends Client$7 {
|
|
|
13517
13636
|
value: number;
|
|
13518
13637
|
metadata?: {
|
|
13519
13638
|
botId: string;
|
|
13520
|
-
type: "IntegrationAction" | "FileIndexing";
|
|
13521
|
-
subtype
|
|
13639
|
+
type: "IntegrationAction" | "FileIndexing" | "BingSearch" | "WebSearch";
|
|
13640
|
+
subtype?: string;
|
|
13522
13641
|
source?: string;
|
|
13523
13642
|
};
|
|
13524
13643
|
}>;
|
|
@@ -13567,7 +13686,7 @@ interface UpsertFileRequestBody$1 {
|
|
|
13567
13686
|
*/
|
|
13568
13687
|
size: number;
|
|
13569
13688
|
/**
|
|
13570
|
-
* Set to a value of 'true' to index the file in vector storage. Only certain file formats are currently supported for indexing. Note that if a file is indexed, it will count towards both the Vector DB Storage quota and the File Storage quota of the workspace.
|
|
13689
|
+
* Set to a value of 'true' to index the file in vector storage. Only certain file formats are currently supported for indexing. Files larger than 95 MB cannot be indexed. Note that if a file is indexed, it will count towards both the Vector DB Storage quota and the File Storage quota of the workspace.
|
|
13571
13690
|
*/
|
|
13572
13691
|
index?: boolean;
|
|
13573
13692
|
indexing?: {
|
|
@@ -13774,6 +13893,17 @@ interface UpsertFileResponse$1 {
|
|
|
13774
13893
|
* File expiry timestamp in ISO 8601 format
|
|
13775
13894
|
*/
|
|
13776
13895
|
expiresAt?: string;
|
|
13896
|
+
owner: {
|
|
13897
|
+
type: "bot" | "integration" | "user";
|
|
13898
|
+
/**
|
|
13899
|
+
* This field is present if `type` is "user" or "bot". If `type` is "user", this is the user ID. If `type` is "bot", this is the bot ID.
|
|
13900
|
+
*/
|
|
13901
|
+
id?: string;
|
|
13902
|
+
/**
|
|
13903
|
+
* This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
|
|
13904
|
+
*/
|
|
13905
|
+
name?: string;
|
|
13906
|
+
};
|
|
13777
13907
|
/**
|
|
13778
13908
|
* URL to upload the file content. File content needs to be sent to this URL via a PUT request.
|
|
13779
13909
|
*/
|
|
@@ -13885,6 +14015,17 @@ interface ListFilesResponse$1 {
|
|
|
13885
14015
|
* File expiry timestamp in ISO 8601 format
|
|
13886
14016
|
*/
|
|
13887
14017
|
expiresAt?: string;
|
|
14018
|
+
owner: {
|
|
14019
|
+
type: "bot" | "integration" | "user";
|
|
14020
|
+
/**
|
|
14021
|
+
* This field is present if `type` is "user" or "bot". If `type` is "user", this is the user ID. If `type` is "bot", this is the bot ID.
|
|
14022
|
+
*/
|
|
14023
|
+
id?: string;
|
|
14024
|
+
/**
|
|
14025
|
+
* This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
|
|
14026
|
+
*/
|
|
14027
|
+
name?: string;
|
|
14028
|
+
};
|
|
13888
14029
|
}[];
|
|
13889
14030
|
meta: {
|
|
13890
14031
|
/**
|
|
@@ -13978,6 +14119,17 @@ interface GetFileResponse$1 {
|
|
|
13978
14119
|
* File expiry timestamp in ISO 8601 format
|
|
13979
14120
|
*/
|
|
13980
14121
|
expiresAt?: string;
|
|
14122
|
+
owner: {
|
|
14123
|
+
type: "bot" | "integration" | "user";
|
|
14124
|
+
/**
|
|
14125
|
+
* This field is present if `type` is "user" or "bot". If `type` is "user", this is the user ID. If `type` is "bot", this is the bot ID.
|
|
14126
|
+
*/
|
|
14127
|
+
id?: string;
|
|
14128
|
+
/**
|
|
14129
|
+
* This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
|
|
14130
|
+
*/
|
|
14131
|
+
name?: string;
|
|
14132
|
+
};
|
|
13981
14133
|
};
|
|
13982
14134
|
}
|
|
13983
14135
|
|
|
@@ -14085,6 +14237,17 @@ interface UpdateFileMetadataResponse$1 {
|
|
|
14085
14237
|
* File expiry timestamp in ISO 8601 format
|
|
14086
14238
|
*/
|
|
14087
14239
|
expiresAt?: string;
|
|
14240
|
+
owner: {
|
|
14241
|
+
type: "bot" | "integration" | "user";
|
|
14242
|
+
/**
|
|
14243
|
+
* This field is present if `type` is "user" or "bot". If `type` is "user", this is the user ID. If `type` is "bot", this is the bot ID.
|
|
14244
|
+
*/
|
|
14245
|
+
id?: string;
|
|
14246
|
+
/**
|
|
14247
|
+
* This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
|
|
14248
|
+
*/
|
|
14249
|
+
name?: string;
|
|
14250
|
+
};
|
|
14088
14251
|
};
|
|
14089
14252
|
}
|
|
14090
14253
|
|
|
@@ -14180,6 +14343,17 @@ interface CopyFileResponse$1 {
|
|
|
14180
14343
|
* File expiry timestamp in ISO 8601 format
|
|
14181
14344
|
*/
|
|
14182
14345
|
expiresAt?: string;
|
|
14346
|
+
owner: {
|
|
14347
|
+
type: "bot" | "integration" | "user";
|
|
14348
|
+
/**
|
|
14349
|
+
* This field is present if `type` is "user" or "bot". If `type` is "user", this is the user ID. If `type` is "bot", this is the bot ID.
|
|
14350
|
+
*/
|
|
14351
|
+
id?: string;
|
|
14352
|
+
/**
|
|
14353
|
+
* This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
|
|
14354
|
+
*/
|
|
14355
|
+
name?: string;
|
|
14356
|
+
};
|
|
14183
14357
|
};
|
|
14184
14358
|
}
|
|
14185
14359
|
|
|
@@ -14571,6 +14745,11 @@ declare class Client$4 extends Client$5 implements IClient$2 {
|
|
|
14571
14745
|
status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
|
|
14572
14746
|
failedStatusReason?: string;
|
|
14573
14747
|
expiresAt?: string;
|
|
14748
|
+
owner: {
|
|
14749
|
+
type: "bot" | "integration" | "user";
|
|
14750
|
+
id?: string;
|
|
14751
|
+
name?: string;
|
|
14752
|
+
};
|
|
14574
14753
|
}>;
|
|
14575
14754
|
filePassages: (props: {
|
|
14576
14755
|
id: string;
|
|
@@ -17618,7 +17797,7 @@ interface UpdateUserRequestBody {
|
|
|
17618
17797
|
/**
|
|
17619
17798
|
* Name of the user
|
|
17620
17799
|
*/
|
|
17621
|
-
name?: string;
|
|
17800
|
+
name?: string | null;
|
|
17622
17801
|
/**
|
|
17623
17802
|
* URI of the user picture
|
|
17624
17803
|
*/
|
|
@@ -19091,6 +19270,18 @@ interface UpdateAccountResponse {
|
|
|
19091
19270
|
};
|
|
19092
19271
|
}
|
|
19093
19272
|
|
|
19273
|
+
interface DeleteAccountRequestHeaders {
|
|
19274
|
+
}
|
|
19275
|
+
interface DeleteAccountRequestQuery {
|
|
19276
|
+
}
|
|
19277
|
+
interface DeleteAccountRequestParams {
|
|
19278
|
+
}
|
|
19279
|
+
interface DeleteAccountRequestBody {
|
|
19280
|
+
}
|
|
19281
|
+
type DeleteAccountInput = DeleteAccountRequestBody & DeleteAccountRequestHeaders & DeleteAccountRequestQuery & DeleteAccountRequestParams;
|
|
19282
|
+
interface DeleteAccountResponse {
|
|
19283
|
+
}
|
|
19284
|
+
|
|
19094
19285
|
interface ListPersonalAccessTokensRequestHeaders {
|
|
19095
19286
|
}
|
|
19096
19287
|
interface ListPersonalAccessTokensRequestQuery {
|
|
@@ -21284,6 +21475,14 @@ interface CreateBotResponse {
|
|
|
21284
21475
|
configuration: {
|
|
21285
21476
|
[k: string]: any;
|
|
21286
21477
|
};
|
|
21478
|
+
/**
|
|
21479
|
+
* A mapping of plugin interface aliases to their backing integrations
|
|
21480
|
+
*/
|
|
21481
|
+
interfaces?: {
|
|
21482
|
+
[k: string]: {
|
|
21483
|
+
integrationId: string;
|
|
21484
|
+
};
|
|
21485
|
+
};
|
|
21287
21486
|
/**
|
|
21288
21487
|
* ID of the [Plugin](#schema_plugin)
|
|
21289
21488
|
*/
|
|
@@ -21756,8 +21955,20 @@ interface UpdateBotRequestBody {
|
|
|
21756
21955
|
configuration?: {
|
|
21757
21956
|
[k: string]: any;
|
|
21758
21957
|
};
|
|
21958
|
+
/**
|
|
21959
|
+
* A mapping of plugin interface aliases to their backing integrations
|
|
21960
|
+
*/
|
|
21961
|
+
interfaces?: {
|
|
21962
|
+
[k: string]: {
|
|
21963
|
+
integrationId: string;
|
|
21964
|
+
};
|
|
21965
|
+
};
|
|
21759
21966
|
} | null;
|
|
21760
21967
|
};
|
|
21968
|
+
/**
|
|
21969
|
+
* If true, plugins will be merged into the bot and entity references will be resolved. If you are uncertain about this field, you should probably set it to true
|
|
21970
|
+
*/
|
|
21971
|
+
shouldMergePlugins?: boolean;
|
|
21761
21972
|
subscriptions?: {
|
|
21762
21973
|
events: {
|
|
21763
21974
|
[k: string]: {} | null;
|
|
@@ -21877,6 +22088,14 @@ interface UpdateBotResponse {
|
|
|
21877
22088
|
configuration: {
|
|
21878
22089
|
[k: string]: any;
|
|
21879
22090
|
};
|
|
22091
|
+
/**
|
|
22092
|
+
* A mapping of plugin interface aliases to their backing integrations
|
|
22093
|
+
*/
|
|
22094
|
+
interfaces?: {
|
|
22095
|
+
[k: string]: {
|
|
22096
|
+
integrationId: string;
|
|
22097
|
+
};
|
|
22098
|
+
};
|
|
21880
22099
|
/**
|
|
21881
22100
|
* ID of the [Plugin](#schema_plugin)
|
|
21882
22101
|
*/
|
|
@@ -22321,6 +22540,14 @@ interface GetBotResponse {
|
|
|
22321
22540
|
configuration: {
|
|
22322
22541
|
[k: string]: any;
|
|
22323
22542
|
};
|
|
22543
|
+
/**
|
|
22544
|
+
* A mapping of plugin interface aliases to their backing integrations
|
|
22545
|
+
*/
|
|
22546
|
+
interfaces?: {
|
|
22547
|
+
[k: string]: {
|
|
22548
|
+
integrationId: string;
|
|
22549
|
+
};
|
|
22550
|
+
};
|
|
22324
22551
|
/**
|
|
22325
22552
|
* ID of the [Plugin](#schema_plugin)
|
|
22326
22553
|
*/
|
|
@@ -22672,7 +22899,7 @@ interface GetBotAnalyticsResponse {
|
|
|
22672
22899
|
*/
|
|
22673
22900
|
startDateTimeUtc: string;
|
|
22674
22901
|
/**
|
|
22675
|
-
* ISO 8601 date string of the end (
|
|
22902
|
+
* ISO 8601 date string of the end (inclusive) of the period
|
|
22676
22903
|
*/
|
|
22677
22904
|
endDateTimeUtc: string;
|
|
22678
22905
|
returningUsers: number;
|
|
@@ -22728,6 +22955,50 @@ interface GetBotAnalyticsResponse {
|
|
|
22728
22955
|
}[];
|
|
22729
22956
|
}
|
|
22730
22957
|
|
|
22958
|
+
interface ListActionRunsRequestHeaders {
|
|
22959
|
+
}
|
|
22960
|
+
interface ListActionRunsRequestQuery {
|
|
22961
|
+
integrationName: string;
|
|
22962
|
+
timestampFrom?: string;
|
|
22963
|
+
timestampUntil?: string;
|
|
22964
|
+
nextToken?: string;
|
|
22965
|
+
}
|
|
22966
|
+
interface ListActionRunsRequestParams {
|
|
22967
|
+
id: string;
|
|
22968
|
+
}
|
|
22969
|
+
interface ListActionRunsRequestBody {
|
|
22970
|
+
}
|
|
22971
|
+
type ListActionRunsInput = ListActionRunsRequestBody & ListActionRunsRequestHeaders & ListActionRunsRequestQuery & ListActionRunsRequestParams;
|
|
22972
|
+
interface ListActionRunsResponse {
|
|
22973
|
+
data: {
|
|
22974
|
+
/**
|
|
22975
|
+
* ISO 8601 timestamp of the action run
|
|
22976
|
+
*/
|
|
22977
|
+
timestamp: string;
|
|
22978
|
+
integrationName?: string;
|
|
22979
|
+
actionType: string;
|
|
22980
|
+
/**
|
|
22981
|
+
* Input of the action
|
|
22982
|
+
*/
|
|
22983
|
+
input: {
|
|
22984
|
+
[k: string]: any;
|
|
22985
|
+
};
|
|
22986
|
+
/**
|
|
22987
|
+
* Output of the action
|
|
22988
|
+
*/
|
|
22989
|
+
output: {
|
|
22990
|
+
[k: string]: any;
|
|
22991
|
+
} | null;
|
|
22992
|
+
status: "SUCCESS" | "FAILURE";
|
|
22993
|
+
durationMs: number;
|
|
22994
|
+
cached: boolean;
|
|
22995
|
+
errorMessage?: string | null;
|
|
22996
|
+
}[];
|
|
22997
|
+
meta: {
|
|
22998
|
+
nextToken?: string;
|
|
22999
|
+
};
|
|
23000
|
+
}
|
|
23001
|
+
|
|
22731
23002
|
interface GetBotIssueRequestHeaders {
|
|
22732
23003
|
}
|
|
22733
23004
|
interface GetBotIssueRequestQuery {
|
|
@@ -22867,6 +23138,37 @@ interface GetBotVersionResponse {
|
|
|
22867
23138
|
url: string;
|
|
22868
23139
|
}
|
|
22869
23140
|
|
|
23141
|
+
interface GetBotJsonRequestHeaders {
|
|
23142
|
+
}
|
|
23143
|
+
interface GetBotJsonRequestQuery {
|
|
23144
|
+
}
|
|
23145
|
+
interface GetBotJsonRequestParams {
|
|
23146
|
+
id: string;
|
|
23147
|
+
}
|
|
23148
|
+
interface GetBotJsonRequestBody {
|
|
23149
|
+
}
|
|
23150
|
+
type GetBotJsonInput = GetBotJsonRequestBody & GetBotJsonRequestHeaders & GetBotJsonRequestQuery & GetBotJsonRequestParams;
|
|
23151
|
+
interface GetBotJsonResponse {
|
|
23152
|
+
[k: string]: any;
|
|
23153
|
+
}
|
|
23154
|
+
|
|
23155
|
+
interface PublishFromBotJsonRequestHeaders {
|
|
23156
|
+
}
|
|
23157
|
+
interface PublishFromBotJsonRequestQuery {
|
|
23158
|
+
}
|
|
23159
|
+
interface PublishFromBotJsonRequestParams {
|
|
23160
|
+
id: string;
|
|
23161
|
+
}
|
|
23162
|
+
interface PublishFromBotJsonRequestBody {
|
|
23163
|
+
botJson: {
|
|
23164
|
+
[k: string]: any;
|
|
23165
|
+
};
|
|
23166
|
+
}
|
|
23167
|
+
type PublishFromBotJsonInput = PublishFromBotJsonRequestBody & PublishFromBotJsonRequestHeaders & PublishFromBotJsonRequestQuery & PublishFromBotJsonRequestParams;
|
|
23168
|
+
interface PublishFromBotJsonResponse {
|
|
23169
|
+
[k: string]: any;
|
|
23170
|
+
}
|
|
23171
|
+
|
|
22870
23172
|
interface CreateBotVersionRequestHeaders {
|
|
22871
23173
|
}
|
|
22872
23174
|
interface CreateBotVersionRequestQuery {
|
|
@@ -25015,10 +25317,6 @@ interface UpdateIntegrationRequestBody {
|
|
|
25015
25317
|
};
|
|
25016
25318
|
} | null;
|
|
25017
25319
|
};
|
|
25018
|
-
sandbox?: {
|
|
25019
|
-
identifierExtractScript?: string | null;
|
|
25020
|
-
messageExtractScript?: string | null;
|
|
25021
|
-
};
|
|
25022
25320
|
/**
|
|
25023
25321
|
* Optional attributes. Set attributes to null to remove them
|
|
25024
25322
|
*/
|
|
@@ -25718,10 +26016,6 @@ interface ValidateIntegrationUpdateRequestBody {
|
|
|
25718
26016
|
};
|
|
25719
26017
|
} | null;
|
|
25720
26018
|
};
|
|
25721
|
-
sandbox?: {
|
|
25722
|
-
identifierExtractScript?: string | null;
|
|
25723
|
-
messageExtractScript?: string | null;
|
|
25724
|
-
};
|
|
25725
26019
|
/**
|
|
25726
26020
|
* Optional attributes. Set attributes to null to remove them
|
|
25727
26021
|
*/
|
|
@@ -29165,8 +29459,8 @@ interface ListUsageActivityDailyResponse {
|
|
|
29165
29459
|
value: number;
|
|
29166
29460
|
metadata?: {
|
|
29167
29461
|
botId: string;
|
|
29168
|
-
type: "IntegrationAction" | "FileIndexing";
|
|
29169
|
-
subtype
|
|
29462
|
+
type: "IntegrationAction" | "FileIndexing" | "BingSearch" | "WebSearch";
|
|
29463
|
+
subtype?: string;
|
|
29170
29464
|
source?: string;
|
|
29171
29465
|
};
|
|
29172
29466
|
}[];
|
|
@@ -29260,7 +29554,7 @@ interface UpsertFileRequestBody {
|
|
|
29260
29554
|
*/
|
|
29261
29555
|
size: number;
|
|
29262
29556
|
/**
|
|
29263
|
-
* Set to a value of 'true' to index the file in vector storage. Only certain file formats are currently supported for indexing. Note that if a file is indexed, it will count towards both the Vector DB Storage quota and the File Storage quota of the workspace.
|
|
29557
|
+
* Set to a value of 'true' to index the file in vector storage. Only certain file formats are currently supported for indexing. Files larger than 95 MB cannot be indexed. Note that if a file is indexed, it will count towards both the Vector DB Storage quota and the File Storage quota of the workspace.
|
|
29264
29558
|
*/
|
|
29265
29559
|
index?: boolean;
|
|
29266
29560
|
indexing?: {
|
|
@@ -29467,6 +29761,17 @@ interface UpsertFileResponse {
|
|
|
29467
29761
|
* File expiry timestamp in ISO 8601 format
|
|
29468
29762
|
*/
|
|
29469
29763
|
expiresAt?: string;
|
|
29764
|
+
owner: {
|
|
29765
|
+
type: "bot" | "integration" | "user";
|
|
29766
|
+
/**
|
|
29767
|
+
* This field is present if `type` is "user" or "bot". If `type` is "user", this is the user ID. If `type` is "bot", this is the bot ID.
|
|
29768
|
+
*/
|
|
29769
|
+
id?: string;
|
|
29770
|
+
/**
|
|
29771
|
+
* This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
|
|
29772
|
+
*/
|
|
29773
|
+
name?: string;
|
|
29774
|
+
};
|
|
29470
29775
|
/**
|
|
29471
29776
|
* URL to upload the file content. File content needs to be sent to this URL via a PUT request.
|
|
29472
29777
|
*/
|
|
@@ -29578,6 +29883,17 @@ interface ListFilesResponse {
|
|
|
29578
29883
|
* File expiry timestamp in ISO 8601 format
|
|
29579
29884
|
*/
|
|
29580
29885
|
expiresAt?: string;
|
|
29886
|
+
owner: {
|
|
29887
|
+
type: "bot" | "integration" | "user";
|
|
29888
|
+
/**
|
|
29889
|
+
* This field is present if `type` is "user" or "bot". If `type` is "user", this is the user ID. If `type` is "bot", this is the bot ID.
|
|
29890
|
+
*/
|
|
29891
|
+
id?: string;
|
|
29892
|
+
/**
|
|
29893
|
+
* This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
|
|
29894
|
+
*/
|
|
29895
|
+
name?: string;
|
|
29896
|
+
};
|
|
29581
29897
|
}[];
|
|
29582
29898
|
meta: {
|
|
29583
29899
|
/**
|
|
@@ -29671,6 +29987,17 @@ interface GetFileResponse {
|
|
|
29671
29987
|
* File expiry timestamp in ISO 8601 format
|
|
29672
29988
|
*/
|
|
29673
29989
|
expiresAt?: string;
|
|
29990
|
+
owner: {
|
|
29991
|
+
type: "bot" | "integration" | "user";
|
|
29992
|
+
/**
|
|
29993
|
+
* This field is present if `type` is "user" or "bot". If `type` is "user", this is the user ID. If `type` is "bot", this is the bot ID.
|
|
29994
|
+
*/
|
|
29995
|
+
id?: string;
|
|
29996
|
+
/**
|
|
29997
|
+
* This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
|
|
29998
|
+
*/
|
|
29999
|
+
name?: string;
|
|
30000
|
+
};
|
|
29674
30001
|
};
|
|
29675
30002
|
}
|
|
29676
30003
|
|
|
@@ -29778,6 +30105,17 @@ interface UpdateFileMetadataResponse {
|
|
|
29778
30105
|
* File expiry timestamp in ISO 8601 format
|
|
29779
30106
|
*/
|
|
29780
30107
|
expiresAt?: string;
|
|
30108
|
+
owner: {
|
|
30109
|
+
type: "bot" | "integration" | "user";
|
|
30110
|
+
/**
|
|
30111
|
+
* This field is present if `type` is "user" or "bot". If `type` is "user", this is the user ID. If `type` is "bot", this is the bot ID.
|
|
30112
|
+
*/
|
|
30113
|
+
id?: string;
|
|
30114
|
+
/**
|
|
30115
|
+
* This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
|
|
30116
|
+
*/
|
|
30117
|
+
name?: string;
|
|
30118
|
+
};
|
|
29781
30119
|
};
|
|
29782
30120
|
}
|
|
29783
30121
|
|
|
@@ -29873,6 +30211,17 @@ interface CopyFileResponse {
|
|
|
29873
30211
|
* File expiry timestamp in ISO 8601 format
|
|
29874
30212
|
*/
|
|
29875
30213
|
expiresAt?: string;
|
|
30214
|
+
owner: {
|
|
30215
|
+
type: "bot" | "integration" | "user";
|
|
30216
|
+
/**
|
|
30217
|
+
* This field is present if `type` is "user" or "bot". If `type` is "user", this is the user ID. If `type` is "bot", this is the bot ID.
|
|
30218
|
+
*/
|
|
30219
|
+
id?: string;
|
|
30220
|
+
/**
|
|
30221
|
+
* This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
|
|
30222
|
+
*/
|
|
30223
|
+
name?: string;
|
|
30224
|
+
};
|
|
29876
30225
|
};
|
|
29877
30226
|
}
|
|
29878
30227
|
|
|
@@ -31913,6 +32262,14 @@ interface Bot {
|
|
|
31913
32262
|
configuration: {
|
|
31914
32263
|
[k: string]: any;
|
|
31915
32264
|
};
|
|
32265
|
+
/**
|
|
32266
|
+
* A mapping of plugin interface aliases to their backing integrations
|
|
32267
|
+
*/
|
|
32268
|
+
interfaces?: {
|
|
32269
|
+
[k: string]: {
|
|
32270
|
+
integrationId: string;
|
|
32271
|
+
};
|
|
32272
|
+
};
|
|
31916
32273
|
/**
|
|
31917
32274
|
* ID of the [Plugin](#schema_plugin)
|
|
31918
32275
|
*/
|
|
@@ -33637,6 +33994,17 @@ interface File {
|
|
|
33637
33994
|
* File expiry timestamp in ISO 8601 format
|
|
33638
33995
|
*/
|
|
33639
33996
|
expiresAt?: string;
|
|
33997
|
+
owner: {
|
|
33998
|
+
type: "bot" | "integration" | "user";
|
|
33999
|
+
/**
|
|
34000
|
+
* This field is present if `type` is "user" or "bot". If `type` is "user", this is the user ID. If `type` is "bot", this is the bot ID.
|
|
34001
|
+
*/
|
|
34002
|
+
id?: string;
|
|
34003
|
+
/**
|
|
34004
|
+
* This field is present if the `type` is "integration". If `type` is "integration", this is the integration name.
|
|
34005
|
+
*/
|
|
34006
|
+
name?: string;
|
|
34007
|
+
};
|
|
33640
34008
|
}
|
|
33641
34009
|
|
|
33642
34010
|
type ClientProps$1 = {
|
|
@@ -33695,6 +34063,7 @@ declare class Client$1 {
|
|
|
33695
34063
|
readonly runVrl: (input: RunVrlInput) => Promise<RunVrlResponse>;
|
|
33696
34064
|
readonly getAccount: (input: GetAccountInput) => Promise<GetAccountResponse>;
|
|
33697
34065
|
readonly updateAccount: (input: UpdateAccountInput) => Promise<UpdateAccountResponse>;
|
|
34066
|
+
readonly deleteAccount: (input: DeleteAccountInput) => Promise<DeleteAccountResponse>;
|
|
33698
34067
|
readonly listPersonalAccessTokens: (input: ListPersonalAccessTokensInput) => Promise<ListPersonalAccessTokensResponse>;
|
|
33699
34068
|
readonly createPersonalAccessToken: (input: CreatePersonalAccessTokenInput) => Promise<CreatePersonalAccessTokenResponse>;
|
|
33700
34069
|
readonly deletePersonalAccessToken: (input: DeletePersonalAccessTokenInput) => Promise<DeletePersonalAccessTokenResponse>;
|
|
@@ -33719,12 +34088,15 @@ declare class Client$1 {
|
|
|
33719
34088
|
readonly getBotLogs: (input: GetBotLogsInput) => Promise<GetBotLogsResponse>;
|
|
33720
34089
|
readonly getBotWebchat: (input: GetBotWebchatInput) => Promise<GetBotWebchatResponse>;
|
|
33721
34090
|
readonly getBotAnalytics: (input: GetBotAnalyticsInput) => Promise<GetBotAnalyticsResponse>;
|
|
34091
|
+
readonly listActionRuns: (input: ListActionRunsInput) => Promise<ListActionRunsResponse>;
|
|
33722
34092
|
readonly getBotIssue: (input: GetBotIssueInput) => Promise<GetBotIssueResponse>;
|
|
33723
34093
|
readonly listBotIssues: (input: ListBotIssuesInput) => Promise<ListBotIssuesResponse>;
|
|
33724
34094
|
readonly deleteBotIssue: (input: DeleteBotIssueInput) => Promise<DeleteBotIssueResponse>;
|
|
33725
34095
|
readonly listBotIssueEvents: (input: ListBotIssueEventsInput) => Promise<ListBotIssueEventsResponse>;
|
|
33726
34096
|
readonly listBotVersions: (input: ListBotVersionsInput) => Promise<ListBotVersionsResponse>;
|
|
33727
34097
|
readonly getBotVersion: (input: GetBotVersionInput) => Promise<GetBotVersionResponse>;
|
|
34098
|
+
readonly getBotJson: (input: GetBotJsonInput) => Promise<GetBotJsonResponse>;
|
|
34099
|
+
readonly publishFromBotJson: (input: PublishFromBotJsonInput) => Promise<PublishFromBotJsonResponse>;
|
|
33728
34100
|
readonly createBotVersion: (input: CreateBotVersionInput) => Promise<CreateBotVersionResponse>;
|
|
33729
34101
|
readonly deployBotVersion: (input: DeployBotVersionInput) => Promise<DeployBotVersionResponse>;
|
|
33730
34102
|
readonly createIntegrationShareableId: (input: CreateIntegrationShareableIdInput) => Promise<CreateIntegrationShareableIdResponse>;
|
|
@@ -34130,6 +34502,11 @@ declare class Client extends Client$1 implements IClient {
|
|
|
34130
34502
|
status: "upload_pending" | "upload_failed" | "upload_completed" | "indexing_pending" | "indexing_failed" | "indexing_completed";
|
|
34131
34503
|
failedStatusReason?: string;
|
|
34132
34504
|
expiresAt?: string;
|
|
34505
|
+
owner: {
|
|
34506
|
+
type: "bot" | "integration" | "user";
|
|
34507
|
+
id?: string;
|
|
34508
|
+
name?: string;
|
|
34509
|
+
};
|
|
34133
34510
|
}>;
|
|
34134
34511
|
filePassages: (props: {
|
|
34135
34512
|
id: string;
|
|
@@ -34169,8 +34546,8 @@ declare class Client extends Client$1 implements IClient {
|
|
|
34169
34546
|
value: number;
|
|
34170
34547
|
metadata?: {
|
|
34171
34548
|
botId: string;
|
|
34172
|
-
type: "IntegrationAction" | "FileIndexing";
|
|
34173
|
-
subtype
|
|
34549
|
+
type: "IntegrationAction" | "FileIndexing" | "BingSearch" | "WebSearch";
|
|
34550
|
+
subtype?: string;
|
|
34174
34551
|
source?: string;
|
|
34175
34552
|
};
|
|
34176
34553
|
}>;
|