@botpress/api 0.19.0 → 0.19.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 +1415 -307
- package/dist/src/gen/state.d.ts +1013 -84
- package/package.json +2 -2
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +1199 -101
package/dist/index.js
CHANGED
|
@@ -36184,9 +36184,9 @@ var require_src2 = __commonJS({
|
|
|
36184
36184
|
}
|
|
36185
36185
|
});
|
|
36186
36186
|
|
|
36187
|
-
// ../../node_modules/.pnpm/follow-redirects@1.15.
|
|
36187
|
+
// ../../node_modules/.pnpm/follow-redirects@1.15.6/node_modules/follow-redirects/debug.js
|
|
36188
36188
|
var require_debug = __commonJS({
|
|
36189
|
-
"../../node_modules/.pnpm/follow-redirects@1.15.
|
|
36189
|
+
"../../node_modules/.pnpm/follow-redirects@1.15.6/node_modules/follow-redirects/debug.js"(exports, module2) {
|
|
36190
36190
|
var debug;
|
|
36191
36191
|
module2.exports = function() {
|
|
36192
36192
|
if (!debug) {
|
|
@@ -36204,9 +36204,9 @@ var require_debug = __commonJS({
|
|
|
36204
36204
|
}
|
|
36205
36205
|
});
|
|
36206
36206
|
|
|
36207
|
-
// ../../node_modules/.pnpm/follow-redirects@1.15.
|
|
36207
|
+
// ../../node_modules/.pnpm/follow-redirects@1.15.6/node_modules/follow-redirects/index.js
|
|
36208
36208
|
var require_follow_redirects = __commonJS({
|
|
36209
|
-
"../../node_modules/.pnpm/follow-redirects@1.15.
|
|
36209
|
+
"../../node_modules/.pnpm/follow-redirects@1.15.6/node_modules/follow-redirects/index.js"(exports, module2) {
|
|
36210
36210
|
var url2 = require("url");
|
|
36211
36211
|
var URL4 = url2.URL;
|
|
36212
36212
|
var http2 = require("http");
|
|
@@ -36230,7 +36230,8 @@ var require_follow_redirects = __commonJS({
|
|
|
36230
36230
|
"port",
|
|
36231
36231
|
"protocol",
|
|
36232
36232
|
"query",
|
|
36233
|
-
"search"
|
|
36233
|
+
"search",
|
|
36234
|
+
"hash"
|
|
36234
36235
|
];
|
|
36235
36236
|
var events = ["abort", "aborted", "connect", "error", "socket", "timeout"];
|
|
36236
36237
|
var eventHandlers = /* @__PURE__ */ Object.create(null);
|
|
@@ -36516,7 +36517,7 @@ var require_follow_redirects = __commonJS({
|
|
|
36516
36517
|
this._isRedirect = true;
|
|
36517
36518
|
spreadUrlObject(redirectUrl, this._options);
|
|
36518
36519
|
if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
|
|
36519
|
-
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
|
36520
|
+
removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);
|
|
36520
36521
|
}
|
|
36521
36522
|
if (isFunction2(beforeRedirect)) {
|
|
36522
36523
|
var responseDetails = {
|
|
@@ -259140,7 +259141,7 @@ __export(src_exports, {
|
|
|
259140
259141
|
});
|
|
259141
259142
|
module.exports = __toCommonJS(src_exports);
|
|
259142
259143
|
|
|
259143
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.8.
|
|
259144
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.8.1_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
259144
259145
|
var import_zod_openapi = __toESM(require_src(), 1);
|
|
259145
259146
|
var import_zod_openapi2 = __toESM(require_src(), 1);
|
|
259146
259147
|
var import_chalk = __toESM(require_source(), 1);
|
|
@@ -259150,12 +259151,12 @@ var import_fs = require("fs");
|
|
|
259150
259151
|
var import_path = require("path");
|
|
259151
259152
|
var import_winston = __toESM(require_winston(), 1);
|
|
259152
259153
|
|
|
259153
|
-
// ../../node_modules/.pnpm/radash@12.
|
|
259154
|
+
// ../../node_modules/.pnpm/radash@12.1.0/node_modules/radash/dist/esm/array.mjs
|
|
259154
259155
|
var sift = (list2) => {
|
|
259155
259156
|
return list2?.filter((x) => !!x) ?? [];
|
|
259156
259157
|
};
|
|
259157
259158
|
|
|
259158
|
-
// ../../node_modules/.pnpm/radash@12.
|
|
259159
|
+
// ../../node_modules/.pnpm/radash@12.1.0/node_modules/radash/dist/esm/string.mjs
|
|
259159
259160
|
var capitalize = (str2) => {
|
|
259160
259161
|
if (!str2 || str2.length === 0)
|
|
259161
259162
|
return "";
|
|
@@ -259184,19 +259185,19 @@ var title = (str2) => {
|
|
|
259184
259185
|
return str2.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map((s) => capitalize(s.toLowerCase())).join(" ");
|
|
259185
259186
|
};
|
|
259186
259187
|
|
|
259187
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.8.
|
|
259188
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.8.1_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
259188
259189
|
var import_decompress = __toESM(require_decompress(), 1);
|
|
259189
259190
|
var import_fs2 = __toESM(require("fs"), 1);
|
|
259190
259191
|
var import_promises = __toESM(require("fs/promises"), 1);
|
|
259191
259192
|
|
|
259192
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
259193
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/bind.js
|
|
259193
259194
|
function bind(fn, thisArg) {
|
|
259194
259195
|
return function wrap() {
|
|
259195
259196
|
return fn.apply(thisArg, arguments);
|
|
259196
259197
|
};
|
|
259197
259198
|
}
|
|
259198
259199
|
|
|
259199
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
259200
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/utils.js
|
|
259200
259201
|
var { toString } = Object.prototype;
|
|
259201
259202
|
var { getPrototypeOf } = Object;
|
|
259202
259203
|
var kindOf = ((cache) => (thing) => {
|
|
@@ -259553,7 +259554,7 @@ var utils_default = {
|
|
|
259553
259554
|
isThenable
|
|
259554
259555
|
};
|
|
259555
259556
|
|
|
259556
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
259557
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/core/AxiosError.js
|
|
259557
259558
|
function AxiosError(message, code, config, request, response) {
|
|
259558
259559
|
Error.call(this);
|
|
259559
259560
|
if (Error.captureStackTrace) {
|
|
@@ -259620,11 +259621,11 @@ AxiosError.from = (error2, code, config, request, response, customProps) => {
|
|
|
259620
259621
|
};
|
|
259621
259622
|
var AxiosError_default = AxiosError;
|
|
259622
259623
|
|
|
259623
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
259624
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/platform/node/classes/FormData.js
|
|
259624
259625
|
var import_form_data = __toESM(require_form_data(), 1);
|
|
259625
259626
|
var FormData_default = import_form_data.default;
|
|
259626
259627
|
|
|
259627
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
259628
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/toFormData.js
|
|
259628
259629
|
function isVisitable(thing) {
|
|
259629
259630
|
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
259630
259631
|
}
|
|
@@ -259738,7 +259739,7 @@ function toFormData(obj, formData, options) {
|
|
|
259738
259739
|
}
|
|
259739
259740
|
var toFormData_default = toFormData;
|
|
259740
259741
|
|
|
259741
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
259742
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
259742
259743
|
function encode(str2) {
|
|
259743
259744
|
const charMap = {
|
|
259744
259745
|
"!": "%21",
|
|
@@ -259771,7 +259772,7 @@ prototype2.toString = function toString2(encoder) {
|
|
|
259771
259772
|
};
|
|
259772
259773
|
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
259773
259774
|
|
|
259774
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
259775
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/buildURL.js
|
|
259775
259776
|
function encode2(val) {
|
|
259776
259777
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
259777
259778
|
}
|
|
@@ -259797,7 +259798,7 @@ function buildURL(url2, params, options) {
|
|
|
259797
259798
|
return url2;
|
|
259798
259799
|
}
|
|
259799
259800
|
|
|
259800
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
259801
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/core/InterceptorManager.js
|
|
259801
259802
|
var InterceptorManager = class {
|
|
259802
259803
|
constructor() {
|
|
259803
259804
|
this.handlers = [];
|
|
@@ -259831,18 +259832,18 @@ var InterceptorManager = class {
|
|
|
259831
259832
|
};
|
|
259832
259833
|
var InterceptorManager_default = InterceptorManager;
|
|
259833
259834
|
|
|
259834
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
259835
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/defaults/transitional.js
|
|
259835
259836
|
var transitional_default = {
|
|
259836
259837
|
silentJSONParsing: true,
|
|
259837
259838
|
forcedJSONParsing: true,
|
|
259838
259839
|
clarifyTimeoutError: false
|
|
259839
259840
|
};
|
|
259840
259841
|
|
|
259841
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
259842
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
259842
259843
|
var import_url = __toESM(require("url"), 1);
|
|
259843
259844
|
var URLSearchParams_default = import_url.default.URLSearchParams;
|
|
259844
259845
|
|
|
259845
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
259846
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/platform/node/index.js
|
|
259846
259847
|
var node_default = {
|
|
259847
259848
|
isNode: true,
|
|
259848
259849
|
classes: {
|
|
@@ -259853,7 +259854,7 @@ var node_default = {
|
|
|
259853
259854
|
protocols: ["http", "https", "file", "data"]
|
|
259854
259855
|
};
|
|
259855
259856
|
|
|
259856
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
259857
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/platform/common/utils.js
|
|
259857
259858
|
var utils_exports = {};
|
|
259858
259859
|
__export(utils_exports, {
|
|
259859
259860
|
hasBrowserEnv: () => hasBrowserEnv,
|
|
@@ -259868,13 +259869,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
|
|
|
259868
259869
|
return typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
259869
259870
|
})();
|
|
259870
259871
|
|
|
259871
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
259872
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/platform/index.js
|
|
259872
259873
|
var platform_default = {
|
|
259873
259874
|
...utils_exports,
|
|
259874
259875
|
...node_default
|
|
259875
259876
|
};
|
|
259876
259877
|
|
|
259877
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
259878
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
259878
259879
|
function toURLEncodedForm(data, options) {
|
|
259879
259880
|
return toFormData_default(data, new platform_default.classes.URLSearchParams(), Object.assign({
|
|
259880
259881
|
visitor: function(value, key, path2, helpers) {
|
|
@@ -259887,7 +259888,7 @@ function toURLEncodedForm(data, options) {
|
|
|
259887
259888
|
}, options));
|
|
259888
259889
|
}
|
|
259889
259890
|
|
|
259890
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
259891
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
259891
259892
|
function parsePropPath(name) {
|
|
259892
259893
|
return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
259893
259894
|
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
@@ -259941,7 +259942,7 @@ function formDataToJSON(formData) {
|
|
|
259941
259942
|
}
|
|
259942
259943
|
var formDataToJSON_default = formDataToJSON;
|
|
259943
259944
|
|
|
259944
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
259945
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/defaults/index.js
|
|
259945
259946
|
function stringifySafely(rawValue, parser, encoder) {
|
|
259946
259947
|
if (utils_default.isString(rawValue)) {
|
|
259947
259948
|
try {
|
|
@@ -260043,7 +260044,7 @@ utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method
|
|
|
260043
260044
|
});
|
|
260044
260045
|
var defaults_default = defaults;
|
|
260045
260046
|
|
|
260046
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260047
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/parseHeaders.js
|
|
260047
260048
|
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
260048
260049
|
"age",
|
|
260049
260050
|
"authorization",
|
|
@@ -260088,7 +260089,7 @@ var parseHeaders_default = (rawHeaders) => {
|
|
|
260088
260089
|
return parsed;
|
|
260089
260090
|
};
|
|
260090
260091
|
|
|
260091
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260092
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/core/AxiosHeaders.js
|
|
260092
260093
|
var $internals = Symbol("internals");
|
|
260093
260094
|
function normalizeHeader(header) {
|
|
260094
260095
|
return header && String(header).trim().toLowerCase();
|
|
@@ -260306,7 +260307,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
|
260306
260307
|
utils_default.freezeMethods(AxiosHeaders);
|
|
260307
260308
|
var AxiosHeaders_default = AxiosHeaders;
|
|
260308
260309
|
|
|
260309
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260310
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/core/transformData.js
|
|
260310
260311
|
function transformData(fns, response) {
|
|
260311
260312
|
const config = this || defaults_default;
|
|
260312
260313
|
const context = response || config;
|
|
@@ -260319,12 +260320,12 @@ function transformData(fns, response) {
|
|
|
260319
260320
|
return data;
|
|
260320
260321
|
}
|
|
260321
260322
|
|
|
260322
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260323
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/cancel/isCancel.js
|
|
260323
260324
|
function isCancel(value) {
|
|
260324
260325
|
return !!(value && value.__CANCEL__);
|
|
260325
260326
|
}
|
|
260326
260327
|
|
|
260327
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260328
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/cancel/CanceledError.js
|
|
260328
260329
|
function CanceledError(message, config, request) {
|
|
260329
260330
|
AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
|
|
260330
260331
|
this.name = "CanceledError";
|
|
@@ -260334,7 +260335,7 @@ utils_default.inherits(CanceledError, AxiosError_default, {
|
|
|
260334
260335
|
});
|
|
260335
260336
|
var CanceledError_default = CanceledError;
|
|
260336
260337
|
|
|
260337
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260338
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/core/settle.js
|
|
260338
260339
|
function settle(resolve, reject, response) {
|
|
260339
260340
|
const validateStatus2 = response.config.validateStatus;
|
|
260340
260341
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
@@ -260350,17 +260351,17 @@ function settle(resolve, reject, response) {
|
|
|
260350
260351
|
}
|
|
260351
260352
|
}
|
|
260352
260353
|
|
|
260353
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260354
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
260354
260355
|
function isAbsoluteURL(url2) {
|
|
260355
260356
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
260356
260357
|
}
|
|
260357
260358
|
|
|
260358
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260359
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/combineURLs.js
|
|
260359
260360
|
function combineURLs(baseURL, relativeURL) {
|
|
260360
260361
|
return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
260361
260362
|
}
|
|
260362
260363
|
|
|
260363
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260364
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/core/buildFullPath.js
|
|
260364
260365
|
function buildFullPath(baseURL, requestedURL) {
|
|
260365
260366
|
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
|
260366
260367
|
return combineURLs(baseURL, requestedURL);
|
|
@@ -260368,7 +260369,7 @@ function buildFullPath(baseURL, requestedURL) {
|
|
|
260368
260369
|
return requestedURL;
|
|
260369
260370
|
}
|
|
260370
260371
|
|
|
260371
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260372
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/adapters/http.js
|
|
260372
260373
|
var import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
|
|
260373
260374
|
var import_http = __toESM(require("http"), 1);
|
|
260374
260375
|
var import_https = __toESM(require("https"), 1);
|
|
@@ -260376,16 +260377,16 @@ var import_util2 = __toESM(require("util"), 1);
|
|
|
260376
260377
|
var import_follow_redirects = __toESM(require_follow_redirects(), 1);
|
|
260377
260378
|
var import_zlib = __toESM(require("zlib"), 1);
|
|
260378
260379
|
|
|
260379
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260380
|
-
var VERSION = "1.6.
|
|
260380
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/env/data.js
|
|
260381
|
+
var VERSION = "1.6.8";
|
|
260381
260382
|
|
|
260382
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260383
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/parseProtocol.js
|
|
260383
260384
|
function parseProtocol(url2) {
|
|
260384
260385
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
|
|
260385
260386
|
return match && match[1] || "";
|
|
260386
260387
|
}
|
|
260387
260388
|
|
|
260388
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260389
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/fromDataURI.js
|
|
260389
260390
|
var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
|
|
260390
260391
|
function fromDataURI(uri, asBlob, options) {
|
|
260391
260392
|
const _Blob = options && options.Blob || platform_default.classes.Blob;
|
|
@@ -260414,13 +260415,13 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
260414
260415
|
throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
|
|
260415
260416
|
}
|
|
260416
260417
|
|
|
260417
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260418
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/adapters/http.js
|
|
260418
260419
|
var import_stream4 = __toESM(require("stream"), 1);
|
|
260419
260420
|
|
|
260420
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260421
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
260421
260422
|
var import_stream = __toESM(require("stream"), 1);
|
|
260422
260423
|
|
|
260423
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260424
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/throttle.js
|
|
260424
260425
|
function throttle(fn, freq) {
|
|
260425
260426
|
let timestamp2 = 0;
|
|
260426
260427
|
const threshold = 1e3 / freq;
|
|
@@ -260446,7 +260447,7 @@ function throttle(fn, freq) {
|
|
|
260446
260447
|
}
|
|
260447
260448
|
var throttle_default = throttle;
|
|
260448
260449
|
|
|
260449
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260450
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/speedometer.js
|
|
260450
260451
|
function speedometer(samplesCount, min2) {
|
|
260451
260452
|
samplesCount = samplesCount || 10;
|
|
260452
260453
|
const bytes = new Array(samplesCount);
|
|
@@ -260482,7 +260483,7 @@ function speedometer(samplesCount, min2) {
|
|
|
260482
260483
|
}
|
|
260483
260484
|
var speedometer_default = speedometer;
|
|
260484
260485
|
|
|
260485
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260486
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
260486
260487
|
var kInternals = Symbol("internals");
|
|
260487
260488
|
var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
260488
260489
|
constructor(options) {
|
|
@@ -260632,14 +260633,14 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
260632
260633
|
};
|
|
260633
260634
|
var AxiosTransformStream_default = AxiosTransformStream;
|
|
260634
260635
|
|
|
260635
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260636
|
-
var import_events =
|
|
260636
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/adapters/http.js
|
|
260637
|
+
var import_events = require("events");
|
|
260637
260638
|
|
|
260638
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260639
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/formDataToStream.js
|
|
260639
260640
|
var import_util = require("util");
|
|
260640
260641
|
var import_stream2 = require("stream");
|
|
260641
260642
|
|
|
260642
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260643
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/readBlob.js
|
|
260643
260644
|
var { asyncIterator } = Symbol;
|
|
260644
260645
|
var readBlob = async function* (blob) {
|
|
260645
260646
|
if (blob.stream) {
|
|
@@ -260654,7 +260655,7 @@ var readBlob = async function* (blob) {
|
|
|
260654
260655
|
};
|
|
260655
260656
|
var readBlob_default = readBlob;
|
|
260656
260657
|
|
|
260657
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260658
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/formDataToStream.js
|
|
260658
260659
|
var BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
260659
260660
|
var textEncoder = new import_util.TextEncoder();
|
|
260660
260661
|
var CRLF = "\r\n";
|
|
@@ -260733,7 +260734,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
260733
260734
|
};
|
|
260734
260735
|
var formDataToStream_default = formDataToStream;
|
|
260735
260736
|
|
|
260736
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260737
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
|
260737
260738
|
var import_stream3 = __toESM(require("stream"), 1);
|
|
260738
260739
|
var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
|
260739
260740
|
__transform(chunk, encoding, callback) {
|
|
@@ -260755,7 +260756,7 @@ var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
|
|
260755
260756
|
};
|
|
260756
260757
|
var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
|
|
260757
260758
|
|
|
260758
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260759
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/callbackify.js
|
|
260759
260760
|
var callbackify = (fn, reducer) => {
|
|
260760
260761
|
return utils_default.isAsyncFn(fn) ? function(...args) {
|
|
260761
260762
|
const cb = args.pop();
|
|
@@ -260770,7 +260771,7 @@ var callbackify = (fn, reducer) => {
|
|
|
260770
260771
|
};
|
|
260771
260772
|
var callbackify_default = callbackify;
|
|
260772
260773
|
|
|
260773
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
260774
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/adapters/http.js
|
|
260774
260775
|
var zlibOptions = {
|
|
260775
260776
|
flush: import_zlib.default.constants.Z_SYNC_FLUSH,
|
|
260776
260777
|
finishFlush: import_zlib.default.constants.Z_SYNC_FLUSH
|
|
@@ -260878,7 +260879,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
260878
260879
|
});
|
|
260879
260880
|
};
|
|
260880
260881
|
}
|
|
260881
|
-
const emitter = new import_events.
|
|
260882
|
+
const emitter = new import_events.EventEmitter();
|
|
260882
260883
|
const onFinished = () => {
|
|
260883
260884
|
if (config.cancelToken) {
|
|
260884
260885
|
config.cancelToken.unsubscribe(abort);
|
|
@@ -261269,7 +261270,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
261269
261270
|
});
|
|
261270
261271
|
};
|
|
261271
261272
|
|
|
261272
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261273
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/cookies.js
|
|
261273
261274
|
var cookies_default = platform_default.hasStandardBrowserEnv ? {
|
|
261274
261275
|
write(name, value, expires, path2, domain, secure) {
|
|
261275
261276
|
const cookie = [name + "=" + encodeURIComponent(value)];
|
|
@@ -261296,7 +261297,7 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? {
|
|
|
261296
261297
|
}
|
|
261297
261298
|
};
|
|
261298
261299
|
|
|
261299
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261300
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
261300
261301
|
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? function standardBrowserEnv() {
|
|
261301
261302
|
const msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
261302
261303
|
const urlParsingNode = document.createElement("a");
|
|
@@ -261330,7 +261331,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? function
|
|
|
261330
261331
|
};
|
|
261331
261332
|
}();
|
|
261332
261333
|
|
|
261333
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261334
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/adapters/xhr.js
|
|
261334
261335
|
function progressEventReducer(listener, isDownloadStream) {
|
|
261335
261336
|
let bytesNotified = 0;
|
|
261336
261337
|
const _speedometer = speedometer_default(50, 250);
|
|
@@ -261500,7 +261501,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
261500
261501
|
});
|
|
261501
261502
|
};
|
|
261502
261503
|
|
|
261503
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261504
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/adapters/adapters.js
|
|
261504
261505
|
var knownAdapters = {
|
|
261505
261506
|
http: http_default,
|
|
261506
261507
|
xhr: xhr_default
|
|
@@ -261553,7 +261554,7 @@ var adapters_default = {
|
|
|
261553
261554
|
adapters: knownAdapters
|
|
261554
261555
|
};
|
|
261555
261556
|
|
|
261556
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261557
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/core/dispatchRequest.js
|
|
261557
261558
|
function throwIfCancellationRequested(config) {
|
|
261558
261559
|
if (config.cancelToken) {
|
|
261559
261560
|
config.cancelToken.throwIfRequested();
|
|
@@ -261598,8 +261599,8 @@ function dispatchRequest(config) {
|
|
|
261598
261599
|
});
|
|
261599
261600
|
}
|
|
261600
261601
|
|
|
261601
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261602
|
-
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? thing
|
|
261602
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/core/mergeConfig.js
|
|
261603
|
+
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
|
|
261603
261604
|
function mergeConfig(config1, config2) {
|
|
261604
261605
|
config2 = config2 || {};
|
|
261605
261606
|
const config = {};
|
|
@@ -261678,7 +261679,7 @@ function mergeConfig(config1, config2) {
|
|
|
261678
261679
|
return config;
|
|
261679
261680
|
}
|
|
261680
261681
|
|
|
261681
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261682
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/validator.js
|
|
261682
261683
|
var validators = {};
|
|
261683
261684
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type2, i) => {
|
|
261684
261685
|
validators[type2] = function validator(thing) {
|
|
@@ -261736,7 +261737,7 @@ var validator_default = {
|
|
|
261736
261737
|
validators
|
|
261737
261738
|
};
|
|
261738
261739
|
|
|
261739
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261740
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/core/Axios.js
|
|
261740
261741
|
var validators2 = validator_default.validators;
|
|
261741
261742
|
var Axios = class {
|
|
261742
261743
|
constructor(instanceConfig) {
|
|
@@ -261888,7 +261889,7 @@ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(m
|
|
|
261888
261889
|
});
|
|
261889
261890
|
var Axios_default = Axios;
|
|
261890
261891
|
|
|
261891
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261892
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/cancel/CancelToken.js
|
|
261892
261893
|
var CancelToken = class {
|
|
261893
261894
|
constructor(executor) {
|
|
261894
261895
|
if (typeof executor !== "function") {
|
|
@@ -261965,19 +261966,19 @@ var CancelToken = class {
|
|
|
261965
261966
|
};
|
|
261966
261967
|
var CancelToken_default = CancelToken;
|
|
261967
261968
|
|
|
261968
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261969
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/spread.js
|
|
261969
261970
|
function spread(callback) {
|
|
261970
261971
|
return function wrap(arr) {
|
|
261971
261972
|
return callback.apply(null, arr);
|
|
261972
261973
|
};
|
|
261973
261974
|
}
|
|
261974
261975
|
|
|
261975
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261976
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/isAxiosError.js
|
|
261976
261977
|
function isAxiosError(payload) {
|
|
261977
261978
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
261978
261979
|
}
|
|
261979
261980
|
|
|
261980
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
261981
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
261981
261982
|
var HttpStatusCode = {
|
|
261982
261983
|
Continue: 100,
|
|
261983
261984
|
SwitchingProtocols: 101,
|
|
@@ -262048,7 +262049,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
|
262048
262049
|
});
|
|
262049
262050
|
var HttpStatusCode_default = HttpStatusCode;
|
|
262050
262051
|
|
|
262051
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
262052
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/lib/axios.js
|
|
262052
262053
|
function createInstance(defaultConfig) {
|
|
262053
262054
|
const context = new Axios_default(defaultConfig);
|
|
262054
262055
|
const instance = bind(Axios_default.prototype.request, context);
|
|
@@ -262081,7 +262082,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
|
|
|
262081
262082
|
axios.default = axios;
|
|
262082
262083
|
var axios_default = axios;
|
|
262083
262084
|
|
|
262084
|
-
// ../../node_modules/.pnpm/axios@1.6.
|
|
262085
|
+
// ../../node_modules/.pnpm/axios@1.6.8/node_modules/axios/index.js
|
|
262085
262086
|
var {
|
|
262086
262087
|
Axios: Axios2,
|
|
262087
262088
|
AxiosError: AxiosError2,
|
|
@@ -262101,10 +262102,10 @@ var {
|
|
|
262101
262102
|
mergeConfig: mergeConfig2
|
|
262102
262103
|
} = axios_default;
|
|
262103
262104
|
|
|
262104
|
-
// ../../node_modules/.pnpm/openapi-typescript@6.7.
|
|
262105
|
+
// ../../node_modules/.pnpm/openapi-typescript@6.7.5/node_modules/openapi-typescript/dist/index.js
|
|
262105
262106
|
var import_node_url2 = require("node:url");
|
|
262106
262107
|
|
|
262107
|
-
// ../../node_modules/.pnpm/openapi-typescript@6.7.
|
|
262108
|
+
// ../../node_modules/.pnpm/openapi-typescript@6.7.5/node_modules/openapi-typescript/dist/load.js
|
|
262108
262109
|
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
262109
262110
|
var import_node_path2 = __toESM(require("node:path"), 1);
|
|
262110
262111
|
var import_node_stream = require("node:stream");
|
|
@@ -264793,7 +264794,7 @@ var jsYaml = {
|
|
|
264793
264794
|
};
|
|
264794
264795
|
var js_yaml_default = jsYaml;
|
|
264795
264796
|
|
|
264796
|
-
// ../../node_modules/.pnpm/openapi-typescript@6.7.
|
|
264797
|
+
// ../../node_modules/.pnpm/openapi-typescript@6.7.5/node_modules/openapi-typescript/dist/utils.js
|
|
264797
264798
|
var import_ansi_colors = __toESM(require_ansi_colors(), 1);
|
|
264798
264799
|
var import_node_path = require("node:path");
|
|
264799
264800
|
|
|
@@ -264923,7 +264924,7 @@ var supportsColor = {
|
|
|
264923
264924
|
};
|
|
264924
264925
|
var supports_color_default = supportsColor;
|
|
264925
264926
|
|
|
264926
|
-
// ../../node_modules/.pnpm/openapi-typescript@6.7.
|
|
264927
|
+
// ../../node_modules/.pnpm/openapi-typescript@6.7.5/node_modules/openapi-typescript/dist/utils.js
|
|
264927
264928
|
var import_undici = __toESM(require_undici(), 1);
|
|
264928
264929
|
if (!supports_color_default.stdout || supports_color_default.stdout.hasBasic === false)
|
|
264929
264930
|
import_ansi_colors.default.enabled = false;
|
|
@@ -265126,8 +265127,11 @@ function getDefaultFetch() {
|
|
|
265126
265127
|
}
|
|
265127
265128
|
return globalFetch;
|
|
265128
265129
|
}
|
|
265130
|
+
function getParametersArray(parameters = []) {
|
|
265131
|
+
return Array.isArray(parameters) ? parameters : [parameters];
|
|
265132
|
+
}
|
|
265129
265133
|
|
|
265130
|
-
// ../../node_modules/.pnpm/openapi-typescript@6.7.
|
|
265134
|
+
// ../../node_modules/.pnpm/openapi-typescript@6.7.5/node_modules/openapi-typescript/dist/load.js
|
|
265131
265135
|
var EXT_RE = /\.(yaml|yml|json)#?\/?/i;
|
|
265132
265136
|
var VIRTUAL_JSON_URL = `file:///_json`;
|
|
265133
265137
|
function parseSchema(source) {
|
|
@@ -265440,12 +265444,12 @@ function getHintFromSchemaObject(path2, external) {
|
|
|
265440
265444
|
return "SchemaObject";
|
|
265441
265445
|
}
|
|
265442
265446
|
|
|
265443
|
-
// ../../node_modules/.pnpm/openapi-typescript@6.7.
|
|
265447
|
+
// ../../node_modules/.pnpm/openapi-typescript@6.7.5/node_modules/openapi-typescript/dist/transform/parameter-object.js
|
|
265444
265448
|
function transformParameterObject(parameterObject, { path: path2, ctx }) {
|
|
265445
265449
|
return parameterObject.schema ? transformSchemaObject(parameterObject.schema, { path: path2, ctx }) : "string";
|
|
265446
265450
|
}
|
|
265447
265451
|
|
|
265448
|
-
// ../../node_modules/.pnpm/openapi-typescript@6.7.
|
|
265452
|
+
// ../../node_modules/.pnpm/openapi-typescript@6.7.5/node_modules/openapi-typescript/dist/transform/request-body-object.js
|
|
265449
265453
|
function transformRequestBodyObject(requestBodyObject, { path: path2, ctx }) {
|
|
265450
265454
|
let { indentLv } = ctx;
|
|
265451
265455
|
const output = ["{"];
|
|
@@ -265482,7 +265486,7 @@ function transformRequestBodyObject(requestBodyObject, { path: path2, ctx }) {
|
|
|
265482
265486
|
return output.join("\n");
|
|
265483
265487
|
}
|
|
265484
265488
|
|
|
265485
|
-
// ../../node_modules/.pnpm/openapi-typescript@6.7.
|
|
265489
|
+
// ../../node_modules/.pnpm/openapi-typescript@6.7.5/node_modules/openapi-typescript/dist/transform/response-object.js
|
|
265486
265490
|
function transformResponseObject(responseObject, { path: path2, ctx }) {
|
|
265487
265491
|
const output = ["{"];
|
|
265488
265492
|
let { indentLv } = ctx;
|
|
@@ -265537,20 +265541,21 @@ function transformResponseObject(responseObject, { path: path2, ctx }) {
|
|
|
265537
265541
|
return output.join("\n");
|
|
265538
265542
|
}
|
|
265539
265543
|
|
|
265540
|
-
// ../../node_modules/.pnpm/openapi-typescript@6.7.
|
|
265544
|
+
// ../../node_modules/.pnpm/openapi-typescript@6.7.5/node_modules/openapi-typescript/dist/transform/operation-object.js
|
|
265541
265545
|
function transformOperationObject(operationObject, { path: path2, ctx, wrapObject = true }) {
|
|
265542
265546
|
let { indentLv } = ctx;
|
|
265543
265547
|
const output = wrapObject ? ["{"] : [];
|
|
265544
265548
|
indentLv++;
|
|
265545
265549
|
{
|
|
265546
265550
|
if (operationObject.parameters) {
|
|
265551
|
+
const parametersArray = getParametersArray(operationObject.parameters);
|
|
265547
265552
|
const parameterOutput = [];
|
|
265548
265553
|
indentLv++;
|
|
265549
265554
|
for (const paramIn of ["query", "header", "path", "cookie"]) {
|
|
265550
265555
|
const paramInternalOutput = [];
|
|
265551
265556
|
indentLv++;
|
|
265552
265557
|
let paramInOptional = true;
|
|
265553
|
-
for (const param of
|
|
265558
|
+
for (const param of parametersArray) {
|
|
265554
265559
|
const node = "$ref" in param ? ctx.parameters[param.$ref] : param;
|
|
265555
265560
|
if (node?.in !== paramIn)
|
|
265556
265561
|
continue;
|
|
@@ -265640,7 +265645,7 @@ function transformOperationObject(operationObject, { path: path2, ctx, wrapObjec
|
|
|
265640
265645
|
return output.join("\n");
|
|
265641
265646
|
}
|
|
265642
265647
|
|
|
265643
|
-
// ../../node_modules/.pnpm/openapi-typescript@6.7.
|
|
265648
|
+
// ../../node_modules/.pnpm/openapi-typescript@6.7.5/node_modules/openapi-typescript/dist/transform/path-item-object.js
|
|
265644
265649
|
function transformPathItemObject(pathItem, { path: path2, ctx }) {
|
|
265645
265650
|
let { indentLv } = ctx;
|
|
265646
265651
|
const output = [];
|
|
@@ -265655,7 +265660,7 @@ function transformPathItemObject(pathItem, { path: path2, ctx }) {
|
|
|
265655
265660
|
output.push(indent(c2, indentLv));
|
|
265656
265661
|
const keyedParameters = {};
|
|
265657
265662
|
if (!("$ref" in operationObject)) {
|
|
265658
|
-
for (const parameter of [...pathItem.parameters ?? [], ...operationObject.parameters
|
|
265663
|
+
for (const parameter of [...pathItem.parameters ?? [], ...getParametersArray(operationObject.parameters)]) {
|
|
265659
265664
|
keyedParameters["$ref" in parameter ? parameter.$ref : `${parameter.in}/${parameter.name}`] = parameter;
|
|
265660
265665
|
}
|
|
265661
265666
|
}
|
|
@@ -265681,7 +265686,7 @@ function transformPathItemObject(pathItem, { path: path2, ctx }) {
|
|
|
265681
265686
|
return output.join("\n");
|
|
265682
265687
|
}
|
|
265683
265688
|
|
|
265684
|
-
// ../../node_modules/.pnpm/openapi-typescript@6.7.
|
|
265689
|
+
// ../../node_modules/.pnpm/openapi-typescript@6.7.5/node_modules/openapi-typescript/dist/transform/schema-object-map.js
|
|
265685
265690
|
function transformSchemaObjectMap(schemaObjMap, { path: path2, ctx }) {
|
|
265686
265691
|
if ("type" in schemaObjMap && typeof schemaObjMap.type === "string" || "allOf" in schemaObjMap && Array.isArray(schemaObjMap.allOf) || "oneOf" in schemaObjMap && Array.isArray(schemaObjMap.oneOf) || "anyOf" in schemaObjMap && Array.isArray(schemaObjMap.anyOf)) {
|
|
265687
265692
|
return transformSchemaObject(schemaObjMap, { path: path2, ctx });
|
|
@@ -265718,7 +265723,7 @@ function transformSchemaObjectMap(schemaObjMap, { path: path2, ctx }) {
|
|
|
265718
265723
|
return output.join("\n");
|
|
265719
265724
|
}
|
|
265720
265725
|
|
|
265721
|
-
// ../../node_modules/.pnpm/openapi-typescript@6.7.
|
|
265726
|
+
// ../../node_modules/.pnpm/openapi-typescript@6.7.5/node_modules/openapi-typescript/dist/transform/schema-object.js
|
|
265722
265727
|
function transformSchemaObject(schemaObject, options) {
|
|
265723
265728
|
const result = defaultSchemaObjectTransform(schemaObject, options);
|
|
265724
265729
|
if (typeof options.ctx.postTransform === "function") {
|
|
@@ -265912,8 +265917,13 @@ ${indent("}", indentLv)}` : "";
|
|
|
265912
265917
|
finalType = finalType ? tsIntersectionOf(finalType, anyOfTypes) : anyOfTypes;
|
|
265913
265918
|
}
|
|
265914
265919
|
}
|
|
265915
|
-
if (schemaObject.nullable)
|
|
265916
|
-
|
|
265920
|
+
if (schemaObject.nullable) {
|
|
265921
|
+
if ("type" in schemaObject) {
|
|
265922
|
+
finalType = tsUnionOf(finalType || "Record<string, unknown>", "null");
|
|
265923
|
+
} else {
|
|
265924
|
+
finalType = tsUnionOf(finalType || "unknown", "null");
|
|
265925
|
+
}
|
|
265926
|
+
}
|
|
265917
265927
|
if (finalType)
|
|
265918
265928
|
return finalType;
|
|
265919
265929
|
if (!("type" in schemaObject))
|
|
@@ -265930,14 +265940,14 @@ function getDiscriminatorPropertyName(path2, discriminator) {
|
|
|
265930
265940
|
return `${escObjKey(discriminator.propertyName)}: ${escStr(value)};`;
|
|
265931
265941
|
}
|
|
265932
265942
|
|
|
265933
|
-
// ../../node_modules/.pnpm/openapi-typescript@6.7.
|
|
265943
|
+
// ../../node_modules/.pnpm/openapi-typescript@6.7.5/node_modules/openapi-typescript/dist/transform/media-type-object.js
|
|
265934
265944
|
function transformMediaTypeObject(mediaTypeObject, { path: path2, ctx }) {
|
|
265935
265945
|
if (!mediaTypeObject.schema)
|
|
265936
265946
|
return "unknown";
|
|
265937
265947
|
return transformSchemaObject(mediaTypeObject.schema, { path: path2, ctx });
|
|
265938
265948
|
}
|
|
265939
265949
|
|
|
265940
|
-
// ../../node_modules/.pnpm/openapi-typescript@6.7.
|
|
265950
|
+
// ../../node_modules/.pnpm/openapi-typescript@6.7.5/node_modules/openapi-typescript/dist/transform/header-object.js
|
|
265941
265951
|
function transformHeaderObject(headerObject, { path: path2, ctx }) {
|
|
265942
265952
|
if (headerObject.schema)
|
|
265943
265953
|
return transformSchemaObject(headerObject.schema, { path: path2, ctx });
|
|
@@ -265966,7 +265976,7 @@ function transformHeaderObject(headerObject, { path: path2, ctx }) {
|
|
|
265966
265976
|
return "unknown";
|
|
265967
265977
|
}
|
|
265968
265978
|
|
|
265969
|
-
// ../../node_modules/.pnpm/openapi-typescript@6.7.
|
|
265979
|
+
// ../../node_modules/.pnpm/openapi-typescript@6.7.5/node_modules/openapi-typescript/dist/transform/components-object.js
|
|
265970
265980
|
function transformComponentsObject(components, ctx) {
|
|
265971
265981
|
let { indentLv } = ctx;
|
|
265972
265982
|
const output = ["{"];
|
|
@@ -266116,12 +266126,12 @@ function transformComponentsObject(components, ctx) {
|
|
|
266116
266126
|
return output.join("\n");
|
|
266117
266127
|
}
|
|
266118
266128
|
|
|
266119
|
-
// ../../node_modules/.pnpm/openapi-typescript@6.7.
|
|
266129
|
+
// ../../node_modules/.pnpm/openapi-typescript@6.7.5/node_modules/openapi-typescript/dist/transform/paths-object.js
|
|
266120
266130
|
var OPERATIONS = ["get", "post", "put", "delete", "options", "head", "patch", "trace"];
|
|
266121
266131
|
function extractPathParams(obj) {
|
|
266122
266132
|
const params = /* @__PURE__ */ new Map();
|
|
266123
266133
|
if (obj && "parameters" in obj) {
|
|
266124
|
-
for (const p of obj.parameters
|
|
266134
|
+
for (const p of getParametersArray(obj.parameters)) {
|
|
266125
266135
|
if ("in" in p && p.in === "path")
|
|
266126
266136
|
params.set(p.name, p);
|
|
266127
266137
|
}
|
|
@@ -266163,7 +266173,7 @@ function transformPathsObject(pathsObject, ctx) {
|
|
|
266163
266173
|
return output.join("\n");
|
|
266164
266174
|
}
|
|
266165
266175
|
|
|
266166
|
-
// ../../node_modules/.pnpm/openapi-typescript@6.7.
|
|
266176
|
+
// ../../node_modules/.pnpm/openapi-typescript@6.7.5/node_modules/openapi-typescript/dist/transform/webhooks-object.js
|
|
266167
266177
|
function transformWebhooksObject(webhooksObject, ctx) {
|
|
266168
266178
|
let { indentLv } = ctx;
|
|
266169
266179
|
const output = ["{"];
|
|
@@ -266179,7 +266189,7 @@ function transformWebhooksObject(webhooksObject, ctx) {
|
|
|
266179
266189
|
return output.join("\n");
|
|
266180
266190
|
}
|
|
266181
266191
|
|
|
266182
|
-
// ../../node_modules/.pnpm/openapi-typescript@6.7.
|
|
266192
|
+
// ../../node_modules/.pnpm/openapi-typescript@6.7.5/node_modules/openapi-typescript/dist/transform/index.js
|
|
266183
266193
|
function transformSchema(schema3, ctx) {
|
|
266184
266194
|
if (!schema3)
|
|
266185
266195
|
return {};
|
|
@@ -266203,7 +266213,7 @@ function transformSchema(schema3, ctx) {
|
|
|
266203
266213
|
return output;
|
|
266204
266214
|
}
|
|
266205
266215
|
|
|
266206
|
-
// ../../node_modules/.pnpm/openapi-typescript@6.7.
|
|
266216
|
+
// ../../node_modules/.pnpm/openapi-typescript@6.7.5/node_modules/openapi-typescript/dist/transform/parameter-object-array.js
|
|
266207
266217
|
function transformParameterObjectArray(parameterObjectArray, { path: path2, ctx }) {
|
|
266208
266218
|
const output = [];
|
|
266209
266219
|
const parameters = Array.isArray(parameterObjectArray) ? parameterObjectArray.map((p) => [p.name, p]) : Object.entries(parameterObjectArray);
|
|
@@ -266224,7 +266234,7 @@ function transformParameterObjectArray(parameterObjectArray, { path: path2, ctx
|
|
|
266224
266234
|
return output.join("\n");
|
|
266225
266235
|
}
|
|
266226
266236
|
|
|
266227
|
-
// ../../node_modules/.pnpm/openapi-typescript@6.7.
|
|
266237
|
+
// ../../node_modules/.pnpm/openapi-typescript@6.7.5/node_modules/openapi-typescript/dist/index.js
|
|
266228
266238
|
var EMPTY_OBJECT_RE = /^\s*\{?\s*\}?\s*$/;
|
|
266229
266239
|
var COMMENT_HEADER = `/**
|
|
266230
266240
|
* This file was auto-generated by openapi-typescript.
|
|
@@ -266418,7 +266428,7 @@ async function openapiTS(schema3, options = {}) {
|
|
|
266418
266428
|
}
|
|
266419
266429
|
var dist_default = openapiTS;
|
|
266420
266430
|
|
|
266421
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.8.
|
|
266431
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.8.1_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
266422
266432
|
var import_zod_openapi3 = __toESM(require_src(), 1);
|
|
266423
266433
|
var import_openapi3_ts = __toESM(require_dist3(), 1);
|
|
266424
266434
|
var import_verror2 = __toESM(require_verror(), 1);
|
|
@@ -270060,7 +270070,7 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
270060
270070
|
ZodError
|
|
270061
270071
|
});
|
|
270062
270072
|
|
|
270063
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.8.
|
|
270073
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.8.1_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
270064
270074
|
var import_openapi_parser = __toESM(require_lib10(), 1);
|
|
270065
270075
|
var import_json_schema_to_typescript = __toESM(require_src3(), 1);
|
|
270066
270076
|
var import_zod_openapi4 = __toESM(require_src(), 1);
|
|
@@ -273741,9 +273751,7 @@ var state = {
|
|
|
273741
273751
|
"schema": {
|
|
273742
273752
|
"type": "object",
|
|
273743
273753
|
"properties": {
|
|
273744
|
-
"value": {
|
|
273745
|
-
"nullable": true
|
|
273746
|
-
}
|
|
273754
|
+
"value": {}
|
|
273747
273755
|
},
|
|
273748
273756
|
"title": "setAccountPreferenceBody",
|
|
273749
273757
|
"additionalProperties": false
|
|
@@ -273864,6 +273872,26 @@ var state = {
|
|
|
273864
273872
|
"iconUrl": {
|
|
273865
273873
|
"type": "string",
|
|
273866
273874
|
"description": "URL of the icon of the integration. This is the icon that will be displayed in the UI"
|
|
273875
|
+
},
|
|
273876
|
+
"ownerWorkspace": {
|
|
273877
|
+
"type": "object",
|
|
273878
|
+
"properties": {
|
|
273879
|
+
"id": {
|
|
273880
|
+
"type": "string"
|
|
273881
|
+
},
|
|
273882
|
+
"handle": {
|
|
273883
|
+
"type": "string",
|
|
273884
|
+
"nullable": true
|
|
273885
|
+
},
|
|
273886
|
+
"name": {
|
|
273887
|
+
"type": "string"
|
|
273888
|
+
}
|
|
273889
|
+
},
|
|
273890
|
+
"required": [
|
|
273891
|
+
"id",
|
|
273892
|
+
"handle",
|
|
273893
|
+
"name"
|
|
273894
|
+
]
|
|
273867
273895
|
}
|
|
273868
273896
|
},
|
|
273869
273897
|
"required": [
|
|
@@ -273874,7 +273902,8 @@ var state = {
|
|
|
273874
273902
|
"updatedAt",
|
|
273875
273903
|
"title",
|
|
273876
273904
|
"description",
|
|
273877
|
-
"iconUrl"
|
|
273905
|
+
"iconUrl",
|
|
273906
|
+
"ownerWorkspace"
|
|
273878
273907
|
]
|
|
273879
273908
|
}
|
|
273880
273909
|
},
|
|
@@ -273920,7 +273949,469 @@ var state = {
|
|
|
273920
273949
|
"type": "object",
|
|
273921
273950
|
"properties": {
|
|
273922
273951
|
"integration": {
|
|
273923
|
-
"
|
|
273952
|
+
"type": "object",
|
|
273953
|
+
"properties": {
|
|
273954
|
+
"id": {
|
|
273955
|
+
"type": "string",
|
|
273956
|
+
"minLength": 28,
|
|
273957
|
+
"maxLength": 36,
|
|
273958
|
+
"description": "User id"
|
|
273959
|
+
},
|
|
273960
|
+
"createdAt": {
|
|
273961
|
+
"type": "string",
|
|
273962
|
+
"format": "date-time",
|
|
273963
|
+
"description": "Creation date of the [Integration](#schema_integration) in ISO 8601 format"
|
|
273964
|
+
},
|
|
273965
|
+
"updatedAt": {
|
|
273966
|
+
"type": "string",
|
|
273967
|
+
"format": "date-time",
|
|
273968
|
+
"description": "Updating date of the [Integration](#schema_integration) in ISO 8601 format"
|
|
273969
|
+
},
|
|
273970
|
+
"identifier": {
|
|
273971
|
+
"type": "object",
|
|
273972
|
+
"properties": {
|
|
273973
|
+
"fallbackHandlerScript": {
|
|
273974
|
+
"type": "string",
|
|
273975
|
+
"maxLength": 2e3,
|
|
273976
|
+
"description": "VRL Script of the [Integration](#schema_integration) to handle incoming requests for a request that doesn't have an identifier"
|
|
273977
|
+
},
|
|
273978
|
+
"extractScript": {
|
|
273979
|
+
"type": "string",
|
|
273980
|
+
"maxLength": 2e3,
|
|
273981
|
+
"description": "VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook often use for OAuth"
|
|
273982
|
+
}
|
|
273983
|
+
},
|
|
273984
|
+
"description": "Global identifier configuration of the [Integration](#schema_integration)",
|
|
273985
|
+
"additionalProperties": false
|
|
273986
|
+
},
|
|
273987
|
+
"name": {
|
|
273988
|
+
"type": "string",
|
|
273989
|
+
"maxLength": 200,
|
|
273990
|
+
"description": "Unique identifier of the integration that was installed on the bot"
|
|
273991
|
+
},
|
|
273992
|
+
"version": {
|
|
273993
|
+
"type": "string",
|
|
273994
|
+
"maxLength": 200,
|
|
273995
|
+
"description": "Unique identifier of the integration that was installed on the bot"
|
|
273996
|
+
},
|
|
273997
|
+
"configuration": {
|
|
273998
|
+
"type": "object",
|
|
273999
|
+
"properties": {
|
|
274000
|
+
"identifier": {
|
|
274001
|
+
"type": "object",
|
|
274002
|
+
"properties": {
|
|
274003
|
+
"linkTemplateScript": {
|
|
274004
|
+
"type": "string",
|
|
274005
|
+
"maxLength": 2e3,
|
|
274006
|
+
"description": "Title describing the task"
|
|
274007
|
+
},
|
|
274008
|
+
"required": {
|
|
274009
|
+
"type": "boolean"
|
|
274010
|
+
}
|
|
274011
|
+
},
|
|
274012
|
+
"required": [
|
|
274013
|
+
"required"
|
|
274014
|
+
],
|
|
274015
|
+
"description": "Identifier configuration of the [Integration](#schema_integration)",
|
|
274016
|
+
"additionalProperties": false
|
|
274017
|
+
},
|
|
274018
|
+
"schema": {
|
|
274019
|
+
"type": "object",
|
|
274020
|
+
"additionalProperties": true,
|
|
274021
|
+
"description": "Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`."
|
|
274022
|
+
}
|
|
274023
|
+
},
|
|
274024
|
+
"required": [
|
|
274025
|
+
"identifier"
|
|
274026
|
+
],
|
|
274027
|
+
"description": "Configuration definition",
|
|
274028
|
+
"additionalProperties": false
|
|
274029
|
+
},
|
|
274030
|
+
"channels": {
|
|
274031
|
+
"type": "object",
|
|
274032
|
+
"additionalProperties": {
|
|
274033
|
+
"type": "object",
|
|
274034
|
+
"properties": {
|
|
274035
|
+
"title": {
|
|
274036
|
+
"type": "string",
|
|
274037
|
+
"maxLength": 64,
|
|
274038
|
+
"description": "Title of the channel"
|
|
274039
|
+
},
|
|
274040
|
+
"description": {
|
|
274041
|
+
"type": "string",
|
|
274042
|
+
"maxLength": 256,
|
|
274043
|
+
"description": "Description of the channel"
|
|
274044
|
+
},
|
|
274045
|
+
"messages": {
|
|
274046
|
+
"type": "object",
|
|
274047
|
+
"additionalProperties": {
|
|
274048
|
+
"type": "object",
|
|
274049
|
+
"properties": {
|
|
274050
|
+
"schema": {
|
|
274051
|
+
"type": "object",
|
|
274052
|
+
"additionalProperties": true
|
|
274053
|
+
}
|
|
274054
|
+
},
|
|
274055
|
+
"required": [
|
|
274056
|
+
"schema"
|
|
274057
|
+
],
|
|
274058
|
+
"description": "Message definition",
|
|
274059
|
+
"additionalProperties": false
|
|
274060
|
+
}
|
|
274061
|
+
},
|
|
274062
|
+
"conversation": {
|
|
274063
|
+
"type": "object",
|
|
274064
|
+
"properties": {
|
|
274065
|
+
"tags": {
|
|
274066
|
+
"type": "object",
|
|
274067
|
+
"additionalProperties": {
|
|
274068
|
+
"type": "object",
|
|
274069
|
+
"properties": {
|
|
274070
|
+
"title": {
|
|
274071
|
+
"type": "string",
|
|
274072
|
+
"maxLength": 64,
|
|
274073
|
+
"description": "Title of the tag"
|
|
274074
|
+
},
|
|
274075
|
+
"description": {
|
|
274076
|
+
"type": "string",
|
|
274077
|
+
"maxLength": 256,
|
|
274078
|
+
"description": "Description of the tag"
|
|
274079
|
+
}
|
|
274080
|
+
},
|
|
274081
|
+
"description": "Definition of a tag that can be provided on the object",
|
|
274082
|
+
"additionalProperties": false
|
|
274083
|
+
}
|
|
274084
|
+
},
|
|
274085
|
+
"creation": {
|
|
274086
|
+
"type": "object",
|
|
274087
|
+
"properties": {
|
|
274088
|
+
"enabled": {
|
|
274089
|
+
"type": "boolean",
|
|
274090
|
+
"description": "Enable conversation creation"
|
|
274091
|
+
},
|
|
274092
|
+
"requiredTags": {
|
|
274093
|
+
"type": "array",
|
|
274094
|
+
"items": {
|
|
274095
|
+
"type": "string"
|
|
274096
|
+
},
|
|
274097
|
+
"description": "The list of tags that are required to be specified when calling the API directly to create a conversation."
|
|
274098
|
+
}
|
|
274099
|
+
},
|
|
274100
|
+
"required": [
|
|
274101
|
+
"enabled",
|
|
274102
|
+
"requiredTags"
|
|
274103
|
+
],
|
|
274104
|
+
"description": "The conversation creation setting determines how to create a conversation through the API directly. The integration will have to implement the `createConversation` functionality to support this setting.",
|
|
274105
|
+
"additionalProperties": false
|
|
274106
|
+
}
|
|
274107
|
+
},
|
|
274108
|
+
"required": [
|
|
274109
|
+
"tags",
|
|
274110
|
+
"creation"
|
|
274111
|
+
],
|
|
274112
|
+
"description": "Conversation object configuration",
|
|
274113
|
+
"additionalProperties": false
|
|
274114
|
+
},
|
|
274115
|
+
"message": {
|
|
274116
|
+
"type": "object",
|
|
274117
|
+
"properties": {
|
|
274118
|
+
"tags": {
|
|
274119
|
+
"type": "object",
|
|
274120
|
+
"additionalProperties": {
|
|
274121
|
+
"type": "object",
|
|
274122
|
+
"properties": {
|
|
274123
|
+
"title": {
|
|
274124
|
+
"type": "string",
|
|
274125
|
+
"maxLength": 64,
|
|
274126
|
+
"description": "Title of the tag"
|
|
274127
|
+
},
|
|
274128
|
+
"description": {
|
|
274129
|
+
"type": "string",
|
|
274130
|
+
"maxLength": 256,
|
|
274131
|
+
"description": "Description of the tag"
|
|
274132
|
+
}
|
|
274133
|
+
},
|
|
274134
|
+
"description": "Definition of a tag that can be provided on the object",
|
|
274135
|
+
"additionalProperties": false
|
|
274136
|
+
}
|
|
274137
|
+
}
|
|
274138
|
+
},
|
|
274139
|
+
"required": [
|
|
274140
|
+
"tags"
|
|
274141
|
+
],
|
|
274142
|
+
"description": "Message object configuration",
|
|
274143
|
+
"additionalProperties": false
|
|
274144
|
+
}
|
|
274145
|
+
},
|
|
274146
|
+
"required": [
|
|
274147
|
+
"messages",
|
|
274148
|
+
"conversation",
|
|
274149
|
+
"message"
|
|
274150
|
+
],
|
|
274151
|
+
"description": "Channel definition",
|
|
274152
|
+
"additionalProperties": false
|
|
274153
|
+
}
|
|
274154
|
+
},
|
|
274155
|
+
"states": {
|
|
274156
|
+
"type": "object",
|
|
274157
|
+
"additionalProperties": {
|
|
274158
|
+
"type": "object",
|
|
274159
|
+
"properties": {
|
|
274160
|
+
"type": {
|
|
274161
|
+
"type": "string",
|
|
274162
|
+
"enum": [
|
|
274163
|
+
"conversation",
|
|
274164
|
+
"user",
|
|
274165
|
+
"integration"
|
|
274166
|
+
],
|
|
274167
|
+
"description": "Type of the [State](#schema_state) (`conversation`, `user` or `integration`)"
|
|
274168
|
+
},
|
|
274169
|
+
"schema": {
|
|
274170
|
+
"type": "object",
|
|
274171
|
+
"additionalProperties": true,
|
|
274172
|
+
"description": "Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data."
|
|
274173
|
+
}
|
|
274174
|
+
},
|
|
274175
|
+
"required": [
|
|
274176
|
+
"type",
|
|
274177
|
+
"schema"
|
|
274178
|
+
],
|
|
274179
|
+
"description": "State definition",
|
|
274180
|
+
"additionalProperties": false
|
|
274181
|
+
}
|
|
274182
|
+
},
|
|
274183
|
+
"events": {
|
|
274184
|
+
"type": "object",
|
|
274185
|
+
"additionalProperties": {
|
|
274186
|
+
"type": "object",
|
|
274187
|
+
"properties": {
|
|
274188
|
+
"title": {
|
|
274189
|
+
"type": "string",
|
|
274190
|
+
"maxLength": 64,
|
|
274191
|
+
"description": "Title of the event"
|
|
274192
|
+
},
|
|
274193
|
+
"description": {
|
|
274194
|
+
"type": "string",
|
|
274195
|
+
"maxLength": 256,
|
|
274196
|
+
"description": "Description of the event"
|
|
274197
|
+
},
|
|
274198
|
+
"schema": {
|
|
274199
|
+
"type": "object",
|
|
274200
|
+
"additionalProperties": true
|
|
274201
|
+
}
|
|
274202
|
+
},
|
|
274203
|
+
"required": [
|
|
274204
|
+
"schema"
|
|
274205
|
+
],
|
|
274206
|
+
"description": "Event Definition",
|
|
274207
|
+
"additionalProperties": false
|
|
274208
|
+
}
|
|
274209
|
+
},
|
|
274210
|
+
"actions": {
|
|
274211
|
+
"type": "object",
|
|
274212
|
+
"additionalProperties": {
|
|
274213
|
+
"type": "object",
|
|
274214
|
+
"properties": {
|
|
274215
|
+
"title": {
|
|
274216
|
+
"type": "string",
|
|
274217
|
+
"maxLength": 64,
|
|
274218
|
+
"description": "Title of the action"
|
|
274219
|
+
},
|
|
274220
|
+
"description": {
|
|
274221
|
+
"type": "string",
|
|
274222
|
+
"maxLength": 256,
|
|
274223
|
+
"description": "Description of the action"
|
|
274224
|
+
},
|
|
274225
|
+
"input": {
|
|
274226
|
+
"type": "object",
|
|
274227
|
+
"properties": {
|
|
274228
|
+
"schema": {
|
|
274229
|
+
"type": "object",
|
|
274230
|
+
"additionalProperties": true
|
|
274231
|
+
}
|
|
274232
|
+
},
|
|
274233
|
+
"required": [
|
|
274234
|
+
"schema"
|
|
274235
|
+
],
|
|
274236
|
+
"additionalProperties": false
|
|
274237
|
+
},
|
|
274238
|
+
"output": {
|
|
274239
|
+
"type": "object",
|
|
274240
|
+
"properties": {
|
|
274241
|
+
"schema": {
|
|
274242
|
+
"type": "object",
|
|
274243
|
+
"additionalProperties": true
|
|
274244
|
+
}
|
|
274245
|
+
},
|
|
274246
|
+
"required": [
|
|
274247
|
+
"schema"
|
|
274248
|
+
],
|
|
274249
|
+
"additionalProperties": false
|
|
274250
|
+
}
|
|
274251
|
+
},
|
|
274252
|
+
"required": [
|
|
274253
|
+
"input",
|
|
274254
|
+
"output"
|
|
274255
|
+
],
|
|
274256
|
+
"description": "Action definition",
|
|
274257
|
+
"additionalProperties": false
|
|
274258
|
+
}
|
|
274259
|
+
},
|
|
274260
|
+
"user": {
|
|
274261
|
+
"type": "object",
|
|
274262
|
+
"properties": {
|
|
274263
|
+
"tags": {
|
|
274264
|
+
"type": "object",
|
|
274265
|
+
"additionalProperties": {
|
|
274266
|
+
"type": "object",
|
|
274267
|
+
"properties": {
|
|
274268
|
+
"title": {
|
|
274269
|
+
"type": "string",
|
|
274270
|
+
"maxLength": 64,
|
|
274271
|
+
"description": "Title of the tag"
|
|
274272
|
+
},
|
|
274273
|
+
"description": {
|
|
274274
|
+
"type": "string",
|
|
274275
|
+
"maxLength": 256,
|
|
274276
|
+
"description": "Description of the tag"
|
|
274277
|
+
}
|
|
274278
|
+
},
|
|
274279
|
+
"description": "Definition of a tag that can be provided on the object",
|
|
274280
|
+
"additionalProperties": false
|
|
274281
|
+
}
|
|
274282
|
+
},
|
|
274283
|
+
"creation": {
|
|
274284
|
+
"type": "object",
|
|
274285
|
+
"properties": {
|
|
274286
|
+
"enabled": {
|
|
274287
|
+
"type": "boolean",
|
|
274288
|
+
"description": "Enable user creation"
|
|
274289
|
+
},
|
|
274290
|
+
"requiredTags": {
|
|
274291
|
+
"type": "array",
|
|
274292
|
+
"items": {
|
|
274293
|
+
"type": "string"
|
|
274294
|
+
},
|
|
274295
|
+
"description": "The list of tags that are required to be specified when calling the API directly to create a user."
|
|
274296
|
+
}
|
|
274297
|
+
},
|
|
274298
|
+
"required": [
|
|
274299
|
+
"enabled",
|
|
274300
|
+
"requiredTags"
|
|
274301
|
+
],
|
|
274302
|
+
"description": "The user creation setting determines how to create a user through the API directly. The integration will have to implement the `createUser` functionality to support this setting.",
|
|
274303
|
+
"additionalProperties": false
|
|
274304
|
+
}
|
|
274305
|
+
},
|
|
274306
|
+
"required": [
|
|
274307
|
+
"tags",
|
|
274308
|
+
"creation"
|
|
274309
|
+
],
|
|
274310
|
+
"description": "User object configuration",
|
|
274311
|
+
"additionalProperties": false
|
|
274312
|
+
},
|
|
274313
|
+
"entities": {
|
|
274314
|
+
"type": "object",
|
|
274315
|
+
"additionalProperties": {
|
|
274316
|
+
"type": "object",
|
|
274317
|
+
"properties": {
|
|
274318
|
+
"title": {
|
|
274319
|
+
"type": "string",
|
|
274320
|
+
"maxLength": 64,
|
|
274321
|
+
"description": "Title of the entity"
|
|
274322
|
+
},
|
|
274323
|
+
"description": {
|
|
274324
|
+
"type": "string",
|
|
274325
|
+
"maxLength": 256,
|
|
274326
|
+
"description": "Description of the entity"
|
|
274327
|
+
},
|
|
274328
|
+
"schema": {
|
|
274329
|
+
"type": "object",
|
|
274330
|
+
"additionalProperties": true
|
|
274331
|
+
}
|
|
274332
|
+
},
|
|
274333
|
+
"required": [
|
|
274334
|
+
"schema"
|
|
274335
|
+
],
|
|
274336
|
+
"description": "Entity definition",
|
|
274337
|
+
"additionalProperties": false
|
|
274338
|
+
}
|
|
274339
|
+
},
|
|
274340
|
+
"dev": {
|
|
274341
|
+
"type": "boolean",
|
|
274342
|
+
"description": "Indicates if the integration is a development integration; Dev integrations run locally"
|
|
274343
|
+
},
|
|
274344
|
+
"title": {
|
|
274345
|
+
"type": "string",
|
|
274346
|
+
"minLength": 1,
|
|
274347
|
+
"maxLength": 64,
|
|
274348
|
+
"description": "Title of the integration. This is the name that will be displayed in the UI"
|
|
274349
|
+
},
|
|
274350
|
+
"description": {
|
|
274351
|
+
"type": "string",
|
|
274352
|
+
"maxLength": 256,
|
|
274353
|
+
"description": "Description of the integration. This is the description that will be displayed in the UI"
|
|
274354
|
+
},
|
|
274355
|
+
"iconUrl": {
|
|
274356
|
+
"type": "string",
|
|
274357
|
+
"description": "URL of the icon of the integration. This is the icon that will be displayed in the UI"
|
|
274358
|
+
},
|
|
274359
|
+
"readmeUrl": {
|
|
274360
|
+
"type": "string",
|
|
274361
|
+
"description": "URL of the readme of the integration. This is the readme that will be displayed in the UI"
|
|
274362
|
+
},
|
|
274363
|
+
"secrets": {
|
|
274364
|
+
"type": "array",
|
|
274365
|
+
"items": {
|
|
274366
|
+
"type": "string"
|
|
274367
|
+
},
|
|
274368
|
+
"description": "Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing."
|
|
274369
|
+
},
|
|
274370
|
+
"ownerWorkspace": {
|
|
274371
|
+
"type": "object",
|
|
274372
|
+
"properties": {
|
|
274373
|
+
"id": {
|
|
274374
|
+
"type": "string"
|
|
274375
|
+
},
|
|
274376
|
+
"handle": {
|
|
274377
|
+
"type": "string",
|
|
274378
|
+
"nullable": true
|
|
274379
|
+
},
|
|
274380
|
+
"name": {
|
|
274381
|
+
"type": "string"
|
|
274382
|
+
}
|
|
274383
|
+
},
|
|
274384
|
+
"required": [
|
|
274385
|
+
"id",
|
|
274386
|
+
"handle",
|
|
274387
|
+
"name"
|
|
274388
|
+
],
|
|
274389
|
+
"additionalProperties": false
|
|
274390
|
+
}
|
|
274391
|
+
},
|
|
274392
|
+
"required": [
|
|
274393
|
+
"id",
|
|
274394
|
+
"createdAt",
|
|
274395
|
+
"updatedAt",
|
|
274396
|
+
"identifier",
|
|
274397
|
+
"name",
|
|
274398
|
+
"version",
|
|
274399
|
+
"configuration",
|
|
274400
|
+
"channels",
|
|
274401
|
+
"states",
|
|
274402
|
+
"events",
|
|
274403
|
+
"actions",
|
|
274404
|
+
"user",
|
|
274405
|
+
"entities",
|
|
274406
|
+
"dev",
|
|
274407
|
+
"title",
|
|
274408
|
+
"description",
|
|
274409
|
+
"iconUrl",
|
|
274410
|
+
"readmeUrl",
|
|
274411
|
+
"secrets",
|
|
274412
|
+
"ownerWorkspace"
|
|
274413
|
+
],
|
|
274414
|
+
"additionalProperties": false
|
|
273924
274415
|
}
|
|
273925
274416
|
},
|
|
273926
274417
|
"required": [
|
|
@@ -273958,7 +274449,469 @@ var state = {
|
|
|
273958
274449
|
"type": "object",
|
|
273959
274450
|
"properties": {
|
|
273960
274451
|
"integration": {
|
|
273961
|
-
"
|
|
274452
|
+
"type": "object",
|
|
274453
|
+
"properties": {
|
|
274454
|
+
"id": {
|
|
274455
|
+
"type": "string",
|
|
274456
|
+
"minLength": 28,
|
|
274457
|
+
"maxLength": 36,
|
|
274458
|
+
"description": "User id"
|
|
274459
|
+
},
|
|
274460
|
+
"createdAt": {
|
|
274461
|
+
"type": "string",
|
|
274462
|
+
"format": "date-time",
|
|
274463
|
+
"description": "Creation date of the [Integration](#schema_integration) in ISO 8601 format"
|
|
274464
|
+
},
|
|
274465
|
+
"updatedAt": {
|
|
274466
|
+
"type": "string",
|
|
274467
|
+
"format": "date-time",
|
|
274468
|
+
"description": "Updating date of the [Integration](#schema_integration) in ISO 8601 format"
|
|
274469
|
+
},
|
|
274470
|
+
"identifier": {
|
|
274471
|
+
"type": "object",
|
|
274472
|
+
"properties": {
|
|
274473
|
+
"fallbackHandlerScript": {
|
|
274474
|
+
"type": "string",
|
|
274475
|
+
"maxLength": 2e3,
|
|
274476
|
+
"description": "VRL Script of the [Integration](#schema_integration) to handle incoming requests for a request that doesn't have an identifier"
|
|
274477
|
+
},
|
|
274478
|
+
"extractScript": {
|
|
274479
|
+
"type": "string",
|
|
274480
|
+
"maxLength": 2e3,
|
|
274481
|
+
"description": "VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook often use for OAuth"
|
|
274482
|
+
}
|
|
274483
|
+
},
|
|
274484
|
+
"description": "Global identifier configuration of the [Integration](#schema_integration)",
|
|
274485
|
+
"additionalProperties": false
|
|
274486
|
+
},
|
|
274487
|
+
"name": {
|
|
274488
|
+
"type": "string",
|
|
274489
|
+
"maxLength": 200,
|
|
274490
|
+
"description": "Unique identifier of the integration that was installed on the bot"
|
|
274491
|
+
},
|
|
274492
|
+
"version": {
|
|
274493
|
+
"type": "string",
|
|
274494
|
+
"maxLength": 200,
|
|
274495
|
+
"description": "Unique identifier of the integration that was installed on the bot"
|
|
274496
|
+
},
|
|
274497
|
+
"configuration": {
|
|
274498
|
+
"type": "object",
|
|
274499
|
+
"properties": {
|
|
274500
|
+
"identifier": {
|
|
274501
|
+
"type": "object",
|
|
274502
|
+
"properties": {
|
|
274503
|
+
"linkTemplateScript": {
|
|
274504
|
+
"type": "string",
|
|
274505
|
+
"maxLength": 2e3,
|
|
274506
|
+
"description": "Title describing the task"
|
|
274507
|
+
},
|
|
274508
|
+
"required": {
|
|
274509
|
+
"type": "boolean"
|
|
274510
|
+
}
|
|
274511
|
+
},
|
|
274512
|
+
"required": [
|
|
274513
|
+
"required"
|
|
274514
|
+
],
|
|
274515
|
+
"description": "Identifier configuration of the [Integration](#schema_integration)",
|
|
274516
|
+
"additionalProperties": false
|
|
274517
|
+
},
|
|
274518
|
+
"schema": {
|
|
274519
|
+
"type": "object",
|
|
274520
|
+
"additionalProperties": true,
|
|
274521
|
+
"description": "Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`."
|
|
274522
|
+
}
|
|
274523
|
+
},
|
|
274524
|
+
"required": [
|
|
274525
|
+
"identifier"
|
|
274526
|
+
],
|
|
274527
|
+
"description": "Configuration definition",
|
|
274528
|
+
"additionalProperties": false
|
|
274529
|
+
},
|
|
274530
|
+
"channels": {
|
|
274531
|
+
"type": "object",
|
|
274532
|
+
"additionalProperties": {
|
|
274533
|
+
"type": "object",
|
|
274534
|
+
"properties": {
|
|
274535
|
+
"title": {
|
|
274536
|
+
"type": "string",
|
|
274537
|
+
"maxLength": 64,
|
|
274538
|
+
"description": "Title of the channel"
|
|
274539
|
+
},
|
|
274540
|
+
"description": {
|
|
274541
|
+
"type": "string",
|
|
274542
|
+
"maxLength": 256,
|
|
274543
|
+
"description": "Description of the channel"
|
|
274544
|
+
},
|
|
274545
|
+
"messages": {
|
|
274546
|
+
"type": "object",
|
|
274547
|
+
"additionalProperties": {
|
|
274548
|
+
"type": "object",
|
|
274549
|
+
"properties": {
|
|
274550
|
+
"schema": {
|
|
274551
|
+
"type": "object",
|
|
274552
|
+
"additionalProperties": true
|
|
274553
|
+
}
|
|
274554
|
+
},
|
|
274555
|
+
"required": [
|
|
274556
|
+
"schema"
|
|
274557
|
+
],
|
|
274558
|
+
"description": "Message definition",
|
|
274559
|
+
"additionalProperties": false
|
|
274560
|
+
}
|
|
274561
|
+
},
|
|
274562
|
+
"conversation": {
|
|
274563
|
+
"type": "object",
|
|
274564
|
+
"properties": {
|
|
274565
|
+
"tags": {
|
|
274566
|
+
"type": "object",
|
|
274567
|
+
"additionalProperties": {
|
|
274568
|
+
"type": "object",
|
|
274569
|
+
"properties": {
|
|
274570
|
+
"title": {
|
|
274571
|
+
"type": "string",
|
|
274572
|
+
"maxLength": 64,
|
|
274573
|
+
"description": "Title of the tag"
|
|
274574
|
+
},
|
|
274575
|
+
"description": {
|
|
274576
|
+
"type": "string",
|
|
274577
|
+
"maxLength": 256,
|
|
274578
|
+
"description": "Description of the tag"
|
|
274579
|
+
}
|
|
274580
|
+
},
|
|
274581
|
+
"description": "Definition of a tag that can be provided on the object",
|
|
274582
|
+
"additionalProperties": false
|
|
274583
|
+
}
|
|
274584
|
+
},
|
|
274585
|
+
"creation": {
|
|
274586
|
+
"type": "object",
|
|
274587
|
+
"properties": {
|
|
274588
|
+
"enabled": {
|
|
274589
|
+
"type": "boolean",
|
|
274590
|
+
"description": "Enable conversation creation"
|
|
274591
|
+
},
|
|
274592
|
+
"requiredTags": {
|
|
274593
|
+
"type": "array",
|
|
274594
|
+
"items": {
|
|
274595
|
+
"type": "string"
|
|
274596
|
+
},
|
|
274597
|
+
"description": "The list of tags that are required to be specified when calling the API directly to create a conversation."
|
|
274598
|
+
}
|
|
274599
|
+
},
|
|
274600
|
+
"required": [
|
|
274601
|
+
"enabled",
|
|
274602
|
+
"requiredTags"
|
|
274603
|
+
],
|
|
274604
|
+
"description": "The conversation creation setting determines how to create a conversation through the API directly. The integration will have to implement the `createConversation` functionality to support this setting.",
|
|
274605
|
+
"additionalProperties": false
|
|
274606
|
+
}
|
|
274607
|
+
},
|
|
274608
|
+
"required": [
|
|
274609
|
+
"tags",
|
|
274610
|
+
"creation"
|
|
274611
|
+
],
|
|
274612
|
+
"description": "Conversation object configuration",
|
|
274613
|
+
"additionalProperties": false
|
|
274614
|
+
},
|
|
274615
|
+
"message": {
|
|
274616
|
+
"type": "object",
|
|
274617
|
+
"properties": {
|
|
274618
|
+
"tags": {
|
|
274619
|
+
"type": "object",
|
|
274620
|
+
"additionalProperties": {
|
|
274621
|
+
"type": "object",
|
|
274622
|
+
"properties": {
|
|
274623
|
+
"title": {
|
|
274624
|
+
"type": "string",
|
|
274625
|
+
"maxLength": 64,
|
|
274626
|
+
"description": "Title of the tag"
|
|
274627
|
+
},
|
|
274628
|
+
"description": {
|
|
274629
|
+
"type": "string",
|
|
274630
|
+
"maxLength": 256,
|
|
274631
|
+
"description": "Description of the tag"
|
|
274632
|
+
}
|
|
274633
|
+
},
|
|
274634
|
+
"description": "Definition of a tag that can be provided on the object",
|
|
274635
|
+
"additionalProperties": false
|
|
274636
|
+
}
|
|
274637
|
+
}
|
|
274638
|
+
},
|
|
274639
|
+
"required": [
|
|
274640
|
+
"tags"
|
|
274641
|
+
],
|
|
274642
|
+
"description": "Message object configuration",
|
|
274643
|
+
"additionalProperties": false
|
|
274644
|
+
}
|
|
274645
|
+
},
|
|
274646
|
+
"required": [
|
|
274647
|
+
"messages",
|
|
274648
|
+
"conversation",
|
|
274649
|
+
"message"
|
|
274650
|
+
],
|
|
274651
|
+
"description": "Channel definition",
|
|
274652
|
+
"additionalProperties": false
|
|
274653
|
+
}
|
|
274654
|
+
},
|
|
274655
|
+
"states": {
|
|
274656
|
+
"type": "object",
|
|
274657
|
+
"additionalProperties": {
|
|
274658
|
+
"type": "object",
|
|
274659
|
+
"properties": {
|
|
274660
|
+
"type": {
|
|
274661
|
+
"type": "string",
|
|
274662
|
+
"enum": [
|
|
274663
|
+
"conversation",
|
|
274664
|
+
"user",
|
|
274665
|
+
"integration"
|
|
274666
|
+
],
|
|
274667
|
+
"description": "Type of the [State](#schema_state) (`conversation`, `user` or `integration`)"
|
|
274668
|
+
},
|
|
274669
|
+
"schema": {
|
|
274670
|
+
"type": "object",
|
|
274671
|
+
"additionalProperties": true,
|
|
274672
|
+
"description": "Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data."
|
|
274673
|
+
}
|
|
274674
|
+
},
|
|
274675
|
+
"required": [
|
|
274676
|
+
"type",
|
|
274677
|
+
"schema"
|
|
274678
|
+
],
|
|
274679
|
+
"description": "State definition",
|
|
274680
|
+
"additionalProperties": false
|
|
274681
|
+
}
|
|
274682
|
+
},
|
|
274683
|
+
"events": {
|
|
274684
|
+
"type": "object",
|
|
274685
|
+
"additionalProperties": {
|
|
274686
|
+
"type": "object",
|
|
274687
|
+
"properties": {
|
|
274688
|
+
"title": {
|
|
274689
|
+
"type": "string",
|
|
274690
|
+
"maxLength": 64,
|
|
274691
|
+
"description": "Title of the event"
|
|
274692
|
+
},
|
|
274693
|
+
"description": {
|
|
274694
|
+
"type": "string",
|
|
274695
|
+
"maxLength": 256,
|
|
274696
|
+
"description": "Description of the event"
|
|
274697
|
+
},
|
|
274698
|
+
"schema": {
|
|
274699
|
+
"type": "object",
|
|
274700
|
+
"additionalProperties": true
|
|
274701
|
+
}
|
|
274702
|
+
},
|
|
274703
|
+
"required": [
|
|
274704
|
+
"schema"
|
|
274705
|
+
],
|
|
274706
|
+
"description": "Event Definition",
|
|
274707
|
+
"additionalProperties": false
|
|
274708
|
+
}
|
|
274709
|
+
},
|
|
274710
|
+
"actions": {
|
|
274711
|
+
"type": "object",
|
|
274712
|
+
"additionalProperties": {
|
|
274713
|
+
"type": "object",
|
|
274714
|
+
"properties": {
|
|
274715
|
+
"title": {
|
|
274716
|
+
"type": "string",
|
|
274717
|
+
"maxLength": 64,
|
|
274718
|
+
"description": "Title of the action"
|
|
274719
|
+
},
|
|
274720
|
+
"description": {
|
|
274721
|
+
"type": "string",
|
|
274722
|
+
"maxLength": 256,
|
|
274723
|
+
"description": "Description of the action"
|
|
274724
|
+
},
|
|
274725
|
+
"input": {
|
|
274726
|
+
"type": "object",
|
|
274727
|
+
"properties": {
|
|
274728
|
+
"schema": {
|
|
274729
|
+
"type": "object",
|
|
274730
|
+
"additionalProperties": true
|
|
274731
|
+
}
|
|
274732
|
+
},
|
|
274733
|
+
"required": [
|
|
274734
|
+
"schema"
|
|
274735
|
+
],
|
|
274736
|
+
"additionalProperties": false
|
|
274737
|
+
},
|
|
274738
|
+
"output": {
|
|
274739
|
+
"type": "object",
|
|
274740
|
+
"properties": {
|
|
274741
|
+
"schema": {
|
|
274742
|
+
"type": "object",
|
|
274743
|
+
"additionalProperties": true
|
|
274744
|
+
}
|
|
274745
|
+
},
|
|
274746
|
+
"required": [
|
|
274747
|
+
"schema"
|
|
274748
|
+
],
|
|
274749
|
+
"additionalProperties": false
|
|
274750
|
+
}
|
|
274751
|
+
},
|
|
274752
|
+
"required": [
|
|
274753
|
+
"input",
|
|
274754
|
+
"output"
|
|
274755
|
+
],
|
|
274756
|
+
"description": "Action definition",
|
|
274757
|
+
"additionalProperties": false
|
|
274758
|
+
}
|
|
274759
|
+
},
|
|
274760
|
+
"user": {
|
|
274761
|
+
"type": "object",
|
|
274762
|
+
"properties": {
|
|
274763
|
+
"tags": {
|
|
274764
|
+
"type": "object",
|
|
274765
|
+
"additionalProperties": {
|
|
274766
|
+
"type": "object",
|
|
274767
|
+
"properties": {
|
|
274768
|
+
"title": {
|
|
274769
|
+
"type": "string",
|
|
274770
|
+
"maxLength": 64,
|
|
274771
|
+
"description": "Title of the tag"
|
|
274772
|
+
},
|
|
274773
|
+
"description": {
|
|
274774
|
+
"type": "string",
|
|
274775
|
+
"maxLength": 256,
|
|
274776
|
+
"description": "Description of the tag"
|
|
274777
|
+
}
|
|
274778
|
+
},
|
|
274779
|
+
"description": "Definition of a tag that can be provided on the object",
|
|
274780
|
+
"additionalProperties": false
|
|
274781
|
+
}
|
|
274782
|
+
},
|
|
274783
|
+
"creation": {
|
|
274784
|
+
"type": "object",
|
|
274785
|
+
"properties": {
|
|
274786
|
+
"enabled": {
|
|
274787
|
+
"type": "boolean",
|
|
274788
|
+
"description": "Enable user creation"
|
|
274789
|
+
},
|
|
274790
|
+
"requiredTags": {
|
|
274791
|
+
"type": "array",
|
|
274792
|
+
"items": {
|
|
274793
|
+
"type": "string"
|
|
274794
|
+
},
|
|
274795
|
+
"description": "The list of tags that are required to be specified when calling the API directly to create a user."
|
|
274796
|
+
}
|
|
274797
|
+
},
|
|
274798
|
+
"required": [
|
|
274799
|
+
"enabled",
|
|
274800
|
+
"requiredTags"
|
|
274801
|
+
],
|
|
274802
|
+
"description": "The user creation setting determines how to create a user through the API directly. The integration will have to implement the `createUser` functionality to support this setting.",
|
|
274803
|
+
"additionalProperties": false
|
|
274804
|
+
}
|
|
274805
|
+
},
|
|
274806
|
+
"required": [
|
|
274807
|
+
"tags",
|
|
274808
|
+
"creation"
|
|
274809
|
+
],
|
|
274810
|
+
"description": "User object configuration",
|
|
274811
|
+
"additionalProperties": false
|
|
274812
|
+
},
|
|
274813
|
+
"entities": {
|
|
274814
|
+
"type": "object",
|
|
274815
|
+
"additionalProperties": {
|
|
274816
|
+
"type": "object",
|
|
274817
|
+
"properties": {
|
|
274818
|
+
"title": {
|
|
274819
|
+
"type": "string",
|
|
274820
|
+
"maxLength": 64,
|
|
274821
|
+
"description": "Title of the entity"
|
|
274822
|
+
},
|
|
274823
|
+
"description": {
|
|
274824
|
+
"type": "string",
|
|
274825
|
+
"maxLength": 256,
|
|
274826
|
+
"description": "Description of the entity"
|
|
274827
|
+
},
|
|
274828
|
+
"schema": {
|
|
274829
|
+
"type": "object",
|
|
274830
|
+
"additionalProperties": true
|
|
274831
|
+
}
|
|
274832
|
+
},
|
|
274833
|
+
"required": [
|
|
274834
|
+
"schema"
|
|
274835
|
+
],
|
|
274836
|
+
"description": "Entity definition",
|
|
274837
|
+
"additionalProperties": false
|
|
274838
|
+
}
|
|
274839
|
+
},
|
|
274840
|
+
"dev": {
|
|
274841
|
+
"type": "boolean",
|
|
274842
|
+
"description": "Indicates if the integration is a development integration; Dev integrations run locally"
|
|
274843
|
+
},
|
|
274844
|
+
"title": {
|
|
274845
|
+
"type": "string",
|
|
274846
|
+
"minLength": 1,
|
|
274847
|
+
"maxLength": 64,
|
|
274848
|
+
"description": "Title of the integration. This is the name that will be displayed in the UI"
|
|
274849
|
+
},
|
|
274850
|
+
"description": {
|
|
274851
|
+
"type": "string",
|
|
274852
|
+
"maxLength": 256,
|
|
274853
|
+
"description": "Description of the integration. This is the description that will be displayed in the UI"
|
|
274854
|
+
},
|
|
274855
|
+
"iconUrl": {
|
|
274856
|
+
"type": "string",
|
|
274857
|
+
"description": "URL of the icon of the integration. This is the icon that will be displayed in the UI"
|
|
274858
|
+
},
|
|
274859
|
+
"readmeUrl": {
|
|
274860
|
+
"type": "string",
|
|
274861
|
+
"description": "URL of the readme of the integration. This is the readme that will be displayed in the UI"
|
|
274862
|
+
},
|
|
274863
|
+
"secrets": {
|
|
274864
|
+
"type": "array",
|
|
274865
|
+
"items": {
|
|
274866
|
+
"type": "string"
|
|
274867
|
+
},
|
|
274868
|
+
"description": "Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing."
|
|
274869
|
+
},
|
|
274870
|
+
"ownerWorkspace": {
|
|
274871
|
+
"type": "object",
|
|
274872
|
+
"properties": {
|
|
274873
|
+
"id": {
|
|
274874
|
+
"type": "string"
|
|
274875
|
+
},
|
|
274876
|
+
"handle": {
|
|
274877
|
+
"type": "string",
|
|
274878
|
+
"nullable": true
|
|
274879
|
+
},
|
|
274880
|
+
"name": {
|
|
274881
|
+
"type": "string"
|
|
274882
|
+
}
|
|
274883
|
+
},
|
|
274884
|
+
"required": [
|
|
274885
|
+
"id",
|
|
274886
|
+
"handle",
|
|
274887
|
+
"name"
|
|
274888
|
+
],
|
|
274889
|
+
"additionalProperties": false
|
|
274890
|
+
}
|
|
274891
|
+
},
|
|
274892
|
+
"required": [
|
|
274893
|
+
"id",
|
|
274894
|
+
"createdAt",
|
|
274895
|
+
"updatedAt",
|
|
274896
|
+
"identifier",
|
|
274897
|
+
"name",
|
|
274898
|
+
"version",
|
|
274899
|
+
"configuration",
|
|
274900
|
+
"channels",
|
|
274901
|
+
"states",
|
|
274902
|
+
"events",
|
|
274903
|
+
"actions",
|
|
274904
|
+
"user",
|
|
274905
|
+
"entities",
|
|
274906
|
+
"dev",
|
|
274907
|
+
"title",
|
|
274908
|
+
"description",
|
|
274909
|
+
"iconUrl",
|
|
274910
|
+
"readmeUrl",
|
|
274911
|
+
"secrets",
|
|
274912
|
+
"ownerWorkspace"
|
|
274913
|
+
],
|
|
274914
|
+
"additionalProperties": false
|
|
273962
274915
|
}
|
|
273963
274916
|
},
|
|
273964
274917
|
"required": [
|
|
@@ -278652,6 +279605,11 @@ var state = {
|
|
|
278652
279605
|
"description": "File access policies",
|
|
278653
279606
|
"in": "header"
|
|
278654
279607
|
},
|
|
279608
|
+
"x-index": {
|
|
279609
|
+
"type": "string",
|
|
279610
|
+
"description": 'Set to a value of "true" to index the file in vector storage. Only PDFs, Office documents, and text-based files are currently supported. Note that if a file is indexed, it will count towards the Vector Storage quota of the workspace rather than the File Storage quota.',
|
|
279611
|
+
"in": "header"
|
|
279612
|
+
},
|
|
278655
279613
|
"Content-Type": {
|
|
278656
279614
|
"type": "string",
|
|
278657
279615
|
"description": "File content type",
|
|
@@ -278729,6 +279687,18 @@ var state = {
|
|
|
278729
279687
|
"items": {
|
|
278730
279688
|
"type": "string"
|
|
278731
279689
|
}
|
|
279690
|
+
},
|
|
279691
|
+
"indexingStatus": {
|
|
279692
|
+
"type": "string",
|
|
279693
|
+
"enum": [
|
|
279694
|
+
"PENDING",
|
|
279695
|
+
"IN_PROGRESS",
|
|
279696
|
+
"COMPLETE",
|
|
279697
|
+
"FAILED"
|
|
279698
|
+
]
|
|
279699
|
+
},
|
|
279700
|
+
"indexingFailureReason": {
|
|
279701
|
+
"type": "string"
|
|
278732
279702
|
}
|
|
278733
279703
|
},
|
|
278734
279704
|
"required": [
|
|
@@ -278833,90 +279803,269 @@ var state = {
|
|
|
278833
279803
|
"description": "User role",
|
|
278834
279804
|
"type": "string",
|
|
278835
279805
|
"required": false
|
|
278836
|
-
},
|
|
278837
|
-
"botId": {
|
|
278838
|
-
"type": "string",
|
|
278839
|
-
"description": "Bot ID",
|
|
278840
|
-
"in": "path"
|
|
278841
|
-
},
|
|
278842
|
-
"tags": {
|
|
278843
|
-
"
|
|
278844
|
-
"
|
|
278845
|
-
"description": "Tags to filter files by as a JSON string representing an object of key-value pairs to match files' tags against."
|
|
279806
|
+
},
|
|
279807
|
+
"botId": {
|
|
279808
|
+
"type": "string",
|
|
279809
|
+
"description": "Bot ID",
|
|
279810
|
+
"in": "path"
|
|
279811
|
+
},
|
|
279812
|
+
"tags": {
|
|
279813
|
+
"type": "string",
|
|
279814
|
+
"in": "query",
|
|
279815
|
+
"description": "Tags to filter files by as a JSON string representing an object of key-value pairs to match files' tags against."
|
|
279816
|
+
}
|
|
279817
|
+
},
|
|
279818
|
+
"response": {
|
|
279819
|
+
"description": "Returns the list of files related to the bot.",
|
|
279820
|
+
"schema": {
|
|
279821
|
+
"type": "object",
|
|
279822
|
+
"properties": {
|
|
279823
|
+
"files": {
|
|
279824
|
+
"type": "array",
|
|
279825
|
+
"items": {
|
|
279826
|
+
"type": "object",
|
|
279827
|
+
"properties": {
|
|
279828
|
+
"id": {
|
|
279829
|
+
"type": "string"
|
|
279830
|
+
},
|
|
279831
|
+
"botId": {
|
|
279832
|
+
"type": "string"
|
|
279833
|
+
},
|
|
279834
|
+
"filename": {
|
|
279835
|
+
"type": "string"
|
|
279836
|
+
},
|
|
279837
|
+
"bytes": {
|
|
279838
|
+
"type": "number",
|
|
279839
|
+
"nullable": true
|
|
279840
|
+
},
|
|
279841
|
+
"createdAt": {
|
|
279842
|
+
"type": "string"
|
|
279843
|
+
},
|
|
279844
|
+
"updatedAt": {
|
|
279845
|
+
"type": "string"
|
|
279846
|
+
},
|
|
279847
|
+
"accessPolicies": {
|
|
279848
|
+
"type": "array",
|
|
279849
|
+
"items": {
|
|
279850
|
+
"type": "string"
|
|
279851
|
+
}
|
|
279852
|
+
},
|
|
279853
|
+
"indexingStatus": {
|
|
279854
|
+
"type": "string",
|
|
279855
|
+
"enum": [
|
|
279856
|
+
"PENDING",
|
|
279857
|
+
"IN_PROGRESS",
|
|
279858
|
+
"COMPLETE",
|
|
279859
|
+
"FAILED"
|
|
279860
|
+
]
|
|
279861
|
+
},
|
|
279862
|
+
"indexingFailureReason": {
|
|
279863
|
+
"type": "string"
|
|
279864
|
+
}
|
|
279865
|
+
},
|
|
279866
|
+
"required": [
|
|
279867
|
+
"id",
|
|
279868
|
+
"botId",
|
|
279869
|
+
"filename",
|
|
279870
|
+
"bytes",
|
|
279871
|
+
"createdAt",
|
|
279872
|
+
"updatedAt",
|
|
279873
|
+
"accessPolicies"
|
|
279874
|
+
]
|
|
279875
|
+
}
|
|
279876
|
+
},
|
|
279877
|
+
"meta": {
|
|
279878
|
+
"type": "object",
|
|
279879
|
+
"properties": {
|
|
279880
|
+
"nextToken": {
|
|
279881
|
+
"type": "string",
|
|
279882
|
+
"description": "The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint."
|
|
279883
|
+
}
|
|
279884
|
+
},
|
|
279885
|
+
"additionalProperties": false
|
|
279886
|
+
}
|
|
279887
|
+
},
|
|
279888
|
+
"required": [
|
|
279889
|
+
"files",
|
|
279890
|
+
"meta"
|
|
279891
|
+
],
|
|
279892
|
+
"title": "listFilesResponse",
|
|
279893
|
+
"additionalProperties": false
|
|
279894
|
+
}
|
|
279895
|
+
}
|
|
279896
|
+
},
|
|
279897
|
+
"getFileMetadata": {
|
|
279898
|
+
"name": "getFileMetadata",
|
|
279899
|
+
"path": "/v1/files/{id}/metadata",
|
|
279900
|
+
"description": "Get file metadata",
|
|
279901
|
+
"method": "get",
|
|
279902
|
+
"section": "files",
|
|
279903
|
+
"parameters": {
|
|
279904
|
+
"id": {
|
|
279905
|
+
"type": "string",
|
|
279906
|
+
"description": "File ID",
|
|
279907
|
+
"in": "path"
|
|
279908
|
+
},
|
|
279909
|
+
"x-bot-id": {
|
|
279910
|
+
"in": "header",
|
|
279911
|
+
"description": "Bot id",
|
|
279912
|
+
"type": "string",
|
|
279913
|
+
"required": true
|
|
279914
|
+
},
|
|
279915
|
+
"x-integration-id": {
|
|
279916
|
+
"in": "header",
|
|
279917
|
+
"description": "Integration id",
|
|
279918
|
+
"type": "string",
|
|
279919
|
+
"required": false
|
|
279920
|
+
},
|
|
279921
|
+
"x-user-id": {
|
|
279922
|
+
"in": "header",
|
|
279923
|
+
"description": "User id",
|
|
279924
|
+
"type": "string",
|
|
279925
|
+
"required": false
|
|
279926
|
+
},
|
|
279927
|
+
"x-user-role": {
|
|
279928
|
+
"in": "header",
|
|
279929
|
+
"description": "User role",
|
|
279930
|
+
"type": "string",
|
|
279931
|
+
"required": false
|
|
279932
|
+
}
|
|
279933
|
+
},
|
|
279934
|
+
"response": {
|
|
279935
|
+
"description": "The metadata of the file.",
|
|
279936
|
+
"schema": {
|
|
279937
|
+
"type": "object",
|
|
279938
|
+
"properties": {
|
|
279939
|
+
"file": {
|
|
279940
|
+
"type": "object",
|
|
279941
|
+
"properties": {
|
|
279942
|
+
"id": {
|
|
279943
|
+
"type": "string"
|
|
279944
|
+
},
|
|
279945
|
+
"botId": {
|
|
279946
|
+
"type": "string"
|
|
279947
|
+
},
|
|
279948
|
+
"filename": {
|
|
279949
|
+
"type": "string"
|
|
279950
|
+
},
|
|
279951
|
+
"bytes": {
|
|
279952
|
+
"type": "number",
|
|
279953
|
+
"nullable": true
|
|
279954
|
+
},
|
|
279955
|
+
"tags": {
|
|
279956
|
+
"type": "object",
|
|
279957
|
+
"additionalProperties": {
|
|
279958
|
+
"type": "string",
|
|
279959
|
+
"maxLength": 1e3
|
|
279960
|
+
},
|
|
279961
|
+
"description": "Set of tags that you can attach to a file. Individual keys can be unset by setting them to a `null` value."
|
|
279962
|
+
},
|
|
279963
|
+
"createdAt": {
|
|
279964
|
+
"type": "string"
|
|
279965
|
+
},
|
|
279966
|
+
"updatedAt": {
|
|
279967
|
+
"type": "string"
|
|
279968
|
+
},
|
|
279969
|
+
"accessPolicies": {
|
|
279970
|
+
"type": "array",
|
|
279971
|
+
"items": {
|
|
279972
|
+
"type": "string"
|
|
279973
|
+
}
|
|
279974
|
+
},
|
|
279975
|
+
"indexingStatus": {
|
|
279976
|
+
"type": "string",
|
|
279977
|
+
"enum": [
|
|
279978
|
+
"PENDING",
|
|
279979
|
+
"IN_PROGRESS",
|
|
279980
|
+
"COMPLETE",
|
|
279981
|
+
"FAILED"
|
|
279982
|
+
]
|
|
279983
|
+
},
|
|
279984
|
+
"indexingFailureReason": {
|
|
279985
|
+
"type": "string"
|
|
279986
|
+
}
|
|
279987
|
+
},
|
|
279988
|
+
"required": [
|
|
279989
|
+
"id",
|
|
279990
|
+
"botId",
|
|
279991
|
+
"filename",
|
|
279992
|
+
"bytes",
|
|
279993
|
+
"tags",
|
|
279994
|
+
"createdAt",
|
|
279995
|
+
"updatedAt",
|
|
279996
|
+
"accessPolicies"
|
|
279997
|
+
],
|
|
279998
|
+
"additionalProperties": false
|
|
279999
|
+
}
|
|
280000
|
+
},
|
|
280001
|
+
"required": [
|
|
280002
|
+
"file"
|
|
280003
|
+
],
|
|
280004
|
+
"title": "getFileMetadataResponse",
|
|
280005
|
+
"additionalProperties": false
|
|
280006
|
+
}
|
|
280007
|
+
}
|
|
280008
|
+
},
|
|
280009
|
+
"getFileContent": {
|
|
280010
|
+
"name": "getFileContent",
|
|
280011
|
+
"path": "/v1/files/{id}/content",
|
|
280012
|
+
"description": "Returns a presigned URL to download the file content.",
|
|
280013
|
+
"method": "get",
|
|
280014
|
+
"section": "files",
|
|
280015
|
+
"parameters": {
|
|
280016
|
+
"id": {
|
|
280017
|
+
"type": "string",
|
|
280018
|
+
"description": "File ID",
|
|
280019
|
+
"in": "path"
|
|
280020
|
+
},
|
|
280021
|
+
"x-bot-id": {
|
|
280022
|
+
"in": "header",
|
|
280023
|
+
"description": "Bot id",
|
|
280024
|
+
"type": "string",
|
|
280025
|
+
"required": true
|
|
280026
|
+
},
|
|
280027
|
+
"x-integration-id": {
|
|
280028
|
+
"in": "header",
|
|
280029
|
+
"description": "Integration id",
|
|
280030
|
+
"type": "string",
|
|
280031
|
+
"required": false
|
|
280032
|
+
},
|
|
280033
|
+
"x-user-id": {
|
|
280034
|
+
"in": "header",
|
|
280035
|
+
"description": "User id",
|
|
280036
|
+
"type": "string",
|
|
280037
|
+
"required": false
|
|
280038
|
+
},
|
|
280039
|
+
"x-user-role": {
|
|
280040
|
+
"in": "header",
|
|
280041
|
+
"description": "User role",
|
|
280042
|
+
"type": "string",
|
|
280043
|
+
"required": false
|
|
278846
280044
|
}
|
|
278847
280045
|
},
|
|
278848
280046
|
"response": {
|
|
278849
|
-
"description": "Returns
|
|
280047
|
+
"description": "Returns a temporary pre-signed URL to download the file content.",
|
|
278850
280048
|
"schema": {
|
|
278851
280049
|
"type": "object",
|
|
278852
280050
|
"properties": {
|
|
278853
|
-
"
|
|
278854
|
-
"type": "
|
|
278855
|
-
"
|
|
278856
|
-
"type": "object",
|
|
278857
|
-
"properties": {
|
|
278858
|
-
"id": {
|
|
278859
|
-
"type": "string"
|
|
278860
|
-
},
|
|
278861
|
-
"botId": {
|
|
278862
|
-
"type": "string"
|
|
278863
|
-
},
|
|
278864
|
-
"filename": {
|
|
278865
|
-
"type": "string"
|
|
278866
|
-
},
|
|
278867
|
-
"bytes": {
|
|
278868
|
-
"type": "number",
|
|
278869
|
-
"nullable": true
|
|
278870
|
-
},
|
|
278871
|
-
"createdAt": {
|
|
278872
|
-
"type": "string"
|
|
278873
|
-
},
|
|
278874
|
-
"updatedAt": {
|
|
278875
|
-
"type": "string"
|
|
278876
|
-
},
|
|
278877
|
-
"accessPolicies": {
|
|
278878
|
-
"type": "array",
|
|
278879
|
-
"items": {
|
|
278880
|
-
"type": "string"
|
|
278881
|
-
}
|
|
278882
|
-
}
|
|
278883
|
-
},
|
|
278884
|
-
"required": [
|
|
278885
|
-
"id",
|
|
278886
|
-
"botId",
|
|
278887
|
-
"filename",
|
|
278888
|
-
"bytes",
|
|
278889
|
-
"createdAt",
|
|
278890
|
-
"updatedAt",
|
|
278891
|
-
"accessPolicies"
|
|
278892
|
-
]
|
|
278893
|
-
}
|
|
278894
|
-
},
|
|
278895
|
-
"meta": {
|
|
278896
|
-
"type": "object",
|
|
278897
|
-
"properties": {
|
|
278898
|
-
"nextToken": {
|
|
278899
|
-
"type": "string",
|
|
278900
|
-
"description": "The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint."
|
|
278901
|
-
}
|
|
278902
|
-
},
|
|
278903
|
-
"additionalProperties": false
|
|
280051
|
+
"url": {
|
|
280052
|
+
"type": "string",
|
|
280053
|
+
"description": "Temporary pre-signed URL to download the file, should be used shortly after retrieving and should not be stored long-term as the URL will expire after a short timeframe."
|
|
278904
280054
|
}
|
|
278905
280055
|
},
|
|
278906
280056
|
"required": [
|
|
278907
|
-
"
|
|
278908
|
-
"meta"
|
|
280057
|
+
"url"
|
|
278909
280058
|
],
|
|
278910
|
-
"title": "
|
|
280059
|
+
"title": "getFileContentResponse",
|
|
278911
280060
|
"additionalProperties": false
|
|
278912
280061
|
}
|
|
278913
280062
|
}
|
|
278914
280063
|
},
|
|
278915
|
-
"
|
|
278916
|
-
"name": "
|
|
280064
|
+
"updateFileMetadata": {
|
|
280065
|
+
"name": "updateFileMetadata",
|
|
278917
280066
|
"path": "/v1/files/{id}/metadata",
|
|
278918
|
-
"description": "
|
|
278919
|
-
"method": "
|
|
280067
|
+
"description": "Update file metadata",
|
|
280068
|
+
"method": "put",
|
|
278920
280069
|
"section": "files",
|
|
278921
280070
|
"parameters": {
|
|
278922
280071
|
"id": {
|
|
@@ -278949,81 +280098,56 @@ var state = {
|
|
|
278949
280098
|
"required": false
|
|
278950
280099
|
}
|
|
278951
280100
|
},
|
|
280101
|
+
"requestBody": {
|
|
280102
|
+
"description": "File metadata to update.",
|
|
280103
|
+
"schema": {
|
|
280104
|
+
"type": "object",
|
|
280105
|
+
"properties": {
|
|
280106
|
+
"tags": {
|
|
280107
|
+
"type": "object",
|
|
280108
|
+
"additionalProperties": {
|
|
280109
|
+
"type": "string",
|
|
280110
|
+
"maxLength": 1e3
|
|
280111
|
+
},
|
|
280112
|
+
"description": "Set of tags that you can attach to a file. Individual keys can be unset by setting them to a `null` value."
|
|
280113
|
+
}
|
|
280114
|
+
},
|
|
280115
|
+
"required": [
|
|
280116
|
+
"tags"
|
|
280117
|
+
],
|
|
280118
|
+
"title": "updateFileMetadataBody",
|
|
280119
|
+
"additionalProperties": false
|
|
280120
|
+
}
|
|
280121
|
+
},
|
|
278952
280122
|
"response": {
|
|
278953
|
-
"description": "
|
|
280123
|
+
"description": "An object containing the updated metadata of the file.",
|
|
278954
280124
|
"schema": {
|
|
278955
280125
|
"type": "object",
|
|
278956
280126
|
"properties": {
|
|
278957
|
-
"
|
|
280127
|
+
"tags": {
|
|
278958
280128
|
"type": "object",
|
|
278959
|
-
"
|
|
278960
|
-
"
|
|
278961
|
-
|
|
278962
|
-
},
|
|
278963
|
-
"botId": {
|
|
278964
|
-
"type": "string"
|
|
278965
|
-
},
|
|
278966
|
-
"filename": {
|
|
278967
|
-
"type": "string"
|
|
278968
|
-
},
|
|
278969
|
-
"bytes": {
|
|
278970
|
-
"type": "number",
|
|
278971
|
-
"nullable": true
|
|
278972
|
-
},
|
|
278973
|
-
"tags": {
|
|
278974
|
-
"type": "object",
|
|
278975
|
-
"additionalProperties": {
|
|
278976
|
-
"type": "string",
|
|
278977
|
-
"maxLength": 1e3
|
|
278978
|
-
},
|
|
278979
|
-
"description": "Set of tags that you can attach to a file. Individual keys can be unset by setting them to a `null` value."
|
|
278980
|
-
},
|
|
278981
|
-
"createdAt": {
|
|
278982
|
-
"type": "string"
|
|
278983
|
-
},
|
|
278984
|
-
"updatedAt": {
|
|
278985
|
-
"type": "string"
|
|
278986
|
-
},
|
|
278987
|
-
"accessPolicies": {
|
|
278988
|
-
"type": "array",
|
|
278989
|
-
"items": {
|
|
278990
|
-
"type": "string"
|
|
278991
|
-
}
|
|
278992
|
-
}
|
|
280129
|
+
"additionalProperties": {
|
|
280130
|
+
"type": "string",
|
|
280131
|
+
"maxLength": 1e3
|
|
278993
280132
|
},
|
|
278994
|
-
"
|
|
278995
|
-
"id",
|
|
278996
|
-
"botId",
|
|
278997
|
-
"filename",
|
|
278998
|
-
"bytes",
|
|
278999
|
-
"tags",
|
|
279000
|
-
"createdAt",
|
|
279001
|
-
"updatedAt",
|
|
279002
|
-
"accessPolicies"
|
|
279003
|
-
],
|
|
279004
|
-
"additionalProperties": false
|
|
280133
|
+
"description": "The tags to update as an object of key/value pairs. A tag key can be set to a null value to delete it."
|
|
279005
280134
|
}
|
|
279006
280135
|
},
|
|
279007
280136
|
"required": [
|
|
279008
|
-
"
|
|
280137
|
+
"tags"
|
|
279009
280138
|
],
|
|
279010
|
-
"title": "
|
|
280139
|
+
"title": "updateFileMetadataResponse",
|
|
279011
280140
|
"additionalProperties": false
|
|
279012
280141
|
}
|
|
279013
280142
|
}
|
|
279014
280143
|
},
|
|
279015
|
-
"
|
|
279016
|
-
"name": "
|
|
279017
|
-
"path": "/v1/files/{
|
|
279018
|
-
"description": "
|
|
280144
|
+
"searchFiles": {
|
|
280145
|
+
"name": "searchFiles",
|
|
280146
|
+
"path": "/v1/files/bot/{botId}/search",
|
|
280147
|
+
"description": "Search files",
|
|
279019
280148
|
"method": "get",
|
|
279020
280149
|
"section": "files",
|
|
279021
280150
|
"parameters": {
|
|
279022
|
-
"id": {
|
|
279023
|
-
"type": "string",
|
|
279024
|
-
"description": "File ID",
|
|
279025
|
-
"in": "path"
|
|
279026
|
-
},
|
|
279027
280151
|
"x-bot-id": {
|
|
279028
280152
|
"in": "header",
|
|
279029
280153
|
"description": "Bot id",
|
|
@@ -279047,100 +280171,70 @@ var state = {
|
|
|
279047
280171
|
"description": "User role",
|
|
279048
280172
|
"type": "string",
|
|
279049
280173
|
"required": false
|
|
279050
|
-
}
|
|
279051
|
-
},
|
|
279052
|
-
"response": {
|
|
279053
|
-
"description": "Redirects to a presigned URL to download the file content.",
|
|
279054
|
-
"status": 302,
|
|
279055
|
-
"schema": {
|
|
279056
|
-
"type": "object",
|
|
279057
|
-
"properties": {
|
|
279058
|
-
"data": {
|
|
279059
|
-
"nullable": true
|
|
279060
|
-
}
|
|
279061
|
-
},
|
|
279062
|
-
"title": "getFileContentResponse",
|
|
279063
|
-
"format": "binary",
|
|
279064
|
-
"additionalProperties": false
|
|
279065
|
-
}
|
|
279066
|
-
}
|
|
279067
|
-
},
|
|
279068
|
-
"updateFileMetadata": {
|
|
279069
|
-
"name": "updateFileMetadata",
|
|
279070
|
-
"path": "/v1/files/{id}/metadata",
|
|
279071
|
-
"description": "Update file metadata",
|
|
279072
|
-
"method": "put",
|
|
279073
|
-
"section": "files",
|
|
279074
|
-
"parameters": {
|
|
279075
|
-
"id": {
|
|
279076
|
-
"type": "string",
|
|
279077
|
-
"description": "File ID",
|
|
279078
|
-
"in": "path"
|
|
279079
280174
|
},
|
|
279080
|
-
"
|
|
279081
|
-
"in": "header",
|
|
279082
|
-
"description": "Bot id",
|
|
280175
|
+
"botId": {
|
|
279083
280176
|
"type": "string",
|
|
279084
|
-
"
|
|
280177
|
+
"description": "Bot ID",
|
|
280178
|
+
"in": "path"
|
|
279085
280179
|
},
|
|
279086
|
-
"
|
|
279087
|
-
"in": "header",
|
|
279088
|
-
"description": "Integration id",
|
|
280180
|
+
"tags": {
|
|
279089
280181
|
"type": "string",
|
|
279090
|
-
"
|
|
280182
|
+
"in": "query",
|
|
280183
|
+
"description": "Tags to filter files by as a JSON string representing an object of key-value pairs to match files' tags against."
|
|
279091
280184
|
},
|
|
279092
|
-
"
|
|
279093
|
-
"in": "
|
|
279094
|
-
"description": "User id",
|
|
280185
|
+
"query": {
|
|
280186
|
+
"in": "query",
|
|
279095
280187
|
"type": "string",
|
|
279096
|
-
"
|
|
280188
|
+
"description": "Query expressed in natural language to retrieve matching text passages within all files using semantical search.",
|
|
280189
|
+
"required": true
|
|
279097
280190
|
},
|
|
279098
|
-
"
|
|
279099
|
-
"in": "
|
|
279100
|
-
"description": "User role",
|
|
280191
|
+
"limit": {
|
|
280192
|
+
"in": "query",
|
|
279101
280193
|
"type": "string",
|
|
279102
|
-
"
|
|
279103
|
-
}
|
|
279104
|
-
},
|
|
279105
|
-
"requestBody": {
|
|
279106
|
-
"description": "File metadata to update.",
|
|
279107
|
-
"schema": {
|
|
279108
|
-
"type": "object",
|
|
279109
|
-
"properties": {
|
|
279110
|
-
"tags": {
|
|
279111
|
-
"type": "object",
|
|
279112
|
-
"additionalProperties": {
|
|
279113
|
-
"type": "string",
|
|
279114
|
-
"maxLength": 1e3
|
|
279115
|
-
},
|
|
279116
|
-
"description": "Set of tags that you can attach to a file. Individual keys can be unset by setting them to a `null` value."
|
|
279117
|
-
}
|
|
279118
|
-
},
|
|
279119
|
-
"required": [
|
|
279120
|
-
"tags"
|
|
279121
|
-
],
|
|
279122
|
-
"title": "updateFileMetadataBody",
|
|
279123
|
-
"additionalProperties": false
|
|
280194
|
+
"description": "The maximum number of passages to return."
|
|
279124
280195
|
}
|
|
279125
280196
|
},
|
|
279126
280197
|
"response": {
|
|
279127
|
-
"description": "
|
|
280198
|
+
"description": "Returns the passages matching the query.",
|
|
279128
280199
|
"schema": {
|
|
279129
280200
|
"type": "object",
|
|
279130
280201
|
"properties": {
|
|
279131
|
-
"
|
|
279132
|
-
"type": "
|
|
279133
|
-
"
|
|
279134
|
-
"type": "
|
|
279135
|
-
"
|
|
279136
|
-
|
|
279137
|
-
|
|
280202
|
+
"passages": {
|
|
280203
|
+
"type": "array",
|
|
280204
|
+
"items": {
|
|
280205
|
+
"type": "object",
|
|
280206
|
+
"properties": {
|
|
280207
|
+
"fileId": {
|
|
280208
|
+
"type": "string"
|
|
280209
|
+
},
|
|
280210
|
+
"score": {
|
|
280211
|
+
"type": "number"
|
|
280212
|
+
},
|
|
280213
|
+
"content": {
|
|
280214
|
+
"type": "string"
|
|
280215
|
+
},
|
|
280216
|
+
"tags": {
|
|
280217
|
+
"type": "object",
|
|
280218
|
+
"additionalProperties": {
|
|
280219
|
+
"type": "string",
|
|
280220
|
+
"maxLength": 1e3
|
|
280221
|
+
},
|
|
280222
|
+
"description": "Set of tags that you can attach to a file. Individual keys can be unset by setting them to a `null` value."
|
|
280223
|
+
}
|
|
280224
|
+
},
|
|
280225
|
+
"required": [
|
|
280226
|
+
"fileId",
|
|
280227
|
+
"score",
|
|
280228
|
+
"content",
|
|
280229
|
+
"tags"
|
|
280230
|
+
]
|
|
280231
|
+
}
|
|
279138
280232
|
}
|
|
279139
280233
|
},
|
|
279140
280234
|
"required": [
|
|
279141
|
-
"
|
|
280235
|
+
"passages"
|
|
279142
280236
|
],
|
|
279143
|
-
"title": "
|
|
280237
|
+
"title": "searchFilesResponse",
|
|
279144
280238
|
"additionalProperties": false
|
|
279145
280239
|
}
|
|
279146
280240
|
}
|
|
@@ -279853,7 +280947,7 @@ var state = {
|
|
|
279853
280947
|
"title": "Botpress API",
|
|
279854
280948
|
"description": "API for Botpress Cloud",
|
|
279855
280949
|
"server": "https://api.botpress.cloud",
|
|
279856
|
-
"version": "0.19.
|
|
280950
|
+
"version": "0.19.2",
|
|
279857
280951
|
"prefix": "v1"
|
|
279858
280952
|
},
|
|
279859
280953
|
"errors": [
|
|
@@ -280120,6 +281214,7 @@ var state = {
|
|
|
280120
281214
|
"getFileMetadataResponse": true,
|
|
280121
281215
|
"getFileContentResponse": true,
|
|
280122
281216
|
"updateFileMetadataResponse": true,
|
|
281217
|
+
"searchFilesResponse": true,
|
|
280123
281218
|
"listTablesResponse": true,
|
|
280124
281219
|
"getTableResponse": true,
|
|
280125
281220
|
"createTableResponse": true,
|
|
@@ -282171,6 +283266,18 @@ var state = {
|
|
|
282171
283266
|
"items": {
|
|
282172
283267
|
"type": "string"
|
|
282173
283268
|
}
|
|
283269
|
+
},
|
|
283270
|
+
"indexingStatus": {
|
|
283271
|
+
"type": "string",
|
|
283272
|
+
"enum": [
|
|
283273
|
+
"PENDING",
|
|
283274
|
+
"IN_PROGRESS",
|
|
283275
|
+
"COMPLETE",
|
|
283276
|
+
"FAILED"
|
|
283277
|
+
]
|
|
283278
|
+
},
|
|
283279
|
+
"indexingFailureReason": {
|
|
283280
|
+
"type": "string"
|
|
282174
283281
|
}
|
|
282175
283282
|
},
|
|
282176
283283
|
"required": [
|
|
@@ -282447,7 +283554,8 @@ var state = {
|
|
|
282447
283554
|
"listFiles",
|
|
282448
283555
|
"getFileMetadata",
|
|
282449
283556
|
"getFileContent",
|
|
282450
|
-
"updateFileMetadata"
|
|
283557
|
+
"updateFileMetadata",
|
|
283558
|
+
"searchFiles"
|
|
282451
283559
|
],
|
|
282452
283560
|
"schema": "File"
|
|
282453
283561
|
}
|