@fern-api/fern-api-dev 5.30.2 → 5.30.4

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 +34 -14
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -582273,6 +582273,9 @@ function getFernStreamingExtension(document4, operation) {
582273
582273
  resumable
582274
582274
  };
582275
582275
  }
582276
+ if (streaming["stream-condition"] == null) {
582277
+ return void 0;
582278
+ }
582276
582279
  return {
582277
582280
  type: "streamCondition",
582278
582281
  format: streaming.format ?? "json",
@@ -584417,7 +584420,7 @@ function getRequestBody2({ context: context3, operation, streamingExtension, isS
584417
584420
  return void 0;
584418
584421
  }
584419
584422
  const resolvedRequestBodySchema = isReferenceObject(jsonMediaObject.schema) ? context3.resolveSchemaReference(jsonMediaObject.schema) : jsonMediaObject.schema;
584420
- if (resolvedRequestBodySchema.allOf == null && resolvedRequestBodySchema.properties == null) {
584423
+ if (resolvedRequestBodySchema.allOf == null && resolvedRequestBodySchema.properties == null && resolvedRequestBodySchema.oneOf == null && resolvedRequestBodySchema.anyOf == null) {
584421
584424
  return void 0;
584422
584425
  }
584423
584426
  let streamingProperty = resolvedRequestBodySchema.properties?.[streamingExtension.streamConditionProperty];
@@ -654179,18 +654182,24 @@ var RequestBodyConverter = class extends converters_exports.AbstractConverters.A
654179
654182
  if (resolvedMediaTypeSchema == null) {
654180
654183
  return void 0;
654181
654184
  }
654182
- const streamConditionProperty = resolvedMediaTypeSchema.properties?.[this.streamingExtension.streamConditionProperty];
654183
- if (streamConditionProperty == null || this.context.isReferenceObject(streamConditionProperty)) {
654184
- return void 0;
654185
+ let streamConditionProperty = resolvedMediaTypeSchema.properties?.[this.streamingExtension.streamConditionProperty];
654186
+ if (streamConditionProperty != null && this.context.isReferenceObject(streamConditionProperty)) {
654187
+ streamConditionProperty = void 0;
654188
+ }
654189
+ if (streamConditionProperty == null) {
654190
+ if (resolvedMediaTypeSchema.oneOf == null && resolvedMediaTypeSchema.anyOf == null) {
654191
+ return void 0;
654192
+ }
654193
+ streamConditionProperty = { type: "boolean" };
654185
654194
  }
654186
- const streamingOutput = this.buildStreamConditionInlinedRequestBody({
654195
+ const streamingOutput = this.buildStreamConditionRequestBody({
654187
654196
  streamConditionProperty,
654188
654197
  resolvedMediaTypeSchema,
654189
654198
  isStreaming: true,
654190
654199
  contentType,
654191
654200
  mediaTypeObject
654192
654201
  });
654193
- const nonStreamingOutput = this.buildStreamConditionInlinedRequestBody({
654202
+ const nonStreamingOutput = this.buildStreamConditionRequestBody({
654194
654203
  streamConditionProperty,
654195
654204
  resolvedMediaTypeSchema,
654196
654205
  isStreaming: false,
@@ -654212,7 +654221,7 @@ var RequestBodyConverter = class extends converters_exports.AbstractConverters.A
654212
654221
  })
654213
654222
  };
654214
654223
  }
654215
- buildStreamConditionInlinedRequestBody({ streamConditionProperty, resolvedMediaTypeSchema, isStreaming, contentType, mediaTypeObject }) {
654224
+ buildStreamConditionRequestBody({ streamConditionProperty, resolvedMediaTypeSchema, isStreaming, contentType, mediaTypeObject }) {
654216
654225
  if (this.streamingExtension == null || this.streamingExtension.type !== "streamCondition") {
654217
654226
  return void 0;
654218
654227
  }
@@ -654259,7 +654268,18 @@ var RequestBodyConverter = class extends converters_exports.AbstractConverters.A
654259
654268
  inlinedTypes: convertedSchema.inlinedTypes
654260
654269
  };
654261
654270
  }
654262
- return void 0;
654271
+ return {
654272
+ requestBody: HttpRequestBody.reference({
654273
+ contentType,
654274
+ docs: this.description,
654275
+ requestBodyType: convertedSchema.type,
654276
+ v2Examples: this.convertMediaTypeObjectExamples({
654277
+ mediaTypeObject: modifiedMediaTypeObject,
654278
+ exampleGenerationStrategy: "request"
654279
+ })
654280
+ }),
654281
+ inlinedTypes: convertedSchema.inlinedTypes ?? {}
654282
+ };
654263
654283
  }
654264
654284
  recursivelyCheckTypeReferenceIsFile({ typeReference: typeReference2, isOptional, isArray: isArray7 }) {
654265
654285
  if (this.context.isList(typeReference2)) {
@@ -668026,7 +668046,7 @@ var AccessTokenPosthogManager = class {
668026
668046
  properties: {
668027
668047
  ...event,
668028
668048
  ...event.properties,
668029
- version: "5.30.2",
668049
+ version: "5.30.4",
668030
668050
  usingAccessToken: true,
668031
668051
  ...getRunIdProperties()
668032
668052
  }
@@ -668090,7 +668110,7 @@ var UserPosthogManager = class {
668090
668110
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
668091
668111
  event: "CLI",
668092
668112
  properties: {
668093
- version: "5.30.2",
668113
+ version: "5.30.4",
668094
668114
  ...event,
668095
668115
  ...event.properties,
668096
668116
  usingAccessToken: false,
@@ -859866,7 +859886,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
859866
859886
  var LOGS_FOLDER_NAME = "logs";
859867
859887
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
859868
859888
  function getCliSource() {
859869
- const version7 = "5.30.2";
859889
+ const version7 = "5.30.4";
859870
859890
  return `cli@${version7}`;
859871
859891
  }
859872
859892
  var DebugLogger = class {
@@ -878698,7 +878718,7 @@ var LegacyDocsPublisher = class {
878698
878718
  previewId,
878699
878719
  disableTemplates: void 0,
878700
878720
  skipUpload,
878701
- cliVersion: "5.30.2",
878721
+ cliVersion: "5.30.4",
878702
878722
  loginCommand: "fern auth login"
878703
878723
  });
878704
878724
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -953108,7 +953128,7 @@ function getAutomationContextFromEnv() {
953108
953128
  config_branch: process.env.FERN_CONFIG_BRANCH,
953109
953129
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
953110
953130
  trigger: process.env.GITHUB_EVENT_NAME,
953111
- cli_version: "5.30.2"
953131
+ cli_version: "5.30.4"
953112
953132
  };
953113
953133
  }
953114
953134
  function isAutomationMode() {
@@ -953934,7 +953954,7 @@ var CliContext = class _CliContext {
953934
953954
  if (false) {
953935
953955
  this.logger.error("CLI_VERSION is not defined");
953936
953956
  }
953937
- return "5.30.2";
953957
+ return "5.30.4";
953938
953958
  }
953939
953959
  getCliName() {
953940
953960
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.30.2",
2
+ "version": "5.30.4",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",