fern-api 0.15.12 → 0.15.13
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.
- package/bundle.cjs +12 -5
- 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.
|
|
736642
|
+
version: "0.15.13",
|
|
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.
|
|
736704
|
+
version: "0.15.13",
|
|
736705
736705
|
...event,
|
|
736706
736706
|
...event.properties
|
|
736707
736707
|
}
|
|
@@ -752295,6 +752295,7 @@ var APPLICATION_JSON_CONTENT2 = "application/json";
|
|
|
752295
752295
|
var APPLICATION_JSON_UTF_8_CONTENT2 = "application/json; charset=utf-8";
|
|
752296
752296
|
var TEXT_PLAIN_CONTENT = "text/plain";
|
|
752297
752297
|
var APPLICATION_VND_JSON = "application/x-ndjson";
|
|
752298
|
+
var AUDIO_MPEG = "audio/mpeg";
|
|
752298
752299
|
var APPLICATION_OCTET_STREAM_CONTENT = "application/octet-stream";
|
|
752299
752300
|
var SUCCESSFUL_STATUS_CODES = ["200", "201", "204"];
|
|
752300
752301
|
function convertResponse({ responses, context, responseBreadcrumbs, responseStatusCode, isStreaming }) {
|
|
@@ -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;
|
|
752342
|
+
var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
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) {
|
|
@@ -752381,6 +752382,12 @@ function convertResolvedResponse({ isStreaming, response, context, responseBread
|
|
|
752381
752382
|
description: resolvedResponse.description
|
|
752382
752383
|
};
|
|
752383
752384
|
}
|
|
752385
|
+
if (((_l = resolvedResponse.content) == null ? void 0 : _l[AUDIO_MPEG]) != null) {
|
|
752386
|
+
return {
|
|
752387
|
+
type: "file",
|
|
752388
|
+
description: resolvedResponse.description
|
|
752389
|
+
};
|
|
752390
|
+
}
|
|
752384
752391
|
return void 0;
|
|
752385
752392
|
}
|
|
752386
752393
|
function markErrorSchemas({ responses, context }) {
|
|
@@ -760993,10 +761000,10 @@ var CliContext = class {
|
|
|
760993
761000
|
return "fern-api";
|
|
760994
761001
|
}
|
|
760995
761002
|
getPackageVersion() {
|
|
760996
|
-
if ("0.15.
|
|
761003
|
+
if ("0.15.13" == null) {
|
|
760997
761004
|
this.logger.error("CLI_VERSION is not defined");
|
|
760998
761005
|
}
|
|
760999
|
-
return "0.15.
|
|
761006
|
+
return "0.15.13";
|
|
761000
761007
|
}
|
|
761001
761008
|
getCliName() {
|
|
761002
761009
|
if ("fern" == null) {
|