@fern-api/fern-api-dev 5.120.4 → 5.121.0
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 +35 -10
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -118455,7 +118455,8 @@ var init_DocsYmlSchemas = __esm({
|
|
|
118455
118455
|
"system-prompt": external_exports.string().optional(),
|
|
118456
118456
|
location: external_exports.array(AIChatLocation).optional(),
|
|
118457
118457
|
datasources: external_exports.array(AIChatDatasource).optional(),
|
|
118458
|
-
"mask-pii": external_exports.boolean().optional()
|
|
118458
|
+
"mask-pii": external_exports.boolean().optional(),
|
|
118459
|
+
disclaimer: external_exports.string().optional()
|
|
118459
118460
|
});
|
|
118460
118461
|
FontConfigVariant = external_exports.object({
|
|
118461
118462
|
path: external_exports.string(),
|
|
@@ -122928,7 +122929,8 @@ var init_AiChatConfig2 = __esm({
|
|
|
122928
122929
|
systemPrompt: schemas_exports6.property("system-prompt", schemas_exports6.string().optional()),
|
|
122929
122930
|
location: schemas_exports6.list(AiChatLocation2).optional(),
|
|
122930
122931
|
datasources: schemas_exports6.list(AiChatDatasource).optional(),
|
|
122931
|
-
maskPii: schemas_exports6.property("mask-pii", schemas_exports6.boolean().optional())
|
|
122932
|
+
maskPii: schemas_exports6.property("mask-pii", schemas_exports6.boolean().optional()),
|
|
122933
|
+
disclaimer: schemas_exports6.string().optional()
|
|
122932
122934
|
});
|
|
122933
122935
|
}
|
|
122934
122936
|
});
|
|
@@ -464492,6 +464494,17 @@ var init_docs_yml_schema = __esm({
|
|
|
464492
464494
|
}
|
|
464493
464495
|
],
|
|
464494
464496
|
description: "When enabled, personally identifiable information (PII) in user messages is masked before\nbeing sent to Ask Fern. Disabled by default."
|
|
464497
|
+
},
|
|
464498
|
+
disclaimer: {
|
|
464499
|
+
oneOf: [
|
|
464500
|
+
{
|
|
464501
|
+
type: "string"
|
|
464502
|
+
},
|
|
464503
|
+
{
|
|
464504
|
+
type: "null"
|
|
464505
|
+
}
|
|
464506
|
+
],
|
|
464507
|
+
description: 'Overrides the disclaimer shown in the Ask Fern chat\n(default: "Responses are generated using AI and may contain mistakes.").'
|
|
464495
464508
|
}
|
|
464496
464509
|
},
|
|
464497
464510
|
additionalProperties: false
|
|
@@ -475537,6 +475550,16 @@ function createEditThisPageUrl(editThisPage, pageFilepath) {
|
|
|
475537
475550
|
const url3 = `${wrapWithHttps(host)}/${owner}/${repo}/blob/${branch}/fern/${pageFilepath}?plain=1`;
|
|
475538
475551
|
return { url: url3, launch: launch4 };
|
|
475539
475552
|
}
|
|
475553
|
+
function convertThemeTabs(tabs) {
|
|
475554
|
+
if (tabs == null || typeof tabs === "string") {
|
|
475555
|
+
return tabs;
|
|
475556
|
+
}
|
|
475557
|
+
return {
|
|
475558
|
+
style: tabs.style,
|
|
475559
|
+
alignment: tabs.alignment?.toUpperCase(),
|
|
475560
|
+
placement: tabs.placement?.toUpperCase()
|
|
475561
|
+
};
|
|
475562
|
+
}
|
|
475540
475563
|
function convertAvailability5(availability) {
|
|
475541
475564
|
switch (availability) {
|
|
475542
475565
|
case "beta":
|
|
@@ -476192,7 +476215,8 @@ var init_DocsDefinitionResolver = __esm({
|
|
|
476192
476215
|
url: ds2.url,
|
|
476193
476216
|
title: ds2.title
|
|
476194
476217
|
})),
|
|
476195
|
-
maskPii: this.parsedDocsConfig.aiChatConfig.maskPii
|
|
476218
|
+
maskPii: this.parsedDocsConfig.aiChatConfig.maskPii,
|
|
476219
|
+
disclaimer: this.parsedDocsConfig.aiChatConfig.disclaimer
|
|
476196
476220
|
} : void 0,
|
|
476197
476221
|
hideNavLinks: void 0,
|
|
476198
476222
|
title: this.parsedDocsConfig.title,
|
|
@@ -476287,7 +476311,7 @@ var init_DocsDefinitionResolver = __esm({
|
|
|
476287
476311
|
theme: this.parsedDocsConfig.theme != null ? {
|
|
476288
476312
|
sidebar: this.parsedDocsConfig.theme.sidebar,
|
|
476289
476313
|
body: this.parsedDocsConfig.theme.body,
|
|
476290
|
-
tabs: this.parsedDocsConfig.theme.tabs,
|
|
476314
|
+
tabs: convertThemeTabs(this.parsedDocsConfig.theme.tabs),
|
|
476291
476315
|
"page-actions": this.parsedDocsConfig.theme.pageActions,
|
|
476292
476316
|
footerNav: this.parsedDocsConfig.theme.footerNav,
|
|
476293
476317
|
"language-switcher": this.parsedDocsConfig.theme.languageSwitcher,
|
|
@@ -706740,7 +706764,7 @@ var AccessTokenPosthogManager = class {
|
|
|
706740
706764
|
properties: {
|
|
706741
706765
|
...event,
|
|
706742
706766
|
...event.properties,
|
|
706743
|
-
version: "5.
|
|
706767
|
+
version: "5.121.0",
|
|
706744
706768
|
usingAccessToken: true,
|
|
706745
706769
|
...getRunIdProperties()
|
|
706746
706770
|
}
|
|
@@ -706806,7 +706830,7 @@ var UserPosthogManager = class {
|
|
|
706806
706830
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
706807
706831
|
event: "CLI",
|
|
706808
706832
|
properties: {
|
|
706809
|
-
version: "5.
|
|
706833
|
+
version: "5.121.0",
|
|
706810
706834
|
...event,
|
|
706811
706835
|
...event.properties,
|
|
706812
706836
|
usingAccessToken: false,
|
|
@@ -888509,7 +888533,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
888509
888533
|
var LOGS_FOLDER_NAME = "logs";
|
|
888510
888534
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
888511
888535
|
function getCliSource() {
|
|
888512
|
-
const version7 = "5.
|
|
888536
|
+
const version7 = "5.121.0";
|
|
888513
888537
|
return `cli@${version7}`;
|
|
888514
888538
|
}
|
|
888515
888539
|
var DebugLogger = class {
|
|
@@ -915857,7 +915881,7 @@ var LegacyDocsPublisher = class {
|
|
|
915857
915881
|
previewId,
|
|
915858
915882
|
disableTemplates: void 0,
|
|
915859
915883
|
skipUpload,
|
|
915860
|
-
cliVersion: "5.
|
|
915884
|
+
cliVersion: "5.121.0",
|
|
915861
915885
|
loginCommand: "fern auth login"
|
|
915862
915886
|
});
|
|
915863
915887
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -966885,6 +966909,7 @@ var NamingConfigSchema = external_exports2.union([jsIdentifier, NamingObjectSche
|
|
|
966885
966909
|
var TypescriptCustomConfigSchema = external_exports2.strictObject({
|
|
966886
966910
|
neverThrowErrors: external_exports2.optional(external_exports2.boolean()),
|
|
966887
966911
|
outputEsm: external_exports2.optional(external_exports2.boolean()),
|
|
966912
|
+
esmOnly: external_exports2.optional(external_exports2.boolean()),
|
|
966888
966913
|
outputSourceFiles: external_exports2.optional(external_exports2.boolean()),
|
|
966889
966914
|
outputSrcOnly: external_exports2.optional(external_exports2.boolean()),
|
|
966890
966915
|
includeCredentialsOnCrossOriginRequests: external_exports2.optional(external_exports2.boolean()),
|
|
@@ -983281,7 +983306,7 @@ function getAutomationContextFromEnv() {
|
|
|
983281
983306
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
983282
983307
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
983283
983308
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
983284
|
-
cli_version: "5.
|
|
983309
|
+
cli_version: "5.121.0"
|
|
983285
983310
|
};
|
|
983286
983311
|
}
|
|
983287
983312
|
function isAutomationMode() {
|
|
@@ -984113,7 +984138,7 @@ var CliContext = class _CliContext {
|
|
|
984113
984138
|
if (false) {
|
|
984114
984139
|
this.logger.error("CLI_VERSION is not defined");
|
|
984115
984140
|
}
|
|
984116
|
-
return "5.
|
|
984141
|
+
return "5.121.0";
|
|
984117
984142
|
}
|
|
984118
984143
|
getCliName() {
|
|
984119
984144
|
if (false) {
|
package/package.json
CHANGED