@botpress/api 0.48.0 → 0.49.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.js CHANGED
@@ -283462,13 +283462,11 @@ var state = {
283462
283462
  "type": "string",
283463
283463
  "maxLength": 200,
283464
283464
  "description": "Unique identifier of the integration that was installed on the bot"
283465
- },
283466
- "configuration": {
283467
- "type": "object",
283468
- "additionalProperties": true,
283469
- "description": "Configuration fields to update for the integration"
283470
283465
  }
283471
283466
  },
283467
+ "required": [
283468
+ "identifier"
283469
+ ],
283472
283470
  "title": "configureIntegrationBody",
283473
283471
  "additionalProperties": false
283474
283472
  }
@@ -292273,6 +292271,84 @@ var state = {
292273
292271
  "type": "boolean",
292274
292272
  "description": "Set to a value of 'true' to index the file in vector storage. Only certain file formats are currently supported for indexing. Note that if a file is indexed, it will count towards both the Vector DB Storage quota and the File Storage quota of the workspace."
292275
292273
  },
292274
+ "indexing": {
292275
+ "type": "object",
292276
+ "properties": {
292277
+ "configuration": {
292278
+ "type": "object",
292279
+ "properties": {
292280
+ "parsing": {
292281
+ "default": {},
292282
+ "type": "object",
292283
+ "properties": {
292284
+ "minimumParagraphLength": {
292285
+ "default": 500,
292286
+ "type": "integer",
292287
+ "minimum": 50,
292288
+ "maximum": 2e3
292289
+ }
292290
+ },
292291
+ "additionalProperties": false
292292
+ },
292293
+ "chunking": {
292294
+ "default": {},
292295
+ "type": "object",
292296
+ "properties": {
292297
+ "maximumChunkLength": {
292298
+ "default": 1250,
292299
+ "type": "integer",
292300
+ "minimum": 100,
292301
+ "maximum": 5e3
292302
+ }
292303
+ },
292304
+ "additionalProperties": false
292305
+ },
292306
+ "summarization": {
292307
+ "default": {},
292308
+ "type": "object",
292309
+ "properties": {
292310
+ "enable": {
292311
+ "default": true,
292312
+ "type": "boolean"
292313
+ },
292314
+ "modelType": {
292315
+ "default": "balanced",
292316
+ "type": "string",
292317
+ "enum": [
292318
+ "inexpensive",
292319
+ "balanced",
292320
+ "accurate"
292321
+ ]
292322
+ },
292323
+ "minimumInputLength": {
292324
+ "default": 3e3,
292325
+ "type": "integer",
292326
+ "minimum": 1e3,
292327
+ "maximum": 1e4
292328
+ },
292329
+ "outputTokenLimit": {
292330
+ "default": 2e3,
292331
+ "type": "integer",
292332
+ "minimum": 1e3,
292333
+ "maximum": 1e4
292334
+ },
292335
+ "generateMasterSummary": {
292336
+ "default": true,
292337
+ "type": "boolean"
292338
+ }
292339
+ },
292340
+ "additionalProperties": false
292341
+ }
292342
+ },
292343
+ "description": "Configuration to use for indexing the file, will be stored in the file's metadata for reference.",
292344
+ "additionalProperties": false
292345
+ }
292346
+ },
292347
+ "required": [
292348
+ "configuration"
292349
+ ],
292350
+ "additionalProperties": false
292351
+ },
292276
292352
  "accessPolicies": {
292277
292353
  "type": "array",
292278
292354
  "items": {
@@ -292296,6 +292372,9 @@ var state = {
292296
292372
  "publicContentImmediatelyAccessible": {
292297
292373
  "type": "boolean",
292298
292374
  "description": 'Use when your file has "public_content" in its access policy and you need the file\\\'s content to be immediately accessible through its URL after the file has been uploaded without having to wait for the upload to be processed by our system.\n\nIf set to `true`, the `x-amz-tagging` HTTP header with a value of `public=true` will need to be sent in the HTTP PUT request to the `uploadUrl` in order for the upload request to work.'
292375
+ },
292376
+ "metadata": {
292377
+ "description": "Custom metadata for the file expressed as an object of key-value pairs. The values can be of any type."
292299
292378
  }
292300
292379
  },
292301
292380
  "required": [
@@ -292349,6 +292428,13 @@ var state = {
292349
292428
  },
292350
292429
  "description": "The tags of the file as an object of key/value pairs"
292351
292430
  },
292431
+ "metadata": {
292432
+ "type": "object",
292433
+ "additionalProperties": {
292434
+ "nullable": true
292435
+ },
292436
+ "description": "Metadata of the file as an object of key/value pairs. The values can be of any type."
292437
+ },
292352
292438
  "createdAt": {
292353
292439
  "type": "string",
292354
292440
  "description": "File creation timestamp in ISO 8601 format"
@@ -292405,6 +292491,7 @@ var state = {
292405
292491
  "size",
292406
292492
  "contentType",
292407
292493
  "tags",
292494
+ "metadata",
292408
292495
  "createdAt",
292409
292496
  "updatedAt",
292410
292497
  "accessPolicies",
@@ -292520,6 +292607,13 @@ var state = {
292520
292607
  },
292521
292608
  "description": "The tags of the file as an object of key/value pairs"
292522
292609
  },
292610
+ "metadata": {
292611
+ "type": "object",
292612
+ "additionalProperties": {
292613
+ "nullable": true
292614
+ },
292615
+ "description": "Metadata of the file as an object of key/value pairs. The values can be of any type."
292616
+ },
292523
292617
  "createdAt": {
292524
292618
  "type": "string",
292525
292619
  "description": "File creation timestamp in ISO 8601 format"
@@ -292572,6 +292666,7 @@ var state = {
292572
292666
  "size",
292573
292667
  "contentType",
292574
292668
  "tags",
292669
+ "metadata",
292575
292670
  "createdAt",
292576
292671
  "updatedAt",
292577
292672
  "accessPolicies",
@@ -292654,6 +292749,13 @@ var state = {
292654
292749
  },
292655
292750
  "description": "The tags of the file as an object of key/value pairs"
292656
292751
  },
292752
+ "metadata": {
292753
+ "type": "object",
292754
+ "additionalProperties": {
292755
+ "nullable": true
292756
+ },
292757
+ "description": "Metadata of the file as an object of key/value pairs. The values can be of any type."
292758
+ },
292657
292759
  "createdAt": {
292658
292760
  "type": "string",
292659
292761
  "description": "File creation timestamp in ISO 8601 format"
@@ -292706,6 +292808,7 @@ var state = {
292706
292808
  "size",
292707
292809
  "contentType",
292708
292810
  "tags",
292811
+ "metadata",
292709
292812
  "createdAt",
292710
292813
  "updatedAt",
292711
292814
  "accessPolicies",
@@ -292741,6 +292844,9 @@ var state = {
292741
292844
  "schema": {
292742
292845
  "type": "object",
292743
292846
  "properties": {
292847
+ "metadata": {
292848
+ "description": "Custom metadata for the file expressed as an object of key-value pairs. Omit to keep existing metadata intact. Any existing metadata keys not included will be preserved. New keys will be added. To delete a metadata key, set its value to `null`."
292849
+ },
292744
292850
  "tags": {
292745
292851
  "type": "object",
292746
292852
  "additionalProperties": {
@@ -292813,6 +292919,13 @@ var state = {
292813
292919
  },
292814
292920
  "description": "The tags of the file as an object of key/value pairs"
292815
292921
  },
292922
+ "metadata": {
292923
+ "type": "object",
292924
+ "additionalProperties": {
292925
+ "nullable": true
292926
+ },
292927
+ "description": "Metadata of the file as an object of key/value pairs. The values can be of any type."
292928
+ },
292816
292929
  "createdAt": {
292817
292930
  "type": "string",
292818
292931
  "description": "File creation timestamp in ISO 8601 format"
@@ -292865,6 +292978,7 @@ var state = {
292865
292978
  "size",
292866
292979
  "contentType",
292867
292980
  "tags",
292981
+ "metadata",
292868
292982
  "createdAt",
292869
292983
  "updatedAt",
292870
292984
  "accessPolicies",
@@ -294041,7 +294155,7 @@ var state = {
294041
294155
  "title": "Botpress API",
294042
294156
  "description": "API for Botpress Cloud",
294043
294157
  "server": "https://api.botpress.cloud",
294044
- "version": "0.48.0",
294158
+ "version": "0.49.0",
294045
294159
  "prefix": "v1"
294046
294160
  },
294047
294161
  "errors": [
@@ -297167,6 +297281,13 @@ var state = {
297167
297281
  },
297168
297282
  "description": "The tags of the file as an object of key/value pairs"
297169
297283
  },
297284
+ "metadata": {
297285
+ "type": "object",
297286
+ "additionalProperties": {
297287
+ "nullable": true
297288
+ },
297289
+ "description": "Metadata of the file as an object of key/value pairs. The values can be of any type."
297290
+ },
297170
297291
  "createdAt": {
297171
297292
  "type": "string",
297172
297293
  "description": "File creation timestamp in ISO 8601 format"
@@ -297219,6 +297340,7 @@ var state = {
297219
297340
  "size",
297220
297341
  "contentType",
297221
297342
  "tags",
297343
+ "metadata",
297222
297344
  "createdAt",
297223
297345
  "updatedAt",
297224
297346
  "accessPolicies",
@@ -1568,12 +1568,8 @@ export declare const state: {
1568
1568
  maxLength: number;
1569
1569
  description: string;
1570
1570
  };
1571
- configuration: {
1572
- type: "object";
1573
- additionalProperties: true;
1574
- description: string;
1575
- };
1576
1571
  };
1572
+ required: string[];
1577
1573
  title: string;
1578
1574
  additionalProperties: false;
1579
1575
  };
@@ -9261,6 +9257,78 @@ export declare const state: {
9261
9257
  type: "boolean";
9262
9258
  description: string;
9263
9259
  };
9260
+ indexing: {
9261
+ type: "object";
9262
+ properties: {
9263
+ configuration: {
9264
+ type: "object";
9265
+ properties: {
9266
+ parsing: {
9267
+ default: {};
9268
+ type: "object";
9269
+ properties: {
9270
+ minimumParagraphLength: {
9271
+ default: number;
9272
+ type: "integer";
9273
+ minimum: number;
9274
+ maximum: number;
9275
+ };
9276
+ };
9277
+ additionalProperties: false;
9278
+ };
9279
+ chunking: {
9280
+ default: {};
9281
+ type: "object";
9282
+ properties: {
9283
+ maximumChunkLength: {
9284
+ default: number;
9285
+ type: "integer";
9286
+ minimum: number;
9287
+ maximum: number;
9288
+ };
9289
+ };
9290
+ additionalProperties: false;
9291
+ };
9292
+ summarization: {
9293
+ default: {};
9294
+ type: "object";
9295
+ properties: {
9296
+ enable: {
9297
+ default: boolean;
9298
+ type: "boolean";
9299
+ };
9300
+ modelType: {
9301
+ default: string;
9302
+ type: "string";
9303
+ enum: string[];
9304
+ };
9305
+ minimumInputLength: {
9306
+ default: number;
9307
+ type: "integer";
9308
+ minimum: number;
9309
+ maximum: number;
9310
+ };
9311
+ outputTokenLimit: {
9312
+ default: number;
9313
+ type: "integer";
9314
+ minimum: number;
9315
+ maximum: number;
9316
+ };
9317
+ generateMasterSummary: {
9318
+ default: boolean;
9319
+ type: "boolean";
9320
+ };
9321
+ };
9322
+ additionalProperties: false;
9323
+ };
9324
+ };
9325
+ description: string;
9326
+ additionalProperties: false;
9327
+ };
9328
+ };
9329
+ required: string[];
9330
+ additionalProperties: false;
9331
+ };
9264
9332
  accessPolicies: {
9265
9333
  type: "array";
9266
9334
  items: {
@@ -9282,6 +9350,9 @@ export declare const state: {
9282
9350
  type: "boolean";
9283
9351
  description: string;
9284
9352
  };
9353
+ metadata: {
9354
+ description: string;
9355
+ };
9285
9356
  };
9286
9357
  required: string[];
9287
9358
  title: string;
@@ -9331,6 +9402,13 @@ export declare const state: {
9331
9402
  };
9332
9403
  description: string;
9333
9404
  };
9405
+ metadata: {
9406
+ type: "object";
9407
+ additionalProperties: {
9408
+ nullable: true;
9409
+ };
9410
+ description: string;
9411
+ };
9334
9412
  createdAt: {
9335
9413
  type: "string";
9336
9414
  description: string;
@@ -9476,6 +9554,13 @@ export declare const state: {
9476
9554
  };
9477
9555
  description: string;
9478
9556
  };
9557
+ metadata: {
9558
+ type: "object";
9559
+ additionalProperties: {
9560
+ nullable: true;
9561
+ };
9562
+ description: string;
9563
+ };
9479
9564
  createdAt: {
9480
9565
  type: "string";
9481
9566
  description: string;
@@ -9584,6 +9669,13 @@ export declare const state: {
9584
9669
  };
9585
9670
  description: string;
9586
9671
  };
9672
+ metadata: {
9673
+ type: "object";
9674
+ additionalProperties: {
9675
+ nullable: true;
9676
+ };
9677
+ description: string;
9678
+ };
9587
9679
  createdAt: {
9588
9680
  type: "string";
9589
9681
  description: string;
@@ -9646,6 +9738,9 @@ export declare const state: {
9646
9738
  schema: {
9647
9739
  type: "object";
9648
9740
  properties: {
9741
+ metadata: {
9742
+ description: string;
9743
+ };
9649
9744
  tags: {
9650
9745
  type: "object";
9651
9746
  additionalProperties: {
@@ -9715,6 +9810,13 @@ export declare const state: {
9715
9810
  };
9716
9811
  description: string;
9717
9812
  };
9813
+ metadata: {
9814
+ type: "object";
9815
+ additionalProperties: {
9816
+ nullable: true;
9817
+ };
9818
+ description: string;
9819
+ };
9718
9820
  createdAt: {
9719
9821
  type: "string";
9720
9822
  description: string;
@@ -13390,6 +13492,13 @@ export declare const state: {
13390
13492
  };
13391
13493
  description: string;
13392
13494
  };
13495
+ metadata: {
13496
+ type: "object";
13497
+ additionalProperties: {
13498
+ nullable: true;
13499
+ };
13500
+ description: string;
13501
+ };
13393
13502
  createdAt: {
13394
13503
  type: "string";
13395
13504
  description: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.48.0",
3
+ "version": "0.49.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {