@botpress/cognitive 0.1.14 → 0.1.15

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.
@@ -1,19 +1,19 @@
1
1
 
2
- > @botpress/cognitive@0.1.14 build /home/runner/work/botpress/botpress/packages/cognitive
2
+ > @botpress/cognitive@0.1.15 build /home/runner/work/botpress/botpress/packages/cognitive
3
3
  > pnpm build:type && pnpm build:neutral && size-limit
4
4
 
5
5
 
6
- > @botpress/cognitive@0.1.14 build:type /home/runner/work/botpress/botpress/packages/cognitive
6
+ > @botpress/cognitive@0.1.15 build:type /home/runner/work/botpress/botpress/packages/cognitive
7
7
  > tsup --tsconfig tsconfig.build.json ./src/index.ts --dts-resolve --dts-only --clean
8
8
 
9
9
  CLI Building entry: ./src/index.ts
10
10
  CLI Using tsconfig: tsconfig.build.json
11
11
  CLI tsup v8.0.2
12
12
  DTS Build start
13
- DTS ⚡️ Build success in 9587ms
14
- DTS dist/index.d.ts 523.31 KB
13
+ DTS ⚡️ Build success in 10556ms
14
+ DTS dist/index.d.ts 525.26 KB
15
15
 
16
- > @botpress/cognitive@0.1.14 build:neutral /home/runner/work/botpress/botpress/packages/cognitive
16
+ > @botpress/cognitive@0.1.15 build:neutral /home/runner/work/botpress/botpress/packages/cognitive
17
17
  > ts-node -T ./build.ts --neutral
18
18
 
19
19
  Done
package/dist/index.d.ts CHANGED
@@ -1137,6 +1137,10 @@ interface UpsertFileRequestBody$1 {
1137
1137
  */
1138
1138
  generateMasterSummary?: boolean;
1139
1139
  };
1140
+ /**
1141
+ * Internal setting, cannot be set manually.
1142
+ */
1143
+ stack?: "realtime-v1";
1140
1144
  vision?: {
1141
1145
  /**
1142
1146
  * (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.
@@ -4235,7 +4239,7 @@ interface ListPublicIntegrationsResponse {
4235
4239
  */
4236
4240
  iconUrl: string;
4237
4241
  /**
4238
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
4242
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
4239
4243
  */
4240
4244
  public: boolean;
4241
4245
  /**
@@ -4646,7 +4650,7 @@ interface GetPublicIntegrationByIdResponse {
4646
4650
  */
4647
4651
  readmeUrl: string;
4648
4652
  /**
4649
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
4653
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
4650
4654
  */
4651
4655
  public: boolean;
4652
4656
  /**
@@ -5031,7 +5035,7 @@ interface GetPublicIntegrationResponse {
5031
5035
  */
5032
5036
  readmeUrl: string;
5033
5037
  /**
5034
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
5038
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
5035
5039
  */
5036
5040
  public: boolean;
5037
5041
  /**
@@ -5317,7 +5321,7 @@ interface CreateBotResponse {
5317
5321
  */
5318
5322
  iconUrl: string;
5319
5323
  /**
5320
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
5324
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
5321
5325
  */
5322
5326
  public: boolean;
5323
5327
  /**
@@ -5752,6 +5756,7 @@ interface UpdateBotRequestBody {
5752
5756
  url: string;
5753
5757
  name: string;
5754
5758
  }[];
5759
+ layers?: string[];
5755
5760
  }
5756
5761
  type UpdateBotInput = UpdateBotRequestBody & UpdateBotRequestHeaders & UpdateBotRequestQuery & UpdateBotRequestParams;
5757
5762
  interface UpdateBotResponse {
@@ -5820,7 +5825,7 @@ interface UpdateBotResponse {
5820
5825
  */
5821
5826
  iconUrl: string;
5822
5827
  /**
5823
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
5828
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
5824
5829
  */
5825
5830
  public: boolean;
5826
5831
  /**
@@ -6197,7 +6202,7 @@ interface GetBotResponse {
6197
6202
  */
6198
6203
  iconUrl: string;
6199
6204
  /**
6200
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
6205
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
6201
6206
  */
6202
6207
  public: boolean;
6203
6208
  /**
@@ -6451,7 +6456,7 @@ interface GetBotLogsRequestHeaders {
6451
6456
  }
6452
6457
  interface GetBotLogsRequestQuery {
6453
6458
  timeStart: string;
6454
- timeEnd: string;
6459
+ timeEnd?: string;
6455
6460
  level?: string;
6456
6461
  userId?: string;
6457
6462
  workflowId?: string;
@@ -7771,7 +7776,7 @@ interface CreateIntegrationRequestBody {
7771
7776
  */
7772
7777
  description?: string;
7773
7778
  /**
7774
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
7779
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
7775
7780
  */
7776
7781
  public?: boolean;
7777
7782
  layers?: string[];
@@ -8128,7 +8133,7 @@ interface CreateIntegrationResponse {
8128
8133
  */
8129
8134
  readmeUrl: string;
8130
8135
  /**
8131
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
8136
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
8132
8137
  */
8133
8138
  public: boolean;
8134
8139
  /**
@@ -8451,7 +8456,7 @@ interface ValidateIntegrationCreationRequestBody {
8451
8456
  */
8452
8457
  description?: string;
8453
8458
  /**
8454
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
8459
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
8455
8460
  */
8456
8461
  public?: boolean;
8457
8462
  layers?: string[];
@@ -8762,7 +8767,7 @@ interface UpdateIntegrationRequestBody {
8762
8767
  */
8763
8768
  url?: string | null;
8764
8769
  /**
8765
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
8770
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
8766
8771
  */
8767
8772
  public?: boolean;
8768
8773
  layers?: string[];
@@ -9119,7 +9124,7 @@ interface UpdateIntegrationResponse {
9119
9124
  */
9120
9125
  readmeUrl: string;
9121
9126
  /**
9122
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
9127
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
9123
9128
  */
9124
9129
  public: boolean;
9125
9130
  /**
@@ -9435,7 +9440,7 @@ interface ValidateIntegrationUpdateRequestBody {
9435
9440
  */
9436
9441
  url?: string | null;
9437
9442
  /**
9438
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
9443
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
9439
9444
  */
9440
9445
  public?: boolean;
9441
9446
  layers?: string[];
@@ -9501,7 +9506,7 @@ interface ListIntegrationsResponse {
9501
9506
  */
9502
9507
  iconUrl: string;
9503
9508
  /**
9504
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
9509
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
9505
9510
  */
9506
9511
  public: boolean;
9507
9512
  /**
@@ -9908,7 +9913,7 @@ interface GetIntegrationResponse {
9908
9913
  */
9909
9914
  readmeUrl: string;
9910
9915
  /**
9911
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
9916
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
9912
9917
  */
9913
9918
  public: boolean;
9914
9919
  /**
@@ -9926,7 +9931,7 @@ interface GetIntegrationLogsRequestHeaders {
9926
9931
  }
9927
9932
  interface GetIntegrationLogsRequestQuery {
9928
9933
  timeStart: string;
9929
- timeEnd: string;
9934
+ timeEnd?: string;
9930
9935
  level?: string;
9931
9936
  userId?: string;
9932
9937
  conversationId?: string;
@@ -10312,7 +10317,7 @@ interface GetIntegrationByNameResponse {
10312
10317
  */
10313
10318
  readmeUrl: string;
10314
10319
  /**
10315
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
10320
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
10316
10321
  */
10317
10322
  public: boolean;
10318
10323
  /**
@@ -11282,6 +11287,10 @@ interface CreatePluginRequestBody {
11282
11287
  * Description of the plugin. This is the description that will be displayed in the UI
11283
11288
  */
11284
11289
  description?: string;
11290
+ /**
11291
+ * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
11292
+ */
11293
+ public?: boolean;
11285
11294
  }
11286
11295
  type CreatePluginInput = CreatePluginRequestBody & CreatePluginRequestHeaders & CreatePluginRequestQuery & CreatePluginRequestParams;
11287
11296
  interface CreatePluginResponse {
@@ -11460,6 +11469,10 @@ interface CreatePluginResponse {
11460
11469
  * URL of the readme of the plugin. This is the readme that will be displayed in the UI
11461
11470
  */
11462
11471
  readmeUrl: string;
11472
+ /**
11473
+ * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
11474
+ */
11475
+ public: boolean;
11463
11476
  };
11464
11477
  }
11465
11478
 
@@ -11649,6 +11662,10 @@ interface GetPluginResponse {
11649
11662
  * URL of the readme of the plugin. This is the readme that will be displayed in the UI
11650
11663
  */
11651
11664
  readmeUrl: string;
11665
+ /**
11666
+ * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
11667
+ */
11668
+ public: boolean;
11652
11669
  };
11653
11670
  }
11654
11671
 
@@ -11839,6 +11856,10 @@ interface GetPluginByNameResponse {
11839
11856
  * URL of the readme of the plugin. This is the readme that will be displayed in the UI
11840
11857
  */
11841
11858
  readmeUrl: string;
11859
+ /**
11860
+ * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
11861
+ */
11862
+ public: boolean;
11842
11863
  };
11843
11864
  }
11844
11865
 
@@ -12004,6 +12025,10 @@ interface UpdatePluginRequestBody {
12004
12025
  * Description of the plugin. This is the description that will be displayed in the UI
12005
12026
  */
12006
12027
  description?: string;
12028
+ /**
12029
+ * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
12030
+ */
12031
+ public?: boolean;
12007
12032
  }
12008
12033
  type UpdatePluginInput = UpdatePluginRequestBody & UpdatePluginRequestHeaders & UpdatePluginRequestQuery & UpdatePluginRequestParams;
12009
12034
  interface UpdatePluginResponse {
@@ -12182,6 +12207,10 @@ interface UpdatePluginResponse {
12182
12207
  * URL of the readme of the plugin. This is the readme that will be displayed in the UI
12183
12208
  */
12184
12209
  readmeUrl: string;
12210
+ /**
12211
+ * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
12212
+ */
12213
+ public: boolean;
12185
12214
  };
12186
12215
  }
12187
12216
 
@@ -12247,6 +12276,10 @@ interface ListPluginsResponse {
12247
12276
  * URL of the readme of the plugin. This is the readme that will be displayed in the UI
12248
12277
  */
12249
12278
  readmeUrl: string;
12279
+ /**
12280
+ * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
12281
+ */
12282
+ public: boolean;
12250
12283
  }[];
12251
12284
  meta: {
12252
12285
  /**
@@ -12582,6 +12615,10 @@ interface UpsertFileRequestBody {
12582
12615
  */
12583
12616
  generateMasterSummary?: boolean;
12584
12617
  };
12618
+ /**
12619
+ * Internal setting, cannot be set manually.
12620
+ */
12621
+ stack?: "realtime-v1";
12585
12622
  vision?: {
12586
12623
  /**
12587
12624
  * (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.
@@ -13208,6 +13245,18 @@ interface SearchFilesResponse {
13208
13245
  */
13209
13246
  updatedAt: string;
13210
13247
  };
13248
+ context?: {
13249
+ id: string;
13250
+ text: string;
13251
+ /**
13252
+ * Position of the context passage relative to the current passage. Negative for preceding passages, positive for subsequent, ommited for breadcrumbs.
13253
+ */
13254
+ offset?: number;
13255
+ /**
13256
+ * The type of context passage
13257
+ */
13258
+ type: "preceding" | "subsequent" | "breadcrumb";
13259
+ }[];
13211
13260
  }[];
13212
13261
  }
13213
13262
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/cognitive",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "Wrapper around the Botpress Client to call LLMs",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",