@botpress/api 1.52.0 → 1.53.0

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
@@ -268286,7 +268286,7 @@ __export(src_exports, {
268286
268286
  });
268287
268287
  module.exports = __toCommonJS(src_exports);
268288
268288
 
268289
- // ../../node_modules/.pnpm/@bpinternal+opapi@0.18.0_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
268289
+ // ../../node_modules/.pnpm/@bpinternal+opapi@1.0.0_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
268290
268290
  var import_zod_openapi = __toESM(require_src(), 1);
268291
268291
  var import_zod_openapi2 = __toESM(require_src(), 1);
268292
268292
  var import_path = __toESM(require("path"), 1);
@@ -268332,7 +268332,7 @@ var title = (str2) => {
268332
268332
  return str2.split(/(?=[A-Z])|[\.\-\s_]/).map((s2) => s2.trim()).filter((s2) => !!s2).map((s2) => capitalize(s2.toLowerCase())).join(" ");
268333
268333
  };
268334
268334
 
268335
- // ../../node_modules/.pnpm/@bpinternal+opapi@0.18.0_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
268335
+ // ../../node_modules/.pnpm/@bpinternal+opapi@1.0.0_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
268336
268336
  var import_decompress = __toESM(require_decompress(), 1);
268337
268337
  var import_fs3 = __toESM(require("fs"), 1);
268338
268338
  var import_promises = __toESM(require("fs/promises"), 1);
@@ -271568,7 +271568,7 @@ var {
271568
271568
  mergeConfig: mergeConfig2
271569
271569
  } = axios_default;
271570
271570
 
271571
- // ../../node_modules/.pnpm/@bpinternal+opapi@0.18.0_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
271571
+ // ../../node_modules/.pnpm/@bpinternal+opapi@1.0.0_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
271572
271572
  var import_json_schema_to_typescript = __toESM(require_src3(), 1);
271573
271573
  var import_fs4 = __toESM(require("fs"), 1);
271574
271574
  var import_path3 = __toESM(require("path"), 1);
@@ -275904,7 +275904,7 @@ async function openapiTS(schema3, options = {}) {
275904
275904
  }
275905
275905
  var dist_default = openapiTS;
275906
275906
 
275907
- // ../../node_modules/.pnpm/@bpinternal+opapi@0.18.0_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
275907
+ // ../../node_modules/.pnpm/@bpinternal+opapi@1.0.0_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
275908
275908
  var import_openapi3_ts = __toESM(require_dist3(), 1);
275909
275909
  var import_verror2 = __toESM(require_verror(), 1);
275910
275910
  var import_verror3 = __toESM(require_verror(), 1);
@@ -279878,11 +279878,9 @@ var z = /* @__PURE__ */ Object.freeze({
279878
279878
  ZodError
279879
279879
  });
279880
279880
 
279881
- // ../../node_modules/.pnpm/@bpinternal+opapi@0.18.0_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
279881
+ // ../../node_modules/.pnpm/@bpinternal+opapi@1.0.0_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
279882
279882
  var import_openapi_parser = __toESM(require_lib8(), 1);
279883
279883
  var import_json_schema_to_typescript2 = __toESM(require_src3(), 1);
279884
- var import_zod_openapi4 = __toESM(require_src(), 1);
279885
- var import_verror4 = __toESM(require_verror(), 1);
279886
279884
  var import_path4 = __toESM(require("path"), 1);
279887
279885
  var import_fs5 = __toESM(require("fs"), 1);
279888
279886
  var import_fs6 = __toESM(require("fs"), 1);
@@ -279898,6 +279896,8 @@ var import_path6 = __toESM(require("path"), 1);
279898
279896
  var import_promises4 = __toESM(require("fs/promises"), 1);
279899
279897
  var import_json_schema_to_zod = __toESM(require_json_schema_to_zod(), 1);
279900
279898
  var import_promises5 = __toESM(require("fs/promises"), 1);
279899
+ var import_zod_openapi4 = __toESM(require_src(), 1);
279900
+ var import_verror4 = __toESM(require_verror(), 1);
279901
279901
  var __defProp2 = Object.defineProperty;
279902
279902
  var __export2 = (target, all3) => {
279903
279903
  for (var name in all3)
@@ -281811,111 +281811,6 @@ function mapOperationPropsToHandlerProps(operationName, operation) {
281811
281811
  }
281812
281812
  return generateHandlerProps;
281813
281813
  }
281814
- var addOperation = (state6, operationProps) => {
281815
- var _a, _b, _c;
281816
- const { name } = operationProps;
281817
- const responseName = formatResponseName(name);
281818
- const bodyName = formatBodyName(name);
281819
- const parameters = createParameters(
281820
- operationProps.parameters ? objects.mapValues(operationProps.parameters, mapParameter) : void 0,
281821
- state6.defaultParameters,
281822
- operationProps.disableDefaultParameters
281823
- );
281824
- if (operationProps.path[0] !== "/") {
281825
- throw new import_verror4.VError(`Invalid path ${operationProps.path}. It must start with a /`);
281826
- }
281827
- const path2 = state6.metadata.prefix ? `/${state6.metadata.prefix}${operationProps.path}` : operationProps.path;
281828
- if (!isAlphanumeric(name)) {
281829
- throw new import_verror4.VError(`Invalid operation name ${name}. It must be alphanumeric and start with a letter`);
281830
- }
281831
- if (state6.operations[name]) {
281832
- throw new import_verror4.VError(`Operation ${name} already exists`);
281833
- }
281834
- state6.refs.responses[formatResponseName(name)] = true;
281835
- const response = {
281836
- description: operationProps.response.description,
281837
- status: operationProps.response.status,
281838
- schema: generateSchemaFromZod(
281839
- (0, import_zod_openapi4.extendApi)(operationProps.response.schema, { title: responseName, format: operationProps.response.format }),
281840
- state6.options
281841
- )
281842
- };
281843
- let operation;
281844
- if (isOperationWithBodyProps(operationProps)) {
281845
- state6.refs.requestBodies[formatBodyName(name)] = true;
281846
- operation = {
281847
- ...operationProps,
281848
- parameters,
281849
- path: path2,
281850
- response,
281851
- requestBody: {
281852
- description: operationProps.requestBody.description,
281853
- schema: generateSchemaFromZod(
281854
- (0, import_zod_openapi4.extendApi)(operationProps.requestBody.schema, { title: bodyName, format: (_a = operationProps.requestBody) == null ? void 0 : _a.format }),
281855
- state6.options
281856
- )
281857
- }
281858
- };
281859
- } else {
281860
- operation = {
281861
- ...operationProps,
281862
- method: operationProps.method,
281863
- parameters,
281864
- path: path2,
281865
- response
281866
- };
281867
- }
281868
- validateParametersInPath(path2, parameters);
281869
- state6.operations[name] = operation;
281870
- (_c = (_b = state6.sections.find((section) => section.name === operationProps.section)) == null ? void 0 : _b.operations) == null ? void 0 : _c.push(name);
281871
- };
281872
- function createParameters(parameters = {}, defaultParameters = {}, disableDefaultParameters = {}) {
281873
- const params = parameters;
281874
- Object.entries(defaultParameters).forEach(([name, parameter]) => {
281875
- const isDefaultParameterEnabled = disableDefaultParameters[name] !== true;
281876
- if (isDefaultParameterEnabled) {
281877
- params[name] = parameter;
281878
- }
281879
- });
281880
- return params;
281881
- }
281882
- function validateParametersInPath(path2, parameters) {
281883
- const parametersMapInPath = getParameterFromPath(path2).reduce(
281884
- (value, current) => {
281885
- value[current] = false;
281886
- return value;
281887
- },
281888
- {}
281889
- );
281890
- if (parameters) {
281891
- Object.entries(parameters).map(([parameterName, parameter]) => {
281892
- if (parameter.in === "path") {
281893
- if (parametersMapInPath[parameterName] === void 0) {
281894
- throw new import_verror4.VError(`Parameter ${parameterName} is not in path ${path2}`);
281895
- }
281896
- parametersMapInPath[parameterName] = true;
281897
- }
281898
- });
281899
- }
281900
- Object.entries(parametersMapInPath).forEach(([parameterName, isPresent]) => {
281901
- if (!isPresent) {
281902
- throw new import_verror4.VError(`Parameter ${parameterName} is not present in path ${path2}`);
281903
- }
281904
- });
281905
- }
281906
- function getParameterFromPath(path2) {
281907
- const parameters = [];
281908
- const regex = /{([^}]+)}/g;
281909
- let match;
281910
- while ((match = regex.exec(path2)) !== null) {
281911
- if (match[1]) {
281912
- parameters.push(match[1]);
281913
- } else {
281914
- throw new import_verror4.VError(`Invalid path parameter ${path2}`);
281915
- }
281916
- }
281917
- return parameters;
281918
- }
281919
281814
  var DEFAULT_IMPORT_PATH = "@bpinternal/opapi";
281920
281815
  var exportStateAsTypescript = (state6, dir, opts = {}) => {
281921
281816
  import_fs5.default.mkdirSync(dir, { recursive: true });
@@ -282470,55 +282365,165 @@ var applyExportOptions = (state6, options) => {
282470
282365
  }
282471
282366
  return state6;
282472
282367
  };
282368
+ var addOperation = (state6, operationProps) => {
282369
+ var _a, _b, _c;
282370
+ const { name } = operationProps;
282371
+ const responseName = formatResponseName(name);
282372
+ const bodyName = formatBodyName(name);
282373
+ const parameters = createParameters(
282374
+ operationProps.parameters ? objects.mapValues(operationProps.parameters, mapParameter) : void 0,
282375
+ state6.defaultParameters,
282376
+ operationProps.disableDefaultParameters
282377
+ );
282378
+ if (operationProps.path[0] !== "/") {
282379
+ throw new import_verror4.VError(`Invalid path ${operationProps.path}. It must start with a /`);
282380
+ }
282381
+ const path2 = state6.metadata.prefix ? `/${state6.metadata.prefix}${operationProps.path}` : operationProps.path;
282382
+ if (!isAlphanumeric(name)) {
282383
+ throw new import_verror4.VError(`Invalid operation name ${name}. It must be alphanumeric and start with a letter`);
282384
+ }
282385
+ if (state6.operations[name]) {
282386
+ throw new import_verror4.VError(`Operation ${name} already exists`);
282387
+ }
282388
+ state6.refs.responses[formatResponseName(name)] = true;
282389
+ const response = {
282390
+ description: operationProps.response.description,
282391
+ status: operationProps.response.status,
282392
+ schema: generateSchemaFromZod(
282393
+ (0, import_zod_openapi4.extendApi)(operationProps.response.schema, { title: responseName, format: operationProps.response.format }),
282394
+ state6.options
282395
+ )
282396
+ };
282397
+ let operation;
282398
+ if (isOperationWithBodyProps(operationProps)) {
282399
+ state6.refs.requestBodies[formatBodyName(name)] = true;
282400
+ operation = {
282401
+ ...operationProps,
282402
+ parameters,
282403
+ path: path2,
282404
+ response,
282405
+ requestBody: {
282406
+ description: operationProps.requestBody.description,
282407
+ schema: generateSchemaFromZod(
282408
+ (0, import_zod_openapi4.extendApi)(operationProps.requestBody.schema, { title: bodyName, format: (_a = operationProps.requestBody) == null ? void 0 : _a.format }),
282409
+ state6.options
282410
+ )
282411
+ }
282412
+ };
282413
+ } else {
282414
+ operation = {
282415
+ ...operationProps,
282416
+ method: operationProps.method,
282417
+ parameters,
282418
+ path: path2,
282419
+ response
282420
+ };
282421
+ }
282422
+ validateParametersInPath(path2, parameters);
282423
+ state6.operations[name] = operation;
282424
+ (_c = (_b = state6.sections.find((section) => section.name === operationProps.section)) == null ? void 0 : _b.operations) == null ? void 0 : _c.push(name);
282425
+ };
282426
+ function createParameters(parameters = {}, defaultParameters = {}, disableDefaultParameters = {}) {
282427
+ const params = parameters;
282428
+ Object.entries(defaultParameters).forEach(([name, parameter]) => {
282429
+ const isDefaultParameterEnabled = disableDefaultParameters[name] !== true;
282430
+ if (isDefaultParameterEnabled) {
282431
+ params[name] = parameter;
282432
+ }
282433
+ });
282434
+ return params;
282435
+ }
282436
+ function validateParametersInPath(path2, parameters) {
282437
+ const parametersMapInPath = getParameterFromPath(path2).reduce(
282438
+ (value, current) => {
282439
+ value[current] = false;
282440
+ return value;
282441
+ },
282442
+ {}
282443
+ );
282444
+ if (parameters) {
282445
+ Object.entries(parameters).map(([parameterName, parameter]) => {
282446
+ if (parameter.in === "path") {
282447
+ if (parametersMapInPath[parameterName] === void 0) {
282448
+ throw new import_verror4.VError(`Parameter ${parameterName} is not in path ${path2}`);
282449
+ }
282450
+ parametersMapInPath[parameterName] = true;
282451
+ }
282452
+ });
282453
+ }
282454
+ Object.entries(parametersMapInPath).forEach(([parameterName, isPresent]) => {
282455
+ if (!isPresent) {
282456
+ throw new import_verror4.VError(`Parameter ${parameterName} is not present in path ${path2}`);
282457
+ }
282458
+ });
282459
+ }
282460
+ function getParameterFromPath(path2) {
282461
+ const parameters = [];
282462
+ const regex = /{([^}]+)}/g;
282463
+ let match;
282464
+ while ((match = regex.exec(path2)) !== null) {
282465
+ if (match[1]) {
282466
+ parameters.push(match[1]);
282467
+ } else {
282468
+ throw new import_verror4.VError(`Invalid path parameter ${path2}`);
282469
+ }
282470
+ }
282471
+ return parameters;
282472
+ }
282473
282473
  var schema2 = (schema22, schemaObject) => {
282474
282474
  const This = schema22.constructor;
282475
282475
  const copy = new This(schema22._def);
282476
282476
  return (0, import_zod_openapi2.extendApi)(copy, schemaObject);
282477
282477
  };
282478
- function exportClient(state6) {
282479
- function _exportClient(dir = ".", propsOrEndpoint, postProcessorsAndStateOpts) {
282480
- let options;
282481
- if (typeof propsOrEndpoint === "string") {
282482
- options = {
282483
- generator: "openapi-generator",
282484
- endpoint: propsOrEndpoint,
282485
- postProcessors: postProcessorsAndStateOpts
282486
- };
282487
- } else {
282488
- options = propsOrEndpoint;
282489
- }
282490
- state6 = applyExportOptions(state6, postProcessorsAndStateOpts);
282478
+ var OpenApi = class _OpenApi {
282479
+ _state;
282480
+ constructor(props, options = {}) {
282481
+ this._state = createState(props, options);
282482
+ }
282483
+ static fromState(state6) {
282484
+ const openapi = new _OpenApi({ metadata: state6.metadata });
282485
+ openapi._state = state6;
282486
+ return openapi;
282487
+ }
282488
+ getModelRef(name) {
282489
+ return getRef(this._state, "schemas", name);
282490
+ }
282491
+ addOperation(operation) {
282492
+ addOperation(this._state, operation);
282493
+ }
282494
+ exportClient(dir, options) {
282491
282495
  if (options.generator === "openapi-generator") {
282492
- return generateClientWithOpenapiGenerator(state6, dir, options.endpoint, options.postProcessors);
282496
+ return generateClientWithOpenapiGenerator(
282497
+ applyExportOptions(this._state, options),
282498
+ dir,
282499
+ options.endpoint,
282500
+ options.postProcessors
282501
+ );
282493
282502
  }
282494
282503
  if (options.generator === "opapi") {
282495
- return generateClientWithOpapi(state6, dir);
282504
+ return generateClientWithOpapi(applyExportOptions(this._state, options), dir);
282496
282505
  }
282497
282506
  throw new Error("Unknown generator");
282498
282507
  }
282499
- return _exportClient;
282500
- }
282501
- var createOpapiFromState = (state6) => {
282502
- return {
282503
- getModelRef: (name) => getRef(state6, "schemas", name),
282504
- getState: () => state6,
282505
- addOperation: (operationProps) => addOperation(state6, operationProps),
282506
- exportClient: exportClient(state6),
282507
- exportTypesBySection: (dir = ".", opts) => generateTypesBySection(applyExportOptions(state6, opts), dir),
282508
- exportServer: (dir = ".", useExpressTypes, opts) => generateServer(applyExportOptions(state6, opts), dir, useExpressTypes),
282509
- exportOpenapi: (dir = ".", opts) => generateOpenapi(applyExportOptions(state6, opts), dir),
282510
- exportState: (dir = ".", opts) => exportStateAsTypescript(applyExportOptions(state6, opts), dir, opts),
282511
- exportErrors: (dir = ".") => generateErrorsFile(state6.errors ?? [], dir),
282512
- exportHandler: (dir = ".", opts) => generateHandler2(applyExportOptions(state6, opts), dir)
282513
- };
282508
+ exportTypesBySection(dir = ".", options) {
282509
+ return generateTypesBySection(applyExportOptions(this._state, options), dir);
282510
+ }
282511
+ exportServer(dir = ".", useExpressTypes, options) {
282512
+ return generateServer(applyExportOptions(this._state, options), dir, useExpressTypes);
282513
+ }
282514
+ exportOpenapi(dir = ".", options) {
282515
+ return generateOpenapi(applyExportOptions(this._state, options), dir);
282516
+ }
282517
+ exportState(dir = ".", options) {
282518
+ return exportStateAsTypescript(applyExportOptions(this._state, options), dir, options);
282519
+ }
282520
+ exportErrors(dir = ".") {
282521
+ return generateErrorsFile(this._state.errors ?? [], dir);
282522
+ }
282523
+ exportHandler(dir = ".", options) {
282524
+ return generateHandler2(applyExportOptions(this._state, options), dir);
282525
+ }
282514
282526
  };
282515
- function OpenApi(props, opts = {}) {
282516
- const state6 = createState(props, opts);
282517
- return createOpapiFromState(state6);
282518
- }
282519
- ((OpenApi2) => {
282520
- OpenApi2.fromState = (state6) => createOpapiFromState(state6);
282521
- })(OpenApi || (OpenApi = {}));
282522
282527
 
282523
282528
  // src/gen/runtime/state.ts
282524
282529
  var state_exports = {};
@@ -286130,7 +286135,7 @@ var state = {
286130
286135
  "title": "Botpress Runtime API",
286131
286136
  "description": "API for Botpress Runtime",
286132
286137
  "server": "https://api.botpress.cloud",
286133
- "version": "1.52.0",
286138
+ "version": "1.53.0",
286134
286139
  "prefix": "v1"
286135
286140
  },
286136
286141
  "defaultParameters": {
@@ -289431,7 +289436,17 @@ var state2 = {
289431
289436
  },
289432
289437
  "public": {
289433
289438
  "type": "boolean",
289434
- "description": "Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version."
289439
+ "description": '[DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.',
289440
+ "deprecated": true
289441
+ },
289442
+ "visibility": {
289443
+ "type": "string",
289444
+ "enum": [
289445
+ "public",
289446
+ "private",
289447
+ "unlisted"
289448
+ ],
289449
+ "description": "The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them."
289435
289450
  }
289436
289451
  },
289437
289452
  "required": [
@@ -289444,7 +289459,8 @@ var state2 = {
289444
289459
  "description",
289445
289460
  "iconUrl",
289446
289461
  "readmeUrl",
289447
- "public"
289462
+ "public",
289463
+ "visibility"
289448
289464
  ]
289449
289465
  }
289450
289466
  },
@@ -289834,7 +289850,17 @@ var state2 = {
289834
289850
  },
289835
289851
  "public": {
289836
289852
  "type": "boolean",
289837
- "description": "Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version."
289853
+ "description": '[DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.',
289854
+ "deprecated": true
289855
+ },
289856
+ "visibility": {
289857
+ "type": "string",
289858
+ "enum": [
289859
+ "public",
289860
+ "private",
289861
+ "unlisted"
289862
+ ],
289863
+ "description": "The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them."
289838
289864
  }
289839
289865
  },
289840
289866
  "required": [
@@ -289854,7 +289880,8 @@ var state2 = {
289854
289880
  "description",
289855
289881
  "iconUrl",
289856
289882
  "readmeUrl",
289857
- "public"
289883
+ "public",
289884
+ "visibility"
289858
289885
  ],
289859
289886
  "additionalProperties": false
289860
289887
  }
@@ -290247,7 +290274,17 @@ var state2 = {
290247
290274
  },
290248
290275
  "public": {
290249
290276
  "type": "boolean",
290250
- "description": "Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version."
290277
+ "description": '[DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.',
290278
+ "deprecated": true
290279
+ },
290280
+ "visibility": {
290281
+ "type": "string",
290282
+ "enum": [
290283
+ "public",
290284
+ "private",
290285
+ "unlisted"
290286
+ ],
290287
+ "description": "The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them."
290251
290288
  }
290252
290289
  },
290253
290290
  "required": [
@@ -290267,7 +290304,8 @@ var state2 = {
290267
290304
  "description",
290268
290305
  "iconUrl",
290269
290306
  "readmeUrl",
290270
- "public"
290307
+ "public",
290308
+ "visibility"
290271
290309
  ],
290272
290310
  "additionalProperties": false
290273
290311
  }
@@ -290651,7 +290689,17 @@ var state2 = {
290651
290689
  },
290652
290690
  "public": {
290653
290691
  "type": "boolean",
290654
- "description": "Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version."
290692
+ "description": '[DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.',
290693
+ "deprecated": true
290694
+ },
290695
+ "visibility": {
290696
+ "type": "string",
290697
+ "enum": [
290698
+ "public",
290699
+ "private",
290700
+ "unlisted"
290701
+ ],
290702
+ "description": "The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them."
290655
290703
  }
290656
290704
  },
290657
290705
  "required": [
@@ -290671,7 +290719,8 @@ var state2 = {
290671
290719
  "description",
290672
290720
  "iconUrl",
290673
290721
  "readmeUrl",
290674
- "public"
290722
+ "public",
290723
+ "visibility"
290675
290724
  ],
290676
290725
  "additionalProperties": false
290677
290726
  }
@@ -300893,7 +300942,17 @@ var state2 = {
300893
300942
  },
300894
300943
  "public": {
300895
300944
  "type": "boolean",
300896
- "description": "Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version."
300945
+ "description": '[DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.',
300946
+ "deprecated": true
300947
+ },
300948
+ "visibility": {
300949
+ "type": "string",
300950
+ "enum": [
300951
+ "public",
300952
+ "private",
300953
+ "unlisted"
300954
+ ],
300955
+ "description": "The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them."
300897
300956
  },
300898
300957
  "dependencies": {
300899
300958
  "type": "object",
@@ -301412,7 +301471,17 @@ var state2 = {
301412
301471
  },
301413
301472
  "public": {
301414
301473
  "type": "boolean",
301415
- "description": "Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version."
301474
+ "description": '[DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.',
301475
+ "deprecated": true
301476
+ },
301477
+ "visibility": {
301478
+ "type": "string",
301479
+ "enum": [
301480
+ "public",
301481
+ "private",
301482
+ "unlisted"
301483
+ ],
301484
+ "description": "The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them."
301416
301485
  },
301417
301486
  "dependencies": {
301418
301487
  "type": "object",
@@ -301615,7 +301684,17 @@ var state2 = {
301615
301684
  },
301616
301685
  "public": {
301617
301686
  "type": "boolean",
301618
- "description": "Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version."
301687
+ "description": '[DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.',
301688
+ "deprecated": true
301689
+ },
301690
+ "visibility": {
301691
+ "type": "string",
301692
+ "enum": [
301693
+ "public",
301694
+ "private",
301695
+ "unlisted"
301696
+ ],
301697
+ "description": "The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them."
301619
301698
  }
301620
301699
  },
301621
301700
  "required": [
@@ -301628,7 +301707,8 @@ var state2 = {
301628
301707
  "description",
301629
301708
  "iconUrl",
301630
301709
  "readmeUrl",
301631
- "public"
301710
+ "public",
301711
+ "visibility"
301632
301712
  ]
301633
301713
  }
301634
301714
  },
@@ -302311,7 +302391,7 @@ var state2 = {
302311
302391
  "title": "Botpress Admin API",
302312
302392
  "description": "API for Botpress Cloud Manager",
302313
302393
  "server": "https://api.botpress.cloud",
302314
- "version": "1.52.0",
302394
+ "version": "1.53.0",
302315
302395
  "prefix": "v1"
302316
302396
  },
302317
302397
  "defaultParameters": {
@@ -302903,7 +302983,17 @@ var state2 = {
302903
302983
  },
302904
302984
  "public": {
302905
302985
  "type": "boolean",
302906
- "description": "Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version."
302986
+ "description": '[DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.',
302987
+ "deprecated": true
302988
+ },
302989
+ "visibility": {
302990
+ "type": "string",
302991
+ "enum": [
302992
+ "public",
302993
+ "private",
302994
+ "unlisted"
302995
+ ],
302996
+ "description": "The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them."
302907
302997
  }
302908
302998
  },
302909
302999
  "required": [
@@ -302918,7 +303008,8 @@ var state2 = {
302918
303008
  "description",
302919
303009
  "iconUrl",
302920
303010
  "readmeUrl",
302921
- "public"
303011
+ "public",
303012
+ "visibility"
302922
303013
  ],
302923
303014
  "additionalProperties": false
302924
303015
  },
@@ -304617,7 +304708,17 @@ var state2 = {
304617
304708
  },
304618
304709
  "public": {
304619
304710
  "type": "boolean",
304620
- "description": "Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version."
304711
+ "description": '[DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.',
304712
+ "deprecated": true
304713
+ },
304714
+ "visibility": {
304715
+ "type": "string",
304716
+ "enum": [
304717
+ "public",
304718
+ "private",
304719
+ "unlisted"
304720
+ ],
304721
+ "description": "The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them."
304621
304722
  }
304622
304723
  },
304623
304724
  "required": [
@@ -304637,7 +304738,8 @@ var state2 = {
304637
304738
  "description",
304638
304739
  "iconUrl",
304639
304740
  "readmeUrl",
304640
- "public"
304741
+ "public",
304742
+ "visibility"
304641
304743
  ],
304642
304744
  "additionalProperties": false
304643
304745
  }
@@ -307716,7 +307818,7 @@ var state3 = {
307716
307818
  "title": "Botpress Files API",
307717
307819
  "description": "API for Botpress Files",
307718
307820
  "server": "https://api.botpress.cloud",
307719
- "version": "1.52.0",
307821
+ "version": "1.53.0",
307720
307822
  "prefix": "v1"
307721
307823
  },
307722
307824
  "defaultParameters": {
@@ -309974,7 +310076,7 @@ var state4 = {
309974
310076
  "title": "Botpress Tables API",
309975
310077
  "description": "API for Botpress Tables",
309976
310078
  "server": "https://api.botpress.cloud",
309977
- "version": "1.52.0",
310079
+ "version": "1.53.0",
309978
310080
  "prefix": "v1"
309979
310081
  },
309980
310082
  "defaultParameters": {
@@ -315690,7 +315792,17 @@ var state5 = {
315690
315792
  },
315691
315793
  "public": {
315692
315794
  "type": "boolean",
315693
- "description": "Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version."
315795
+ "description": '[DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.',
315796
+ "deprecated": true
315797
+ },
315798
+ "visibility": {
315799
+ "type": "string",
315800
+ "enum": [
315801
+ "public",
315802
+ "private",
315803
+ "unlisted"
315804
+ ],
315805
+ "description": "The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them."
315694
315806
  }
315695
315807
  },
315696
315808
  "required": [
@@ -315703,7 +315815,8 @@ var state5 = {
315703
315815
  "description",
315704
315816
  "iconUrl",
315705
315817
  "readmeUrl",
315706
- "public"
315818
+ "public",
315819
+ "visibility"
315707
315820
  ]
315708
315821
  }
315709
315822
  },
@@ -316087,7 +316200,17 @@ var state5 = {
316087
316200
  },
316088
316201
  "public": {
316089
316202
  "type": "boolean",
316090
- "description": "Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version."
316203
+ "description": '[DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.',
316204
+ "deprecated": true
316205
+ },
316206
+ "visibility": {
316207
+ "type": "string",
316208
+ "enum": [
316209
+ "public",
316210
+ "private",
316211
+ "unlisted"
316212
+ ],
316213
+ "description": "The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them."
316091
316214
  }
316092
316215
  },
316093
316216
  "required": [
@@ -316107,7 +316230,8 @@ var state5 = {
316107
316230
  "description",
316108
316231
  "iconUrl",
316109
316232
  "readmeUrl",
316110
- "public"
316233
+ "public",
316234
+ "visibility"
316111
316235
  ],
316112
316236
  "additionalProperties": false
316113
316237
  }
@@ -316494,7 +316618,17 @@ var state5 = {
316494
316618
  },
316495
316619
  "public": {
316496
316620
  "type": "boolean",
316497
- "description": "Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version."
316621
+ "description": '[DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.',
316622
+ "deprecated": true
316623
+ },
316624
+ "visibility": {
316625
+ "type": "string",
316626
+ "enum": [
316627
+ "public",
316628
+ "private",
316629
+ "unlisted"
316630
+ ],
316631
+ "description": "The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them."
316498
316632
  }
316499
316633
  },
316500
316634
  "required": [
@@ -316514,7 +316648,8 @@ var state5 = {
316514
316648
  "description",
316515
316649
  "iconUrl",
316516
316650
  "readmeUrl",
316517
- "public"
316651
+ "public",
316652
+ "visibility"
316518
316653
  ],
316519
316654
  "additionalProperties": false
316520
316655
  }
@@ -316892,7 +317027,17 @@ var state5 = {
316892
317027
  },
316893
317028
  "public": {
316894
317029
  "type": "boolean",
316895
- "description": "Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version."
317030
+ "description": '[DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.',
317031
+ "deprecated": true
317032
+ },
317033
+ "visibility": {
317034
+ "type": "string",
317035
+ "enum": [
317036
+ "public",
317037
+ "private",
317038
+ "unlisted"
317039
+ ],
317040
+ "description": "The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them."
316896
317041
  }
316897
317042
  },
316898
317043
  "required": [
@@ -316912,7 +317057,8 @@ var state5 = {
316912
317057
  "description",
316913
317058
  "iconUrl",
316914
317059
  "readmeUrl",
316915
- "public"
317060
+ "public",
317061
+ "visibility"
316916
317062
  ],
316917
317063
  "additionalProperties": false
316918
317064
  }
@@ -326336,7 +326482,17 @@ var state5 = {
326336
326482
  },
326337
326483
  "public": {
326338
326484
  "type": "boolean",
326339
- "description": "Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version."
326485
+ "description": '[DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.',
326486
+ "deprecated": true
326487
+ },
326488
+ "visibility": {
326489
+ "type": "string",
326490
+ "enum": [
326491
+ "public",
326492
+ "private",
326493
+ "unlisted"
326494
+ ],
326495
+ "description": "The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them."
326340
326496
  },
326341
326497
  "dependencies": {
326342
326498
  "type": "object",
@@ -326807,7 +326963,17 @@ var state5 = {
326807
326963
  },
326808
326964
  "public": {
326809
326965
  "type": "boolean",
326810
- "description": "Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version."
326966
+ "description": '[DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.',
326967
+ "deprecated": true
326968
+ },
326969
+ "visibility": {
326970
+ "type": "string",
326971
+ "enum": [
326972
+ "public",
326973
+ "private",
326974
+ "unlisted"
326975
+ ],
326976
+ "description": "The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them."
326811
326977
  },
326812
326978
  "dependencies": {
326813
326979
  "type": "object",
@@ -326986,7 +327152,17 @@ var state5 = {
326986
327152
  },
326987
327153
  "public": {
326988
327154
  "type": "boolean",
326989
- "description": "Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version."
327155
+ "description": '[DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.',
327156
+ "deprecated": true
327157
+ },
327158
+ "visibility": {
327159
+ "type": "string",
327160
+ "enum": [
327161
+ "public",
327162
+ "private",
327163
+ "unlisted"
327164
+ ],
327165
+ "description": "The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them."
326990
327166
  }
326991
327167
  },
326992
327168
  "required": [
@@ -326999,7 +327175,8 @@ var state5 = {
326999
327175
  "description",
327000
327176
  "iconUrl",
327001
327177
  "readmeUrl",
327002
- "public"
327178
+ "public",
327179
+ "visibility"
327003
327180
  ]
327004
327181
  }
327005
327182
  },
@@ -330744,7 +330921,7 @@ var state5 = {
330744
330921
  "title": "Botpress API",
330745
330922
  "description": "API for Botpress Cloud",
330746
330923
  "server": "https://api.botpress.cloud",
330747
- "version": "1.52.0",
330924
+ "version": "1.53.0",
330748
330925
  "prefix": "v1"
330749
330926
  },
330750
330927
  "errors": [
@@ -331451,7 +331628,17 @@ var state5 = {
331451
331628
  },
331452
331629
  "public": {
331453
331630
  "type": "boolean",
331454
- "description": "Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version."
331631
+ "description": '[DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.',
331632
+ "deprecated": true
331633
+ },
331634
+ "visibility": {
331635
+ "type": "string",
331636
+ "enum": [
331637
+ "public",
331638
+ "private",
331639
+ "unlisted"
331640
+ ],
331641
+ "description": "The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them."
331455
331642
  }
331456
331643
  },
331457
331644
  "required": [
@@ -331466,7 +331653,8 @@ var state5 = {
331466
331653
  "description",
331467
331654
  "iconUrl",
331468
331655
  "readmeUrl",
331469
- "public"
331656
+ "public",
331657
+ "visibility"
331470
331658
  ],
331471
331659
  "additionalProperties": false
331472
331660
  },
@@ -333165,7 +333353,17 @@ var state5 = {
333165
333353
  },
333166
333354
  "public": {
333167
333355
  "type": "boolean",
333168
- "description": "Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version."
333356
+ "description": '[DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.',
333357
+ "deprecated": true
333358
+ },
333359
+ "visibility": {
333360
+ "type": "string",
333361
+ "enum": [
333362
+ "public",
333363
+ "private",
333364
+ "unlisted"
333365
+ ],
333366
+ "description": "The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them."
333169
333367
  }
333170
333368
  },
333171
333369
  "required": [
@@ -333185,7 +333383,8 @@ var state5 = {
333185
333383
  "description",
333186
333384
  "iconUrl",
333187
333385
  "readmeUrl",
333188
- "public"
333386
+ "public",
333387
+ "visibility"
333189
333388
  ],
333190
333389
  "additionalProperties": false
333191
333390
  }