@fern-api/fern-api-dev 3.57.1-5-gc6a5dddad7b → 3.57.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.
Files changed (2) hide show
  1. package/cli.cjs +39 -158
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -1435488,47 +1435488,9 @@ var ApiSpecSchema = external_exports.union([
1435488
1435488
  OpenRpcSpecSchema
1435489
1435489
  ]);
1435490
1435490
 
1435491
- // ../config/lib/schemas/AuthSchemesSchema.js
1435492
- var AuthSchemesSchema = external_exports.record(external_exports.string(), external_exports.unknown());
1435493
-
1435494
- // ../config/lib/schemas/MultipleBaseUrlEnvironmentSchema.js
1435495
- var MultipleBaseUrlsEnvironmentSchema = external_exports.object({
1435496
- urls: external_exports.record(external_exports.string(), external_exports.string()),
1435497
- docs: external_exports.string().optional()
1435498
- });
1435499
-
1435500
- // ../config/lib/schemas/SingleBaseUrlEnvironmentSchema.js
1435501
- var SingleBaseUrlEnvironmentSchema = external_exports.object({
1435502
- url: external_exports.string(),
1435503
- docs: external_exports.string().optional()
1435504
- });
1435505
-
1435506
- // ../config/lib/schemas/EnvironmentSchema.js
1435507
- var EnvironmentSchema = external_exports.union([
1435508
- external_exports.string(),
1435509
- SingleBaseUrlEnvironmentSchema,
1435510
- MultipleBaseUrlsEnvironmentSchema
1435511
- ]);
1435512
-
1435513
- // ../config/lib/schemas/HeaderConfigSchema.js
1435514
- var HeaderConfigSchema = external_exports.object({
1435515
- name: external_exports.string().optional(),
1435516
- env: external_exports.string().optional(),
1435517
- docs: external_exports.string().optional()
1435518
- });
1435519
-
1435520
- // ../config/lib/schemas/HeaderSchema.js
1435521
- var HeaderSchema = external_exports.union([external_exports.string(), HeaderConfigSchema]);
1435522
-
1435523
1435491
  // ../config/lib/schemas/ApiDefinitionSchema.js
1435524
1435492
  var ApiDefinitionSchema = external_exports.object({
1435525
- specs: external_exports.array(ApiSpecSchema),
1435526
- auth: external_exports.string().optional(),
1435527
- defaultUrl: external_exports.string().optional(),
1435528
- defaultEnvironment: external_exports.string().optional(),
1435529
- environments: external_exports.record(external_exports.string(), EnvironmentSchema).optional(),
1435530
- headers: external_exports.record(external_exports.string(), HeaderSchema).optional(),
1435531
- authSchemes: AuthSchemesSchema.optional()
1435493
+ specs: external_exports.array(ApiSpecSchema)
1435532
1435494
  });
1435533
1435495
 
1435534
1435496
  // ../config/lib/schemas/ApisSchema.js
@@ -1436887,17 +1436849,8 @@ var ApiDefinitionConverter = class {
1436887
1436849
  specs: api.specs,
1436888
1436850
  sourced: sourcedApi.specs
1436889
1436851
  });
1436890
- const apiDefinition = {
1436891
- specs,
1436892
- auth: api.auth,
1436893
- authSchemes: api.authSchemes,
1436894
- defaultUrl: api.defaultUrl,
1436895
- defaultEnvironment: api.defaultEnvironment,
1436896
- environments: api.environments,
1436897
- headers: api.headers
1436898
- };
1436899
1436852
  return {
1436900
- [DEFAULT_API_NAME]: apiDefinition
1436853
+ [DEFAULT_API_NAME]: { specs }
1436901
1436854
  };
1436902
1436855
  }
1436903
1436856
  async convertApis({ absoluteFernYmlPath, apis, sourcedApis }) {
@@ -1436915,15 +1436868,7 @@ var ApiDefinitionConverter = class {
1436915
1436868
  specs: apiDef.specs,
1436916
1436869
  sourced: sourcedApiDef.specs
1436917
1436870
  });
1436918
- result[apiName] = {
1436919
- specs,
1436920
- auth: apiDef.auth,
1436921
- authSchemes: apiDef.authSchemes,
1436922
- defaultUrl: apiDef.defaultUrl,
1436923
- defaultEnvironment: apiDef.defaultEnvironment,
1436924
- environments: apiDef.environments,
1436925
- headers: apiDef.headers
1436926
- };
1436871
+ result[apiName] = { specs };
1436927
1436872
  }
1436928
1436873
  return result;
1436929
1436874
  }
@@ -1438026,7 +1437971,7 @@ __export(serialization_exports2, {
1438026
1437971
  EnumSchema: () => EnumSchema,
1438027
1437972
  EnumValue: () => EnumValue,
1438028
1437973
  EnumValueSchema: () => EnumValueSchema,
1438029
- EnvironmentSchema: () => EnvironmentSchema2,
1437974
+ EnvironmentSchema: () => EnvironmentSchema,
1438030
1437975
  ErrorDeclarationSchema: () => ErrorDeclarationSchema,
1438031
1437976
  ErrorDiscriminationSchema: () => ErrorDiscriminationSchema,
1438032
1437977
  ExampleBodyResponseSchema: () => ExampleBodyResponseSchema,
@@ -1438076,7 +1438021,7 @@ __export(serialization_exports2, {
1438076
1438021
  InferredGetTokenEndpointSchemaObject: () => InferredGetTokenEndpointSchemaObject,
1438077
1438022
  ListValidationSchema: () => ListValidationSchema,
1438078
1438023
  MapValidationSchema: () => MapValidationSchema,
1438079
- MultipleBaseUrlsEnvironmentSchema: () => MultipleBaseUrlsEnvironmentSchema2,
1438024
+ MultipleBaseUrlsEnvironmentSchema: () => MultipleBaseUrlsEnvironmentSchema,
1438080
1438025
  Navigation: () => Navigation,
1438081
1438026
  NumberValidationSchema: () => NumberValidationSchema,
1438082
1438027
  OAuthAccessTokenRequestPropertiesSchema: () => OAuthAccessTokenRequestPropertiesSchema,
@@ -1438112,7 +1438057,7 @@ __export(serialization_exports2, {
1438112
1438057
  RetriesDisabledSchema: () => RetriesDisabledSchema,
1438113
1438058
  RootApiFileSchema: () => RootApiFileSchema,
1438114
1438059
  ServiceTransport: () => ServiceTransport,
1438115
- SingleBaseUrlEnvironmentSchema: () => SingleBaseUrlEnvironmentSchema2,
1438060
+ SingleBaseUrlEnvironmentSchema: () => SingleBaseUrlEnvironmentSchema,
1438116
1438061
  SingleUndiscriminatedUnionTypeDetailedSchema: () => SingleUndiscriminatedUnionTypeDetailedSchema,
1438117
1438062
  SingleUndiscriminatedUnionTypeSchema: () => SingleUndiscriminatedUnionTypeSchema,
1438118
1438063
  SingleUnionTypeDetailedSchema: () => SingleUnionTypeDetailedSchema,
@@ -1439872,34 +1439817,34 @@ var EncodingSchema = schemas_exports5.object({
1439872
1439817
  // ../fern-definition/schema/lib/schemas/serialization/resources/environments/index.js
1439873
1439818
  var environments_exports3 = {};
1439874
1439819
  __export(environments_exports3, {
1439875
- EnvironmentSchema: () => EnvironmentSchema2,
1439876
- MultipleBaseUrlsEnvironmentSchema: () => MultipleBaseUrlsEnvironmentSchema2,
1439877
- SingleBaseUrlEnvironmentSchema: () => SingleBaseUrlEnvironmentSchema2,
1439820
+ EnvironmentSchema: () => EnvironmentSchema,
1439821
+ MultipleBaseUrlsEnvironmentSchema: () => MultipleBaseUrlsEnvironmentSchema,
1439822
+ SingleBaseUrlEnvironmentSchema: () => SingleBaseUrlEnvironmentSchema,
1439878
1439823
  WithEnvironmentsSchema: () => WithEnvironmentsSchema
1439879
1439824
  });
1439880
1439825
 
1439881
1439826
  // ../fern-definition/schema/lib/schemas/serialization/resources/environments/types/MultipleBaseUrlsEnvironmentSchema.js
1439882
- var MultipleBaseUrlsEnvironmentSchema2 = schemas_exports5.object({
1439827
+ var MultipleBaseUrlsEnvironmentSchema = schemas_exports5.object({
1439883
1439828
  urls: schemas_exports5.record(schemas_exports5.string(), schemas_exports5.string())
1439884
1439829
  }).extend(WithAudiences).extend(WithDocsSchema);
1439885
1439830
 
1439886
1439831
  // ../fern-definition/schema/lib/schemas/serialization/resources/environments/types/SingleBaseUrlEnvironmentSchema.js
1439887
- var SingleBaseUrlEnvironmentSchema2 = schemas_exports5.object({
1439832
+ var SingleBaseUrlEnvironmentSchema = schemas_exports5.object({
1439888
1439833
  url: schemas_exports5.string()
1439889
1439834
  }).extend(WithAudiences).extend(WithDocsSchema);
1439890
1439835
 
1439891
1439836
  // ../fern-definition/schema/lib/schemas/serialization/resources/environments/types/EnvironmentSchema.js
1439892
- var EnvironmentSchema2 = schemas_exports5.undiscriminatedUnion([
1439837
+ var EnvironmentSchema = schemas_exports5.undiscriminatedUnion([
1439893
1439838
  schemas_exports5.string(),
1439894
- SingleBaseUrlEnvironmentSchema2,
1439895
- MultipleBaseUrlsEnvironmentSchema2
1439839
+ SingleBaseUrlEnvironmentSchema,
1439840
+ MultipleBaseUrlsEnvironmentSchema
1439896
1439841
  ]);
1439897
1439842
 
1439898
1439843
  // ../fern-definition/schema/lib/schemas/serialization/resources/environments/types/WithEnvironmentsSchema.js
1439899
1439844
  var WithEnvironmentsSchema = schemas_exports5.object({
1439900
1439845
  "default-url": schemas_exports5.string().optional(),
1439901
1439846
  "default-environment": schemas_exports5.string().optional(),
1439902
- environments: schemas_exports5.record(schemas_exports5.string(), EnvironmentSchema2).optional()
1439847
+ environments: schemas_exports5.record(schemas_exports5.string(), EnvironmentSchema).optional()
1439903
1439848
  });
1439904
1439849
 
1439905
1439850
  // ../fern-definition/schema/lib/schemas/serialization/resources/errors/index.js
@@ -1469835,7 +1469780,7 @@ __export(fernDefinition_exports2, {
1469835
1469780
  EncodingSchema: () => EncodingSchema2,
1469836
1469781
  EndpointSecuritySchema: () => EndpointSecuritySchema2,
1469837
1469782
  EndpointSecuritySchemaDetails: () => EndpointSecuritySchemaDetails2,
1469838
- EnvironmentSchema: () => EnvironmentSchema3,
1469783
+ EnvironmentSchema: () => EnvironmentSchema2,
1469839
1469784
  HeaderAuthSchemeSchema: () => HeaderAuthSchemeSchema2,
1469840
1469785
  HttpHeaderSchema: () => HttpHeaderSchema2,
1469841
1469786
  InferredAuthenticatedRequestHeader: () => InferredAuthenticatedRequestHeader3,
@@ -1469844,7 +1469789,7 @@ __export(fernDefinition_exports2, {
1469844
1469789
  InferredGetTokenEndpointSchemaObject: () => InferredGetTokenEndpointSchemaObject2,
1469845
1469790
  ListValidationSchema: () => ListValidationSchema2,
1469846
1469791
  MapValidationSchema: () => MapValidationSchema2,
1469847
- MultipleBaseUrlsEnvironmentSchema: () => MultipleBaseUrlsEnvironmentSchema3,
1469792
+ MultipleBaseUrlsEnvironmentSchema: () => MultipleBaseUrlsEnvironmentSchema2,
1469848
1469793
  NumberValidationSchema: () => NumberValidationSchema2,
1469849
1469794
  OAuthAccessTokenRequestPropertiesSchema: () => OAuthAccessTokenRequestPropertiesSchema2,
1469850
1469795
  OAuthAccessTokenResponsePropertiesSchema: () => OAuthAccessTokenResponsePropertiesSchema2,
@@ -1469854,7 +1469799,7 @@ __export(fernDefinition_exports2, {
1469854
1469799
  OAuthRefreshTokenResponsePropertiesSchema: () => OAuthRefreshTokenResponsePropertiesSchema2,
1469855
1469800
  OAuthSchemeSchema: () => OAuthSchemeSchema2,
1469856
1469801
  ProtobufTypeSchema: () => ProtobufTypeSchema2,
1469857
- SingleBaseUrlEnvironmentSchema: () => SingleBaseUrlEnvironmentSchema3,
1469802
+ SingleBaseUrlEnvironmentSchema: () => SingleBaseUrlEnvironmentSchema2,
1469858
1469803
  StringValidationSchema: () => StringValidationSchema2,
1469859
1469804
  TokenBearerAuthSchema: () => TokenBearerAuthSchema2,
1469860
1469805
  TypeReferenceDeclarationWithEnvOverride: () => TypeReferenceDeclarationWithEnvOverride2,
@@ -1470127,34 +1470072,34 @@ var EncodingSchema2 = schemas_exports10.object({
1470127
1470072
  // ../configuration/lib/generators-yml/schemas/serialization/resources/fernDefinition/resources/environments/index.js
1470128
1470073
  var environments_exports5 = {};
1470129
1470074
  __export(environments_exports5, {
1470130
- EnvironmentSchema: () => EnvironmentSchema3,
1470131
- MultipleBaseUrlsEnvironmentSchema: () => MultipleBaseUrlsEnvironmentSchema3,
1470132
- SingleBaseUrlEnvironmentSchema: () => SingleBaseUrlEnvironmentSchema3,
1470075
+ EnvironmentSchema: () => EnvironmentSchema2,
1470076
+ MultipleBaseUrlsEnvironmentSchema: () => MultipleBaseUrlsEnvironmentSchema2,
1470077
+ SingleBaseUrlEnvironmentSchema: () => SingleBaseUrlEnvironmentSchema2,
1470133
1470078
  WithEnvironmentsSchema: () => WithEnvironmentsSchema2
1470134
1470079
  });
1470135
1470080
 
1470136
1470081
  // ../configuration/lib/generators-yml/schemas/serialization/resources/fernDefinition/resources/environments/types/MultipleBaseUrlsEnvironmentSchema.js
1470137
- var MultipleBaseUrlsEnvironmentSchema3 = schemas_exports10.object({
1470082
+ var MultipleBaseUrlsEnvironmentSchema2 = schemas_exports10.object({
1470138
1470083
  urls: schemas_exports10.record(schemas_exports10.string(), schemas_exports10.string())
1470139
1470084
  }).extend(WithAudiences2).extend(WithDocsSchema2);
1470140
1470085
 
1470141
1470086
  // ../configuration/lib/generators-yml/schemas/serialization/resources/fernDefinition/resources/environments/types/SingleBaseUrlEnvironmentSchema.js
1470142
- var SingleBaseUrlEnvironmentSchema3 = schemas_exports10.object({
1470087
+ var SingleBaseUrlEnvironmentSchema2 = schemas_exports10.object({
1470143
1470088
  url: schemas_exports10.string()
1470144
1470089
  }).extend(WithAudiences2).extend(WithDocsSchema2);
1470145
1470090
 
1470146
1470091
  // ../configuration/lib/generators-yml/schemas/serialization/resources/fernDefinition/resources/environments/types/EnvironmentSchema.js
1470147
- var EnvironmentSchema3 = schemas_exports10.undiscriminatedUnion([
1470092
+ var EnvironmentSchema2 = schemas_exports10.undiscriminatedUnion([
1470148
1470093
  schemas_exports10.string(),
1470149
- SingleBaseUrlEnvironmentSchema3,
1470150
- MultipleBaseUrlsEnvironmentSchema3
1470094
+ SingleBaseUrlEnvironmentSchema2,
1470095
+ MultipleBaseUrlsEnvironmentSchema2
1470151
1470096
  ]);
1470152
1470097
 
1470153
1470098
  // ../configuration/lib/generators-yml/schemas/serialization/resources/fernDefinition/resources/environments/types/WithEnvironmentsSchema.js
1470154
1470099
  var WithEnvironmentsSchema2 = schemas_exports10.object({
1470155
1470100
  "default-url": schemas_exports10.string().optional(),
1470156
1470101
  "default-environment": schemas_exports10.string().optional(),
1470157
- environments: schemas_exports10.record(schemas_exports10.string(), EnvironmentSchema3).optional()
1470102
+ environments: schemas_exports10.record(schemas_exports10.string(), EnvironmentSchema2).optional()
1470158
1470103
  });
1470159
1470104
 
1470160
1470105
  // ../configuration/lib/generators-yml/schemas/serialization/resources/fernDefinition/resources/file/index.js
@@ -1659062,7 +1659007,6 @@ var DocsDefinitionResolver = class {
1659062
1659007
  markdownFilesToSidebarTitle = /* @__PURE__ */ new Map();
1659063
1659008
  markdownFilesToNoIndex = /* @__PURE__ */ new Map();
1659064
1659009
  markdownFilesToTags = /* @__PURE__ */ new Map();
1659065
- markdownFilesToAvailability = /* @__PURE__ */ new Map();
1659066
1659010
  rawMarkdownFiles = {};
1659067
1659011
  referencedMarkdownFiles = [];
1659068
1659012
  async resolve() {
@@ -1659278,7 +1659222,7 @@ var DocsDefinitionResolver = class {
1659278
1659222
  return relative3(this.docsWorkspace.absoluteFilePath, filepath);
1659279
1659223
  }
1659280
1659224
  /**
1659281
- * Extracts all frontmatter data (slug, sidebar-title, noindex, tags, availability) from pages in a single pass.
1659225
+ * Extracts all frontmatter data (slug, sidebar-title, noindex, tags) from pages in a single pass.
1659282
1659226
  * This is more efficient than parsing frontmatter multiple times for each field.
1659283
1659227
  * @param pages - the pages to extract frontmatter from
1659284
1659228
  */
@@ -1659309,38 +1659253,6 @@ var DocsDefinitionResolver = class {
1659309
1659253
  } else if (Array.isArray(tags)) {
1659310
1659254
  this.markdownFilesToTags.set(absolutePath, tags);
1659311
1659255
  }
1659312
- const availability = frontmatter.data.availability;
1659313
- if (typeof availability === "string") {
1659314
- const parsedAvailability = this.parseAvailabilityFromFrontmatter(availability);
1659315
- if (parsedAvailability != null) {
1659316
- this.markdownFilesToAvailability.set(absolutePath, parsedAvailability);
1659317
- }
1659318
- }
1659319
- }
1659320
- }
1659321
- /**
1659322
- * Parses an availability string from frontmatter into the Availability enum value.
1659323
- * @param value - the availability string from frontmatter
1659324
- * @returns the Availability enum value, or undefined if the value is not valid
1659325
- */
1659326
- parseAvailabilityFromFrontmatter(value) {
1659327
- const normalizedValue = value.toLowerCase().trim();
1659328
- switch (normalizedValue) {
1659329
- case "stable":
1659330
- return "stable";
1659331
- case "generally-available":
1659332
- return "generally-available";
1659333
- case "in-development":
1659334
- return "in-development";
1659335
- case "pre-release":
1659336
- return "pre-release";
1659337
- case "deprecated":
1659338
- return "deprecated";
1659339
- case "beta":
1659340
- return "beta";
1659341
- default:
1659342
- this.taskContext.logger.warn(`Invalid availability value "${value}" in frontmatter. Valid values are: stable, generally-available, in-development, pre-release, deprecated, beta`);
1659343
- return void 0;
1659344
1659256
  }
1659345
1659257
  }
1659346
1659258
  /**
@@ -1659995,7 +1659907,6 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
1659995
1659907
  fullSlug: this.markdownFilesToFullSlugs.get(item.absolutePath)?.split("/")
1659996
1659908
  });
1659997
1659909
  const id2 = this.#idgen.get(pageId);
1659998
- const frontmatterAvailability = this.markdownFilesToAvailability.get(item.absolutePath);
1659999
1659910
  return {
1660000
1659911
  id: id2,
1660001
1659912
  type: "page",
@@ -1660009,7 +1659920,7 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
1660009
1659920
  authed: void 0,
1660010
1659921
  noindex: item.noindex || this.markdownFilesToNoIndex.get(item.absolutePath),
1660011
1659922
  featureFlags: item.featureFlags,
1660012
- availability: frontmatterAvailability ?? item.availability ?? parentAvailability
1659923
+ availability: item.availability ?? parentAvailability
1660013
1659924
  };
1660014
1659925
  }
1660015
1659926
  async toSectionNode({ prefix: prefix2, item, parentSlug, hideChildren, parentAvailability }) {
@@ -1660022,7 +1659933,6 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
1660022
1659933
  skipUrlSlug: item.skipUrlSlug
1660023
1659934
  });
1660024
1659935
  const noindex = item.overviewAbsolutePath != null ? this.markdownFilesToNoIndex.get(item.overviewAbsolutePath) : void 0;
1660025
- const frontmatterAvailability = item.overviewAbsolutePath != null ? this.markdownFilesToAvailability.get(item.overviewAbsolutePath) : void 0;
1660026
1659936
  const hiddenSection = hideChildren || item.hidden;
1660027
1659937
  const children2 = await Promise.all(item.contents.map((child) => this.toNavigationChild({
1660028
1659938
  prefix: id2,
@@ -1660054,7 +1659964,7 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
1660054
1659964
  pointsTo: void 0,
1660055
1659965
  noindex,
1660056
1659966
  featureFlags: item.featureFlags,
1660057
- availability: frontmatterAvailability ?? item.availability ?? parentAvailability
1659967
+ availability: item.availability ?? parentAvailability
1660058
1659968
  };
1660059
1659969
  }
1660060
1659970
  async convertTabbedNavigation(prefix2, items, parentSlug) {
@@ -1671684,7 +1671594,7 @@ var LegacyFernWorkspaceAdapter = class {
1671684
1671594
  * Supports three mutually exclusive modes:
1671685
1671595
  * - Fern definition: Uses LazyFernWorkspace
1671686
1671596
  * - Conjure definition: Uses ConjureWorkspace
1671687
- * - OpenAPI/AsyncAPI/Protobuf/OpenRPC: Uses OSSWorkspace (can be mixed together)
1671597
+ * - OpenAPI/AsyncAPI/Protobuf: Uses OSSWorkspace (can be mixed together)
1671688
1671598
  *
1671689
1671599
  * Note: Spec combination validation is performed earlier in ApiDefinitionConverter.
1671690
1671600
  */
@@ -1671697,7 +1671607,7 @@ var LegacyFernWorkspaceAdapter = class {
1671697
1671607
  if (conjureSpec != null) {
1671698
1671608
  return this.adaptConjureSpec(conjureSpec);
1671699
1671609
  }
1671700
- return this.adaptOssSpecs(definition3);
1671610
+ return this.adaptOssSpecs(definition3.specs);
1671701
1671611
  }
1671702
1671612
  async adaptFernSpec(spec) {
1671703
1671613
  const workspaceRoot = dirname4(spec.fern);
@@ -1671723,8 +1671633,8 @@ var LegacyFernWorkspaceAdapter = class {
1671723
1671633
  });
1671724
1671634
  return conjureWorkspace.toFernWorkspace({ context: this.taskContext });
1671725
1671635
  }
1671726
- async adaptOssSpecs(definition3) {
1671727
- const ossSpecs = definition3.specs.filter((spec) => !isFernSpec(spec) && !isConjureSpec(spec));
1671636
+ async adaptOssSpecs(specs) {
1671637
+ const ossSpecs = specs.filter((spec) => !isFernSpec(spec) && !isConjureSpec(spec));
1671728
1671638
  const specAdapter = new LegacyApiSpecAdapter({ context: this.context });
1671729
1671639
  const v1Specs = specAdapter.convertAll(ossSpecs);
1671730
1671640
  const filteredSpecs = v1Specs.filter((spec) => {
@@ -1671742,46 +1671652,17 @@ var LegacyFernWorkspaceAdapter = class {
1671742
1671652
  }
1671743
1671653
  return true;
1671744
1671654
  });
1671745
- const apiConfig = this.buildApiConfiguration(definition3);
1671746
1671655
  const ossWorkspace = new OSSWorkspace({
1671747
1671656
  specs: filteredSpecs,
1671748
1671657
  allSpecs,
1671749
1671658
  absoluteFilePath: this.context.cwd,
1671750
1671659
  cliVersion: this.cliVersion,
1671751
- generatorsConfiguration: apiConfig != null ? this.buildGeneratorsConfiguration(apiConfig) : void 0,
1671752
1671660
  workspaceName: void 0,
1671661
+ generatorsConfiguration: void 0,
1671753
1671662
  changelog: void 0
1671754
1671663
  });
1671755
1671664
  return ossWorkspace.toFernWorkspace({ context: this.taskContext });
1671756
1671665
  }
1671757
- buildApiConfiguration(definition3) {
1671758
- if (definition3.auth == null && definition3.authSchemes == null && definition3.environments == null && definition3.headers == null && definition3.defaultUrl == null && definition3.defaultEnvironment == null) {
1671759
- return void 0;
1671760
- }
1671761
- return {
1671762
- type: "singleNamespace",
1671763
- definitions: [],
1671764
- auth: definition3.auth,
1671765
- "auth-schemes": definition3.authSchemes,
1671766
- "default-url": definition3.defaultUrl,
1671767
- "default-environment": definition3.defaultEnvironment,
1671768
- environments: definition3.environments,
1671769
- headers: definition3.headers
1671770
- };
1671771
- }
1671772
- buildGeneratorsConfiguration(apiConfig) {
1671773
- return {
1671774
- absolutePathToConfiguration: AbsoluteFilePath2.of(this.context.cwd),
1671775
- api: apiConfig,
1671776
- defaultGroup: void 0,
1671777
- groupAliases: {},
1671778
- reviewers: void 0,
1671779
- groups: [],
1671780
- whitelabel: void 0,
1671781
- ai: void 0,
1671782
- rawConfiguration: {}
1671783
- };
1671784
- }
1671785
1671666
  };
1671786
1671667
 
1671787
1671668
  // ../cli-v2/lib/sdk/adapter/LegacyGeneratorInvocationAdapter.js
@@ -1678852,7 +1678733,7 @@ var AccessTokenPosthogManager = class {
1678852
1678733
  properties: {
1678853
1678734
  ...event,
1678854
1678735
  ...event.properties,
1678855
- version: "3.57.1-5-gc6a5dddad7b",
1678736
+ version: "3.57.1",
1678856
1678737
  usingAccessToken: true
1678857
1678738
  }
1678858
1678739
  });
@@ -1678902,7 +1678783,7 @@ var UserPosthogManager = class {
1678902
1678783
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
1678903
1678784
  event: "CLI",
1678904
1678785
  properties: {
1678905
- version: "3.57.1-5-gc6a5dddad7b",
1678786
+ version: "3.57.1",
1678906
1678787
  ...event,
1678907
1678788
  ...event.properties,
1678908
1678789
  usingAccessToken: false,
@@ -1710824,7 +1710705,7 @@ var CliContext = class {
1710824
1710705
  if (false) {
1710825
1710706
  this.logger.error("CLI_VERSION is not defined");
1710826
1710707
  }
1710827
- return "3.57.1-5-gc6a5dddad7b";
1710708
+ return "3.57.1";
1710828
1710709
  }
1710829
1710710
  getCliName() {
1710830
1710711
  if (false) {
@@ -1713938,7 +1713819,7 @@ var import_path56 = __toESM(require("path"), 1);
1713938
1713819
  var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
1713939
1713820
  var LOGS_FOLDER_NAME = "logs";
1713940
1713821
  function getCliSource() {
1713941
- const version7 = "3.57.1-5-gc6a5dddad7b";
1713822
+ const version7 = "3.57.1";
1713942
1713823
  return `cli@${version7}`;
1713943
1713824
  }
1713944
1713825
  var DebugLogger = class {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.57.1-5-gc6a5dddad7b",
2
+ "version": "3.57.1",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",