@botpress/api 0.68.0 → 0.68.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 +16 -12
- package/package.json +2 -2
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +6 -6
package/dist/index.js
CHANGED
|
@@ -268177,7 +268177,7 @@ __export(src_exports, {
|
|
|
268177
268177
|
});
|
|
268178
268178
|
module.exports = __toCommonJS(src_exports);
|
|
268179
268179
|
|
|
268180
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.12.
|
|
268180
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.12.1_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
268181
268181
|
var import_zod_openapi = __toESM(require_src(), 1);
|
|
268182
268182
|
var import_zod_openapi2 = __toESM(require_src(), 1);
|
|
268183
268183
|
var import_path = __toESM(require("path"), 1);
|
|
@@ -268223,7 +268223,7 @@ var title = (str2) => {
|
|
|
268223
268223
|
return str2.split(/(?=[A-Z])|[\.\-\s_]/).map((s2) => s2.trim()).filter((s2) => !!s2).map((s2) => capitalize(s2.toLowerCase())).join(" ");
|
|
268224
268224
|
};
|
|
268225
268225
|
|
|
268226
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.12.
|
|
268226
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.12.1_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
268227
268227
|
var import_decompress = __toESM(require_decompress(), 1);
|
|
268228
268228
|
var import_fs3 = __toESM(require("fs"), 1);
|
|
268229
268229
|
var import_promises = __toESM(require("fs/promises"), 1);
|
|
@@ -271459,7 +271459,7 @@ var {
|
|
|
271459
271459
|
mergeConfig: mergeConfig2
|
|
271460
271460
|
} = axios_default;
|
|
271461
271461
|
|
|
271462
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.12.
|
|
271462
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.12.1_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
271463
271463
|
var import_json_schema_to_typescript = __toESM(require_src3(), 1);
|
|
271464
271464
|
var import_fs4 = __toESM(require("fs"), 1);
|
|
271465
271465
|
var import_path3 = __toESM(require("path"), 1);
|
|
@@ -275795,7 +275795,7 @@ async function openapiTS(schema3, options = {}) {
|
|
|
275795
275795
|
}
|
|
275796
275796
|
var dist_default = openapiTS;
|
|
275797
275797
|
|
|
275798
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.12.
|
|
275798
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.12.1_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
275799
275799
|
var import_openapi3_ts = __toESM(require_dist3(), 1);
|
|
275800
275800
|
var import_verror2 = __toESM(require_verror(), 1);
|
|
275801
275801
|
var import_verror3 = __toESM(require_verror(), 1);
|
|
@@ -279436,7 +279436,7 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
279436
279436
|
ZodError
|
|
279437
279437
|
});
|
|
279438
279438
|
|
|
279439
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.12.
|
|
279439
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.12.1_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
279440
279440
|
var import_openapi_parser = __toESM(require_lib9(), 1);
|
|
279441
279441
|
var import_json_schema_to_typescript2 = __toESM(require_src3(), 1);
|
|
279442
279442
|
var import_zod_openapi4 = __toESM(require_src(), 1);
|
|
@@ -280286,7 +280286,7 @@ export type ParsedRequest = {
|
|
|
280286
280286
|
const isDefined = <T>(pair: [string, T | undefined]): pair is [string, T] => pair[1] !== undefined
|
|
280287
280287
|
|
|
280288
280288
|
export const toAxiosRequest = (req: ParsedRequest): AxiosRequestConfig => {
|
|
280289
|
-
const { method, path, query, headers: headerParams, body
|
|
280289
|
+
const { method, path, query, headers: headerParams, body } = req
|
|
280290
280290
|
|
|
280291
280291
|
// prepare headers
|
|
280292
280292
|
const headerEntries: [string, string][] = Object.entries(headerParams).filter(isDefined)
|
|
@@ -280296,6 +280296,10 @@ export const toAxiosRequest = (req: ParsedRequest): AxiosRequestConfig => {
|
|
|
280296
280296
|
const queryString = qs.stringify(query, { encode: true, arrayFormat: 'repeat', allowDots: true })
|
|
280297
280297
|
|
|
280298
280298
|
const url = queryString ? [path, queryString].join('?') : path
|
|
280299
|
+
const data =
|
|
280300
|
+
['put', 'post', 'delete', 'patch'].includes(method.toLowerCase())
|
|
280301
|
+
? body
|
|
280302
|
+
: undefined
|
|
280299
280303
|
|
|
280300
280304
|
return {
|
|
280301
280305
|
method,
|
|
@@ -288592,7 +288596,7 @@ var state = {
|
|
|
288592
288596
|
"community",
|
|
288593
288597
|
"team",
|
|
288594
288598
|
"enterprise",
|
|
288595
|
-
"
|
|
288599
|
+
"plus"
|
|
288596
288600
|
]
|
|
288597
288601
|
},
|
|
288598
288602
|
"blocked": {
|
|
@@ -288775,7 +288779,7 @@ var state = {
|
|
|
288775
288779
|
"community",
|
|
288776
288780
|
"team",
|
|
288777
288781
|
"enterprise",
|
|
288778
|
-
"
|
|
288782
|
+
"plus"
|
|
288779
288783
|
]
|
|
288780
288784
|
},
|
|
288781
288785
|
"blocked": {
|
|
@@ -289291,7 +289295,7 @@ var state = {
|
|
|
289291
289295
|
"community",
|
|
289292
289296
|
"team",
|
|
289293
289297
|
"enterprise",
|
|
289294
|
-
"
|
|
289298
|
+
"plus"
|
|
289295
289299
|
]
|
|
289296
289300
|
},
|
|
289297
289301
|
"blocked": {
|
|
@@ -289462,7 +289466,7 @@ var state = {
|
|
|
289462
289466
|
"community",
|
|
289463
289467
|
"team",
|
|
289464
289468
|
"enterprise",
|
|
289465
|
-
"
|
|
289469
|
+
"plus"
|
|
289466
289470
|
]
|
|
289467
289471
|
},
|
|
289468
289472
|
"blocked": {
|
|
@@ -296125,7 +296129,7 @@ var state = {
|
|
|
296125
296129
|
"title": "Botpress API",
|
|
296126
296130
|
"description": "API for Botpress Cloud",
|
|
296127
296131
|
"server": "https://api.botpress.cloud",
|
|
296128
|
-
"version": "0.68.
|
|
296132
|
+
"version": "0.68.2",
|
|
296129
296133
|
"prefix": "v1"
|
|
296130
296134
|
},
|
|
296131
296135
|
"errors": [
|
|
@@ -298225,7 +298229,7 @@ var state = {
|
|
|
298225
298229
|
"community",
|
|
298226
298230
|
"team",
|
|
298227
298231
|
"enterprise",
|
|
298228
|
-
"
|
|
298232
|
+
"plus"
|
|
298229
298233
|
]
|
|
298230
298234
|
},
|
|
298231
298235
|
"blocked": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/api",
|
|
3
|
-
"version": "0.68.
|
|
3
|
+
"version": "0.68.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/src/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"zod": "^3.22.4"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@bpinternal/opapi": "0.12.
|
|
26
|
+
"@bpinternal/opapi": "0.12.1"
|
|
27
27
|
}
|
|
28
28
|
}
|