fern-api 0.15.15 → 0.15.16

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 +17 -10
  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.15",
736642
+ version: "0.15.16",
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.15",
736704
+ version: "0.15.16",
736705
736705
  ...event,
736706
736706
  ...event.properties
736707
736707
  }
@@ -752292,10 +752292,11 @@ var HEADERS_TO_SKIP = /* @__PURE__ */ new Set([
752292
752292
  // pnp:/home/circleci/project/packages/cli/openapi-parser/lib/v3/converters/endpoint/convertResponse.js
752293
752293
  var APPLICATION_JSON_CONTENT2 = "application/json";
752294
752294
  var APPLICATION_JSON_UTF_8_CONTENT2 = "application/json; charset=utf-8";
752295
- var TEXT_PLAIN_CONTENT = "text/plain";
752295
+ var APPLICATION_OCTET_STREAM_CONTENT = "application/octet-stream";
752296
+ var APPLICATION_PDF = "application/pdf";
752296
752297
  var APPLICATION_VND_JSON = "application/x-ndjson";
752297
752298
  var AUDIO_MPEG = "audio/mpeg";
752298
- var APPLICATION_OCTET_STREAM_CONTENT = "application/octet-stream";
752299
+ var TEXT_PLAIN_CONTENT = "text/plain";
752299
752300
  var SUCCESSFUL_STATUS_CODES = ["200", "201", "204"];
752300
752301
  function convertResponse({ responses, context, responseBreadcrumbs, responseStatusCode, isStreaming }) {
752301
752302
  if (responses == null) {
@@ -752338,7 +752339,7 @@ function convertResponse({ responses, context, responseBreadcrumbs, responseStat
752338
752339
  };
752339
752340
  }
752340
752341
  function convertResolvedResponse({ isStreaming, response, context, responseBreadcrumbs }) {
752341
- var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l;
752342
+ var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
752342
752343
  const resolvedResponse = isReferenceObject(response) ? context.resolveResponseReference(response) : response;
752343
752344
  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
752345
  if (responseSchema != null) {
@@ -752361,8 +752362,14 @@ function convertResolvedResponse({ isStreaming, response, context, responseBread
752361
752362
  description: resolvedResponse.description
752362
752363
  };
752363
752364
  }
752364
- if (((_j = (_i = resolvedResponse.content) == null ? void 0 : _i[TEXT_PLAIN_CONTENT]) == null ? void 0 : _j.schema) != null) {
752365
- const textPlainSchema = (_k = resolvedResponse.content[TEXT_PLAIN_CONTENT]) == null ? void 0 : _k.schema;
752365
+ if (((_j = (_i = resolvedResponse.content) == null ? void 0 : _i[APPLICATION_PDF]) == null ? void 0 : _j.schema) != null) {
752366
+ return {
752367
+ type: "file",
752368
+ description: resolvedResponse.description
752369
+ };
752370
+ }
752371
+ if (((_l = (_k = resolvedResponse.content) == null ? void 0 : _k[TEXT_PLAIN_CONTENT]) == null ? void 0 : _l.schema) != null) {
752372
+ const textPlainSchema = (_m = resolvedResponse.content[TEXT_PLAIN_CONTENT]) == null ? void 0 : _m.schema;
752366
752373
  if (textPlainSchema == null) {
752367
752374
  return {
752368
752375
  type: "text",
@@ -752381,7 +752388,7 @@ function convertResolvedResponse({ isStreaming, response, context, responseBread
752381
752388
  description: resolvedResponse.description
752382
752389
  };
752383
752390
  }
752384
- if (((_l = resolvedResponse.content) == null ? void 0 : _l[AUDIO_MPEG]) != null) {
752391
+ if (((_n = resolvedResponse.content) == null ? void 0 : _n[AUDIO_MPEG]) != null) {
752385
752392
  return {
752386
752393
  type: "file",
752387
752394
  description: resolvedResponse.description
@@ -760999,10 +761006,10 @@ var CliContext = class {
760999
761006
  return "fern-api";
761000
761007
  }
761001
761008
  getPackageVersion() {
761002
- if ("0.15.15" == null) {
761009
+ if ("0.15.16" == null) {
761003
761010
  this.logger.error("CLI_VERSION is not defined");
761004
761011
  }
761005
- return "0.15.15";
761012
+ return "0.15.16";
761006
761013
  }
761007
761014
  getCliName() {
761008
761015
  if ("fern" == null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fern-api",
3
- "version": "0.15.15",
3
+ "version": "0.15.16",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",