@botpress/api 0.27.4 → 0.27.6

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
@@ -280771,6 +280771,10 @@ var state = {
280771
280771
  },
280772
280772
  "description": "File tags as an object of key/value pairs"
280773
280773
  },
280774
+ "size": {
280775
+ "type": "number",
280776
+ "description": "File size in bytes. This will count against your file storage quota. If the `index` parameter is set to `true`, this will also count against your vector database storage quota."
280777
+ },
280774
280778
  "index": {
280775
280779
  "default": false,
280776
280780
  "type": "boolean",
@@ -280792,6 +280796,9 @@ var state = {
280792
280796
  "description": 'File content type. If omitted, the content type will be inferred from the file extension. If a type cannot be inferred, the default is "application/octet-stream".'
280793
280797
  }
280794
280798
  },
280799
+ "required": [
280800
+ "size"
280801
+ ],
280795
280802
  "title": "createFileBody",
280796
280803
  "additionalProperties": false
280797
280804
  }
@@ -280976,6 +280983,11 @@ var state = {
280976
280983
  "description": "File name",
280977
280984
  "nullable": true
280978
280985
  },
280986
+ "url": {
280987
+ "type": "string",
280988
+ "description": "If the file is not uploaded yet, this will be set to a `null` value.\n\nIf the file has a `public_content` policy, this will contain the permanent public URL to retrieve the file, otherwise this will contain a temporary pre-signed URL to download the file which should be used shortly after retrieving and should not be stored long-term as the URL will expire after a short timeframe.",
280989
+ "nullable": true
280990
+ },
280979
280991
  "size": {
280980
280992
  "type": "number",
280981
280993
  "description": 'File size in bytes. Non-null if file upload status is "COMPLETE".',
@@ -281033,6 +281045,7 @@ var state = {
281033
281045
  "id",
281034
281046
  "botId",
281035
281047
  "name",
281048
+ "url",
281036
281049
  "size",
281037
281050
  "contentType",
281038
281051
  "tags",
@@ -281098,6 +281111,11 @@ var state = {
281098
281111
  "description": "File name",
281099
281112
  "nullable": true
281100
281113
  },
281114
+ "url": {
281115
+ "type": "string",
281116
+ "description": "If the file is not uploaded yet, this will be set to a `null` value.\n\nIf the file has a `public_content` policy, this will contain the permanent public URL to retrieve the file, otherwise this will contain a temporary pre-signed URL to download the file which should be used shortly after retrieving and should not be stored long-term as the URL will expire after a short timeframe.",
281117
+ "nullable": true
281118
+ },
281101
281119
  "size": {
281102
281120
  "type": "number",
281103
281121
  "description": 'File size in bytes. Non-null if file upload status is "COMPLETE".',
@@ -281155,6 +281173,7 @@ var state = {
281155
281173
  "id",
281156
281174
  "botId",
281157
281175
  "name",
281176
+ "url",
281158
281177
  "size",
281159
281178
  "contentType",
281160
281179
  "tags",
@@ -281165,16 +281184,10 @@ var state = {
281165
281184
  "status"
281166
281185
  ],
281167
281186
  "additionalProperties": false
281168
- },
281169
- "url": {
281170
- "type": "string",
281171
- "description": "If the file is not uploaded yet, this will be set to a `null` value.\n\nIf the file has a `public_content` policy, this will contain the permanent public URL to retrieve the file, otherwise this will contain a temporary pre-signed URL to download the file which should be used shortly after retrieving and should not be stored long-term as the URL will expire after a short timeframe.",
281172
- "nullable": true
281173
281187
  }
281174
281188
  },
281175
281189
  "required": [
281176
- "file",
281177
- "url"
281190
+ "file"
281178
281191
  ],
281179
281192
  "title": "getFileResponse",
281180
281193
  "additionalProperties": false
@@ -281237,6 +281250,11 @@ var state = {
281237
281250
  "description": "File name",
281238
281251
  "nullable": true
281239
281252
  },
281253
+ "url": {
281254
+ "type": "string",
281255
+ "description": "If the file is not uploaded yet, this will be set to a `null` value.\n\nIf the file has a `public_content` policy, this will contain the permanent public URL to retrieve the file, otherwise this will contain a temporary pre-signed URL to download the file which should be used shortly after retrieving and should not be stored long-term as the URL will expire after a short timeframe.",
281256
+ "nullable": true
281257
+ },
281240
281258
  "size": {
281241
281259
  "type": "number",
281242
281260
  "description": 'File size in bytes. Non-null if file upload status is "COMPLETE".',
@@ -281294,6 +281312,7 @@ var state = {
281294
281312
  "id",
281295
281313
  "botId",
281296
281314
  "name",
281315
+ "url",
281297
281316
  "size",
281298
281317
  "contentType",
281299
281318
  "tags",
@@ -282286,7 +282305,7 @@ var state = {
282286
282305
  "title": "Botpress API",
282287
282306
  "description": "API for Botpress Cloud",
282288
282307
  "server": "https://api.botpress.cloud",
282289
- "version": "0.27.4",
282308
+ "version": "0.27.6",
282290
282309
  "prefix": "v1"
282291
282310
  },
282292
282311
  "errors": [
@@ -284615,6 +284634,11 @@ var state = {
284615
284634
  "description": "File name",
284616
284635
  "nullable": true
284617
284636
  },
284637
+ "url": {
284638
+ "type": "string",
284639
+ "description": "If the file is not uploaded yet, this will be set to a `null` value.\n\nIf the file has a `public_content` policy, this will contain the permanent public URL to retrieve the file, otherwise this will contain a temporary pre-signed URL to download the file which should be used shortly after retrieving and should not be stored long-term as the URL will expire after a short timeframe.",
284640
+ "nullable": true
284641
+ },
284618
284642
  "size": {
284619
284643
  "type": "number",
284620
284644
  "description": 'File size in bytes. Non-null if file upload status is "COMPLETE".',
@@ -284672,6 +284696,7 @@ var state = {
284672
284696
  "id",
284673
284697
  "botId",
284674
284698
  "name",
284699
+ "url",
284675
284700
  "size",
284676
284701
  "contentType",
284677
284702
  "tags",
@@ -7086,6 +7086,10 @@ export declare const state: {
7086
7086
  };
7087
7087
  description: string;
7088
7088
  };
7089
+ size: {
7090
+ type: "number";
7091
+ description: string;
7092
+ };
7089
7093
  index: {
7090
7094
  default: boolean;
7091
7095
  type: "boolean";
@@ -7104,6 +7108,7 @@ export declare const state: {
7104
7108
  description: string;
7105
7109
  };
7106
7110
  };
7111
+ required: string[];
7107
7112
  title: string;
7108
7113
  additionalProperties: false;
7109
7114
  };
@@ -7266,6 +7271,11 @@ export declare const state: {
7266
7271
  description: string;
7267
7272
  nullable: true;
7268
7273
  };
7274
+ url: {
7275
+ type: "string";
7276
+ description: string;
7277
+ nullable: true;
7278
+ };
7269
7279
  size: {
7270
7280
  type: "number";
7271
7281
  description: string;
@@ -7366,6 +7376,11 @@ export declare const state: {
7366
7376
  description: string;
7367
7377
  nullable: true;
7368
7378
  };
7379
+ url: {
7380
+ type: "string";
7381
+ description: string;
7382
+ nullable: true;
7383
+ };
7369
7384
  size: {
7370
7385
  type: "number";
7371
7386
  description: string;
@@ -7415,11 +7430,6 @@ export declare const state: {
7415
7430
  required: string[];
7416
7431
  additionalProperties: false;
7417
7432
  };
7418
- url: {
7419
- type: "string";
7420
- description: string;
7421
- nullable: true;
7422
- };
7423
7433
  };
7424
7434
  required: string[];
7425
7435
  title: string;
@@ -7481,6 +7491,11 @@ export declare const state: {
7481
7491
  description: string;
7482
7492
  nullable: true;
7483
7493
  };
7494
+ url: {
7495
+ type: "string";
7496
+ description: string;
7497
+ nullable: true;
7498
+ };
7484
7499
  size: {
7485
7500
  type: "number";
7486
7501
  description: string;
@@ -10343,6 +10358,11 @@ export declare const state: {
10343
10358
  description: string;
10344
10359
  nullable: true;
10345
10360
  };
10361
+ url: {
10362
+ type: "string";
10363
+ description: string;
10364
+ nullable: true;
10365
+ };
10346
10366
  size: {
10347
10367
  type: "number";
10348
10368
  description: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.27.4",
3
+ "version": "0.27.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {