@fern-api/fern-api-dev 5.3.0 → 5.4.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 +25 -13
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -481404,7 +481404,7 @@ var HttpEndpointSchema = schemas_exports.object({
481404
481404
 
481405
481405
  // ../fern-definition/schema/lib/schemas/serialization/resources/service/types/HttpServiceSchema.js
481406
481406
  var HttpServiceSchema = schemas_exports.object({
481407
- auth: schemas_exports.boolean(),
481407
+ auth: schemas_exports.boolean().optional(),
481408
481408
  url: schemas_exports.string().optional(),
481409
481409
  "base-path": schemas_exports.string(),
481410
481410
  "path-parameters": schemas_exports.record(schemas_exports.string(), TypeReferenceSchema).optional(),
@@ -562145,8 +562145,8 @@ function convertHttpService({ rootDefaultUrl, rootPathParameters, serviceDefinit
562145
562145
  id: "",
562146
562146
  name: file4.casingsGenerator.generateName(endpointKey),
562147
562147
  displayName: endpoint3["display-name"],
562148
- auth: typeof endpoint3.auth === "boolean" ? endpoint3.auth : endpoint3.auth != null ? endpoint3.auth.length > 0 : serviceDefinition.auth,
562149
- security: typeof endpoint3.auth === "undefined" || typeof endpoint3.auth === "boolean" ? endpoint3.auth ?? serviceDefinition.auth === true ? AuthSchemesRequirement._visit(auth8.requirement, {
562148
+ auth: typeof endpoint3.auth === "boolean" ? endpoint3.auth : endpoint3.auth != null ? endpoint3.auth.length > 0 : serviceDefinition.auth ?? auth8.schemes.length > 0,
562149
+ security: typeof endpoint3.auth === "undefined" || typeof endpoint3.auth === "boolean" ? endpoint3.auth ?? (serviceDefinition.auth ?? auth8.schemes.length > 0) === true ? AuthSchemesRequirement._visit(auth8.requirement, {
562150
562150
  any: () => auth8.schemes.map((scheme) => ({ [scheme.key]: [] })),
562151
562151
  all: () => [auth8.schemes.reduce((acc, scheme) => ({ ...acc, [scheme.key]: [] }), {})],
562152
562152
  // for endpoint security, `typeof endpoint.auth === "object"`, so this case is unreachable
@@ -567992,7 +567992,7 @@ var NoMissingAuthRule = {
567992
567992
  return {
567993
567993
  definitionFile: {
567994
567994
  httpService: (service) => {
567995
- if (service.auth && !authIsDefined) {
567995
+ if ((service.auth ?? authIsDefined) && !authIsDefined) {
567996
567996
  return [
567997
567997
  {
567998
567998
  severity: "fatal",
@@ -594121,7 +594121,14 @@ var definitions2 = {
594121
594121
  ]
594122
594122
  },
594123
594123
  auth: {
594124
- type: "boolean"
594124
+ oneOf: [
594125
+ {
594126
+ type: "boolean"
594127
+ },
594128
+ {
594129
+ type: "null"
594130
+ }
594131
+ ]
594125
594132
  },
594126
594133
  url: {
594127
594134
  oneOf: [
@@ -594200,7 +594207,6 @@ var definitions2 = {
594200
594207
  }
594201
594208
  },
594202
594209
  required: [
594203
- "auth",
594204
594210
  "base-path",
594205
594211
  "endpoints"
594206
594212
  ],
@@ -598345,7 +598351,14 @@ var definitions3 = {
598345
598351
  ]
598346
598352
  },
598347
598353
  auth: {
598348
- type: "boolean"
598354
+ oneOf: [
598355
+ {
598356
+ type: "boolean"
598357
+ },
598358
+ {
598359
+ type: "null"
598360
+ }
598361
+ ]
598349
598362
  },
598350
598363
  url: {
598351
598364
  oneOf: [
@@ -598424,7 +598437,6 @@ var definitions3 = {
598424
598437
  }
598425
598438
  },
598426
598439
  required: [
598427
- "auth",
598428
598440
  "base-path",
598429
598441
  "endpoints"
598430
598442
  ],
@@ -622040,7 +622052,7 @@ var AccessTokenPosthogManager = class {
622040
622052
  properties: {
622041
622053
  ...event,
622042
622054
  ...event.properties,
622043
- version: "5.3.0",
622055
+ version: "5.4.0",
622044
622056
  usingAccessToken: true
622045
622057
  }
622046
622058
  });
@@ -622094,7 +622106,7 @@ var UserPosthogManager = class {
622094
622106
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
622095
622107
  event: "CLI",
622096
622108
  properties: {
622097
- version: "5.3.0",
622109
+ version: "5.4.0",
622098
622110
  ...event,
622099
622111
  ...event.properties,
622100
622112
  usingAccessToken: false,
@@ -834374,7 +834386,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
834374
834386
  var LOGS_FOLDER_NAME = "logs";
834375
834387
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
834376
834388
  function getCliSource() {
834377
- const version7 = "5.3.0";
834389
+ const version7 = "5.4.0";
834378
834390
  return `cli@${version7}`;
834379
834391
  }
834380
834392
  var DebugLogger = class {
@@ -846836,7 +846848,7 @@ var LegacyDocsPublisher = class {
846836
846848
  previewId,
846837
846849
  disableTemplates: void 0,
846838
846850
  skipUpload,
846839
- cliVersion: "5.3.0",
846851
+ cliVersion: "5.4.0",
846840
846852
  loginCommand: "fern auth login"
846841
846853
  });
846842
846854
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -921168,7 +921180,7 @@ var CliContext = class _CliContext {
921168
921180
  if (false) {
921169
921181
  this.logger.error("CLI_VERSION is not defined");
921170
921182
  }
921171
- return "5.3.0";
921183
+ return "5.4.0";
921172
921184
  }
921173
921185
  getCliName() {
921174
921186
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.3.0",
2
+ "version": "5.4.0",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",