@fern-api/fern-api-dev 5.98.0 → 5.98.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 +28 -8
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -265363,8 +265363,15 @@ function convertApiAuth({ rawApiFileSchema, casingsGenerator }) {
265363
265363
  }),
265364
265364
  endpointSecurity: () => ({
265365
265365
  docs: docs2,
265366
+ // Under endpoint-security, every declared scheme is available for endpoints to
265367
+ // reference from their own `security`. The schemes must still be converted here,
265368
+ // otherwise consumers have no definition to resolve those references against.
265366
265369
  requirement: AuthSchemesRequirement.EndpointSecurity,
265367
- schemes: []
265370
+ schemes: Object.keys(rawApiFileSchema["auth-schemes"] ?? {}).map((schemeName) => convertSchemeReference({
265371
+ reference: schemeName,
265372
+ authSchemeDeclarations: rawApiFileSchema["auth-schemes"],
265373
+ casingsGenerator
265374
+ }))
265368
265375
  })
265369
265376
  });
265370
265377
  }
@@ -357490,6 +357497,7 @@ var OperationConverter;
357490
357497
  var init_OperationConverter = __esm({
357491
357498
  "../api-importers/openapi-to-ir/lib/3.1/paths/operations/OperationConverter.js"() {
357492
357499
  "use strict";
357500
+ init_lib10();
357493
357501
  init_lib9();
357494
357502
  init_lib22();
357495
357503
  init_lib16();
@@ -357962,11 +357970,15 @@ var init_OperationConverter = __esm({
357962
357970
  if (this.operation.security != null && this.operation.security.length === 0) {
357963
357971
  return [];
357964
357972
  }
357965
- if (this.context.authOverrides?.auth != null) {
357973
+ if (this.context.authOverrides?.auth != null && !this.usesEndpointSecurity()) {
357966
357974
  return this.getDefaultSecurityFromAuthOverrides();
357967
357975
  }
357968
357976
  return sanitizeSecurityScopes2(this.operation.security ?? this.context.spec.security);
357969
357977
  }
357978
+ usesEndpointSecurity() {
357979
+ const auth8 = this.context.authOverrides?.auth;
357980
+ return auth8 != null && isEndpointSecurityAuthSchemes(auth8);
357981
+ }
357970
357982
  /**
357971
357983
  * Converts security scheme IDs to HTTP headers
357972
357984
  * @param securitySchemeIds - List of security scheme IDs
@@ -357976,6 +357988,9 @@ var init_OperationConverter = __esm({
357976
357988
  if (!this.context.authOverrides?.auth) {
357977
357989
  return false;
357978
357990
  }
357991
+ if (this.usesEndpointSecurity()) {
357992
+ return false;
357993
+ }
357979
357994
  const hasGlobalSecurity = this.context.spec.security != null && this.context.spec.security.length > 0;
357980
357995
  const hasEndpointSecurity = this.operation.security != null && this.operation.security.length > 0;
357981
357996
  return !(hasGlobalSecurity || hasEndpointSecurity);
@@ -358735,6 +358750,7 @@ var import_openapi_types2, OpenAPIConverter;
358735
358750
  var init_OpenAPIConverter = __esm({
358736
358751
  "../api-importers/openapi-to-ir/lib/3.1/OpenAPIConverter.js"() {
358737
358752
  "use strict";
358753
+ init_lib10();
358738
358754
  init_lib9();
358739
358755
  init_lib22();
358740
358756
  init_lib16();
@@ -359092,6 +359108,10 @@ var init_OpenAPIConverter = __esm({
359092
359108
  if (!this.context.authOverrides?.["auth-schemes"]) {
359093
359109
  return;
359094
359110
  }
359111
+ const auth8 = this.context.authOverrides.auth;
359112
+ if (auth8 != null && isEndpointSecurityAuthSchemes(auth8)) {
359113
+ return;
359114
+ }
359095
359115
  const securityRequirement = {};
359096
359116
  for (const schemeId of Object.keys(this.context.authOverrides["auth-schemes"])) {
359097
359117
  securityRequirement[schemeId] = [];
@@ -702821,7 +702841,7 @@ var AccessTokenPosthogManager = class {
702821
702841
  properties: {
702822
702842
  ...event,
702823
702843
  ...event.properties,
702824
- version: "5.98.0",
702844
+ version: "5.98.1",
702825
702845
  usingAccessToken: true,
702826
702846
  ...getRunIdProperties()
702827
702847
  }
@@ -702887,7 +702907,7 @@ var UserPosthogManager = class {
702887
702907
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
702888
702908
  event: "CLI",
702889
702909
  properties: {
702890
- version: "5.98.0",
702910
+ version: "5.98.1",
702891
702911
  ...event,
702892
702912
  ...event.properties,
702893
702913
  usingAccessToken: false,
@@ -884268,7 +884288,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
884268
884288
  var LOGS_FOLDER_NAME = "logs";
884269
884289
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
884270
884290
  function getCliSource() {
884271
- const version7 = "5.98.0";
884291
+ const version7 = "5.98.1";
884272
884292
  return `cli@${version7}`;
884273
884293
  }
884274
884294
  var DebugLogger = class {
@@ -909584,7 +909604,7 @@ var LegacyDocsPublisher = class {
909584
909604
  previewId,
909585
909605
  disableTemplates: void 0,
909586
909606
  skipUpload,
909587
- cliVersion: "5.98.0",
909607
+ cliVersion: "5.98.1",
909588
909608
  loginCommand: "fern auth login"
909589
909609
  });
909590
909610
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -976817,7 +976837,7 @@ function getAutomationContextFromEnv() {
976817
976837
  config_branch: process.env.FERN_CONFIG_BRANCH,
976818
976838
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
976819
976839
  trigger: process.env.GITHUB_EVENT_NAME,
976820
- cli_version: "5.98.0"
976840
+ cli_version: "5.98.1"
976821
976841
  };
976822
976842
  }
976823
976843
  function isAutomationMode() {
@@ -977649,7 +977669,7 @@ var CliContext = class _CliContext {
977649
977669
  if (false) {
977650
977670
  this.logger.error("CLI_VERSION is not defined");
977651
977671
  }
977652
- return "5.98.0";
977672
+ return "5.98.1";
977653
977673
  }
977654
977674
  getCliName() {
977655
977675
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.98.0",
2
+ "version": "5.98.1",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",