@botpress/client 0.44.0 → 0.45.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/.turbo/turbo-build.log +7 -7
- package/.turbo/turbo-generate.log +1 -1
- package/dist/bundle.cjs +1 -1
- package/dist/bundle.cjs.map +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +117 -18
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +2 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -9714,12 +9714,25 @@ interface CreatePluginRequestBody {
|
|
|
9714
9714
|
*/
|
|
9715
9715
|
browser: string;
|
|
9716
9716
|
};
|
|
9717
|
+
/**
|
|
9718
|
+
* Base64 encoded svg of the plugin icon. This icon is global to the plugin each versions will be updated when this changes.
|
|
9719
|
+
*/
|
|
9720
|
+
icon?: string;
|
|
9721
|
+
/**
|
|
9722
|
+
* Base64 encoded markdown of the plugin readme. The readme is specific to each plugin versions.
|
|
9723
|
+
*/
|
|
9724
|
+
readme?: string;
|
|
9725
|
+
/**
|
|
9726
|
+
* Title of the plugin. This is the name that will be displayed in the UI
|
|
9727
|
+
*/
|
|
9728
|
+
title?: string;
|
|
9729
|
+
/**
|
|
9730
|
+
* Description of the plugin. This is the description that will be displayed in the UI
|
|
9731
|
+
*/
|
|
9732
|
+
description?: string;
|
|
9717
9733
|
}
|
|
9718
9734
|
type CreatePluginInput = CreatePluginRequestBody & CreatePluginRequestHeaders & CreatePluginRequestQuery & CreatePluginRequestParams;
|
|
9719
9735
|
interface CreatePluginResponse {
|
|
9720
|
-
/**
|
|
9721
|
-
* Plugin definition
|
|
9722
|
-
*/
|
|
9723
9736
|
plugin: {
|
|
9724
9737
|
/**
|
|
9725
9738
|
* ID of the [Plugin](#schema_plugin)
|
|
@@ -9879,6 +9892,22 @@ interface CreatePluginResponse {
|
|
|
9879
9892
|
};
|
|
9880
9893
|
};
|
|
9881
9894
|
};
|
|
9895
|
+
/**
|
|
9896
|
+
* Title of the plugin. This is the name that will be displayed in the UI
|
|
9897
|
+
*/
|
|
9898
|
+
title: string;
|
|
9899
|
+
/**
|
|
9900
|
+
* Description of the plugin. This is the description that will be displayed in the UI
|
|
9901
|
+
*/
|
|
9902
|
+
description: string;
|
|
9903
|
+
/**
|
|
9904
|
+
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
9905
|
+
*/
|
|
9906
|
+
iconUrl: string;
|
|
9907
|
+
/**
|
|
9908
|
+
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
9909
|
+
*/
|
|
9910
|
+
readmeUrl: string;
|
|
9882
9911
|
};
|
|
9883
9912
|
}
|
|
9884
9913
|
|
|
@@ -9893,9 +9922,6 @@ interface GetPluginRequestBody {
|
|
|
9893
9922
|
}
|
|
9894
9923
|
type GetPluginInput = GetPluginRequestBody & GetPluginRequestHeaders & GetPluginRequestQuery & GetPluginRequestParams;
|
|
9895
9924
|
interface GetPluginResponse {
|
|
9896
|
-
/**
|
|
9897
|
-
* Plugin definition
|
|
9898
|
-
*/
|
|
9899
9925
|
plugin: {
|
|
9900
9926
|
/**
|
|
9901
9927
|
* ID of the [Plugin](#schema_plugin)
|
|
@@ -10055,6 +10081,22 @@ interface GetPluginResponse {
|
|
|
10055
10081
|
};
|
|
10056
10082
|
};
|
|
10057
10083
|
};
|
|
10084
|
+
/**
|
|
10085
|
+
* Title of the plugin. This is the name that will be displayed in the UI
|
|
10086
|
+
*/
|
|
10087
|
+
title: string;
|
|
10088
|
+
/**
|
|
10089
|
+
* Description of the plugin. This is the description that will be displayed in the UI
|
|
10090
|
+
*/
|
|
10091
|
+
description: string;
|
|
10092
|
+
/**
|
|
10093
|
+
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
10094
|
+
*/
|
|
10095
|
+
iconUrl: string;
|
|
10096
|
+
/**
|
|
10097
|
+
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
10098
|
+
*/
|
|
10099
|
+
readmeUrl: string;
|
|
10058
10100
|
};
|
|
10059
10101
|
}
|
|
10060
10102
|
|
|
@@ -10070,9 +10112,6 @@ interface GetPluginByNameRequestBody {
|
|
|
10070
10112
|
}
|
|
10071
10113
|
type GetPluginByNameInput = GetPluginByNameRequestBody & GetPluginByNameRequestHeaders & GetPluginByNameRequestQuery & GetPluginByNameRequestParams;
|
|
10072
10114
|
interface GetPluginByNameResponse {
|
|
10073
|
-
/**
|
|
10074
|
-
* Plugin definition
|
|
10075
|
-
*/
|
|
10076
10115
|
plugin: {
|
|
10077
10116
|
/**
|
|
10078
10117
|
* ID of the [Plugin](#schema_plugin)
|
|
@@ -10232,6 +10271,22 @@ interface GetPluginByNameResponse {
|
|
|
10232
10271
|
};
|
|
10233
10272
|
};
|
|
10234
10273
|
};
|
|
10274
|
+
/**
|
|
10275
|
+
* Title of the plugin. This is the name that will be displayed in the UI
|
|
10276
|
+
*/
|
|
10277
|
+
title: string;
|
|
10278
|
+
/**
|
|
10279
|
+
* Description of the plugin. This is the description that will be displayed in the UI
|
|
10280
|
+
*/
|
|
10281
|
+
description: string;
|
|
10282
|
+
/**
|
|
10283
|
+
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
10284
|
+
*/
|
|
10285
|
+
iconUrl: string;
|
|
10286
|
+
/**
|
|
10287
|
+
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
10288
|
+
*/
|
|
10289
|
+
readmeUrl: string;
|
|
10235
10290
|
};
|
|
10236
10291
|
}
|
|
10237
10292
|
|
|
@@ -10381,12 +10436,25 @@ interface UpdatePluginRequestBody {
|
|
|
10381
10436
|
*/
|
|
10382
10437
|
browser?: string;
|
|
10383
10438
|
};
|
|
10439
|
+
/**
|
|
10440
|
+
* Base64 encoded svg of the plugin icon. This icon is global to the plugin each versions will be updated when this changes.
|
|
10441
|
+
*/
|
|
10442
|
+
icon?: string;
|
|
10443
|
+
/**
|
|
10444
|
+
* Base64 encoded markdown of the plugin readme. The readme is specific to each plugin versions.
|
|
10445
|
+
*/
|
|
10446
|
+
readme?: string;
|
|
10447
|
+
/**
|
|
10448
|
+
* Title of the plugin. This is the name that will be displayed in the UI
|
|
10449
|
+
*/
|
|
10450
|
+
title?: string;
|
|
10451
|
+
/**
|
|
10452
|
+
* Description of the plugin. This is the description that will be displayed in the UI
|
|
10453
|
+
*/
|
|
10454
|
+
description?: string;
|
|
10384
10455
|
}
|
|
10385
10456
|
type UpdatePluginInput = UpdatePluginRequestBody & UpdatePluginRequestHeaders & UpdatePluginRequestQuery & UpdatePluginRequestParams;
|
|
10386
10457
|
interface UpdatePluginResponse {
|
|
10387
|
-
/**
|
|
10388
|
-
* Plugin definition
|
|
10389
|
-
*/
|
|
10390
10458
|
plugin: {
|
|
10391
10459
|
/**
|
|
10392
10460
|
* ID of the [Plugin](#schema_plugin)
|
|
@@ -10546,6 +10614,22 @@ interface UpdatePluginResponse {
|
|
|
10546
10614
|
};
|
|
10547
10615
|
};
|
|
10548
10616
|
};
|
|
10617
|
+
/**
|
|
10618
|
+
* Title of the plugin. This is the name that will be displayed in the UI
|
|
10619
|
+
*/
|
|
10620
|
+
title: string;
|
|
10621
|
+
/**
|
|
10622
|
+
* Description of the plugin. This is the description that will be displayed in the UI
|
|
10623
|
+
*/
|
|
10624
|
+
description: string;
|
|
10625
|
+
/**
|
|
10626
|
+
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
10627
|
+
*/
|
|
10628
|
+
iconUrl: string;
|
|
10629
|
+
/**
|
|
10630
|
+
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
10631
|
+
*/
|
|
10632
|
+
readmeUrl: string;
|
|
10549
10633
|
};
|
|
10550
10634
|
}
|
|
10551
10635
|
|
|
@@ -10939,7 +11023,7 @@ interface UpsertFileRequestBody {
|
|
|
10939
11023
|
* Notes:
|
|
10940
11024
|
* - This feature is only available in Team and Enterprise plans.
|
|
10941
11025
|
* - Enabling this feature will incur in AI Spend cost to use a vision-enabled LLM to index the PDF pages.
|
|
10942
|
-
* - This is limited to a maximum of
|
|
11026
|
+
* - This is limited to a maximum of 100 pages of the PDF. If the file has more pages then the rest of the pages will NOT be transcribed using this vision feature, and will be processed using the default text-based indexing instead. If you need to transcribe the entire file using vision, please split it into smaller files.
|
|
10943
11027
|
* - Pages that are vision-transcribed will not be processed by the default text-based indexing to avoid duplicate content in the index.
|
|
10944
11028
|
* - This feature is only available for PDF files. If the file isn't a PDF, this setting will be ignored and no AI Spend will be incurred.
|
|
10945
11029
|
*/
|
|
@@ -10960,7 +11044,7 @@ interface UpsertFileRequestBody {
|
|
|
10960
11044
|
* - This feature is only available in Team and Enterprise plans.
|
|
10961
11045
|
* - Enabling this will incur in extra AI Spend cost and additional File Storage usage, in order to use a vision-enabled LLM to visually index the PDF pages and store them as standalone page images in the bot's file storage.
|
|
10962
11046
|
* - Enabling this may increase the overall AI Spend cost of your bot as your bot may pass one or more indexed page images to a vision-enabled LLM for answering user queries.
|
|
10963
|
-
* - This is limited to the first
|
|
11047
|
+
* - This is limited to the first 100 pages of the PDF. If the file has more pages then the rest of the pages will NOT be vision-indexed. If you need to visually index the entire file, please split it into smaller files.
|
|
10964
11048
|
* - This feature is only available for PDF files. If the file isn't a PDF, this setting will be ignored and no AI Spend will be incurred.
|
|
10965
11049
|
*/
|
|
10966
11050
|
indexPages?: {
|
|
@@ -11394,7 +11478,9 @@ interface CopyFileRequestParams {
|
|
|
11394
11478
|
}
|
|
11395
11479
|
interface CopyFileRequestBody {
|
|
11396
11480
|
/**
|
|
11397
|
-
* Set to `true` to overwrite the file if it already exists, otherwise an error will be returned.
|
|
11481
|
+
* Set to `true` to overwrite the file if it already exists, otherwise an error will be returned.
|
|
11482
|
+
*
|
|
11483
|
+
* When this endpoint is called using bot authentication, the existing file must have been originally created by the same bot making the file copy request in order to overwrite it.
|
|
11398
11484
|
*/
|
|
11399
11485
|
overwrite?: boolean;
|
|
11400
11486
|
}
|
|
@@ -14046,9 +14132,6 @@ interface Interface {
|
|
|
14046
14132
|
language: string;
|
|
14047
14133
|
};
|
|
14048
14134
|
}
|
|
14049
|
-
/**
|
|
14050
|
-
* Plugin definition
|
|
14051
|
-
*/
|
|
14052
14135
|
interface Plugin {
|
|
14053
14136
|
/**
|
|
14054
14137
|
* ID of the [Plugin](#schema_plugin)
|
|
@@ -14208,6 +14291,22 @@ interface Plugin {
|
|
|
14208
14291
|
};
|
|
14209
14292
|
};
|
|
14210
14293
|
};
|
|
14294
|
+
/**
|
|
14295
|
+
* Title of the plugin. This is the name that will be displayed in the UI
|
|
14296
|
+
*/
|
|
14297
|
+
title: string;
|
|
14298
|
+
/**
|
|
14299
|
+
* Description of the plugin. This is the description that will be displayed in the UI
|
|
14300
|
+
*/
|
|
14301
|
+
description: string;
|
|
14302
|
+
/**
|
|
14303
|
+
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
14304
|
+
*/
|
|
14305
|
+
iconUrl: string;
|
|
14306
|
+
/**
|
|
14307
|
+
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
14308
|
+
*/
|
|
14309
|
+
readmeUrl: string;
|
|
14211
14310
|
}
|
|
14212
14311
|
interface Workspace {
|
|
14213
14312
|
id: string;
|