fern-api 0.15.12 → 0.15.14

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/bundle.cjs +12 -6
  2. package/package.json +1 -1
package/bundle.cjs CHANGED
@@ -736639,7 +736639,7 @@ var AccessTokenPosthogManager = class {
736639
736639
  properties: {
736640
736640
  ...event,
736641
736641
  ...event.properties,
736642
- version: "0.15.12",
736642
+ version: "0.15.14",
736643
736643
  usingAccessToken: true
736644
736644
  }
736645
736645
  });
@@ -736701,7 +736701,7 @@ var UserPosthogManager = class {
736701
736701
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
736702
736702
  event: "CLI",
736703
736703
  properties: {
736704
- version: "0.15.12",
736704
+ version: "0.15.14",
736705
736705
  ...event,
736706
736706
  ...event.properties
736707
736707
  }
@@ -750135,7 +750135,6 @@ function convertPackage({ openApiFile, context }) {
750135
750135
  }))
750136
750136
  };
750137
750137
  if (openApiFile.tags.orderedTagIds != null) {
750138
- context.logger.info("associated tag is null");
750139
750138
  const visited = [];
750140
750139
  for (const tagId of openApiFile.tags.orderedTagIds) {
750141
750140
  const filepath = tagIdsByFiles[tagId];
@@ -752295,6 +752294,7 @@ var APPLICATION_JSON_CONTENT2 = "application/json";
752295
752294
  var APPLICATION_JSON_UTF_8_CONTENT2 = "application/json; charset=utf-8";
752296
752295
  var TEXT_PLAIN_CONTENT = "text/plain";
752297
752296
  var APPLICATION_VND_JSON = "application/x-ndjson";
752297
+ var AUDIO_MPEG = "audio/mpeg";
752298
752298
  var APPLICATION_OCTET_STREAM_CONTENT = "application/octet-stream";
752299
752299
  var SUCCESSFUL_STATUS_CODES = ["200", "201", "204"];
752300
752300
  function convertResponse({ responses, context, responseBreadcrumbs, responseStatusCode, isStreaming }) {
@@ -752338,7 +752338,7 @@ function convertResponse({ responses, context, responseBreadcrumbs, responseStat
752338
752338
  };
752339
752339
  }
752340
752340
  function convertResolvedResponse({ isStreaming, response, context, responseBreadcrumbs }) {
752341
- var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k;
752341
+ var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l;
752342
752342
  const resolvedResponse = isReferenceObject(response) ? context.resolveResponseReference(response) : response;
752343
752343
  const responseSchema = ((_b2 = (_a2 = resolvedResponse.content) == null ? void 0 : _a2[APPLICATION_JSON_CONTENT2]) == null ? void 0 : _b2.schema) ?? ((_d = (_c2 = resolvedResponse.content) == null ? void 0 : _c2[APPLICATION_JSON_UTF_8_CONTENT2]) == null ? void 0 : _d.schema) ?? ((_f = (_e = resolvedResponse.content) == null ? void 0 : _e[APPLICATION_VND_JSON]) == null ? void 0 : _f.schema);
752344
752344
  if (responseSchema != null) {
@@ -752381,6 +752381,12 @@ function convertResolvedResponse({ isStreaming, response, context, responseBread
752381
752381
  description: resolvedResponse.description
752382
752382
  };
752383
752383
  }
752384
+ if (((_l = resolvedResponse.content) == null ? void 0 : _l[AUDIO_MPEG]) != null) {
752385
+ return {
752386
+ type: "file",
752387
+ description: resolvedResponse.description
752388
+ };
752389
+ }
752384
752390
  return void 0;
752385
752391
  }
752386
752392
  function markErrorSchemas({ responses, context }) {
@@ -760993,10 +760999,10 @@ var CliContext = class {
760993
760999
  return "fern-api";
760994
761000
  }
760995
761001
  getPackageVersion() {
760996
- if ("0.15.12" == null) {
761002
+ if ("0.15.14" == null) {
760997
761003
  this.logger.error("CLI_VERSION is not defined");
760998
761004
  }
760999
- return "0.15.12";
761005
+ return "0.15.14";
761000
761006
  }
761001
761007
  getCliName() {
761002
761008
  if ("fern" == null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fern-api",
3
- "version": "0.15.12",
3
+ "version": "0.15.14",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",