@fern-api/fern-api-dev 3.42.2 → 3.42.4
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 +23 -8
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -1309445,7 +1309445,8 @@ var ExperimentalConfig = schemas_exports.object({
|
|
|
1309445
1309445
|
openapiParserV3: schemas_exports.property("openapi-parser-v3", schemas_exports.boolean().optional()),
|
|
1309446
1309446
|
dynamicSnippets: schemas_exports.property("dynamic-snippets", schemas_exports.boolean().optional()),
|
|
1309447
1309447
|
aiExamples: schemas_exports.property("ai-examples", schemas_exports.boolean().optional()),
|
|
1309448
|
-
aiExampleStyleInstructions: schemas_exports.property("ai-example-style-instructions", schemas_exports.string().optional())
|
|
1309448
|
+
aiExampleStyleInstructions: schemas_exports.property("ai-example-style-instructions", schemas_exports.string().optional()),
|
|
1309449
|
+
excludeApis: schemas_exports.property("exclude-apis", schemas_exports.boolean().optional())
|
|
1309449
1309450
|
});
|
|
1309450
1309451
|
|
|
1309451
1309452
|
// ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/AiChatModel.js
|
|
@@ -1415659,7 +1415660,7 @@ var AccessTokenPosthogManager = class {
|
|
|
1415659
1415660
|
properties: {
|
|
1415660
1415661
|
...event,
|
|
1415661
1415662
|
...event.properties,
|
|
1415662
|
-
version: "3.42.
|
|
1415663
|
+
version: "3.42.4",
|
|
1415663
1415664
|
usingAccessToken: true
|
|
1415664
1415665
|
}
|
|
1415665
1415666
|
});
|
|
@@ -1415758,7 +1415759,7 @@ var UserPosthogManager = class {
|
|
|
1415758
1415759
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
1415759
1415760
|
event: "CLI",
|
|
1415760
1415761
|
properties: {
|
|
1415761
|
-
version: "3.42.
|
|
1415762
|
+
version: "3.42.4",
|
|
1415762
1415763
|
...event,
|
|
1415763
1415764
|
...event.properties,
|
|
1415764
1415765
|
usingAccessToken: false,
|
|
@@ -1495952,7 +1495953,7 @@ var CliContext = class {
|
|
|
1495952
1495953
|
if (false) {
|
|
1495953
1495954
|
this.logger.error("CLI_VERSION is not defined");
|
|
1495954
1495955
|
}
|
|
1495955
|
-
return "3.42.
|
|
1495956
|
+
return "3.42.4";
|
|
1495956
1495957
|
}
|
|
1495957
1495958
|
getCliName() {
|
|
1495958
1495959
|
if (false) {
|
|
@@ -1546283,6 +1546284,16 @@ var definitions4 = {
|
|
|
1546283
1546284
|
type: "null"
|
|
1546284
1546285
|
}
|
|
1546285
1546286
|
]
|
|
1546287
|
+
},
|
|
1546288
|
+
"exclude-apis": {
|
|
1546289
|
+
oneOf: [
|
|
1546290
|
+
{
|
|
1546291
|
+
type: "boolean"
|
|
1546292
|
+
},
|
|
1546293
|
+
{
|
|
1546294
|
+
type: "null"
|
|
1546295
|
+
}
|
|
1546296
|
+
]
|
|
1546286
1546297
|
}
|
|
1546287
1546298
|
},
|
|
1546288
1546299
|
additionalProperties: false
|
|
@@ -1591733,7 +1591744,7 @@ var import_path37 = __toESM(require("path"), 1);
|
|
|
1591733
1591744
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
1591734
1591745
|
var LOGS_FOLDER_NAME = "logs";
|
|
1591735
1591746
|
function getCliSource() {
|
|
1591736
|
-
const version6 = "3.42.
|
|
1591747
|
+
const version6 = "3.42.4";
|
|
1591737
1591748
|
return `cli@${version6}`;
|
|
1591738
1591749
|
}
|
|
1591739
1591750
|
var DebugLogger = class {
|
|
@@ -1608000,7 +1608011,7 @@ var ValidLocalReferencesRule = {
|
|
|
1608000
1608011
|
if (invalidRefs.length > 0) {
|
|
1608001
1608012
|
const errorMessage = createInformativeErrorMessage(invalidRefs);
|
|
1608002
1608013
|
violations.push({
|
|
1608003
|
-
severity: "
|
|
1608014
|
+
severity: "warning",
|
|
1608004
1608015
|
name: "Invalid OpenAPI References",
|
|
1608005
1608016
|
message: errorMessage,
|
|
1608006
1608017
|
relativeFilepath: relativePath
|
|
@@ -1626832,9 +1626843,12 @@ async function calculateFileHash(absoluteFilePath) {
|
|
|
1626832
1626843
|
const fileBuffer = await (0, import_promises97.readFile)(absoluteFilePath);
|
|
1626833
1626844
|
return (0, import_crypto9.createHash)("sha256").update(new Uint8Array(fileBuffer)).digest("hex");
|
|
1626834
1626845
|
}
|
|
1626835
|
-
async function publishDocs({ token, organization, docsWorkspace, domain: domain2, customDomains, apiWorkspaces, ossWorkspaces, context: context2, preview, editThisPage, isPrivate = false, disableTemplates = false, skipUpload = false, withAiExamples = true, targetAudiences }) {
|
|
1626846
|
+
async function publishDocs({ token, organization, docsWorkspace, domain: domain2, customDomains, apiWorkspaces, ossWorkspaces, context: context2, preview, editThisPage, isPrivate = false, disableTemplates = false, skipUpload = false, withAiExamples = true, excludeApis = false, targetAudiences }) {
|
|
1626836
1626847
|
const fdr = createFdrService({ token: token.value });
|
|
1626837
1626848
|
const authConfig = isPrivate ? { type: "private", authType: "sso" } : { type: "public" };
|
|
1626849
|
+
if (excludeApis) {
|
|
1626850
|
+
context2.logger.debug("Experimental flag 'exclude-apis' is enabled - API references will be excluded from S3 upload");
|
|
1626851
|
+
}
|
|
1626838
1626852
|
let docsRegistrationId;
|
|
1626839
1626853
|
let urlToOutput = customDomains[0] ?? domain2;
|
|
1626840
1626854
|
const basePath = parseBasePath(domain2);
|
|
@@ -1627103,7 +1627117,7 @@ ${JSON.stringify(errorDetails, void 0, 2)}`);
|
|
|
1627103
1627117
|
const publishStart = performance.now();
|
|
1627104
1627118
|
const registerDocsResponse = await fdr.docs.v2.write.finishDocsRegister(DocsV1Write_exports.DocsRegistrationId(docsRegistrationId), {
|
|
1627105
1627119
|
docsDefinition,
|
|
1627106
|
-
excludeApis
|
|
1627120
|
+
excludeApis,
|
|
1627107
1627121
|
libraryDocs: libraryDocsConfig
|
|
1627108
1627122
|
});
|
|
1627109
1627123
|
if (registerDocsResponse.ok) {
|
|
@@ -1627693,6 +1627707,7 @@ async function runRemoteGenerationForDocsWorkspace({ organization, apiWorkspaces
|
|
|
1627693
1627707
|
disableTemplates,
|
|
1627694
1627708
|
skipUpload,
|
|
1627695
1627709
|
withAiExamples: docsWorkspace.config.aiExamples?.enabled ?? docsWorkspace.config.experimental?.aiExamples ?? true,
|
|
1627710
|
+
excludeApis: docsWorkspace.config.experimental?.excludeApis ?? false,
|
|
1627696
1627711
|
targetAudiences: maybeInstance.audiences ? Array.isArray(maybeInstance.audiences) ? maybeInstance.audiences : [maybeInstance.audiences] : void 0
|
|
1627697
1627712
|
});
|
|
1627698
1627713
|
const publishTime = performance.now() - publishStart;
|
package/package.json
CHANGED