@fern-api/fern-api-dev 5.14.0 → 5.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.cjs +68 -61
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -490139,7 +490139,8 @@ var EndpointSnippetRequest = schemas_exports3.objectWithoutOptionalProperties({
|
|
|
490139
490139
|
// ../../ir-sdk/lib/sdk/serialization/resources/dynamic/resources/endpoints/types/EndpointExample.js
|
|
490140
490140
|
var EndpointExample = schemas_exports3.objectWithoutOptionalProperties({
|
|
490141
490141
|
id: schemas_exports3.string(),
|
|
490142
|
-
name: schemas_exports3.string().optional()
|
|
490142
|
+
name: schemas_exports3.string().optional(),
|
|
490143
|
+
isUserSpecified: schemas_exports3.boolean().optional()
|
|
490143
490144
|
}).extend(EndpointSnippetRequest);
|
|
490144
490145
|
|
|
490145
490146
|
// ../../ir-sdk/lib/sdk/serialization/resources/dynamic/resources/endpoints/types/FileUploadRequestBodyProperty.js
|
|
@@ -563177,59 +563178,6 @@ function convertTransportToEncoding(transport, service) {
|
|
|
563177
563178
|
init_lib4();
|
|
563178
563179
|
var import_url_join8 = __toESM(require_url_join(), 1);
|
|
563179
563180
|
|
|
563180
|
-
// ../../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/regex.js
|
|
563181
|
-
var regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
|
|
563182
|
-
|
|
563183
|
-
// ../../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/validate.js
|
|
563184
|
-
function validate2(uuid3) {
|
|
563185
|
-
return typeof uuid3 === "string" && regex_default.test(uuid3);
|
|
563186
|
-
}
|
|
563187
|
-
var validate_default = validate2;
|
|
563188
|
-
|
|
563189
|
-
// ../../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/stringify.js
|
|
563190
|
-
var byteToHex = [];
|
|
563191
|
-
for (let i9 = 0; i9 < 256; ++i9) {
|
|
563192
|
-
byteToHex.push((i9 + 256).toString(16).slice(1));
|
|
563193
|
-
}
|
|
563194
|
-
function unsafeStringify(arr, offset2 = 0) {
|
|
563195
|
-
return (byteToHex[arr[offset2 + 0]] + byteToHex[arr[offset2 + 1]] + byteToHex[arr[offset2 + 2]] + byteToHex[arr[offset2 + 3]] + "-" + byteToHex[arr[offset2 + 4]] + byteToHex[arr[offset2 + 5]] + "-" + byteToHex[arr[offset2 + 6]] + byteToHex[arr[offset2 + 7]] + "-" + byteToHex[arr[offset2 + 8]] + byteToHex[arr[offset2 + 9]] + "-" + byteToHex[arr[offset2 + 10]] + byteToHex[arr[offset2 + 11]] + byteToHex[arr[offset2 + 12]] + byteToHex[arr[offset2 + 13]] + byteToHex[arr[offset2 + 14]] + byteToHex[arr[offset2 + 15]]).toLowerCase();
|
|
563196
|
-
}
|
|
563197
|
-
|
|
563198
|
-
// ../../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/rng.js
|
|
563199
|
-
var rnds8 = new Uint8Array(16);
|
|
563200
|
-
function rng() {
|
|
563201
|
-
return crypto.getRandomValues(rnds8);
|
|
563202
|
-
}
|
|
563203
|
-
|
|
563204
|
-
// ../../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/v4.js
|
|
563205
|
-
function v42(options2, buf, offset2) {
|
|
563206
|
-
if (!buf && !options2 && crypto.randomUUID) {
|
|
563207
|
-
return crypto.randomUUID();
|
|
563208
|
-
}
|
|
563209
|
-
return _v4(options2, buf, offset2);
|
|
563210
|
-
}
|
|
563211
|
-
function _v4(options2, buf, offset2) {
|
|
563212
|
-
options2 = options2 || {};
|
|
563213
|
-
const rnds = options2.random ?? options2.rng?.() ?? rng();
|
|
563214
|
-
if (rnds.length < 16) {
|
|
563215
|
-
throw new Error("Random bytes length must be >= 16");
|
|
563216
|
-
}
|
|
563217
|
-
rnds[6] = rnds[6] & 15 | 64;
|
|
563218
|
-
rnds[8] = rnds[8] & 63 | 128;
|
|
563219
|
-
if (buf) {
|
|
563220
|
-
offset2 = offset2 || 0;
|
|
563221
|
-
if (offset2 < 0 || offset2 + 16 > buf.length) {
|
|
563222
|
-
throw new RangeError(`UUID byte range ${offset2}:${offset2 + 15} is out of buffer bounds`);
|
|
563223
|
-
}
|
|
563224
|
-
for (let i9 = 0; i9 < 16; ++i9) {
|
|
563225
|
-
buf[offset2 + i9] = rnds[i9];
|
|
563226
|
-
}
|
|
563227
|
-
return buf;
|
|
563228
|
-
}
|
|
563229
|
-
return unsafeStringify(rnds);
|
|
563230
|
-
}
|
|
563231
|
-
var v4_default = v42;
|
|
563232
|
-
|
|
563233
563181
|
// ../generation/ir-generator/lib/dynamic-snippets/version.js
|
|
563234
563182
|
var Version = "1.0.0";
|
|
563235
563183
|
|
|
@@ -563931,7 +563879,11 @@ var DynamicSnippetsConverter = class {
|
|
|
563931
563879
|
}
|
|
563932
563880
|
getEndpointSnippetRequests({ endpoint: endpoint3, location: location2 }) {
|
|
563933
563881
|
const requests3 = [];
|
|
563934
|
-
|
|
563882
|
+
const tagged = [
|
|
563883
|
+
...endpoint3.userSpecifiedExamples.map((example, index3) => ({ example, isUserSpecified: true, index: index3 })),
|
|
563884
|
+
...endpoint3.autogeneratedExamples.map((example, index3) => ({ example, isUserSpecified: false, index: index3 }))
|
|
563885
|
+
];
|
|
563886
|
+
for (const { example, isUserSpecified, index: index3 } of tagged) {
|
|
563935
563887
|
const variableReferencedParams = /* @__PURE__ */ new Set();
|
|
563936
563888
|
[...this.ir.pathParameters, ...endpoint3.pathParameters].forEach((param) => {
|
|
563937
563889
|
if (param.variable != null) {
|
|
@@ -563943,9 +563895,11 @@ var DynamicSnippetsConverter = class {
|
|
|
563943
563895
|
...example.example?.servicePathParameters ?? [],
|
|
563944
563896
|
...example.example?.endpointPathParameters ?? []
|
|
563945
563897
|
].filter((param) => !variableReferencedParams.has(getOriginalName(param.name)));
|
|
563898
|
+
const fallbackId = `${endpoint3.id}-${isUserSpecified ? "user" : "auto"}-${index3}`;
|
|
563946
563899
|
requests3.push({
|
|
563947
|
-
id: example?.example?.id ??
|
|
563900
|
+
id: example?.example?.id ?? fallbackId,
|
|
563948
563901
|
name: example?.example?.name != null ? getOriginalName(example.example.name) : void 0,
|
|
563902
|
+
isUserSpecified,
|
|
563949
563903
|
endpoint: location2,
|
|
563950
563904
|
baseUrl: void 0,
|
|
563951
563905
|
environment: void 0,
|
|
@@ -613708,6 +613662,59 @@ var OpenRPCConverterContext3_1 = class extends AbstractConverterContext {
|
|
|
613708
613662
|
var import_promises39 = require("fs/promises");
|
|
613709
613663
|
init_js_yaml();
|
|
613710
613664
|
|
|
613665
|
+
// ../../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/regex.js
|
|
613666
|
+
var regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
|
|
613667
|
+
|
|
613668
|
+
// ../../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/validate.js
|
|
613669
|
+
function validate2(uuid3) {
|
|
613670
|
+
return typeof uuid3 === "string" && regex_default.test(uuid3);
|
|
613671
|
+
}
|
|
613672
|
+
var validate_default = validate2;
|
|
613673
|
+
|
|
613674
|
+
// ../../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/stringify.js
|
|
613675
|
+
var byteToHex = [];
|
|
613676
|
+
for (let i9 = 0; i9 < 256; ++i9) {
|
|
613677
|
+
byteToHex.push((i9 + 256).toString(16).slice(1));
|
|
613678
|
+
}
|
|
613679
|
+
function unsafeStringify(arr, offset2 = 0) {
|
|
613680
|
+
return (byteToHex[arr[offset2 + 0]] + byteToHex[arr[offset2 + 1]] + byteToHex[arr[offset2 + 2]] + byteToHex[arr[offset2 + 3]] + "-" + byteToHex[arr[offset2 + 4]] + byteToHex[arr[offset2 + 5]] + "-" + byteToHex[arr[offset2 + 6]] + byteToHex[arr[offset2 + 7]] + "-" + byteToHex[arr[offset2 + 8]] + byteToHex[arr[offset2 + 9]] + "-" + byteToHex[arr[offset2 + 10]] + byteToHex[arr[offset2 + 11]] + byteToHex[arr[offset2 + 12]] + byteToHex[arr[offset2 + 13]] + byteToHex[arr[offset2 + 14]] + byteToHex[arr[offset2 + 15]]).toLowerCase();
|
|
613681
|
+
}
|
|
613682
|
+
|
|
613683
|
+
// ../../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/rng.js
|
|
613684
|
+
var rnds8 = new Uint8Array(16);
|
|
613685
|
+
function rng() {
|
|
613686
|
+
return crypto.getRandomValues(rnds8);
|
|
613687
|
+
}
|
|
613688
|
+
|
|
613689
|
+
// ../../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/v4.js
|
|
613690
|
+
function v42(options2, buf, offset2) {
|
|
613691
|
+
if (!buf && !options2 && crypto.randomUUID) {
|
|
613692
|
+
return crypto.randomUUID();
|
|
613693
|
+
}
|
|
613694
|
+
return _v4(options2, buf, offset2);
|
|
613695
|
+
}
|
|
613696
|
+
function _v4(options2, buf, offset2) {
|
|
613697
|
+
options2 = options2 || {};
|
|
613698
|
+
const rnds = options2.random ?? options2.rng?.() ?? rng();
|
|
613699
|
+
if (rnds.length < 16) {
|
|
613700
|
+
throw new Error("Random bytes length must be >= 16");
|
|
613701
|
+
}
|
|
613702
|
+
rnds[6] = rnds[6] & 15 | 64;
|
|
613703
|
+
rnds[8] = rnds[8] & 63 | 128;
|
|
613704
|
+
if (buf) {
|
|
613705
|
+
offset2 = offset2 || 0;
|
|
613706
|
+
if (offset2 < 0 || offset2 + 16 > buf.length) {
|
|
613707
|
+
throw new RangeError(`UUID byte range ${offset2}:${offset2 + 15} is out of buffer bounds`);
|
|
613708
|
+
}
|
|
613709
|
+
for (let i9 = 0; i9 < 16; ++i9) {
|
|
613710
|
+
buf[offset2 + i9] = rnds[i9];
|
|
613711
|
+
}
|
|
613712
|
+
return buf;
|
|
613713
|
+
}
|
|
613714
|
+
return unsafeStringify(rnds);
|
|
613715
|
+
}
|
|
613716
|
+
var v4_default = v42;
|
|
613717
|
+
|
|
613711
613718
|
// ../workspace/lazy-fern-workspace/lib/utils/loadOpenRpc.js
|
|
613712
613719
|
var import_promises32 = require("fs/promises");
|
|
613713
613720
|
init_js_yaml();
|
|
@@ -623471,7 +623478,7 @@ var AccessTokenPosthogManager = class {
|
|
|
623471
623478
|
properties: {
|
|
623472
623479
|
...event,
|
|
623473
623480
|
...event.properties,
|
|
623474
|
-
version: "5.14.
|
|
623481
|
+
version: "5.14.1",
|
|
623475
623482
|
usingAccessToken: true
|
|
623476
623483
|
}
|
|
623477
623484
|
});
|
|
@@ -623525,7 +623532,7 @@ var UserPosthogManager = class {
|
|
|
623525
623532
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
623526
623533
|
event: "CLI",
|
|
623527
623534
|
properties: {
|
|
623528
|
-
version: "5.14.
|
|
623535
|
+
version: "5.14.1",
|
|
623529
623536
|
...event,
|
|
623530
623537
|
...event.properties,
|
|
623531
623538
|
usingAccessToken: false,
|
|
@@ -848513,7 +848520,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
848513
848520
|
var LOGS_FOLDER_NAME = "logs";
|
|
848514
848521
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
848515
848522
|
function getCliSource() {
|
|
848516
|
-
const version7 = "5.14.
|
|
848523
|
+
const version7 = "5.14.1";
|
|
848517
848524
|
return `cli@${version7}`;
|
|
848518
848525
|
}
|
|
848519
848526
|
var DebugLogger = class {
|
|
@@ -861312,7 +861319,7 @@ var LegacyDocsPublisher = class {
|
|
|
861312
861319
|
previewId,
|
|
861313
861320
|
disableTemplates: void 0,
|
|
861314
861321
|
skipUpload,
|
|
861315
|
-
cliVersion: "5.14.
|
|
861322
|
+
cliVersion: "5.14.1",
|
|
861316
861323
|
loginCommand: "fern auth login"
|
|
861317
861324
|
});
|
|
861318
861325
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -935833,7 +935840,7 @@ var CliContext = class _CliContext {
|
|
|
935833
935840
|
if (false) {
|
|
935834
935841
|
this.logger.error("CLI_VERSION is not defined");
|
|
935835
935842
|
}
|
|
935836
|
-
return "5.14.
|
|
935843
|
+
return "5.14.1";
|
|
935837
935844
|
}
|
|
935838
935845
|
getCliName() {
|
|
935839
935846
|
if (false) {
|
package/package.json
CHANGED