@botpress/api 0.19.0 → 0.19.1

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
@@ -279015,7 +279015,7 @@ var state = {
279015
279015
  "getFileContent": {
279016
279016
  "name": "getFileContent",
279017
279017
  "path": "/v1/files/{id}/content",
279018
- "description": "Gets a file content",
279018
+ "description": "Returns a presigned URL to download the file content.",
279019
279019
  "method": "get",
279020
279020
  "section": "files",
279021
279021
  "parameters": {
@@ -279050,17 +279050,19 @@ var state = {
279050
279050
  }
279051
279051
  },
279052
279052
  "response": {
279053
- "description": "Redirects to a presigned URL to download the file content.",
279054
- "status": 302,
279053
+ "description": "Returns a temporary pre-signed URL to download the file content.",
279055
279054
  "schema": {
279056
279055
  "type": "object",
279057
279056
  "properties": {
279058
- "data": {
279059
- "nullable": true
279057
+ "url": {
279058
+ "type": "string",
279059
+ "description": "Temporary pre-signed URL to download the file, should be used shortly after retrieving and should not be stored long-term as the URL will expire after a short timeframe."
279060
279060
  }
279061
279061
  },
279062
+ "required": [
279063
+ "url"
279064
+ ],
279062
279065
  "title": "getFileContentResponse",
279063
- "format": "binary",
279064
279066
  "additionalProperties": false
279065
279067
  }
279066
279068
  }
@@ -279853,7 +279855,7 @@ var state = {
279853
279855
  "title": "Botpress API",
279854
279856
  "description": "API for Botpress Cloud",
279855
279857
  "server": "https://api.botpress.cloud",
279856
- "version": "0.19.0",
279858
+ "version": "0.19.1",
279857
279859
  "prefix": "v1"
279858
279860
  },
279859
279861
  "errors": [
@@ -6653,16 +6653,16 @@ export declare const state: {
6653
6653
  };
6654
6654
  response: {
6655
6655
  description: string;
6656
- status: 302;
6657
6656
  schema: {
6658
6657
  type: "object";
6659
6658
  properties: {
6660
- data: {
6661
- nullable: true;
6659
+ url: {
6660
+ type: "string";
6661
+ description: string;
6662
6662
  };
6663
6663
  };
6664
+ required: string[];
6664
6665
  title: string;
6665
- format: string;
6666
6666
  additionalProperties: false;
6667
6667
  };
6668
6668
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.19.0",
3
+ "version": "0.19.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {