@botpress/api 0.58.2 → 0.59.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.
- package/dist/index.js +42 -41
- package/dist/src/gen/state.d.ts +0 -4
- package/package.json +2 -2
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +1 -6
package/dist/index.js
CHANGED
|
@@ -258740,9 +258740,9 @@ var require_side_channel = __commonJS({
|
|
|
258740
258740
|
}
|
|
258741
258741
|
});
|
|
258742
258742
|
|
|
258743
|
-
// ../../node_modules/.pnpm/qs@6.13.
|
|
258743
|
+
// ../../node_modules/.pnpm/qs@6.13.1/node_modules/qs/lib/formats.js
|
|
258744
258744
|
var require_formats = __commonJS({
|
|
258745
|
-
"../../node_modules/.pnpm/qs@6.13.
|
|
258745
|
+
"../../node_modules/.pnpm/qs@6.13.1/node_modules/qs/lib/formats.js"(exports, module2) {
|
|
258746
258746
|
"use strict";
|
|
258747
258747
|
var replace2 = String.prototype.replace;
|
|
258748
258748
|
var percentTwenties = /%20/g;
|
|
@@ -258766,9 +258766,9 @@ var require_formats = __commonJS({
|
|
|
258766
258766
|
}
|
|
258767
258767
|
});
|
|
258768
258768
|
|
|
258769
|
-
// ../../node_modules/.pnpm/qs@6.13.
|
|
258769
|
+
// ../../node_modules/.pnpm/qs@6.13.1/node_modules/qs/lib/utils.js
|
|
258770
258770
|
var require_utils5 = __commonJS({
|
|
258771
|
-
"../../node_modules/.pnpm/qs@6.13.
|
|
258771
|
+
"../../node_modules/.pnpm/qs@6.13.1/node_modules/qs/lib/utils.js"(exports, module2) {
|
|
258772
258772
|
"use strict";
|
|
258773
258773
|
var formats = require_formats();
|
|
258774
258774
|
var has = Object.prototype.hasOwnProperty;
|
|
@@ -258796,7 +258796,7 @@ var require_utils5 = __commonJS({
|
|
|
258796
258796
|
}
|
|
258797
258797
|
};
|
|
258798
258798
|
var arrayToObject2 = function arrayToObject3(source, options) {
|
|
258799
|
-
var obj = options && options.plainObjects ?
|
|
258799
|
+
var obj = options && options.plainObjects ? { __proto__: null } : {};
|
|
258800
258800
|
for (var i = 0; i < source.length; ++i) {
|
|
258801
258801
|
if (typeof source[i] !== "undefined") {
|
|
258802
258802
|
obj[i] = source[i];
|
|
@@ -258808,7 +258808,7 @@ var require_utils5 = __commonJS({
|
|
|
258808
258808
|
if (!source) {
|
|
258809
258809
|
return target;
|
|
258810
258810
|
}
|
|
258811
|
-
if (typeof source !== "object") {
|
|
258811
|
+
if (typeof source !== "object" && typeof source !== "function") {
|
|
258812
258812
|
if (isArray2(target)) {
|
|
258813
258813
|
target.push(source);
|
|
258814
258814
|
} else if (target && typeof target === "object") {
|
|
@@ -258858,7 +258858,7 @@ var require_utils5 = __commonJS({
|
|
|
258858
258858
|
return acc;
|
|
258859
258859
|
}, target);
|
|
258860
258860
|
};
|
|
258861
|
-
var decode = function(str2,
|
|
258861
|
+
var decode = function(str2, defaultDecoder, charset) {
|
|
258862
258862
|
var strWithoutPlus = str2.replace(/\+/g, " ");
|
|
258863
258863
|
if (charset === "iso-8859-1") {
|
|
258864
258864
|
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -258971,9 +258971,9 @@ var require_utils5 = __commonJS({
|
|
|
258971
258971
|
}
|
|
258972
258972
|
});
|
|
258973
258973
|
|
|
258974
|
-
// ../../node_modules/.pnpm/qs@6.13.
|
|
258974
|
+
// ../../node_modules/.pnpm/qs@6.13.1/node_modules/qs/lib/stringify.js
|
|
258975
258975
|
var require_stringify = __commonJS({
|
|
258976
|
-
"../../node_modules/.pnpm/qs@6.13.
|
|
258976
|
+
"../../node_modules/.pnpm/qs@6.13.1/node_modules/qs/lib/stringify.js"(exports, module2) {
|
|
258977
258977
|
"use strict";
|
|
258978
258978
|
var getSideChannel = require_side_channel();
|
|
258979
258979
|
var utils = require_utils5();
|
|
@@ -259005,11 +259005,13 @@ var require_stringify = __commonJS({
|
|
|
259005
259005
|
arrayFormat: "indices",
|
|
259006
259006
|
charset: "utf-8",
|
|
259007
259007
|
charsetSentinel: false,
|
|
259008
|
+
commaRoundTrip: false,
|
|
259008
259009
|
delimiter: "&",
|
|
259009
259010
|
encode: true,
|
|
259010
259011
|
encodeDotInKeys: false,
|
|
259011
259012
|
encoder: utils.encode,
|
|
259012
259013
|
encodeValuesOnly: false,
|
|
259014
|
+
filter: void 0,
|
|
259013
259015
|
format: defaultFormat,
|
|
259014
259016
|
formatter: formats.formatters[defaultFormat],
|
|
259015
259017
|
indices: false,
|
|
@@ -259083,18 +259085,18 @@ var require_stringify = __commonJS({
|
|
|
259083
259085
|
var keys = Object.keys(obj);
|
|
259084
259086
|
objKeys = sort2 ? keys.sort(sort2) : keys;
|
|
259085
259087
|
}
|
|
259086
|
-
var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, "%2E") : prefix;
|
|
259088
|
+
var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, "%2E") : String(prefix);
|
|
259087
259089
|
var adjustedPrefix = commaRoundTrip && isArray2(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
|
|
259088
259090
|
if (allowEmptyArrays && isArray2(obj) && obj.length === 0) {
|
|
259089
259091
|
return adjustedPrefix + "[]";
|
|
259090
259092
|
}
|
|
259091
259093
|
for (var j = 0; j < objKeys.length; ++j) {
|
|
259092
259094
|
var key = objKeys[j];
|
|
259093
|
-
var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
|
|
259095
|
+
var value = typeof key === "object" && key && typeof key.value !== "undefined" ? key.value : obj[key];
|
|
259094
259096
|
if (skipNulls && value === null) {
|
|
259095
259097
|
continue;
|
|
259096
259098
|
}
|
|
259097
|
-
var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, "%2E") : key;
|
|
259099
|
+
var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
|
|
259098
259100
|
var keyPrefix = isArray2(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
|
|
259099
259101
|
sideChannel.set(object, step);
|
|
259100
259102
|
var valueSideChannel = getSideChannel();
|
|
@@ -259170,7 +259172,7 @@ var require_stringify = __commonJS({
|
|
|
259170
259172
|
arrayFormat,
|
|
259171
259173
|
charset,
|
|
259172
259174
|
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults2.charsetSentinel,
|
|
259173
|
-
commaRoundTrip: opts.commaRoundTrip,
|
|
259175
|
+
commaRoundTrip: !!opts.commaRoundTrip,
|
|
259174
259176
|
delimiter: typeof opts.delimiter === "undefined" ? defaults2.delimiter : opts.delimiter,
|
|
259175
259177
|
encode: typeof opts.encode === "boolean" ? opts.encode : defaults2.encode,
|
|
259176
259178
|
encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults2.encodeDotInKeys,
|
|
@@ -259212,11 +259214,12 @@ var require_stringify = __commonJS({
|
|
|
259212
259214
|
var sideChannel = getSideChannel();
|
|
259213
259215
|
for (var i = 0; i < objKeys.length; ++i) {
|
|
259214
259216
|
var key = objKeys[i];
|
|
259215
|
-
|
|
259217
|
+
var value = obj[key];
|
|
259218
|
+
if (options.skipNulls && value === null) {
|
|
259216
259219
|
continue;
|
|
259217
259220
|
}
|
|
259218
259221
|
pushToArray(keys, stringify(
|
|
259219
|
-
|
|
259222
|
+
value,
|
|
259220
259223
|
key,
|
|
259221
259224
|
generateArrayPrefix,
|
|
259222
259225
|
commaRoundTrip,
|
|
@@ -259250,9 +259253,9 @@ var require_stringify = __commonJS({
|
|
|
259250
259253
|
}
|
|
259251
259254
|
});
|
|
259252
259255
|
|
|
259253
|
-
// ../../node_modules/.pnpm/qs@6.13.
|
|
259256
|
+
// ../../node_modules/.pnpm/qs@6.13.1/node_modules/qs/lib/parse.js
|
|
259254
259257
|
var require_parse4 = __commonJS({
|
|
259255
|
-
"../../node_modules/.pnpm/qs@6.13.
|
|
259258
|
+
"../../node_modules/.pnpm/qs@6.13.1/node_modules/qs/lib/parse.js"(exports, module2) {
|
|
259256
259259
|
"use strict";
|
|
259257
259260
|
var utils = require_utils5();
|
|
259258
259261
|
var has = Object.prototype.hasOwnProperty;
|
|
@@ -259321,7 +259324,8 @@ var require_parse4 = __commonJS({
|
|
|
259321
259324
|
var part = parts[i];
|
|
259322
259325
|
var bracketEqualsPos = part.indexOf("]=");
|
|
259323
259326
|
var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
|
|
259324
|
-
var key
|
|
259327
|
+
var key;
|
|
259328
|
+
var val;
|
|
259325
259329
|
if (pos === -1) {
|
|
259326
259330
|
key = options.decoder(part, defaults2.decoder, charset, "key");
|
|
259327
259331
|
val = options.strictNullHandling ? null : "";
|
|
@@ -259335,7 +259339,7 @@ var require_parse4 = __commonJS({
|
|
|
259335
259339
|
);
|
|
259336
259340
|
}
|
|
259337
259341
|
if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
|
|
259338
|
-
val = interpretNumericEntities(val);
|
|
259342
|
+
val = interpretNumericEntities(String(val));
|
|
259339
259343
|
}
|
|
259340
259344
|
if (part.indexOf("[]=") > -1) {
|
|
259341
259345
|
val = isArray2(val) ? [val] : val;
|
|
@@ -259357,7 +259361,7 @@ var require_parse4 = __commonJS({
|
|
|
259357
259361
|
if (root === "[]" && options.parseArrays) {
|
|
259358
259362
|
obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : [].concat(leaf);
|
|
259359
259363
|
} else {
|
|
259360
|
-
obj = options.plainObjects ?
|
|
259364
|
+
obj = options.plainObjects ? { __proto__: null } : {};
|
|
259361
259365
|
var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
|
|
259362
259366
|
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
|
|
259363
259367
|
var index = parseInt(decodedRoot, 10);
|
|
@@ -259458,10 +259462,10 @@ var require_parse4 = __commonJS({
|
|
|
259458
259462
|
module2.exports = function(str2, opts) {
|
|
259459
259463
|
var options = normalizeParseOptions(opts);
|
|
259460
259464
|
if (str2 === "" || str2 === null || typeof str2 === "undefined") {
|
|
259461
|
-
return options.plainObjects ?
|
|
259465
|
+
return options.plainObjects ? { __proto__: null } : {};
|
|
259462
259466
|
}
|
|
259463
259467
|
var tempObj = typeof str2 === "string" ? parseValues(str2, options) : str2;
|
|
259464
|
-
var obj = options.plainObjects ?
|
|
259468
|
+
var obj = options.plainObjects ? { __proto__: null } : {};
|
|
259465
259469
|
var keys = Object.keys(tempObj);
|
|
259466
259470
|
for (var i = 0; i < keys.length; ++i) {
|
|
259467
259471
|
var key = keys[i];
|
|
@@ -259476,9 +259480,9 @@ var require_parse4 = __commonJS({
|
|
|
259476
259480
|
}
|
|
259477
259481
|
});
|
|
259478
259482
|
|
|
259479
|
-
// ../../node_modules/.pnpm/qs@6.13.
|
|
259483
|
+
// ../../node_modules/.pnpm/qs@6.13.1/node_modules/qs/lib/index.js
|
|
259480
259484
|
var require_lib11 = __commonJS({
|
|
259481
|
-
"../../node_modules/.pnpm/qs@6.13.
|
|
259485
|
+
"../../node_modules/.pnpm/qs@6.13.1/node_modules/qs/lib/index.js"(exports, module2) {
|
|
259482
259486
|
"use strict";
|
|
259483
259487
|
var stringify = require_stringify();
|
|
259484
259488
|
var parse = require_parse4();
|
|
@@ -267645,7 +267649,7 @@ __export(src_exports, {
|
|
|
267645
267649
|
});
|
|
267646
267650
|
module.exports = __toCommonJS(src_exports);
|
|
267647
267651
|
|
|
267648
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.
|
|
267652
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.12.0_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
267649
267653
|
var import_zod_openapi = __toESM(require_src(), 1);
|
|
267650
267654
|
var import_zod_openapi2 = __toESM(require_src(), 1);
|
|
267651
267655
|
var import_path = __toESM(require("path"), 1);
|
|
@@ -267691,7 +267695,7 @@ var title = (str2) => {
|
|
|
267691
267695
|
return str2.split(/(?=[A-Z])|[\.\-\s_]/).map((s2) => s2.trim()).filter((s2) => !!s2).map((s2) => capitalize(s2.toLowerCase())).join(" ");
|
|
267692
267696
|
};
|
|
267693
267697
|
|
|
267694
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.
|
|
267698
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.12.0_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
267695
267699
|
var import_decompress = __toESM(require_decompress(), 1);
|
|
267696
267700
|
var import_fs3 = __toESM(require("fs"), 1);
|
|
267697
267701
|
var import_promises = __toESM(require("fs/promises"), 1);
|
|
@@ -270927,7 +270931,7 @@ var {
|
|
|
270927
270931
|
mergeConfig: mergeConfig2
|
|
270928
270932
|
} = axios_default;
|
|
270929
270933
|
|
|
270930
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.
|
|
270934
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.12.0_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
270931
270935
|
var import_json_schema_to_typescript = __toESM(require_src3(), 1);
|
|
270932
270936
|
var import_fs4 = __toESM(require("fs"), 1);
|
|
270933
270937
|
var import_path3 = __toESM(require("path"), 1);
|
|
@@ -275263,7 +275267,7 @@ async function openapiTS(schema3, options = {}) {
|
|
|
275263
275267
|
}
|
|
275264
275268
|
var dist_default = openapiTS;
|
|
275265
275269
|
|
|
275266
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.
|
|
275270
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.12.0_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
275267
275271
|
var import_openapi3_ts = __toESM(require_dist3(), 1);
|
|
275268
275272
|
var import_verror2 = __toESM(require_verror(), 1);
|
|
275269
275273
|
var import_verror3 = __toESM(require_verror(), 1);
|
|
@@ -278904,7 +278908,7 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
278904
278908
|
ZodError
|
|
278905
278909
|
});
|
|
278906
278910
|
|
|
278907
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.
|
|
278911
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.12.0_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
278908
278912
|
var import_openapi_parser = __toESM(require_lib9(), 1);
|
|
278909
278913
|
var import_json_schema_to_typescript2 = __toESM(require_src3(), 1);
|
|
278910
278914
|
var import_zod_openapi4 = __toESM(require_src(), 1);
|
|
@@ -279999,7 +280003,8 @@ abstract class BaseApiError<Code extends ErrorCode, Type extends string, Descrip
|
|
|
279999
280003
|
public readonly type: Type,
|
|
280000
280004
|
public override readonly message: string,
|
|
280001
280005
|
public readonly error?: Error,
|
|
280002
|
-
public readonly id?: string
|
|
280006
|
+
public readonly id?: string,
|
|
280007
|
+
public readonly metadata?: Record<string, unknown>,
|
|
280003
280008
|
) {
|
|
280004
280009
|
super(message)
|
|
280005
280010
|
|
|
@@ -280018,6 +280023,7 @@ abstract class BaseApiError<Code extends ErrorCode, Type extends string, Descrip
|
|
|
280018
280023
|
code: this.code,
|
|
280019
280024
|
type: this.type,
|
|
280020
280025
|
message: this.message,
|
|
280026
|
+
metadata: this.metadata,
|
|
280021
280027
|
}
|
|
280022
280028
|
}
|
|
280023
280029
|
|
|
@@ -280030,7 +280036,7 @@ abstract class BaseApiError<Code extends ErrorCode, Type extends string, Descrip
|
|
|
280030
280036
|
.map(x => x.toString(16).padStart(2, '0'))
|
|
280031
280037
|
.join('')
|
|
280032
280038
|
.toUpperCase()
|
|
280033
|
-
|
|
280039
|
+
|
|
280034
280040
|
return \`\${prefix}_\${timestamp}x\${randomHexSuffix}\`
|
|
280035
280041
|
}
|
|
280036
280042
|
|
|
@@ -280076,7 +280082,7 @@ function getApiErrorFromObject(err: any) {
|
|
|
280076
280082
|
return new UnknownError(\`An unclassified API error occurred: \${err.message} (Type: \${err.type}, Code: \${err.code})\`)
|
|
280077
280083
|
}
|
|
280078
280084
|
|
|
280079
|
-
return new ErrorClass(err.message, undefined, <string>err.id || 'UNKNOWN') // If error ID was not received do not pass undefined to generate a new one, flag it as UNKNOWN so we can fix the issue.
|
|
280085
|
+
return new ErrorClass(err.message, undefined, <string>err.id || 'UNKNOWN', err.metadata) // If error ID was not received do not pass undefined to generate a new one, flag it as UNKNOWN so we can fix the issue.
|
|
280080
280086
|
}
|
|
280081
280087
|
|
|
280082
280088
|
return new UnknownError('An invalid error occurred: ' + JSON.stringify(err))
|
|
@@ -280091,8 +280097,8 @@ function generateError2(error2) {
|
|
|
280091
280097
|
* ${description}
|
|
280092
280098
|
*/
|
|
280093
280099
|
export class ${error2.type}Error extends BaseApiError<${error2.status}, ${error2.type}Type, '${description}'> {
|
|
280094
|
-
constructor(message: string, error?: Error, id?: string) {
|
|
280095
|
-
super(${error2.status}, '${description}', '${error2.type}', message, error, id)
|
|
280100
|
+
constructor(message: string, error?: Error, id?: string, metadata?: Record<string, unknown>) {
|
|
280101
|
+
super(${error2.status}, '${description}', '${error2.type}', message, error, id, metadata)
|
|
280096
280102
|
}
|
|
280097
280103
|
}
|
|
280098
280104
|
`;
|
|
@@ -280108,7 +280114,7 @@ ${types2.map((type2) => ` | ${type2}Error`).join("\n")}
|
|
|
280108
280114
|
`;
|
|
280109
280115
|
}
|
|
280110
280116
|
function generateErrorTypeMap(types2) {
|
|
280111
|
-
return `const errorTypes: { [type: string]: new (message: string, error?: Error, id?: string) => ApiError } = {
|
|
280117
|
+
return `const errorTypes: { [type: string]: new (message: string, error?: Error, id?: string, metadata?: Record<string, unknown>) => ApiError } = {
|
|
280112
280118
|
${types2.map((type2) => ` ${type2}: ${type2}Error,`).join("\n")}
|
|
280113
280119
|
}
|
|
280114
280120
|
`;
|
|
@@ -294954,7 +294960,7 @@ var state = {
|
|
|
294954
294960
|
"title": "Botpress API",
|
|
294955
294961
|
"description": "API for Botpress Cloud",
|
|
294956
294962
|
"server": "https://api.botpress.cloud",
|
|
294957
|
-
"version": "0.
|
|
294963
|
+
"version": "0.59.1",
|
|
294958
294964
|
"prefix": "v1"
|
|
294959
294965
|
},
|
|
294960
294966
|
"errors": [
|
|
@@ -295077,11 +295083,6 @@ var state = {
|
|
|
295077
295083
|
"status": 400,
|
|
295078
295084
|
"type": "BreakingChanges",
|
|
295079
295085
|
"description": "Request payload contains breaking changes which is not allowed for this resource without a version increment."
|
|
295080
|
-
},
|
|
295081
|
-
{
|
|
295082
|
-
"status": 424,
|
|
295083
|
-
"type": "UpstreamProvider",
|
|
295084
|
-
"description": "The upstream provider returned an error or is currently unavailable."
|
|
295085
295086
|
}
|
|
295086
295087
|
],
|
|
295087
295088
|
"refs": {
|
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -11883,10 +11883,6 @@ export declare const state: {
|
|
|
11883
11883
|
status: 402;
|
|
11884
11884
|
type: string;
|
|
11885
11885
|
description: string;
|
|
11886
|
-
} | {
|
|
11887
|
-
status: 424;
|
|
11888
|
-
type: string;
|
|
11889
|
-
description: string;
|
|
11890
11886
|
})[];
|
|
11891
11887
|
refs: {
|
|
11892
11888
|
parameters: {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.59.1",
|
|
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.
|
|
26
|
+
"@bpinternal/opapi": "0.12.0"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/src/gen/metadata.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"sections":[{"description":"","title":"User","name":"user","operations":["createUser","getUser","listUsers","getOrCreateUser","updateUser","deleteUser"],"schema":"User"},{"description":"","title":"Conversation","name":"conversation","operations":["createConversation","getConversation","listConversations","getOrCreateConversation","updateConversation","deleteConversation","listParticipants","addParticipant","getParticipant","removeParticipant"],"schema":"Conversation"},{"description":"","title":"Event","name":"event","operations":["createEvent","getEvent","listEvents"],"schema":"Event"},{"description":"","title":"Message","name":"message","operations":["createMessage","getOrCreateMessage","getMessage","updateMessage","listMessages","deleteMessage"],"schema":"Message"},{"description":"","title":"State","name":"state","operations":["setStateExpiry","getState","setState","getOrSetState","patchState"],"schema":"State"},{"title":"Hub","description":"","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration"]},{"description":"","title":"Action","name":"action","operations":["callAction"]},{"description":"","title":"Task","name":"task","operations":["getTask","createTask","updateTask","deleteTask","listTasks"],"schema":"Task"},{"description":"","title":"Workflow","name":"workflow","operations":["createWorkflow","getWorkflow","updateWorkflow","deleteWorkflow","listWorkflows","getOrCreateWorkflow"],"schema":"Workflow"},{"title":"Bot","description":"","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics","getBotIssue","listBotIssues","deleteBotIssue","listBotIssueEvents","listBotVersions","getBotVersion","createBotVersion","deployBotVersion"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration","requestIntegrationVerification"],"schema":"Integration"},{"title":"Interface","description":"","name":"interface","operations":["createInterface","getInterface","getInterfaceByName","updateInterface","deleteInterface","listInterfaces"],"schema":"Interface"},{"title":"Plugin","description":"","name":"plugin","operations":["createPlugin","getPlugin","getPluginByName","updatePlugin","deletePlugin","listPlugins"],"schema":"Plugin"},{"title":"Workspace","description":"","name":"workspace","operations":["listWorkspaceInvoices","getUpcomingInvoice","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","listPublicWorkspaces","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"title":"Workspace Member","description":"","name":"workspaceMember","operations":["listWorkspaceMembers","getWorkspaceMember","deleteWorkspaceMember","createWorkspaceMember","updateWorkspaceMember"],"schema":"WorkspaceMember"},{"title":"Account","description":"","name":"account","operations":["getAccount","updateAccount","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken","setAccountPreference","getAccountPreference"],"schema":"Account"},{"title":"Usage","description":"","name":"usage","operations":["getUsage","getMultipleUsages"],"schema":"Usage"},{"title":"Quotas","description":"","name":"quotas","operations":["changeAISpendQuota"]},{"title":"Helper","description":"","name":"helper","operations":["runVrl"]},{"title":"Activity","description":"","name":"activity","operations":["listActivities"],"schema":"Activity"},{"title":"Tables","description":"Manage and interact with table structures, including creation, updates, and querying of tables and their rows.","name":"tables","operations":["listTables","getTable","getOrCreateTable","createTable","duplicateTable","exportTable","getTableJobs","importTable","updateTable","renameTableColumn","deleteTable","getTableRow","findTableRows","createTableRows","deleteTableRows","updateTableRows","upsertTableRows"],"schema":"Table"},{"title":"Files","description":"The Files API allows you to create, manage, and index files that can be used by your bots and integrations. Files can be in any text or binary format, and documents (such as PDF, Microsoft Word, HTML, Markdown, etc.) can be indexed to be used for semantic search in RAG (Retrieval Augmented Generation) implementations. Files are private by default but can be made publicly accessible through a permanent URL that's unique for each file.","name":"files","operations":["upsertFile","deleteFile","listFiles","getFile","updateFileMetadata","searchFiles","listFilePassages"],"schema":"File"}],"errors":[{"status":500,"type":"Unknown","description":"An unknown error occurred"},{"status":500,"type":"Internal","description":"An internal error occurred"},{"status":401,"type":"Unauthorized","description":"The request requires to be authenticated."},{"status":403,"type":"Forbidden","description":"The requested action can't be peform by this resource."},{"status":413,"type":"PayloadTooLarge","description":"The request payload is too large."},{"status":400,"type":"InvalidPayload","description":"The request payload is invalid."},{"status":415,"type":"UnsupportedMediaType","description":"The request is invalid because the content-type is not supported."},{"status":405,"type":"MethodNotFound","description":"The requested method does not exist."},{"status":404,"type":"ResourceNotFound","description":"The requested resource does not exist."},{"status":400,"type":"InvalidJsonSchema","description":"The provided JSON schema is invalid."},{"status":400,"type":"InvalidDataFormat","description":"The provided data doesn't respect the provided JSON schema."},{"status":400,"type":"InvalidIdentifier","description":"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters."},{"status":409,"type":"RelationConflict","description":"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together."},{"status":409,"type":"ReferenceConstraint","description":"The resource cannot be deleted because it's referenced by another resource"},{"status":409,"type":"ResourceLockedConflict","description":"The resource is current locked and cannot be operated on until the lock is released."},{"status":400,"type":"ReferenceNotFound","description":"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request."},{"status":400,"type":"InvalidQuery","description":"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource."},{"status":400,"type":"Runtime","description":"An error happened during the execution of a runtime (bot or integration)."},{"status":409,"type":"AlreadyExists","description":"The record attempted to be created already exists."},{"status":429,"type":"RateLimited","description":"The request has been rate limited."},{"status":402,"type":"PaymentRequired","description":"A payment is required to perform this request."},{"status":403,"type":"QuotaExceeded","description":"The request exceeds the allowed quota. Quotas are a soft limit that can be increased."},{"status":413,"type":"LimitExceeded","description":"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased."},{"status":400,"type":"BreakingChanges","description":"Request payload contains breaking changes which is not allowed for this resource without a version increment."}
|
|
1
|
+
{"sections":[{"description":"","title":"User","name":"user","operations":["createUser","getUser","listUsers","getOrCreateUser","updateUser","deleteUser"],"schema":"User"},{"description":"","title":"Conversation","name":"conversation","operations":["createConversation","getConversation","listConversations","getOrCreateConversation","updateConversation","deleteConversation","listParticipants","addParticipant","getParticipant","removeParticipant"],"schema":"Conversation"},{"description":"","title":"Event","name":"event","operations":["createEvent","getEvent","listEvents"],"schema":"Event"},{"description":"","title":"Message","name":"message","operations":["createMessage","getOrCreateMessage","getMessage","updateMessage","listMessages","deleteMessage"],"schema":"Message"},{"description":"","title":"State","name":"state","operations":["setStateExpiry","getState","setState","getOrSetState","patchState"],"schema":"State"},{"title":"Hub","description":"","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration"]},{"description":"","title":"Action","name":"action","operations":["callAction"]},{"description":"","title":"Task","name":"task","operations":["getTask","createTask","updateTask","deleteTask","listTasks"],"schema":"Task"},{"description":"","title":"Workflow","name":"workflow","operations":["createWorkflow","getWorkflow","updateWorkflow","deleteWorkflow","listWorkflows","getOrCreateWorkflow"],"schema":"Workflow"},{"title":"Bot","description":"","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics","getBotIssue","listBotIssues","deleteBotIssue","listBotIssueEvents","listBotVersions","getBotVersion","createBotVersion","deployBotVersion"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration","requestIntegrationVerification"],"schema":"Integration"},{"title":"Interface","description":"","name":"interface","operations":["createInterface","getInterface","getInterfaceByName","updateInterface","deleteInterface","listInterfaces"],"schema":"Interface"},{"title":"Plugin","description":"","name":"plugin","operations":["createPlugin","getPlugin","getPluginByName","updatePlugin","deletePlugin","listPlugins"],"schema":"Plugin"},{"title":"Workspace","description":"","name":"workspace","operations":["listWorkspaceInvoices","getUpcomingInvoice","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","listPublicWorkspaces","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"title":"Workspace Member","description":"","name":"workspaceMember","operations":["listWorkspaceMembers","getWorkspaceMember","deleteWorkspaceMember","createWorkspaceMember","updateWorkspaceMember"],"schema":"WorkspaceMember"},{"title":"Account","description":"","name":"account","operations":["getAccount","updateAccount","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken","setAccountPreference","getAccountPreference"],"schema":"Account"},{"title":"Usage","description":"","name":"usage","operations":["getUsage","getMultipleUsages"],"schema":"Usage"},{"title":"Quotas","description":"","name":"quotas","operations":["changeAISpendQuota"]},{"title":"Helper","description":"","name":"helper","operations":["runVrl"]},{"title":"Activity","description":"","name":"activity","operations":["listActivities"],"schema":"Activity"},{"title":"Tables","description":"Manage and interact with table structures, including creation, updates, and querying of tables and their rows.","name":"tables","operations":["listTables","getTable","getOrCreateTable","createTable","duplicateTable","exportTable","getTableJobs","importTable","updateTable","renameTableColumn","deleteTable","getTableRow","findTableRows","createTableRows","deleteTableRows","updateTableRows","upsertTableRows"],"schema":"Table"},{"title":"Files","description":"The Files API allows you to create, manage, and index files that can be used by your bots and integrations. Files can be in any text or binary format, and documents (such as PDF, Microsoft Word, HTML, Markdown, etc.) can be indexed to be used for semantic search in RAG (Retrieval Augmented Generation) implementations. Files are private by default but can be made publicly accessible through a permanent URL that's unique for each file.","name":"files","operations":["upsertFile","deleteFile","listFiles","getFile","updateFileMetadata","searchFiles","listFilePassages"],"schema":"File"}],"errors":[{"status":500,"type":"Unknown","description":"An unknown error occurred"},{"status":500,"type":"Internal","description":"An internal error occurred"},{"status":401,"type":"Unauthorized","description":"The request requires to be authenticated."},{"status":403,"type":"Forbidden","description":"The requested action can't be peform by this resource."},{"status":413,"type":"PayloadTooLarge","description":"The request payload is too large."},{"status":400,"type":"InvalidPayload","description":"The request payload is invalid."},{"status":415,"type":"UnsupportedMediaType","description":"The request is invalid because the content-type is not supported."},{"status":405,"type":"MethodNotFound","description":"The requested method does not exist."},{"status":404,"type":"ResourceNotFound","description":"The requested resource does not exist."},{"status":400,"type":"InvalidJsonSchema","description":"The provided JSON schema is invalid."},{"status":400,"type":"InvalidDataFormat","description":"The provided data doesn't respect the provided JSON schema."},{"status":400,"type":"InvalidIdentifier","description":"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters."},{"status":409,"type":"RelationConflict","description":"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together."},{"status":409,"type":"ReferenceConstraint","description":"The resource cannot be deleted because it's referenced by another resource"},{"status":409,"type":"ResourceLockedConflict","description":"The resource is current locked and cannot be operated on until the lock is released."},{"status":400,"type":"ReferenceNotFound","description":"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request."},{"status":400,"type":"InvalidQuery","description":"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource."},{"status":400,"type":"Runtime","description":"An error happened during the execution of a runtime (bot or integration)."},{"status":409,"type":"AlreadyExists","description":"The record attempted to be created already exists."},{"status":429,"type":"RateLimited","description":"The request has been rate limited."},{"status":402,"type":"PaymentRequired","description":"A payment is required to perform this request."},{"status":403,"type":"QuotaExceeded","description":"The request exceeds the allowed quota. Quotas are a soft limit that can be increased."},{"status":413,"type":"LimitExceeded","description":"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased."},{"status":400,"type":"BreakingChanges","description":"Request payload contains breaking changes which is not allowed for this resource without a version increment."}]}
|