fern-api 0.38.0-rc0 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle.cjs +448 -333
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -5742,10 +5742,10 @@ var require_tmp_promise = __commonJS({
|
|
|
5742
5742
|
"../../../node_modules/.pnpm/tmp-promise@3.0.3/node_modules/tmp-promise/index.js"(exports2, module2) {
|
|
5743
5743
|
"use strict";
|
|
5744
5744
|
var { promisify: promisify3 } = require("util");
|
|
5745
|
-
var
|
|
5746
|
-
module2.exports.fileSync =
|
|
5745
|
+
var tmp14 = require_tmp();
|
|
5746
|
+
module2.exports.fileSync = tmp14.fileSync;
|
|
5747
5747
|
var fileWithOptions = promisify3(
|
|
5748
|
-
(options2, cb) =>
|
|
5748
|
+
(options2, cb) => tmp14.file(
|
|
5749
5749
|
options2,
|
|
5750
5750
|
(err, path45, fd, cleanup) => err ? cb(err) : cb(void 0, { path: path45, fd, cleanup: promisify3(cleanup) })
|
|
5751
5751
|
)
|
|
@@ -5759,9 +5759,9 @@ var require_tmp_promise = __commonJS({
|
|
|
5759
5759
|
await cleanup();
|
|
5760
5760
|
}
|
|
5761
5761
|
};
|
|
5762
|
-
module2.exports.dirSync =
|
|
5762
|
+
module2.exports.dirSync = tmp14.dirSync;
|
|
5763
5763
|
var dirWithOptions = promisify3(
|
|
5764
|
-
(options2, cb) =>
|
|
5764
|
+
(options2, cb) => tmp14.dir(
|
|
5765
5765
|
options2,
|
|
5766
5766
|
(err, path45, cleanup) => err ? cb(err) : cb(void 0, { path: path45, cleanup: promisify3(cleanup) })
|
|
5767
5767
|
)
|
|
@@ -5775,10 +5775,10 @@ var require_tmp_promise = __commonJS({
|
|
|
5775
5775
|
await cleanup();
|
|
5776
5776
|
}
|
|
5777
5777
|
};
|
|
5778
|
-
module2.exports.tmpNameSync =
|
|
5779
|
-
module2.exports.tmpName = promisify3(
|
|
5780
|
-
module2.exports.tmpdir =
|
|
5781
|
-
module2.exports.setGracefulCleanup =
|
|
5778
|
+
module2.exports.tmpNameSync = tmp14.tmpNameSync;
|
|
5779
|
+
module2.exports.tmpName = promisify3(tmp14.tmpName);
|
|
5780
|
+
module2.exports.tmpdir = tmp14.tmpdir;
|
|
5781
|
+
module2.exports.setGracefulCleanup = tmp14.setGracefulCleanup;
|
|
5782
5782
|
}
|
|
5783
5783
|
});
|
|
5784
5784
|
|
|
@@ -27632,10 +27632,10 @@ var require_writer = __commonJS({
|
|
|
27632
27632
|
bytes2.push(octet & 127);
|
|
27633
27633
|
}
|
|
27634
27634
|
}
|
|
27635
|
-
var
|
|
27635
|
+
var tmp14 = s3.split(".");
|
|
27636
27636
|
var bytes = [];
|
|
27637
|
-
bytes.push(parseInt(
|
|
27638
|
-
|
|
27637
|
+
bytes.push(parseInt(tmp14[0], 10) * 40 + parseInt(tmp14[1], 10));
|
|
27638
|
+
tmp14.slice(2).forEach(function(b2) {
|
|
27639
27639
|
encodeOctet(bytes, parseInt(b2, 10));
|
|
27640
27640
|
});
|
|
27641
27641
|
var self2 = this;
|
|
@@ -29949,13 +29949,13 @@ var require_nacl_fast = __commonJS({
|
|
|
29949
29949
|
checkArrayTypes(signedMsg, publicKey);
|
|
29950
29950
|
if (publicKey.length !== crypto_sign_PUBLICKEYBYTES)
|
|
29951
29951
|
throw new Error("bad public key size");
|
|
29952
|
-
var
|
|
29953
|
-
var mlen = crypto_sign_open(
|
|
29952
|
+
var tmp14 = new Uint8Array(signedMsg.length);
|
|
29953
|
+
var mlen = crypto_sign_open(tmp14, signedMsg, signedMsg.length, publicKey);
|
|
29954
29954
|
if (mlen < 0)
|
|
29955
29955
|
return null;
|
|
29956
29956
|
var m = new Uint8Array(mlen);
|
|
29957
29957
|
for (var i2 = 0; i2 < m.length; i2++)
|
|
29958
|
-
m[i2] =
|
|
29958
|
+
m[i2] = tmp14[i2];
|
|
29959
29959
|
return m;
|
|
29960
29960
|
};
|
|
29961
29961
|
nacl.sign.detached = function(msg, secretKey) {
|
|
@@ -34950,7 +34950,7 @@ var require_agent = __commonJS({
|
|
|
34950
34950
|
var { Socket } = require("net");
|
|
34951
34951
|
var { Duplex } = require("stream");
|
|
34952
34952
|
var { resolve: resolve6 } = require("path");
|
|
34953
|
-
var { readFile:
|
|
34953
|
+
var { readFile: readFile48 } = require("fs");
|
|
34954
34954
|
var { execFile, spawn } = require("child_process");
|
|
34955
34955
|
var { isParsedKey, parseKey } = require_keyParser();
|
|
34956
34956
|
var {
|
|
@@ -35168,7 +35168,7 @@ var require_agent = __commonJS({
|
|
|
35168
35168
|
cb = once2(cb);
|
|
35169
35169
|
let socketPath = this.socketPath;
|
|
35170
35170
|
let triedCygpath = false;
|
|
35171
|
-
|
|
35171
|
+
readFile48(socketPath, function readCygsocket(err, data2) {
|
|
35172
35172
|
if (err) {
|
|
35173
35173
|
if (triedCygpath)
|
|
35174
35174
|
return cb(new Error("Invalid cygwin unix socket path"));
|
|
@@ -35177,7 +35177,7 @@ var require_agent = __commonJS({
|
|
|
35177
35177
|
return cb(new Error("Invalid cygwin unix socket path"));
|
|
35178
35178
|
triedCygpath = true;
|
|
35179
35179
|
socketPath = stdout.toString().replace(/[\r\n]/g, "");
|
|
35180
|
-
|
|
35180
|
+
readFile48(socketPath, readCygsocket);
|
|
35181
35181
|
});
|
|
35182
35182
|
return;
|
|
35183
35183
|
}
|
|
@@ -79907,8 +79907,8 @@ var require_graceful_fs = __commonJS({
|
|
|
79907
79907
|
fs9.createReadStream = createReadStream;
|
|
79908
79908
|
fs9.createWriteStream = createWriteStream7;
|
|
79909
79909
|
var fs$readFile = fs9.readFile;
|
|
79910
|
-
fs9.readFile =
|
|
79911
|
-
function
|
|
79910
|
+
fs9.readFile = readFile48;
|
|
79911
|
+
function readFile48(path45, options2, cb) {
|
|
79912
79912
|
if (typeof options2 === "function")
|
|
79913
79913
|
cb = options2, options2 = null;
|
|
79914
79914
|
return go$readFile(path45, options2, cb);
|
|
@@ -81272,7 +81272,7 @@ var require_jsonfile = __commonJS({
|
|
|
81272
81272
|
}
|
|
81273
81273
|
return obj;
|
|
81274
81274
|
}
|
|
81275
|
-
var
|
|
81275
|
+
var readFile48 = universalify.fromPromise(_readFile);
|
|
81276
81276
|
function readFileSync4(file, options2 = {}) {
|
|
81277
81277
|
if (typeof options2 === "string") {
|
|
81278
81278
|
options2 = { encoding: options2 };
|
|
@@ -81304,7 +81304,7 @@ var require_jsonfile = __commonJS({
|
|
|
81304
81304
|
return fs8.writeFileSync(file, str3, options2);
|
|
81305
81305
|
}
|
|
81306
81306
|
var jsonfile = {
|
|
81307
|
-
readFile:
|
|
81307
|
+
readFile: readFile48,
|
|
81308
81308
|
readFileSync: readFileSync4,
|
|
81309
81309
|
writeFile: writeFile42,
|
|
81310
81310
|
writeFileSync
|
|
@@ -123177,9 +123177,9 @@ var require_utf16 = __commonJS({
|
|
|
123177
123177
|
Utf16BEEncoder.prototype.write = function(str3) {
|
|
123178
123178
|
var buf = Buffer7.from(str3, "ucs2");
|
|
123179
123179
|
for (var i2 = 0; i2 < buf.length; i2 += 2) {
|
|
123180
|
-
var
|
|
123180
|
+
var tmp14 = buf[i2];
|
|
123181
123181
|
buf[i2] = buf[i2 + 1];
|
|
123182
|
-
buf[i2 + 1] =
|
|
123182
|
+
buf[i2 + 1] = tmp14;
|
|
123183
123183
|
}
|
|
123184
123184
|
return buf;
|
|
123185
123185
|
};
|
|
@@ -138145,11 +138145,11 @@ var require_third_party = __commonJS({
|
|
|
138145
138145
|
}
|
|
138146
138146
|
return current2;
|
|
138147
138147
|
}
|
|
138148
|
-
module22.exports = (chalk2,
|
|
138148
|
+
module22.exports = (chalk2, tmp14) => {
|
|
138149
138149
|
const styles4 = [];
|
|
138150
138150
|
const chunks = [];
|
|
138151
138151
|
let chunk2 = [];
|
|
138152
|
-
|
|
138152
|
+
tmp14.replace(TEMPLATE_REGEX, (m, escapeChar, inverse, style2, close2, chr) => {
|
|
138153
138153
|
if (escapeChar) {
|
|
138154
138154
|
chunk2.push(unescape2(escapeChar));
|
|
138155
138155
|
} else if (style2) {
|
|
@@ -144455,7 +144455,7 @@ ${error.message}`;
|
|
|
144455
144455
|
Object.defineProperty(exports22, "__esModule", {
|
|
144456
144456
|
value: true
|
|
144457
144457
|
});
|
|
144458
|
-
exports22.readFile =
|
|
144458
|
+
exports22.readFile = readFile48;
|
|
144459
144459
|
exports22.readFileSync = readFileSync4;
|
|
144460
144460
|
var _fs = _interopRequireDefault(require("fs"));
|
|
144461
144461
|
function _interopRequireDefault(obj) {
|
|
@@ -144474,7 +144474,7 @@ ${error.message}`;
|
|
|
144474
144474
|
});
|
|
144475
144475
|
});
|
|
144476
144476
|
}
|
|
144477
|
-
async function
|
|
144477
|
+
async function readFile48(filepath, options2 = {}) {
|
|
144478
144478
|
const throwNotFound = options2.throwNotFound === true;
|
|
144479
144479
|
try {
|
|
144480
144480
|
const content3 = await fsReadFileAsync(filepath, "utf8");
|
|
@@ -322750,9 +322750,9 @@ var require_prettier = __commonJS({
|
|
|
322750
322750
|
component.value = diff.join(oldString.slice(oldPos, oldPos + component.count));
|
|
322751
322751
|
oldPos += component.count;
|
|
322752
322752
|
if (componentPos && components[componentPos - 1].added) {
|
|
322753
|
-
var
|
|
322753
|
+
var tmp14 = components[componentPos - 1];
|
|
322754
322754
|
components[componentPos - 1] = components[componentPos];
|
|
322755
|
-
components[componentPos] =
|
|
322755
|
+
components[componentPos] = tmp14;
|
|
322756
322756
|
}
|
|
322757
322757
|
}
|
|
322758
322758
|
}
|
|
@@ -326121,11 +326121,11 @@ var require_prettier = __commonJS({
|
|
|
326121
326121
|
}
|
|
326122
326122
|
return current2;
|
|
326123
326123
|
}
|
|
326124
|
-
module22.exports = (chalk2,
|
|
326124
|
+
module22.exports = (chalk2, tmp14) => {
|
|
326125
326125
|
const styles4 = [];
|
|
326126
326126
|
const chunks = [];
|
|
326127
326127
|
let chunk2 = [];
|
|
326128
|
-
|
|
326128
|
+
tmp14.replace(TEMPLATE_REGEX, (m, escapeChar, inverse, style2, close2, chr) => {
|
|
326129
326129
|
if (escapeChar) {
|
|
326130
326130
|
chunk2.push(unescape2(escapeChar));
|
|
326131
326131
|
} else if (style2) {
|
|
@@ -326409,7 +326409,7 @@ var require_prettier = __commonJS({
|
|
|
326409
326409
|
}
|
|
326410
326410
|
var bCharCode;
|
|
326411
326411
|
var ret;
|
|
326412
|
-
var
|
|
326412
|
+
var tmp14;
|
|
326413
326413
|
var tmp22;
|
|
326414
326414
|
var i2 = 0;
|
|
326415
326415
|
var j2 = 0;
|
|
@@ -326419,12 +326419,12 @@ var require_prettier = __commonJS({
|
|
|
326419
326419
|
}
|
|
326420
326420
|
while (j2 < bLen) {
|
|
326421
326421
|
bCharCode = b2.charCodeAt(start2 + j2);
|
|
326422
|
-
|
|
326422
|
+
tmp14 = j2++;
|
|
326423
326423
|
ret = j2;
|
|
326424
326424
|
for (i2 = 0; i2 < aLen; i2++) {
|
|
326425
|
-
tmp22 = bCharCode === charCodeCache[start2 + i2] ?
|
|
326426
|
-
|
|
326427
|
-
ret = arr[i2] =
|
|
326425
|
+
tmp22 = bCharCode === charCodeCache[start2 + i2] ? tmp14 : tmp14 + 1;
|
|
326426
|
+
tmp14 = arr[i2];
|
|
326427
|
+
ret = arr[i2] = tmp14 > ret ? tmp22 > ret ? ret + 1 : tmp22 : tmp22 > tmp14 ? tmp14 + 1 : tmp22;
|
|
326428
326428
|
}
|
|
326429
326429
|
}
|
|
326430
326430
|
return ret;
|
|
@@ -327814,11 +327814,11 @@ var require_prettier = __commonJS({
|
|
|
327814
327814
|
}
|
|
327815
327815
|
return current2;
|
|
327816
327816
|
}
|
|
327817
|
-
module22.exports = (chalk2,
|
|
327817
|
+
module22.exports = (chalk2, tmp14) => {
|
|
327818
327818
|
const styles4 = [];
|
|
327819
327819
|
const chunks = [];
|
|
327820
327820
|
let chunk2 = [];
|
|
327821
|
-
|
|
327821
|
+
tmp14.replace(TEMPLATE_REGEX, (m, escapeChar, inverse, style2, close2, chr) => {
|
|
327822
327822
|
if (escapeChar) {
|
|
327823
327823
|
chunk2.push(unescape2(escapeChar));
|
|
327824
327824
|
} else if (style2) {
|
|
@@ -335995,8 +335995,8 @@ ${error.message}`;
|
|
|
335995
335995
|
cb(null, x2);
|
|
335996
335996
|
}
|
|
335997
335997
|
};
|
|
335998
|
-
var defaultReadPackage = function defaultReadPackage2(
|
|
335999
|
-
|
|
335998
|
+
var defaultReadPackage = function defaultReadPackage2(readFile48, pkgfile, cb) {
|
|
335999
|
+
readFile48(pkgfile, function(readFileErr, body) {
|
|
336000
336000
|
if (readFileErr)
|
|
336001
336001
|
cb(readFileErr);
|
|
336002
336002
|
else {
|
|
@@ -336032,7 +336032,7 @@ ${error.message}`;
|
|
|
336032
336032
|
opts = normalizeOptions(x2, opts);
|
|
336033
336033
|
var isFile = opts.isFile || defaultIsFile;
|
|
336034
336034
|
var isDirectory = opts.isDirectory || defaultIsDir;
|
|
336035
|
-
var
|
|
336035
|
+
var readFile48 = opts.readFile || fs8.readFile;
|
|
336036
336036
|
var realpath = opts.realpath || defaultRealpath;
|
|
336037
336037
|
var readPackage = opts.readPackage || defaultReadPackage;
|
|
336038
336038
|
if (opts.readFile && opts.readPackage) {
|
|
@@ -336164,7 +336164,7 @@ ${error.message}`;
|
|
|
336164
336164
|
isFile(pkgfile, function(err2, ex) {
|
|
336165
336165
|
if (!ex)
|
|
336166
336166
|
return loadpkg(path45.dirname(dir), cb2);
|
|
336167
|
-
readPackage(
|
|
336167
|
+
readPackage(readFile48, pkgfile, function(err3, pkgParam) {
|
|
336168
336168
|
if (err3)
|
|
336169
336169
|
cb2(err3);
|
|
336170
336170
|
var pkg2 = pkgParam;
|
|
@@ -336192,7 +336192,7 @@ ${error.message}`;
|
|
|
336192
336192
|
return cb2(err2);
|
|
336193
336193
|
if (!ex)
|
|
336194
336194
|
return loadAsFile(path45.join(x22, "index"), fpkg, cb2);
|
|
336195
|
-
readPackage(
|
|
336195
|
+
readPackage(readFile48, pkgfile, function(err3, pkgParam) {
|
|
336196
336196
|
if (err3)
|
|
336197
336197
|
return cb2(err3);
|
|
336198
336198
|
var pkg2 = pkgParam;
|
|
@@ -363299,7 +363299,7 @@ var require_mkdir = __commonJS({
|
|
|
363299
363299
|
const gid = opt.gid;
|
|
363300
363300
|
const doChown = typeof uid === "number" && typeof gid === "number" && (uid !== opt.processUid || gid !== opt.processGid);
|
|
363301
363301
|
const preserve = opt.preserve;
|
|
363302
|
-
const
|
|
363302
|
+
const unlink2 = opt.unlink;
|
|
363303
363303
|
const cache = opt.cache;
|
|
363304
363304
|
const cwd2 = normPath(opt.cwd);
|
|
363305
363305
|
const done = (er, created) => {
|
|
@@ -363327,33 +363327,33 @@ var require_mkdir = __commonJS({
|
|
|
363327
363327
|
}
|
|
363328
363328
|
const sub2 = normPath(path45.relative(cwd2, dir));
|
|
363329
363329
|
const parts = sub2.split("/");
|
|
363330
|
-
mkdir_(cwd2, parts, mode, cache,
|
|
363330
|
+
mkdir_(cwd2, parts, mode, cache, unlink2, cwd2, null, done);
|
|
363331
363331
|
};
|
|
363332
|
-
var mkdir_ = (base2, parts, mode, cache,
|
|
363332
|
+
var mkdir_ = (base2, parts, mode, cache, unlink2, cwd2, created, cb) => {
|
|
363333
363333
|
if (!parts.length) {
|
|
363334
363334
|
return cb(null, created);
|
|
363335
363335
|
}
|
|
363336
363336
|
const p3 = parts.shift();
|
|
363337
363337
|
const part = normPath(path45.resolve(base2 + "/" + p3));
|
|
363338
363338
|
if (cGet(cache, part)) {
|
|
363339
|
-
return mkdir_(part, parts, mode, cache,
|
|
363339
|
+
return mkdir_(part, parts, mode, cache, unlink2, cwd2, created, cb);
|
|
363340
363340
|
}
|
|
363341
|
-
fs8.mkdir(part, mode, onmkdir(part, parts, mode, cache,
|
|
363341
|
+
fs8.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink2, cwd2, created, cb));
|
|
363342
363342
|
};
|
|
363343
|
-
var onmkdir = (part, parts, mode, cache,
|
|
363343
|
+
var onmkdir = (part, parts, mode, cache, unlink2, cwd2, created, cb) => (er) => {
|
|
363344
363344
|
if (er) {
|
|
363345
363345
|
fs8.lstat(part, (statEr, st) => {
|
|
363346
363346
|
if (statEr) {
|
|
363347
363347
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
363348
363348
|
cb(statEr);
|
|
363349
363349
|
} else if (st.isDirectory()) {
|
|
363350
|
-
mkdir_(part, parts, mode, cache,
|
|
363351
|
-
} else if (
|
|
363350
|
+
mkdir_(part, parts, mode, cache, unlink2, cwd2, created, cb);
|
|
363351
|
+
} else if (unlink2) {
|
|
363352
363352
|
fs8.unlink(part, (er2) => {
|
|
363353
363353
|
if (er2) {
|
|
363354
363354
|
return cb(er2);
|
|
363355
363355
|
}
|
|
363356
|
-
fs8.mkdir(part, mode, onmkdir(part, parts, mode, cache,
|
|
363356
|
+
fs8.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink2, cwd2, created, cb));
|
|
363357
363357
|
});
|
|
363358
363358
|
} else if (st.isSymbolicLink()) {
|
|
363359
363359
|
return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
@@ -363363,7 +363363,7 @@ var require_mkdir = __commonJS({
|
|
|
363363
363363
|
});
|
|
363364
363364
|
} else {
|
|
363365
363365
|
created = created || part;
|
|
363366
|
-
mkdir_(part, parts, mode, cache,
|
|
363366
|
+
mkdir_(part, parts, mode, cache, unlink2, cwd2, created, cb);
|
|
363367
363367
|
}
|
|
363368
363368
|
};
|
|
363369
363369
|
var checkCwdSync = (dir) => {
|
|
@@ -363388,7 +363388,7 @@ var require_mkdir = __commonJS({
|
|
|
363388
363388
|
const gid = opt.gid;
|
|
363389
363389
|
const doChown = typeof uid === "number" && typeof gid === "number" && (uid !== opt.processUid || gid !== opt.processGid);
|
|
363390
363390
|
const preserve = opt.preserve;
|
|
363391
|
-
const
|
|
363391
|
+
const unlink2 = opt.unlink;
|
|
363392
363392
|
const cache = opt.cache;
|
|
363393
363393
|
const cwd2 = normPath(opt.cwd);
|
|
363394
363394
|
const done = (created2) => {
|
|
@@ -363427,7 +363427,7 @@ var require_mkdir = __commonJS({
|
|
|
363427
363427
|
if (st.isDirectory()) {
|
|
363428
363428
|
cSet(cache, part, true);
|
|
363429
363429
|
continue;
|
|
363430
|
-
} else if (
|
|
363430
|
+
} else if (unlink2) {
|
|
363431
363431
|
fs8.unlinkSync(part);
|
|
363432
363432
|
fs8.mkdirSync(part, mode);
|
|
363433
363433
|
created = created || part;
|
|
@@ -379183,7 +379183,7 @@ var require_loader = __commonJS({
|
|
|
379183
379183
|
throwError2(state, "unexpected end of the stream within a single quoted scalar");
|
|
379184
379184
|
}
|
|
379185
379185
|
function readDoubleQuotedScalar2(state, nodeIndent) {
|
|
379186
|
-
var captureStart, captureEnd, hexLength, hexResult,
|
|
379186
|
+
var captureStart, captureEnd, hexLength, hexResult, tmp14, ch;
|
|
379187
379187
|
ch = state.input.charCodeAt(state.position);
|
|
379188
379188
|
if (ch !== 34) {
|
|
379189
379189
|
return false;
|
|
@@ -379205,13 +379205,13 @@ var require_loader = __commonJS({
|
|
|
379205
379205
|
} else if (ch < 256 && simpleEscapeCheck2[ch]) {
|
|
379206
379206
|
state.result += simpleEscapeMap2[ch];
|
|
379207
379207
|
state.position++;
|
|
379208
|
-
} else if ((
|
|
379209
|
-
hexLength =
|
|
379208
|
+
} else if ((tmp14 = escapedHexLen2(ch)) > 0) {
|
|
379209
|
+
hexLength = tmp14;
|
|
379210
379210
|
hexResult = 0;
|
|
379211
379211
|
for (; hexLength > 0; hexLength--) {
|
|
379212
379212
|
ch = state.input.charCodeAt(++state.position);
|
|
379213
|
-
if ((
|
|
379214
|
-
hexResult = (hexResult << 4) +
|
|
379213
|
+
if ((tmp14 = fromHexCode2(ch)) >= 0) {
|
|
379214
|
+
hexResult = (hexResult << 4) + tmp14;
|
|
379215
379215
|
} else {
|
|
379216
379216
|
throwError2(state, "expected hexadecimal character");
|
|
379217
379217
|
}
|
|
@@ -379308,7 +379308,7 @@ var require_loader = __commonJS({
|
|
|
379308
379308
|
throwError2(state, "unexpected end of the stream within a flow collection");
|
|
379309
379309
|
}
|
|
379310
379310
|
function readBlockScalar2(state, nodeIndent) {
|
|
379311
|
-
var captureStart, folding, chomping = CHOMPING_CLIP2, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false,
|
|
379311
|
+
var captureStart, folding, chomping = CHOMPING_CLIP2, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false, tmp14, ch;
|
|
379312
379312
|
ch = state.input.charCodeAt(state.position);
|
|
379313
379313
|
if (ch === 124) {
|
|
379314
379314
|
folding = false;
|
|
@@ -379327,11 +379327,11 @@ var require_loader = __commonJS({
|
|
|
379327
379327
|
} else {
|
|
379328
379328
|
throwError2(state, "repeat of a chomping mode identifier");
|
|
379329
379329
|
}
|
|
379330
|
-
} else if ((
|
|
379331
|
-
if (
|
|
379330
|
+
} else if ((tmp14 = fromDecimalCode2(ch)) >= 0) {
|
|
379331
|
+
if (tmp14 === 0) {
|
|
379332
379332
|
throwError2(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
379333
379333
|
} else if (!detectedIndent) {
|
|
379334
|
-
textIndent = nodeIndent +
|
|
379334
|
+
textIndent = nodeIndent + tmp14 - 1;
|
|
379335
379335
|
detectedIndent = true;
|
|
379336
379336
|
} else {
|
|
379337
379337
|
throwError2(state, "repeat of an indentation width identifier");
|
|
@@ -381292,7 +381292,7 @@ var require_parse6 = __commonJS({
|
|
|
381292
381292
|
extension: url.getExtension(path45)
|
|
381293
381293
|
};
|
|
381294
381294
|
try {
|
|
381295
|
-
const resolver2 = await
|
|
381295
|
+
const resolver2 = await readFile48(file, options2, $refs);
|
|
381296
381296
|
$ref.pathType = resolver2.plugin.name;
|
|
381297
381297
|
file.data = resolver2.result;
|
|
381298
381298
|
const parser2 = await parseFile(file, options2, $refs);
|
|
@@ -381305,7 +381305,7 @@ var require_parse6 = __commonJS({
|
|
|
381305
381305
|
throw err;
|
|
381306
381306
|
}
|
|
381307
381307
|
}
|
|
381308
|
-
function
|
|
381308
|
+
function readFile48(file, options2, $refs) {
|
|
381309
381309
|
return new Promise((resolve6, reject) => {
|
|
381310
381310
|
let resolvers = plugins.all(options2.resolve);
|
|
381311
381311
|
resolvers = plugins.filter(resolvers, "canRead", file);
|
|
@@ -384374,7 +384374,7 @@ var require_loader2 = __commonJS({
|
|
|
384374
384374
|
throwError2(state, "unexpected end of the stream within a single quoted scalar");
|
|
384375
384375
|
}
|
|
384376
384376
|
function readDoubleQuotedScalar2(state, nodeIndent) {
|
|
384377
|
-
var captureStart, captureEnd, hexLength, hexResult,
|
|
384377
|
+
var captureStart, captureEnd, hexLength, hexResult, tmp14, ch;
|
|
384378
384378
|
ch = state.input.charCodeAt(state.position);
|
|
384379
384379
|
if (ch !== 34) {
|
|
384380
384380
|
return false;
|
|
@@ -384396,13 +384396,13 @@ var require_loader2 = __commonJS({
|
|
|
384396
384396
|
} else if (ch < 256 && simpleEscapeCheck2[ch]) {
|
|
384397
384397
|
state.result += simpleEscapeMap2[ch];
|
|
384398
384398
|
state.position++;
|
|
384399
|
-
} else if ((
|
|
384400
|
-
hexLength =
|
|
384399
|
+
} else if ((tmp14 = escapedHexLen2(ch)) > 0) {
|
|
384400
|
+
hexLength = tmp14;
|
|
384401
384401
|
hexResult = 0;
|
|
384402
384402
|
for (; hexLength > 0; hexLength--) {
|
|
384403
384403
|
ch = state.input.charCodeAt(++state.position);
|
|
384404
|
-
if ((
|
|
384405
|
-
hexResult = (hexResult << 4) +
|
|
384404
|
+
if ((tmp14 = fromHexCode2(ch)) >= 0) {
|
|
384405
|
+
hexResult = (hexResult << 4) + tmp14;
|
|
384406
384406
|
} else {
|
|
384407
384407
|
throwError2(state, "expected hexadecimal character");
|
|
384408
384408
|
}
|
|
@@ -384503,7 +384503,7 @@ var require_loader2 = __commonJS({
|
|
|
384503
384503
|
throwError2(state, "unexpected end of the stream within a flow collection");
|
|
384504
384504
|
}
|
|
384505
384505
|
function readBlockScalar2(state, nodeIndent) {
|
|
384506
|
-
var captureStart, folding, chomping = CHOMPING_CLIP2, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false,
|
|
384506
|
+
var captureStart, folding, chomping = CHOMPING_CLIP2, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false, tmp14, ch;
|
|
384507
384507
|
ch = state.input.charCodeAt(state.position);
|
|
384508
384508
|
if (ch === 124) {
|
|
384509
384509
|
folding = false;
|
|
@@ -384522,11 +384522,11 @@ var require_loader2 = __commonJS({
|
|
|
384522
384522
|
} else {
|
|
384523
384523
|
throwError2(state, "repeat of a chomping mode identifier");
|
|
384524
384524
|
}
|
|
384525
|
-
} else if ((
|
|
384526
|
-
if (
|
|
384525
|
+
} else if ((tmp14 = fromDecimalCode2(ch)) >= 0) {
|
|
384526
|
+
if (tmp14 === 0) {
|
|
384527
384527
|
throwError2(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
384528
384528
|
} else if (!detectedIndent) {
|
|
384529
|
-
textIndent = nodeIndent +
|
|
384529
|
+
textIndent = nodeIndent + tmp14 - 1;
|
|
384530
384530
|
detectedIndent = true;
|
|
384531
384531
|
} else {
|
|
384532
384532
|
throwError2(state, "repeat of an indentation width identifier");
|
|
@@ -389758,9 +389758,9 @@ var require_js_levenshtein = __commonJS({
|
|
|
389758
389758
|
return 0;
|
|
389759
389759
|
}
|
|
389760
389760
|
if (a2.length > b2.length) {
|
|
389761
|
-
var
|
|
389761
|
+
var tmp14 = a2;
|
|
389762
389762
|
a2 = b2;
|
|
389763
|
-
b2 =
|
|
389763
|
+
b2 = tmp14;
|
|
389764
389764
|
}
|
|
389765
389765
|
var la = a2.length;
|
|
389766
389766
|
var lb = b2.length;
|
|
@@ -404864,7 +404864,7 @@ var require_loader3 = __commonJS({
|
|
|
404864
404864
|
throwError2(state, "unexpected end of the stream within a single quoted scalar");
|
|
404865
404865
|
}
|
|
404866
404866
|
function readDoubleQuotedScalar2(state, nodeIndent) {
|
|
404867
|
-
var captureStart, captureEnd, hexLength, hexResult,
|
|
404867
|
+
var captureStart, captureEnd, hexLength, hexResult, tmp14, tmpEsc, ch;
|
|
404868
404868
|
ch = state.input.charCodeAt(state.position);
|
|
404869
404869
|
if (34 !== ch) {
|
|
404870
404870
|
return false;
|
|
@@ -404891,13 +404891,13 @@ var require_loader3 = __commonJS({
|
|
|
404891
404891
|
} else if (ch < 256 && (state.allowAnyEscape ? customEscapeCheck[ch] : simpleEscapeCheck2[ch])) {
|
|
404892
404892
|
scalar.value += state.allowAnyEscape ? customEscapeMap[ch] : simpleEscapeMap2[ch];
|
|
404893
404893
|
state.position++;
|
|
404894
|
-
} else if ((
|
|
404895
|
-
hexLength =
|
|
404894
|
+
} else if ((tmp14 = escapedHexLen2(ch)) > 0) {
|
|
404895
|
+
hexLength = tmp14;
|
|
404896
404896
|
hexResult = 0;
|
|
404897
404897
|
for (; hexLength > 0; hexLength--) {
|
|
404898
404898
|
ch = state.input.charCodeAt(++state.position);
|
|
404899
|
-
if ((
|
|
404900
|
-
hexResult = (hexResult << 4) +
|
|
404899
|
+
if ((tmp14 = fromHexCode2(ch)) >= 0) {
|
|
404900
|
+
hexResult = (hexResult << 4) + tmp14;
|
|
404901
404901
|
} else {
|
|
404902
404902
|
throwError2(state, "expected hexadecimal character");
|
|
404903
404903
|
}
|
|
@@ -405006,7 +405006,7 @@ var require_loader3 = __commonJS({
|
|
|
405006
405006
|
throwError2(state, "unexpected end of the stream within a flow collection");
|
|
405007
405007
|
}
|
|
405008
405008
|
function readBlockScalar2(state, nodeIndent) {
|
|
405009
|
-
var captureStart, folding, chomping = CHOMPING_CLIP2, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false,
|
|
405009
|
+
var captureStart, folding, chomping = CHOMPING_CLIP2, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false, tmp14, ch;
|
|
405010
405010
|
ch = state.input.charCodeAt(state.position);
|
|
405011
405011
|
if (ch === 124) {
|
|
405012
405012
|
folding = false;
|
|
@@ -405027,11 +405027,11 @@ var require_loader3 = __commonJS({
|
|
|
405027
405027
|
} else {
|
|
405028
405028
|
throwError2(state, "repeat of a chomping mode identifier");
|
|
405029
405029
|
}
|
|
405030
|
-
} else if ((
|
|
405031
|
-
if (
|
|
405030
|
+
} else if ((tmp14 = fromDecimalCode2(ch)) >= 0) {
|
|
405031
|
+
if (tmp14 === 0) {
|
|
405032
405032
|
throwError2(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
405033
405033
|
} else if (!detectedIndent) {
|
|
405034
|
-
textIndent = nodeIndent +
|
|
405034
|
+
textIndent = nodeIndent + tmp14 - 1;
|
|
405035
405035
|
detectedIndent = true;
|
|
405036
405036
|
} else {
|
|
405037
405037
|
throwError2(state, "repeat of an indentation width identifier");
|
|
@@ -417380,13 +417380,13 @@ var require_fast_safe_stringify = __commonJS({
|
|
|
417380
417380
|
if (typeof options2 === "undefined") {
|
|
417381
417381
|
options2 = defaultOptions2();
|
|
417382
417382
|
}
|
|
417383
|
-
var
|
|
417383
|
+
var tmp14 = deterministicDecirc(obj, "", 0, [], void 0, 0, options2) || obj;
|
|
417384
417384
|
var res;
|
|
417385
417385
|
try {
|
|
417386
417386
|
if (replacerStack.length === 0) {
|
|
417387
|
-
res = JSON.stringify(
|
|
417387
|
+
res = JSON.stringify(tmp14, replacer, spacer);
|
|
417388
417388
|
} else {
|
|
417389
|
-
res = JSON.stringify(
|
|
417389
|
+
res = JSON.stringify(tmp14, replaceGetterValues(replacer), spacer);
|
|
417390
417390
|
}
|
|
417391
417391
|
} catch (_4) {
|
|
417392
417392
|
return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]");
|
|
@@ -417433,18 +417433,18 @@ var require_fast_safe_stringify = __commonJS({
|
|
|
417433
417433
|
deterministicDecirc(val[i2], i2, i2, stack, val, depth, options2);
|
|
417434
417434
|
}
|
|
417435
417435
|
} else {
|
|
417436
|
-
var
|
|
417436
|
+
var tmp14 = {};
|
|
417437
417437
|
var keys7 = Object.keys(val).sort(compareFunction);
|
|
417438
417438
|
for (i2 = 0; i2 < keys7.length; i2++) {
|
|
417439
417439
|
var key = keys7[i2];
|
|
417440
417440
|
deterministicDecirc(val[key], key, i2, stack, val, depth, options2);
|
|
417441
|
-
|
|
417441
|
+
tmp14[key] = val[key];
|
|
417442
417442
|
}
|
|
417443
417443
|
if (typeof parent !== "undefined") {
|
|
417444
417444
|
arr.push([parent, k2, val]);
|
|
417445
|
-
parent[k2] =
|
|
417445
|
+
parent[k2] = tmp14;
|
|
417446
417446
|
} else {
|
|
417447
|
-
return
|
|
417447
|
+
return tmp14;
|
|
417448
417448
|
}
|
|
417449
417449
|
}
|
|
417450
417450
|
stack.pop();
|
|
@@ -423040,16 +423040,16 @@ var require_sync4 = __commonJS({
|
|
|
423040
423040
|
var { readdirSync: readdirSync2, statSync: statSync3 } = require("fs");
|
|
423041
423041
|
module2.exports = function(start2, callback) {
|
|
423042
423042
|
let dir = resolve6(".", start2);
|
|
423043
|
-
let
|
|
423043
|
+
let tmp14, stats = statSync3(dir);
|
|
423044
423044
|
if (!stats.isDirectory()) {
|
|
423045
423045
|
dir = dirname5(dir);
|
|
423046
423046
|
}
|
|
423047
423047
|
while (true) {
|
|
423048
|
-
|
|
423049
|
-
if (
|
|
423050
|
-
return resolve6(dir,
|
|
423051
|
-
dir = dirname5(
|
|
423052
|
-
if (
|
|
423048
|
+
tmp14 = callback(dir, readdirSync2(dir));
|
|
423049
|
+
if (tmp14)
|
|
423050
|
+
return resolve6(dir, tmp14);
|
|
423051
|
+
dir = dirname5(tmp14 = dir);
|
|
423052
|
+
if (tmp14 === dir)
|
|
423053
423053
|
break;
|
|
423054
423054
|
}
|
|
423055
423055
|
};
|
|
@@ -426695,8 +426695,8 @@ var require_graceful_fs2 = __commonJS({
|
|
|
426695
426695
|
fs9.createReadStream = createReadStream;
|
|
426696
426696
|
fs9.createWriteStream = createWriteStream7;
|
|
426697
426697
|
var fs$readFile = fs9.readFile;
|
|
426698
|
-
fs9.readFile =
|
|
426699
|
-
function
|
|
426698
|
+
fs9.readFile = readFile48;
|
|
426699
|
+
function readFile48(path45, options2, cb) {
|
|
426700
426700
|
if (typeof options2 === "function")
|
|
426701
426701
|
cb = options2, options2 = null;
|
|
426702
426702
|
return go$readFile(path45, options2, cb);
|
|
@@ -448991,9 +448991,9 @@ var require_buffer_crc32 = __commonJS({
|
|
|
448991
448991
|
}
|
|
448992
448992
|
}
|
|
448993
448993
|
function bufferizeInt(num) {
|
|
448994
|
-
var
|
|
448995
|
-
|
|
448996
|
-
return
|
|
448994
|
+
var tmp14 = ensureBuffer(4);
|
|
448995
|
+
tmp14.writeInt32BE(num, 0);
|
|
448996
|
+
return tmp14;
|
|
448997
448997
|
}
|
|
448998
448998
|
function _crc32(buf, previous4) {
|
|
448999
448999
|
buf = ensureBuffer(buf);
|
|
@@ -463807,11 +463807,11 @@ var require_templates3 = __commonJS({
|
|
|
463807
463807
|
}
|
|
463808
463808
|
return current2;
|
|
463809
463809
|
}
|
|
463810
|
-
module2.exports = (chalk2,
|
|
463810
|
+
module2.exports = (chalk2, tmp14) => {
|
|
463811
463811
|
const styles4 = [];
|
|
463812
463812
|
const chunks = [];
|
|
463813
463813
|
let chunk2 = [];
|
|
463814
|
-
|
|
463814
|
+
tmp14.replace(TEMPLATE_REGEX, (m, escapeChar, inverse, style2, close2, chr) => {
|
|
463815
463815
|
if (escapeChar) {
|
|
463816
463816
|
chunk2.push(unescape2(escapeChar));
|
|
463817
463817
|
} else if (style2) {
|
|
@@ -1178969,7 +1178969,7 @@ function readSingleQuotedScalar(state, nodeIndent) {
|
|
|
1178969
1178969
|
throwError(state, "unexpected end of the stream within a single quoted scalar");
|
|
1178970
1178970
|
}
|
|
1178971
1178971
|
function readDoubleQuotedScalar(state, nodeIndent) {
|
|
1178972
|
-
var captureStart, captureEnd, hexLength, hexResult,
|
|
1178972
|
+
var captureStart, captureEnd, hexLength, hexResult, tmp14, ch;
|
|
1178973
1178973
|
ch = state.input.charCodeAt(state.position);
|
|
1178974
1178974
|
if (ch !== 34) {
|
|
1178975
1178975
|
return false;
|
|
@@ -1178991,13 +1178991,13 @@ function readDoubleQuotedScalar(state, nodeIndent) {
|
|
|
1178991
1178991
|
} else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
1178992
1178992
|
state.result += simpleEscapeMap[ch];
|
|
1178993
1178993
|
state.position++;
|
|
1178994
|
-
} else if ((
|
|
1178995
|
-
hexLength =
|
|
1178994
|
+
} else if ((tmp14 = escapedHexLen(ch)) > 0) {
|
|
1178995
|
+
hexLength = tmp14;
|
|
1178996
1178996
|
hexResult = 0;
|
|
1178997
1178997
|
for (; hexLength > 0; hexLength--) {
|
|
1178998
1178998
|
ch = state.input.charCodeAt(++state.position);
|
|
1178999
|
-
if ((
|
|
1179000
|
-
hexResult = (hexResult << 4) +
|
|
1178999
|
+
if ((tmp14 = fromHexCode(ch)) >= 0) {
|
|
1179000
|
+
hexResult = (hexResult << 4) + tmp14;
|
|
1179001
1179001
|
} else {
|
|
1179002
1179002
|
throwError(state, "expected hexadecimal character");
|
|
1179003
1179003
|
}
|
|
@@ -1179098,7 +1179098,7 @@ function readFlowCollection(state, nodeIndent) {
|
|
|
1179098
1179098
|
throwError(state, "unexpected end of the stream within a flow collection");
|
|
1179099
1179099
|
}
|
|
1179100
1179100
|
function readBlockScalar(state, nodeIndent) {
|
|
1179101
|
-
var captureStart, folding, chomping = CHOMPING_CLIP, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false,
|
|
1179101
|
+
var captureStart, folding, chomping = CHOMPING_CLIP, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false, tmp14, ch;
|
|
1179102
1179102
|
ch = state.input.charCodeAt(state.position);
|
|
1179103
1179103
|
if (ch === 124) {
|
|
1179104
1179104
|
folding = false;
|
|
@@ -1179117,11 +1179117,11 @@ function readBlockScalar(state, nodeIndent) {
|
|
|
1179117
1179117
|
} else {
|
|
1179118
1179118
|
throwError(state, "repeat of a chomping mode identifier");
|
|
1179119
1179119
|
}
|
|
1179120
|
-
} else if ((
|
|
1179121
|
-
if (
|
|
1179120
|
+
} else if ((tmp14 = fromDecimalCode(ch)) >= 0) {
|
|
1179121
|
+
if (tmp14 === 0) {
|
|
1179122
1179122
|
throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
1179123
1179123
|
} else if (!detectedIndent) {
|
|
1179124
|
-
textIndent = nodeIndent +
|
|
1179124
|
+
textIndent = nodeIndent + tmp14 - 1;
|
|
1179125
1179125
|
detectedIndent = true;
|
|
1179126
1179126
|
} else {
|
|
1179127
1179127
|
throwError(state, "repeat of an indentation width identifier");
|
|
@@ -1192517,7 +1192517,7 @@ var AccessTokenPosthogManager = class {
|
|
|
1192517
1192517
|
properties: {
|
|
1192518
1192518
|
...event,
|
|
1192519
1192519
|
...event.properties,
|
|
1192520
|
-
version: "0.38.0
|
|
1192520
|
+
version: "0.38.0",
|
|
1192521
1192521
|
usingAccessToken: true
|
|
1192522
1192522
|
}
|
|
1192523
1192523
|
});
|
|
@@ -1192579,7 +1192579,7 @@ var UserPosthogManager = class {
|
|
|
1192579
1192579
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
1192580
1192580
|
event: "CLI",
|
|
1192581
1192581
|
properties: {
|
|
1192582
|
-
version: "0.38.0
|
|
1192582
|
+
version: "0.38.0",
|
|
1192583
1192583
|
...event,
|
|
1192584
1192584
|
...event.properties
|
|
1192585
1192585
|
}
|
|
@@ -1220608,16 +1220608,16 @@ var import_path23 = require("path");
|
|
|
1220608
1220608
|
var import_fs4 = require("fs");
|
|
1220609
1220609
|
function sync_default(start2, callback) {
|
|
1220610
1220610
|
let dir = (0, import_path23.resolve)(".", start2);
|
|
1220611
|
-
let
|
|
1220611
|
+
let tmp14, stats = (0, import_fs4.statSync)(dir);
|
|
1220612
1220612
|
if (!stats.isDirectory()) {
|
|
1220613
1220613
|
dir = (0, import_path23.dirname)(dir);
|
|
1220614
1220614
|
}
|
|
1220615
1220615
|
while (true) {
|
|
1220616
|
-
|
|
1220617
|
-
if (
|
|
1220618
|
-
return (0, import_path23.resolve)(dir,
|
|
1220619
|
-
dir = (0, import_path23.dirname)(
|
|
1220620
|
-
if (
|
|
1220616
|
+
tmp14 = callback(dir, (0, import_fs4.readdirSync)(dir));
|
|
1220617
|
+
if (tmp14)
|
|
1220618
|
+
return (0, import_path23.resolve)(dir, tmp14);
|
|
1220619
|
+
dir = (0, import_path23.dirname)(tmp14 = dir);
|
|
1220620
|
+
if (tmp14 === dir)
|
|
1220621
1220621
|
break;
|
|
1220622
1220622
|
}
|
|
1220623
1220623
|
}
|
|
@@ -1222603,10 +1222603,10 @@ var CliContext = class {
|
|
|
1222603
1222603
|
return "fern-api";
|
|
1222604
1222604
|
}
|
|
1222605
1222605
|
getPackageVersion() {
|
|
1222606
|
-
if ("0.38.0
|
|
1222606
|
+
if ("0.38.0" == null) {
|
|
1222607
1222607
|
this.logger.error("CLI_VERSION is not defined");
|
|
1222608
1222608
|
}
|
|
1222609
|
-
return "0.38.0
|
|
1222609
|
+
return "0.38.0";
|
|
1222610
1222610
|
}
|
|
1222611
1222611
|
getCliName() {
|
|
1222612
1222612
|
if ("fern" == null) {
|
|
@@ -1232317,7 +1232317,7 @@ ${replacement}
|
|
|
1232317
1232317
|
return newMarkdown;
|
|
1232318
1232318
|
}
|
|
1232319
1232319
|
|
|
1232320
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232320
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/api/resources/v1/resources/register/index.js
|
|
1232321
1232321
|
var register_exports3 = {};
|
|
1232322
1232322
|
__export(register_exports3, {
|
|
1232323
1232323
|
Availability: () => Availability4,
|
|
@@ -1232332,26 +1232332,26 @@ __export(register_exports3, {
|
|
|
1232332
1232332
|
websocket: () => websocket_exports6
|
|
1232333
1232333
|
});
|
|
1232334
1232334
|
|
|
1232335
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232335
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/api/resources/v1/resources/register/resources/commons/index.js
|
|
1232336
1232336
|
var commons_exports10 = {};
|
|
1232337
1232337
|
__export(commons_exports10, {
|
|
1232338
1232338
|
Availability: () => Availability4
|
|
1232339
1232339
|
});
|
|
1232340
1232340
|
|
|
1232341
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232341
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/api/resources/v1/resources/register/resources/commons/types/Availability.js
|
|
1232342
1232342
|
var Availability4 = {
|
|
1232343
1232343
|
GenerallyAvailable: "GenerallyAvailable",
|
|
1232344
1232344
|
Deprecated: "Deprecated",
|
|
1232345
1232345
|
Beta: "Beta"
|
|
1232346
1232346
|
};
|
|
1232347
1232347
|
|
|
1232348
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232348
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/api/resources/v1/resources/register/resources/endpoint/index.js
|
|
1232349
1232349
|
var endpoint_exports6 = {};
|
|
1232350
1232350
|
__export(endpoint_exports6, {
|
|
1232351
1232351
|
HttpMethod: () => HttpMethod5
|
|
1232352
1232352
|
});
|
|
1232353
1232353
|
|
|
1232354
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232354
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/api/resources/v1/resources/register/resources/endpoint/types/HttpMethod.js
|
|
1232355
1232355
|
var HttpMethod5 = {
|
|
1232356
1232356
|
Get: "GET",
|
|
1232357
1232357
|
Post: "POST",
|
|
@@ -1232360,34 +1232360,34 @@ var HttpMethod5 = {
|
|
|
1232360
1232360
|
Delete: "DELETE"
|
|
1232361
1232361
|
};
|
|
1232362
1232362
|
|
|
1232363
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232363
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/api/resources/v1/resources/register/resources/type/index.js
|
|
1232364
1232364
|
var type_exports4 = {};
|
|
1232365
1232365
|
|
|
1232366
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232366
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/api/resources/v1/resources/register/resources/webhook/index.js
|
|
1232367
1232367
|
var webhook_exports4 = {};
|
|
1232368
1232368
|
__export(webhook_exports4, {
|
|
1232369
1232369
|
WebhookHttpMethod: () => WebhookHttpMethod4
|
|
1232370
1232370
|
});
|
|
1232371
1232371
|
|
|
1232372
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232372
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/api/resources/v1/resources/register/resources/webhook/types/WebhookHttpMethod.js
|
|
1232373
1232373
|
var WebhookHttpMethod4 = {
|
|
1232374
1232374
|
Get: "GET",
|
|
1232375
1232375
|
Post: "POST"
|
|
1232376
1232376
|
};
|
|
1232377
1232377
|
|
|
1232378
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232378
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/api/resources/v1/resources/register/resources/websocket/index.js
|
|
1232379
1232379
|
var websocket_exports6 = {};
|
|
1232380
1232380
|
__export(websocket_exports6, {
|
|
1232381
1232381
|
WebSocketMessageOrigin: () => WebSocketMessageOrigin3
|
|
1232382
1232382
|
});
|
|
1232383
1232383
|
|
|
1232384
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232384
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/api/resources/v1/resources/register/resources/websocket/types/WebSocketMessageOrigin.js
|
|
1232385
1232385
|
var WebSocketMessageOrigin3 = {
|
|
1232386
1232386
|
Client: "client",
|
|
1232387
1232387
|
Server: "server"
|
|
1232388
1232388
|
};
|
|
1232389
1232389
|
|
|
1232390
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232390
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/api/resources/v1/resources/register/client/registerApiDefinition.js
|
|
1232391
1232391
|
var registerApiDefinition_exports2 = {};
|
|
1232392
1232392
|
__export(registerApiDefinition_exports2, {
|
|
1232393
1232393
|
Error: () => Error2
|
|
@@ -1232423,7 +1232423,7 @@ var Error2 = {
|
|
|
1232423
1232423
|
}
|
|
1232424
1232424
|
};
|
|
1232425
1232425
|
|
|
1232426
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232426
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/docs/resources/v1/resources/write/types/VersionAvailability.js
|
|
1232427
1232427
|
var VersionAvailability3 = {
|
|
1232428
1232428
|
Stable: "Stable",
|
|
1232429
1232429
|
GenerallyAvailable: "GenerallyAvailable",
|
|
@@ -1232431,7 +1232431,7 @@ var VersionAvailability3 = {
|
|
|
1232431
1232431
|
Beta: "Beta"
|
|
1232432
1232432
|
};
|
|
1232433
1232433
|
|
|
1232434
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232434
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/docs/resources/v1/resources/write/client/startDocsRegister.js
|
|
1232435
1232435
|
var startDocsRegister_exports3 = {};
|
|
1232436
1232436
|
__export(startDocsRegister_exports3, {
|
|
1232437
1232437
|
Error: () => Error3
|
|
@@ -1232451,7 +1232451,7 @@ var Error3 = {
|
|
|
1232451
1232451
|
}
|
|
1232452
1232452
|
};
|
|
1232453
1232453
|
|
|
1232454
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232454
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/docs/resources/v1/resources/write/client/finishDocsRegister.js
|
|
1232455
1232455
|
var finishDocsRegister_exports3 = {};
|
|
1232456
1232456
|
__export(finishDocsRegister_exports3, {
|
|
1232457
1232457
|
Error: () => Error4
|
|
@@ -1232494,7 +1232494,7 @@ var Error4 = {
|
|
|
1232494
1232494
|
}
|
|
1232495
1232495
|
};
|
|
1232496
1232496
|
|
|
1232497
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232497
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/index.js
|
|
1232498
1232498
|
var commons_exports11 = {};
|
|
1232499
1232499
|
__export(commons_exports11, {
|
|
1232500
1232500
|
ContentAlignment: () => ContentAlignment3,
|
|
@@ -1232508,7 +1232508,7 @@ __export(commons_exports11, {
|
|
|
1232508
1232508
|
TwitterCardSetting: () => TwitterCardSetting3
|
|
1232509
1232509
|
});
|
|
1232510
1232510
|
|
|
1232511
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232511
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ProgrammingLanguage.js
|
|
1232512
1232512
|
var ProgrammingLanguage3 = {
|
|
1232513
1232513
|
Typescript: "typescript",
|
|
1232514
1232514
|
Javascript: "javascript",
|
|
@@ -1232526,32 +1232526,32 @@ var ProgrammingLanguage3 = {
|
|
|
1232526
1232526
|
Js: "js"
|
|
1232527
1232527
|
};
|
|
1232528
1232528
|
|
|
1232529
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232529
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/SearchbarPlacement.js
|
|
1232530
1232530
|
var SearchbarPlacement3 = {
|
|
1232531
1232531
|
Header: "HEADER",
|
|
1232532
1232532
|
HeaderTabs: "HEADER_TABS",
|
|
1232533
1232533
|
Sidebar: "SIDEBAR"
|
|
1232534
1232534
|
};
|
|
1232535
1232535
|
|
|
1232536
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232536
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/TabsPlacement.js
|
|
1232537
1232537
|
var TabsPlacement3 = {
|
|
1232538
1232538
|
Header: "HEADER",
|
|
1232539
1232539
|
Sidebar: "SIDEBAR"
|
|
1232540
1232540
|
};
|
|
1232541
1232541
|
|
|
1232542
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232542
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ContentAlignment.js
|
|
1232543
1232543
|
var ContentAlignment3 = {
|
|
1232544
1232544
|
Center: "CENTER",
|
|
1232545
1232545
|
Left: "LEFT"
|
|
1232546
1232546
|
};
|
|
1232547
1232547
|
|
|
1232548
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232548
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/HeaderPosition.js
|
|
1232549
1232549
|
var HeaderPosition3 = {
|
|
1232550
1232550
|
Fixed: "FIXED",
|
|
1232551
1232551
|
Absolute: "ABSOLUTE"
|
|
1232552
1232552
|
};
|
|
1232553
1232553
|
|
|
1232554
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232554
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/TwitterCardSetting.js
|
|
1232555
1232555
|
var TwitterCardSetting3 = {
|
|
1232556
1232556
|
Summary: "summary",
|
|
1232557
1232557
|
SummaryLargeImage: "summary_large_image",
|
|
@@ -1232559,20 +1232559,20 @@ var TwitterCardSetting3 = {
|
|
|
1232559
1232559
|
Player: "player"
|
|
1232560
1232560
|
};
|
|
1232561
1232561
|
|
|
1232562
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232562
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsScriptStrategy.js
|
|
1232563
1232563
|
var JsScriptStrategy3 = {
|
|
1232564
1232564
|
BeforeInteractive: "beforeInteractive",
|
|
1232565
1232565
|
AfterInteractive: "afterInteractive",
|
|
1232566
1232566
|
LazyOnload: "lazyOnload"
|
|
1232567
1232567
|
};
|
|
1232568
1232568
|
|
|
1232569
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232569
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontStyle.js
|
|
1232570
1232570
|
var FontStyle3 = {
|
|
1232571
1232571
|
Normal: "normal",
|
|
1232572
1232572
|
Italic: "italic"
|
|
1232573
1232573
|
};
|
|
1232574
1232574
|
|
|
1232575
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232575
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontDisplay.js
|
|
1232576
1232576
|
var FontDisplay3 = {
|
|
1232577
1232577
|
Auto: "auto",
|
|
1232578
1232578
|
Block: "block",
|
|
@@ -1232581,7 +1232581,7 @@ var FontDisplay3 = {
|
|
|
1232581
1232581
|
Optional: "optional"
|
|
1232582
1232582
|
};
|
|
1232583
1232583
|
|
|
1232584
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232584
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/generated/core/runtime/runtime.js
|
|
1232585
1232585
|
var isBrowser2 = typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
1232586
1232586
|
var _a3, _b3, _c3;
|
|
1232587
1232587
|
var isWebWorker2 = typeof self === "object" && typeof (self == null ? void 0 : self.importScripts) === "function" && (((_a3 = self.constructor) == null ? void 0 : _a3.name) === "DedicatedWorkerGlobalScope" || ((_b3 = self.constructor) == null ? void 0 : _b3.name) === "ServiceWorkerGlobalScope" || ((_c3 = self.constructor) == null ? void 0 : _c3.name) === "SharedWorkerGlobalScope");
|
|
@@ -1232683,7 +1232683,7 @@ function urlJoin10() {
|
|
|
1232683
1232683
|
return normalize2(input);
|
|
1232684
1232684
|
}
|
|
1232685
1232685
|
|
|
1232686
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232686
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/DocsV1Write.js
|
|
1232687
1232687
|
var DocsV1Write_exports = {};
|
|
1232688
1232688
|
__export(DocsV1Write_exports, {
|
|
1232689
1232689
|
ContentAlignment: () => ContentAlignment3,
|
|
@@ -1232701,7 +1232701,7 @@ __export(DocsV1Write_exports, {
|
|
|
1232701
1232701
|
startDocsRegister: () => startDocsRegister_exports3
|
|
1232702
1232702
|
});
|
|
1232703
1232703
|
|
|
1232704
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232704
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/visitDbNavigationConfig.js
|
|
1232705
1232705
|
function visitDbNavigationConfig(config, visitor) {
|
|
1232706
1232706
|
if (isVersionedNavigationConfig(config)) {
|
|
1232707
1232707
|
return visitor.versioned(config);
|
|
@@ -1232723,7 +1232723,7 @@ function isTabbedNavigationConfig2(config) {
|
|
|
1232723
1232723
|
return Array.isArray(config.tabs) || Array.isArray(config.tabsV2);
|
|
1232724
1232724
|
}
|
|
1232725
1232725
|
|
|
1232726
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232726
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/visitNavigationTab.js
|
|
1232727
1232727
|
function visitDbNavigationTab(config, visitor) {
|
|
1232728
1232728
|
if (isNavigationTabLink(config)) {
|
|
1232729
1232729
|
return visitor.link(config);
|
|
@@ -1232735,7 +1232735,7 @@ function isNavigationTabLink(config) {
|
|
|
1232735
1232735
|
return "url" in config && typeof config.url === "string";
|
|
1232736
1232736
|
}
|
|
1232737
1232737
|
|
|
1232738
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232738
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/visitReadNavigationConfig.js
|
|
1232739
1232739
|
function visitReadNavigationConfig(config, visitor) {
|
|
1232740
1232740
|
if (isVersionedNavigationConfig2(config)) {
|
|
1232741
1232741
|
return visitor.versioned(config);
|
|
@@ -1232757,7 +1232757,7 @@ function isTabbedNavigationConfig3(config) {
|
|
|
1232757
1232757
|
return Array.isArray(config.tabs);
|
|
1232758
1232758
|
}
|
|
1232759
1232759
|
|
|
1232760
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232760
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/client/visitWriteNavigationConfig.js
|
|
1232761
1232761
|
function visitWriteNavigationConfig(config, visitor) {
|
|
1232762
1232762
|
if (isVersionedNavigationConfig3(config)) {
|
|
1232763
1232763
|
return visitor.versioned(config);
|
|
@@ -1232779,15 +1232779,15 @@ function isTabbedNavigationConfig4(config) {
|
|
|
1232779
1232779
|
return Array.isArray(config.tabs) || Array.isArray(config.tabsV2);
|
|
1232780
1232780
|
}
|
|
1232781
1232781
|
|
|
1232782
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232782
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/converters/db/convertAPIDefinitionToDb.js
|
|
1232783
1232783
|
var import_fast_deep_equal = __toESM(require_fast_deep_equal(), 1);
|
|
1232784
1232784
|
|
|
1232785
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232785
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/utils/assertNever.js
|
|
1232786
1232786
|
function assertNever2(x2) {
|
|
1232787
1232787
|
throw new Error("Unexpected value: " + JSON.stringify(x2));
|
|
1232788
1232788
|
}
|
|
1232789
1232789
|
|
|
1232790
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232790
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/utils/lodash/internal/getTag.js
|
|
1232791
1232791
|
var toString6 = Object.prototype.toString;
|
|
1232792
1232792
|
function getTag2(value) {
|
|
1232793
1232793
|
if (value == null) {
|
|
@@ -1232797,14 +1232797,14 @@ function getTag2(value) {
|
|
|
1232797
1232797
|
}
|
|
1232798
1232798
|
var getTag_default2 = getTag2;
|
|
1232799
1232799
|
|
|
1232800
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232800
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/utils/lodash/isSymbol.js
|
|
1232801
1232801
|
function isSymbol2(value) {
|
|
1232802
1232802
|
const type2 = typeof value;
|
|
1232803
1232803
|
return type2 === "symbol" || type2 === "object" && value != null && getTag_default2(value) === "[object Symbol]";
|
|
1232804
1232804
|
}
|
|
1232805
1232805
|
var isSymbol_default2 = isSymbol2;
|
|
1232806
1232806
|
|
|
1232807
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232807
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/utils/lodash/toString.js
|
|
1232808
1232808
|
var INFINITY4 = 1 / 0;
|
|
1232809
1232809
|
function toString7(value) {
|
|
1232810
1232810
|
if (value == null) {
|
|
@@ -1232824,7 +1232824,7 @@ function toString7(value) {
|
|
|
1232824
1232824
|
}
|
|
1232825
1232825
|
var toString_default2 = toString7;
|
|
1232826
1232826
|
|
|
1232827
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232827
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/utils/lodash/internal/unicodeWords.js
|
|
1232828
1232828
|
var rsAstralRange5 = "\\ud800-\\udfff";
|
|
1232829
1232829
|
var rsComboMarksRange6 = "\\u0300-\\u036f";
|
|
1232830
1232830
|
var reComboHalfMarksRange6 = "\\ufe20-\\ufe2f";
|
|
@@ -1232881,7 +1232881,7 @@ function unicodeWords2(string6) {
|
|
|
1232881
1232881
|
}
|
|
1232882
1232882
|
var unicodeWords_default2 = unicodeWords2;
|
|
1232883
1232883
|
|
|
1232884
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232884
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/utils/lodash/words.js
|
|
1232885
1232885
|
var hasUnicodeWord2 = RegExp.prototype.test.bind(/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/);
|
|
1232886
1232886
|
var reAsciiWord2 = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
1232887
1232887
|
function asciiWords2(string6) {
|
|
@@ -1232896,11 +1232896,11 @@ function words2(string6, pattern) {
|
|
|
1232896
1232896
|
}
|
|
1232897
1232897
|
var words_default2 = words2;
|
|
1232898
1232898
|
|
|
1232899
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232899
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/utils/lodash/kebabCase.js
|
|
1232900
1232900
|
var kebabCase2 = (string6) => words_default2(toString_default2(string6).replace(/['\u2019]/g, "")).reduce((result, word, index2) => result + (index2 ? "-" : "") + word.toLowerCase(), "");
|
|
1232901
1232901
|
var kebabCase_default2 = kebabCase2;
|
|
1232902
1232902
|
|
|
1232903
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232903
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/utils/lodash/mapValues.js
|
|
1232904
1232904
|
function mapValue(object4, iteratee) {
|
|
1232905
1232905
|
object4 = Object(object4);
|
|
1232906
1232906
|
const result = {};
|
|
@@ -1232915,7 +1232915,7 @@ function mapValue(object4, iteratee) {
|
|
|
1232915
1232915
|
}
|
|
1232916
1232916
|
var mapValues_default2 = mapValue;
|
|
1232917
1232917
|
|
|
1232918
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232918
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/utils/lodash/before.js
|
|
1232919
1232919
|
function before(n2, func) {
|
|
1232920
1232920
|
let result;
|
|
1232921
1232921
|
if (typeof func !== "function") {
|
|
@@ -1232933,16 +1232933,16 @@ function before(n2, func) {
|
|
|
1232933
1232933
|
}
|
|
1232934
1232934
|
var before_default = before;
|
|
1232935
1232935
|
|
|
1232936
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232936
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/utils/lodash/once.js
|
|
1232937
1232937
|
function once(func) {
|
|
1232938
1232938
|
return before_default(2, func);
|
|
1232939
1232939
|
}
|
|
1232940
1232940
|
var once_default = once;
|
|
1232941
1232941
|
|
|
1232942
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232942
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/utils/titleCase.js
|
|
1232943
1232943
|
var import_title = __toESM(require_lib19(), 1);
|
|
1232944
1232944
|
|
|
1232945
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1232945
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/utils/specialTokens.js
|
|
1232946
1232946
|
var SPECIAL_TOKENS = [
|
|
1232947
1232947
|
"PII",
|
|
1232948
1232948
|
"PHI",
|
|
@@ -1233272,7 +1233272,7 @@ var SPECIAL_TOKENS = [
|
|
|
1233272
1233272
|
".NET"
|
|
1233273
1233273
|
];
|
|
1233274
1233274
|
|
|
1233275
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1233275
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/utils/titleCase.js
|
|
1233276
1233276
|
function titleCase(name2) {
|
|
1233277
1233277
|
name2 = name2.replace(/([a-z])([A-Z])/g, "$1 $2");
|
|
1233278
1233278
|
name2 = name2.replace(/_/g, " ");
|
|
@@ -1233282,7 +1233282,7 @@ function titleCase(name2) {
|
|
|
1233282
1233282
|
return versionedTitle;
|
|
1233283
1233283
|
}
|
|
1233284
1233284
|
|
|
1233285
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1233285
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/utils/visitDiscriminatedUnion.js
|
|
1233286
1233286
|
function visitDiscriminatedUnion2(item, discriminant4 = "type") {
|
|
1233287
1233287
|
return {
|
|
1233288
1233288
|
_visit: (visitor) => {
|
|
@@ -1233299,12 +1233299,12 @@ function visitDiscriminatedUnion2(item, discriminant4 = "type") {
|
|
|
1233299
1233299
|
};
|
|
1233300
1233300
|
}
|
|
1233301
1233301
|
|
|
1233302
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1233302
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/converters/utils/assertNever.js
|
|
1233303
1233303
|
function assertNever3(x2) {
|
|
1233304
1233304
|
throw new Error("Unexpected value: " + JSON.stringify(x2));
|
|
1233305
1233305
|
}
|
|
1233306
1233306
|
|
|
1233307
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1233307
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/converters/db/examples/generateHttpBodyExample.js
|
|
1233308
1233308
|
function generateWebhookPayloadExample(shape, resolveTypeById) {
|
|
1233309
1233309
|
switch (shape.type) {
|
|
1233310
1233310
|
case "object":
|
|
@@ -1233581,7 +1233581,7 @@ function resolveAlias(typeId, resolveTypeById) {
|
|
|
1233581
1233581
|
return resolvedTypeDefinition;
|
|
1233582
1233582
|
}
|
|
1233583
1233583
|
|
|
1233584
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1233584
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/converters/db/examples/generateEndpointExampleCall.js
|
|
1233585
1233585
|
var MAX_OPTIONAL_EXAMPLES_FOR_QUERY_PARAMS = 2;
|
|
1233586
1233586
|
function generateEndpointErrorExample({ endpointDefinition, apiDefinition, errorDeclaration }) {
|
|
1233587
1233587
|
const resolveTypeById = getResolveByTypeId(apiDefinition);
|
|
@@ -1233726,7 +1233726,7 @@ function isTypeReferenceString({ typeReference, types: types3 }) {
|
|
|
1233726
1233726
|
return false;
|
|
1233727
1233727
|
}
|
|
1233728
1233728
|
|
|
1233729
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1233729
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/converters/db/examples/generateWebhookExample.js
|
|
1233730
1233730
|
function generateWebhookExample({ webhookDefinition, apiDefinition }) {
|
|
1233731
1233731
|
try {
|
|
1233732
1233732
|
const resolveTypeById = (typeId) => {
|
|
@@ -1233744,7 +1233744,7 @@ function generateWebhookExample({ webhookDefinition, apiDefinition }) {
|
|
|
1233744
1233744
|
}
|
|
1233745
1233745
|
}
|
|
1233746
1233746
|
|
|
1233747
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1233747
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/converters/db/convertAPIDefinitionToDb.js
|
|
1233748
1233748
|
function convertAPIDefinitionToDb(writeShape, id, snippets) {
|
|
1233749
1233749
|
var _a6, _b4;
|
|
1233750
1233750
|
const subpackageToParent = {};
|
|
@@ -1234220,7 +1234220,7 @@ var ApiDefinitionTransformationContext = class {
|
|
|
1234220
1234220
|
}
|
|
1234221
1234221
|
};
|
|
1234222
1234222
|
|
|
1234223
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1234223
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/converters/utils/colors.js
|
|
1234224
1234224
|
var DEFAULT_DARK_MODE_ACCENT_PRIMARY = {
|
|
1234225
1234225
|
r: 129,
|
|
1234226
1234226
|
g: 140,
|
|
@@ -1234234,7 +1234234,7 @@ var DEFAULT_LIGHT_MODE_ACCENT_PRIMARY = {
|
|
|
1234234
1234234
|
a: void 0
|
|
1234235
1234235
|
};
|
|
1234236
1234236
|
|
|
1234237
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1234237
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/converters/db/convertDocsDefinitionToDb.js
|
|
1234238
1234238
|
function convertDocsDefinitionToDb({ writeShape, files }) {
|
|
1234239
1234239
|
const navigationConfig = transformNavigationConfigForDb(writeShape.config.navigation);
|
|
1234240
1234240
|
const transformedFiles = {};
|
|
@@ -1234637,7 +1234637,7 @@ function transformItems(items) {
|
|
|
1234637
1234637
|
});
|
|
1234638
1234638
|
}
|
|
1234639
1234639
|
|
|
1234640
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1234640
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/converters/db/snippets/SDKSnippetHolder.js
|
|
1234641
1234641
|
var SDKSnippetHolder = class {
|
|
1234642
1234642
|
snippetsBySdkId;
|
|
1234643
1234643
|
snippetsBySdkIdAndEndpointId;
|
|
@@ -1234749,7 +1234749,7 @@ var SDKSnippetHolder = class {
|
|
|
1234749
1234749
|
}
|
|
1234750
1234750
|
};
|
|
1234751
1234751
|
|
|
1234752
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1234752
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/converters/read/convertDbAPIDefinitionToRead.js
|
|
1234753
1234753
|
function convertDbAPIDefinitionToRead(dbShape) {
|
|
1234754
1234754
|
return {
|
|
1234755
1234755
|
id: dbShape.id,
|
|
@@ -1234879,7 +1234879,7 @@ function convertExampleEndpointCall({ dbShape }) {
|
|
|
1234879
1234879
|
};
|
|
1234880
1234880
|
}
|
|
1234881
1234881
|
|
|
1234882
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1234882
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/converters/read/convertDbDocsConfigToRead.js
|
|
1234883
1234883
|
function convertDbDocsConfigToRead({ dbShape }) {
|
|
1234884
1234884
|
return {
|
|
1234885
1234885
|
navigation: transformNavigationConfigToRead(dbShape.navigation),
|
|
@@ -1235153,7 +1235153,7 @@ function getColorsV3(docsDbConfig) {
|
|
|
1235153
1235153
|
}
|
|
1235154
1235154
|
}
|
|
1235155
1235155
|
|
|
1235156
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235156
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/index.js
|
|
1235157
1235157
|
var navigation_exports2 = {};
|
|
1235158
1235158
|
__export(navigation_exports2, {
|
|
1235159
1235159
|
ApiDefinitionHolder: () => ApiDefinitionHolder,
|
|
@@ -1235188,10 +1235188,10 @@ __export(navigation_exports2, {
|
|
|
1235188
1235188
|
utils: () => utils_exports2
|
|
1235189
1235189
|
});
|
|
1235190
1235190
|
|
|
1235191
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235191
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/consts.js
|
|
1235192
1235192
|
var ROOT_PACKAGE_ID = "__package__";
|
|
1235193
1235193
|
|
|
1235194
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235194
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/generated/api/index.js
|
|
1235195
1235195
|
var api_exports8 = {};
|
|
1235196
1235196
|
__export(api_exports8, {
|
|
1235197
1235197
|
ApiDefinitionId: () => ApiDefinitionId,
|
|
@@ -1235209,62 +1235209,62 @@ __export(api_exports8, {
|
|
|
1235209
1235209
|
WebhookId: () => WebhookId2
|
|
1235210
1235210
|
});
|
|
1235211
1235211
|
|
|
1235212
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235212
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/generated/api/types/Slug.js
|
|
1235213
1235213
|
function Slug(value) {
|
|
1235214
1235214
|
return value;
|
|
1235215
1235215
|
}
|
|
1235216
1235216
|
|
|
1235217
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235217
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/generated/api/types/Url.js
|
|
1235218
1235218
|
function Url(value) {
|
|
1235219
1235219
|
return value;
|
|
1235220
1235220
|
}
|
|
1235221
1235221
|
|
|
1235222
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235222
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/generated/api/types/VersionId.js
|
|
1235223
1235223
|
function VersionId(value) {
|
|
1235224
1235224
|
return value;
|
|
1235225
1235225
|
}
|
|
1235226
1235226
|
|
|
1235227
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235227
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/generated/api/types/TabId.js
|
|
1235228
1235228
|
function TabId2(value) {
|
|
1235229
1235229
|
return value;
|
|
1235230
1235230
|
}
|
|
1235231
1235231
|
|
|
1235232
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235232
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/generated/api/types/PageId.js
|
|
1235233
1235233
|
function PageId(value) {
|
|
1235234
1235234
|
return value;
|
|
1235235
1235235
|
}
|
|
1235236
1235236
|
|
|
1235237
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235237
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/generated/api/types/NodeId.js
|
|
1235238
1235238
|
function NodeId(value) {
|
|
1235239
1235239
|
return value;
|
|
1235240
1235240
|
}
|
|
1235241
1235241
|
|
|
1235242
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235242
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/generated/api/types/EnvironmentId.js
|
|
1235243
1235243
|
function EnvironmentId2(value) {
|
|
1235244
1235244
|
return value;
|
|
1235245
1235245
|
}
|
|
1235246
1235246
|
|
|
1235247
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235247
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/generated/api/types/ApiDefinitionId.js
|
|
1235248
1235248
|
function ApiDefinitionId(value) {
|
|
1235249
1235249
|
return value;
|
|
1235250
1235250
|
}
|
|
1235251
1235251
|
|
|
1235252
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235252
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/generated/api/types/EndpointId.js
|
|
1235253
1235253
|
function EndpointId2(value) {
|
|
1235254
1235254
|
return value;
|
|
1235255
1235255
|
}
|
|
1235256
1235256
|
|
|
1235257
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235257
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/generated/api/types/WebSocketId.js
|
|
1235258
1235258
|
function WebSocketId(value) {
|
|
1235259
1235259
|
return value;
|
|
1235260
1235260
|
}
|
|
1235261
1235261
|
|
|
1235262
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235262
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/generated/api/types/WebhookId.js
|
|
1235263
1235263
|
function WebhookId2(value) {
|
|
1235264
1235264
|
return value;
|
|
1235265
1235265
|
}
|
|
1235266
1235266
|
|
|
1235267
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235267
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/generated/api/types/HttpMethod.js
|
|
1235268
1235268
|
var HttpMethod6 = {
|
|
1235269
1235269
|
Get: "GET",
|
|
1235270
1235270
|
Post: "POST",
|
|
@@ -1235273,7 +1235273,7 @@ var HttpMethod6 = {
|
|
|
1235273
1235273
|
Delete: "DELETE"
|
|
1235274
1235274
|
};
|
|
1235275
1235275
|
|
|
1235276
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235276
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/generated/api/types/Availability.js
|
|
1235277
1235277
|
var Availability5 = {
|
|
1235278
1235278
|
Stable: "stable",
|
|
1235279
1235279
|
GenerallyAvailable: "generally-available",
|
|
@@ -1235283,12 +1235283,12 @@ var Availability5 = {
|
|
|
1235283
1235283
|
Deprecated: "deprecated"
|
|
1235284
1235284
|
};
|
|
1235285
1235285
|
|
|
1235286
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235286
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/isSubpackage.js
|
|
1235287
1235287
|
function isSubpackage(package_) {
|
|
1235288
1235288
|
return typeof package_.subpackageId === "string";
|
|
1235289
1235289
|
}
|
|
1235290
1235290
|
|
|
1235291
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235291
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/ApiDefinitionHolder.js
|
|
1235292
1235292
|
var _endpoints, _webSockets, _webhooks;
|
|
1235293
1235293
|
var _ApiDefinitionHolder = class {
|
|
1235294
1235294
|
constructor(api) {
|
|
@@ -1235337,52 +1235337,52 @@ _endpoints = new WeakMap();
|
|
|
1235337
1235337
|
_webSockets = new WeakMap();
|
|
1235338
1235338
|
_webhooks = new WeakMap();
|
|
1235339
1235339
|
|
|
1235340
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235340
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/types/NavigationNodeApiLeaf.js
|
|
1235341
1235341
|
function isApiLeaf(node2) {
|
|
1235342
1235342
|
return node2.type === "endpoint" || node2.type === "webSocket" || node2.type === "webhook";
|
|
1235343
1235343
|
}
|
|
1235344
1235344
|
|
|
1235345
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235345
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/types/NavigationNodePageLeaf.js
|
|
1235346
1235346
|
function isMarkdownLeaf(node2) {
|
|
1235347
1235347
|
return node2.type === "page" || node2.type === "landingPage" || node2.type === "changelogEntry";
|
|
1235348
1235348
|
}
|
|
1235349
1235349
|
|
|
1235350
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235350
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/types/NavigationNodeSection.js
|
|
1235351
1235351
|
function isSection(node2) {
|
|
1235352
1235352
|
return node2.type === "section" || node2.type === "apiReference" || node2.type === "changelog" || node2.type === "apiPackage";
|
|
1235353
1235353
|
}
|
|
1235354
1235354
|
|
|
1235355
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235355
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/types/NavigationNodeSectionOverview.js
|
|
1235356
1235356
|
function isSectionOverview(node2) {
|
|
1235357
1235357
|
return isSection(node2) && node2.overviewPageId != null;
|
|
1235358
1235358
|
}
|
|
1235359
1235359
|
|
|
1235360
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235360
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/types/NavigationNodeMarkdown.js
|
|
1235361
1235361
|
function hasMarkdown(node2) {
|
|
1235362
1235362
|
return isMarkdownLeaf(node2) || isSectionOverview(node2);
|
|
1235363
1235363
|
}
|
|
1235364
1235364
|
|
|
1235365
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235365
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/types/NavigationNodeNeighbor.js
|
|
1235366
1235366
|
function isNeighbor(node2) {
|
|
1235367
1235367
|
return isApiLeaf(node2) || node2.type === "page" || node2.type === "changelog" || node2.type === "changelogEntry" || isSectionOverview(node2);
|
|
1235368
1235368
|
}
|
|
1235369
1235369
|
|
|
1235370
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235370
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/types/NavigationNodePage.js
|
|
1235371
1235371
|
function isPage(node2) {
|
|
1235372
1235372
|
return isApiLeaf(node2) || node2.type === "changelog" || node2.type === "changelogYear" || node2.type === "changelogMonth" || hasMarkdown(node2);
|
|
1235373
1235373
|
}
|
|
1235374
1235374
|
|
|
1235375
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235375
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/types/NavigationNodeWithMetadata.js
|
|
1235376
1235376
|
function hasMetadata(node2) {
|
|
1235377
1235377
|
return typeof node2.title === "string" && typeof node2.slug === "string";
|
|
1235378
1235378
|
}
|
|
1235379
1235379
|
|
|
1235380
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235380
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/types/NavigationNodeWithRedirect.js
|
|
1235381
1235381
|
function hasRedirect(node2) {
|
|
1235382
1235382
|
return typeof node2.pointsTo === "string";
|
|
1235383
1235383
|
}
|
|
1235384
1235384
|
|
|
1235385
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235385
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/index.js
|
|
1235386
1235386
|
var utils_exports2 = {};
|
|
1235387
1235387
|
__export(utils_exports2, {
|
|
1235388
1235388
|
collectApiReferences: () => collectApiReferences,
|
|
@@ -1235401,7 +1235401,7 @@ __export(utils_exports2, {
|
|
|
1235401
1235401
|
traverseNavigation: () => traverseNavigation
|
|
1235402
1235402
|
});
|
|
1235403
1235403
|
|
|
1235404
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235404
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/traverseNavigation.js
|
|
1235405
1235405
|
var import_ts_essentials = __toESM(require_dist6(), 1);
|
|
1235406
1235406
|
var SKIP3 = "skip";
|
|
1235407
1235407
|
var STOP = false;
|
|
@@ -1235484,7 +1235484,7 @@ function traverseNavigation(node2, visit3) {
|
|
|
1235484
1235484
|
internalTraverser(node2, void 0, []);
|
|
1235485
1235485
|
}
|
|
1235486
1235486
|
|
|
1235487
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235487
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/collectApiReferences.js
|
|
1235488
1235488
|
function collectApiReferences(nav) {
|
|
1235489
1235489
|
const apiReferences = [];
|
|
1235490
1235490
|
traverseNavigation(nav, (node2) => {
|
|
@@ -1235497,7 +1235497,7 @@ function collectApiReferences(nav) {
|
|
|
1235497
1235497
|
return apiReferences;
|
|
1235498
1235498
|
}
|
|
1235499
1235499
|
|
|
1235500
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235500
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/getPageId.js
|
|
1235501
1235501
|
var RETURN_PAGEID = (node2) => node2.pageId;
|
|
1235502
1235502
|
var RETURN_OVERVIEW_PAGEID = (node2) => node2.overviewPageId;
|
|
1235503
1235503
|
var RETURN_UNDEFINED = () => void 0;
|
|
@@ -1235518,7 +1235518,7 @@ function getPageId(node2) {
|
|
|
1235518
1235518
|
});
|
|
1235519
1235519
|
}
|
|
1235520
1235520
|
|
|
1235521
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235521
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/collectPageIds.js
|
|
1235522
1235522
|
function collectPageIds(nav) {
|
|
1235523
1235523
|
const pageIds = /* @__PURE__ */ new Set();
|
|
1235524
1235524
|
traverseNavigation(nav, (node2) => {
|
|
@@ -1235532,7 +1235532,7 @@ function collectPageIds(nav) {
|
|
|
1235532
1235532
|
return pageIds;
|
|
1235533
1235533
|
}
|
|
1235534
1235534
|
|
|
1235535
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235535
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/convertAvailability.js
|
|
1235536
1235536
|
function convertAvailability3(availability) {
|
|
1235537
1235537
|
if (availability == null) {
|
|
1235538
1235538
|
return void 0;
|
|
@@ -1235551,7 +1235551,7 @@ function convertAvailability3(availability) {
|
|
|
1235551
1235551
|
}
|
|
1235552
1235552
|
}
|
|
1235553
1235553
|
|
|
1235554
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235554
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/pruneVersionNode.js
|
|
1235555
1235555
|
function pruneVersionNode(node2, rootSlug, versionSlug) {
|
|
1235556
1235556
|
if (node2 == null) {
|
|
1235557
1235557
|
return void 0;
|
|
@@ -1235581,15 +1235581,15 @@ function toDefaultSlug(slug, rootSlug, versionSlug) {
|
|
|
1235581
1235581
|
return slug;
|
|
1235582
1235582
|
}
|
|
1235583
1235583
|
|
|
1235584
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235584
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/converters/ApiReferenceNavigationConverter.js
|
|
1235585
1235585
|
var import_ts_essentials2 = __toESM(require_dist6(), 1);
|
|
1235586
1235586
|
|
|
1235587
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235587
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/stringifyEndpointPathParts.js
|
|
1235588
1235588
|
function stringifyEndpointPathParts(path45) {
|
|
1235589
1235589
|
return urlJoin10("/", ...path45.map((part) => part.type === "literal" ? part.value : `:${part.value}`));
|
|
1235590
1235590
|
}
|
|
1235591
1235591
|
|
|
1235592
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235592
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/converters/ChangelogConverter.js
|
|
1235593
1235593
|
var import_dayjs = __toESM(require_dayjs_min(), 1);
|
|
1235594
1235594
|
var import_utc = __toESM(require_utc(), 1);
|
|
1235595
1235595
|
import_dayjs.default.extend(import_utc.default);
|
|
@@ -1235707,7 +1235707,7 @@ function orderBy(items, key, order2 = "asc") {
|
|
|
1235707
1235707
|
});
|
|
1235708
1235708
|
}
|
|
1235709
1235709
|
|
|
1235710
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235710
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/converters/NodeIdGenerator.js
|
|
1235711
1235711
|
var _ids, _generatedIds, _stableId, stableId_fn;
|
|
1235712
1235712
|
var NodeIdGenerator = class {
|
|
1235713
1235713
|
constructor() {
|
|
@@ -1235737,7 +1235737,7 @@ stableId_fn = function() {
|
|
|
1235737
1235737
|
return api_exports8.NodeId(uniqId);
|
|
1235738
1235738
|
};
|
|
1235739
1235739
|
|
|
1235740
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1235740
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/converters/ApiReferenceNavigationConverter.js
|
|
1235741
1235741
|
var _holder, _visitedEndpoints, _visitedWebSockets, _visitedWebhooks, _visitedSubpackages, _idgen2;
|
|
1235742
1235742
|
var _ApiReferenceNavigationConverter = class {
|
|
1235743
1235743
|
constructor(apiSection, api, fullSlugMap, noindexMap, parentSlug, idgen, lexicographic = false, disableEndpointPairs = false, paginated) {
|
|
@@ -1236093,12 +1236093,12 @@ _visitedWebhooks = new WeakMap();
|
|
|
1236093
1236093
|
_visitedSubpackages = new WeakMap();
|
|
1236094
1236094
|
_idgen2 = new WeakMap();
|
|
1236095
1236095
|
|
|
1236096
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1236096
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/slugjoin.js
|
|
1236097
1236097
|
function slugjoin(...parts) {
|
|
1236098
1236098
|
return api_exports8.Slug(urlJoin10(parts.map((part) => part.trim())).replaceAll("//*", "/").replace(/^\//, "").replace(/\/$/, ""));
|
|
1236099
1236099
|
}
|
|
1236100
1236100
|
|
|
1236101
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1236101
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/converters/SlugGenerator.js
|
|
1236102
1236102
|
var SlugGenerator = class {
|
|
1236103
1236103
|
baseSlug;
|
|
1236104
1236104
|
versionSlug;
|
|
@@ -1236161,7 +1236161,7 @@ var SlugGenerator = class {
|
|
|
1236161
1236161
|
}
|
|
1236162
1236162
|
};
|
|
1236163
1236163
|
|
|
1236164
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1236164
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/converters/NavigationConfigConverter.js
|
|
1236165
1236165
|
var _idgen3;
|
|
1236166
1236166
|
var _NavigationConfigConverter = class {
|
|
1236167
1236167
|
constructor(title2, config, fullSlugMap, noindexMap, apis, basePath, lexicographic, disableEndpointPairs, paginated) {
|
|
@@ -1236417,7 +1236417,7 @@ var _NavigationConfigConverter = class {
|
|
|
1236417
1236417
|
var NavigationConfigConverter = _NavigationConfigConverter;
|
|
1236418
1236418
|
_idgen3 = new WeakMap();
|
|
1236419
1236419
|
|
|
1236420
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1236420
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/getFrontmatter.js
|
|
1236421
1236421
|
function getFrontmatter(markdown) {
|
|
1236422
1236422
|
const frontmatterMatch = /^---\s*([\s\S]*?)\s*---/.exec(markdown.trimStart());
|
|
1236423
1236423
|
if (!frontmatterMatch || frontmatterMatch[1] == null) {
|
|
@@ -1236426,7 +1236426,7 @@ function getFrontmatter(markdown) {
|
|
|
1236426
1236426
|
return frontmatterMatch[1];
|
|
1236427
1236427
|
}
|
|
1236428
1236428
|
|
|
1236429
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1236429
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/getFullSlugFromFrontmatter.js
|
|
1236430
1236430
|
function getFullSlugFromFrontmatter(frontmatter) {
|
|
1236431
1236431
|
const match = frontmatter.match(/slug:\s*"?([^"\n\s]+)"?/);
|
|
1236432
1236432
|
if (match != null && match[1] != null) {
|
|
@@ -1236435,7 +1236435,7 @@ function getFullSlugFromFrontmatter(frontmatter) {
|
|
|
1236435
1236435
|
return void 0;
|
|
1236436
1236436
|
}
|
|
1236437
1236437
|
|
|
1236438
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1236438
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/getNoIndexFromFrontmatter.js
|
|
1236439
1236439
|
function getNoIndexFromFrontmatter(frontmatter) {
|
|
1236440
1236440
|
if (/noindex:\s*true/.test(frontmatter)) {
|
|
1236441
1236441
|
return true;
|
|
@@ -1236445,7 +1236445,7 @@ function getNoIndexFromFrontmatter(frontmatter) {
|
|
|
1236445
1236445
|
return void 0;
|
|
1236446
1236446
|
}
|
|
1236447
1236447
|
|
|
1236448
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1236448
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/convertLoadDocsForUrlResponse.js
|
|
1236449
1236449
|
function convertLoadDocsForUrlResponse(response, disableEndpointPairs = false, paginated) {
|
|
1236450
1236450
|
const noindexMap = {};
|
|
1236451
1236451
|
const fullSlugMap = {};
|
|
@@ -1236490,35 +1236490,35 @@ function hackReorderAssemblyApi(api) {
|
|
|
1236490
1236490
|
return api;
|
|
1236491
1236491
|
}
|
|
1236492
1236492
|
|
|
1236493
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1236493
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/findNode.js
|
|
1236494
1236494
|
var import_ts_essentials3 = __toESM(require_dist6(), 1);
|
|
1236495
1236495
|
|
|
1236496
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1236496
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/isApiReferenceNode.js
|
|
1236497
1236497
|
function isApiReferenceNode(node2) {
|
|
1236498
1236498
|
return node2.type === "apiReference";
|
|
1236499
1236499
|
}
|
|
1236500
1236500
|
|
|
1236501
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1236501
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/isSidebarRootNode.js
|
|
1236502
1236502
|
function isSidebarRootNode(node2) {
|
|
1236503
1236503
|
return node2.type === "sidebarRoot";
|
|
1236504
1236504
|
}
|
|
1236505
1236505
|
|
|
1236506
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1236506
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/isTabbedNode.js
|
|
1236507
1236507
|
function isTabbedNode(node2) {
|
|
1236508
1236508
|
return node2.type === "tabbed";
|
|
1236509
1236509
|
}
|
|
1236510
1236510
|
|
|
1236511
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1236511
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/isUnversionedNode.js
|
|
1236512
1236512
|
function isUnversionedNode(node2) {
|
|
1236513
1236513
|
return node2.type === "unversioned";
|
|
1236514
1236514
|
}
|
|
1236515
1236515
|
|
|
1236516
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1236516
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/isVersionNode.js
|
|
1236517
1236517
|
function isVersionNode(node2) {
|
|
1236518
1236518
|
return node2.type === "version";
|
|
1236519
1236519
|
}
|
|
1236520
1236520
|
|
|
1236521
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1236521
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/findNode.js
|
|
1236522
1236522
|
function findNode(root5, slug) {
|
|
1236523
1236523
|
var _a6, _b4;
|
|
1236524
1236524
|
const collector = NodeCollector.collect(root5);
|
|
@@ -1236622,7 +1236622,7 @@ function createBreadcrumb(nodes) {
|
|
|
1236622
1236622
|
return breadcrumb;
|
|
1236623
1236623
|
}
|
|
1236624
1236624
|
|
|
1236625
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1236625
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/followRedirect.js
|
|
1236626
1236626
|
function followRedirect(nodeToFollow) {
|
|
1236627
1236627
|
if (nodeToFollow == null) {
|
|
1236628
1236628
|
return void 0;
|
|
@@ -1236665,7 +1236665,7 @@ function followRedirects(nodes) {
|
|
|
1236665
1236665
|
return;
|
|
1236666
1236666
|
}
|
|
1236667
1236667
|
|
|
1236668
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1236668
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/utils/getApiReferenceId.js
|
|
1236669
1236669
|
var RETURN_UNDEFINED2 = () => void 0;
|
|
1236670
1236670
|
var RETURN_API_DEFINITION_ID = (node2) => node2.apiDefinitionId;
|
|
1236671
1236671
|
function getApiReferenceId(node2) {
|
|
@@ -1236698,7 +1236698,7 @@ function getApiReferenceId(node2) {
|
|
|
1236698
1236698
|
});
|
|
1236699
1236699
|
}
|
|
1236700
1236700
|
|
|
1236701
|
-
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-
|
|
1236701
|
+
// ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.98.20-86eba53a1_typescript@4.6.4/node_modules/@fern-api/fdr-sdk/dist/navigation/NodeCollector.js
|
|
1236702
1236702
|
var NodeCollectorInstances = /* @__PURE__ */ new WeakMap();
|
|
1236703
1236703
|
var _last, _lastNeighboringNode, _setNode, setNode_fn;
|
|
1236704
1236704
|
var _NodeCollector = class {
|
|
@@ -1240097,10 +1240097,10 @@ async function convertOffsetPagination({ propertyResolver, file, endpointName, e
|
|
|
1240097
1240097
|
endpoint: endpointName,
|
|
1240098
1240098
|
propertyComponents: paginationPropertyComponents.step
|
|
1240099
1240099
|
}) : void 0,
|
|
1240100
|
-
hasNextPage: paginationPropertyComponents.
|
|
1240100
|
+
hasNextPage: paginationPropertyComponents.hasNextPage != null ? await propertyResolver.resolveResponsePropertyOrThrow({
|
|
1240101
1240101
|
file,
|
|
1240102
1240102
|
endpoint: endpointName,
|
|
1240103
|
-
propertyComponents: paginationPropertyComponents.
|
|
1240103
|
+
propertyComponents: paginationPropertyComponents.hasNextPage
|
|
1240104
1240104
|
}) : void 0
|
|
1240105
1240105
|
});
|
|
1240106
1240106
|
}
|
|
@@ -1240113,7 +1240113,7 @@ function getPaginationPropertyComponents(endpointPagination) {
|
|
|
1240113
1240113
|
offset: getRequestPropertyComponents(endpointPagination.offset),
|
|
1240114
1240114
|
results: getResponsePropertyComponents(endpointPagination.results),
|
|
1240115
1240115
|
step: endpointPagination.step != null ? getRequestPropertyComponents(endpointPagination.step) : void 0,
|
|
1240116
|
-
hasNextPage: endpointPagination["has-next-page"] != null ?
|
|
1240116
|
+
hasNextPage: endpointPagination["has-next-page"] != null ? getResponsePropertyComponents(endpointPagination["has-next-page"]) : void 0
|
|
1240117
1240117
|
};
|
|
1240118
1240118
|
}
|
|
1240119
1240119
|
return {
|
|
@@ -1248423,11 +1248423,11 @@ var WatcherLocker = class {
|
|
|
1248423
1248423
|
};
|
|
1248424
1248424
|
watcher_locks_resolver_default.add(free, timeout3);
|
|
1248425
1248425
|
const resolve6 = () => {
|
|
1248426
|
-
const
|
|
1248427
|
-
if (!
|
|
1248426
|
+
const unlink2 = locks.unlink.get(ino);
|
|
1248427
|
+
if (!unlink2)
|
|
1248428
1248428
|
return;
|
|
1248429
1248429
|
cleanup();
|
|
1248430
|
-
const targetPathPrev =
|
|
1248430
|
+
const targetPathPrev = unlink2();
|
|
1248431
1248431
|
if (targetPath === targetPathPrev) {
|
|
1248432
1248432
|
if (events.change) {
|
|
1248433
1248433
|
if (this._watcher._poller.stats.has(targetPath)) {
|
|
@@ -1306551,6 +1306551,99 @@ function convertLogLevel(logLevel) {
|
|
|
1306551
1306551
|
}
|
|
1306552
1306552
|
}
|
|
1306553
1306553
|
|
|
1306554
|
+
// ../generation/remote-generation/remote-workspace-runner/lib/SourceUploader.js
|
|
1306555
|
+
var import_promises51 = require("fs/promises");
|
|
1306556
|
+
var import_tmp_promise12 = __toESM(require_tmp_promise(), 1);
|
|
1306557
|
+
var PROTOBUF_ZIP_FILENAME = "proto.zip";
|
|
1306558
|
+
var SourceUploader = class {
|
|
1306559
|
+
sourceTypes;
|
|
1306560
|
+
context;
|
|
1306561
|
+
sources;
|
|
1306562
|
+
constructor(context, sources) {
|
|
1306563
|
+
this.context = context;
|
|
1306564
|
+
this.sources = Object.fromEntries(sources.map((source) => [source.id, source]));
|
|
1306565
|
+
this.sourceTypes = new Set(Object.values(this.sources).map((source) => source.type));
|
|
1306566
|
+
}
|
|
1306567
|
+
async uploadSources(sources) {
|
|
1306568
|
+
for (const [id, source] of Object.entries(sources)) {
|
|
1306569
|
+
const identifiableSource = this.getSourceOrThrow(id);
|
|
1306570
|
+
await this.uploadSource(identifiableSource, source.uploadUrl);
|
|
1306571
|
+
}
|
|
1306572
|
+
return this.convertFdrSourceUploadsToSourceConfig(sources);
|
|
1306573
|
+
}
|
|
1306574
|
+
async uploadSource(source, uploadURL) {
|
|
1306575
|
+
const uploadCommand = await this.getUploadCommand(source);
|
|
1306576
|
+
const fileData = await (0, import_promises51.readFile)(uploadCommand.absoluteFilePath);
|
|
1306577
|
+
const response = await fetch(uploadURL, {
|
|
1306578
|
+
method: "PUT",
|
|
1306579
|
+
body: fileData,
|
|
1306580
|
+
headers: {
|
|
1306581
|
+
"Content-Type": "application/octet-stream"
|
|
1306582
|
+
}
|
|
1306583
|
+
});
|
|
1306584
|
+
await uploadCommand.cleanup();
|
|
1306585
|
+
if (!response.ok) {
|
|
1306586
|
+
this.context.failAndThrow(`Failed to upload source file: ${source.absoluteFilePath}. Status: ${response.status}, ${response.statusText}`);
|
|
1306587
|
+
}
|
|
1306588
|
+
}
|
|
1306589
|
+
async getUploadCommand(source) {
|
|
1306590
|
+
if (source.type === "protobuf") {
|
|
1306591
|
+
const absoluteFilePath = await this.zipSource(source.absoluteFilePath);
|
|
1306592
|
+
return {
|
|
1306593
|
+
absoluteFilePath,
|
|
1306594
|
+
cleanup: async () => {
|
|
1306595
|
+
this.context.logger.debug(`Removing ${absoluteFilePath}`);
|
|
1306596
|
+
await (0, import_promises51.unlink)(absoluteFilePath);
|
|
1306597
|
+
}
|
|
1306598
|
+
};
|
|
1306599
|
+
}
|
|
1306600
|
+
return {
|
|
1306601
|
+
absoluteFilePath: source.absoluteFilePath,
|
|
1306602
|
+
cleanup: async () => {
|
|
1306603
|
+
}
|
|
1306604
|
+
};
|
|
1306605
|
+
}
|
|
1306606
|
+
async zipSource(absolutePathToSource) {
|
|
1306607
|
+
const tmpDir = await import_tmp_promise12.default.dir();
|
|
1306608
|
+
const destination = join(AbsoluteFilePath.of(tmpDir.path), RelativeFilePath.of(PROTOBUF_ZIP_FILENAME));
|
|
1306609
|
+
this.context.logger.debug(`Zipping source ${absolutePathToSource} into ${destination}`);
|
|
1306610
|
+
await loggingExeca(this.context.logger, "zip", ["-r", destination, "."], {
|
|
1306611
|
+
cwd: absolutePathToSource,
|
|
1306612
|
+
doNotPipeOutput: true
|
|
1306613
|
+
});
|
|
1306614
|
+
return destination;
|
|
1306615
|
+
}
|
|
1306616
|
+
convertFdrSourceUploadsToSourceConfig(sources) {
|
|
1306617
|
+
const apiDefinitionSources = [];
|
|
1306618
|
+
for (const [id, sourceUpload] of Object.entries(sources)) {
|
|
1306619
|
+
const identifiableSource = this.getSourceOrThrow(id);
|
|
1306620
|
+
switch (identifiableSource.type) {
|
|
1306621
|
+
case "protobuf":
|
|
1306622
|
+
apiDefinitionSources.push(ApiDefinitionSource.proto({
|
|
1306623
|
+
id,
|
|
1306624
|
+
protoRootUrl: sourceUpload.downloadUrl
|
|
1306625
|
+
}));
|
|
1306626
|
+
continue;
|
|
1306627
|
+
case "openapi":
|
|
1306628
|
+
apiDefinitionSources.push(ApiDefinitionSource.openapi());
|
|
1306629
|
+
continue;
|
|
1306630
|
+
case "asyncapi":
|
|
1306631
|
+
continue;
|
|
1306632
|
+
}
|
|
1306633
|
+
}
|
|
1306634
|
+
return {
|
|
1306635
|
+
sources: apiDefinitionSources
|
|
1306636
|
+
};
|
|
1306637
|
+
}
|
|
1306638
|
+
getSourceOrThrow(id) {
|
|
1306639
|
+
const source = this.sources[id];
|
|
1306640
|
+
if (source == null) {
|
|
1306641
|
+
this.context.failAndThrow(`Internal error; server responded with source id "${id}" which does not exist in the workspace.`);
|
|
1306642
|
+
}
|
|
1306643
|
+
return source;
|
|
1306644
|
+
}
|
|
1306645
|
+
};
|
|
1306646
|
+
|
|
1306554
1306647
|
// ../generation/remote-generation/remote-workspace-runner/lib/runRemoteGenerationForGenerator.js
|
|
1306555
1306648
|
async function runRemoteGenerationForGenerator({ projectConfig, organization, workspace, interactiveTaskContext, generatorInvocation, version: version3, audiences, shouldLogS3Url, token, whitelabel, irVersionOverride, absolutePathToPreview, readme }) {
|
|
1306556
1306649
|
const fdr = createFdrService({ token: token.value });
|
|
@@ -1306566,15 +1306659,29 @@ async function runRemoteGenerationForGenerator({ projectConfig, organization, wo
|
|
|
1306566
1306659
|
packageName,
|
|
1306567
1306660
|
version: version3 ?? await computeSemanticVersion({ fdr, packageName, generatorInvocation })
|
|
1306568
1306661
|
});
|
|
1306662
|
+
const sources = workspace.getSources();
|
|
1306569
1306663
|
const apiDefinition = convertIrToFdrApi({ ir, snippetsConfig: {} });
|
|
1306570
1306664
|
const response = await fdr.api.v1.register.registerApiDefinition({
|
|
1306571
1306665
|
orgId: organization,
|
|
1306572
1306666
|
apiId: ir.apiName.originalName,
|
|
1306573
|
-
definition: apiDefinition
|
|
1306667
|
+
definition: apiDefinition,
|
|
1306668
|
+
sources: sources.length > 0 ? convertToFdrApiDefinitionSources(sources) : void 0
|
|
1306574
1306669
|
});
|
|
1306575
1306670
|
let fdrApiDefinitionId;
|
|
1306671
|
+
let sourceUploads;
|
|
1306576
1306672
|
if (response.ok) {
|
|
1306577
1306673
|
fdrApiDefinitionId = response.body.apiDefinitionId;
|
|
1306674
|
+
sourceUploads = response.body.sources;
|
|
1306675
|
+
}
|
|
1306676
|
+
const sourceUploader = new SourceUploader(interactiveTaskContext, sources);
|
|
1306677
|
+
if (sourceUploads == null && sourceUploader.sourceTypes.has("protobuf")) {
|
|
1306678
|
+
interactiveTaskContext.failAndThrow("Did not successfully upload Protobuf source files.");
|
|
1306679
|
+
}
|
|
1306680
|
+
if (sourceUploads != null) {
|
|
1306681
|
+
interactiveTaskContext.logger.debug("Uploading source files ...");
|
|
1306682
|
+
const sourceConfig = await sourceUploader.uploadSources(sourceUploads);
|
|
1306683
|
+
interactiveTaskContext.logger.debug("Setting IR source configuration ...");
|
|
1306684
|
+
ir.sourceConfig = sourceConfig;
|
|
1306578
1306685
|
}
|
|
1306579
1306686
|
const job = await createAndStartJob({
|
|
1306580
1306687
|
projectConfig,
|
|
@@ -1306654,6 +1306761,14 @@ async function computeSemanticVersion({ fdr, packageName, generatorInvocation })
|
|
|
1306654
1306761
|
}
|
|
1306655
1306762
|
return response.body.version;
|
|
1306656
1306763
|
}
|
|
1306764
|
+
function convertToFdrApiDefinitionSources(sources) {
|
|
1306765
|
+
return Object.fromEntries(Object.values(sources).map((source) => [
|
|
1306766
|
+
source.id,
|
|
1306767
|
+
{
|
|
1306768
|
+
type: source.type === "protobuf" ? "proto" : source.type
|
|
1306769
|
+
}
|
|
1306770
|
+
]));
|
|
1306771
|
+
}
|
|
1306657
1306772
|
|
|
1306658
1306773
|
// ../generation/remote-generation/remote-workspace-runner/lib/runRemoteGenerationForAPIWorkspace.js
|
|
1306659
1306774
|
async function runRemoteGenerationForAPIWorkspace({ projectConfig, organization, workspace, context, generatorGroup, version: version3, shouldLogS3Url, token, whitelabel, absolutePathToPreview, mode }) {
|
|
@@ -1306722,7 +1306837,7 @@ async function runRemoteGenerationForAPIWorkspace({ projectConfig, organization,
|
|
|
1306722
1306837
|
|
|
1306723
1306838
|
// ../generation/remote-generation/remote-workspace-runner/lib/publishDocs.js
|
|
1306724
1306839
|
var import_axios8 = __toESM(require_axios4(), 1);
|
|
1306725
|
-
var
|
|
1306840
|
+
var import_promises52 = require("fs/promises");
|
|
1306726
1306841
|
var mime = __toESM(require_mime_types(), 1);
|
|
1306727
1306842
|
|
|
1306728
1306843
|
// ../generation/remote-generation/remote-workspace-runner/lib/measureImageSizes.js
|
|
@@ -1306877,7 +1306992,7 @@ async function uploadFiles(filesToUpload, docsWorkspacePath, context, batchSize)
|
|
|
1306877
1306992
|
const absoluteFilePath = resolve(docsWorkspacePath, relativeFilePath);
|
|
1306878
1306993
|
try {
|
|
1306879
1306994
|
const mimeType = mime.lookup(absoluteFilePath);
|
|
1306880
|
-
await import_axios8.default.put(uploadUrl, await (0,
|
|
1306995
|
+
await import_axios8.default.put(uploadUrl, await (0, import_promises52.readFile)(absoluteFilePath), {
|
|
1306881
1306996
|
headers: {
|
|
1306882
1306997
|
"Content-Type": mimeType === false ? "application/octet-stream" : mimeType
|
|
1306883
1306998
|
}
|
|
@@ -1307471,10 +1307586,10 @@ async function mockServer({
|
|
|
1307471
1307586
|
// src/commands/register/registerWorkspacesV1.ts
|
|
1307472
1307587
|
var import_fiddle_sdk6 = __toESM(require_fiddle_sdk(), 1);
|
|
1307473
1307588
|
var import_axios9 = __toESM(require_axios4(), 1);
|
|
1307474
|
-
var
|
|
1307589
|
+
var import_promises53 = require("fs/promises");
|
|
1307475
1307590
|
var import_path40 = __toESM(require("path"), 1);
|
|
1307476
1307591
|
var import_tar3 = __toESM(require_tar(), 1);
|
|
1307477
|
-
var
|
|
1307592
|
+
var import_tmp_promise13 = __toESM(require_tmp_promise(), 1);
|
|
1307478
1307593
|
async function registerWorkspacesV1({
|
|
1307479
1307594
|
project,
|
|
1307480
1307595
|
cliContext,
|
|
@@ -1307516,12 +1307631,12 @@ async function registerWorkspacesV1({
|
|
|
1307516
1307631
|
});
|
|
1307517
1307632
|
return;
|
|
1307518
1307633
|
}
|
|
1307519
|
-
const tmpDir = await
|
|
1307634
|
+
const tmpDir = await import_tmp_promise13.default.dir();
|
|
1307520
1307635
|
const tarPath = import_path40.default.join(tmpDir.path, "definition.tgz");
|
|
1307521
1307636
|
context.logger.debug(`Compressing definition at ${tmpDir.path}`);
|
|
1307522
1307637
|
await import_tar3.default.create({ file: tarPath, cwd: resolvedWorkspace.absoluteFilepath }, ["."]);
|
|
1307523
1307638
|
context.logger.info("Uploading definition...");
|
|
1307524
|
-
await import_axios9.default.put(registerApiResponse.body.definitionS3UploadUrl, await (0,
|
|
1307639
|
+
await import_axios9.default.put(registerApiResponse.body.definitionS3UploadUrl, await (0, import_promises53.readFile)(tarPath));
|
|
1307525
1307640
|
context.logger.info(
|
|
1307526
1307641
|
`Registered @${project.config.organization}/${resolvedWorkspace.definition.rootApiFile.contents.name}:${registerApiResponse.body.version}`
|
|
1307527
1307642
|
);
|
|
@@ -1307647,20 +1307762,20 @@ async function generateToken({
|
|
|
1307647
1307762
|
|
|
1307648
1307763
|
// src/commands/upgrade/updateApiSpec.ts
|
|
1307649
1307764
|
var fs7 = __toESM(require("fs"), 1);
|
|
1307650
|
-
var
|
|
1307765
|
+
var import_promises54 = require("fs/promises");
|
|
1307651
1307766
|
var import_stream4 = require("stream");
|
|
1307652
|
-
var
|
|
1307767
|
+
var import_promises55 = require("stream/promises");
|
|
1307653
1307768
|
async function fetchAndWriteFile(url, path45, logger) {
|
|
1307654
1307769
|
const resp = await fetch(url);
|
|
1307655
1307770
|
if (resp.ok && resp.body) {
|
|
1307656
1307771
|
logger.debug("Origin successfully fetched, writing to file");
|
|
1307657
1307772
|
const fileStream = fs7.createWriteStream(path45);
|
|
1307658
|
-
await (0,
|
|
1307659
|
-
const fileContents = await (0,
|
|
1307773
|
+
await (0, import_promises55.finished)(import_stream4.Readable.fromWeb(resp.body).pipe(fileStream));
|
|
1307774
|
+
const fileContents = await (0, import_promises54.readFile)(path45, "utf8");
|
|
1307660
1307775
|
try {
|
|
1307661
|
-
await (0,
|
|
1307776
|
+
await (0, import_promises54.writeFile)(path45, JSON.stringify(JSON.parse(fileContents), void 0, 2), "utf8");
|
|
1307662
1307777
|
} catch (e) {
|
|
1307663
|
-
await (0,
|
|
1307778
|
+
await (0, import_promises54.writeFile)(path45, js_yaml_default.dump(js_yaml_default.load(fileContents)), "utf8");
|
|
1307664
1307779
|
}
|
|
1307665
1307780
|
logger.debug("File written successfully");
|
|
1307666
1307781
|
}
|
|
@@ -1307737,7 +1307852,7 @@ async function updateApiSpec({
|
|
|
1307737
1307852
|
}
|
|
1307738
1307853
|
|
|
1307739
1307854
|
// ../yaml/yaml-migrations/lib/migrations/0.0.191/discriminant/migration.js
|
|
1307740
|
-
var
|
|
1307855
|
+
var import_promises56 = require("fs/promises");
|
|
1307741
1307856
|
|
|
1307742
1307857
|
// ../yaml/yaml-migrations/lib/migrations/0.0.191/discriminant/getAllYamlFiles.js
|
|
1307743
1307858
|
var import_glob_promise2 = __toESM(require_lib(), 1);
|
|
@@ -1307771,7 +1307886,7 @@ var migration = {
|
|
|
1307771
1307886
|
try {
|
|
1307772
1307887
|
const fileContents = await getFileContents(yamlFilepath);
|
|
1307773
1307888
|
const newContents = addDiscriminantToFile(fileContents);
|
|
1307774
|
-
await (0,
|
|
1307889
|
+
await (0, import_promises56.writeFile)(yamlFilepath, newContents);
|
|
1307775
1307890
|
} catch (error) {
|
|
1307776
1307891
|
context.failAndThrow("Failed to migrate " + yamlFilepath, error);
|
|
1307777
1307892
|
}
|
|
@@ -1307779,7 +1307894,7 @@ var migration = {
|
|
|
1307779
1307894
|
}
|
|
1307780
1307895
|
};
|
|
1307781
1307896
|
async function getFileContents(filepath) {
|
|
1307782
|
-
const buffer = await (0,
|
|
1307897
|
+
const buffer = await (0, import_promises56.readFile)(filepath);
|
|
1307783
1307898
|
return buffer.toString();
|
|
1307784
1307899
|
}
|
|
1307785
1307900
|
var UNION_REGEX = /^(\s{2,})union:\s*$/gm;
|
|
@@ -1307808,7 +1307923,7 @@ var versionMigrations = {
|
|
|
1307808
1307923
|
var __default = versionMigrations;
|
|
1307809
1307924
|
|
|
1307810
1307925
|
// ../yaml/yaml-migrations/lib/migrations/0.0.203/union-single-property-key/migration.js
|
|
1307811
|
-
var
|
|
1307926
|
+
var import_promises57 = require("fs/promises");
|
|
1307812
1307927
|
var import_yaml2 = __toESM(require_dist3(), 1);
|
|
1307813
1307928
|
|
|
1307814
1307929
|
// ../yaml/yaml-migrations/lib/migrations/0.0.203/union-single-property-key/getAllYamlFiles.js
|
|
@@ -1307849,7 +1307964,7 @@ var migration2 = {
|
|
|
1307849
1307964
|
}
|
|
1307850
1307965
|
};
|
|
1307851
1307966
|
async function migrateFile(filepath, context) {
|
|
1307852
|
-
const contents = await (0,
|
|
1307967
|
+
const contents = await (0, import_promises57.readFile)(filepath);
|
|
1307853
1307968
|
const parsedDocument = import_yaml2.default.parseDocument(contents.toString());
|
|
1307854
1307969
|
const types3 = parsedDocument.get("types");
|
|
1307855
1307970
|
if (types3 == null) {
|
|
@@ -1307881,7 +1307996,7 @@ async function migrateFile(filepath, context) {
|
|
|
1307881
1307996
|
}
|
|
1307882
1307997
|
}
|
|
1307883
1307998
|
}
|
|
1307884
|
-
await (0,
|
|
1307999
|
+
await (0, import_promises57.writeFile)(filepath, parsedDocument.toString());
|
|
1307885
1308000
|
}
|
|
1307886
1308001
|
|
|
1307887
1308002
|
// ../yaml/yaml-migrations/lib/migrations/0.0.203/index.js
|
|
@@ -1307892,7 +1308007,7 @@ var versionMigrations2 = {
|
|
|
1307892
1308007
|
var __default2 = versionMigrations2;
|
|
1307893
1308008
|
|
|
1307894
1308009
|
// ../yaml/yaml-migrations/lib/migrations/0.0.207/add-mode-to-draft-generators/migration.js
|
|
1307895
|
-
var
|
|
1308010
|
+
var import_promises58 = require("fs/promises");
|
|
1307896
1308011
|
var import_yaml3 = __toESM(require_dist3(), 1);
|
|
1307897
1308012
|
|
|
1307898
1308013
|
// ../yaml/yaml-migrations/lib/migrations/0.0.207/add-mode-to-draft-generators/getAllGeneratorYamlFiles.js
|
|
@@ -1307933,7 +1308048,7 @@ var migration3 = {
|
|
|
1307933
1308048
|
}
|
|
1307934
1308049
|
};
|
|
1307935
1308050
|
async function migrateGeneratorsYml(filepath, context) {
|
|
1307936
|
-
const contents = await (0,
|
|
1308051
|
+
const contents = await (0, import_promises58.readFile)(filepath);
|
|
1307937
1308052
|
const parsedDocument = import_yaml3.default.parseDocument(contents.toString());
|
|
1307938
1308053
|
const draftGenerators = parsedDocument.get("draft");
|
|
1307939
1308054
|
if (draftGenerators == null) {
|
|
@@ -1307960,7 +1308075,7 @@ async function migrateGeneratorsYml(filepath, context) {
|
|
|
1307960
1308075
|
draftGenerator.set("output-path", name2.value.includes("openapi") ? "./generated-openapi" : name2.value.includes("postman") ? "./generated-postman" : localOutput);
|
|
1307961
1308076
|
}
|
|
1307962
1308077
|
});
|
|
1307963
|
-
await (0,
|
|
1308078
|
+
await (0, import_promises58.writeFile)(filepath, parsedDocument.toString());
|
|
1307964
1308079
|
}
|
|
1307965
1308080
|
|
|
1307966
1308081
|
// ../yaml/yaml-migrations/lib/migrations/0.0.207/index.js
|
|
@@ -1307971,7 +1308086,7 @@ var versionMigrations3 = {
|
|
|
1307971
1308086
|
var __default3 = versionMigrations3;
|
|
1307972
1308087
|
|
|
1307973
1308088
|
// ../yaml/yaml-migrations/lib/migrations/0.0.210/remove-inline-error-declarations/migration.js
|
|
1307974
|
-
var
|
|
1308089
|
+
var import_promises59 = require("fs/promises");
|
|
1307975
1308090
|
var import_yaml4 = __toESM(require_dist3(), 1);
|
|
1307976
1308091
|
|
|
1307977
1308092
|
// ../yaml/yaml-migrations/lib/migrations/0.0.210/remove-inline-error-declarations/getAllYamlFiles.js
|
|
@@ -1308012,7 +1308127,7 @@ var migration4 = {
|
|
|
1308012
1308127
|
}
|
|
1308013
1308128
|
};
|
|
1308014
1308129
|
async function migrateFile2(filepath, context) {
|
|
1308015
|
-
const contents = await (0,
|
|
1308130
|
+
const contents = await (0, import_promises59.readFile)(filepath);
|
|
1308016
1308131
|
const parsedDocument = import_yaml4.default.parseDocument(contents.toString());
|
|
1308017
1308132
|
const addType = (typeName, typeDeclaration) => {
|
|
1308018
1308133
|
const types3 = parsedDocument.get("types");
|
|
@@ -1308056,7 +1308171,7 @@ async function migrateFile2(filepath, context) {
|
|
|
1308056
1308171
|
}
|
|
1308057
1308172
|
}
|
|
1308058
1308173
|
}
|
|
1308059
|
-
await (0,
|
|
1308174
|
+
await (0, import_promises59.writeFile)(filepath, parsedDocument.toString());
|
|
1308060
1308175
|
}
|
|
1308061
1308176
|
|
|
1308062
1308177
|
// ../yaml/yaml-migrations/lib/migrations/0.0.210/index.js
|
|
@@ -1308067,7 +1308182,7 @@ var versionMigrations4 = {
|
|
|
1308067
1308182
|
var __default4 = versionMigrations4;
|
|
1308068
1308183
|
|
|
1308069
1308184
|
// ../yaml/yaml-migrations/lib/migrations/0.0.212/add-publishing-to-release-generators/migration.js
|
|
1308070
|
-
var
|
|
1308185
|
+
var import_promises60 = require("fs/promises");
|
|
1308071
1308186
|
var import_yaml5 = __toESM(require_dist3(), 1);
|
|
1308072
1308187
|
|
|
1308073
1308188
|
// ../yaml/yaml-migrations/lib/migrations/0.0.212/add-publishing-to-release-generators/getAllGeneratorYamlFiles.js
|
|
@@ -1308108,7 +1308223,7 @@ var migration5 = {
|
|
|
1308108
1308223
|
}
|
|
1308109
1308224
|
};
|
|
1308110
1308225
|
async function migrateGeneratorsYml2(filepath, context) {
|
|
1308111
|
-
const contents = await (0,
|
|
1308226
|
+
const contents = await (0, import_promises60.readFile)(filepath);
|
|
1308112
1308227
|
const parsedDocument = import_yaml5.default.parseDocument(contents.toString());
|
|
1308113
1308228
|
const releaseGenerators = parsedDocument.get("release");
|
|
1308114
1308229
|
if (releaseGenerators == null) {
|
|
@@ -1308146,7 +1308261,7 @@ async function migrateGeneratorsYml2(filepath, context) {
|
|
|
1308146
1308261
|
}
|
|
1308147
1308262
|
releaseGenerator.delete("outputs");
|
|
1308148
1308263
|
});
|
|
1308149
|
-
await (0,
|
|
1308264
|
+
await (0, import_promises60.writeFile)(filepath, parsedDocument.toString());
|
|
1308150
1308265
|
}
|
|
1308151
1308266
|
|
|
1308152
1308267
|
// ../yaml/yaml-migrations/lib/migrations/0.0.212/index.js
|
|
@@ -1308157,7 +1308272,7 @@ var versionMigrations5 = {
|
|
|
1308157
1308272
|
var __default5 = versionMigrations5;
|
|
1308158
1308273
|
|
|
1308159
1308274
|
// ../yaml/yaml-migrations/lib/migrations/0.0.220/rename-alias-key-to-type/migration.js
|
|
1308160
|
-
var
|
|
1308275
|
+
var import_promises61 = require("fs/promises");
|
|
1308161
1308276
|
|
|
1308162
1308277
|
// ../yaml/yaml-migrations/lib/migrations/0.0.220/rename-alias-key-to-type/getAllYamlFiles.js
|
|
1308163
1308278
|
var import_glob_promise7 = __toESM(require_lib(), 1);
|
|
@@ -1308188,9 +1308303,9 @@ var migration6 = {
|
|
|
1308188
1308303
|
run: async ({ context }) => {
|
|
1308189
1308304
|
const yamlFiles = await getAllYamlFiles4(context);
|
|
1308190
1308305
|
for (const filepath of yamlFiles) {
|
|
1308191
|
-
const contents = await (0,
|
|
1308306
|
+
const contents = await (0, import_promises61.readFile)(filepath);
|
|
1308192
1308307
|
const newContents = contents.toString().replaceAll(" alias:", " type:");
|
|
1308193
|
-
await (0,
|
|
1308308
|
+
await (0, import_promises61.writeFile)(filepath, newContents);
|
|
1308194
1308309
|
}
|
|
1308195
1308310
|
}
|
|
1308196
1308311
|
};
|
|
@@ -1308203,7 +1308318,7 @@ var versionMigrations6 = {
|
|
|
1308203
1308318
|
var __default6 = versionMigrations6;
|
|
1308204
1308319
|
|
|
1308205
1308320
|
// ../yaml/yaml-migrations/lib/migrations/0.0.221/add-error-discriminant/migration.js
|
|
1308206
|
-
var
|
|
1308321
|
+
var import_promises62 = require("fs/promises");
|
|
1308207
1308322
|
|
|
1308208
1308323
|
// ../yaml/yaml-migrations/lib/migrations/0.0.221/add-error-discriminant/getAllRootApiYamlFiles.js
|
|
1308209
1308324
|
var import_glob_promise8 = __toESM(require_lib(), 1);
|
|
@@ -1308234,9 +1308349,9 @@ var migration7 = {
|
|
|
1308234
1308349
|
run: async ({ context }) => {
|
|
1308235
1308350
|
const yamlFiles = await getAllRootApiYamlFiles(context);
|
|
1308236
1308351
|
for (const filepath of yamlFiles) {
|
|
1308237
|
-
const contents = await (0,
|
|
1308352
|
+
const contents = await (0, import_promises62.readFile)(filepath);
|
|
1308238
1308353
|
const newContents = contents.toString() + "\nerror-discriminant: error";
|
|
1308239
|
-
await (0,
|
|
1308354
|
+
await (0, import_promises62.writeFile)(filepath, newContents);
|
|
1308240
1308355
|
}
|
|
1308241
1308356
|
}
|
|
1308242
1308357
|
};
|
|
@@ -1308249,7 +1308364,7 @@ var versionMigrations7 = {
|
|
|
1308249
1308364
|
var __default7 = versionMigrations7;
|
|
1308250
1308365
|
|
|
1308251
1308366
|
// ../yaml/yaml-migrations/lib/migrations/0.0.241/add-generator-groups/migration.js
|
|
1308252
|
-
var
|
|
1308367
|
+
var import_promises63 = require("fs/promises");
|
|
1308253
1308368
|
|
|
1308254
1308369
|
// ../yaml/yaml-migrations/lib/migrations/0.0.241/add-generator-groups/getAllGeneratorYamlFiles.js
|
|
1308255
1308370
|
var import_glob_promise9 = __toESM(require_lib(), 1);
|
|
@@ -1308356,7 +1308471,7 @@ var migration8 = {
|
|
|
1308356
1308471
|
}
|
|
1308357
1308472
|
};
|
|
1308358
1308473
|
async function migrateGeneratorsYml3(filepath) {
|
|
1308359
|
-
const contentsStr = await (0,
|
|
1308474
|
+
const contentsStr = await (0, import_promises63.readFile)(filepath);
|
|
1308360
1308475
|
const contents = js_yaml_default.load(contentsStr.toString());
|
|
1308361
1308476
|
const oldGeneratorsConfiguration = GeneratorsConfigurationSchema2.parse(contents);
|
|
1308362
1308477
|
let newGeneratorsConfiguration = {};
|
|
@@ -1308374,7 +1308489,7 @@ async function migrateGeneratorsYml3(filepath) {
|
|
|
1308374
1308489
|
generators: oldGeneratorsConfiguration.release.map((releaseGeneratorInvocation) => convertReleaseGeneratorInvocation(releaseGeneratorInvocation))
|
|
1308375
1308490
|
};
|
|
1308376
1308491
|
}
|
|
1308377
|
-
await (0,
|
|
1308492
|
+
await (0, import_promises63.writeFile)(filepath, js_yaml_default.dump(newGeneratorsConfiguration));
|
|
1308378
1308493
|
}
|
|
1308379
1308494
|
function convertDraftGeneratorInvocation(draftGeneratorInvocation) {
|
|
1308380
1308495
|
const newSchema = {
|
|
@@ -1308449,7 +1308564,7 @@ var versionMigrations8 = {
|
|
|
1308449
1308564
|
var __default8 = versionMigrations8;
|
|
1308450
1308565
|
|
|
1308451
1308566
|
// ../yaml/yaml-migrations/lib/migrations/0.0.248/add-error-discrimination-config/migration.js
|
|
1308452
|
-
var
|
|
1308567
|
+
var import_promises64 = require("fs/promises");
|
|
1308453
1308568
|
var import_yaml6 = __toESM(require_dist3(), 1);
|
|
1308454
1308569
|
|
|
1308455
1308570
|
// ../yaml/yaml-migrations/lib/migrations/0.0.248/add-error-discrimination-config/getAllRootApiYamlFiles.js
|
|
@@ -1308490,7 +1308605,7 @@ var migration9 = {
|
|
|
1308490
1308605
|
}
|
|
1308491
1308606
|
};
|
|
1308492
1308607
|
async function migrateRootApiFile(filepath) {
|
|
1308493
|
-
const contents = await (0,
|
|
1308608
|
+
const contents = await (0, import_promises64.readFile)(filepath);
|
|
1308494
1308609
|
const parsedDocument = import_yaml6.default.parseDocument(contents.toString());
|
|
1308495
1308610
|
const errorDiscriminant = parsedDocument.get("error-discriminant", true);
|
|
1308496
1308611
|
if (errorDiscriminant == null || !import_yaml6.default.isScalar(errorDiscriminant) || typeof errorDiscriminant.value !== "string") {
|
|
@@ -1308501,7 +1308616,7 @@ async function migrateRootApiFile(filepath) {
|
|
|
1308501
1308616
|
"property-name": errorDiscriminant.value
|
|
1308502
1308617
|
});
|
|
1308503
1308618
|
parsedDocument.delete("error-discriminant");
|
|
1308504
|
-
await (0,
|
|
1308619
|
+
await (0, import_promises64.writeFile)(filepath, parsedDocument.toString());
|
|
1308505
1308620
|
}
|
|
1308506
1308621
|
|
|
1308507
1308622
|
// ../yaml/yaml-migrations/lib/migrations/0.0.248/index.js
|
|
@@ -1308512,7 +1308627,7 @@ var versionMigrations9 = {
|
|
|
1308512
1308627
|
var __default9 = versionMigrations9;
|
|
1308513
1308628
|
|
|
1308514
1308629
|
// ../yaml/yaml-migrations/lib/migrations/0.1.3-rc3/add-inline-requests/migration.js
|
|
1308515
|
-
var
|
|
1308630
|
+
var import_promises65 = require("fs/promises");
|
|
1308516
1308631
|
var import_yaml7 = __toESM(require_dist3(), 1);
|
|
1308517
1308632
|
|
|
1308518
1308633
|
// ../yaml/yaml-migrations/lib/migrations/0.1.3-rc3/add-inline-requests/getAllYamlFiles.js
|
|
@@ -1308553,7 +1308668,7 @@ var migration10 = {
|
|
|
1308553
1308668
|
}
|
|
1308554
1308669
|
};
|
|
1308555
1308670
|
async function migrateYamlFile(filepath, context) {
|
|
1308556
|
-
const contents = await (0,
|
|
1308671
|
+
const contents = await (0, import_promises65.readFile)(filepath);
|
|
1308557
1308672
|
const parsedDocument = import_yaml7.default.parseDocument(contents.toString());
|
|
1308558
1308673
|
const services = parsedDocument.get("services");
|
|
1308559
1308674
|
if (services == null) {
|
|
@@ -1308593,7 +1308708,7 @@ async function migrateYamlFile(filepath, context) {
|
|
|
1308593
1308708
|
context.failWithoutThrowing("Failed to convert endpoint", e);
|
|
1308594
1308709
|
}
|
|
1308595
1308710
|
}
|
|
1308596
|
-
await (0,
|
|
1308711
|
+
await (0, import_promises65.writeFile)(filepath, parsedDocument.toString());
|
|
1308597
1308712
|
}
|
|
1308598
1308713
|
}
|
|
1308599
1308714
|
function convertEndpoint18({ document: document4, endpoint }) {
|
|
@@ -1308677,10 +1308792,10 @@ var import_legacy_docs_config = __toESM(require_legacy_docs_config(), 1);
|
|
|
1308677
1308792
|
var LegacyDocsSerializers = __toESM(require_serialization34(), 1);
|
|
1308678
1308793
|
|
|
1308679
1308794
|
// ../yaml/yaml-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/docs-config/loadRawDocsConfiguration.js
|
|
1308680
|
-
var
|
|
1308795
|
+
var import_promises66 = require("fs/promises");
|
|
1308681
1308796
|
async function loadRawDocsConfiguration2({ absolutePathToWorkspace }) {
|
|
1308682
1308797
|
const filepath = getAbsolutePathToDocsYaml({ absolutePathToWorkspace });
|
|
1308683
|
-
const contentsStr = await (0,
|
|
1308798
|
+
const contentsStr = await (0, import_promises66.readFile)(filepath);
|
|
1308684
1308799
|
const contentsParsed = js_yaml_default.load(contentsStr.toString());
|
|
1308685
1308800
|
const result = await LegacyDocsSerializers.DocsConfiguration.parse(contentsParsed);
|
|
1308686
1308801
|
if (result.ok) {
|
|
@@ -1308698,7 +1308813,7 @@ function getAbsolutePathToDocsFolder({ absolutePathToWorkspace }) {
|
|
|
1308698
1308813
|
}
|
|
1308699
1308814
|
|
|
1308700
1308815
|
// ../yaml/yaml-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/migrateDocsAndMultipleAPIs.js
|
|
1308701
|
-
var
|
|
1308816
|
+
var import_promises68 = require("fs/promises");
|
|
1308702
1308817
|
|
|
1308703
1308818
|
// ../yaml/yaml-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/docs-config/convertLegacyDocsConfig.js
|
|
1308704
1308819
|
function convertLegacyDocsConfig({ docsConfiguration, docsURLs, apiName }) {
|
|
@@ -1308879,10 +1308994,10 @@ __export(legacy_exports, {
|
|
|
1308879
1308994
|
});
|
|
1308880
1308995
|
|
|
1308881
1308996
|
// ../yaml/yaml-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/generators-configuration/loadRawGeneratorsConfiguration.js
|
|
1308882
|
-
var
|
|
1308997
|
+
var import_promises67 = require("fs/promises");
|
|
1308883
1308998
|
async function loadRawGeneratorsConfiguration2({ absolutePathToWorkspace }) {
|
|
1308884
1308999
|
const filepath = getAbsolutePathToGeneratorsConfiguration({ absolutePathToWorkspace });
|
|
1308885
|
-
const contentsStr = await (0,
|
|
1309000
|
+
const contentsStr = await (0, import_promises67.readFile)(filepath);
|
|
1308886
1309001
|
const contentsParsed = js_yaml_default.load(contentsStr.toString());
|
|
1308887
1309002
|
const result = await legacy_exports.GeneratorsConfigurationSchema.safeParseAsync(contentsParsed);
|
|
1308888
1309003
|
if (result.success) {
|
|
@@ -1308912,7 +1309027,7 @@ function migrateDocsInstances(docsURLs) {
|
|
|
1308912
1309027
|
var APIS_DIRECTORY2 = "apis";
|
|
1308913
1309028
|
async function migrateDocsAndMultipleAPIs({ absolutePathToFernDirectory, workspaces, workspaceContainingDocs }) {
|
|
1308914
1309029
|
const absolutePathToApisDirectory = join(absolutePathToFernDirectory, RelativeFilePath.of(APIS_DIRECTORY2));
|
|
1308915
|
-
await (0,
|
|
1309030
|
+
await (0, import_promises68.mkdir)(absolutePathToApisDirectory);
|
|
1308916
1309031
|
for (const workspace of workspaces) {
|
|
1308917
1309032
|
const absolutePathToWorkspace = join(absolutePathToFernDirectory, RelativeFilePath.of(workspace));
|
|
1308918
1309033
|
const docsURLs = await migrateAndWriteGeneratorsYml({ absolutePathToWorkspace });
|
|
@@ -1308920,11 +1309035,11 @@ async function migrateDocsAndMultipleAPIs({ absolutePathToFernDirectory, workspa
|
|
|
1308920
1309035
|
await migrateAndWriteDocsYml({ absolutePathToWorkspace, docsURLs, apiName: workspaceContainingDocs });
|
|
1308921
1309036
|
const absolutePathToDocsFolder = getAbsolutePathToDocsFolder({ absolutePathToWorkspace });
|
|
1308922
1309037
|
await moveFolder({ src: absolutePathToDocsFolder, dest: absolutePathToFernDirectory });
|
|
1308923
|
-
await (0,
|
|
1309038
|
+
await (0, import_promises68.rm)(absolutePathToDocsFolder, { recursive: true });
|
|
1308924
1309039
|
}
|
|
1308925
1309040
|
const absolutePathToNestedWorkspace = join(absolutePathToApisDirectory, RelativeFilePath.of(workspace));
|
|
1308926
1309041
|
await moveFolder({ src: absolutePathToWorkspace, dest: absolutePathToNestedWorkspace });
|
|
1308927
|
-
await (0,
|
|
1309042
|
+
await (0, import_promises68.rm)(absolutePathToWorkspace, { recursive: true });
|
|
1308928
1309043
|
}
|
|
1308929
1309044
|
}
|
|
1308930
1309045
|
async function migrateAndWriteGeneratorsYml({ absolutePathToWorkspace }) {
|
|
@@ -1308937,7 +1309052,7 @@ async function migrateAndWriteGeneratorsYml({ absolutePathToWorkspace }) {
|
|
|
1308937
1309052
|
generatorsConfiguration,
|
|
1308938
1309053
|
pathModificationStrategy: PathModificationStrategy.Nest
|
|
1308939
1309054
|
});
|
|
1308940
|
-
await (0,
|
|
1309055
|
+
await (0, import_promises68.writeFile)(absolutePathToGeneratorsConfiguration, js_yaml_default.dump(convertedResponse.value));
|
|
1308941
1309056
|
return convertedResponse.docsURLs;
|
|
1308942
1309057
|
}
|
|
1308943
1309058
|
async function migrateAndWriteDocsYml({ absolutePathToWorkspace, docsURLs, apiName }) {
|
|
@@ -1308951,19 +1309066,19 @@ async function migrateAndWriteDocsYml({ absolutePathToWorkspace, docsURLs, apiNa
|
|
|
1308951
1309066
|
apiName
|
|
1308952
1309067
|
});
|
|
1308953
1309068
|
const absolutePathToDocsConfig = getAbsolutePathToDocsYaml({ absolutePathToWorkspace });
|
|
1308954
|
-
await (0,
|
|
1309069
|
+
await (0, import_promises68.writeFile)(absolutePathToDocsConfig, js_yaml_default.dump(convertedDocsConfig));
|
|
1308955
1309070
|
}
|
|
1308956
1309071
|
|
|
1308957
1309072
|
// ../yaml/yaml-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/migrateDocsAndSingleAPI.js
|
|
1308958
|
-
var
|
|
1309073
|
+
var import_promises69 = require("fs/promises");
|
|
1308959
1309074
|
async function migrateDocsAndSingleAPI({ absolutePathToFernDirectory, absolutePathToWorkspace }) {
|
|
1308960
1309075
|
const docsURLs = await migrateAndWriteGeneratorsYml2({ absolutePathToWorkspace });
|
|
1308961
1309076
|
await migrateAndWriteDocsYml2({ absolutePathToWorkspace, docsURLs });
|
|
1308962
1309077
|
const absolutePathToDocsFolder = getAbsolutePathToDocsFolder({ absolutePathToWorkspace });
|
|
1308963
1309078
|
await moveFolder({ src: absolutePathToDocsFolder, dest: absolutePathToFernDirectory });
|
|
1308964
1309079
|
await moveFolder({ src: absolutePathToWorkspace, dest: absolutePathToFernDirectory });
|
|
1308965
|
-
await (0,
|
|
1308966
|
-
await (0,
|
|
1309080
|
+
await (0, import_promises69.rm)(absolutePathToDocsFolder, { recursive: true });
|
|
1309081
|
+
await (0, import_promises69.rm)(absolutePathToWorkspace, { recursive: true });
|
|
1308967
1309082
|
}
|
|
1308968
1309083
|
async function migrateAndWriteDocsYml2({ absolutePathToWorkspace, docsURLs }) {
|
|
1308969
1309084
|
const docsConfiguration = await loadRawDocsConfiguration2({ absolutePathToWorkspace });
|
|
@@ -1308976,7 +1309091,7 @@ async function migrateAndWriteDocsYml2({ absolutePathToWorkspace, docsURLs }) {
|
|
|
1308976
1309091
|
apiName: void 0
|
|
1308977
1309092
|
});
|
|
1308978
1309093
|
const absolutePathToDocsConfig = getAbsolutePathToDocsYaml({ absolutePathToWorkspace });
|
|
1308979
|
-
await (0,
|
|
1309094
|
+
await (0, import_promises69.writeFile)(absolutePathToDocsConfig, js_yaml_default.dump(convertedDocsConfig));
|
|
1308980
1309095
|
}
|
|
1308981
1309096
|
async function migrateAndWriteGeneratorsYml2({ absolutePathToWorkspace }) {
|
|
1308982
1309097
|
const generatorsConfiguration = await loadRawGeneratorsConfiguration2({ absolutePathToWorkspace });
|
|
@@ -1308988,22 +1309103,22 @@ async function migrateAndWriteGeneratorsYml2({ absolutePathToWorkspace }) {
|
|
|
1308988
1309103
|
generatorsConfiguration,
|
|
1308989
1309104
|
pathModificationStrategy: "MoveUp"
|
|
1308990
1309105
|
});
|
|
1308991
|
-
await (0,
|
|
1309106
|
+
await (0, import_promises69.writeFile)(absolutePathToGeneratorsConfiguration, js_yaml_default.dump(convertedResponse.value));
|
|
1308992
1309107
|
return convertedResponse.docsURLs;
|
|
1308993
1309108
|
}
|
|
1308994
1309109
|
|
|
1308995
1309110
|
// ../yaml/yaml-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/migrateOnlyMultipleAPIs.js
|
|
1308996
|
-
var
|
|
1309111
|
+
var import_promises70 = require("fs/promises");
|
|
1308997
1309112
|
var APIS_DIRECTORY3 = "apis";
|
|
1308998
1309113
|
async function migrateOnlyMultipleAPIs({ absolutePathToFernDirectory, workspaces }) {
|
|
1308999
1309114
|
const absolutePathToApisDirectory = join(absolutePathToFernDirectory, RelativeFilePath.of(APIS_DIRECTORY3));
|
|
1309000
|
-
await (0,
|
|
1309115
|
+
await (0, import_promises70.mkdir)(absolutePathToApisDirectory);
|
|
1309001
1309116
|
for (const workspace of workspaces) {
|
|
1309002
1309117
|
const absolutePathToWorkspace = join(absolutePathToFernDirectory, RelativeFilePath.of(workspace));
|
|
1309003
1309118
|
await migrateAndWriteGeneratorsYml3({ absolutePathToWorkspace });
|
|
1309004
1309119
|
const absolutePathToNestedWorkspace = join(absolutePathToApisDirectory, RelativeFilePath.of(workspace));
|
|
1309005
1309120
|
await moveFolder({ src: absolutePathToWorkspace, dest: absolutePathToNestedWorkspace });
|
|
1309006
|
-
await (0,
|
|
1309121
|
+
await (0, import_promises70.rm)(absolutePathToWorkspace, { recursive: true });
|
|
1309007
1309122
|
}
|
|
1309008
1309123
|
}
|
|
1309009
1309124
|
async function migrateAndWriteGeneratorsYml3({ absolutePathToWorkspace }) {
|
|
@@ -1309016,15 +1309131,15 @@ async function migrateAndWriteGeneratorsYml3({ absolutePathToWorkspace }) {
|
|
|
1309016
1309131
|
generatorsConfiguration,
|
|
1309017
1309132
|
pathModificationStrategy: PathModificationStrategy.Nest
|
|
1309018
1309133
|
});
|
|
1309019
|
-
await (0,
|
|
1309134
|
+
await (0, import_promises70.writeFile)(absolutePathToGeneratorsConfiguration, js_yaml_default.dump(convertedResponse.value));
|
|
1309020
1309135
|
}
|
|
1309021
1309136
|
|
|
1309022
1309137
|
// ../yaml/yaml-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/migrateOnlySingleAPI.js
|
|
1309023
|
-
var
|
|
1309138
|
+
var import_promises71 = require("fs/promises");
|
|
1309024
1309139
|
async function migrateOnlySingleAPI({ absolutePathToFernDirectory, absolutePathToWorkspace }) {
|
|
1309025
1309140
|
await migrateAndWriteGeneratorsYml4({ absolutePathToWorkspace });
|
|
1309026
1309141
|
await moveFolder({ src: absolutePathToWorkspace, dest: absolutePathToFernDirectory });
|
|
1309027
|
-
await (0,
|
|
1309142
|
+
await (0, import_promises71.rmdir)(absolutePathToWorkspace, { recursive: true });
|
|
1309028
1309143
|
}
|
|
1309029
1309144
|
async function migrateAndWriteGeneratorsYml4({ absolutePathToWorkspace }) {
|
|
1309030
1309145
|
const generatorsConfiguration = await loadRawGeneratorsConfiguration2({ absolutePathToWorkspace });
|
|
@@ -1309036,7 +1309151,7 @@ async function migrateAndWriteGeneratorsYml4({ absolutePathToWorkspace }) {
|
|
|
1309036
1309151
|
generatorsConfiguration,
|
|
1309037
1309152
|
pathModificationStrategy: "MoveUp"
|
|
1309038
1309153
|
});
|
|
1309039
|
-
await (0,
|
|
1309154
|
+
await (0, import_promises71.writeFile)(absolutePathToGeneratorsConfiguration, js_yaml_default.dump(convertedResponse.value));
|
|
1309040
1309155
|
}
|
|
1309041
1309156
|
|
|
1309042
1309157
|
// ../yaml/yaml-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/migration.js
|
|
@@ -1309113,7 +1309228,7 @@ var versionMigrations11 = {
|
|
|
1309113
1309228
|
var __default11 = versionMigrations11;
|
|
1309114
1309229
|
|
|
1309115
1309230
|
// ../yaml/yaml-migrations/lib/migrations/0.3.0-rc12/add-value-key-to-type-examples/migration.js
|
|
1309116
|
-
var
|
|
1309231
|
+
var import_promises72 = require("fs/promises");
|
|
1309117
1309232
|
var import_yaml8 = __toESM(require_dist3(), 1);
|
|
1309118
1309233
|
|
|
1309119
1309234
|
// ../yaml/yaml-migrations/lib/migrations/0.3.0-rc12/add-value-key-to-type-examples/getAllYamlFiles.js
|
|
@@ -1309154,7 +1309269,7 @@ var migration12 = {
|
|
|
1309154
1309269
|
}
|
|
1309155
1309270
|
};
|
|
1309156
1309271
|
async function migrateYamlFile2(filepath, context) {
|
|
1309157
|
-
const contents = await (0,
|
|
1309272
|
+
const contents = await (0, import_promises72.readFile)(filepath);
|
|
1309158
1309273
|
const parsedDocument = import_yaml8.default.parseDocument(contents.toString());
|
|
1309159
1309274
|
const types3 = parsedDocument.get("types");
|
|
1309160
1309275
|
if (types3 == null) {
|
|
@@ -1309180,7 +1309295,7 @@ async function migrateYamlFile2(filepath, context) {
|
|
|
1309180
1309295
|
examples.set(i2, { value });
|
|
1309181
1309296
|
}
|
|
1309182
1309297
|
}
|
|
1309183
|
-
await (0,
|
|
1309298
|
+
await (0, import_promises72.writeFile)(filepath, parsedDocument.toString());
|
|
1309184
1309299
|
}
|
|
1309185
1309300
|
|
|
1309186
1309301
|
// ../yaml/yaml-migrations/lib/migrations/0.3.0-rc12/index.js
|
|
@@ -1309191,7 +1309306,7 @@ var versionMigrations12 = {
|
|
|
1309191
1309306
|
var __default12 = versionMigrations12;
|
|
1309192
1309307
|
|
|
1309193
1309308
|
// ../yaml/yaml-migrations/lib/migrations/0.3.23/change-services-key-to-service/migration.js
|
|
1309194
|
-
var
|
|
1309309
|
+
var import_promises73 = require("fs/promises");
|
|
1309195
1309310
|
var import_yaml9 = __toESM(require_dist3(), 1);
|
|
1309196
1309311
|
|
|
1309197
1309312
|
// ../yaml/yaml-migrations/lib/migrations/0.3.23/change-services-key-to-service/getAllYamlFiles.js
|
|
@@ -1309232,7 +1309347,7 @@ var migration13 = {
|
|
|
1309232
1309347
|
}
|
|
1309233
1309348
|
};
|
|
1309234
1309349
|
async function migrateYamlFile3(filepath, context) {
|
|
1309235
|
-
const contents = await (0,
|
|
1309350
|
+
const contents = await (0, import_promises73.readFile)(filepath);
|
|
1309236
1309351
|
const parsedDocument = import_yaml9.default.parseDocument(contents.toString());
|
|
1309237
1309352
|
if (!import_yaml9.default.isMap(parsedDocument.contents)) {
|
|
1309238
1309353
|
return context.failAndThrow("File is not a map");
|
|
@@ -1309262,7 +1309377,7 @@ async function migrateYamlFile3(filepath, context) {
|
|
|
1309262
1309377
|
pair.value = firstService.value;
|
|
1309263
1309378
|
}
|
|
1309264
1309379
|
}
|
|
1309265
|
-
await (0,
|
|
1309380
|
+
await (0, import_promises73.writeFile)(filepath, parsedDocument.toString());
|
|
1309266
1309381
|
}
|
|
1309267
1309382
|
|
|
1309268
1309383
|
// ../yaml/yaml-migrations/lib/migrations/0.3.23/index.js
|
|
@@ -1309273,7 +1309388,7 @@ var versionMigrations13 = {
|
|
|
1309273
1309388
|
var __default13 = versionMigrations13;
|
|
1309274
1309389
|
|
|
1309275
1309390
|
// ../yaml/yaml-migrations/lib/migrations/0.5.4/move-service-docs-to-top-level/migration.js
|
|
1309276
|
-
var
|
|
1309391
|
+
var import_promises74 = require("fs/promises");
|
|
1309277
1309392
|
var import_yaml10 = __toESM(require_dist3(), 1);
|
|
1309278
1309393
|
|
|
1309279
1309394
|
// ../yaml/yaml-migrations/lib/migrations/0.5.4/move-service-docs-to-top-level/getAllYamlFiles.js
|
|
@@ -1309314,7 +1309429,7 @@ var migration14 = {
|
|
|
1309314
1309429
|
}
|
|
1309315
1309430
|
};
|
|
1309316
1309431
|
async function migrateYamlFile4(filepath, context) {
|
|
1309317
|
-
const contents = await (0,
|
|
1309432
|
+
const contents = await (0, import_promises74.readFile)(filepath);
|
|
1309318
1309433
|
const parsedDocument = import_yaml10.default.parseDocument(contents.toString());
|
|
1309319
1309434
|
if (!import_yaml10.default.isMap(parsedDocument.contents)) {
|
|
1309320
1309435
|
return context.failAndThrow("File is not a map");
|
|
@@ -1309333,7 +1309448,7 @@ async function migrateYamlFile4(filepath, context) {
|
|
|
1309333
1309448
|
}
|
|
1309334
1309449
|
service.items.splice(indexOfServiceDocsPair, 1);
|
|
1309335
1309450
|
parsedDocument.contents.items.unshift(docsPair);
|
|
1309336
|
-
await (0,
|
|
1309451
|
+
await (0, import_promises74.writeFile)(filepath, parsedDocument.toString());
|
|
1309337
1309452
|
}
|
|
1309338
1309453
|
|
|
1309339
1309454
|
// ../yaml/yaml-migrations/lib/migrations/0.5.4/index.js
|
|
@@ -1309344,7 +1309459,7 @@ var versionMigrations14 = {
|
|
|
1309344
1309459
|
var __default14 = versionMigrations14;
|
|
1309345
1309460
|
|
|
1309346
1309461
|
// ../yaml/yaml-migrations/lib/migrations/0.9.10/add-suffix-to-docs-domain/migration.js
|
|
1309347
|
-
var
|
|
1309462
|
+
var import_promises75 = require("fs/promises");
|
|
1309348
1309463
|
|
|
1309349
1309464
|
// ../yaml/yaml-migrations/lib/migrations/0.9.10/add-suffix-to-docs-domain/getAllGeneratorYamlFiles.js
|
|
1309350
1309465
|
var import_glob_promise15 = __toESM(require_lib(), 1);
|
|
@@ -1309384,14 +1309499,14 @@ var migration15 = {
|
|
|
1309384
1309499
|
}
|
|
1309385
1309500
|
};
|
|
1309386
1309501
|
async function migrateYamlFile5(filepath) {
|
|
1309387
|
-
const contents = await (0,
|
|
1309502
|
+
const contents = await (0, import_promises75.readFile)(filepath);
|
|
1309388
1309503
|
const domainSuffix = process.env.DOMAIN_SUFFIX ?? "docs.buildwithfern.com";
|
|
1309389
1309504
|
const regex4 = /(docs:\s*domain:\s*)"([^"]*)"/g;
|
|
1309390
1309505
|
const updatedSnapshot = contents.toString().replace(regex4, (_match, _prefix, domain2) => {
|
|
1309391
1309506
|
return `docs:
|
|
1309392
1309507
|
domain: "${domain2}.${domainSuffix}"`;
|
|
1309393
1309508
|
});
|
|
1309394
|
-
await (0,
|
|
1309509
|
+
await (0, import_promises75.writeFile)(filepath, updatedSnapshot.toString());
|
|
1309395
1309510
|
}
|
|
1309396
1309511
|
|
|
1309397
1309512
|
// ../yaml/yaml-migrations/lib/migrations/0.9.10/index.js
|
|
@@ -1309492,7 +1309607,7 @@ ${source_default.dim(migration16.summary)}`
|
|
|
1309492
1309607
|
}
|
|
1309493
1309608
|
|
|
1309494
1309609
|
// src/commands/upgrade/upgrade.ts
|
|
1309495
|
-
var
|
|
1309610
|
+
var import_promises76 = require("fs/promises");
|
|
1309496
1309611
|
|
|
1309497
1309612
|
// ../../../node_modules/.pnpm/immer@9.0.15/node_modules/immer/dist/immer.esm.mjs
|
|
1309498
1309613
|
function n(n2) {
|
|
@@ -1309981,7 +1310096,7 @@ async function upgrade({
|
|
|
1309981
1310096
|
const newProjectConfig = immer_esm_default(projectConfig.rawConfig, (draft) => {
|
|
1309982
1310097
|
draft.version = fernCliUpgradeInfo.latestVersion;
|
|
1309983
1310098
|
});
|
|
1309984
|
-
await (0,
|
|
1310099
|
+
await (0, import_promises76.writeFile)(projectConfig._absolutePath, JSON.stringify(newProjectConfig, void 0, 2));
|
|
1309985
1310100
|
cliContext.logger.info(
|
|
1309986
1310101
|
`Upgrading from ${source_default.dim(cliContext.environment.packageVersion)} \u2192 ${source_default.green(
|
|
1309987
1310102
|
fernCliUpgradeInfo.latestVersion
|
|
@@ -1310003,7 +1310118,7 @@ async function upgrade({
|
|
|
1310003
1310118
|
}
|
|
1310004
1310119
|
|
|
1310005
1310120
|
// src/commands/upgrade/upgradeGenerator.ts
|
|
1310006
|
-
var
|
|
1310121
|
+
var import_promises77 = require("fs/promises");
|
|
1310007
1310122
|
var import_path41 = __toESM(require("path"), 1);
|
|
1310008
1310123
|
var semver3 = __toESM(require_semver2(), 1);
|
|
1310009
1310124
|
var import_yaml11 = __toESM(require_dist3(), 1);
|
|
@@ -1310019,7 +1310134,7 @@ async function loadAndUpdateGenerators({
|
|
|
1310019
1310134
|
context.failAndThrow("Generators configuration file was not found, no generators to upgrade.");
|
|
1310020
1310135
|
return void 0;
|
|
1310021
1310136
|
}
|
|
1310022
|
-
const contents = await (0,
|
|
1310137
|
+
const contents = await (0, import_promises77.readFile)(filepath);
|
|
1310023
1310138
|
context.logger.debug(`Found generators: ${contents.toString()}`);
|
|
1310024
1310139
|
const parsedDocument = import_yaml11.default.parseDocument(contents.toString());
|
|
1310025
1310140
|
const generatorGroups = parsedDocument.get("groups");
|
|
@@ -1310109,7 +1310224,7 @@ async function upgradeGenerator2({
|
|
|
1310109
1310224
|
includeMajor
|
|
1310110
1310225
|
});
|
|
1310111
1310226
|
if (updatedConfiguration != null) {
|
|
1310112
|
-
await (0,
|
|
1310227
|
+
await (0, import_promises77.writeFile)(
|
|
1310113
1310228
|
((_a6 = workspace.generatorsConfiguration) == null ? void 0 : _a6.absolutePathToConfiguration) ?? generators_yml_exports.getPathToGeneratorsConfiguration({
|
|
1310114
1310229
|
absolutePathToWorkspace: workspace.absoluteFilepath
|
|
1310115
1310230
|
}),
|
|
@@ -1310149,7 +1310264,7 @@ async function validateWorkspaces({
|
|
|
1310149
1310264
|
}
|
|
1310150
1310265
|
|
|
1310151
1310266
|
// src/commands/write-definition/writeDefinitionForWorkspaces.ts
|
|
1310152
|
-
var
|
|
1310267
|
+
var import_promises78 = require("fs/promises");
|
|
1310153
1310268
|
var import_path42 = __toESM(require("path"), 1);
|
|
1310154
1310269
|
async function writeDefinitionForWorkspaces({
|
|
1310155
1310270
|
project,
|
|
@@ -1310211,22 +1310326,22 @@ async function writeFernDefinition2({
|
|
|
1310211
1310326
|
absolutePathToOutputDirectory
|
|
1310212
1310327
|
}) {
|
|
1310213
1310328
|
if (await doesPathExist(absolutePathToOutputDirectory)) {
|
|
1310214
|
-
await (0,
|
|
1310329
|
+
await (0, import_promises78.rmdir)(absolutePathToOutputDirectory, { recursive: true });
|
|
1310215
1310330
|
}
|
|
1310216
|
-
await (0,
|
|
1310217
|
-
await (0,
|
|
1310331
|
+
await (0, import_promises78.mkdir)(absolutePathToOutputDirectory, { recursive: true });
|
|
1310332
|
+
await (0, import_promises78.writeFile)(
|
|
1310218
1310333
|
join(absolutePathToOutputDirectory, RelativeFilePath.of(ROOT_API_FILENAME)),
|
|
1310219
1310334
|
js_yaml_default.dump(definition3.rootApiFile.contents)
|
|
1310220
1310335
|
);
|
|
1310221
1310336
|
for (const [relativePath, packageMarker] of Object.entries(definition3.packageMarkers)) {
|
|
1310222
1310337
|
const absoluteFilepath = join(absolutePathToOutputDirectory, RelativeFilePath.of(relativePath));
|
|
1310223
|
-
await (0,
|
|
1310224
|
-
await (0,
|
|
1310338
|
+
await (0, import_promises78.mkdir)(dirname(absoluteFilepath), { recursive: true });
|
|
1310339
|
+
await (0, import_promises78.writeFile)(absoluteFilepath, js_yaml_default.dump(packageMarker.contents));
|
|
1310225
1310340
|
}
|
|
1310226
1310341
|
for (const [relativePath, definitionFile] of Object.entries(definition3.namedDefinitionFiles)) {
|
|
1310227
1310342
|
const absoluteFilepath = join(absolutePathToOutputDirectory, RelativeFilePath.of(relativePath));
|
|
1310228
|
-
await (0,
|
|
1310229
|
-
await (0,
|
|
1310343
|
+
await (0, import_promises78.mkdir)(dirname(absoluteFilepath), { recursive: true });
|
|
1310344
|
+
await (0, import_promises78.writeFile)(absoluteFilepath, js_yaml_default.dump(definitionFile.contents));
|
|
1310230
1310345
|
}
|
|
1310231
1310346
|
}
|
|
1310232
1310347
|
|