@botpress/api 0.32.0 → 0.32.2

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
@@ -269286,6 +269286,24 @@ var state = {
269286
269286
  "in": "query",
269287
269287
  "description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
269288
269288
  "type": "string"
269289
+ },
269290
+ "sortField": {
269291
+ "in": "query",
269292
+ "description": "Sort results by this field",
269293
+ "type": "string",
269294
+ "enum": [
269295
+ "createdAt",
269296
+ "updatedAt"
269297
+ ]
269298
+ },
269299
+ "sortDirection": {
269300
+ "in": "query",
269301
+ "description": "Sort results in this direction",
269302
+ "type": "string",
269303
+ "enum": [
269304
+ "asc",
269305
+ "desc"
269306
+ ]
269289
269307
  }
269290
269308
  },
269291
269309
  "section": "bot",
@@ -274223,8 +274241,7 @@ var state = {
274223
274241
  },
274224
274242
  "url": {
274225
274243
  "type": "string",
274226
- "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.",
274227
- "nullable": true
274244
+ "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."
274228
274245
  },
274229
274246
  "size": {
274230
274247
  "type": "number",
@@ -274354,8 +274371,7 @@ var state = {
274354
274371
  },
274355
274372
  "url": {
274356
274373
  "type": "string",
274357
- "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.",
274358
- "nullable": true
274374
+ "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."
274359
274375
  },
274360
274376
  "size": {
274361
274377
  "type": "number",
@@ -274504,8 +274520,7 @@ var state = {
274504
274520
  },
274505
274521
  "url": {
274506
274522
  "type": "string",
274507
- "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.",
274508
- "nullable": true
274523
+ "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."
274509
274524
  },
274510
274525
  "size": {
274511
274526
  "type": "number",
@@ -275591,7 +275606,7 @@ var state = {
275591
275606
  "title": "Botpress API",
275592
275607
  "description": "API for Botpress Cloud",
275593
275608
  "server": "https://api.botpress.cloud",
275594
- "version": "0.32.0",
275609
+ "version": "0.32.2",
275595
275610
  "prefix": "v1"
275596
275611
  },
275597
275612
  "errors": [
@@ -278302,8 +278317,7 @@ var state = {
278302
278317
  },
278303
278318
  "url": {
278304
278319
  "type": "string",
278305
- "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.",
278306
- "nullable": true
278320
+ "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."
278307
278321
  },
278308
278322
  "size": {
278309
278323
  "type": "number",
@@ -3942,6 +3942,18 @@ export declare const state: {
3942
3942
  description: string;
3943
3943
  type: "string";
3944
3944
  };
3945
+ sortField: {
3946
+ in: "query";
3947
+ description: string;
3948
+ type: "string";
3949
+ enum: string[];
3950
+ };
3951
+ sortDirection: {
3952
+ in: "query";
3953
+ description: string;
3954
+ type: "string";
3955
+ enum: string[];
3956
+ };
3945
3957
  };
3946
3958
  section: "bot";
3947
3959
  response: {
@@ -8203,7 +8215,6 @@ export declare const state: {
8203
8215
  url: {
8204
8216
  type: "string";
8205
8217
  description: string;
8206
- nullable: true;
8207
8218
  };
8208
8219
  size: {
8209
8220
  type: "number";
@@ -8308,7 +8319,6 @@ export declare const state: {
8308
8319
  url: {
8309
8320
  type: "string";
8310
8321
  description: string;
8311
- nullable: true;
8312
8322
  };
8313
8323
  size: {
8314
8324
  type: "number";
@@ -8430,7 +8440,6 @@ export declare const state: {
8430
8440
  url: {
8431
8441
  type: "string";
8432
8442
  description: string;
8433
- nullable: true;
8434
8443
  };
8435
8444
  size: {
8436
8445
  type: "number";
@@ -11640,7 +11649,6 @@ export declare const state: {
11640
11649
  url: {
11641
11650
  type: "string";
11642
11651
  description: string;
11643
- nullable: true;
11644
11652
  };
11645
11653
  size: {
11646
11654
  type: "number";
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.32.0",
3
+ "version": "0.32.2",
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",