@botpress/cognitive 0.1.14 → 0.1.16

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.16 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.16 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 9136ms
14
+ DTS dist/index.d.ts 539.34 KB
15
15
 
16
- > @botpress/cognitive@0.1.14 build:neutral /home/runner/work/botpress/botpress/packages/cognitive
16
+ > @botpress/cognitive@0.1.16 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
  /**
@@ -5054,6 +5058,471 @@ interface GetPublicIntegrationResponse {
5054
5058
  };
5055
5059
  }
5056
5060
 
5061
+ interface ListPublicPluginsRequestHeaders {
5062
+ }
5063
+ interface ListPublicPluginsRequestQuery {
5064
+ nextToken?: string;
5065
+ name?: string;
5066
+ version?: string;
5067
+ }
5068
+ interface ListPublicPluginsRequestParams {
5069
+ }
5070
+ interface ListPublicPluginsRequestBody {
5071
+ }
5072
+ type ListPublicPluginsInput = ListPublicPluginsRequestBody & ListPublicPluginsRequestHeaders & ListPublicPluginsRequestQuery & ListPublicPluginsRequestParams;
5073
+ interface ListPublicPluginsResponse {
5074
+ plugins: {
5075
+ /**
5076
+ * ID of the [Plugin](#schema_plugin)
5077
+ */
5078
+ id: string;
5079
+ /**
5080
+ * Creation date of the [Plugin](#schema_plugin) in ISO 8601 format
5081
+ */
5082
+ createdAt: string;
5083
+ /**
5084
+ * Updating date of the [Plugin](#schema_plugin) in ISO 8601 format
5085
+ */
5086
+ updatedAt: string;
5087
+ /**
5088
+ * Name of the [Plugin](#schema_plugin)
5089
+ */
5090
+ name: string;
5091
+ /**
5092
+ * Version of the [Plugin](#schema_plugin)
5093
+ */
5094
+ version: string;
5095
+ /**
5096
+ * Title of the plugin. This is the name that will be displayed in the UI
5097
+ */
5098
+ title: string;
5099
+ /**
5100
+ * Description of the plugin. This is the description that will be displayed in the UI
5101
+ */
5102
+ description: string;
5103
+ /**
5104
+ * URL of the icon of the plugin. This is the icon that will be displayed in the UI
5105
+ */
5106
+ iconUrl: string;
5107
+ /**
5108
+ * URL of the readme of the plugin. This is the readme that will be displayed in the UI
5109
+ */
5110
+ readmeUrl: string;
5111
+ /**
5112
+ * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
5113
+ */
5114
+ public: boolean;
5115
+ }[];
5116
+ meta: {
5117
+ /**
5118
+ * The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint.
5119
+ */
5120
+ nextToken?: string;
5121
+ };
5122
+ }
5123
+
5124
+ interface GetPublicPluginByIdRequestHeaders {
5125
+ }
5126
+ interface GetPublicPluginByIdRequestQuery {
5127
+ }
5128
+ interface GetPublicPluginByIdRequestParams {
5129
+ id: string;
5130
+ }
5131
+ interface GetPublicPluginByIdRequestBody {
5132
+ }
5133
+ type GetPublicPluginByIdInput = GetPublicPluginByIdRequestBody & GetPublicPluginByIdRequestHeaders & GetPublicPluginByIdRequestQuery & GetPublicPluginByIdRequestParams;
5134
+ interface GetPublicPluginByIdResponse {
5135
+ plugin: {
5136
+ /**
5137
+ * ID of the [Plugin](#schema_plugin)
5138
+ */
5139
+ id: string;
5140
+ /**
5141
+ * Name of the [Plugin](#schema_plugin)
5142
+ */
5143
+ name: string;
5144
+ /**
5145
+ * Version of the [Plugin](#schema_plugin)
5146
+ */
5147
+ version: string;
5148
+ /**
5149
+ * Creation date of the [Plugin](#schema_plugin) in ISO 8601 format
5150
+ */
5151
+ createdAt: string;
5152
+ /**
5153
+ * Updating date of the [Plugin](#schema_plugin) in ISO 8601 format
5154
+ */
5155
+ updatedAt: string;
5156
+ /**
5157
+ * Configuration definition
5158
+ */
5159
+ configuration: {
5160
+ /**
5161
+ * Title of the configuration
5162
+ */
5163
+ title?: string;
5164
+ /**
5165
+ * Description of the configuration
5166
+ */
5167
+ description?: string;
5168
+ /**
5169
+ * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
5170
+ */
5171
+ schema: {
5172
+ [k: string]: any;
5173
+ };
5174
+ };
5175
+ states: {
5176
+ [k: string]: {
5177
+ /**
5178
+ * Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
5179
+ */
5180
+ type: "conversation" | "user" | "bot" | "task";
5181
+ /**
5182
+ * Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
5183
+ */
5184
+ schema: {
5185
+ [k: string]: any;
5186
+ };
5187
+ /**
5188
+ * Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn't expire.
5189
+ */
5190
+ expiry?: number;
5191
+ };
5192
+ };
5193
+ events: {
5194
+ /**
5195
+ * Event Definition
5196
+ */
5197
+ [k: string]: {
5198
+ /**
5199
+ * Title of the event
5200
+ */
5201
+ title?: string;
5202
+ /**
5203
+ * Description of the event
5204
+ */
5205
+ description?: string;
5206
+ schema: {
5207
+ [k: string]: any;
5208
+ };
5209
+ };
5210
+ };
5211
+ actions: {
5212
+ /**
5213
+ * Action definition
5214
+ */
5215
+ [k: string]: {
5216
+ /**
5217
+ * Title of the action
5218
+ */
5219
+ title?: string;
5220
+ /**
5221
+ * Description of the action
5222
+ */
5223
+ description?: string;
5224
+ billable?: boolean;
5225
+ cacheable?: boolean;
5226
+ input: {
5227
+ schema: {
5228
+ [k: string]: any;
5229
+ };
5230
+ };
5231
+ output: {
5232
+ schema: {
5233
+ [k: string]: any;
5234
+ };
5235
+ };
5236
+ };
5237
+ };
5238
+ dependencies: {
5239
+ interfaces: {
5240
+ [k: string]: {
5241
+ id: string;
5242
+ name: string;
5243
+ version: string;
5244
+ };
5245
+ };
5246
+ integrations: {
5247
+ [k: string]: {
5248
+ id: string;
5249
+ name: string;
5250
+ version: string;
5251
+ };
5252
+ };
5253
+ };
5254
+ /**
5255
+ * User object configuration
5256
+ */
5257
+ user: {
5258
+ tags: {
5259
+ /**
5260
+ * Definition of a tag that can be provided on the object
5261
+ */
5262
+ [k: string]: {
5263
+ /**
5264
+ * Title of the tag
5265
+ */
5266
+ title?: string;
5267
+ /**
5268
+ * Description of the tag
5269
+ */
5270
+ description?: string;
5271
+ };
5272
+ };
5273
+ };
5274
+ /**
5275
+ * Conversation object configuration
5276
+ */
5277
+ conversation: {
5278
+ tags: {
5279
+ /**
5280
+ * Definition of a tag that can be provided on the object
5281
+ */
5282
+ [k: string]: {
5283
+ /**
5284
+ * Title of the tag
5285
+ */
5286
+ title?: string;
5287
+ /**
5288
+ * Description of the tag
5289
+ */
5290
+ description?: string;
5291
+ };
5292
+ };
5293
+ };
5294
+ /**
5295
+ * Title of the plugin. This is the name that will be displayed in the UI
5296
+ */
5297
+ title: string;
5298
+ /**
5299
+ * Description of the plugin. This is the description that will be displayed in the UI
5300
+ */
5301
+ description: string;
5302
+ /**
5303
+ * URL of the icon of the plugin. This is the icon that will be displayed in the UI
5304
+ */
5305
+ iconUrl: string;
5306
+ /**
5307
+ * URL of the readme of the plugin. This is the readme that will be displayed in the UI
5308
+ */
5309
+ readmeUrl: string;
5310
+ /**
5311
+ * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
5312
+ */
5313
+ public: boolean;
5314
+ };
5315
+ }
5316
+
5317
+ interface GetPublicPluginRequestHeaders {
5318
+ }
5319
+ interface GetPublicPluginRequestQuery {
5320
+ }
5321
+ interface GetPublicPluginRequestParams {
5322
+ name: string;
5323
+ version: string;
5324
+ }
5325
+ interface GetPublicPluginRequestBody {
5326
+ }
5327
+ type GetPublicPluginInput = GetPublicPluginRequestBody & GetPublicPluginRequestHeaders & GetPublicPluginRequestQuery & GetPublicPluginRequestParams;
5328
+ interface GetPublicPluginResponse {
5329
+ plugin: {
5330
+ /**
5331
+ * ID of the [Plugin](#schema_plugin)
5332
+ */
5333
+ id: string;
5334
+ /**
5335
+ * Name of the [Plugin](#schema_plugin)
5336
+ */
5337
+ name: string;
5338
+ /**
5339
+ * Version of the [Plugin](#schema_plugin)
5340
+ */
5341
+ version: string;
5342
+ /**
5343
+ * Creation date of the [Plugin](#schema_plugin) in ISO 8601 format
5344
+ */
5345
+ createdAt: string;
5346
+ /**
5347
+ * Updating date of the [Plugin](#schema_plugin) in ISO 8601 format
5348
+ */
5349
+ updatedAt: string;
5350
+ /**
5351
+ * Configuration definition
5352
+ */
5353
+ configuration: {
5354
+ /**
5355
+ * Title of the configuration
5356
+ */
5357
+ title?: string;
5358
+ /**
5359
+ * Description of the configuration
5360
+ */
5361
+ description?: string;
5362
+ /**
5363
+ * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.
5364
+ */
5365
+ schema: {
5366
+ [k: string]: any;
5367
+ };
5368
+ };
5369
+ states: {
5370
+ [k: string]: {
5371
+ /**
5372
+ * Type of the [State](#schema_state) (`conversation`, `user`, `bot` or `task`)
5373
+ */
5374
+ type: "conversation" | "user" | "bot" | "task";
5375
+ /**
5376
+ * Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.
5377
+ */
5378
+ schema: {
5379
+ [k: string]: any;
5380
+ };
5381
+ /**
5382
+ * Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn't expire.
5383
+ */
5384
+ expiry?: number;
5385
+ };
5386
+ };
5387
+ events: {
5388
+ /**
5389
+ * Event Definition
5390
+ */
5391
+ [k: string]: {
5392
+ /**
5393
+ * Title of the event
5394
+ */
5395
+ title?: string;
5396
+ /**
5397
+ * Description of the event
5398
+ */
5399
+ description?: string;
5400
+ schema: {
5401
+ [k: string]: any;
5402
+ };
5403
+ };
5404
+ };
5405
+ actions: {
5406
+ /**
5407
+ * Action definition
5408
+ */
5409
+ [k: string]: {
5410
+ /**
5411
+ * Title of the action
5412
+ */
5413
+ title?: string;
5414
+ /**
5415
+ * Description of the action
5416
+ */
5417
+ description?: string;
5418
+ billable?: boolean;
5419
+ cacheable?: boolean;
5420
+ input: {
5421
+ schema: {
5422
+ [k: string]: any;
5423
+ };
5424
+ };
5425
+ output: {
5426
+ schema: {
5427
+ [k: string]: any;
5428
+ };
5429
+ };
5430
+ };
5431
+ };
5432
+ dependencies: {
5433
+ interfaces: {
5434
+ [k: string]: {
5435
+ id: string;
5436
+ name: string;
5437
+ version: string;
5438
+ };
5439
+ };
5440
+ integrations: {
5441
+ [k: string]: {
5442
+ id: string;
5443
+ name: string;
5444
+ version: string;
5445
+ };
5446
+ };
5447
+ };
5448
+ /**
5449
+ * User object configuration
5450
+ */
5451
+ user: {
5452
+ tags: {
5453
+ /**
5454
+ * Definition of a tag that can be provided on the object
5455
+ */
5456
+ [k: string]: {
5457
+ /**
5458
+ * Title of the tag
5459
+ */
5460
+ title?: string;
5461
+ /**
5462
+ * Description of the tag
5463
+ */
5464
+ description?: string;
5465
+ };
5466
+ };
5467
+ };
5468
+ /**
5469
+ * Conversation object configuration
5470
+ */
5471
+ conversation: {
5472
+ tags: {
5473
+ /**
5474
+ * Definition of a tag that can be provided on the object
5475
+ */
5476
+ [k: string]: {
5477
+ /**
5478
+ * Title of the tag
5479
+ */
5480
+ title?: string;
5481
+ /**
5482
+ * Description of the tag
5483
+ */
5484
+ description?: string;
5485
+ };
5486
+ };
5487
+ };
5488
+ /**
5489
+ * Title of the plugin. This is the name that will be displayed in the UI
5490
+ */
5491
+ title: string;
5492
+ /**
5493
+ * Description of the plugin. This is the description that will be displayed in the UI
5494
+ */
5495
+ description: string;
5496
+ /**
5497
+ * URL of the icon of the plugin. This is the icon that will be displayed in the UI
5498
+ */
5499
+ iconUrl: string;
5500
+ /**
5501
+ * URL of the readme of the plugin. This is the readme that will be displayed in the UI
5502
+ */
5503
+ readmeUrl: string;
5504
+ /**
5505
+ * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
5506
+ */
5507
+ public: boolean;
5508
+ };
5509
+ }
5510
+
5511
+ interface GetPublicPluginCodeRequestHeaders {
5512
+ }
5513
+ interface GetPublicPluginCodeRequestQuery {
5514
+ }
5515
+ interface GetPublicPluginCodeRequestParams {
5516
+ id: string;
5517
+ platform: "node" | "browser";
5518
+ }
5519
+ interface GetPublicPluginCodeRequestBody {
5520
+ }
5521
+ type GetPublicPluginCodeInput = GetPublicPluginCodeRequestBody & GetPublicPluginCodeRequestHeaders & GetPublicPluginCodeRequestQuery & GetPublicPluginCodeRequestParams;
5522
+ interface GetPublicPluginCodeResponse {
5523
+ code: string;
5524
+ }
5525
+
5057
5526
  interface CreateBotRequestHeaders {
5058
5527
  }
5059
5528
  interface CreateBotRequestQuery {
@@ -5317,7 +5786,7 @@ interface CreateBotResponse {
5317
5786
  */
5318
5787
  iconUrl: string;
5319
5788
  /**
5320
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
5789
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
5321
5790
  */
5322
5791
  public: boolean;
5323
5792
  /**
@@ -5752,6 +6221,7 @@ interface UpdateBotRequestBody {
5752
6221
  url: string;
5753
6222
  name: string;
5754
6223
  }[];
6224
+ layers?: string[];
5755
6225
  }
5756
6226
  type UpdateBotInput = UpdateBotRequestBody & UpdateBotRequestHeaders & UpdateBotRequestQuery & UpdateBotRequestParams;
5757
6227
  interface UpdateBotResponse {
@@ -5820,7 +6290,7 @@ interface UpdateBotResponse {
5820
6290
  */
5821
6291
  iconUrl: string;
5822
6292
  /**
5823
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
6293
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
5824
6294
  */
5825
6295
  public: boolean;
5826
6296
  /**
@@ -6197,7 +6667,7 @@ interface GetBotResponse {
6197
6667
  */
6198
6668
  iconUrl: string;
6199
6669
  /**
6200
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
6670
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
6201
6671
  */
6202
6672
  public: boolean;
6203
6673
  /**
@@ -6451,7 +6921,7 @@ interface GetBotLogsRequestHeaders {
6451
6921
  }
6452
6922
  interface GetBotLogsRequestQuery {
6453
6923
  timeStart: string;
6454
- timeEnd: string;
6924
+ timeEnd?: string;
6455
6925
  level?: string;
6456
6926
  userId?: string;
6457
6927
  workflowId?: string;
@@ -7771,7 +8241,7 @@ interface CreateIntegrationRequestBody {
7771
8241
  */
7772
8242
  description?: string;
7773
8243
  /**
7774
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
8244
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
7775
8245
  */
7776
8246
  public?: boolean;
7777
8247
  layers?: string[];
@@ -8128,7 +8598,7 @@ interface CreateIntegrationResponse {
8128
8598
  */
8129
8599
  readmeUrl: string;
8130
8600
  /**
8131
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
8601
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
8132
8602
  */
8133
8603
  public: boolean;
8134
8604
  /**
@@ -8451,7 +8921,7 @@ interface ValidateIntegrationCreationRequestBody {
8451
8921
  */
8452
8922
  description?: string;
8453
8923
  /**
8454
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
8924
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
8455
8925
  */
8456
8926
  public?: boolean;
8457
8927
  layers?: string[];
@@ -8762,7 +9232,7 @@ interface UpdateIntegrationRequestBody {
8762
9232
  */
8763
9233
  url?: string | null;
8764
9234
  /**
8765
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
9235
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
8766
9236
  */
8767
9237
  public?: boolean;
8768
9238
  layers?: string[];
@@ -9119,7 +9589,7 @@ interface UpdateIntegrationResponse {
9119
9589
  */
9120
9590
  readmeUrl: string;
9121
9591
  /**
9122
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
9592
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
9123
9593
  */
9124
9594
  public: boolean;
9125
9595
  /**
@@ -9435,7 +9905,7 @@ interface ValidateIntegrationUpdateRequestBody {
9435
9905
  */
9436
9906
  url?: string | null;
9437
9907
  /**
9438
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
9908
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
9439
9909
  */
9440
9910
  public?: boolean;
9441
9911
  layers?: string[];
@@ -9501,7 +9971,7 @@ interface ListIntegrationsResponse {
9501
9971
  */
9502
9972
  iconUrl: string;
9503
9973
  /**
9504
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
9974
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
9505
9975
  */
9506
9976
  public: boolean;
9507
9977
  /**
@@ -9908,7 +10378,7 @@ interface GetIntegrationResponse {
9908
10378
  */
9909
10379
  readmeUrl: string;
9910
10380
  /**
9911
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
10381
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
9912
10382
  */
9913
10383
  public: boolean;
9914
10384
  /**
@@ -9926,7 +10396,7 @@ interface GetIntegrationLogsRequestHeaders {
9926
10396
  }
9927
10397
  interface GetIntegrationLogsRequestQuery {
9928
10398
  timeStart: string;
9929
- timeEnd: string;
10399
+ timeEnd?: string;
9930
10400
  level?: string;
9931
10401
  userId?: string;
9932
10402
  conversationId?: string;
@@ -10312,7 +10782,7 @@ interface GetIntegrationByNameResponse {
10312
10782
  */
10313
10783
  readmeUrl: string;
10314
10784
  /**
10315
- * Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
10785
+ * Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
10316
10786
  */
10317
10787
  public: boolean;
10318
10788
  /**
@@ -11282,6 +11752,10 @@ interface CreatePluginRequestBody {
11282
11752
  * Description of the plugin. This is the description that will be displayed in the UI
11283
11753
  */
11284
11754
  description?: string;
11755
+ /**
11756
+ * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
11757
+ */
11758
+ public?: boolean;
11285
11759
  }
11286
11760
  type CreatePluginInput = CreatePluginRequestBody & CreatePluginRequestHeaders & CreatePluginRequestQuery & CreatePluginRequestParams;
11287
11761
  interface CreatePluginResponse {
@@ -11460,6 +11934,10 @@ interface CreatePluginResponse {
11460
11934
  * URL of the readme of the plugin. This is the readme that will be displayed in the UI
11461
11935
  */
11462
11936
  readmeUrl: string;
11937
+ /**
11938
+ * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
11939
+ */
11940
+ public: boolean;
11463
11941
  };
11464
11942
  }
11465
11943
 
@@ -11649,6 +12127,10 @@ interface GetPluginResponse {
11649
12127
  * URL of the readme of the plugin. This is the readme that will be displayed in the UI
11650
12128
  */
11651
12129
  readmeUrl: string;
12130
+ /**
12131
+ * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
12132
+ */
12133
+ public: boolean;
11652
12134
  };
11653
12135
  }
11654
12136
 
@@ -11839,6 +12321,10 @@ interface GetPluginByNameResponse {
11839
12321
  * URL of the readme of the plugin. This is the readme that will be displayed in the UI
11840
12322
  */
11841
12323
  readmeUrl: string;
12324
+ /**
12325
+ * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
12326
+ */
12327
+ public: boolean;
11842
12328
  };
11843
12329
  }
11844
12330
 
@@ -12004,6 +12490,10 @@ interface UpdatePluginRequestBody {
12004
12490
  * Description of the plugin. This is the description that will be displayed in the UI
12005
12491
  */
12006
12492
  description?: string;
12493
+ /**
12494
+ * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
12495
+ */
12496
+ public?: boolean;
12007
12497
  }
12008
12498
  type UpdatePluginInput = UpdatePluginRequestBody & UpdatePluginRequestHeaders & UpdatePluginRequestQuery & UpdatePluginRequestParams;
12009
12499
  interface UpdatePluginResponse {
@@ -12182,6 +12672,10 @@ interface UpdatePluginResponse {
12182
12672
  * URL of the readme of the plugin. This is the readme that will be displayed in the UI
12183
12673
  */
12184
12674
  readmeUrl: string;
12675
+ /**
12676
+ * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
12677
+ */
12678
+ public: boolean;
12185
12679
  };
12186
12680
  }
12187
12681
 
@@ -12203,6 +12697,7 @@ interface ListPluginsRequestHeaders {
12203
12697
  interface ListPluginsRequestQuery {
12204
12698
  nextToken?: string;
12205
12699
  name?: string;
12700
+ version?: string;
12206
12701
  }
12207
12702
  interface ListPluginsRequestParams {
12208
12703
  }
@@ -12247,6 +12742,10 @@ interface ListPluginsResponse {
12247
12742
  * URL of the readme of the plugin. This is the readme that will be displayed in the UI
12248
12743
  */
12249
12744
  readmeUrl: string;
12745
+ /**
12746
+ * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
12747
+ */
12748
+ public: boolean;
12250
12749
  }[];
12251
12750
  meta: {
12252
12751
  /**
@@ -12582,6 +13081,10 @@ interface UpsertFileRequestBody {
12582
13081
  */
12583
13082
  generateMasterSummary?: boolean;
12584
13083
  };
13084
+ /**
13085
+ * Internal setting, cannot be set manually.
13086
+ */
13087
+ stack?: "realtime-v1";
12585
13088
  vision?: {
12586
13089
  /**
12587
13090
  * (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 +13711,18 @@ interface SearchFilesResponse {
13208
13711
  */
13209
13712
  updatedAt: string;
13210
13713
  };
13714
+ context?: {
13715
+ id: string;
13716
+ text: string;
13717
+ /**
13718
+ * Position of the context passage relative to the current passage. Negative for preceding passages, positive for subsequent, ommited for breadcrumbs.
13719
+ */
13720
+ offset?: number;
13721
+ /**
13722
+ * The type of context passage
13723
+ */
13724
+ type: "preceding" | "subsequent" | "breadcrumb";
13725
+ }[];
13211
13726
  }[];
13212
13727
  }
13213
13728
 
@@ -15097,6 +15612,10 @@ declare class Client$1 {
15097
15612
  readonly listPublicIntegrations: (input: ListPublicIntegrationsInput) => Promise<ListPublicIntegrationsResponse>;
15098
15613
  readonly getPublicIntegrationById: (input: GetPublicIntegrationByIdInput) => Promise<GetPublicIntegrationByIdResponse>;
15099
15614
  readonly getPublicIntegration: (input: GetPublicIntegrationInput) => Promise<GetPublicIntegrationResponse>;
15615
+ readonly listPublicPlugins: (input: ListPublicPluginsInput) => Promise<ListPublicPluginsResponse>;
15616
+ readonly getPublicPluginById: (input: GetPublicPluginByIdInput) => Promise<GetPublicPluginByIdResponse>;
15617
+ readonly getPublicPlugin: (input: GetPublicPluginInput) => Promise<GetPublicPluginResponse>;
15618
+ readonly getPublicPluginCode: (input: GetPublicPluginCodeInput) => Promise<GetPublicPluginCodeResponse>;
15100
15619
  readonly createBot: (input: CreateBotInput) => Promise<CreateBotResponse>;
15101
15620
  readonly updateBot: (input: UpdateBotInput) => Promise<UpdateBotResponse>;
15102
15621
  readonly transferBot: (input: TransferBotInput) => Promise<TransferBotResponse>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/cognitive",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "Wrapper around the Botpress Client to call LLMs",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",