@fern-api/fern-api-dev 5.16.1-5-gf16e7033c57 → 5.17.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/cli.cjs +81 -17
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -494197,6 +494197,18 @@ function getOrCreateFernRunId() {
|
|
|
494197
494197
|
function getFernRunId() {
|
|
494198
494198
|
return process.env[FERN_RUN_ID_ENV_VAR];
|
|
494199
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
|
+
}
|
|
494200
494212
|
|
|
494201
494213
|
// ../../../node_modules/.pnpm/@sentry+node@10.49.0/node_modules/@sentry/node/build/esm/integrations/http.js
|
|
494202
494214
|
init_esm();
|
|
@@ -525224,6 +525236,7 @@ __export(schemas_exports3, {
|
|
|
525224
525236
|
date: () => date2,
|
|
525225
525237
|
discriminant: () => discriminant2,
|
|
525226
525238
|
enum_: () => enum_2,
|
|
525239
|
+
forwardCompatibleEnum_: () => forwardCompatibleEnum_,
|
|
525227
525240
|
getObjectLikeUtils: () => getObjectLikeUtils2,
|
|
525228
525241
|
getObjectUtils: () => getObjectUtils2,
|
|
525229
525242
|
getSchemaUtils: () => getSchemaUtils2,
|
|
@@ -525236,6 +525249,7 @@ __export(schemas_exports3, {
|
|
|
525236
525249
|
object: () => object2,
|
|
525237
525250
|
objectWithoutOptionalProperties: () => objectWithoutOptionalProperties2,
|
|
525238
525251
|
optional: () => optional2,
|
|
525252
|
+
partialRecord: () => partialRecord,
|
|
525239
525253
|
property: () => property3,
|
|
525240
525254
|
record: () => record2,
|
|
525241
525255
|
set: () => set2,
|
|
@@ -525334,22 +525348,24 @@ function stringifyValidationError2(error50) {
|
|
|
525334
525348
|
}
|
|
525335
525349
|
|
|
525336
525350
|
// ../../ir-sdk/lib/sdk/core/schemas/builders/schema-utils/JsonError.js
|
|
525337
|
-
var JsonError2 = class
|
|
525351
|
+
var JsonError2 = class extends Error {
|
|
525338
525352
|
errors;
|
|
525339
525353
|
constructor(errors4) {
|
|
525340
525354
|
super(errors4.map(stringifyValidationError2).join("; "));
|
|
525341
525355
|
this.errors = errors4;
|
|
525342
|
-
Object.setPrototypeOf(this,
|
|
525356
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
525357
|
+
this.name = this.constructor.name;
|
|
525343
525358
|
}
|
|
525344
525359
|
};
|
|
525345
525360
|
|
|
525346
525361
|
// ../../ir-sdk/lib/sdk/core/schemas/builders/schema-utils/ParseError.js
|
|
525347
|
-
var ParseError2 = class
|
|
525362
|
+
var ParseError2 = class extends Error {
|
|
525348
525363
|
errors;
|
|
525349
525364
|
constructor(errors4) {
|
|
525350
525365
|
super(errors4.map(stringifyValidationError2).join("; "));
|
|
525351
525366
|
this.errors = errors4;
|
|
525352
|
-
Object.setPrototypeOf(this,
|
|
525367
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
525368
|
+
this.name = this.constructor.name;
|
|
525353
525369
|
}
|
|
525354
525370
|
};
|
|
525355
525371
|
|
|
@@ -525656,6 +525672,12 @@ function enum_2(values2) {
|
|
|
525656
525672
|
});
|
|
525657
525673
|
return schemaCreator();
|
|
525658
525674
|
}
|
|
525675
|
+
function forwardCompatibleEnum_(values2) {
|
|
525676
|
+
return enum_2(values2).transform({
|
|
525677
|
+
transform: (val) => val,
|
|
525678
|
+
untransform: (val) => val
|
|
525679
|
+
});
|
|
525680
|
+
}
|
|
525659
525681
|
|
|
525660
525682
|
// ../../ir-sdk/lib/sdk/core/schemas/builders/lazy/lazy.js
|
|
525661
525683
|
function lazy2(getter) {
|
|
@@ -526375,6 +526397,45 @@ function record2(keySchema, valueSchema) {
|
|
|
526375
526397
|
...getSchemaUtils2(baseSchema)
|
|
526376
526398
|
};
|
|
526377
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
|
+
}
|
|
526378
526439
|
function validateAndTransformRecord2({ value: value2, isKeyNumeric, transformKey, transformValue, breadcrumbsPrefix = [] }) {
|
|
526379
526440
|
if (!isPlainObject6(value2)) {
|
|
526380
526441
|
return {
|
|
@@ -535123,7 +535184,7 @@ __export(external_exports, {
|
|
|
535123
535184
|
overwrite: () => _overwrite,
|
|
535124
535185
|
parse: () => parse7,
|
|
535125
535186
|
parseAsync: () => parseAsync2,
|
|
535126
|
-
partialRecord: () =>
|
|
535187
|
+
partialRecord: () => partialRecord2,
|
|
535127
535188
|
pipe: () => pipe,
|
|
535128
535189
|
positive: () => _positive,
|
|
535129
535190
|
prefault: () => prefault,
|
|
@@ -546937,7 +546998,7 @@ __export(schemas_exports5, {
|
|
|
546937
546998
|
number: () => number4,
|
|
546938
546999
|
object: () => object3,
|
|
546939
547000
|
optional: () => optional3,
|
|
546940
|
-
partialRecord: () =>
|
|
547001
|
+
partialRecord: () => partialRecord2,
|
|
546941
547002
|
pipe: () => pipe,
|
|
546942
547003
|
prefault: () => prefault,
|
|
546943
547004
|
preprocess: () => preprocess,
|
|
@@ -547737,7 +547798,7 @@ function record3(keyType, valueType, params2) {
|
|
|
547737
547798
|
...util_exports.normalizeParams(params2)
|
|
547738
547799
|
});
|
|
547739
547800
|
}
|
|
547740
|
-
function
|
|
547801
|
+
function partialRecord2(keyType, valueType, params2) {
|
|
547741
547802
|
const k5 = clone(keyType);
|
|
547742
547803
|
k5._zod.values = void 0;
|
|
547743
547804
|
return new ZodRecord({
|
|
@@ -550483,7 +550544,7 @@ __export(schemas_exports6, {
|
|
|
550483
550544
|
object: () => object4,
|
|
550484
550545
|
objectWithoutOptionalProperties: () => objectWithoutOptionalProperties3,
|
|
550485
550546
|
optional: () => optional4,
|
|
550486
|
-
partialRecord: () =>
|
|
550547
|
+
partialRecord: () => partialRecord3,
|
|
550487
550548
|
property: () => property4,
|
|
550488
550549
|
record: () => record4,
|
|
550489
550550
|
set: () => set6,
|
|
@@ -551625,7 +551686,7 @@ function record4(keySchema, valueSchema) {
|
|
|
551625
551686
|
...getSchemaUtils3(baseSchema)
|
|
551626
551687
|
};
|
|
551627
551688
|
}
|
|
551628
|
-
function
|
|
551689
|
+
function partialRecord3(keySchema, valueSchema) {
|
|
551629
551690
|
const baseSchema = {
|
|
551630
551691
|
parse: (raw, opts) => {
|
|
551631
551692
|
return validateAndTransformRecord3({
|
|
@@ -660819,8 +660880,9 @@ var AccessTokenPosthogManager = class {
|
|
|
660819
660880
|
properties: {
|
|
660820
660881
|
...event,
|
|
660821
660882
|
...event.properties,
|
|
660822
|
-
version: "5.
|
|
660823
|
-
usingAccessToken: true
|
|
660883
|
+
version: "5.17.0",
|
|
660884
|
+
usingAccessToken: true,
|
|
660885
|
+
...getRunIdProperties()
|
|
660824
660886
|
}
|
|
660825
660887
|
});
|
|
660826
660888
|
}
|
|
@@ -660873,11 +660935,12 @@ var UserPosthogManager = class {
|
|
|
660873
660935
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
660874
660936
|
event: "CLI",
|
|
660875
660937
|
properties: {
|
|
660876
|
-
version: "5.
|
|
660938
|
+
version: "5.17.0",
|
|
660877
660939
|
...event,
|
|
660878
660940
|
...event.properties,
|
|
660879
660941
|
usingAccessToken: false,
|
|
660880
|
-
...userEmail != null ? { userEmail } : {}
|
|
660942
|
+
...userEmail != null ? { userEmail } : {},
|
|
660943
|
+
...getRunIdProperties()
|
|
660881
660944
|
}
|
|
660882
660945
|
});
|
|
660883
660946
|
}
|
|
@@ -664739,7 +664802,8 @@ var TelemetryClient = class _TelemetryClient {
|
|
|
664739
664802
|
ci: import_is_ci2.default,
|
|
664740
664803
|
os: os10.platform(),
|
|
664741
664804
|
tty: isTTY,
|
|
664742
|
-
usingAccessToken: process.env.FERN_TOKEN != null
|
|
664805
|
+
usingAccessToken: process.env.FERN_TOKEN != null,
|
|
664806
|
+
...getRunIdProperties()
|
|
664743
664807
|
};
|
|
664744
664808
|
this.posthog = apiKey != null && apiKey.length > 0 && isTelemetryEnabled ? new PostHog(apiKey) : void 0;
|
|
664745
664809
|
const sentryDsn = "https://84f58b5e457f06999d92f11ce4b79158@o4509504076185600.ingest.us.sentry.io/4511021546602496";
|
|
@@ -851854,7 +851918,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
851854
851918
|
var LOGS_FOLDER_NAME = "logs";
|
|
851855
851919
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
851856
851920
|
function getCliSource() {
|
|
851857
|
-
const version7 = "5.
|
|
851921
|
+
const version7 = "5.17.0";
|
|
851858
851922
|
return `cli@${version7}`;
|
|
851859
851923
|
}
|
|
851860
851924
|
var DebugLogger = class {
|
|
@@ -864663,7 +864727,7 @@ var LegacyDocsPublisher = class {
|
|
|
864663
864727
|
previewId,
|
|
864664
864728
|
disableTemplates: void 0,
|
|
864665
864729
|
skipUpload,
|
|
864666
|
-
cliVersion: "5.
|
|
864730
|
+
cliVersion: "5.17.0",
|
|
864667
864731
|
loginCommand: "fern auth login"
|
|
864668
864732
|
});
|
|
864669
864733
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -939241,7 +939305,7 @@ var CliContext = class _CliContext {
|
|
|
939241
939305
|
if (false) {
|
|
939242
939306
|
this.logger.error("CLI_VERSION is not defined");
|
|
939243
939307
|
}
|
|
939244
|
-
return "5.
|
|
939308
|
+
return "5.17.0";
|
|
939245
939309
|
}
|
|
939246
939310
|
getCliName() {
|
|
939247
939311
|
if (false) {
|
package/package.json
CHANGED