@botpress/api 0.32.1 → 0.32.3

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
@@ -274084,6 +274084,10 @@ var state = {
274084
274084
  "type": "string",
274085
274085
  "description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
274086
274086
  },
274087
+ "url": {
274088
+ "type": "string",
274089
+ "description": "URL to retrieve the file content. This URL will be ready to use once the file is uploaded.\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."
274090
+ },
274087
274091
  "size": {
274088
274092
  "type": "number",
274089
274093
  "description": 'File size in bytes. Non-null if file upload status is "COMPLETE".',
@@ -274149,6 +274153,7 @@ var state = {
274149
274153
  "id",
274150
274154
  "botId",
274151
274155
  "key",
274156
+ "url",
274152
274157
  "size",
274153
274158
  "contentType",
274154
274159
  "tags",
@@ -274241,8 +274246,7 @@ var state = {
274241
274246
  },
274242
274247
  "url": {
274243
274248
  "type": "string",
274244
- "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.",
274245
- "nullable": true
274249
+ "description": "URL to retrieve the file content. This URL will be ready to use once the file is uploaded.\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."
274246
274250
  },
274247
274251
  "size": {
274248
274252
  "type": "number",
@@ -274372,8 +274376,7 @@ var state = {
274372
274376
  },
274373
274377
  "url": {
274374
274378
  "type": "string",
274375
- "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.",
274376
- "nullable": true
274379
+ "description": "URL to retrieve the file content. This URL will be ready to use once the file is uploaded.\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."
274377
274380
  },
274378
274381
  "size": {
274379
274382
  "type": "number",
@@ -274522,8 +274525,7 @@ var state = {
274522
274525
  },
274523
274526
  "url": {
274524
274527
  "type": "string",
274525
- "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.",
274526
- "nullable": true
274528
+ "description": "URL to retrieve the file content. This URL will be ready to use once the file is uploaded.\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."
274527
274529
  },
274528
274530
  "size": {
274529
274531
  "type": "number",
@@ -275609,7 +275611,7 @@ var state = {
275609
275611
  "title": "Botpress API",
275610
275612
  "description": "API for Botpress Cloud",
275611
275613
  "server": "https://api.botpress.cloud",
275612
- "version": "0.32.1",
275614
+ "version": "0.32.3",
275613
275615
  "prefix": "v1"
275614
275616
  },
275615
275617
  "errors": [
@@ -278320,8 +278322,7 @@ var state = {
278320
278322
  },
278321
278323
  "url": {
278322
278324
  "type": "string",
278323
- "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.",
278324
- "nullable": true
278325
+ "description": "URL to retrieve the file content. This URL will be ready to use once the file is uploaded.\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."
278325
278326
  },
278326
278327
  "size": {
278327
278328
  "type": "number",
@@ -8082,6 +8082,10 @@ export declare const state: {
8082
8082
  type: "string";
8083
8083
  description: string;
8084
8084
  };
8085
+ url: {
8086
+ type: "string";
8087
+ description: string;
8088
+ };
8085
8089
  size: {
8086
8090
  type: "number";
8087
8091
  description: string;
@@ -8215,7 +8219,6 @@ export declare const state: {
8215
8219
  url: {
8216
8220
  type: "string";
8217
8221
  description: string;
8218
- nullable: true;
8219
8222
  };
8220
8223
  size: {
8221
8224
  type: "number";
@@ -8320,7 +8323,6 @@ export declare const state: {
8320
8323
  url: {
8321
8324
  type: "string";
8322
8325
  description: string;
8323
- nullable: true;
8324
8326
  };
8325
8327
  size: {
8326
8328
  type: "number";
@@ -8442,7 +8444,6 @@ export declare const state: {
8442
8444
  url: {
8443
8445
  type: "string";
8444
8446
  description: string;
8445
- nullable: true;
8446
8447
  };
8447
8448
  size: {
8448
8449
  type: "number";
@@ -11652,7 +11653,6 @@ export declare const state: {
11652
11653
  url: {
11653
11654
  type: "string";
11654
11655
  description: string;
11655
- nullable: true;
11656
11656
  };
11657
11657
  size: {
11658
11658
  type: "number";
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.32.1",
3
+ "version": "0.32.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
7
7
  "openapi": "es-node openapi/generator.ts && pnpm run build",
8
8
  "openapi:lint": "spectral lint --fail-severity warn --ruleset ../../.spectral.yaml src/gen/openapi.json",
9
- "type-check": "tsc --noEmit",
9
+ "check:type": "tsc --noEmit",
10
10
  "build:type": "tsc -p tsconfig.package.json --emitDeclarationOnly",
11
11
  "build:impl": "esbuild --bundle --platform=node --outfile=dist/index.js src/index.ts",
12
12
  "build:types-by-section": "esbuild --bundle --platform=node --outfile=dist/generate-types-by-section.js openapi/generate-types-by-section.ts && node dist/generate-types-by-section.js",