@botpress/client 0.35.0 → 0.36.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/dist/index.d.ts CHANGED
@@ -2955,6 +2955,10 @@ interface GetPublicIntegrationByIdResponse {
2955
2955
  * Name of the interface
2956
2956
  */
2957
2957
  name: string;
2958
+ /**
2959
+ * Version of the interface
2960
+ */
2961
+ version: string;
2958
2962
  entities: {
2959
2963
  [k: string]: {
2960
2964
  name: string;
@@ -3326,6 +3330,10 @@ interface GetPublicIntegrationResponse {
3326
3330
  * Name of the interface
3327
3331
  */
3328
3332
  name: string;
3333
+ /**
3334
+ * Version of the interface
3335
+ */
3336
+ version: string;
3329
3337
  entities: {
3330
3338
  [k: string]: {
3331
3339
  name: string;
@@ -6277,6 +6285,10 @@ interface CreateIntegrationResponse {
6277
6285
  * Name of the interface
6278
6286
  */
6279
6287
  name: string;
6288
+ /**
6289
+ * Version of the interface
6290
+ */
6291
+ version: string;
6280
6292
  entities: {
6281
6293
  [k: string]: {
6282
6294
  name: string;
@@ -6931,6 +6943,10 @@ interface UpdateIntegrationResponse {
6931
6943
  * Name of the interface
6932
6944
  */
6933
6945
  name: string;
6946
+ /**
6947
+ * Version of the interface
6948
+ */
6949
+ version: string;
6934
6950
  entities: {
6935
6951
  [k: string]: {
6936
6952
  name: string;
@@ -7356,6 +7372,10 @@ interface GetIntegrationResponse {
7356
7372
  * Name of the interface
7357
7373
  */
7358
7374
  name: string;
7375
+ /**
7376
+ * Version of the interface
7377
+ */
7378
+ version: string;
7359
7379
  entities: {
7360
7380
  [k: string]: {
7361
7381
  name: string;
@@ -7740,6 +7760,10 @@ interface GetIntegrationByNameResponse {
7740
7760
  * Name of the interface
7741
7761
  */
7742
7762
  name: string;
7763
+ /**
7764
+ * Version of the interface
7765
+ */
7766
+ version: string;
7743
7767
  entities: {
7744
7768
  [k: string]: {
7745
7769
  name: string;
@@ -8785,6 +8809,7 @@ interface ListInterfacesRequestHeaders {
8785
8809
  }
8786
8810
  interface ListInterfacesRequestQuery {
8787
8811
  nextToken?: string;
8812
+ name?: string;
8788
8813
  }
8789
8814
  interface ListInterfacesRequestParams {
8790
8815
  }
@@ -9056,6 +9081,18 @@ interface UpsertFileRequestBody {
9056
9081
  * The minimum length a standalone paragraph should have. If a paragraph is shorter than this, it will be merged with the next immediate paragraph.
9057
9082
  */
9058
9083
  minimumParagraphLength?: number;
9084
+ /**
9085
+ * (Team/Enterprise plan only, charged as AI Spend) Enabling this will use a lightweight/inexpensive LLM to clean up the extracted content of PDF files before indexing them to increase the quality of the stored vectors, as PDFs often store raw text in unusual ways which when extracted may result in formatting issues (e.g. broken sentences/paragraphs, unexpected headings, garbled characters, etc.) that can affect retrieval performance for certain user queries if left untouched.
9086
+ *
9087
+ * Notes:
9088
+ * - This feature is only available in Team and Enterprise plans.
9089
+ * - 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.
9090
+ * - We recommend using this feature for PDFs that have custom layouts or design. For simple text-based PDFs like documents and books, this feature is usually not necessary.
9091
+ * - The smart cleanup takes some time to perform due to the LLM calls involved, so enabling it will increase the total time it takes to index the file.
9092
+ * - We take steps to prevent the original text from being fundamentally changed but due to the nature of LLMs this could theoretically still happen so it's recommended to review the passages generated for the file after indexing to ensure the content is still accurate.
9093
+ * - This feature is limited to the first 30 pages or 20 KB of text in the PDF file (whichever comes first). If the file has more content than these limits then the rest of the file will be indexed as-is without any cleanup. If you need to clean up the content of the entire file, consider splitting it into smaller files.
9094
+ */
9095
+ smartCleanup?: boolean;
9059
9096
  };
9060
9097
  chunking?: {
9061
9098
  /**
@@ -9073,7 +9110,9 @@ interface UpsertFileRequestBody {
9073
9110
  };
9074
9111
  summarization?: {
9075
9112
  /**
9076
- * Create summaries for this file and index them as standalone vectors. Enabling this option will incur in AI Spend cost (charged to the workspace of the bot) to generate the summaries based on the amount of content in the file and the summarization model used. Please note that this feature is only available in Team/Enterprise plans.
9113
+ * (Team/Enterprise plan only, charged as AI Spend) Create summaries for this file and index them as standalone vectors. Enabling this option will incur in AI Spend cost (charged to the workspace of the bot) to generate the summaries based on the amount of content in the file and the summarization model used.
9114
+ *
9115
+ * Please note that this feature is only available in Team and Enterprise plans.
9077
9116
  */
9078
9117
  enable?: boolean;
9079
9118
  /**
@@ -9093,6 +9132,23 @@ interface UpsertFileRequestBody {
9093
9132
  */
9094
9133
  generateMasterSummary?: boolean;
9095
9134
  };
9135
+ vision?: {
9136
+ /**
9137
+ * (Team/Enterprise plan only, charged as AI Spend) For PDF files, set this option to `true` or pass an array with specific page numbers to use a vision-enabled LLM to transcribe each page of the PDF as standalone vectors and index them.
9138
+ *
9139
+ * This feature is useful when a PDF file contains custom designs or layouts, or when your document has many infographics, which require visual processing in order to index the file effectively, as the default text-based indexing may not be enough to allow your bot to correctly understand the content in your PDFs.
9140
+ *
9141
+ * Notes:
9142
+ * - This feature is only available in Team and Enterprise plans.
9143
+ * - Enabling this feature will incurr in AI Spend cost to use a vision-enabled LLM to index the PDF pages.
9144
+ * - This is limited to a maximum of 30 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.
9145
+ * - Pages that are vision-transcribed will not be processed by the default text-based indexing to avoid duplicate content in the index.
9146
+ * - 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.
9147
+ */
9148
+ transcribePages?: {
9149
+ [k: string]: any;
9150
+ };
9151
+ };
9096
9152
  };
9097
9153
  };
9098
9154
  /**
@@ -11523,6 +11579,10 @@ interface Integration {
11523
11579
  * Name of the interface
11524
11580
  */
11525
11581
  name: string;
11582
+ /**
11583
+ * Version of the interface
11584
+ */
11585
+ version: string;
11526
11586
  entities: {
11527
11587
  [k: string]: {
11528
11588
  name: string;