@botpress/api 1.34.0 → 1.35.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @botpress/api@1.34.0 openapi /home/runner/work/skynet/skynet/packages/public-api
2
+ > @botpress/api@1.35.1 openapi /home/runner/work/skynet/skynet/packages/public-api
3
3
  > es-node openapi/generator.ts && pnpm run build
4
4
 
5
5
  Generating openapi content
@@ -34,15 +34,15 @@ Saving openapi.json file
34
34
 
35
35
  info: Exit with code {"category":"system","code":0,"label":"Shutdown"}
36
36
 
37
- > @botpress/api@1.34.0 build /home/runner/work/skynet/skynet/packages/public-api
37
+ > @botpress/api@1.35.1 build /home/runner/work/skynet/skynet/packages/public-api
38
38
  > pnpm run build:type && pnpm run build:impl
39
39
 
40
40
 
41
- > @botpress/api@1.34.0 build:type /home/runner/work/skynet/skynet/packages/public-api
41
+ > @botpress/api@1.35.1 build:type /home/runner/work/skynet/skynet/packages/public-api
42
42
  > tsc -p tsconfig.package.json --emitDeclarationOnly
43
43
 
44
44
 
45
- > @botpress/api@1.34.0 build:impl /home/runner/work/skynet/skynet/packages/public-api
45
+ > @botpress/api@1.35.1 build:impl /home/runner/work/skynet/skynet/packages/public-api
46
46
  > esbuild --bundle --platform=node --outfile=dist/index.js src/index.ts
47
47
 
48
48
 
package/dist/index.js CHANGED
@@ -236617,20 +236617,19 @@ var require_lib4 = __commonJS({
236617
236617
  }
236618
236618
  });
236619
236619
 
236620
- // ../../node_modules/.pnpm/picocolors@1.1.0/node_modules/picocolors/picocolors.js
236620
+ // ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
236621
236621
  var require_picocolors = __commonJS({
236622
- "../../node_modules/.pnpm/picocolors@1.1.0/node_modules/picocolors/picocolors.js"(exports, module2) {
236623
- var argv = process.argv || [];
236624
- var env2 = process.env;
236625
- var isColorSupported = !("NO_COLOR" in env2 || argv.includes("--no-color")) && ("FORCE_COLOR" in env2 || argv.includes("--color") || process.platform === "win32" || require != null && require("tty").isatty(1) && env2.TERM !== "dumb" || "CI" in env2);
236622
+ "../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(exports, module2) {
236623
+ var p = process || {};
236624
+ var argv = p.argv || [];
236625
+ var env2 = p.env || {};
236626
+ var isColorSupported = !(!!env2.NO_COLOR || argv.includes("--no-color")) && (!!env2.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env2.TERM !== "dumb" || !!env2.CI);
236626
236627
  var formatter = (open, close, replace2 = open) => (input) => {
236627
- let string = "" + input;
236628
- let index = string.indexOf(close, open.length);
236628
+ let string = "" + input, index = string.indexOf(close, open.length);
236629
236629
  return ~index ? open + replaceClose(string, close, replace2, index) + close : open + string + close;
236630
236630
  };
236631
236631
  var replaceClose = (string, close, replace2, index) => {
236632
- let result = "";
236633
- let cursor = 0;
236632
+ let result = "", cursor = 0;
236634
236633
  do {
236635
236634
  result += string.substring(cursor, index) + replace2;
236636
236635
  cursor = index + close.length;
@@ -236639,50 +236638,50 @@ var require_picocolors = __commonJS({
236639
236638
  return result + string.substring(cursor);
236640
236639
  };
236641
236640
  var createColors = (enabled = isColorSupported) => {
236642
- let init = enabled ? formatter : () => String;
236641
+ let f = enabled ? formatter : () => String;
236643
236642
  return {
236644
236643
  isColorSupported: enabled,
236645
- reset: init("\x1B[0m", "\x1B[0m"),
236646
- bold: init("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
236647
- dim: init("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
236648
- italic: init("\x1B[3m", "\x1B[23m"),
236649
- underline: init("\x1B[4m", "\x1B[24m"),
236650
- inverse: init("\x1B[7m", "\x1B[27m"),
236651
- hidden: init("\x1B[8m", "\x1B[28m"),
236652
- strikethrough: init("\x1B[9m", "\x1B[29m"),
236653
- black: init("\x1B[30m", "\x1B[39m"),
236654
- red: init("\x1B[31m", "\x1B[39m"),
236655
- green: init("\x1B[32m", "\x1B[39m"),
236656
- yellow: init("\x1B[33m", "\x1B[39m"),
236657
- blue: init("\x1B[34m", "\x1B[39m"),
236658
- magenta: init("\x1B[35m", "\x1B[39m"),
236659
- cyan: init("\x1B[36m", "\x1B[39m"),
236660
- white: init("\x1B[37m", "\x1B[39m"),
236661
- gray: init("\x1B[90m", "\x1B[39m"),
236662
- bgBlack: init("\x1B[40m", "\x1B[49m"),
236663
- bgRed: init("\x1B[41m", "\x1B[49m"),
236664
- bgGreen: init("\x1B[42m", "\x1B[49m"),
236665
- bgYellow: init("\x1B[43m", "\x1B[49m"),
236666
- bgBlue: init("\x1B[44m", "\x1B[49m"),
236667
- bgMagenta: init("\x1B[45m", "\x1B[49m"),
236668
- bgCyan: init("\x1B[46m", "\x1B[49m"),
236669
- bgWhite: init("\x1B[47m", "\x1B[49m"),
236670
- blackBright: init("\x1B[90m", "\x1B[39m"),
236671
- redBright: init("\x1B[91m", "\x1B[39m"),
236672
- greenBright: init("\x1B[92m", "\x1B[39m"),
236673
- yellowBright: init("\x1B[93m", "\x1B[39m"),
236674
- blueBright: init("\x1B[94m", "\x1B[39m"),
236675
- magentaBright: init("\x1B[95m", "\x1B[39m"),
236676
- cyanBright: init("\x1B[96m", "\x1B[39m"),
236677
- whiteBright: init("\x1B[97m", "\x1B[39m"),
236678
- bgBlackBright: init("\x1B[100m", "\x1B[49m"),
236679
- bgRedBright: init("\x1B[101m", "\x1B[49m"),
236680
- bgGreenBright: init("\x1B[102m", "\x1B[49m"),
236681
- bgYellowBright: init("\x1B[103m", "\x1B[49m"),
236682
- bgBlueBright: init("\x1B[104m", "\x1B[49m"),
236683
- bgMagentaBright: init("\x1B[105m", "\x1B[49m"),
236684
- bgCyanBright: init("\x1B[106m", "\x1B[49m"),
236685
- bgWhiteBright: init("\x1B[107m", "\x1B[49m")
236644
+ reset: f("\x1B[0m", "\x1B[0m"),
236645
+ bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
236646
+ dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
236647
+ italic: f("\x1B[3m", "\x1B[23m"),
236648
+ underline: f("\x1B[4m", "\x1B[24m"),
236649
+ inverse: f("\x1B[7m", "\x1B[27m"),
236650
+ hidden: f("\x1B[8m", "\x1B[28m"),
236651
+ strikethrough: f("\x1B[9m", "\x1B[29m"),
236652
+ black: f("\x1B[30m", "\x1B[39m"),
236653
+ red: f("\x1B[31m", "\x1B[39m"),
236654
+ green: f("\x1B[32m", "\x1B[39m"),
236655
+ yellow: f("\x1B[33m", "\x1B[39m"),
236656
+ blue: f("\x1B[34m", "\x1B[39m"),
236657
+ magenta: f("\x1B[35m", "\x1B[39m"),
236658
+ cyan: f("\x1B[36m", "\x1B[39m"),
236659
+ white: f("\x1B[37m", "\x1B[39m"),
236660
+ gray: f("\x1B[90m", "\x1B[39m"),
236661
+ bgBlack: f("\x1B[40m", "\x1B[49m"),
236662
+ bgRed: f("\x1B[41m", "\x1B[49m"),
236663
+ bgGreen: f("\x1B[42m", "\x1B[49m"),
236664
+ bgYellow: f("\x1B[43m", "\x1B[49m"),
236665
+ bgBlue: f("\x1B[44m", "\x1B[49m"),
236666
+ bgMagenta: f("\x1B[45m", "\x1B[49m"),
236667
+ bgCyan: f("\x1B[46m", "\x1B[49m"),
236668
+ bgWhite: f("\x1B[47m", "\x1B[49m"),
236669
+ blackBright: f("\x1B[90m", "\x1B[39m"),
236670
+ redBright: f("\x1B[91m", "\x1B[39m"),
236671
+ greenBright: f("\x1B[92m", "\x1B[39m"),
236672
+ yellowBright: f("\x1B[93m", "\x1B[39m"),
236673
+ blueBright: f("\x1B[94m", "\x1B[39m"),
236674
+ magentaBright: f("\x1B[95m", "\x1B[39m"),
236675
+ cyanBright: f("\x1B[96m", "\x1B[39m"),
236676
+ whiteBright: f("\x1B[97m", "\x1B[39m"),
236677
+ bgBlackBright: f("\x1B[100m", "\x1B[49m"),
236678
+ bgRedBright: f("\x1B[101m", "\x1B[49m"),
236679
+ bgGreenBright: f("\x1B[102m", "\x1B[49m"),
236680
+ bgYellowBright: f("\x1B[103m", "\x1B[49m"),
236681
+ bgBlueBright: f("\x1B[104m", "\x1B[49m"),
236682
+ bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
236683
+ bgCyanBright: f("\x1B[106m", "\x1B[49m"),
236684
+ bgWhiteBright: f("\x1B[107m", "\x1B[49m")
236686
236685
  };
236687
236686
  };
236688
236687
  module2.exports = createColors();
@@ -285334,7 +285333,7 @@ var state = {
285334
285333
  "title": "Botpress API",
285335
285334
  "description": "API for Botpress Cloud",
285336
285335
  "server": "https://api.botpress.cloud",
285337
- "version": "1.34.0",
285336
+ "version": "1.35.1",
285338
285337
  "prefix": "v1"
285339
285338
  },
285340
285339
  "errors": [
@@ -290736,7 +290735,7 @@ var state2 = {
290736
290735
  },
290737
290736
  "version": {
290738
290737
  "type": "string",
290739
- "description": 'Integration version. Either a semver version or tag "latest"',
290738
+ "description": 'Integration version. Either a semver version, semver version range, or the constant string "latest"',
290740
290739
  "in": "path"
290741
290740
  }
290742
290741
  },
@@ -292412,7 +292411,7 @@ var state2 = {
292412
292411
  },
292413
292412
  "version": {
292414
292413
  "type": "string",
292415
- "description": "Plugin version.",
292414
+ "description": 'Plugin version. Either a semver version, semver version range, or the constant string "latest"',
292416
292415
  "in": "path"
292417
292416
  }
292418
292417
  },
@@ -293265,7 +293264,7 @@ var state2 = {
293265
293264
  },
293266
293265
  "version": {
293267
293266
  "type": "string",
293268
- "description": "Interface version.",
293267
+ "description": 'Interface version. Either a semver version, semver version range, or the constant string "latest"',
293269
293268
  "in": "path"
293270
293269
  }
293271
293270
  },
@@ -294297,10 +294296,6 @@ var state2 = {
294297
294296
  },
294298
294297
  "description": "A mapping of plugin aliases to their configuration"
294299
294298
  },
294300
- "shouldMergePlugins": {
294301
- "type": "boolean",
294302
- "description": "If true, plugins will be merged into the bot and entity references will be resolved. If you are uncertain about this field, you should probably set it to true"
294303
- },
294304
294299
  "subscriptions": {
294305
294300
  "type": "object",
294306
294301
  "properties": {
@@ -294544,12 +294539,6 @@ var state2 = {
294544
294539
  "type": "string",
294545
294540
  "description": "Bot ID",
294546
294541
  "in": "path"
294547
- },
294548
- "shouldMergePlugins": {
294549
- "in": "query",
294550
- "type": "boolean",
294551
- "required": false,
294552
- "description": "If true, indicates that the client has support for server-side plugins. Enabling this option returns the bot without any plugins merged into it. You probably want to set this option to true, as it will soon become the default behavior."
294553
294542
  }
294554
294543
  },
294555
294544
  "response": {
@@ -300936,7 +300925,7 @@ var state2 = {
300936
300925
  },
300937
300926
  "version": {
300938
300927
  "type": "string",
300939
- "description": 'Integration version. Either a semver version or tag "latest"',
300928
+ "description": 'Integration version. Either a semver version, semver version range, or the constant string "latest"',
300940
300929
  "in": "path"
300941
300930
  }
300942
300931
  },
@@ -301311,14 +301300,14 @@ var state2 = {
301311
301300
  "path": "/v1/admin/interfaces/{name}/{version}",
301312
301301
  "parameters": {
301313
301302
  "name": {
301314
- "in": "path",
301315
301303
  "type": "string",
301316
- "description": "Interface name"
301304
+ "description": "Interface Name",
301305
+ "in": "path"
301317
301306
  },
301318
301307
  "version": {
301319
- "in": "path",
301320
301308
  "type": "string",
301321
- "description": "Interface version"
301309
+ "description": 'Interface version. Either a semver version, semver version range, or the constant string "latest"',
301310
+ "in": "path"
301322
301311
  }
301323
301312
  },
301324
301313
  "section": "interface",
@@ -302169,14 +302158,14 @@ var state2 = {
302169
302158
  "path": "/v1/admin/plugins/{name}/{version}",
302170
302159
  "parameters": {
302171
302160
  "name": {
302172
- "in": "path",
302173
302161
  "type": "string",
302174
- "description": "Plugin name"
302162
+ "description": "Plugin Name",
302163
+ "in": "path"
302175
302164
  },
302176
302165
  "version": {
302177
- "in": "path",
302178
302166
  "type": "string",
302179
- "description": "Plugin version"
302167
+ "description": 'Plugin version. Either a semver version, semver version range, or the constant string "latest"',
302168
+ "in": "path"
302180
302169
  }
302181
302170
  },
302182
302171
  "section": "plugin",
@@ -303248,7 +303237,7 @@ var state2 = {
303248
303237
  "title": "Botpress API",
303249
303238
  "description": "API for Botpress Cloud",
303250
303239
  "server": "https://api.botpress.cloud",
303251
- "version": "1.34.0",
303240
+ "version": "1.35.1",
303252
303241
  "prefix": "v1"
303253
303242
  },
303254
303243
  "errors": [
@@ -309121,7 +309110,7 @@ var state3 = {
309121
309110
  "title": "Botpress API",
309122
309111
  "description": "API for Botpress Cloud",
309123
309112
  "server": "https://api.botpress.cloud",
309124
- "version": "1.34.0",
309113
+ "version": "1.35.1",
309125
309114
  "prefix": "v1"
309126
309115
  },
309127
309116
  "errors": [
@@ -314205,7 +314194,7 @@ var state4 = {
314205
314194
  "title": "Botpress API",
314206
314195
  "description": "API for Botpress Cloud",
314207
314196
  "server": "https://api.botpress.cloud",
314208
- "version": "1.34.0",
314197
+ "version": "1.35.1",
314209
314198
  "prefix": "v1"
314210
314199
  },
314211
314200
  "errors": [
@@ -322131,7 +322120,7 @@ var state5 = {
322131
322120
  },
322132
322121
  "version": {
322133
322122
  "type": "string",
322134
- "description": 'Integration version. Either a semver version or tag "latest"',
322123
+ "description": 'Integration version. Either a semver version, semver version range, or the constant string "latest"',
322135
322124
  "in": "path"
322136
322125
  }
322137
322126
  },
@@ -323807,7 +323796,7 @@ var state5 = {
323807
323796
  },
323808
323797
  "version": {
323809
323798
  "type": "string",
323810
- "description": "Plugin version.",
323799
+ "description": 'Plugin version. Either a semver version, semver version range, or the constant string "latest"',
323811
323800
  "in": "path"
323812
323801
  }
323813
323802
  },
@@ -324660,7 +324649,7 @@ var state5 = {
324660
324649
  },
324661
324650
  "version": {
324662
324651
  "type": "string",
324663
- "description": "Interface version.",
324652
+ "description": 'Interface version. Either a semver version, semver version range, or the constant string "latest"',
324664
324653
  "in": "path"
324665
324654
  }
324666
324655
  },
@@ -325692,10 +325681,6 @@ var state5 = {
325692
325681
  },
325693
325682
  "description": "A mapping of plugin aliases to their configuration"
325694
325683
  },
325695
- "shouldMergePlugins": {
325696
- "type": "boolean",
325697
- "description": "If true, plugins will be merged into the bot and entity references will be resolved. If you are uncertain about this field, you should probably set it to true"
325698
- },
325699
325684
  "subscriptions": {
325700
325685
  "type": "object",
325701
325686
  "properties": {
@@ -325939,12 +325924,6 @@ var state5 = {
325939
325924
  "type": "string",
325940
325925
  "description": "Bot ID",
325941
325926
  "in": "path"
325942
- },
325943
- "shouldMergePlugins": {
325944
- "in": "query",
325945
- "type": "boolean",
325946
- "required": false,
325947
- "description": "If true, indicates that the client has support for server-side plugins. Enabling this option returns the bot without any plugins merged into it. You probably want to set this option to true, as it will soon become the default behavior."
325948
325927
  }
325949
325928
  },
325950
325929
  "response": {
@@ -332332,7 +332311,7 @@ var state5 = {
332332
332311
  },
332333
332312
  "version": {
332334
332313
  "type": "string",
332335
- "description": 'Integration version. Either a semver version or tag "latest"',
332314
+ "description": 'Integration version. Either a semver version, semver version range, or the constant string "latest"',
332336
332315
  "in": "path"
332337
332316
  }
332338
332317
  },
@@ -332707,14 +332686,14 @@ var state5 = {
332707
332686
  "path": "/v1/admin/interfaces/{name}/{version}",
332708
332687
  "parameters": {
332709
332688
  "name": {
332710
- "in": "path",
332711
332689
  "type": "string",
332712
- "description": "Interface name"
332690
+ "description": "Interface Name",
332691
+ "in": "path"
332713
332692
  },
332714
332693
  "version": {
332715
- "in": "path",
332716
332694
  "type": "string",
332717
- "description": "Interface version"
332695
+ "description": 'Interface version. Either a semver version, semver version range, or the constant string "latest"',
332696
+ "in": "path"
332718
332697
  }
332719
332698
  },
332720
332699
  "section": "interface",
@@ -333565,14 +333544,14 @@ var state5 = {
333565
333544
  "path": "/v1/admin/plugins/{name}/{version}",
333566
333545
  "parameters": {
333567
333546
  "name": {
333568
- "in": "path",
333569
333547
  "type": "string",
333570
- "description": "Plugin name"
333548
+ "description": "Plugin Name",
333549
+ "in": "path"
333571
333550
  },
333572
333551
  "version": {
333573
- "in": "path",
333574
333552
  "type": "string",
333575
- "description": "Plugin version"
333553
+ "description": 'Plugin version. Either a semver version, semver version range, or the constant string "latest"',
333554
+ "in": "path"
333576
333555
  }
333577
333556
  },
333578
333557
  "section": "plugin",
@@ -337626,7 +337605,7 @@ var state5 = {
337626
337605
  "title": "Botpress API",
337627
337606
  "description": "API for Botpress Cloud",
337628
337607
  "server": "https://api.botpress.cloud",
337629
- "version": "1.34.0",
337608
+ "version": "1.35.1",
337630
337609
  "prefix": "v1"
337631
337610
  },
337632
337611
  "errors": [
@@ -4386,10 +4386,6 @@ export declare const state: {
4386
4386
  };
4387
4387
  description: string;
4388
4388
  };
4389
- shouldMergePlugins: {
4390
- type: "boolean";
4391
- description: string;
4392
- };
4393
4389
  subscriptions: {
4394
4390
  type: "object";
4395
4391
  properties: {
@@ -4610,12 +4606,6 @@ export declare const state: {
4610
4606
  description: string;
4611
4607
  in: "path";
4612
4608
  };
4613
- shouldMergePlugins: {
4614
- in: "query";
4615
- type: "boolean";
4616
- required: false;
4617
- description: string;
4618
- };
4619
4609
  };
4620
4610
  response: {
4621
4611
  description: string;
@@ -10581,14 +10571,14 @@ export declare const state: {
10581
10571
  path: string;
10582
10572
  parameters: {
10583
10573
  name: {
10584
- in: "path";
10585
10574
  type: "string";
10586
10575
  description: string;
10576
+ in: "path";
10587
10577
  };
10588
10578
  version: {
10589
- in: "path";
10590
10579
  type: "string";
10591
10580
  description: string;
10581
+ in: "path";
10592
10582
  };
10593
10583
  };
10594
10584
  section: "interface";
@@ -11365,14 +11355,14 @@ export declare const state: {
11365
11355
  path: string;
11366
11356
  parameters: {
11367
11357
  name: {
11368
- in: "path";
11369
11358
  type: "string";
11370
11359
  description: string;
11360
+ in: "path";
11371
11361
  };
11372
11362
  version: {
11373
- in: "path";
11374
11363
  type: "string";
11375
11364
  description: string;
11365
+ in: "path";
11376
11366
  };
11377
11367
  };
11378
11368
  section: "plugin";
@@ -6741,10 +6741,6 @@ export declare const state: {
6741
6741
  };
6742
6742
  description: string;
6743
6743
  };
6744
- shouldMergePlugins: {
6745
- type: "boolean";
6746
- description: string;
6747
- };
6748
6744
  subscriptions: {
6749
6745
  type: "object";
6750
6746
  properties: {
@@ -6965,12 +6961,6 @@ export declare const state: {
6965
6961
  description: string;
6966
6962
  in: "path";
6967
6963
  };
6968
- shouldMergePlugins: {
6969
- in: "query";
6970
- type: "boolean";
6971
- required: false;
6972
- description: string;
6973
- };
6974
6964
  };
6975
6965
  response: {
6976
6966
  description: string;
@@ -12937,14 +12927,14 @@ export declare const state: {
12937
12927
  path: string;
12938
12928
  parameters: {
12939
12929
  name: {
12940
- in: "path";
12941
12930
  type: "string";
12942
12931
  description: string;
12932
+ in: "path";
12943
12933
  };
12944
12934
  version: {
12945
- in: "path";
12946
12935
  type: "string";
12947
12936
  description: string;
12937
+ in: "path";
12948
12938
  };
12949
12939
  };
12950
12940
  section: "interface";
@@ -13721,14 +13711,14 @@ export declare const state: {
13721
13711
  path: string;
13722
13712
  parameters: {
13723
13713
  name: {
13724
- in: "path";
13725
13714
  type: "string";
13726
13715
  description: string;
13716
+ in: "path";
13727
13717
  };
13728
13718
  version: {
13729
- in: "path";
13730
13719
  type: "string";
13731
13720
  description: string;
13721
+ in: "path";
13732
13722
  };
13733
13723
  };
13734
13724
  section: "plugin";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "1.34.0",
3
+ "version": "1.35.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {