@botpress/client 0.44.0 → 0.46.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 +147 -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
|
@@ -5422,6 +5422,36 @@ interface GetUpcomingInvoiceResponse {
|
|
|
5422
5422
|
* Total amount to pay of the invoice.
|
|
5423
5423
|
*/
|
|
5424
5424
|
total: number;
|
|
5425
|
+
/**
|
|
5426
|
+
* List of items included in the invoice.
|
|
5427
|
+
*/
|
|
5428
|
+
lineItems: {
|
|
5429
|
+
id: string;
|
|
5430
|
+
/**
|
|
5431
|
+
* Description of the line item.
|
|
5432
|
+
*/
|
|
5433
|
+
description: string;
|
|
5434
|
+
/**
|
|
5435
|
+
* Total amount to pay (in cents) of the line item.
|
|
5436
|
+
*/
|
|
5437
|
+
totalInCents: number;
|
|
5438
|
+
/**
|
|
5439
|
+
* Three-letter ISO currency code, in lowercase.
|
|
5440
|
+
*/
|
|
5441
|
+
currency: string;
|
|
5442
|
+
/**
|
|
5443
|
+
* Price per unit (in cents) of the line item.
|
|
5444
|
+
*/
|
|
5445
|
+
pricePerUnitInCents: number | null;
|
|
5446
|
+
/**
|
|
5447
|
+
* The quantity of the subscription, if the line item is a subscription or a proration.
|
|
5448
|
+
*/
|
|
5449
|
+
quantity: number | null;
|
|
5450
|
+
/**
|
|
5451
|
+
* Type of the line item.
|
|
5452
|
+
*/
|
|
5453
|
+
type: "invoiceitem" | "subscription";
|
|
5454
|
+
}[];
|
|
5425
5455
|
}
|
|
5426
5456
|
|
|
5427
5457
|
interface ChargeWorkspaceUnpaidInvoicesRequestHeaders {
|
|
@@ -9714,12 +9744,25 @@ interface CreatePluginRequestBody {
|
|
|
9714
9744
|
*/
|
|
9715
9745
|
browser: string;
|
|
9716
9746
|
};
|
|
9747
|
+
/**
|
|
9748
|
+
* Base64 encoded svg of the plugin icon. This icon is global to the plugin each versions will be updated when this changes.
|
|
9749
|
+
*/
|
|
9750
|
+
icon?: string;
|
|
9751
|
+
/**
|
|
9752
|
+
* Base64 encoded markdown of the plugin readme. The readme is specific to each plugin versions.
|
|
9753
|
+
*/
|
|
9754
|
+
readme?: string;
|
|
9755
|
+
/**
|
|
9756
|
+
* Title of the plugin. This is the name that will be displayed in the UI
|
|
9757
|
+
*/
|
|
9758
|
+
title?: string;
|
|
9759
|
+
/**
|
|
9760
|
+
* Description of the plugin. This is the description that will be displayed in the UI
|
|
9761
|
+
*/
|
|
9762
|
+
description?: string;
|
|
9717
9763
|
}
|
|
9718
9764
|
type CreatePluginInput = CreatePluginRequestBody & CreatePluginRequestHeaders & CreatePluginRequestQuery & CreatePluginRequestParams;
|
|
9719
9765
|
interface CreatePluginResponse {
|
|
9720
|
-
/**
|
|
9721
|
-
* Plugin definition
|
|
9722
|
-
*/
|
|
9723
9766
|
plugin: {
|
|
9724
9767
|
/**
|
|
9725
9768
|
* ID of the [Plugin](#schema_plugin)
|
|
@@ -9879,6 +9922,22 @@ interface CreatePluginResponse {
|
|
|
9879
9922
|
};
|
|
9880
9923
|
};
|
|
9881
9924
|
};
|
|
9925
|
+
/**
|
|
9926
|
+
* Title of the plugin. This is the name that will be displayed in the UI
|
|
9927
|
+
*/
|
|
9928
|
+
title: string;
|
|
9929
|
+
/**
|
|
9930
|
+
* Description of the plugin. This is the description that will be displayed in the UI
|
|
9931
|
+
*/
|
|
9932
|
+
description: string;
|
|
9933
|
+
/**
|
|
9934
|
+
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
9935
|
+
*/
|
|
9936
|
+
iconUrl: string;
|
|
9937
|
+
/**
|
|
9938
|
+
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
9939
|
+
*/
|
|
9940
|
+
readmeUrl: string;
|
|
9882
9941
|
};
|
|
9883
9942
|
}
|
|
9884
9943
|
|
|
@@ -9893,9 +9952,6 @@ interface GetPluginRequestBody {
|
|
|
9893
9952
|
}
|
|
9894
9953
|
type GetPluginInput = GetPluginRequestBody & GetPluginRequestHeaders & GetPluginRequestQuery & GetPluginRequestParams;
|
|
9895
9954
|
interface GetPluginResponse {
|
|
9896
|
-
/**
|
|
9897
|
-
* Plugin definition
|
|
9898
|
-
*/
|
|
9899
9955
|
plugin: {
|
|
9900
9956
|
/**
|
|
9901
9957
|
* ID of the [Plugin](#schema_plugin)
|
|
@@ -10055,6 +10111,22 @@ interface GetPluginResponse {
|
|
|
10055
10111
|
};
|
|
10056
10112
|
};
|
|
10057
10113
|
};
|
|
10114
|
+
/**
|
|
10115
|
+
* Title of the plugin. This is the name that will be displayed in the UI
|
|
10116
|
+
*/
|
|
10117
|
+
title: string;
|
|
10118
|
+
/**
|
|
10119
|
+
* Description of the plugin. This is the description that will be displayed in the UI
|
|
10120
|
+
*/
|
|
10121
|
+
description: string;
|
|
10122
|
+
/**
|
|
10123
|
+
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
10124
|
+
*/
|
|
10125
|
+
iconUrl: string;
|
|
10126
|
+
/**
|
|
10127
|
+
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
10128
|
+
*/
|
|
10129
|
+
readmeUrl: string;
|
|
10058
10130
|
};
|
|
10059
10131
|
}
|
|
10060
10132
|
|
|
@@ -10070,9 +10142,6 @@ interface GetPluginByNameRequestBody {
|
|
|
10070
10142
|
}
|
|
10071
10143
|
type GetPluginByNameInput = GetPluginByNameRequestBody & GetPluginByNameRequestHeaders & GetPluginByNameRequestQuery & GetPluginByNameRequestParams;
|
|
10072
10144
|
interface GetPluginByNameResponse {
|
|
10073
|
-
/**
|
|
10074
|
-
* Plugin definition
|
|
10075
|
-
*/
|
|
10076
10145
|
plugin: {
|
|
10077
10146
|
/**
|
|
10078
10147
|
* ID of the [Plugin](#schema_plugin)
|
|
@@ -10232,6 +10301,22 @@ interface GetPluginByNameResponse {
|
|
|
10232
10301
|
};
|
|
10233
10302
|
};
|
|
10234
10303
|
};
|
|
10304
|
+
/**
|
|
10305
|
+
* Title of the plugin. This is the name that will be displayed in the UI
|
|
10306
|
+
*/
|
|
10307
|
+
title: string;
|
|
10308
|
+
/**
|
|
10309
|
+
* Description of the plugin. This is the description that will be displayed in the UI
|
|
10310
|
+
*/
|
|
10311
|
+
description: string;
|
|
10312
|
+
/**
|
|
10313
|
+
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
10314
|
+
*/
|
|
10315
|
+
iconUrl: string;
|
|
10316
|
+
/**
|
|
10317
|
+
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
10318
|
+
*/
|
|
10319
|
+
readmeUrl: string;
|
|
10235
10320
|
};
|
|
10236
10321
|
}
|
|
10237
10322
|
|
|
@@ -10381,12 +10466,25 @@ interface UpdatePluginRequestBody {
|
|
|
10381
10466
|
*/
|
|
10382
10467
|
browser?: string;
|
|
10383
10468
|
};
|
|
10469
|
+
/**
|
|
10470
|
+
* Base64 encoded svg of the plugin icon. This icon is global to the plugin each versions will be updated when this changes.
|
|
10471
|
+
*/
|
|
10472
|
+
icon?: string;
|
|
10473
|
+
/**
|
|
10474
|
+
* Base64 encoded markdown of the plugin readme. The readme is specific to each plugin versions.
|
|
10475
|
+
*/
|
|
10476
|
+
readme?: string;
|
|
10477
|
+
/**
|
|
10478
|
+
* Title of the plugin. This is the name that will be displayed in the UI
|
|
10479
|
+
*/
|
|
10480
|
+
title?: string;
|
|
10481
|
+
/**
|
|
10482
|
+
* Description of the plugin. This is the description that will be displayed in the UI
|
|
10483
|
+
*/
|
|
10484
|
+
description?: string;
|
|
10384
10485
|
}
|
|
10385
10486
|
type UpdatePluginInput = UpdatePluginRequestBody & UpdatePluginRequestHeaders & UpdatePluginRequestQuery & UpdatePluginRequestParams;
|
|
10386
10487
|
interface UpdatePluginResponse {
|
|
10387
|
-
/**
|
|
10388
|
-
* Plugin definition
|
|
10389
|
-
*/
|
|
10390
10488
|
plugin: {
|
|
10391
10489
|
/**
|
|
10392
10490
|
* ID of the [Plugin](#schema_plugin)
|
|
@@ -10546,6 +10644,22 @@ interface UpdatePluginResponse {
|
|
|
10546
10644
|
};
|
|
10547
10645
|
};
|
|
10548
10646
|
};
|
|
10647
|
+
/**
|
|
10648
|
+
* Title of the plugin. This is the name that will be displayed in the UI
|
|
10649
|
+
*/
|
|
10650
|
+
title: string;
|
|
10651
|
+
/**
|
|
10652
|
+
* Description of the plugin. This is the description that will be displayed in the UI
|
|
10653
|
+
*/
|
|
10654
|
+
description: string;
|
|
10655
|
+
/**
|
|
10656
|
+
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
10657
|
+
*/
|
|
10658
|
+
iconUrl: string;
|
|
10659
|
+
/**
|
|
10660
|
+
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
10661
|
+
*/
|
|
10662
|
+
readmeUrl: string;
|
|
10549
10663
|
};
|
|
10550
10664
|
}
|
|
10551
10665
|
|
|
@@ -10939,7 +11053,7 @@ interface UpsertFileRequestBody {
|
|
|
10939
11053
|
* Notes:
|
|
10940
11054
|
* - This feature is only available in Team and Enterprise plans.
|
|
10941
11055
|
* - 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
|
|
11056
|
+
* - 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
11057
|
* - Pages that are vision-transcribed will not be processed by the default text-based indexing to avoid duplicate content in the index.
|
|
10944
11058
|
* - 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
11059
|
*/
|
|
@@ -10960,7 +11074,7 @@ interface UpsertFileRequestBody {
|
|
|
10960
11074
|
* - This feature is only available in Team and Enterprise plans.
|
|
10961
11075
|
* - 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
11076
|
* - 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
|
|
11077
|
+
* - 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
11078
|
* - 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
11079
|
*/
|
|
10966
11080
|
indexPages?: {
|
|
@@ -11394,7 +11508,9 @@ interface CopyFileRequestParams {
|
|
|
11394
11508
|
}
|
|
11395
11509
|
interface CopyFileRequestBody {
|
|
11396
11510
|
/**
|
|
11397
|
-
* Set to `true` to overwrite the file if it already exists, otherwise an error will be returned.
|
|
11511
|
+
* Set to `true` to overwrite the file if it already exists, otherwise an error will be returned.
|
|
11512
|
+
*
|
|
11513
|
+
* 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
11514
|
*/
|
|
11399
11515
|
overwrite?: boolean;
|
|
11400
11516
|
}
|
|
@@ -14046,9 +14162,6 @@ interface Interface {
|
|
|
14046
14162
|
language: string;
|
|
14047
14163
|
};
|
|
14048
14164
|
}
|
|
14049
|
-
/**
|
|
14050
|
-
* Plugin definition
|
|
14051
|
-
*/
|
|
14052
14165
|
interface Plugin {
|
|
14053
14166
|
/**
|
|
14054
14167
|
* ID of the [Plugin](#schema_plugin)
|
|
@@ -14208,6 +14321,22 @@ interface Plugin {
|
|
|
14208
14321
|
};
|
|
14209
14322
|
};
|
|
14210
14323
|
};
|
|
14324
|
+
/**
|
|
14325
|
+
* Title of the plugin. This is the name that will be displayed in the UI
|
|
14326
|
+
*/
|
|
14327
|
+
title: string;
|
|
14328
|
+
/**
|
|
14329
|
+
* Description of the plugin. This is the description that will be displayed in the UI
|
|
14330
|
+
*/
|
|
14331
|
+
description: string;
|
|
14332
|
+
/**
|
|
14333
|
+
* URL of the icon of the plugin. This is the icon that will be displayed in the UI
|
|
14334
|
+
*/
|
|
14335
|
+
iconUrl: string;
|
|
14336
|
+
/**
|
|
14337
|
+
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
14338
|
+
*/
|
|
14339
|
+
readmeUrl: string;
|
|
14211
14340
|
}
|
|
14212
14341
|
interface Workspace {
|
|
14213
14342
|
id: string;
|