@fern-api/fern-api-dev 5.16.1 → 5.17.0-12-g83874124375
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 +101 -42
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -347524,6 +347524,9 @@ var require_AutoVersioningService = __commonJS({
|
|
|
347524
347524
|
var require_VersionUtils = __commonJS({
|
|
347525
347525
|
"../../generator-cli/lib/autoversion/VersionUtils.js"(exports2) {
|
|
347526
347526
|
"use strict";
|
|
347527
|
+
var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
|
|
347528
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
347529
|
+
};
|
|
347527
347530
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
347528
347531
|
exports2.VersionBump = exports2.MAX_RAW_DIFF_BYTES = exports2.MAX_CHUNKS = exports2.MAX_AI_DIFF_BYTES = exports2.MAGIC_VERSION_PYTHON = exports2.MAGIC_VERSION = exports2.AUTO_VERSION = void 0;
|
|
347529
347532
|
exports2.extractLanguageFromGeneratorName = extractLanguageFromGeneratorName2;
|
|
@@ -347533,6 +347536,7 @@ var require_VersionUtils = __commonJS({
|
|
|
347533
347536
|
exports2.isValidSemver = isValidSemver;
|
|
347534
347537
|
exports2.incrementVersion = incrementVersion;
|
|
347535
347538
|
exports2.extractPreviousVersionFromDiffLine = extractPreviousVersionFromDiffLine;
|
|
347539
|
+
var semver_1 = __importDefault2(require_semver2());
|
|
347536
347540
|
var AutoVersioningService_js_1 = require_AutoVersioningService();
|
|
347537
347541
|
function extractLanguageFromGeneratorName2(generatorName) {
|
|
347538
347542
|
const name2 = generatorName.toLowerCase();
|
|
@@ -347614,37 +347618,28 @@ var require_VersionUtils = __commonJS({
|
|
|
347614
347618
|
if (!matcher) {
|
|
347615
347619
|
throw new AutoVersioningService_js_1.AutoVersioningException("Invalid semantic version format: " + currentVersion);
|
|
347616
347620
|
}
|
|
347617
|
-
const prefix2 = matcher[1]
|
|
347618
|
-
|
|
347619
|
-
let minor = parseInt(matcher[3] ?? "0", 10);
|
|
347620
|
-
let patch5 = parseInt(matcher[4] ?? "0", 10);
|
|
347621
|
+
const prefix2 = matcher[1] ?? "";
|
|
347622
|
+
const versionWithoutPrefix = currentVersion.slice(prefix2.length);
|
|
347621
347623
|
const preRelease = matcher[5];
|
|
347622
|
-
|
|
347623
|
-
|
|
347624
|
-
|
|
347625
|
-
|
|
347626
|
-
|
|
347627
|
-
|
|
347624
|
+
if (versionBump === VersionBump3.NO_CHANGE) {
|
|
347625
|
+
return currentVersion;
|
|
347626
|
+
}
|
|
347627
|
+
let bumped;
|
|
347628
|
+
if (preRelease != null) {
|
|
347629
|
+
bumped = semver_1.default.inc(versionWithoutPrefix, "prerelease");
|
|
347630
|
+
} else if (versionBump === VersionBump3.MAJOR) {
|
|
347631
|
+
bumped = semver_1.default.inc(versionWithoutPrefix, "major");
|
|
347628
347632
|
} else if (versionBump === VersionBump3.MINOR) {
|
|
347629
|
-
minor
|
|
347630
|
-
patch5 = 0;
|
|
347633
|
+
bumped = semver_1.default.inc(versionWithoutPrefix, "minor");
|
|
347631
347634
|
} else if (versionBump === VersionBump3.PATCH) {
|
|
347632
|
-
|
|
347633
|
-
} else if (versionBump === VersionBump3.NO_CHANGE) {
|
|
347634
|
-
preserveMetadata = true;
|
|
347635
|
+
bumped = semver_1.default.inc(versionWithoutPrefix, "patch");
|
|
347635
347636
|
} else {
|
|
347636
347637
|
throw new AutoVersioningService_js_1.AutoVersioningException("Unknown version bump type: " + versionBump);
|
|
347637
347638
|
}
|
|
347638
|
-
|
|
347639
|
-
|
|
347640
|
-
if (preRelease) {
|
|
347641
|
-
newVersion += `-${preRelease}`;
|
|
347642
|
-
}
|
|
347643
|
-
if (buildMetadata) {
|
|
347644
|
-
newVersion += `+${buildMetadata}`;
|
|
347645
|
-
}
|
|
347639
|
+
if (bumped === null) {
|
|
347640
|
+
throw new AutoVersioningService_js_1.AutoVersioningException("Failed to increment version: " + currentVersion);
|
|
347646
347641
|
}
|
|
347647
|
-
return
|
|
347642
|
+
return `${prefix2}${bumped}`;
|
|
347648
347643
|
}
|
|
347649
347644
|
function extractPreviousVersionFromDiffLine(lineWithMagicVersion) {
|
|
347650
347645
|
const prevVersionPattern = /[-].*?([v]?\d+\.\d+\.\d+(?:-[\w.-]+)?(?:\+[\w.-]+)?)/;
|
|
@@ -494202,6 +494197,18 @@ function getOrCreateFernRunId() {
|
|
|
494202
494197
|
function getFernRunId() {
|
|
494203
494198
|
return process.env[FERN_RUN_ID_ENV_VAR];
|
|
494204
494199
|
}
|
|
494200
|
+
function getRunIdProperties() {
|
|
494201
|
+
const properties7 = {};
|
|
494202
|
+
const fernRunId = getFernRunId();
|
|
494203
|
+
if (fernRunId != null && fernRunId.length > 0) {
|
|
494204
|
+
properties7.fern_run_id = fernRunId;
|
|
494205
|
+
}
|
|
494206
|
+
const githubRunId = process.env.GITHUB_RUN_ID;
|
|
494207
|
+
if (githubRunId != null && githubRunId.length > 0) {
|
|
494208
|
+
properties7.github_run_id = githubRunId;
|
|
494209
|
+
}
|
|
494210
|
+
return properties7;
|
|
494211
|
+
}
|
|
494205
494212
|
|
|
494206
494213
|
// ../../../node_modules/.pnpm/@sentry+node@10.49.0/node_modules/@sentry/node/build/esm/integrations/http.js
|
|
494207
494214
|
init_esm();
|
|
@@ -525229,6 +525236,7 @@ __export(schemas_exports3, {
|
|
|
525229
525236
|
date: () => date2,
|
|
525230
525237
|
discriminant: () => discriminant2,
|
|
525231
525238
|
enum_: () => enum_2,
|
|
525239
|
+
forwardCompatibleEnum_: () => forwardCompatibleEnum_,
|
|
525232
525240
|
getObjectLikeUtils: () => getObjectLikeUtils2,
|
|
525233
525241
|
getObjectUtils: () => getObjectUtils2,
|
|
525234
525242
|
getSchemaUtils: () => getSchemaUtils2,
|
|
@@ -525241,6 +525249,7 @@ __export(schemas_exports3, {
|
|
|
525241
525249
|
object: () => object2,
|
|
525242
525250
|
objectWithoutOptionalProperties: () => objectWithoutOptionalProperties2,
|
|
525243
525251
|
optional: () => optional2,
|
|
525252
|
+
partialRecord: () => partialRecord,
|
|
525244
525253
|
property: () => property3,
|
|
525245
525254
|
record: () => record2,
|
|
525246
525255
|
set: () => set2,
|
|
@@ -525339,22 +525348,24 @@ function stringifyValidationError2(error50) {
|
|
|
525339
525348
|
}
|
|
525340
525349
|
|
|
525341
525350
|
// ../../ir-sdk/lib/sdk/core/schemas/builders/schema-utils/JsonError.js
|
|
525342
|
-
var JsonError2 = class
|
|
525351
|
+
var JsonError2 = class extends Error {
|
|
525343
525352
|
errors;
|
|
525344
525353
|
constructor(errors4) {
|
|
525345
525354
|
super(errors4.map(stringifyValidationError2).join("; "));
|
|
525346
525355
|
this.errors = errors4;
|
|
525347
|
-
Object.setPrototypeOf(this,
|
|
525356
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
525357
|
+
this.name = this.constructor.name;
|
|
525348
525358
|
}
|
|
525349
525359
|
};
|
|
525350
525360
|
|
|
525351
525361
|
// ../../ir-sdk/lib/sdk/core/schemas/builders/schema-utils/ParseError.js
|
|
525352
|
-
var ParseError2 = class
|
|
525362
|
+
var ParseError2 = class extends Error {
|
|
525353
525363
|
errors;
|
|
525354
525364
|
constructor(errors4) {
|
|
525355
525365
|
super(errors4.map(stringifyValidationError2).join("; "));
|
|
525356
525366
|
this.errors = errors4;
|
|
525357
|
-
Object.setPrototypeOf(this,
|
|
525367
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
525368
|
+
this.name = this.constructor.name;
|
|
525358
525369
|
}
|
|
525359
525370
|
};
|
|
525360
525371
|
|
|
@@ -525661,6 +525672,12 @@ function enum_2(values2) {
|
|
|
525661
525672
|
});
|
|
525662
525673
|
return schemaCreator();
|
|
525663
525674
|
}
|
|
525675
|
+
function forwardCompatibleEnum_(values2) {
|
|
525676
|
+
return enum_2(values2).transform({
|
|
525677
|
+
transform: (val) => val,
|
|
525678
|
+
untransform: (val) => val
|
|
525679
|
+
});
|
|
525680
|
+
}
|
|
525664
525681
|
|
|
525665
525682
|
// ../../ir-sdk/lib/sdk/core/schemas/builders/lazy/lazy.js
|
|
525666
525683
|
function lazy2(getter) {
|
|
@@ -526380,6 +526397,45 @@ function record2(keySchema, valueSchema) {
|
|
|
526380
526397
|
...getSchemaUtils2(baseSchema)
|
|
526381
526398
|
};
|
|
526382
526399
|
}
|
|
526400
|
+
function partialRecord(keySchema, valueSchema) {
|
|
526401
|
+
const baseSchema = {
|
|
526402
|
+
parse: (raw, opts) => {
|
|
526403
|
+
return validateAndTransformRecord2({
|
|
526404
|
+
value: raw,
|
|
526405
|
+
isKeyNumeric: keySchema.getType() === SchemaType2.NUMBER,
|
|
526406
|
+
transformKey: (key2) => keySchema.parse(key2, {
|
|
526407
|
+
...opts,
|
|
526408
|
+
breadcrumbsPrefix: [...opts?.breadcrumbsPrefix ?? [], `${key2} (key)`]
|
|
526409
|
+
}),
|
|
526410
|
+
transformValue: (value2, key2) => valueSchema.parse(value2, {
|
|
526411
|
+
...opts,
|
|
526412
|
+
breadcrumbsPrefix: [...opts?.breadcrumbsPrefix ?? [], `${key2}`]
|
|
526413
|
+
}),
|
|
526414
|
+
breadcrumbsPrefix: opts?.breadcrumbsPrefix
|
|
526415
|
+
});
|
|
526416
|
+
},
|
|
526417
|
+
json: (parsed, opts) => {
|
|
526418
|
+
return validateAndTransformRecord2({
|
|
526419
|
+
value: parsed,
|
|
526420
|
+
isKeyNumeric: keySchema.getType() === SchemaType2.NUMBER,
|
|
526421
|
+
transformKey: (key2) => keySchema.json(key2, {
|
|
526422
|
+
...opts,
|
|
526423
|
+
breadcrumbsPrefix: [...opts?.breadcrumbsPrefix ?? [], `${key2} (key)`]
|
|
526424
|
+
}),
|
|
526425
|
+
transformValue: (value2, key2) => valueSchema.json(value2, {
|
|
526426
|
+
...opts,
|
|
526427
|
+
breadcrumbsPrefix: [...opts?.breadcrumbsPrefix ?? [], `${key2}`]
|
|
526428
|
+
}),
|
|
526429
|
+
breadcrumbsPrefix: opts?.breadcrumbsPrefix
|
|
526430
|
+
});
|
|
526431
|
+
},
|
|
526432
|
+
getType: () => SchemaType2.RECORD
|
|
526433
|
+
};
|
|
526434
|
+
return {
|
|
526435
|
+
...maybeSkipValidation2(baseSchema),
|
|
526436
|
+
...getSchemaUtils2(baseSchema)
|
|
526437
|
+
};
|
|
526438
|
+
}
|
|
526383
526439
|
function validateAndTransformRecord2({ value: value2, isKeyNumeric, transformKey, transformValue, breadcrumbsPrefix = [] }) {
|
|
526384
526440
|
if (!isPlainObject6(value2)) {
|
|
526385
526441
|
return {
|
|
@@ -535128,7 +535184,7 @@ __export(external_exports, {
|
|
|
535128
535184
|
overwrite: () => _overwrite,
|
|
535129
535185
|
parse: () => parse7,
|
|
535130
535186
|
parseAsync: () => parseAsync2,
|
|
535131
|
-
partialRecord: () =>
|
|
535187
|
+
partialRecord: () => partialRecord2,
|
|
535132
535188
|
pipe: () => pipe,
|
|
535133
535189
|
positive: () => _positive,
|
|
535134
535190
|
prefault: () => prefault,
|
|
@@ -546942,7 +546998,7 @@ __export(schemas_exports5, {
|
|
|
546942
546998
|
number: () => number4,
|
|
546943
546999
|
object: () => object3,
|
|
546944
547000
|
optional: () => optional3,
|
|
546945
|
-
partialRecord: () =>
|
|
547001
|
+
partialRecord: () => partialRecord2,
|
|
546946
547002
|
pipe: () => pipe,
|
|
546947
547003
|
prefault: () => prefault,
|
|
546948
547004
|
preprocess: () => preprocess,
|
|
@@ -547742,7 +547798,7 @@ function record3(keyType, valueType, params2) {
|
|
|
547742
547798
|
...util_exports.normalizeParams(params2)
|
|
547743
547799
|
});
|
|
547744
547800
|
}
|
|
547745
|
-
function
|
|
547801
|
+
function partialRecord2(keyType, valueType, params2) {
|
|
547746
547802
|
const k5 = clone(keyType);
|
|
547747
547803
|
k5._zod.values = void 0;
|
|
547748
547804
|
return new ZodRecord({
|
|
@@ -550488,7 +550544,7 @@ __export(schemas_exports6, {
|
|
|
550488
550544
|
object: () => object4,
|
|
550489
550545
|
objectWithoutOptionalProperties: () => objectWithoutOptionalProperties3,
|
|
550490
550546
|
optional: () => optional4,
|
|
550491
|
-
partialRecord: () =>
|
|
550547
|
+
partialRecord: () => partialRecord3,
|
|
550492
550548
|
property: () => property4,
|
|
550493
550549
|
record: () => record4,
|
|
550494
550550
|
set: () => set6,
|
|
@@ -551630,7 +551686,7 @@ function record4(keySchema, valueSchema) {
|
|
|
551630
551686
|
...getSchemaUtils3(baseSchema)
|
|
551631
551687
|
};
|
|
551632
551688
|
}
|
|
551633
|
-
function
|
|
551689
|
+
function partialRecord3(keySchema, valueSchema) {
|
|
551634
551690
|
const baseSchema = {
|
|
551635
551691
|
parse: (raw, opts) => {
|
|
551636
551692
|
return validateAndTransformRecord3({
|
|
@@ -660824,8 +660880,9 @@ var AccessTokenPosthogManager = class {
|
|
|
660824
660880
|
properties: {
|
|
660825
660881
|
...event,
|
|
660826
660882
|
...event.properties,
|
|
660827
|
-
version: "5.
|
|
660828
|
-
usingAccessToken: true
|
|
660883
|
+
version: "5.17.0-12-g83874124375",
|
|
660884
|
+
usingAccessToken: true,
|
|
660885
|
+
...getRunIdProperties()
|
|
660829
660886
|
}
|
|
660830
660887
|
});
|
|
660831
660888
|
}
|
|
@@ -660878,11 +660935,12 @@ var UserPosthogManager = class {
|
|
|
660878
660935
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
660879
660936
|
event: "CLI",
|
|
660880
660937
|
properties: {
|
|
660881
|
-
version: "5.
|
|
660938
|
+
version: "5.17.0-12-g83874124375",
|
|
660882
660939
|
...event,
|
|
660883
660940
|
...event.properties,
|
|
660884
660941
|
usingAccessToken: false,
|
|
660885
|
-
...userEmail != null ? { userEmail } : {}
|
|
660942
|
+
...userEmail != null ? { userEmail } : {},
|
|
660943
|
+
...getRunIdProperties()
|
|
660886
660944
|
}
|
|
660887
660945
|
});
|
|
660888
660946
|
}
|
|
@@ -664744,7 +664802,8 @@ var TelemetryClient = class _TelemetryClient {
|
|
|
664744
664802
|
ci: import_is_ci2.default,
|
|
664745
664803
|
os: os10.platform(),
|
|
664746
664804
|
tty: isTTY,
|
|
664747
|
-
usingAccessToken: process.env.FERN_TOKEN != null
|
|
664805
|
+
usingAccessToken: process.env.FERN_TOKEN != null,
|
|
664806
|
+
...getRunIdProperties()
|
|
664748
664807
|
};
|
|
664749
664808
|
this.posthog = apiKey != null && apiKey.length > 0 && isTelemetryEnabled ? new PostHog(apiKey) : void 0;
|
|
664750
664809
|
const sentryDsn = "https://84f58b5e457f06999d92f11ce4b79158@o4509504076185600.ingest.us.sentry.io/4511021546602496";
|
|
@@ -851859,7 +851918,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
851859
851918
|
var LOGS_FOLDER_NAME = "logs";
|
|
851860
851919
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
851861
851920
|
function getCliSource() {
|
|
851862
|
-
const version7 = "5.
|
|
851921
|
+
const version7 = "5.17.0-12-g83874124375";
|
|
851863
851922
|
return `cli@${version7}`;
|
|
851864
851923
|
}
|
|
851865
851924
|
var DebugLogger = class {
|
|
@@ -863508,7 +863567,7 @@ function sanitizeRelativePathForS3(relativeFilePath) {
|
|
|
863508
863567
|
return relativeFilePath.replace(/\.\.\//g, "_dot_dot_/");
|
|
863509
863568
|
}
|
|
863510
863569
|
async function publishDocs({ token, organization, docsWorkspace, domain: domain3, customDomains, apiWorkspaces, ossWorkspaces, context: context3, preview, previewId, editThisPage, disableTemplates = false, skipUpload = false, withAiExamples = true, excludeApis = false, targetAudiences, docsUrl, cliVersion, ciSource, deployerAuthor, loginCommand = "fern login", multiSource = false }) {
|
|
863511
|
-
const fdrOrigin = "https://registry-dev2.buildwithfern.com";
|
|
863570
|
+
const fdrOrigin = process.env.FERN_FDR_ORIGIN ?? process.env.OVERRIDE_FDR_ORIGIN ?? "https://registry-dev2.buildwithfern.com" ?? "https://registry.buildwithfern.com";
|
|
863512
863571
|
const isAirGapped = await detectAirGappedMode(`${fdrOrigin}/health`, context3.logger);
|
|
863513
863572
|
if (isAirGapped) {
|
|
863514
863573
|
context3.logger.debug("Detected air-gapped environment - skipping external FDR service calls");
|
|
@@ -864668,7 +864727,7 @@ var LegacyDocsPublisher = class {
|
|
|
864668
864727
|
previewId,
|
|
864669
864728
|
disableTemplates: void 0,
|
|
864670
864729
|
skipUpload,
|
|
864671
|
-
cliVersion: "5.
|
|
864730
|
+
cliVersion: "5.17.0-12-g83874124375",
|
|
864672
864731
|
loginCommand: "fern auth login"
|
|
864673
864732
|
});
|
|
864674
864733
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -939246,7 +939305,7 @@ var CliContext = class _CliContext {
|
|
|
939246
939305
|
if (false) {
|
|
939247
939306
|
this.logger.error("CLI_VERSION is not defined");
|
|
939248
939307
|
}
|
|
939249
|
-
return "5.
|
|
939308
|
+
return "5.17.0-12-g83874124375";
|
|
939250
939309
|
}
|
|
939251
939310
|
getCliName() {
|
|
939252
939311
|
if (false) {
|
package/package.json
CHANGED