@fern-api/fern-api-dev 5.82.0 → 5.83.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 -10
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -73646,6 +73646,7 @@ var init_OAuthAuthorizationCode2 = __esm({
|
|
|
73646
73646
|
tokenUrl: schemas_exports3.string(),
|
|
73647
73647
|
refreshUrl: schemas_exports3.string().optional(),
|
|
73648
73648
|
redirectUri: schemas_exports3.string().optional(),
|
|
73649
|
+
redirectUriBackupPorts: schemas_exports3.list(schemas_exports3.number()).optional(),
|
|
73649
73650
|
scopes: schemas_exports3.list(schemas_exports3.string()).optional(),
|
|
73650
73651
|
pkce: OAuthPkceConfiguration,
|
|
73651
73652
|
authorizationParameters: schemas_exports3.record(schemas_exports3.string(), schemas_exports3.string()).optional(),
|
|
@@ -356470,7 +356471,7 @@ var init_MethodConverter = __esm({
|
|
|
356470
356471
|
autogeneratedExamples: [],
|
|
356471
356472
|
v2Examples: {
|
|
356472
356473
|
autogeneratedExamples: {},
|
|
356473
|
-
userSpecifiedExamples: this.convertExamples()
|
|
356474
|
+
userSpecifiedExamples: this.convertExamples(pathString)
|
|
356474
356475
|
},
|
|
356475
356476
|
transport: void 0,
|
|
356476
356477
|
availability: void 0,
|
|
@@ -356510,8 +356511,17 @@ var init_MethodConverter = __esm({
|
|
|
356510
356511
|
});
|
|
356511
356512
|
return baseUrls;
|
|
356512
356513
|
}
|
|
356513
|
-
convertExamples() {
|
|
356514
|
+
convertExamples(path120) {
|
|
356514
356515
|
const examples = {};
|
|
356516
|
+
const pathParameters = {};
|
|
356517
|
+
for (const parameter6 of this.pathParameters) {
|
|
356518
|
+
const userExample = Object.values(parameter6.v2Examples?.userSpecifiedExamples ?? {})[0];
|
|
356519
|
+
const autogeneratedExample = Object.values(parameter6.v2Examples?.autogeneratedExamples ?? {})[0];
|
|
356520
|
+
const example = userExample !== void 0 ? userExample : autogeneratedExample;
|
|
356521
|
+
if (example !== void 0) {
|
|
356522
|
+
pathParameters[getOriginalName(parameter6.name)] = example;
|
|
356523
|
+
}
|
|
356524
|
+
}
|
|
356515
356525
|
let i5 = 0;
|
|
356516
356526
|
if (this.method.examples && this.method.examples.length > 0) {
|
|
356517
356527
|
for (const example of this.method.examples ?? []) {
|
|
@@ -356567,12 +356577,12 @@ var init_MethodConverter = __esm({
|
|
|
356567
356577
|
docs: void 0,
|
|
356568
356578
|
endpoint: {
|
|
356569
356579
|
method: "POST",
|
|
356570
|
-
path:
|
|
356580
|
+
path: path120
|
|
356571
356581
|
},
|
|
356572
356582
|
baseUrl: void 0,
|
|
356573
356583
|
environment: void 0,
|
|
356574
356584
|
auth: void 0,
|
|
356575
|
-
pathParameters
|
|
356585
|
+
pathParameters,
|
|
356576
356586
|
queryParameters: {},
|
|
356577
356587
|
headers: {},
|
|
356578
356588
|
requestBody: resolvedParams.map((param) => param.value) ?? void 0
|
|
@@ -692024,7 +692034,7 @@ var AccessTokenPosthogManager = class {
|
|
|
692024
692034
|
properties: {
|
|
692025
692035
|
...event,
|
|
692026
692036
|
...event.properties,
|
|
692027
|
-
version: "5.
|
|
692037
|
+
version: "5.83.1",
|
|
692028
692038
|
usingAccessToken: true,
|
|
692029
692039
|
...getRunIdProperties()
|
|
692030
692040
|
}
|
|
@@ -692090,7 +692100,7 @@ var UserPosthogManager = class {
|
|
|
692090
692100
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
692091
692101
|
event: "CLI",
|
|
692092
692102
|
properties: {
|
|
692093
|
-
version: "5.
|
|
692103
|
+
version: "5.83.1",
|
|
692094
692104
|
...event,
|
|
692095
692105
|
...event.properties,
|
|
692096
692106
|
usingAccessToken: false,
|
|
@@ -873196,7 +873206,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
873196
873206
|
var LOGS_FOLDER_NAME = "logs";
|
|
873197
873207
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
873198
873208
|
function getCliSource() {
|
|
873199
|
-
const version7 = "5.
|
|
873209
|
+
const version7 = "5.83.1";
|
|
873200
873210
|
return `cli@${version7}`;
|
|
873201
873211
|
}
|
|
873202
873212
|
var DebugLogger = class {
|
|
@@ -905892,7 +905902,7 @@ var LegacyDocsPublisher = class {
|
|
|
905892
905902
|
previewId,
|
|
905893
905903
|
disableTemplates: void 0,
|
|
905894
905904
|
skipUpload,
|
|
905895
|
-
cliVersion: "5.
|
|
905905
|
+
cliVersion: "5.83.1",
|
|
905896
905906
|
loginCommand: "fern auth login"
|
|
905897
905907
|
});
|
|
905898
905908
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -956432,6 +956442,15 @@ var TypescriptCustomConfigSchema = external_exports2.strictObject({
|
|
|
956432
956442
|
customPagerName: external_exports2.optional(external_exports2.string()),
|
|
956433
956443
|
resolveQueryParameterNameConflicts: external_exports2.optional(external_exports2.boolean()),
|
|
956434
956444
|
alwaysSendAuth: external_exports2.optional(external_exports2.boolean()),
|
|
956445
|
+
// When true, makes client auth parameters optional even when the spec
|
|
956446
|
+
// mandates auth on all endpoints (isAuthMandatory=true), and sends requests
|
|
956447
|
+
// unauthenticated instead of throwing when no credentials are supplied.
|
|
956448
|
+
// Useful for hand-maintained wrapper clients that authenticate via external
|
|
956449
|
+
// means. Orthogonal to `alwaysSendAuth`, which decides which endpoints get
|
|
956450
|
+
// auth headers: with both enabled, endpoints that don't require auth still
|
|
956451
|
+
// get auth headers when credentials are supplied, and no endpoint gets them
|
|
956452
|
+
// when credentials are absent.
|
|
956453
|
+
"optional-auth": external_exports2.optional(external_exports2.boolean()),
|
|
956435
956454
|
generateReactQueryHooks: external_exports2.optional(external_exports2.boolean()),
|
|
956436
956455
|
// beta (not in docs)
|
|
956437
956456
|
includeContentHeadersOnFileDownloadResponse: external_exports2.optional(external_exports2.boolean()),
|
|
@@ -972757,7 +972776,7 @@ function getAutomationContextFromEnv() {
|
|
|
972757
972776
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
972758
972777
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
972759
972778
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
972760
|
-
cli_version: "5.
|
|
972779
|
+
cli_version: "5.83.1"
|
|
972761
972780
|
};
|
|
972762
972781
|
}
|
|
972763
972782
|
function isAutomationMode() {
|
|
@@ -973589,7 +973608,7 @@ var CliContext = class _CliContext {
|
|
|
973589
973608
|
if (false) {
|
|
973590
973609
|
this.logger.error("CLI_VERSION is not defined");
|
|
973591
973610
|
}
|
|
973592
|
-
return "5.
|
|
973611
|
+
return "5.83.1";
|
|
973593
973612
|
}
|
|
973594
973613
|
getCliName() {
|
|
973595
973614
|
if (false) {
|
package/package.json
CHANGED