@fern-api/fern-api-dev 4.68.1-1-g56ebc56eef0 → 4.68.1-10-g73c0bb83835
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/cli.cjs +38 -29
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -226337,9 +226337,9 @@ var require_bl = __commonJS({
|
|
|
226337
226337
|
}
|
|
226338
226338
|
});
|
|
226339
226339
|
|
|
226340
|
-
// ../../../node_modules/.pnpm/follow-redirects@1.
|
|
226340
|
+
// ../../../node_modules/.pnpm/follow-redirects@1.16.0/node_modules/follow-redirects/debug.js
|
|
226341
226341
|
var require_debug2 = __commonJS({
|
|
226342
|
-
"../../../node_modules/.pnpm/follow-redirects@1.
|
|
226342
|
+
"../../../node_modules/.pnpm/follow-redirects@1.16.0/node_modules/follow-redirects/debug.js"(exports2, module4) {
|
|
226343
226343
|
"use strict";
|
|
226344
226344
|
var debug9;
|
|
226345
226345
|
module4.exports = function() {
|
|
@@ -226358,9 +226358,9 @@ var require_debug2 = __commonJS({
|
|
|
226358
226358
|
}
|
|
226359
226359
|
});
|
|
226360
226360
|
|
|
226361
|
-
// ../../../node_modules/.pnpm/follow-redirects@1.
|
|
226361
|
+
// ../../../node_modules/.pnpm/follow-redirects@1.16.0/node_modules/follow-redirects/index.js
|
|
226362
226362
|
var require_follow_redirects = __commonJS({
|
|
226363
|
-
"../../../node_modules/.pnpm/follow-redirects@1.
|
|
226363
|
+
"../../../node_modules/.pnpm/follow-redirects@1.16.0/node_modules/follow-redirects/index.js"(exports2, module4) {
|
|
226364
226364
|
"use strict";
|
|
226365
226365
|
var url3 = require("url");
|
|
226366
226366
|
var URL4 = url3.URL;
|
|
@@ -226383,6 +226383,11 @@ var require_follow_redirects = __commonJS({
|
|
|
226383
226383
|
} catch (error50) {
|
|
226384
226384
|
useNativeURL = error50.code === "ERR_INVALID_URL";
|
|
226385
226385
|
}
|
|
226386
|
+
var sensitiveHeaders = [
|
|
226387
|
+
"Authorization",
|
|
226388
|
+
"Proxy-Authorization",
|
|
226389
|
+
"Cookie"
|
|
226390
|
+
];
|
|
226386
226391
|
var preservedUrlFields = [
|
|
226387
226392
|
"auth",
|
|
226388
226393
|
"host",
|
|
@@ -226447,6 +226452,7 @@ var require_follow_redirects = __commonJS({
|
|
|
226447
226452
|
self2.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
|
|
226448
226453
|
}
|
|
226449
226454
|
};
|
|
226455
|
+
this._headerFilter = new RegExp("^(?:" + sensitiveHeaders.concat(options2.sensitiveHeaders).map(escapeRegex2).join("|") + ")$", "i");
|
|
226450
226456
|
this._performRequest();
|
|
226451
226457
|
}
|
|
226452
226458
|
RedirectableRequest.prototype = Object.create(Writable2.prototype);
|
|
@@ -226584,6 +226590,9 @@ var require_follow_redirects = __commonJS({
|
|
|
226584
226590
|
if (!options2.headers) {
|
|
226585
226591
|
options2.headers = {};
|
|
226586
226592
|
}
|
|
226593
|
+
if (!isArray7(options2.sensitiveHeaders)) {
|
|
226594
|
+
options2.sensitiveHeaders = [];
|
|
226595
|
+
}
|
|
226587
226596
|
if (options2.host) {
|
|
226588
226597
|
if (!options2.hostname) {
|
|
226589
226598
|
options2.hostname = options2.host;
|
|
@@ -226689,7 +226698,7 @@ var require_follow_redirects = __commonJS({
|
|
|
226689
226698
|
this._isRedirect = true;
|
|
226690
226699
|
spreadUrlObject(redirectUrl, this._options);
|
|
226691
226700
|
if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
|
|
226692
|
-
removeMatchingHeaders(
|
|
226701
|
+
removeMatchingHeaders(this._headerFilter, this._options.headers);
|
|
226693
226702
|
}
|
|
226694
226703
|
if (isFunction10(beforeRedirect)) {
|
|
226695
226704
|
var responseDetails = {
|
|
@@ -226838,6 +226847,9 @@ var require_follow_redirects = __commonJS({
|
|
|
226838
226847
|
var dot = subdomain.length - domain3.length - 1;
|
|
226839
226848
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain3);
|
|
226840
226849
|
}
|
|
226850
|
+
function isArray7(value) {
|
|
226851
|
+
return value instanceof Array;
|
|
226852
|
+
}
|
|
226841
226853
|
function isString6(value) {
|
|
226842
226854
|
return typeof value === "string" || value instanceof String;
|
|
226843
226855
|
}
|
|
@@ -226850,6 +226862,9 @@ var require_follow_redirects = __commonJS({
|
|
|
226850
226862
|
function isURL2(value) {
|
|
226851
226863
|
return URL4 && value instanceof URL4;
|
|
226852
226864
|
}
|
|
226865
|
+
function escapeRegex2(regex5) {
|
|
226866
|
+
return regex5.replace(/[\]\\/()*+?.$]/g, "\\$&");
|
|
226867
|
+
}
|
|
226853
226868
|
module4.exports = wrap10({ http: http13, https: https5 });
|
|
226854
226869
|
module4.exports.wrap = wrap10;
|
|
226855
226870
|
}
|
|
@@ -627624,7 +627639,7 @@ var AccessTokenPosthogManager = class {
|
|
|
627624
627639
|
properties: {
|
|
627625
627640
|
...event,
|
|
627626
627641
|
...event.properties,
|
|
627627
|
-
version: "4.68.1-
|
|
627642
|
+
version: "4.68.1-10-g73c0bb83835",
|
|
627628
627643
|
usingAccessToken: true
|
|
627629
627644
|
}
|
|
627630
627645
|
});
|
|
@@ -627678,7 +627693,7 @@ var UserPosthogManager = class {
|
|
|
627678
627693
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
627679
627694
|
event: "CLI",
|
|
627680
627695
|
properties: {
|
|
627681
|
-
version: "4.68.1-
|
|
627696
|
+
version: "4.68.1-10-g73c0bb83835",
|
|
627682
627697
|
...event,
|
|
627683
627698
|
...event.properties,
|
|
627684
627699
|
usingAccessToken: false,
|
|
@@ -843953,7 +843968,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
843953
843968
|
var LOGS_FOLDER_NAME = "logs";
|
|
843954
843969
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
843955
843970
|
function getCliSource() {
|
|
843956
|
-
const version7 = "4.68.1-
|
|
843971
|
+
const version7 = "4.68.1-10-g73c0bb83835";
|
|
843957
843972
|
return `cli@${version7}`;
|
|
843958
843973
|
}
|
|
843959
843974
|
var DebugLogger = class {
|
|
@@ -844834,7 +844849,7 @@ var ReferencedAPICollector = class {
|
|
|
844834
844849
|
constructor(context3) {
|
|
844835
844850
|
this.context = context3;
|
|
844836
844851
|
}
|
|
844837
|
-
addReferencedAPI({ ir: ir15, snippetsConfig, playgroundConfig, graphqlOperations = {}, graphqlTypes = {} }) {
|
|
844852
|
+
addReferencedAPI({ ir: ir15, snippetsConfig, playgroundConfig, apiName, graphqlOperations = {}, graphqlTypes = {} }) {
|
|
844838
844853
|
try {
|
|
844839
844854
|
const id2 = v4_default();
|
|
844840
844855
|
const dbApiDefinition = convertAPIDefinitionToDb(convertIrToFdrApi({
|
|
@@ -844843,7 +844858,8 @@ var ReferencedAPICollector = class {
|
|
|
844843
844858
|
playgroundConfig,
|
|
844844
844859
|
graphqlOperations,
|
|
844845
844860
|
graphqlTypes,
|
|
844846
|
-
context: this.context
|
|
844861
|
+
context: this.context,
|
|
844862
|
+
apiNameOverride: apiName
|
|
844847
844863
|
}), FdrAPI_exports.ApiDefinitionId(id2), new SDKSnippetHolder({
|
|
844848
844864
|
snippetsConfigWithSdkId: {},
|
|
844849
844865
|
snippetsBySdkId: {},
|
|
@@ -855201,7 +855217,7 @@ var LegacyDocsPublisher = class {
|
|
|
855201
855217
|
previewId,
|
|
855202
855218
|
disableTemplates: void 0,
|
|
855203
855219
|
skipUpload,
|
|
855204
|
-
cliVersion: "4.68.1-
|
|
855220
|
+
cliVersion: "4.68.1-10-g73c0bb83835"
|
|
855205
855221
|
});
|
|
855206
855222
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
855207
855223
|
return { success: false };
|
|
@@ -872387,7 +872403,7 @@ var CSharp = class {
|
|
|
872387
872403
|
args.name = this.model.getClassNameFor(args.origin);
|
|
872388
872404
|
}
|
|
872389
872405
|
if (args.enclosingType) {
|
|
872390
|
-
if (args.namespace) {
|
|
872406
|
+
if (args.namespace && args.namespace !== args.enclosingType.namespace) {
|
|
872391
872407
|
throw new Error(`ClassReference: Both enclosingType and namespace cannot be provided`);
|
|
872392
872408
|
}
|
|
872393
872409
|
args.namespace = args.enclosingType.namespace;
|
|
@@ -874333,6 +874349,8 @@ var Generation = class {
|
|
|
874333
874349
|
useDefaultRequestParameterValues: () => this.customConfig["use-default-request-parameter-values"] ?? false,
|
|
874334
874350
|
/** When true, redacts the response body in deserialization error exceptions and adds a custom ToString override to the base API exception. Default: false. */
|
|
874335
874351
|
redactResponseBodyOnError: () => this.customConfig["redact-response-body-on-error"] ?? false,
|
|
874352
|
+
/** When true, generates inline types as nested classes inside a static Types class on the parent type, instead of as separate top-level files. Default: false. */
|
|
874353
|
+
enableInlineTypes: () => this.customConfig["enable-inline-types"] ?? false,
|
|
874336
874354
|
/** Temporary mapping of websocket environment configurations. Default: {}. */
|
|
874337
874355
|
temporaryWebsocketEnvironments: () => this.customConfig["temporary-websocket-environments"] ?? {},
|
|
874338
874356
|
/** Custom name for the base API exception class. Default: "" (auto-generated). */
|
|
@@ -875988,7 +876006,7 @@ var DynamicTypeMapper = class extends WithGeneration {
|
|
|
875988
876006
|
if (named == null) {
|
|
875989
876007
|
return this.convertUnknown();
|
|
875990
876008
|
}
|
|
875991
|
-
return this.convertNamed({ named });
|
|
876009
|
+
return this.convertNamed({ named, typeId: args.typeReference.value });
|
|
875992
876010
|
}
|
|
875993
876011
|
case "optional":
|
|
875994
876012
|
case "nullable": {
|
|
@@ -876005,13 +876023,13 @@ var DynamicTypeMapper = class extends WithGeneration {
|
|
|
876005
876023
|
assertNever(args.typeReference);
|
|
876006
876024
|
}
|
|
876007
876025
|
}
|
|
876008
|
-
convertToClassReference(named) {
|
|
876026
|
+
convertToClassReference(named, typeId) {
|
|
876009
876027
|
return this.csharp.classReference({
|
|
876010
876028
|
origin: named.declaration,
|
|
876011
876029
|
namespace: this.context.getNamespace(named.declaration.fernFilepath)
|
|
876012
876030
|
});
|
|
876013
876031
|
}
|
|
876014
|
-
convertNamed({ named }) {
|
|
876032
|
+
convertNamed({ named, typeId }) {
|
|
876015
876033
|
switch (named.type) {
|
|
876016
876034
|
case "alias":
|
|
876017
876035
|
if (this.settings.generateLiterals && named.typeReference.type === "literal") {
|
|
@@ -876023,24 +876041,15 @@ var DynamicTypeMapper = class extends WithGeneration {
|
|
|
876023
876041
|
return this.convert({ typeReference: named.typeReference });
|
|
876024
876042
|
case "enum":
|
|
876025
876043
|
case "object":
|
|
876026
|
-
return this.
|
|
876027
|
-
origin: named.declaration,
|
|
876028
|
-
namespace: this.context.getNamespace(named.declaration.fernFilepath)
|
|
876029
|
-
});
|
|
876044
|
+
return this.convertToClassReference(named, typeId);
|
|
876030
876045
|
case "discriminatedUnion":
|
|
876031
876046
|
if (!this.settings.shouldGeneratedDiscriminatedUnions) {
|
|
876032
876047
|
return this.Primitive.object;
|
|
876033
876048
|
}
|
|
876034
|
-
return this.
|
|
876035
|
-
origin: named.declaration,
|
|
876036
|
-
namespace: this.context.getNamespace(named.declaration.fernFilepath)
|
|
876037
|
-
});
|
|
876049
|
+
return this.convertToClassReference(named, typeId);
|
|
876038
876050
|
case "undiscriminatedUnion":
|
|
876039
876051
|
if (this.settings.shouldGenerateUndiscriminatedUnions) {
|
|
876040
|
-
return this.
|
|
876041
|
-
origin: named.declaration,
|
|
876042
|
-
namespace: this.context.getNamespace(named.declaration.fernFilepath)
|
|
876043
|
-
});
|
|
876052
|
+
return this.convertToClassReference(named, typeId);
|
|
876044
876053
|
}
|
|
876045
876054
|
return this.OneOf.OneOf(named.types.map((typeReference2) => {
|
|
876046
876055
|
return this.convert({ typeReference: typeReference2 });
|
|
@@ -876381,7 +876390,7 @@ var DynamicSnippetsGeneratorContext = class _DynamicSnippetsGeneratorContext ext
|
|
|
876381
876390
|
Object.entries(this.ir.types).sort((a10, b19) => {
|
|
876382
876391
|
return a10[0].length - b19[0].length;
|
|
876383
876392
|
}).forEach(([typeId, type8]) => {
|
|
876384
|
-
this.dynamicTypeMapper.convertToClassReference(type8);
|
|
876393
|
+
this.dynamicTypeMapper.convertToClassReference(type8, typeId);
|
|
876385
876394
|
});
|
|
876386
876395
|
for (const [idx, request7] of requests3.entries()) {
|
|
876387
876396
|
this.csharp.classReference({
|
|
@@ -928948,7 +928957,7 @@ var CliContext = class _CliContext {
|
|
|
928948
928957
|
if (false) {
|
|
928949
928958
|
this.logger.error("CLI_VERSION is not defined");
|
|
928950
928959
|
}
|
|
928951
|
-
return "4.68.1-
|
|
928960
|
+
return "4.68.1-10-g73c0bb83835";
|
|
928952
928961
|
}
|
|
928953
928962
|
getCliName() {
|
|
928954
928963
|
if (false) {
|
package/package.json
CHANGED