@botpress/api 0.18.2 → 0.18.4
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 +434 -177
- package/dist/src/gen/state.d.ts +148 -0
- package/package.json +2 -2
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +164 -2
package/dist/index.js
CHANGED
|
@@ -8914,9 +8914,9 @@ var require_logform = __commonJS({
|
|
|
8914
8914
|
}
|
|
8915
8915
|
});
|
|
8916
8916
|
|
|
8917
|
-
// ../../node_modules/.pnpm/winston@3.
|
|
8917
|
+
// ../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/common.js
|
|
8918
8918
|
var require_common = __commonJS({
|
|
8919
|
-
"../../node_modules/.pnpm/winston@3.
|
|
8919
|
+
"../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/common.js"(exports) {
|
|
8920
8920
|
"use strict";
|
|
8921
8921
|
var { format } = require("util");
|
|
8922
8922
|
exports.warn = {
|
|
@@ -8951,13 +8951,13 @@ var require_common = __commonJS({
|
|
|
8951
8951
|
}
|
|
8952
8952
|
});
|
|
8953
8953
|
|
|
8954
|
-
// ../../node_modules/.pnpm/winston@3.
|
|
8954
|
+
// ../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/package.json
|
|
8955
8955
|
var require_package = __commonJS({
|
|
8956
|
-
"../../node_modules/.pnpm/winston@3.
|
|
8956
|
+
"../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/package.json"(exports, module2) {
|
|
8957
8957
|
module2.exports = {
|
|
8958
8958
|
name: "winston",
|
|
8959
8959
|
description: "A logger for just about everything.",
|
|
8960
|
-
version: "3.
|
|
8960
|
+
version: "3.12.0",
|
|
8961
8961
|
author: "Charlie Robbins <charlie.robbins@gmail.com>",
|
|
8962
8962
|
maintainers: [
|
|
8963
8963
|
"David Hyde <dabh@alumni.stanford.edu>"
|
|
@@ -8990,24 +8990,24 @@ var require_package = __commonJS({
|
|
|
8990
8990
|
"safe-stable-stringify": "^2.3.1",
|
|
8991
8991
|
"stack-trace": "0.0.x",
|
|
8992
8992
|
"triple-beam": "^1.3.0",
|
|
8993
|
-
"winston-transport": "^4.
|
|
8993
|
+
"winston-transport": "^4.7.0"
|
|
8994
8994
|
},
|
|
8995
8995
|
devDependencies: {
|
|
8996
|
-
"@babel/cli": "^7.
|
|
8997
|
-
"@babel/core": "^7.
|
|
8998
|
-
"@babel/preset-env": "^7.
|
|
8996
|
+
"@babel/cli": "^7.23.9",
|
|
8997
|
+
"@babel/core": "^7.24.0",
|
|
8998
|
+
"@babel/preset-env": "^7.24.0",
|
|
8999
8999
|
"@dabh/eslint-config-populist": "^5.0.0",
|
|
9000
|
-
"@types/node": "^20.
|
|
9000
|
+
"@types/node": "^20.11.24",
|
|
9001
9001
|
"abstract-winston-transport": "^0.5.1",
|
|
9002
9002
|
assume: "^2.2.0",
|
|
9003
9003
|
"cross-spawn-async": "^2.2.5",
|
|
9004
|
-
eslint: "^8.
|
|
9004
|
+
eslint: "^8.57.0",
|
|
9005
9005
|
hock: "^1.4.1",
|
|
9006
|
-
mocha: "
|
|
9006
|
+
mocha: "^10.3.0",
|
|
9007
9007
|
nyc: "^15.1.0",
|
|
9008
9008
|
rimraf: "^5.0.5",
|
|
9009
9009
|
split2: "^4.1.0",
|
|
9010
|
-
"std-mocks": "^
|
|
9010
|
+
"std-mocks": "^2.0.0",
|
|
9011
9011
|
through2: "^4.0.2",
|
|
9012
9012
|
"winston-compat": "^0.1.5"
|
|
9013
9013
|
},
|
|
@@ -9016,7 +9016,7 @@ var require_package = __commonJS({
|
|
|
9016
9016
|
types: "./index.d.ts",
|
|
9017
9017
|
scripts: {
|
|
9018
9018
|
lint: "eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",
|
|
9019
|
-
test: "mocha",
|
|
9019
|
+
test: "rimraf test/fixtures/logs/* && mocha",
|
|
9020
9020
|
"test:coverage": "nyc npm run test:unit",
|
|
9021
9021
|
"test:unit": "mocha test/unit",
|
|
9022
9022
|
"test:integration": "mocha test/integration",
|
|
@@ -11652,75 +11652,9 @@ var require_stream_writable = __commonJS({
|
|
|
11652
11652
|
}
|
|
11653
11653
|
});
|
|
11654
11654
|
|
|
11655
|
-
// ../../node_modules/.pnpm/winston-transport@4.
|
|
11656
|
-
var
|
|
11657
|
-
"../../node_modules/.pnpm/winston-transport@4.
|
|
11658
|
-
"use strict";
|
|
11659
|
-
var util3 = require("util");
|
|
11660
|
-
var { LEVEL } = require_triple_beam();
|
|
11661
|
-
var TransportStream = require_winston_transport();
|
|
11662
|
-
var LegacyTransportStream = module2.exports = function LegacyTransportStream2(options = {}) {
|
|
11663
|
-
TransportStream.call(this, options);
|
|
11664
|
-
if (!options.transport || typeof options.transport.log !== "function") {
|
|
11665
|
-
throw new Error("Invalid transport, must be an object with a log method.");
|
|
11666
|
-
}
|
|
11667
|
-
this.transport = options.transport;
|
|
11668
|
-
this.level = this.level || options.transport.level;
|
|
11669
|
-
this.handleExceptions = this.handleExceptions || options.transport.handleExceptions;
|
|
11670
|
-
this._deprecated();
|
|
11671
|
-
function transportError(err) {
|
|
11672
|
-
this.emit("error", err, this.transport);
|
|
11673
|
-
}
|
|
11674
|
-
if (!this.transport.__winstonError) {
|
|
11675
|
-
this.transport.__winstonError = transportError.bind(this);
|
|
11676
|
-
this.transport.on("error", this.transport.__winstonError);
|
|
11677
|
-
}
|
|
11678
|
-
};
|
|
11679
|
-
util3.inherits(LegacyTransportStream, TransportStream);
|
|
11680
|
-
LegacyTransportStream.prototype._write = function _write(info, enc, callback) {
|
|
11681
|
-
if (this.silent || info.exception === true && !this.handleExceptions) {
|
|
11682
|
-
return callback(null);
|
|
11683
|
-
}
|
|
11684
|
-
if (!this.level || this.levels[this.level] >= this.levels[info[LEVEL]]) {
|
|
11685
|
-
this.transport.log(info[LEVEL], info.message, info, this._nop);
|
|
11686
|
-
}
|
|
11687
|
-
callback(null);
|
|
11688
|
-
};
|
|
11689
|
-
LegacyTransportStream.prototype._writev = function _writev(chunks, callback) {
|
|
11690
|
-
for (let i = 0; i < chunks.length; i++) {
|
|
11691
|
-
if (this._accept(chunks[i])) {
|
|
11692
|
-
this.transport.log(
|
|
11693
|
-
chunks[i].chunk[LEVEL],
|
|
11694
|
-
chunks[i].chunk.message,
|
|
11695
|
-
chunks[i].chunk,
|
|
11696
|
-
this._nop
|
|
11697
|
-
);
|
|
11698
|
-
chunks[i].callback();
|
|
11699
|
-
}
|
|
11700
|
-
}
|
|
11701
|
-
return callback(null);
|
|
11702
|
-
};
|
|
11703
|
-
LegacyTransportStream.prototype._deprecated = function _deprecated() {
|
|
11704
|
-
console.error([
|
|
11705
|
-
`${this.transport.name} is a legacy winston transport. Consider upgrading: `,
|
|
11706
|
-
"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"
|
|
11707
|
-
].join("\n"));
|
|
11708
|
-
};
|
|
11709
|
-
LegacyTransportStream.prototype.close = function close() {
|
|
11710
|
-
if (this.transport.close) {
|
|
11711
|
-
this.transport.close();
|
|
11712
|
-
}
|
|
11713
|
-
if (this.transport.__winstonError) {
|
|
11714
|
-
this.transport.removeListener("error", this.transport.__winstonError);
|
|
11715
|
-
this.transport.__winstonError = null;
|
|
11716
|
-
}
|
|
11717
|
-
};
|
|
11718
|
-
}
|
|
11719
|
-
});
|
|
11720
|
-
|
|
11721
|
-
// ../../node_modules/.pnpm/winston-transport@4.5.0/node_modules/winston-transport/index.js
|
|
11722
|
-
var require_winston_transport = __commonJS({
|
|
11723
|
-
"../../node_modules/.pnpm/winston-transport@4.5.0/node_modules/winston-transport/index.js"(exports, module2) {
|
|
11655
|
+
// ../../node_modules/.pnpm/winston-transport@4.7.0/node_modules/winston-transport/modern.js
|
|
11656
|
+
var require_modern = __commonJS({
|
|
11657
|
+
"../../node_modules/.pnpm/winston-transport@4.7.0/node_modules/winston-transport/modern.js"(exports, module2) {
|
|
11724
11658
|
"use strict";
|
|
11725
11659
|
var util3 = require("util");
|
|
11726
11660
|
var Writable = require_stream_writable();
|
|
@@ -11832,13 +11766,87 @@ var require_winston_transport = __commonJS({
|
|
|
11832
11766
|
TransportStream.prototype._nop = function _nop() {
|
|
11833
11767
|
return void 0;
|
|
11834
11768
|
};
|
|
11769
|
+
}
|
|
11770
|
+
});
|
|
11771
|
+
|
|
11772
|
+
// ../../node_modules/.pnpm/winston-transport@4.7.0/node_modules/winston-transport/legacy.js
|
|
11773
|
+
var require_legacy = __commonJS({
|
|
11774
|
+
"../../node_modules/.pnpm/winston-transport@4.7.0/node_modules/winston-transport/legacy.js"(exports, module2) {
|
|
11775
|
+
"use strict";
|
|
11776
|
+
var util3 = require("util");
|
|
11777
|
+
var { LEVEL } = require_triple_beam();
|
|
11778
|
+
var TransportStream = require_modern();
|
|
11779
|
+
var LegacyTransportStream = module2.exports = function LegacyTransportStream2(options = {}) {
|
|
11780
|
+
TransportStream.call(this, options);
|
|
11781
|
+
if (!options.transport || typeof options.transport.log !== "function") {
|
|
11782
|
+
throw new Error("Invalid transport, must be an object with a log method.");
|
|
11783
|
+
}
|
|
11784
|
+
this.transport = options.transport;
|
|
11785
|
+
this.level = this.level || options.transport.level;
|
|
11786
|
+
this.handleExceptions = this.handleExceptions || options.transport.handleExceptions;
|
|
11787
|
+
this._deprecated();
|
|
11788
|
+
function transportError(err) {
|
|
11789
|
+
this.emit("error", err, this.transport);
|
|
11790
|
+
}
|
|
11791
|
+
if (!this.transport.__winstonError) {
|
|
11792
|
+
this.transport.__winstonError = transportError.bind(this);
|
|
11793
|
+
this.transport.on("error", this.transport.__winstonError);
|
|
11794
|
+
}
|
|
11795
|
+
};
|
|
11796
|
+
util3.inherits(LegacyTransportStream, TransportStream);
|
|
11797
|
+
LegacyTransportStream.prototype._write = function _write(info, enc, callback) {
|
|
11798
|
+
if (this.silent || info.exception === true && !this.handleExceptions) {
|
|
11799
|
+
return callback(null);
|
|
11800
|
+
}
|
|
11801
|
+
if (!this.level || this.levels[this.level] >= this.levels[info[LEVEL]]) {
|
|
11802
|
+
this.transport.log(info[LEVEL], info.message, info, this._nop);
|
|
11803
|
+
}
|
|
11804
|
+
callback(null);
|
|
11805
|
+
};
|
|
11806
|
+
LegacyTransportStream.prototype._writev = function _writev(chunks, callback) {
|
|
11807
|
+
for (let i = 0; i < chunks.length; i++) {
|
|
11808
|
+
if (this._accept(chunks[i])) {
|
|
11809
|
+
this.transport.log(
|
|
11810
|
+
chunks[i].chunk[LEVEL],
|
|
11811
|
+
chunks[i].chunk.message,
|
|
11812
|
+
chunks[i].chunk,
|
|
11813
|
+
this._nop
|
|
11814
|
+
);
|
|
11815
|
+
chunks[i].callback();
|
|
11816
|
+
}
|
|
11817
|
+
}
|
|
11818
|
+
return callback(null);
|
|
11819
|
+
};
|
|
11820
|
+
LegacyTransportStream.prototype._deprecated = function _deprecated() {
|
|
11821
|
+
console.error([
|
|
11822
|
+
`${this.transport.name} is a legacy winston transport. Consider upgrading: `,
|
|
11823
|
+
"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"
|
|
11824
|
+
].join("\n"));
|
|
11825
|
+
};
|
|
11826
|
+
LegacyTransportStream.prototype.close = function close() {
|
|
11827
|
+
if (this.transport.close) {
|
|
11828
|
+
this.transport.close();
|
|
11829
|
+
}
|
|
11830
|
+
if (this.transport.__winstonError) {
|
|
11831
|
+
this.transport.removeListener("error", this.transport.__winstonError);
|
|
11832
|
+
this.transport.__winstonError = null;
|
|
11833
|
+
}
|
|
11834
|
+
};
|
|
11835
|
+
}
|
|
11836
|
+
});
|
|
11837
|
+
|
|
11838
|
+
// ../../node_modules/.pnpm/winston-transport@4.7.0/node_modules/winston-transport/index.js
|
|
11839
|
+
var require_winston_transport = __commonJS({
|
|
11840
|
+
"../../node_modules/.pnpm/winston-transport@4.7.0/node_modules/winston-transport/index.js"(exports, module2) {
|
|
11841
|
+
"use strict";
|
|
11842
|
+
module2.exports = require_modern();
|
|
11835
11843
|
module2.exports.LegacyTransportStream = require_legacy();
|
|
11836
11844
|
}
|
|
11837
11845
|
});
|
|
11838
11846
|
|
|
11839
|
-
// ../../node_modules/.pnpm/winston@3.
|
|
11847
|
+
// ../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/transports/console.js
|
|
11840
11848
|
var require_console = __commonJS({
|
|
11841
|
-
"../../node_modules/.pnpm/winston@3.
|
|
11849
|
+
"../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/transports/console.js"(exports, module2) {
|
|
11842
11850
|
"use strict";
|
|
11843
11851
|
var os2 = require("os");
|
|
11844
11852
|
var { LEVEL, MESSAGE } = require_triple_beam();
|
|
@@ -14618,9 +14626,9 @@ var require_node2 = __commonJS({
|
|
|
14618
14626
|
}
|
|
14619
14627
|
});
|
|
14620
14628
|
|
|
14621
|
-
// ../../node_modules/.pnpm/winston@3.
|
|
14629
|
+
// ../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/tail-file.js
|
|
14622
14630
|
var require_tail_file = __commonJS({
|
|
14623
|
-
"../../node_modules/.pnpm/winston@3.
|
|
14631
|
+
"../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/tail-file.js"(exports, module2) {
|
|
14624
14632
|
"use strict";
|
|
14625
14633
|
var fs3 = require("fs");
|
|
14626
14634
|
var { StringDecoder } = require("string_decoder");
|
|
@@ -14713,9 +14721,9 @@ var require_tail_file = __commonJS({
|
|
|
14713
14721
|
}
|
|
14714
14722
|
});
|
|
14715
14723
|
|
|
14716
|
-
// ../../node_modules/.pnpm/winston@3.
|
|
14724
|
+
// ../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/transports/file.js
|
|
14717
14725
|
var require_file = __commonJS({
|
|
14718
|
-
"../../node_modules/.pnpm/winston@3.
|
|
14726
|
+
"../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/transports/file.js"(exports, module2) {
|
|
14719
14727
|
"use strict";
|
|
14720
14728
|
var fs3 = require("fs");
|
|
14721
14729
|
var path2 = require("path");
|
|
@@ -15104,30 +15112,42 @@ var require_file = __commonJS({
|
|
|
15104
15112
|
}
|
|
15105
15113
|
});
|
|
15106
15114
|
debug("create stream ok", fullpath);
|
|
15107
|
-
if (this.zippedArchive) {
|
|
15108
|
-
const gzip = zlib2.createGzip();
|
|
15109
|
-
gzip.pipe(dest);
|
|
15110
|
-
return gzip;
|
|
15111
|
-
}
|
|
15112
15115
|
return dest;
|
|
15113
15116
|
}
|
|
15114
15117
|
_incFile(callback) {
|
|
15115
15118
|
debug("_incFile", this.filename);
|
|
15116
15119
|
const ext = path2.extname(this._basename);
|
|
15117
15120
|
const basename = path2.basename(this._basename, ext);
|
|
15118
|
-
|
|
15119
|
-
|
|
15120
|
-
|
|
15121
|
-
|
|
15122
|
-
|
|
15121
|
+
const tasks = [];
|
|
15122
|
+
if (this.zippedArchive) {
|
|
15123
|
+
tasks.push(
|
|
15124
|
+
function(cb) {
|
|
15125
|
+
const num = this._created > 0 && !this.tailable ? this._created : "";
|
|
15126
|
+
this._compressFile(
|
|
15127
|
+
path2.join(this.dirname, `${basename}${num}${ext}`),
|
|
15128
|
+
path2.join(this.dirname, `${basename}${num}${ext}.gz`),
|
|
15129
|
+
cb
|
|
15130
|
+
);
|
|
15131
|
+
}.bind(this)
|
|
15132
|
+
);
|
|
15123
15133
|
}
|
|
15134
|
+
tasks.push(
|
|
15135
|
+
function(cb) {
|
|
15136
|
+
if (!this.tailable) {
|
|
15137
|
+
this._created += 1;
|
|
15138
|
+
this._checkMaxFilesIncrementing(ext, basename, cb);
|
|
15139
|
+
} else {
|
|
15140
|
+
this._checkMaxFilesTailable(ext, basename, cb);
|
|
15141
|
+
}
|
|
15142
|
+
}.bind(this)
|
|
15143
|
+
);
|
|
15144
|
+
asyncSeries(tasks, callback);
|
|
15124
15145
|
}
|
|
15125
15146
|
_getFile() {
|
|
15126
15147
|
const ext = path2.extname(this._basename);
|
|
15127
15148
|
const basename = path2.basename(this._basename, ext);
|
|
15128
15149
|
const isRotation = this.rotationFormat ? this.rotationFormat() : this._created;
|
|
15129
|
-
|
|
15130
|
-
return this.zippedArchive && !this.tailable ? `${target}.gz` : target;
|
|
15150
|
+
return !this.tailable && this._created ? `${basename}${isRotation}${ext}` : `${basename}${ext}`;
|
|
15131
15151
|
}
|
|
15132
15152
|
_checkMaxFilesIncrementing(ext, basename, callback) {
|
|
15133
15153
|
if (!this.maxFiles || this._created < this.maxFiles) {
|
|
@@ -15161,12 +15181,26 @@ var require_file = __commonJS({
|
|
|
15161
15181
|
}
|
|
15162
15182
|
asyncSeries(tasks, () => {
|
|
15163
15183
|
fs3.rename(
|
|
15164
|
-
path2.join(this.dirname, `${basename}${ext}`),
|
|
15184
|
+
path2.join(this.dirname, `${basename}${ext}${isZipped}`),
|
|
15165
15185
|
path2.join(this.dirname, `${basename}1${ext}${isZipped}`),
|
|
15166
15186
|
callback
|
|
15167
15187
|
);
|
|
15168
15188
|
});
|
|
15169
15189
|
}
|
|
15190
|
+
_compressFile(src, dest, callback) {
|
|
15191
|
+
fs3.access(src, fs3.F_OK, (err) => {
|
|
15192
|
+
if (err) {
|
|
15193
|
+
return callback();
|
|
15194
|
+
}
|
|
15195
|
+
var gzip = zlib2.createGzip();
|
|
15196
|
+
var inp = fs3.createReadStream(src);
|
|
15197
|
+
var out = fs3.createWriteStream(dest);
|
|
15198
|
+
out.on("finish", () => {
|
|
15199
|
+
fs3.unlink(src, callback);
|
|
15200
|
+
});
|
|
15201
|
+
inp.pipe(gzip).pipe(out);
|
|
15202
|
+
});
|
|
15203
|
+
}
|
|
15170
15204
|
_createLogDirIfNotExist(dirPath) {
|
|
15171
15205
|
if (!fs3.existsSync(dirPath)) {
|
|
15172
15206
|
fs3.mkdirSync(dirPath, { recursive: true });
|
|
@@ -15176,9 +15210,9 @@ var require_file = __commonJS({
|
|
|
15176
15210
|
}
|
|
15177
15211
|
});
|
|
15178
15212
|
|
|
15179
|
-
// ../../node_modules/.pnpm/winston@3.
|
|
15213
|
+
// ../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/transports/http.js
|
|
15180
15214
|
var require_http = __commonJS({
|
|
15181
|
-
"../../node_modules/.pnpm/winston@3.
|
|
15215
|
+
"../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/transports/http.js"(exports, module2) {
|
|
15182
15216
|
"use strict";
|
|
15183
15217
|
var http2 = require("http");
|
|
15184
15218
|
var https2 = require("https");
|
|
@@ -15351,9 +15385,9 @@ var require_is_stream = __commonJS({
|
|
|
15351
15385
|
}
|
|
15352
15386
|
});
|
|
15353
15387
|
|
|
15354
|
-
// ../../node_modules/.pnpm/winston@3.
|
|
15388
|
+
// ../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/transports/stream.js
|
|
15355
15389
|
var require_stream2 = __commonJS({
|
|
15356
|
-
"../../node_modules/.pnpm/winston@3.
|
|
15390
|
+
"../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/transports/stream.js"(exports, module2) {
|
|
15357
15391
|
"use strict";
|
|
15358
15392
|
var isStream2 = require_is_stream();
|
|
15359
15393
|
var { MESSAGE } = require_triple_beam();
|
|
@@ -15389,9 +15423,9 @@ var require_stream2 = __commonJS({
|
|
|
15389
15423
|
}
|
|
15390
15424
|
});
|
|
15391
15425
|
|
|
15392
|
-
// ../../node_modules/.pnpm/winston@3.
|
|
15426
|
+
// ../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/transports/index.js
|
|
15393
15427
|
var require_transports = __commonJS({
|
|
15394
|
-
"../../node_modules/.pnpm/winston@3.
|
|
15428
|
+
"../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/transports/index.js"(exports) {
|
|
15395
15429
|
"use strict";
|
|
15396
15430
|
Object.defineProperty(exports, "Console", {
|
|
15397
15431
|
configurable: true,
|
|
@@ -15424,9 +15458,9 @@ var require_transports = __commonJS({
|
|
|
15424
15458
|
}
|
|
15425
15459
|
});
|
|
15426
15460
|
|
|
15427
|
-
// ../../node_modules/.pnpm/winston@3.
|
|
15461
|
+
// ../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/config/index.js
|
|
15428
15462
|
var require_config2 = __commonJS({
|
|
15429
|
-
"../../node_modules/.pnpm/winston@3.
|
|
15463
|
+
"../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/config/index.js"(exports) {
|
|
15430
15464
|
"use strict";
|
|
15431
15465
|
var logform = require_logform();
|
|
15432
15466
|
var { configs } = require_triple_beam();
|
|
@@ -15704,9 +15738,9 @@ var require_stack_trace = __commonJS({
|
|
|
15704
15738
|
}
|
|
15705
15739
|
});
|
|
15706
15740
|
|
|
15707
|
-
// ../../node_modules/.pnpm/winston@3.
|
|
15741
|
+
// ../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/exception-stream.js
|
|
15708
15742
|
var require_exception_stream = __commonJS({
|
|
15709
|
-
"../../node_modules/.pnpm/winston@3.
|
|
15743
|
+
"../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/exception-stream.js"(exports, module2) {
|
|
15710
15744
|
"use strict";
|
|
15711
15745
|
var { Writable } = require_readable();
|
|
15712
15746
|
module2.exports = class ExceptionStream extends Writable {
|
|
@@ -15729,9 +15763,9 @@ var require_exception_stream = __commonJS({
|
|
|
15729
15763
|
}
|
|
15730
15764
|
});
|
|
15731
15765
|
|
|
15732
|
-
// ../../node_modules/.pnpm/winston@3.
|
|
15766
|
+
// ../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/exception-handler.js
|
|
15733
15767
|
var require_exception_handler = __commonJS({
|
|
15734
|
-
"../../node_modules/.pnpm/winston@3.
|
|
15768
|
+
"../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/exception-handler.js"(exports, module2) {
|
|
15735
15769
|
"use strict";
|
|
15736
15770
|
var os2 = require("os");
|
|
15737
15771
|
var asyncForEach = require_forEach();
|
|
@@ -15876,16 +15910,41 @@ var require_exception_handler = __commonJS({
|
|
|
15876
15910
|
}
|
|
15877
15911
|
});
|
|
15878
15912
|
|
|
15879
|
-
// ../../node_modules/.pnpm/winston@3.
|
|
15913
|
+
// ../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/rejection-stream.js
|
|
15914
|
+
var require_rejection_stream = __commonJS({
|
|
15915
|
+
"../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/rejection-stream.js"(exports, module2) {
|
|
15916
|
+
"use strict";
|
|
15917
|
+
var { Writable } = require_readable();
|
|
15918
|
+
module2.exports = class RejectionStream extends Writable {
|
|
15919
|
+
constructor(transport) {
|
|
15920
|
+
super({ objectMode: true });
|
|
15921
|
+
if (!transport) {
|
|
15922
|
+
throw new Error("RejectionStream requires a TransportStream instance.");
|
|
15923
|
+
}
|
|
15924
|
+
this.handleRejections = true;
|
|
15925
|
+
this.transport = transport;
|
|
15926
|
+
}
|
|
15927
|
+
_write(info, enc, callback) {
|
|
15928
|
+
if (info.rejection) {
|
|
15929
|
+
return this.transport.log(info, callback);
|
|
15930
|
+
}
|
|
15931
|
+
callback();
|
|
15932
|
+
return true;
|
|
15933
|
+
}
|
|
15934
|
+
};
|
|
15935
|
+
}
|
|
15936
|
+
});
|
|
15937
|
+
|
|
15938
|
+
// ../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/rejection-handler.js
|
|
15880
15939
|
var require_rejection_handler = __commonJS({
|
|
15881
|
-
"../../node_modules/.pnpm/winston@3.
|
|
15940
|
+
"../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/rejection-handler.js"(exports, module2) {
|
|
15882
15941
|
"use strict";
|
|
15883
15942
|
var os2 = require("os");
|
|
15884
15943
|
var asyncForEach = require_forEach();
|
|
15885
15944
|
var debug = require_node2()("winston:rejection");
|
|
15886
15945
|
var once = require_one_time();
|
|
15887
15946
|
var stackTrace = require_stack_trace();
|
|
15888
|
-
var
|
|
15947
|
+
var RejectionStream = require_rejection_stream();
|
|
15889
15948
|
module2.exports = class RejectionHandler {
|
|
15890
15949
|
constructor(logger2) {
|
|
15891
15950
|
if (!logger2) {
|
|
@@ -15928,7 +15987,7 @@ var require_rejection_handler = __commonJS({
|
|
|
15928
15987
|
err && err.stack || " No stack trace"
|
|
15929
15988
|
].join("\n"),
|
|
15930
15989
|
stack: err && err.stack,
|
|
15931
|
-
|
|
15990
|
+
rejection: true,
|
|
15932
15991
|
date: new Date().toString(),
|
|
15933
15992
|
process: this.getProcessInfo(),
|
|
15934
15993
|
os: this.getOsInfo(),
|
|
@@ -15969,7 +16028,7 @@ var require_rejection_handler = __commonJS({
|
|
|
15969
16028
|
_addHandler(handler) {
|
|
15970
16029
|
if (!this.handlers.has(handler)) {
|
|
15971
16030
|
handler.handleRejections = true;
|
|
15972
|
-
const wrapper = new
|
|
16031
|
+
const wrapper = new RejectionStream(handler);
|
|
15973
16032
|
this.handlers.set(handler, wrapper);
|
|
15974
16033
|
this.logger.pipe(wrapper);
|
|
15975
16034
|
}
|
|
@@ -16029,9 +16088,9 @@ var require_rejection_handler = __commonJS({
|
|
|
16029
16088
|
}
|
|
16030
16089
|
});
|
|
16031
16090
|
|
|
16032
|
-
// ../../node_modules/.pnpm/winston@3.
|
|
16091
|
+
// ../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/profiler.js
|
|
16033
16092
|
var require_profiler = __commonJS({
|
|
16034
|
-
"../../node_modules/.pnpm/winston@3.
|
|
16093
|
+
"../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/profiler.js"(exports, module2) {
|
|
16035
16094
|
"use strict";
|
|
16036
16095
|
var Profiler = class {
|
|
16037
16096
|
constructor(logger2) {
|
|
@@ -16058,9 +16117,9 @@ var require_profiler = __commonJS({
|
|
|
16058
16117
|
}
|
|
16059
16118
|
});
|
|
16060
16119
|
|
|
16061
|
-
// ../../node_modules/.pnpm/winston@3.
|
|
16120
|
+
// ../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/logger.js
|
|
16062
16121
|
var require_logger = __commonJS({
|
|
16063
|
-
"../../node_modules/.pnpm/winston@3.
|
|
16122
|
+
"../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/logger.js"(exports, module2) {
|
|
16064
16123
|
"use strict";
|
|
16065
16124
|
var { Stream, Transform } = require_readable();
|
|
16066
16125
|
var asyncForEach = require_forEach();
|
|
@@ -16450,9 +16509,9 @@ var require_logger = __commonJS({
|
|
|
16450
16509
|
}
|
|
16451
16510
|
});
|
|
16452
16511
|
|
|
16453
|
-
// ../../node_modules/.pnpm/winston@3.
|
|
16512
|
+
// ../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/create-logger.js
|
|
16454
16513
|
var require_create_logger = __commonJS({
|
|
16455
|
-
"../../node_modules/.pnpm/winston@3.
|
|
16514
|
+
"../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/create-logger.js"(exports, module2) {
|
|
16456
16515
|
"use strict";
|
|
16457
16516
|
var { LEVEL } = require_triple_beam();
|
|
16458
16517
|
var config = require_config2();
|
|
@@ -16500,9 +16559,9 @@ var require_create_logger = __commonJS({
|
|
|
16500
16559
|
}
|
|
16501
16560
|
});
|
|
16502
16561
|
|
|
16503
|
-
// ../../node_modules/.pnpm/winston@3.
|
|
16562
|
+
// ../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/container.js
|
|
16504
16563
|
var require_container = __commonJS({
|
|
16505
|
-
"../../node_modules/.pnpm/winston@3.
|
|
16564
|
+
"../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston/container.js"(exports, module2) {
|
|
16506
16565
|
"use strict";
|
|
16507
16566
|
var createLogger = require_create_logger();
|
|
16508
16567
|
module2.exports = class Container {
|
|
@@ -16552,9 +16611,9 @@ var require_container = __commonJS({
|
|
|
16552
16611
|
}
|
|
16553
16612
|
});
|
|
16554
16613
|
|
|
16555
|
-
// ../../node_modules/.pnpm/winston@3.
|
|
16614
|
+
// ../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston.js
|
|
16556
16615
|
var require_winston = __commonJS({
|
|
16557
|
-
"../../node_modules/.pnpm/winston@3.
|
|
16616
|
+
"../../node_modules/.pnpm/winston@3.12.0/node_modules/winston/lib/winston.js"(exports) {
|
|
16558
16617
|
"use strict";
|
|
16559
16618
|
var logform = require_logform();
|
|
16560
16619
|
var { warn } = require_common();
|
|
@@ -16602,6 +16661,11 @@ var require_winston = __commonJS({
|
|
|
16602
16661
|
return defaultLogger.exceptions;
|
|
16603
16662
|
}
|
|
16604
16663
|
});
|
|
16664
|
+
Object.defineProperty(exports, "rejections", {
|
|
16665
|
+
get() {
|
|
16666
|
+
return defaultLogger.rejections;
|
|
16667
|
+
}
|
|
16668
|
+
});
|
|
16605
16669
|
["exitOnError"].forEach((prop) => {
|
|
16606
16670
|
Object.defineProperty(exports, prop, {
|
|
16607
16671
|
get() {
|
|
@@ -17930,9 +17994,9 @@ var require_isarray = __commonJS({
|
|
|
17930
17994
|
}
|
|
17931
17995
|
});
|
|
17932
17996
|
|
|
17933
|
-
// ../../node_modules/.pnpm/readable-stream@2.3.
|
|
17997
|
+
// ../../node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/internal/streams/stream.js
|
|
17934
17998
|
var require_stream3 = __commonJS({
|
|
17935
|
-
"../../node_modules/.pnpm/readable-stream@2.3.
|
|
17999
|
+
"../../node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/internal/streams/stream.js"(exports, module2) {
|
|
17936
18000
|
module2.exports = require("stream");
|
|
17937
18001
|
}
|
|
17938
18002
|
});
|
|
@@ -18063,9 +18127,9 @@ var require_util4 = __commonJS({
|
|
|
18063
18127
|
}
|
|
18064
18128
|
});
|
|
18065
18129
|
|
|
18066
|
-
// ../../node_modules/.pnpm/readable-stream@2.3.
|
|
18130
|
+
// ../../node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/internal/streams/BufferList.js
|
|
18067
18131
|
var require_BufferList = __commonJS({
|
|
18068
|
-
"../../node_modules/.pnpm/readable-stream@2.3.
|
|
18132
|
+
"../../node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/internal/streams/BufferList.js"(exports, module2) {
|
|
18069
18133
|
"use strict";
|
|
18070
18134
|
function _classCallCheck(instance, Constructor) {
|
|
18071
18135
|
if (!(instance instanceof Constructor)) {
|
|
@@ -18128,6 +18192,8 @@ var require_BufferList = __commonJS({
|
|
|
18128
18192
|
BufferList.prototype.concat = function concat(n) {
|
|
18129
18193
|
if (this.length === 0)
|
|
18130
18194
|
return Buffer2.alloc(0);
|
|
18195
|
+
if (this.length === 1)
|
|
18196
|
+
return this.head.data;
|
|
18131
18197
|
var ret = Buffer2.allocUnsafe(n >>> 0);
|
|
18132
18198
|
var p = this.head;
|
|
18133
18199
|
var i = 0;
|
|
@@ -18149,9 +18215,9 @@ var require_BufferList = __commonJS({
|
|
|
18149
18215
|
}
|
|
18150
18216
|
});
|
|
18151
18217
|
|
|
18152
|
-
// ../../node_modules/.pnpm/readable-stream@2.3.
|
|
18218
|
+
// ../../node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/internal/streams/destroy.js
|
|
18153
18219
|
var require_destroy2 = __commonJS({
|
|
18154
|
-
"../../node_modules/.pnpm/readable-stream@2.3.
|
|
18220
|
+
"../../node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports, module2) {
|
|
18155
18221
|
"use strict";
|
|
18156
18222
|
var pna = require_process_nextick_args();
|
|
18157
18223
|
function destroy(err, cb) {
|
|
@@ -18161,13 +18227,8 @@ var require_destroy2 = __commonJS({
|
|
|
18161
18227
|
if (readableDestroyed || writableDestroyed) {
|
|
18162
18228
|
if (cb) {
|
|
18163
18229
|
cb(err);
|
|
18164
|
-
} else if (err) {
|
|
18165
|
-
|
|
18166
|
-
pna.nextTick(emitErrorNT, this, err);
|
|
18167
|
-
} else if (!this._writableState.errorEmitted) {
|
|
18168
|
-
this._writableState.errorEmitted = true;
|
|
18169
|
-
pna.nextTick(emitErrorNT, this, err);
|
|
18170
|
-
}
|
|
18230
|
+
} else if (err && (!this._writableState || !this._writableState.errorEmitted)) {
|
|
18231
|
+
pna.nextTick(emitErrorNT, this, err);
|
|
18171
18232
|
}
|
|
18172
18233
|
return this;
|
|
18173
18234
|
}
|
|
@@ -18179,11 +18240,9 @@ var require_destroy2 = __commonJS({
|
|
|
18179
18240
|
}
|
|
18180
18241
|
this._destroy(err || null, function(err2) {
|
|
18181
18242
|
if (!cb && err2) {
|
|
18182
|
-
|
|
18183
|
-
|
|
18184
|
-
} else if (!_this._writableState.errorEmitted) {
|
|
18243
|
+
pna.nextTick(emitErrorNT, _this, err2);
|
|
18244
|
+
if (_this._writableState) {
|
|
18185
18245
|
_this._writableState.errorEmitted = true;
|
|
18186
|
-
pna.nextTick(emitErrorNT, _this, err2);
|
|
18187
18246
|
}
|
|
18188
18247
|
} else if (cb) {
|
|
18189
18248
|
cb(err2);
|
|
@@ -18202,8 +18261,6 @@ var require_destroy2 = __commonJS({
|
|
|
18202
18261
|
this._writableState.destroyed = false;
|
|
18203
18262
|
this._writableState.ended = false;
|
|
18204
18263
|
this._writableState.ending = false;
|
|
18205
|
-
this._writableState.finalCalled = false;
|
|
18206
|
-
this._writableState.prefinished = false;
|
|
18207
18264
|
this._writableState.finished = false;
|
|
18208
18265
|
this._writableState.errorEmitted = false;
|
|
18209
18266
|
}
|
|
@@ -18218,9 +18275,9 @@ var require_destroy2 = __commonJS({
|
|
|
18218
18275
|
}
|
|
18219
18276
|
});
|
|
18220
18277
|
|
|
18221
|
-
// ../../node_modules/.pnpm/readable-stream@2.3.
|
|
18278
|
+
// ../../node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_writable.js
|
|
18222
18279
|
var require_stream_writable2 = __commonJS({
|
|
18223
|
-
"../../node_modules/.pnpm/readable-stream@2.3.
|
|
18280
|
+
"../../node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_writable.js"(exports, module2) {
|
|
18224
18281
|
"use strict";
|
|
18225
18282
|
var pna = require_process_nextick_args();
|
|
18226
18283
|
module2.exports = Writable;
|
|
@@ -18242,7 +18299,7 @@ var require_stream_writable2 = __commonJS({
|
|
|
18242
18299
|
};
|
|
18243
18300
|
var Stream = require_stream3();
|
|
18244
18301
|
var Buffer2 = require_safe_buffer2().Buffer;
|
|
18245
|
-
var OurUint8Array =
|
|
18302
|
+
var OurUint8Array = global.Uint8Array || function() {
|
|
18246
18303
|
};
|
|
18247
18304
|
function _uint8ArrayToBuffer(chunk) {
|
|
18248
18305
|
return Buffer2.from(chunk);
|
|
@@ -18409,7 +18466,7 @@ var require_stream_writable2 = __commonJS({
|
|
|
18409
18466
|
var state2 = this._writableState;
|
|
18410
18467
|
if (state2.corked) {
|
|
18411
18468
|
state2.corked--;
|
|
18412
|
-
if (!state2.writing && !state2.corked && !state2.bufferProcessing && state2.bufferedRequest)
|
|
18469
|
+
if (!state2.writing && !state2.corked && !state2.finished && !state2.bufferProcessing && state2.bufferedRequest)
|
|
18413
18470
|
clearBuffer(this, state2);
|
|
18414
18471
|
}
|
|
18415
18472
|
};
|
|
@@ -18597,7 +18654,7 @@ var require_stream_writable2 = __commonJS({
|
|
|
18597
18654
|
state2.corked = 1;
|
|
18598
18655
|
this.uncork();
|
|
18599
18656
|
}
|
|
18600
|
-
if (!state2.ending)
|
|
18657
|
+
if (!state2.ending && !state2.finished)
|
|
18601
18658
|
endWritable(this, state2, cb);
|
|
18602
18659
|
};
|
|
18603
18660
|
function needFinish(state2) {
|
|
@@ -18658,7 +18715,11 @@ var require_stream_writable2 = __commonJS({
|
|
|
18658
18715
|
cb(err);
|
|
18659
18716
|
entry = entry.next;
|
|
18660
18717
|
}
|
|
18661
|
-
state2.corkedRequestsFree
|
|
18718
|
+
if (state2.corkedRequestsFree) {
|
|
18719
|
+
state2.corkedRequestsFree.next = corkReq;
|
|
18720
|
+
} else {
|
|
18721
|
+
state2.corkedRequestsFree = corkReq;
|
|
18722
|
+
}
|
|
18662
18723
|
}
|
|
18663
18724
|
Object.defineProperty(Writable.prototype, "destroyed", {
|
|
18664
18725
|
get: function() {
|
|
@@ -18683,9 +18744,9 @@ var require_stream_writable2 = __commonJS({
|
|
|
18683
18744
|
}
|
|
18684
18745
|
});
|
|
18685
18746
|
|
|
18686
|
-
// ../../node_modules/.pnpm/readable-stream@2.3.
|
|
18747
|
+
// ../../node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_duplex.js
|
|
18687
18748
|
var require_stream_duplex2 = __commonJS({
|
|
18688
|
-
"../../node_modules/.pnpm/readable-stream@2.3.
|
|
18749
|
+
"../../node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_duplex.js"(exports, module2) {
|
|
18689
18750
|
"use strict";
|
|
18690
18751
|
var pna = require_process_nextick_args();
|
|
18691
18752
|
var objectKeys = Object.keys || function(obj) {
|
|
@@ -19023,9 +19084,9 @@ var require_string_decoder2 = __commonJS({
|
|
|
19023
19084
|
}
|
|
19024
19085
|
});
|
|
19025
19086
|
|
|
19026
|
-
// ../../node_modules/.pnpm/readable-stream@2.3.
|
|
19087
|
+
// ../../node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_readable.js
|
|
19027
19088
|
var require_stream_readable2 = __commonJS({
|
|
19028
|
-
"../../node_modules/.pnpm/readable-stream@2.3.
|
|
19089
|
+
"../../node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_readable.js"(exports, module2) {
|
|
19029
19090
|
"use strict";
|
|
19030
19091
|
var pna = require_process_nextick_args();
|
|
19031
19092
|
module2.exports = Readable3;
|
|
@@ -19038,7 +19099,7 @@ var require_stream_readable2 = __commonJS({
|
|
|
19038
19099
|
};
|
|
19039
19100
|
var Stream = require_stream3();
|
|
19040
19101
|
var Buffer2 = require_safe_buffer2().Buffer;
|
|
19041
|
-
var OurUint8Array =
|
|
19102
|
+
var OurUint8Array = global.Uint8Array || function() {
|
|
19042
19103
|
};
|
|
19043
19104
|
function _uint8ArrayToBuffer(chunk) {
|
|
19044
19105
|
return Buffer2.from(chunk);
|
|
@@ -19453,8 +19514,8 @@ var require_stream_readable2 = __commonJS({
|
|
|
19453
19514
|
var ret = dest.write(chunk);
|
|
19454
19515
|
if (false === ret && !increasedAwaitDrain) {
|
|
19455
19516
|
if ((state2.pipesCount === 1 && state2.pipes === dest || state2.pipesCount > 1 && indexOf(state2.pipes, dest) !== -1) && !cleanedUp) {
|
|
19456
|
-
debug("false write response, pause",
|
|
19457
|
-
|
|
19517
|
+
debug("false write response, pause", src._readableState.awaitDrain);
|
|
19518
|
+
src._readableState.awaitDrain++;
|
|
19458
19519
|
increasedAwaitDrain = true;
|
|
19459
19520
|
}
|
|
19460
19521
|
src.pause();
|
|
@@ -19526,7 +19587,7 @@ var require_stream_readable2 = __commonJS({
|
|
|
19526
19587
|
state2.pipesCount = 0;
|
|
19527
19588
|
state2.flowing = false;
|
|
19528
19589
|
for (var i = 0; i < len; i++) {
|
|
19529
|
-
dests[i].emit("unpipe", this,
|
|
19590
|
+
dests[i].emit("unpipe", this, unpipeInfo);
|
|
19530
19591
|
}
|
|
19531
19592
|
return this;
|
|
19532
19593
|
}
|
|
@@ -19778,9 +19839,9 @@ var require_stream_readable2 = __commonJS({
|
|
|
19778
19839
|
}
|
|
19779
19840
|
});
|
|
19780
19841
|
|
|
19781
|
-
// ../../node_modules/.pnpm/readable-stream@2.3.
|
|
19842
|
+
// ../../node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_transform.js
|
|
19782
19843
|
var require_stream_transform2 = __commonJS({
|
|
19783
|
-
"../../node_modules/.pnpm/readable-stream@2.3.
|
|
19844
|
+
"../../node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_transform.js"(exports, module2) {
|
|
19784
19845
|
"use strict";
|
|
19785
19846
|
module2.exports = Transform;
|
|
19786
19847
|
var Duplex = require_stream_duplex2();
|
|
@@ -19885,9 +19946,9 @@ var require_stream_transform2 = __commonJS({
|
|
|
19885
19946
|
}
|
|
19886
19947
|
});
|
|
19887
19948
|
|
|
19888
|
-
// ../../node_modules/.pnpm/readable-stream@2.3.
|
|
19949
|
+
// ../../node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_passthrough.js
|
|
19889
19950
|
var require_stream_passthrough2 = __commonJS({
|
|
19890
|
-
"../../node_modules/.pnpm/readable-stream@2.3.
|
|
19951
|
+
"../../node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_passthrough.js"(exports, module2) {
|
|
19891
19952
|
"use strict";
|
|
19892
19953
|
module2.exports = PassThrough;
|
|
19893
19954
|
var Transform = require_stream_transform2();
|
|
@@ -19905,9 +19966,9 @@ var require_stream_passthrough2 = __commonJS({
|
|
|
19905
19966
|
}
|
|
19906
19967
|
});
|
|
19907
19968
|
|
|
19908
|
-
// ../../node_modules/.pnpm/readable-stream@2.3.
|
|
19969
|
+
// ../../node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/readable.js
|
|
19909
19970
|
var require_readable2 = __commonJS({
|
|
19910
|
-
"../../node_modules/.pnpm/readable-stream@2.3.
|
|
19971
|
+
"../../node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/readable.js"(exports, module2) {
|
|
19911
19972
|
var Stream = require("stream");
|
|
19912
19973
|
if (process.env.READABLE_STREAM === "disable" && Stream) {
|
|
19913
19974
|
module2.exports = Stream;
|
|
@@ -19930,9 +19991,9 @@ var require_readable2 = __commonJS({
|
|
|
19930
19991
|
}
|
|
19931
19992
|
});
|
|
19932
19993
|
|
|
19933
|
-
// ../../node_modules/.pnpm/readable-stream@2.3.
|
|
19994
|
+
// ../../node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/duplex.js
|
|
19934
19995
|
var require_duplex = __commonJS({
|
|
19935
|
-
"../../node_modules/.pnpm/readable-stream@2.3.
|
|
19996
|
+
"../../node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/duplex.js"(exports, module2) {
|
|
19936
19997
|
module2.exports = require_readable2().Duplex;
|
|
19937
19998
|
}
|
|
19938
19999
|
});
|
|
@@ -259079,7 +259140,7 @@ __export(src_exports, {
|
|
|
259079
259140
|
});
|
|
259080
259141
|
module.exports = __toCommonJS(src_exports);
|
|
259081
259142
|
|
|
259082
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.7.
|
|
259143
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.7.10_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
259083
259144
|
var import_zod_openapi = __toESM(require_src(), 1);
|
|
259084
259145
|
var import_zod_openapi2 = __toESM(require_src(), 1);
|
|
259085
259146
|
var import_chalk = __toESM(require_source(), 1);
|
|
@@ -259123,7 +259184,7 @@ var title = (str2) => {
|
|
|
259123
259184
|
return str2.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map((s) => capitalize(s.toLowerCase())).join(" ");
|
|
259124
259185
|
};
|
|
259125
259186
|
|
|
259126
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.7.
|
|
259187
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.7.10_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
259127
259188
|
var import_decompress = __toESM(require_decompress(), 1);
|
|
259128
259189
|
var import_fs2 = __toESM(require("fs"), 1);
|
|
259129
259190
|
var import_promises = __toESM(require("fs/promises"), 1);
|
|
@@ -266357,7 +266418,7 @@ async function openapiTS(schema3, options = {}) {
|
|
|
266357
266418
|
}
|
|
266358
266419
|
var dist_default = openapiTS;
|
|
266359
266420
|
|
|
266360
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.7.
|
|
266421
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.7.10_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
266361
266422
|
var import_zod_openapi3 = __toESM(require_src(), 1);
|
|
266362
266423
|
var import_openapi3_ts = __toESM(require_dist3(), 1);
|
|
266363
266424
|
var import_verror2 = __toESM(require_verror(), 1);
|
|
@@ -269999,7 +270060,7 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
269999
270060
|
ZodError
|
|
270000
270061
|
});
|
|
270001
270062
|
|
|
270002
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.7.
|
|
270063
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.7.10_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
270003
270064
|
var import_openapi_parser = __toESM(require_lib10(), 1);
|
|
270004
270065
|
var import_json_schema_to_typescript = __toESM(require_src3(), 1);
|
|
270005
270066
|
var import_zod_openapi4 = __toESM(require_src(), 1);
|
|
@@ -270178,6 +270239,39 @@ var generatePathResolver = (path2, methods) => ` '${path2}': {
|
|
|
270178
270239
|
${Object.entries(methods).map(([method, operationName]) => generateMethodResolver(method, operationName)).join("\n")}
|
|
270179
270240
|
},`;
|
|
270180
270241
|
var generateMethodResolver = (method, operationName) => ` '${method}': ${operationName}Handler(operations.${operationName}),`;
|
|
270242
|
+
var typeHelpers = `
|
|
270243
|
+
type SimplifyOptions = { deep?:boolean }
|
|
270244
|
+
|
|
270245
|
+
type Flatten<
|
|
270246
|
+
AnyType,
|
|
270247
|
+
Options extends SimplifyOptions = {},
|
|
270248
|
+
> = Options['deep'] extends true
|
|
270249
|
+
? {[KeyType in keyof AnyType]: Simplify<AnyType[KeyType], Options>}
|
|
270250
|
+
: {[KeyType in keyof AnyType]: AnyType[KeyType]};
|
|
270251
|
+
|
|
270252
|
+
type Simplify<
|
|
270253
|
+
AnyType,
|
|
270254
|
+
Options extends SimplifyOptions = {},
|
|
270255
|
+
> = Flatten<AnyType> extends AnyType
|
|
270256
|
+
? Flatten<AnyType, Options>
|
|
270257
|
+
: AnyType;
|
|
270258
|
+
|
|
270259
|
+
type Merge_<FirstType, SecondType> = Except<FirstType, Extract<keyof FirstType, keyof SecondType>> & SecondType;
|
|
270260
|
+
|
|
270261
|
+
type IsEqual<T, U> =
|
|
270262
|
+
(<G>() => G extends T ? 1 : 2) extends
|
|
270263
|
+
(<G>() => G extends U ? 1 : 2)
|
|
270264
|
+
? true
|
|
270265
|
+
: false;
|
|
270266
|
+
|
|
270267
|
+
type Filter<KeyType, ExcludeType> = IsEqual<KeyType, ExcludeType> extends true ? never : (KeyType extends ExcludeType ? never : KeyType);
|
|
270268
|
+
|
|
270269
|
+
|
|
270270
|
+
type Merge<FirstType, SecondType> = Simplify<Merge_<FirstType, SecondType>>;
|
|
270271
|
+
|
|
270272
|
+
type Except<ObjectType, KeysType extends keyof ObjectType> = {
|
|
270273
|
+
[KeyType in keyof ObjectType as Filter<KeyType, KeysType>]: ObjectType[KeyType];
|
|
270274
|
+
};`;
|
|
270181
270275
|
function generateClientCode(props) {
|
|
270182
270276
|
const operations = props.operations.map((operation) => ({
|
|
270183
270277
|
...operation,
|
|
@@ -270186,7 +270280,6 @@ function generateClientCode(props) {
|
|
|
270186
270280
|
}));
|
|
270187
270281
|
return `
|
|
270188
270282
|
import axios, { AxiosInstance } from 'axios'
|
|
270189
|
-
import type { Merge, Except } from 'type-fest'
|
|
270190
270283
|
import {
|
|
270191
270284
|
DefaultApi,
|
|
270192
270285
|
Configuration,
|
|
@@ -270194,6 +270287,8 @@ ${sift(operations.map((operation) => generateImport(operation))).join(",\n")},
|
|
|
270194
270287
|
} from '.'
|
|
270195
270288
|
import { errorFrom } from './errors'
|
|
270196
270289
|
|
|
270290
|
+
${typeHelpers}
|
|
270291
|
+
|
|
270197
270292
|
export class ApiClient {
|
|
270198
270293
|
private _innerClient: DefaultApi
|
|
270199
270294
|
public constructor(configuration?: Configuration, basePath?: string, axiosInstance?: AxiosInstance) {
|
|
@@ -273377,6 +273472,12 @@ var state = {
|
|
|
273377
273472
|
"email": {
|
|
273378
273473
|
"type": "string"
|
|
273379
273474
|
},
|
|
273475
|
+
"displayName": {
|
|
273476
|
+
"type": "string"
|
|
273477
|
+
},
|
|
273478
|
+
"profilePicture": {
|
|
273479
|
+
"type": "string"
|
|
273480
|
+
},
|
|
273380
273481
|
"createdAt": {
|
|
273381
273482
|
"type": "string",
|
|
273382
273483
|
"format": "date-time",
|
|
@@ -273400,6 +273501,74 @@ var state = {
|
|
|
273400
273501
|
},
|
|
273401
273502
|
"parameters": {}
|
|
273402
273503
|
},
|
|
273504
|
+
"updateAccount": {
|
|
273505
|
+
"name": "updateAccount",
|
|
273506
|
+
"description": "Update details of the account associated with authenticated user",
|
|
273507
|
+
"method": "put",
|
|
273508
|
+
"path": "/v1/admin/account/me",
|
|
273509
|
+
"section": "account",
|
|
273510
|
+
"disableDefaultParameters": {
|
|
273511
|
+
"x-workspace-id": true
|
|
273512
|
+
},
|
|
273513
|
+
"requestBody": {
|
|
273514
|
+
"description": "Account Data",
|
|
273515
|
+
"schema": {
|
|
273516
|
+
"type": "object",
|
|
273517
|
+
"properties": {
|
|
273518
|
+
"displayName": {
|
|
273519
|
+
"type": "string"
|
|
273520
|
+
},
|
|
273521
|
+
"profilePicture": {
|
|
273522
|
+
"type": "string"
|
|
273523
|
+
}
|
|
273524
|
+
},
|
|
273525
|
+
"title": "updateAccountBody",
|
|
273526
|
+
"additionalProperties": false
|
|
273527
|
+
}
|
|
273528
|
+
},
|
|
273529
|
+
"response": {
|
|
273530
|
+
"description": "Success",
|
|
273531
|
+
"schema": {
|
|
273532
|
+
"type": "object",
|
|
273533
|
+
"properties": {
|
|
273534
|
+
"account": {
|
|
273535
|
+
"type": "object",
|
|
273536
|
+
"properties": {
|
|
273537
|
+
"id": {
|
|
273538
|
+
"type": "string"
|
|
273539
|
+
},
|
|
273540
|
+
"email": {
|
|
273541
|
+
"type": "string"
|
|
273542
|
+
},
|
|
273543
|
+
"displayName": {
|
|
273544
|
+
"type": "string"
|
|
273545
|
+
},
|
|
273546
|
+
"profilePicture": {
|
|
273547
|
+
"type": "string"
|
|
273548
|
+
},
|
|
273549
|
+
"createdAt": {
|
|
273550
|
+
"type": "string",
|
|
273551
|
+
"format": "date-time",
|
|
273552
|
+
"description": "Creation date of the [Account](#schema_account) in ISO 8601 format"
|
|
273553
|
+
}
|
|
273554
|
+
},
|
|
273555
|
+
"required": [
|
|
273556
|
+
"id",
|
|
273557
|
+
"email",
|
|
273558
|
+
"createdAt"
|
|
273559
|
+
],
|
|
273560
|
+
"additionalProperties": false
|
|
273561
|
+
}
|
|
273562
|
+
},
|
|
273563
|
+
"required": [
|
|
273564
|
+
"account"
|
|
273565
|
+
],
|
|
273566
|
+
"title": "updateAccountResponse",
|
|
273567
|
+
"additionalProperties": false
|
|
273568
|
+
}
|
|
273569
|
+
},
|
|
273570
|
+
"parameters": {}
|
|
273571
|
+
},
|
|
273403
273572
|
"listPersonalAccessTokens": {
|
|
273404
273573
|
"name": "listPersonalAccessTokens",
|
|
273405
273574
|
"description": "List PATs (Personal Access Tokens) of account.",
|
|
@@ -275505,6 +275674,78 @@ var state = {
|
|
|
275505
275674
|
},
|
|
275506
275675
|
"parameters": {}
|
|
275507
275676
|
},
|
|
275677
|
+
"getPublicWorkspace": {
|
|
275678
|
+
"name": "getPublicWorkspace",
|
|
275679
|
+
"description": "Get workspace public details",
|
|
275680
|
+
"section": "workspace",
|
|
275681
|
+
"method": "get",
|
|
275682
|
+
"path": "/v1/admin/workspaces/{id}/public",
|
|
275683
|
+
"disableDefaultParameters": {
|
|
275684
|
+
"x-workspace-id": true
|
|
275685
|
+
},
|
|
275686
|
+
"parameters": {
|
|
275687
|
+
"id": {
|
|
275688
|
+
"type": "string",
|
|
275689
|
+
"description": "Workspace ID",
|
|
275690
|
+
"in": "path"
|
|
275691
|
+
}
|
|
275692
|
+
},
|
|
275693
|
+
"response": {
|
|
275694
|
+
"description": "Success",
|
|
275695
|
+
"schema": {
|
|
275696
|
+
"type": "object",
|
|
275697
|
+
"properties": {
|
|
275698
|
+
"id": {
|
|
275699
|
+
"type": "string"
|
|
275700
|
+
},
|
|
275701
|
+
"name": {
|
|
275702
|
+
"type": "string"
|
|
275703
|
+
},
|
|
275704
|
+
"createdAt": {
|
|
275705
|
+
"type": "string"
|
|
275706
|
+
},
|
|
275707
|
+
"updatedAt": {
|
|
275708
|
+
"type": "string"
|
|
275709
|
+
},
|
|
275710
|
+
"about": {
|
|
275711
|
+
"default": "",
|
|
275712
|
+
"type": "string"
|
|
275713
|
+
},
|
|
275714
|
+
"profilePicture": {
|
|
275715
|
+
"default": "",
|
|
275716
|
+
"type": "string"
|
|
275717
|
+
},
|
|
275718
|
+
"contactEmail": {
|
|
275719
|
+
"default": "",
|
|
275720
|
+
"type": "string"
|
|
275721
|
+
},
|
|
275722
|
+
"website": {
|
|
275723
|
+
"default": "",
|
|
275724
|
+
"type": "string"
|
|
275725
|
+
},
|
|
275726
|
+
"socialAccounts": {
|
|
275727
|
+
"default": [],
|
|
275728
|
+
"type": "array",
|
|
275729
|
+
"items": {
|
|
275730
|
+
"type": "string"
|
|
275731
|
+
}
|
|
275732
|
+
},
|
|
275733
|
+
"handle": {
|
|
275734
|
+
"default": "",
|
|
275735
|
+
"type": "string"
|
|
275736
|
+
}
|
|
275737
|
+
},
|
|
275738
|
+
"required": [
|
|
275739
|
+
"id",
|
|
275740
|
+
"name",
|
|
275741
|
+
"createdAt",
|
|
275742
|
+
"updatedAt"
|
|
275743
|
+
],
|
|
275744
|
+
"title": "getPublicWorkspaceResponse",
|
|
275745
|
+
"additionalProperties": false
|
|
275746
|
+
}
|
|
275747
|
+
}
|
|
275748
|
+
},
|
|
275508
275749
|
"getWorkspace": {
|
|
275509
275750
|
"name": "getWorkspace",
|
|
275510
275751
|
"description": "Get workspace details",
|
|
@@ -276554,6 +276795,10 @@ var state = {
|
|
|
276554
276795
|
"type": "string",
|
|
276555
276796
|
"nullable": true
|
|
276556
276797
|
},
|
|
276798
|
+
"value": {
|
|
276799
|
+
"type": "string",
|
|
276800
|
+
"nullable": true
|
|
276801
|
+
},
|
|
276557
276802
|
"action": {
|
|
276558
276803
|
"type": "string",
|
|
276559
276804
|
"enum": [
|
|
@@ -276575,7 +276820,8 @@ var state = {
|
|
|
276575
276820
|
"UPDATE_PAYMENT_METHOD",
|
|
276576
276821
|
"UPDATE_WORKSPACE",
|
|
276577
276822
|
"UPGRADE_WORKSPACE_PLAN",
|
|
276578
|
-
"SET_SPENDING_LIMIT"
|
|
276823
|
+
"SET_SPENDING_LIMIT",
|
|
276824
|
+
"SET_AI_SPENDING_LIMIT"
|
|
276579
276825
|
]
|
|
276580
276826
|
}
|
|
276581
276827
|
},
|
|
@@ -279109,7 +279355,7 @@ var state = {
|
|
|
279109
279355
|
"title": "Botpress API",
|
|
279110
279356
|
"description": "API for Botpress Cloud",
|
|
279111
279357
|
"server": "https://api.botpress.cloud",
|
|
279112
|
-
"version": "0.18.
|
|
279358
|
+
"version": "0.18.4",
|
|
279113
279359
|
"prefix": "v1"
|
|
279114
279360
|
},
|
|
279115
279361
|
"errors": [
|
|
@@ -279246,6 +279492,7 @@ var state = {
|
|
|
279246
279492
|
"createTaskBody": true,
|
|
279247
279493
|
"updateTaskBody": true,
|
|
279248
279494
|
"runVrlBody": true,
|
|
279495
|
+
"updateAccountBody": true,
|
|
279249
279496
|
"createPersonalAccessTokenBody": true,
|
|
279250
279497
|
"setAccountPreferenceBody": true,
|
|
279251
279498
|
"createBotBody": true,
|
|
@@ -279312,6 +279559,7 @@ var state = {
|
|
|
279312
279559
|
"listTasksResponse": true,
|
|
279313
279560
|
"runVrlResponse": true,
|
|
279314
279561
|
"getAccountResponse": true,
|
|
279562
|
+
"updateAccountResponse": true,
|
|
279315
279563
|
"listPersonalAccessTokensResponse": true,
|
|
279316
279564
|
"createPersonalAccessTokenResponse": true,
|
|
279317
279565
|
"deletePersonalAccessTokenResponse": true,
|
|
@@ -279337,6 +279585,7 @@ var state = {
|
|
|
279337
279585
|
"listWorkspaceInvoicesResponse": true,
|
|
279338
279586
|
"chargeWorkspaceUnpaidInvoicesResponse": true,
|
|
279339
279587
|
"createWorkspaceResponse": true,
|
|
279588
|
+
"getPublicWorkspaceResponse": true,
|
|
279340
279589
|
"getWorkspaceResponse": true,
|
|
279341
279590
|
"listWorkspaceUsagesResponse": true,
|
|
279342
279591
|
"breakDownWorkspaceUsageByBotResponse": true,
|
|
@@ -280450,6 +280699,12 @@ var state = {
|
|
|
280450
280699
|
"email": {
|
|
280451
280700
|
"type": "string"
|
|
280452
280701
|
},
|
|
280702
|
+
"displayName": {
|
|
280703
|
+
"type": "string"
|
|
280704
|
+
},
|
|
280705
|
+
"profilePicture": {
|
|
280706
|
+
"type": "string"
|
|
280707
|
+
},
|
|
280453
280708
|
"createdAt": {
|
|
280454
280709
|
"type": "string",
|
|
280455
280710
|
"format": "date-time",
|
|
@@ -281536,6 +281791,7 @@ var state = {
|
|
|
281536
281791
|
"listWorkspaceInvoices",
|
|
281537
281792
|
"chargeWorkspaceUnpaidInvoices",
|
|
281538
281793
|
"createWorkspace",
|
|
281794
|
+
"getPublicWorkspace",
|
|
281539
281795
|
"getWorkspace",
|
|
281540
281796
|
"listWorkspaceUsages",
|
|
281541
281797
|
"breakDownWorkspaceUsageByBot",
|
|
@@ -281569,6 +281825,7 @@ var state = {
|
|
|
281569
281825
|
"name": "account",
|
|
281570
281826
|
"operations": [
|
|
281571
281827
|
"getAccount",
|
|
281828
|
+
"updateAccount",
|
|
281572
281829
|
"listPersonalAccessTokens",
|
|
281573
281830
|
"createPersonalAccessToken",
|
|
281574
281831
|
"deletePersonalAccessToken",
|