@fern-api/fern-api-dev 5.50.6 → 5.51.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.
Files changed (2) hide show
  1. package/cli.cjs +19 -8
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -81214,6 +81214,7 @@ var init_IntermediateRepresentation2 = __esm({
81214
81214
  IntermediateRepresentation = schemas_exports3.objectWithoutOptionalProperties({
81215
81215
  fdrApiDefinitionId: schemas_exports3.string().optional(),
81216
81216
  apiVersion: ApiVersionScheme2.optional(),
81217
+ specVersion: schemas_exports3.string().optional(),
81217
81218
  apiName: NameOrString,
81218
81219
  apiDisplayName: schemas_exports3.string().optional(),
81219
81220
  apiDocs: schemas_exports3.string().optional(),
@@ -139019,6 +139020,7 @@ var init_OpenApiIntermediateRepresentation2 = __esm({
139019
139020
  init_WebsocketChannel2();
139020
139021
  OpenApiIntermediateRepresentation = schemas_exports9.objectWithoutOptionalProperties({
139021
139022
  apiVersion: schemas_exports9.unknown().optional(),
139023
+ specVersion: schemas_exports9.string().optional(),
139022
139024
  title: schemas_exports9.string().optional(),
139023
139025
  description: schemas_exports9.string().optional(),
139024
139026
  basePath: schemas_exports9.string().optional(),
@@ -149711,7 +149713,8 @@ var init_FernDefinitionConverter = __esm({
149711
149713
  }
149712
149714
  },
149713
149715
  packageMarkers: {},
149714
- importedDefinitions: {}
149716
+ importedDefinitions: {},
149717
+ specVersion: ir3.specVersion ?? void 0
149715
149718
  };
149716
149719
  }
149717
149720
  };
@@ -166399,6 +166402,7 @@ function generateIr({ openApi, taskContext, options: options2, source: source2,
166399
166402
  context: context3,
166400
166403
  document: openApi
166401
166404
  }),
166405
+ specVersion: openApi.info.version != null && openApi.info.version.length > 0 ? openApi.info.version : void 0,
166402
166406
  basePath: (() => {
166403
166407
  const parsed = getFernBasePath(openApi);
166404
166408
  return parsed?.basePath;
@@ -166633,6 +166637,7 @@ var init_generateIr = __esm({
166633
166637
  function parse8({ context: context3, documents, options: options2 }) {
166634
166638
  let ir3 = {
166635
166639
  apiVersion: void 0,
166640
+ specVersion: void 0,
166636
166641
  title: void 0,
166637
166642
  description: void 0,
166638
166643
  basePath: void 0,
@@ -166849,6 +166854,7 @@ function merge6(ir1, ir22, options2) {
166849
166854
  if (!shouldGroupEnvironments) {
166850
166855
  return {
166851
166856
  apiVersion: ir1.apiVersion ?? ir22.apiVersion,
166857
+ specVersion: ir1.specVersion ?? ir22.specVersion,
166852
166858
  title: ir1.title ?? ir22.title,
166853
166859
  description: ir1.description ?? ir22.description,
166854
166860
  basePath: ir1.basePath ?? ir22.basePath,
@@ -166980,6 +166986,7 @@ function merge6(ir1, ir22, options2) {
166980
166986
  mergedEndpoints = [...ir1EndpointsWithApiTag, ...ir2EndpointsWithApiTag];
166981
166987
  return {
166982
166988
  apiVersion: ir1.apiVersion ?? ir22.apiVersion,
166989
+ specVersion: ir1.specVersion ?? ir22.specVersion,
166983
166990
  title: ir1.title ?? ir22.title,
166984
166991
  description: ir1.description ?? ir22.description,
166985
166992
  basePath: ir1.basePath ?? ir22.basePath,
@@ -167033,6 +167040,7 @@ function merge6(ir1, ir22, options2) {
167033
167040
  }
167034
167041
  return {
167035
167042
  apiVersion: ir1.apiVersion ?? ir22.apiVersion,
167043
+ specVersion: ir1.specVersion ?? ir22.specVersion,
167036
167044
  title: ir1.title ?? ir22.title,
167037
167045
  description: ir1.description ?? ir22.description,
167038
167046
  basePath: ir1.basePath ?? ir22.basePath,
@@ -266375,6 +266383,7 @@ function mergeIntermediateRepresentation(ir1, ir22, casingsGenerator) {
266375
266383
  apiName: ir1.apiName,
266376
266384
  basePath: ir1.basePath,
266377
266385
  selfHosted: ir1.selfHosted && ir22.selfHosted,
266386
+ specVersion: ir1.specVersion ?? ir22.specVersion,
266378
266387
  apiDisplayName: ir1.apiDisplayName ?? ir22.apiDisplayName,
266379
266388
  apiDocs: ir1.apiDocs ?? ir22.apiDocs,
266380
266389
  auth: {
@@ -275614,6 +275623,7 @@ function generateIntermediateRepresentation({ workspace, generationLanguage, key
275614
275623
  file: rootApiFileContext,
275615
275624
  rawApiFileSchema: workspace.definition.rootApiFile.contents
275616
275625
  }),
275626
+ specVersion: workspace.definition.specVersion,
275617
275627
  apiName: casingsGenerator.generateName(workspace.definition.rootApiFile.contents.name),
275618
275628
  apiDisplayName: workspace.definition.rootApiFile.contents["display-name"],
275619
275629
  apiDocs: formatDocs(workspace.definition.rootApiFile.contents.docs),
@@ -341170,7 +341180,8 @@ var init_AbstractSpecConverter = __esm({
341170
341180
  audiences: void 0,
341171
341181
  generationMetadata: void 0,
341172
341182
  apiPlayground: void 0,
341173
- casingsConfig: void 0
341183
+ casingsConfig: void 0,
341184
+ specVersion: void 0
341174
341185
  };
341175
341186
  }
341176
341187
  removeXFernIgnores({ document: document4, breadcrumbs = [] }) {
@@ -686370,7 +686381,7 @@ var AccessTokenPosthogManager = class {
686370
686381
  properties: {
686371
686382
  ...event,
686372
686383
  ...event.properties,
686373
- version: "5.50.6",
686384
+ version: "5.51.0",
686374
686385
  usingAccessToken: true,
686375
686386
  ...getRunIdProperties()
686376
686387
  }
@@ -686436,7 +686447,7 @@ var UserPosthogManager = class {
686436
686447
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
686437
686448
  event: "CLI",
686438
686449
  properties: {
686439
- version: "5.50.6",
686450
+ version: "5.51.0",
686440
686451
  ...event,
686441
686452
  ...event.properties,
686442
686453
  usingAccessToken: false,
@@ -867498,7 +867509,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
867498
867509
  var LOGS_FOLDER_NAME = "logs";
867499
867510
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
867500
867511
  function getCliSource() {
867501
- const version7 = "5.50.6";
867512
+ const version7 = "5.51.0";
867502
867513
  return `cli@${version7}`;
867503
867514
  }
867504
867515
  var DebugLogger = class {
@@ -899686,7 +899697,7 @@ var LegacyDocsPublisher = class {
899686
899697
  previewId,
899687
899698
  disableTemplates: void 0,
899688
899699
  skipUpload,
899689
- cliVersion: "5.50.6",
899700
+ cliVersion: "5.51.0",
899690
899701
  loginCommand: "fern auth login"
899691
899702
  });
899692
899703
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -965821,7 +965832,7 @@ function getAutomationContextFromEnv() {
965821
965832
  config_branch: process.env.FERN_CONFIG_BRANCH,
965822
965833
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
965823
965834
  trigger: process.env.GITHUB_EVENT_NAME,
965824
- cli_version: "5.50.6"
965835
+ cli_version: "5.51.0"
965825
965836
  };
965826
965837
  }
965827
965838
  function isAutomationMode() {
@@ -966653,7 +966664,7 @@ var CliContext = class _CliContext {
966653
966664
  if (false) {
966654
966665
  this.logger.error("CLI_VERSION is not defined");
966655
966666
  }
966656
- return "5.50.6";
966667
+ return "5.51.0";
966657
966668
  }
966658
966669
  getCliName() {
966659
966670
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.50.6",
2
+ "version": "5.51.0",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",