@fern-api/fern-api-dev 4.62.0 → 4.62.2-34-ga1f0b26df6c
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 +22 -24
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -495944,7 +495944,6 @@ var EditThisPageConfig = external_exports.object({
|
|
|
495944
495944
|
var DocsInstance = external_exports.object({
|
|
495945
495945
|
url: external_exports.string(),
|
|
495946
495946
|
"custom-domain": CustomDomain.optional(),
|
|
495947
|
-
private: external_exports.boolean().optional(),
|
|
495948
495947
|
"edit-this-page": EditThisPageConfig.optional(),
|
|
495949
495948
|
audiences: Audience.optional()
|
|
495950
495949
|
});
|
|
@@ -499021,7 +499020,6 @@ var EditThisPageConfig2 = schemas_exports6.object({
|
|
|
499021
499020
|
var DocsInstance2 = schemas_exports6.object({
|
|
499022
499021
|
url: schemas_exports6.string(),
|
|
499023
499022
|
customDomain: schemas_exports6.property("custom-domain", CustomDomain2.optional()),
|
|
499024
|
-
private: schemas_exports6.boolean().optional(),
|
|
499025
499023
|
editThisPage: schemas_exports6.property("edit-this-page", EditThisPageConfig2.optional()),
|
|
499026
499024
|
audiences: Audience2.optional()
|
|
499027
499025
|
});
|
|
@@ -529881,6 +529879,12 @@ function multipartOrJsonOrNone({ json: json3, multipart, document: document4, vi
|
|
|
529881
529879
|
const [, jsonMediaTypeObject] = json3 ?? [void 0, void 0];
|
|
529882
529880
|
const [, multipartMediaTypeObject] = multipart ?? [void 0, void 0];
|
|
529883
529881
|
if (!jsonMediaTypeObject?.schema && !multipartMediaTypeObject?.schema) {
|
|
529882
|
+
if (json3) {
|
|
529883
|
+
const hasExamples = jsonMediaTypeObject?.example != null || jsonMediaTypeObject?.examples != null && Object.keys(jsonMediaTypeObject.examples).length > 0;
|
|
529884
|
+
if (hasExamples) {
|
|
529885
|
+
return visitor.json(json3);
|
|
529886
|
+
}
|
|
529887
|
+
}
|
|
529884
529888
|
return visitor.neither();
|
|
529885
529889
|
}
|
|
529886
529890
|
if (jsonMediaTypeObject?.schema && multipartMediaTypeObject?.schema) {
|
|
@@ -602750,7 +602754,7 @@ var AccessTokenPosthogManager = class {
|
|
|
602750
602754
|
properties: {
|
|
602751
602755
|
...event,
|
|
602752
602756
|
...event.properties,
|
|
602753
|
-
version: "4.62.
|
|
602757
|
+
version: "4.62.2-34-ga1f0b26df6c",
|
|
602754
602758
|
usingAccessToken: true
|
|
602755
602759
|
}
|
|
602756
602760
|
});
|
|
@@ -602801,7 +602805,7 @@ var UserPosthogManager = class {
|
|
|
602801
602805
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
602802
602806
|
event: "CLI",
|
|
602803
602807
|
properties: {
|
|
602804
|
-
version: "4.62.
|
|
602808
|
+
version: "4.62.2-34-ga1f0b26df6c",
|
|
602805
602809
|
...event,
|
|
602806
602810
|
...event.properties,
|
|
602807
602811
|
usingAccessToken: false,
|
|
@@ -752789,7 +752793,7 @@ var V66_TO_V65_MIGRATION = {
|
|
|
752789
752793
|
[GeneratorName.POSTMAN]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
752790
752794
|
[GeneratorName.GO_MODEL]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
752791
752795
|
[GeneratorName.GO_SDK]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
752792
|
-
[GeneratorName.RUBY_SDK]:
|
|
752796
|
+
[GeneratorName.RUBY_SDK]: "1.3.0-rc.0",
|
|
752793
752797
|
[GeneratorName.CSHARP_MODEL]: "0.9.0-rc.0",
|
|
752794
752798
|
[GeneratorName.CSHARP_SDK]: "2.57.0-rc.0",
|
|
752795
752799
|
[GeneratorName.SWIFT_MODEL]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
@@ -840089,7 +840093,7 @@ var import_path54 = __toESM(require("path"), 1);
|
|
|
840089
840093
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
840090
840094
|
var LOGS_FOLDER_NAME = "logs";
|
|
840091
840095
|
function getCliSource() {
|
|
840092
|
-
const version7 = "4.62.
|
|
840096
|
+
const version7 = "4.62.2-34-ga1f0b26df6c";
|
|
840093
840097
|
return `cli@${version7}`;
|
|
840094
840098
|
}
|
|
840095
840099
|
var DebugLogger = class {
|
|
@@ -843592,16 +843596,6 @@ var definitions6 = {
|
|
|
843592
843596
|
}
|
|
843593
843597
|
]
|
|
843594
843598
|
},
|
|
843595
|
-
private: {
|
|
843596
|
-
oneOf: [
|
|
843597
|
-
{
|
|
843598
|
-
type: "boolean"
|
|
843599
|
-
},
|
|
843600
|
-
{
|
|
843601
|
-
type: "null"
|
|
843602
|
-
}
|
|
843603
|
-
]
|
|
843604
|
-
},
|
|
843605
843599
|
"edit-this-page": {
|
|
843606
843600
|
oneOf: [
|
|
843607
843601
|
{
|
|
@@ -850236,7 +850230,7 @@ async function calculateFileHash(absoluteFilePath) {
|
|
|
850236
850230
|
function sanitizeRelativePathForS3(relativeFilePath) {
|
|
850237
850231
|
return relativeFilePath.replace(/\.\.\//g, "_dot_dot_/");
|
|
850238
850232
|
}
|
|
850239
|
-
async function publishDocs({ token, organization, docsWorkspace, domain: domain3, customDomains, apiWorkspaces, ossWorkspaces, context: context3, preview, previewId, editThisPage,
|
|
850233
|
+
async function publishDocs({ token, organization, docsWorkspace, domain: domain3, customDomains, apiWorkspaces, ossWorkspaces, context: context3, preview, previewId, editThisPage, disableTemplates = false, skipUpload = false, withAiExamples = true, excludeApis = false, targetAudiences, docsUrl, cliVersion, ciSource, deployerAuthor }) {
|
|
850240
850234
|
const fdrOrigin = "https://registry-dev2.buildwithfern.com";
|
|
850241
850235
|
const isAirGapped = await detectAirGappedMode(`${fdrOrigin}/health`, context3.logger);
|
|
850242
850236
|
if (isAirGapped) {
|
|
@@ -850260,7 +850254,7 @@ async function publishDocs({ token, organization, docsWorkspace, domain: domain3
|
|
|
850260
850254
|
token: token.value,
|
|
850261
850255
|
...Object.keys(headers2).length > 0 && { headers: headers2 }
|
|
850262
850256
|
});
|
|
850263
|
-
const authConfig =
|
|
850257
|
+
const authConfig = { type: "public" };
|
|
850264
850258
|
if (excludeApis) {
|
|
850265
850259
|
context3.logger.debug("Experimental flag 'exclude-apis' is enabled - API references will be excluded from S3 upload");
|
|
850266
850260
|
}
|
|
@@ -850347,7 +850341,7 @@ async function publishDocs({ token, organization, docsWorkspace, domain: domain3
|
|
|
850347
850341
|
if (preview) {
|
|
850348
850342
|
const startDocsRegisterResponse = await fdr.docs.v2.write.startDocsPreviewRegister({
|
|
850349
850343
|
orgId: FdrAPI_exports.OrgId(organization),
|
|
850350
|
-
authConfig:
|
|
850344
|
+
authConfig: { type: "public" },
|
|
850351
850345
|
filepaths,
|
|
850352
850346
|
images,
|
|
850353
850347
|
basePath,
|
|
@@ -851140,7 +851134,6 @@ async function runRemoteGenerationForDocsWorkspace({ organization, apiWorkspaces
|
|
|
851140
851134
|
preview,
|
|
851141
851135
|
previewId,
|
|
851142
851136
|
editThisPage: maybeInstance.editThisPage,
|
|
851143
|
-
isPrivate: maybeInstance.private,
|
|
851144
851137
|
disableTemplates,
|
|
851145
851138
|
skipUpload,
|
|
851146
851139
|
withAiExamples: docsWorkspace.config.aiExamples?.enabled ?? docsWorkspace.config.experimental?.aiExamples ?? true,
|
|
@@ -851193,7 +851186,7 @@ var LegacyDocsPublisher = class {
|
|
|
851193
851186
|
/**
|
|
851194
851187
|
* Publish the docs workspace to the given instance.
|
|
851195
851188
|
*/
|
|
851196
|
-
async publish({ instanceUrl, preview, skipUpload }) {
|
|
851189
|
+
async publish({ instanceUrl, preview, previewId, skipUpload }) {
|
|
851197
851190
|
const taskContext = new TaskContextAdapter({ context: this.context, task: this.task });
|
|
851198
851191
|
try {
|
|
851199
851192
|
const url3 = await runRemoteGenerationForDocsWorkspace({
|
|
@@ -851205,10 +851198,10 @@ var LegacyDocsPublisher = class {
|
|
|
851205
851198
|
token: this.token,
|
|
851206
851199
|
instanceUrl,
|
|
851207
851200
|
preview,
|
|
851208
|
-
previewId
|
|
851201
|
+
previewId,
|
|
851209
851202
|
disableTemplates: void 0,
|
|
851210
851203
|
skipUpload,
|
|
851211
|
-
cliVersion: "4.62.
|
|
851204
|
+
cliVersion: "4.62.2-34-ga1f0b26df6c"
|
|
851212
851205
|
});
|
|
851213
851206
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
851214
851207
|
return { success: false };
|
|
@@ -851863,6 +851856,7 @@ var PublishCommand = class {
|
|
|
851863
851856
|
const result = await publisher.publish({
|
|
851864
851857
|
instanceUrl,
|
|
851865
851858
|
preview: args.preview,
|
|
851859
|
+
previewId: args.previewId,
|
|
851866
851860
|
skipUpload: args["skip-upload"] || void 0
|
|
851867
851861
|
});
|
|
851868
851862
|
if (!result.success) {
|
|
@@ -852046,6 +852040,7 @@ var PreviewCommand = class {
|
|
|
852046
852040
|
await this.publishCommand.handle(context3, {
|
|
852047
852041
|
...args,
|
|
852048
852042
|
preview: true,
|
|
852043
|
+
previewId: args.id,
|
|
852049
852044
|
force: true
|
|
852050
852045
|
});
|
|
852051
852046
|
}
|
|
@@ -852064,6 +852059,9 @@ function addPreviewCommand(cli) {
|
|
|
852064
852059
|
type: "boolean",
|
|
852065
852060
|
default: false,
|
|
852066
852061
|
description: "Treat all validation warnings as errors"
|
|
852062
|
+
}).option("id", {
|
|
852063
|
+
type: "string",
|
|
852064
|
+
description: "A stable identifier for the preview. Reusing the same ID overwrites the previous preview, keeping the URL stable."
|
|
852067
852065
|
}).option("skip-upload", {
|
|
852068
852066
|
type: "boolean",
|
|
852069
852067
|
default: false,
|
|
@@ -924491,7 +924489,7 @@ var CliContext = class {
|
|
|
924491
924489
|
if (false) {
|
|
924492
924490
|
this.logger.error("CLI_VERSION is not defined");
|
|
924493
924491
|
}
|
|
924494
|
-
return "4.62.
|
|
924492
|
+
return "4.62.2-34-ga1f0b26df6c";
|
|
924495
924493
|
}
|
|
924496
924494
|
getCliName() {
|
|
924497
924495
|
if (false) {
|
package/package.json
CHANGED