@fern-api/fern-api-dev 5.98.0 → 5.98.2
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 +31 -8
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -157574,6 +157574,9 @@ var init_ExampleTypeFactory = __esm({
|
|
|
157574
157574
|
}
|
|
157575
157575
|
return void 0;
|
|
157576
157576
|
case "unknown":
|
|
157577
|
+
if (example === null) {
|
|
157578
|
+
return FullExample.null({});
|
|
157579
|
+
}
|
|
157577
157580
|
if (example != null) {
|
|
157578
157581
|
const fullExample = convertToFullExample(example);
|
|
157579
157582
|
if (fullExample != null) {
|
|
@@ -265363,8 +265366,15 @@ function convertApiAuth({ rawApiFileSchema, casingsGenerator }) {
|
|
|
265363
265366
|
}),
|
|
265364
265367
|
endpointSecurity: () => ({
|
|
265365
265368
|
docs: docs2,
|
|
265369
|
+
// Under endpoint-security, every declared scheme is available for endpoints to
|
|
265370
|
+
// reference from their own `security`. The schemes must still be converted here,
|
|
265371
|
+
// otherwise consumers have no definition to resolve those references against.
|
|
265366
265372
|
requirement: AuthSchemesRequirement.EndpointSecurity,
|
|
265367
|
-
schemes: []
|
|
265373
|
+
schemes: Object.keys(rawApiFileSchema["auth-schemes"] ?? {}).map((schemeName) => convertSchemeReference({
|
|
265374
|
+
reference: schemeName,
|
|
265375
|
+
authSchemeDeclarations: rawApiFileSchema["auth-schemes"],
|
|
265376
|
+
casingsGenerator
|
|
265377
|
+
}))
|
|
265368
265378
|
})
|
|
265369
265379
|
});
|
|
265370
265380
|
}
|
|
@@ -357490,6 +357500,7 @@ var OperationConverter;
|
|
|
357490
357500
|
var init_OperationConverter = __esm({
|
|
357491
357501
|
"../api-importers/openapi-to-ir/lib/3.1/paths/operations/OperationConverter.js"() {
|
|
357492
357502
|
"use strict";
|
|
357503
|
+
init_lib10();
|
|
357493
357504
|
init_lib9();
|
|
357494
357505
|
init_lib22();
|
|
357495
357506
|
init_lib16();
|
|
@@ -357962,11 +357973,15 @@ var init_OperationConverter = __esm({
|
|
|
357962
357973
|
if (this.operation.security != null && this.operation.security.length === 0) {
|
|
357963
357974
|
return [];
|
|
357964
357975
|
}
|
|
357965
|
-
if (this.context.authOverrides?.auth != null) {
|
|
357976
|
+
if (this.context.authOverrides?.auth != null && !this.usesEndpointSecurity()) {
|
|
357966
357977
|
return this.getDefaultSecurityFromAuthOverrides();
|
|
357967
357978
|
}
|
|
357968
357979
|
return sanitizeSecurityScopes2(this.operation.security ?? this.context.spec.security);
|
|
357969
357980
|
}
|
|
357981
|
+
usesEndpointSecurity() {
|
|
357982
|
+
const auth8 = this.context.authOverrides?.auth;
|
|
357983
|
+
return auth8 != null && isEndpointSecurityAuthSchemes(auth8);
|
|
357984
|
+
}
|
|
357970
357985
|
/**
|
|
357971
357986
|
* Converts security scheme IDs to HTTP headers
|
|
357972
357987
|
* @param securitySchemeIds - List of security scheme IDs
|
|
@@ -357976,6 +357991,9 @@ var init_OperationConverter = __esm({
|
|
|
357976
357991
|
if (!this.context.authOverrides?.auth) {
|
|
357977
357992
|
return false;
|
|
357978
357993
|
}
|
|
357994
|
+
if (this.usesEndpointSecurity()) {
|
|
357995
|
+
return false;
|
|
357996
|
+
}
|
|
357979
357997
|
const hasGlobalSecurity = this.context.spec.security != null && this.context.spec.security.length > 0;
|
|
357980
357998
|
const hasEndpointSecurity = this.operation.security != null && this.operation.security.length > 0;
|
|
357981
357999
|
return !(hasGlobalSecurity || hasEndpointSecurity);
|
|
@@ -358735,6 +358753,7 @@ var import_openapi_types2, OpenAPIConverter;
|
|
|
358735
358753
|
var init_OpenAPIConverter = __esm({
|
|
358736
358754
|
"../api-importers/openapi-to-ir/lib/3.1/OpenAPIConverter.js"() {
|
|
358737
358755
|
"use strict";
|
|
358756
|
+
init_lib10();
|
|
358738
358757
|
init_lib9();
|
|
358739
358758
|
init_lib22();
|
|
358740
358759
|
init_lib16();
|
|
@@ -359092,6 +359111,10 @@ var init_OpenAPIConverter = __esm({
|
|
|
359092
359111
|
if (!this.context.authOverrides?.["auth-schemes"]) {
|
|
359093
359112
|
return;
|
|
359094
359113
|
}
|
|
359114
|
+
const auth8 = this.context.authOverrides.auth;
|
|
359115
|
+
if (auth8 != null && isEndpointSecurityAuthSchemes(auth8)) {
|
|
359116
|
+
return;
|
|
359117
|
+
}
|
|
359095
359118
|
const securityRequirement = {};
|
|
359096
359119
|
for (const schemeId of Object.keys(this.context.authOverrides["auth-schemes"])) {
|
|
359097
359120
|
securityRequirement[schemeId] = [];
|
|
@@ -702821,7 +702844,7 @@ var AccessTokenPosthogManager = class {
|
|
|
702821
702844
|
properties: {
|
|
702822
702845
|
...event,
|
|
702823
702846
|
...event.properties,
|
|
702824
|
-
version: "5.98.
|
|
702847
|
+
version: "5.98.2",
|
|
702825
702848
|
usingAccessToken: true,
|
|
702826
702849
|
...getRunIdProperties()
|
|
702827
702850
|
}
|
|
@@ -702887,7 +702910,7 @@ var UserPosthogManager = class {
|
|
|
702887
702910
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
702888
702911
|
event: "CLI",
|
|
702889
702912
|
properties: {
|
|
702890
|
-
version: "5.98.
|
|
702913
|
+
version: "5.98.2",
|
|
702891
702914
|
...event,
|
|
702892
702915
|
...event.properties,
|
|
702893
702916
|
usingAccessToken: false,
|
|
@@ -884268,7 +884291,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
884268
884291
|
var LOGS_FOLDER_NAME = "logs";
|
|
884269
884292
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
884270
884293
|
function getCliSource() {
|
|
884271
|
-
const version7 = "5.98.
|
|
884294
|
+
const version7 = "5.98.2";
|
|
884272
884295
|
return `cli@${version7}`;
|
|
884273
884296
|
}
|
|
884274
884297
|
var DebugLogger = class {
|
|
@@ -909584,7 +909607,7 @@ var LegacyDocsPublisher = class {
|
|
|
909584
909607
|
previewId,
|
|
909585
909608
|
disableTemplates: void 0,
|
|
909586
909609
|
skipUpload,
|
|
909587
|
-
cliVersion: "5.98.
|
|
909610
|
+
cliVersion: "5.98.2",
|
|
909588
909611
|
loginCommand: "fern auth login"
|
|
909589
909612
|
});
|
|
909590
909613
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -976817,7 +976840,7 @@ function getAutomationContextFromEnv() {
|
|
|
976817
976840
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
976818
976841
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
976819
976842
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
976820
|
-
cli_version: "5.98.
|
|
976843
|
+
cli_version: "5.98.2"
|
|
976821
976844
|
};
|
|
976822
976845
|
}
|
|
976823
976846
|
function isAutomationMode() {
|
|
@@ -977649,7 +977672,7 @@ var CliContext = class _CliContext {
|
|
|
977649
977672
|
if (false) {
|
|
977650
977673
|
this.logger.error("CLI_VERSION is not defined");
|
|
977651
977674
|
}
|
|
977652
|
-
return "5.98.
|
|
977675
|
+
return "5.98.2";
|
|
977653
977676
|
}
|
|
977654
977677
|
getCliName() {
|
|
977655
977678
|
if (false) {
|
package/package.json
CHANGED