@botpress/api 0.27.5 → 0.27.7

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
@@ -280854,7 +280854,11 @@ var state = {
280854
280854
  "accessPolicies": {
280855
280855
  "type": "array",
280856
280856
  "items": {
280857
- "type": "string"
280857
+ "type": "string",
280858
+ "enum": [
280859
+ "integrations",
280860
+ "public_content"
280861
+ ]
280858
280862
  },
280859
280863
  "description": "Access policies configured for the file."
280860
280864
  },
@@ -280983,6 +280987,11 @@ var state = {
280983
280987
  "description": "File name",
280984
280988
  "nullable": true
280985
280989
  },
280990
+ "url": {
280991
+ "type": "string",
280992
+ "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.",
280993
+ "nullable": true
280994
+ },
280986
280995
  "size": {
280987
280996
  "type": "number",
280988
280997
  "description": 'File size in bytes. Non-null if file upload status is "COMPLETE".',
@@ -281011,7 +281020,11 @@ var state = {
281011
281020
  "accessPolicies": {
281012
281021
  "type": "array",
281013
281022
  "items": {
281014
- "type": "string"
281023
+ "type": "string",
281024
+ "enum": [
281025
+ "integrations",
281026
+ "public_content"
281027
+ ]
281015
281028
  },
281016
281029
  "description": "Access policies configured for the file."
281017
281030
  },
@@ -281040,6 +281053,7 @@ var state = {
281040
281053
  "id",
281041
281054
  "botId",
281042
281055
  "name",
281056
+ "url",
281043
281057
  "size",
281044
281058
  "contentType",
281045
281059
  "tags",
@@ -281105,6 +281119,11 @@ var state = {
281105
281119
  "description": "File name",
281106
281120
  "nullable": true
281107
281121
  },
281122
+ "url": {
281123
+ "type": "string",
281124
+ "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.",
281125
+ "nullable": true
281126
+ },
281108
281127
  "size": {
281109
281128
  "type": "number",
281110
281129
  "description": 'File size in bytes. Non-null if file upload status is "COMPLETE".',
@@ -281133,7 +281152,11 @@ var state = {
281133
281152
  "accessPolicies": {
281134
281153
  "type": "array",
281135
281154
  "items": {
281136
- "type": "string"
281155
+ "type": "string",
281156
+ "enum": [
281157
+ "integrations",
281158
+ "public_content"
281159
+ ]
281137
281160
  },
281138
281161
  "description": "Access policies configured for the file."
281139
281162
  },
@@ -281162,6 +281185,7 @@ var state = {
281162
281185
  "id",
281163
281186
  "botId",
281164
281187
  "name",
281188
+ "url",
281165
281189
  "size",
281166
281190
  "contentType",
281167
281191
  "tags",
@@ -281172,16 +281196,10 @@ var state = {
281172
281196
  "status"
281173
281197
  ],
281174
281198
  "additionalProperties": false
281175
- },
281176
- "url": {
281177
- "type": "string",
281178
- "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.",
281179
- "nullable": true
281180
281199
  }
281181
281200
  },
281182
281201
  "required": [
281183
- "file",
281184
- "url"
281202
+ "file"
281185
281203
  ],
281186
281204
  "title": "getFileResponse",
281187
281205
  "additionalProperties": false
@@ -281213,12 +281231,20 @@ var state = {
281213
281231
  "maxLength": 1e3,
281214
281232
  "nullable": true
281215
281233
  },
281216
- "description": "The file tags to update as an object of key/value pairs with string (text) values. Any existing tags not included will be preserved. New tags will be added. To delete a tag, set its value to `null`."
281234
+ "description": "The file tags to update as an object of key/value pairs with string (text) values. Omit to keep existing tags intact. Any existing tags not included will be preserved. New tags will be added. To delete a tag, set its value to `null`."
281235
+ },
281236
+ "accessPolicies": {
281237
+ "type": "array",
281238
+ "items": {
281239
+ "type": "string",
281240
+ "enum": [
281241
+ "integrations",
281242
+ "public_content"
281243
+ ]
281244
+ },
281245
+ "description": "New access policies to set for the file. Omit to keep existing policies intact."
281217
281246
  }
281218
281247
  },
281219
- "required": [
281220
- "tags"
281221
- ],
281222
281248
  "title": "updateFileBody",
281223
281249
  "additionalProperties": false
281224
281250
  }
@@ -281244,6 +281270,11 @@ var state = {
281244
281270
  "description": "File name",
281245
281271
  "nullable": true
281246
281272
  },
281273
+ "url": {
281274
+ "type": "string",
281275
+ "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.",
281276
+ "nullable": true
281277
+ },
281247
281278
  "size": {
281248
281279
  "type": "number",
281249
281280
  "description": 'File size in bytes. Non-null if file upload status is "COMPLETE".',
@@ -281272,7 +281303,11 @@ var state = {
281272
281303
  "accessPolicies": {
281273
281304
  "type": "array",
281274
281305
  "items": {
281275
- "type": "string"
281306
+ "type": "string",
281307
+ "enum": [
281308
+ "integrations",
281309
+ "public_content"
281310
+ ]
281276
281311
  },
281277
281312
  "description": "Access policies configured for the file."
281278
281313
  },
@@ -281301,6 +281336,7 @@ var state = {
281301
281336
  "id",
281302
281337
  "botId",
281303
281338
  "name",
281339
+ "url",
281304
281340
  "size",
281305
281341
  "contentType",
281306
281342
  "tags",
@@ -282293,7 +282329,7 @@ var state = {
282293
282329
  "title": "Botpress API",
282294
282330
  "description": "API for Botpress Cloud",
282295
282331
  "server": "https://api.botpress.cloud",
282296
- "version": "0.27.5",
282332
+ "version": "0.27.7",
282297
282333
  "prefix": "v1"
282298
282334
  },
282299
282335
  "errors": [
@@ -284622,6 +284658,11 @@ var state = {
284622
284658
  "description": "File name",
284623
284659
  "nullable": true
284624
284660
  },
284661
+ "url": {
284662
+ "type": "string",
284663
+ "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.",
284664
+ "nullable": true
284665
+ },
284625
284666
  "size": {
284626
284667
  "type": "number",
284627
284668
  "description": 'File size in bytes. Non-null if file upload status is "COMPLETE".',
@@ -284650,7 +284691,11 @@ var state = {
284650
284691
  "accessPolicies": {
284651
284692
  "type": "array",
284652
284693
  "items": {
284653
- "type": "string"
284694
+ "type": "string",
284695
+ "enum": [
284696
+ "integrations",
284697
+ "public_content"
284698
+ ]
284654
284699
  },
284655
284700
  "description": "Access policies configured for the file."
284656
284701
  },
@@ -284679,6 +284724,7 @@ var state = {
284679
284724
  "id",
284680
284725
  "botId",
284681
284726
  "name",
284727
+ "url",
284682
284728
  "size",
284683
284729
  "contentType",
284684
284730
  "tags",
@@ -7165,6 +7165,7 @@ export declare const state: {
7165
7165
  type: "array";
7166
7166
  items: {
7167
7167
  type: "string";
7168
+ enum: string[];
7168
7169
  };
7169
7170
  description: string;
7170
7171
  };
@@ -7271,6 +7272,11 @@ export declare const state: {
7271
7272
  description: string;
7272
7273
  nullable: true;
7273
7274
  };
7275
+ url: {
7276
+ type: "string";
7277
+ description: string;
7278
+ nullable: true;
7279
+ };
7274
7280
  size: {
7275
7281
  type: "number";
7276
7282
  description: string;
@@ -7300,6 +7306,7 @@ export declare const state: {
7300
7306
  type: "array";
7301
7307
  items: {
7302
7308
  type: "string";
7309
+ enum: string[];
7303
7310
  };
7304
7311
  description: string;
7305
7312
  };
@@ -7371,6 +7378,11 @@ export declare const state: {
7371
7378
  description: string;
7372
7379
  nullable: true;
7373
7380
  };
7381
+ url: {
7382
+ type: "string";
7383
+ description: string;
7384
+ nullable: true;
7385
+ };
7374
7386
  size: {
7375
7387
  type: "number";
7376
7388
  description: string;
@@ -7400,6 +7412,7 @@ export declare const state: {
7400
7412
  type: "array";
7401
7413
  items: {
7402
7414
  type: "string";
7415
+ enum: string[];
7403
7416
  };
7404
7417
  description: string;
7405
7418
  };
@@ -7420,11 +7433,6 @@ export declare const state: {
7420
7433
  required: string[];
7421
7434
  additionalProperties: false;
7422
7435
  };
7423
- url: {
7424
- type: "string";
7425
- description: string;
7426
- nullable: true;
7427
- };
7428
7436
  };
7429
7437
  required: string[];
7430
7438
  title: string;
@@ -7459,8 +7467,15 @@ export declare const state: {
7459
7467
  };
7460
7468
  description: string;
7461
7469
  };
7470
+ accessPolicies: {
7471
+ type: "array";
7472
+ items: {
7473
+ type: "string";
7474
+ enum: string[];
7475
+ };
7476
+ description: string;
7477
+ };
7462
7478
  };
7463
- required: string[];
7464
7479
  title: string;
7465
7480
  additionalProperties: false;
7466
7481
  };
@@ -7486,6 +7501,11 @@ export declare const state: {
7486
7501
  description: string;
7487
7502
  nullable: true;
7488
7503
  };
7504
+ url: {
7505
+ type: "string";
7506
+ description: string;
7507
+ nullable: true;
7508
+ };
7489
7509
  size: {
7490
7510
  type: "number";
7491
7511
  description: string;
@@ -7515,6 +7535,7 @@ export declare const state: {
7515
7535
  type: "array";
7516
7536
  items: {
7517
7537
  type: "string";
7538
+ enum: string[];
7518
7539
  };
7519
7540
  description: string;
7520
7541
  };
@@ -10348,6 +10369,11 @@ export declare const state: {
10348
10369
  description: string;
10349
10370
  nullable: true;
10350
10371
  };
10372
+ url: {
10373
+ type: "string";
10374
+ description: string;
10375
+ nullable: true;
10376
+ };
10351
10377
  size: {
10352
10378
  type: "number";
10353
10379
  description: string;
@@ -10377,6 +10403,7 @@ export declare const state: {
10377
10403
  type: "array";
10378
10404
  items: {
10379
10405
  type: "string";
10406
+ enum: string[];
10380
10407
  };
10381
10408
  description: string;
10382
10409
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.27.5",
3
+ "version": "0.27.7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {