@fern-api/fern-api-dev 3.48.0 → 3.48.1
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 +29 -13
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -1429451,7 +1429451,7 @@ var AccessTokenPosthogManager = class {
|
|
|
1429451
1429451
|
properties: {
|
|
1429452
1429452
|
...event,
|
|
1429453
1429453
|
...event.properties,
|
|
1429454
|
-
version: "3.48.
|
|
1429454
|
+
version: "3.48.1",
|
|
1429455
1429455
|
usingAccessToken: true
|
|
1429456
1429456
|
}
|
|
1429457
1429457
|
});
|
|
@@ -1429550,7 +1429550,7 @@ var UserPosthogManager = class {
|
|
|
1429550
1429550
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
1429551
1429551
|
event: "CLI",
|
|
1429552
1429552
|
properties: {
|
|
1429553
|
-
version: "3.48.
|
|
1429553
|
+
version: "3.48.1",
|
|
1429554
1429554
|
...event,
|
|
1429555
1429555
|
...event.properties,
|
|
1429556
1429556
|
usingAccessToken: false,
|
|
@@ -1508976,7 +1508976,7 @@ var CliContext = class {
|
|
|
1508976
1508976
|
if (false) {
|
|
1508977
1508977
|
this.logger.error("CLI_VERSION is not defined");
|
|
1508978
1508978
|
}
|
|
1508979
|
-
return "3.48.
|
|
1508979
|
+
return "3.48.1";
|
|
1508980
1508980
|
}
|
|
1508981
1508981
|
getCliName() {
|
|
1508982
1508982
|
if (false) {
|
|
@@ -1557503,24 +1557503,36 @@ var SecuritySchemeConverter = class extends AbstractConverter {
|
|
|
1557503
1557503
|
this.securityScheme = securityScheme;
|
|
1557504
1557504
|
this.schemeId = schemeId;
|
|
1557505
1557505
|
}
|
|
1557506
|
+
getExtension(key) {
|
|
1557507
|
+
const value = this.securityScheme[key];
|
|
1557508
|
+
return value;
|
|
1557509
|
+
}
|
|
1557506
1557510
|
convert() {
|
|
1557507
1557511
|
switch (this.securityScheme.type) {
|
|
1557508
1557512
|
case "http": {
|
|
1557509
1557513
|
if (this.securityScheme.scheme?.toLowerCase() === "bearer") {
|
|
1557514
|
+
const bearerExtension = this.getExtension("x-fern-bearer");
|
|
1557515
|
+
const tokenName = bearerExtension?.name ?? "token";
|
|
1557516
|
+
const tokenEnvVar = bearerExtension?.env;
|
|
1557510
1557517
|
return AuthScheme.bearer({
|
|
1557511
1557518
|
key: this.schemeId,
|
|
1557512
|
-
token: this.context.casingsGenerator.generateName(
|
|
1557513
|
-
tokenEnvVar
|
|
1557519
|
+
token: this.context.casingsGenerator.generateName(tokenName),
|
|
1557520
|
+
tokenEnvVar,
|
|
1557514
1557521
|
docs: this.securityScheme.description
|
|
1557515
1557522
|
});
|
|
1557516
1557523
|
}
|
|
1557517
1557524
|
if (this.securityScheme.scheme?.toLowerCase() === "basic") {
|
|
1557525
|
+
const basicExtension = this.getExtension("x-fern-basic");
|
|
1557526
|
+
const usernameName = basicExtension?.username?.name ?? "username";
|
|
1557527
|
+
const passwordName = basicExtension?.password?.name ?? "password";
|
|
1557528
|
+
const usernameEnvVar = basicExtension?.username?.env;
|
|
1557529
|
+
const passwordEnvVar = basicExtension?.password?.env;
|
|
1557518
1557530
|
return AuthScheme.basic({
|
|
1557519
1557531
|
key: this.schemeId,
|
|
1557520
|
-
username: this.context.casingsGenerator.generateName(
|
|
1557521
|
-
password: this.context.casingsGenerator.generateName(
|
|
1557522
|
-
usernameEnvVar
|
|
1557523
|
-
passwordEnvVar
|
|
1557532
|
+
username: this.context.casingsGenerator.generateName(usernameName),
|
|
1557533
|
+
password: this.context.casingsGenerator.generateName(passwordName),
|
|
1557534
|
+
usernameEnvVar,
|
|
1557535
|
+
passwordEnvVar,
|
|
1557524
1557536
|
docs: this.securityScheme.description
|
|
1557525
1557537
|
});
|
|
1557526
1557538
|
}
|
|
@@ -1557528,15 +1557540,19 @@ var SecuritySchemeConverter = class extends AbstractConverter {
|
|
|
1557528
1557540
|
}
|
|
1557529
1557541
|
case "apiKey": {
|
|
1557530
1557542
|
if (this.securityScheme.in === "header") {
|
|
1557543
|
+
const headerExtension = this.getExtension("x-fern-header");
|
|
1557544
|
+
const headerName = headerExtension?.name ?? "apiKey";
|
|
1557545
|
+
const headerEnvVar = headerExtension?.env;
|
|
1557546
|
+
const prefix2 = headerExtension?.prefix;
|
|
1557531
1557547
|
return AuthScheme.header({
|
|
1557532
1557548
|
key: this.schemeId,
|
|
1557533
1557549
|
name: {
|
|
1557534
|
-
name: this.context.casingsGenerator.generateName(
|
|
1557550
|
+
name: this.context.casingsGenerator.generateName(headerName),
|
|
1557535
1557551
|
wireValue: this.securityScheme.name
|
|
1557536
1557552
|
},
|
|
1557537
1557553
|
valueType: AbstractConverter.OPTIONAL_STRING,
|
|
1557538
|
-
prefix:
|
|
1557539
|
-
headerEnvVar
|
|
1557554
|
+
prefix: prefix2,
|
|
1557555
|
+
headerEnvVar,
|
|
1557540
1557556
|
docs: this.securityScheme.description
|
|
1557541
1557557
|
});
|
|
1557542
1557558
|
}
|
|
@@ -1610149,7 +1610165,7 @@ var import_path40 = __toESM(require("path"), 1);
|
|
|
1610149
1610165
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
1610150
1610166
|
var LOGS_FOLDER_NAME = "logs";
|
|
1610151
1610167
|
function getCliSource() {
|
|
1610152
|
-
const version7 = "3.48.
|
|
1610168
|
+
const version7 = "3.48.1";
|
|
1610153
1610169
|
return `cli@${version7}`;
|
|
1610154
1610170
|
}
|
|
1610155
1610171
|
var DebugLogger = class {
|
package/package.json
CHANGED