@fern-api/fern-api-dev 4.103.1 → 4.105.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 +137 -42
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -346934,7 +346934,14 @@ var require_pushSignedCommit = __commonJS({
|
|
|
346934
346934
|
return typeof err === "object" && err != null && "status" in err && typeof err.status === "number";
|
|
346935
346935
|
}
|
|
346936
346936
|
function isNotFoundError(err) {
|
|
346937
|
-
|
|
346937
|
+
if (hasNumericStatus(err) && err.status === 404) {
|
|
346938
|
+
return true;
|
|
346939
|
+
}
|
|
346940
|
+
if (hasNumericStatus(err) && err.status === 422) {
|
|
346941
|
+
const message = (0, core_utils_1.extractErrorMessage)(err).toLowerCase();
|
|
346942
|
+
return message.includes("reference does not exist");
|
|
346943
|
+
}
|
|
346944
|
+
return false;
|
|
346938
346945
|
}
|
|
346939
346946
|
function isNonFastForwardError(err) {
|
|
346940
346947
|
if (!hasNumericStatus(err) || err.status !== 422) {
|
|
@@ -510181,6 +510188,7 @@ __export(DocsYmlSchemas_exports, {
|
|
|
510181
510188
|
ThemeConfig: () => ThemeConfig,
|
|
510182
510189
|
TitleSource: () => TitleSource,
|
|
510183
510190
|
TranslationConfig: () => TranslationConfig,
|
|
510191
|
+
TranslationConfigObject: () => TranslationConfigObject,
|
|
510184
510192
|
TwitterCardSetting: () => TwitterCardSetting,
|
|
510185
510193
|
UntabbedNavigationConfig: () => UntabbedNavigationConfig,
|
|
510186
510194
|
VersionAvailability: () => VersionAvailability,
|
|
@@ -510189,7 +510197,8 @@ __export(DocsYmlSchemas_exports, {
|
|
|
510189
510197
|
VersionedSnippetLanguageConfiguration: () => VersionedSnippetLanguageConfiguration,
|
|
510190
510198
|
WithFeatureFlags: () => WithFeatureFlags,
|
|
510191
510199
|
WithPermissions: () => WithPermissions,
|
|
510192
|
-
WithViewers: () => WithViewers
|
|
510200
|
+
WithViewers: () => WithViewers,
|
|
510201
|
+
normalizeTranslationConfig: () => normalizeTranslationConfig
|
|
510193
510202
|
});
|
|
510194
510203
|
var TabId = external_exports.string();
|
|
510195
510204
|
var ChangelogFolderRelativePath = external_exports.string();
|
|
@@ -510853,10 +510862,17 @@ var ProductFileConfig = external_exports.object({
|
|
|
510853
510862
|
"landing-page": PageConfiguration.optional(),
|
|
510854
510863
|
navigation: NavigationConfig
|
|
510855
510864
|
});
|
|
510856
|
-
var
|
|
510865
|
+
var TranslationConfigObject = external_exports.object({
|
|
510857
510866
|
lang: Language,
|
|
510858
510867
|
default: external_exports.boolean().optional()
|
|
510859
510868
|
});
|
|
510869
|
+
var TranslationConfig = external_exports.union([Language, TranslationConfigObject]);
|
|
510870
|
+
function normalizeTranslationConfig(config5) {
|
|
510871
|
+
if (typeof config5 === "string") {
|
|
510872
|
+
return { lang: config5 };
|
|
510873
|
+
}
|
|
510874
|
+
return config5;
|
|
510875
|
+
}
|
|
510860
510876
|
var DocsConfiguration = external_exports.object({
|
|
510861
510877
|
instances: external_exports.array(DocsInstance),
|
|
510862
510878
|
title: external_exports.string().optional(),
|
|
@@ -510879,7 +510895,8 @@ var DocsConfiguration = external_exports.object({
|
|
|
510879
510895
|
if (translations == null) {
|
|
510880
510896
|
return;
|
|
510881
510897
|
}
|
|
510882
|
-
const
|
|
510898
|
+
const normalizedTranslations = translations.map(normalizeTranslationConfig);
|
|
510899
|
+
const defaultCount = normalizedTranslations.filter((t3) => t3.default === true).length;
|
|
510883
510900
|
if (defaultCount > 1) {
|
|
510884
510901
|
ctx.addIssue({
|
|
510885
510902
|
code: external_exports.ZodIssueCode.custom,
|
|
@@ -511311,7 +511328,8 @@ var FernDocsConfigError = class extends Error {
|
|
|
511311
511328
|
statusCode;
|
|
511312
511329
|
body;
|
|
511313
511330
|
rawResponse;
|
|
511314
|
-
|
|
511331
|
+
cause;
|
|
511332
|
+
constructor({ message, statusCode, body, rawResponse, cause }) {
|
|
511315
511333
|
super(buildMessage2({ message, statusCode, body }));
|
|
511316
511334
|
Object.setPrototypeOf(this, new.target.prototype);
|
|
511317
511335
|
if (Error.captureStackTrace) {
|
|
@@ -511321,6 +511339,9 @@ var FernDocsConfigError = class extends Error {
|
|
|
511321
511339
|
this.statusCode = statusCode;
|
|
511322
511340
|
this.body = body;
|
|
511323
511341
|
this.rawResponse = rawResponse;
|
|
511342
|
+
if (cause != null) {
|
|
511343
|
+
this.cause = cause;
|
|
511344
|
+
}
|
|
511324
511345
|
}
|
|
511325
511346
|
};
|
|
511326
511347
|
function buildMessage2({ message, statusCode, body }) {
|
|
@@ -511339,13 +511360,17 @@ function buildMessage2({ message, statusCode, body }) {
|
|
|
511339
511360
|
|
|
511340
511361
|
// ../configuration/lib/docs-yml/schemas/sdk/errors/FernDocsConfigTimeoutError.js
|
|
511341
511362
|
var FernDocsConfigTimeoutError = class extends Error {
|
|
511342
|
-
|
|
511363
|
+
cause;
|
|
511364
|
+
constructor(message, opts) {
|
|
511343
511365
|
super(message);
|
|
511344
511366
|
Object.setPrototypeOf(this, new.target.prototype);
|
|
511345
511367
|
if (Error.captureStackTrace) {
|
|
511346
511368
|
Error.captureStackTrace(this, this.constructor);
|
|
511347
511369
|
}
|
|
511348
511370
|
this.name = this.constructor.name;
|
|
511371
|
+
if (opts?.cause != null) {
|
|
511372
|
+
this.cause = opts.cause;
|
|
511373
|
+
}
|
|
511349
511374
|
}
|
|
511350
511375
|
};
|
|
511351
511376
|
|
|
@@ -511619,6 +511644,7 @@ __export(serialization_exports3, {
|
|
|
511619
511644
|
ThemeConfig: () => ThemeConfig2,
|
|
511620
511645
|
TitleSource: () => TitleSource3,
|
|
511621
511646
|
TranslationConfig: () => TranslationConfig2,
|
|
511647
|
+
TranslationConfigObject: () => TranslationConfigObject2,
|
|
511622
511648
|
TwitterCardSetting: () => TwitterCardSetting3,
|
|
511623
511649
|
UntabbedNavigationConfig: () => UntabbedNavigationConfig2,
|
|
511624
511650
|
VersionAvailability: () => VersionAvailability3,
|
|
@@ -511772,6 +511798,7 @@ __export(docs_exports2, {
|
|
|
511772
511798
|
ThemeConfig: () => ThemeConfig2,
|
|
511773
511799
|
TitleSource: () => TitleSource3,
|
|
511774
511800
|
TranslationConfig: () => TranslationConfig2,
|
|
511801
|
+
TranslationConfigObject: () => TranslationConfigObject2,
|
|
511775
511802
|
TwitterCardSetting: () => TwitterCardSetting3,
|
|
511776
511803
|
UntabbedNavigationConfig: () => UntabbedNavigationConfig2,
|
|
511777
511804
|
VersionAvailability: () => VersionAvailability3,
|
|
@@ -511808,6 +511835,7 @@ __export(schemas_exports6, {
|
|
|
511808
511835
|
object: () => object4,
|
|
511809
511836
|
objectWithoutOptionalProperties: () => objectWithoutOptionalProperties3,
|
|
511810
511837
|
optional: () => optional4,
|
|
511838
|
+
partialRecord: () => partialRecord2,
|
|
511811
511839
|
property: () => property4,
|
|
511812
511840
|
record: () => record4,
|
|
511813
511841
|
set: () => set6,
|
|
@@ -511906,22 +511934,24 @@ function stringifyValidationError3(error50) {
|
|
|
511906
511934
|
}
|
|
511907
511935
|
|
|
511908
511936
|
// ../configuration/lib/docs-yml/schemas/sdk/core/schemas/builders/schema-utils/JsonError.js
|
|
511909
|
-
var JsonError3 = class
|
|
511937
|
+
var JsonError3 = class extends Error {
|
|
511910
511938
|
errors;
|
|
511911
511939
|
constructor(errors4) {
|
|
511912
511940
|
super(errors4.map(stringifyValidationError3).join("; "));
|
|
511913
511941
|
this.errors = errors4;
|
|
511914
|
-
Object.setPrototypeOf(this,
|
|
511942
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
511943
|
+
this.name = this.constructor.name;
|
|
511915
511944
|
}
|
|
511916
511945
|
};
|
|
511917
511946
|
|
|
511918
511947
|
// ../configuration/lib/docs-yml/schemas/sdk/core/schemas/builders/schema-utils/ParseError.js
|
|
511919
|
-
var ParseError3 = class
|
|
511948
|
+
var ParseError3 = class extends Error {
|
|
511920
511949
|
errors;
|
|
511921
511950
|
constructor(errors4) {
|
|
511922
511951
|
super(errors4.map(stringifyValidationError3).join("; "));
|
|
511923
511952
|
this.errors = errors4;
|
|
511924
|
-
Object.setPrototypeOf(this,
|
|
511953
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
511954
|
+
this.name = this.constructor.name;
|
|
511925
511955
|
}
|
|
511926
511956
|
};
|
|
511927
511957
|
|
|
@@ -512947,6 +512977,45 @@ function record4(keySchema, valueSchema) {
|
|
|
512947
512977
|
...getSchemaUtils3(baseSchema)
|
|
512948
512978
|
};
|
|
512949
512979
|
}
|
|
512980
|
+
function partialRecord2(keySchema, valueSchema) {
|
|
512981
|
+
const baseSchema = {
|
|
512982
|
+
parse: (raw, opts) => {
|
|
512983
|
+
return validateAndTransformRecord3({
|
|
512984
|
+
value: raw,
|
|
512985
|
+
isKeyNumeric: keySchema.getType() === SchemaType3.NUMBER,
|
|
512986
|
+
transformKey: (key2) => keySchema.parse(key2, {
|
|
512987
|
+
...opts,
|
|
512988
|
+
breadcrumbsPrefix: [...opts?.breadcrumbsPrefix ?? [], `${key2} (key)`]
|
|
512989
|
+
}),
|
|
512990
|
+
transformValue: (value2, key2) => valueSchema.parse(value2, {
|
|
512991
|
+
...opts,
|
|
512992
|
+
breadcrumbsPrefix: [...opts?.breadcrumbsPrefix ?? [], `${key2}`]
|
|
512993
|
+
}),
|
|
512994
|
+
breadcrumbsPrefix: opts?.breadcrumbsPrefix
|
|
512995
|
+
});
|
|
512996
|
+
},
|
|
512997
|
+
json: (parsed, opts) => {
|
|
512998
|
+
return validateAndTransformRecord3({
|
|
512999
|
+
value: parsed,
|
|
513000
|
+
isKeyNumeric: keySchema.getType() === SchemaType3.NUMBER,
|
|
513001
|
+
transformKey: (key2) => keySchema.json(key2, {
|
|
513002
|
+
...opts,
|
|
513003
|
+
breadcrumbsPrefix: [...opts?.breadcrumbsPrefix ?? [], `${key2} (key)`]
|
|
513004
|
+
}),
|
|
513005
|
+
transformValue: (value2, key2) => valueSchema.json(value2, {
|
|
513006
|
+
...opts,
|
|
513007
|
+
breadcrumbsPrefix: [...opts?.breadcrumbsPrefix ?? [], `${key2}`]
|
|
513008
|
+
}),
|
|
513009
|
+
breadcrumbsPrefix: opts?.breadcrumbsPrefix
|
|
513010
|
+
});
|
|
513011
|
+
},
|
|
513012
|
+
getType: () => SchemaType3.RECORD
|
|
513013
|
+
};
|
|
513014
|
+
return {
|
|
513015
|
+
...maybeSkipValidation3(baseSchema),
|
|
513016
|
+
...getSchemaUtils3(baseSchema)
|
|
513017
|
+
};
|
|
513018
|
+
}
|
|
512950
513019
|
function validateAndTransformRecord3({ value: value2, isKeyNumeric, transformKey, transformValue, breadcrumbsPrefix = [] }) {
|
|
512951
513020
|
if (!isPlainObject10(value2)) {
|
|
512952
513021
|
return {
|
|
@@ -514121,12 +514190,15 @@ var ThemeConfig2 = schemas_exports6.object({
|
|
|
514121
514190
|
productSwitcher: schemas_exports6.property("product-switcher", ProductSwitcherThemeConfig3.optional())
|
|
514122
514191
|
});
|
|
514123
514192
|
|
|
514124
|
-
// ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/
|
|
514125
|
-
var
|
|
514193
|
+
// ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/TranslationConfigObject.js
|
|
514194
|
+
var TranslationConfigObject2 = schemas_exports6.object({
|
|
514126
514195
|
lang: Language3,
|
|
514127
514196
|
default: schemas_exports6.boolean().optional()
|
|
514128
514197
|
});
|
|
514129
514198
|
|
|
514199
|
+
// ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/TranslationConfig.js
|
|
514200
|
+
var TranslationConfig2 = schemas_exports6.undiscriminatedUnion([Language3, TranslationConfigObject2]);
|
|
514201
|
+
|
|
514130
514202
|
// ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/DocsConfiguration.js
|
|
514131
514203
|
var DocsConfiguration2 = schemas_exports6.object({
|
|
514132
514204
|
instances: schemas_exports6.list(DocsInstance2),
|
|
@@ -541924,7 +541996,7 @@ async function parseDocsConfiguration({ rawDocsConfiguration, absolutePathToFern
|
|
|
541924
541996
|
rawPath: agents?.llmsFullTxt,
|
|
541925
541997
|
absoluteFilepathToDocsConfig
|
|
541926
541998
|
});
|
|
541927
|
-
const defaultLocale = rawDocsConfiguration.translations?.find((t3) => t3.default === true)?.lang ?? rawDocsConfiguration.translations?.[0]
|
|
541999
|
+
const defaultLocale = rawDocsConfiguration.translations?.map((t3) => docs_yml_exports.DocsYmlSchemas.normalizeTranslationConfig(t3)).find((t3) => t3.default === true)?.lang ?? (rawDocsConfiguration.translations?.[0] != null ? docs_yml_exports.DocsYmlSchemas.normalizeTranslationConfig(rawDocsConfiguration.translations[0]).lang : void 0);
|
|
541928
542000
|
const translationPagesPromise = pagesPromise.then((resolvedPages) => loadTranslationPages({
|
|
541929
542001
|
translations: rawDocsConfiguration.translations,
|
|
541930
542002
|
defaultLocale,
|
|
@@ -542018,12 +542090,7 @@ async function parseDocsConfiguration({ rawDocsConfiguration, absolutePathToFern
|
|
|
542018
542090
|
heap: void 0
|
|
542019
542091
|
},
|
|
542020
542092
|
/* integrations */
|
|
542021
|
-
integrations: {
|
|
542022
|
-
...integrations,
|
|
542023
|
-
// context7 is handled separately via context7File (resolved to AbsoluteFilePath)
|
|
542024
|
-
context7: void 0,
|
|
542025
|
-
intercom: integrations?.intercom ? integrations.intercom : void 0
|
|
542026
|
-
},
|
|
542093
|
+
integrations: integrations != null ? { intercom: integrations.intercom ?? void 0 } : void 0,
|
|
542027
542094
|
/* scripts */
|
|
542028
542095
|
css,
|
|
542029
542096
|
js: js7,
|
|
@@ -543197,7 +543264,8 @@ async function loadTranslationPages({ translations, defaultLocale, pages, absolu
|
|
|
543197
543264
|
}
|
|
543198
543265
|
const translationsRootDir = import_path22.default.join(absolutePathToFernFolder, "translations");
|
|
543199
543266
|
const result = {};
|
|
543200
|
-
|
|
543267
|
+
const normalizedTranslations = translations.map((t3) => docs_yml_exports.DocsYmlSchemas.normalizeTranslationConfig(t3));
|
|
543268
|
+
await Promise.all(normalizedTranslations.map(async ({ lang }) => {
|
|
543201
543269
|
if (lang === defaultLocale) {
|
|
543202
543270
|
return;
|
|
543203
543271
|
}
|
|
@@ -620917,7 +620985,7 @@ var AccessTokenPosthogManager = class {
|
|
|
620917
620985
|
properties: {
|
|
620918
620986
|
...event,
|
|
620919
620987
|
...event.properties,
|
|
620920
|
-
version: "4.
|
|
620988
|
+
version: "4.105.0",
|
|
620921
620989
|
usingAccessToken: true
|
|
620922
620990
|
}
|
|
620923
620991
|
});
|
|
@@ -620971,7 +621039,7 @@ var UserPosthogManager = class {
|
|
|
620971
621039
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
620972
621040
|
event: "CLI",
|
|
620973
621041
|
properties: {
|
|
620974
|
-
version: "4.
|
|
621042
|
+
version: "4.105.0",
|
|
620975
621043
|
...event,
|
|
620976
621044
|
...event.properties,
|
|
620977
621045
|
usingAccessToken: false,
|
|
@@ -798491,13 +798559,14 @@ var DocsDefinitionResolver = class {
|
|
|
798491
798559
|
if (translations == null || translations.length === 0) {
|
|
798492
798560
|
return void 0;
|
|
798493
798561
|
}
|
|
798494
|
-
const
|
|
798562
|
+
const normalizedTranslations = translations.map((t3) => docs_yml_exports.DocsYmlSchemas.normalizeTranslationConfig(t3));
|
|
798563
|
+
const defaultTranslation = normalizedTranslations.find((translation) => translation.default === true) ?? normalizedTranslations[0];
|
|
798495
798564
|
if (defaultTranslation == null) {
|
|
798496
798565
|
return void 0;
|
|
798497
798566
|
}
|
|
798498
798567
|
return {
|
|
798499
798568
|
defaultLocale: defaultTranslation.lang,
|
|
798500
|
-
translations:
|
|
798569
|
+
translations: normalizedTranslations.map((translation) => translation.lang)
|
|
798501
798570
|
};
|
|
798502
798571
|
}
|
|
798503
798572
|
collectedFileIds = /* @__PURE__ */ new Map();
|
|
@@ -806085,11 +806154,12 @@ var TranslationDirectoriesExistRule = {
|
|
|
806085
806154
|
if (translations == null || translations.length === 0) {
|
|
806086
806155
|
return violations;
|
|
806087
806156
|
}
|
|
806088
|
-
const
|
|
806157
|
+
const normalizedTranslations = translations.map((t3) => docs_yml_exports.DocsYmlSchemas.normalizeTranslationConfig(t3));
|
|
806158
|
+
const defaultLocale = (normalizedTranslations.find((t3) => t3.default === true) ?? normalizedTranslations[0])?.lang;
|
|
806089
806159
|
const translationsDir = join8(workspace.absoluteFilePath, RelativeFilePath2.of("translations"));
|
|
806090
806160
|
const translationsDirExists = await doesPathExist(translationsDir);
|
|
806091
806161
|
const missingDirs = [];
|
|
806092
|
-
for (const translation of
|
|
806162
|
+
for (const translation of normalizedTranslations) {
|
|
806093
806163
|
if (translation.lang === defaultLocale) {
|
|
806094
806164
|
continue;
|
|
806095
806165
|
}
|
|
@@ -832265,7 +832335,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
832265
832335
|
var LOGS_FOLDER_NAME = "logs";
|
|
832266
832336
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
832267
832337
|
function getCliSource() {
|
|
832268
|
-
const version7 = "4.
|
|
832338
|
+
const version7 = "4.105.0";
|
|
832269
832339
|
return `cli@${version7}`;
|
|
832270
832340
|
}
|
|
832271
832341
|
var DebugLogger = class {
|
|
@@ -832624,7 +832694,7 @@ var STANDALONE_FOLDER_NAME = "standalone";
|
|
|
832624
832694
|
var LOCAL_STORAGE_FOLDER5 = ".fern-dev";
|
|
832625
832695
|
var INSTRUMENTATION_PATH = "packages/fern-docs/bundle/.next/server/instrumentation.js";
|
|
832626
832696
|
var COREPACK_MISSING_KEYID_ERROR_MESSAGE = 'Cannot find matching keyid: {"signatures":';
|
|
832627
|
-
function
|
|
832697
|
+
function assertLongPathsEnabled(logger4) {
|
|
832628
832698
|
try {
|
|
832629
832699
|
const output2 = (0, import_child_process6.execSync)('reg query "HKLM\\SYSTEM\\CurrentControlSet\\Control\\FileSystem" /v LongPathsEnabled', { encoding: "utf-8", timeout: 5e3 });
|
|
832630
832700
|
const match3 = output2.match(/LongPathsEnabled\s+REG_DWORD\s+0x(\d+)/i);
|
|
@@ -832634,7 +832704,11 @@ function warnIfLongPathsDisabled(logger4) {
|
|
|
832634
832704
|
} catch (error50) {
|
|
832635
832705
|
logger4.debug(`Registry query for LongPathsEnabled failed: ${error50}`);
|
|
832636
832706
|
}
|
|
832637
|
-
|
|
832707
|
+
throw new CliError({
|
|
832708
|
+
message: "Windows long path support is not enabled. The docs bundle contains deeply nested .pnpm paths that exceed the 260-character MAX_PATH limit.\n\nTo fix, run this in an elevated PowerShell:\n\n New-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\FileSystem' -Name 'LongPathsEnabled' -Value 1 -PropertyType DWORD -Force\n\nThen restart your terminal.",
|
|
832709
|
+
code: CliError.Code.EnvironmentError,
|
|
832710
|
+
docsLink: "https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation"
|
|
832711
|
+
});
|
|
832638
832712
|
}
|
|
832639
832713
|
function isWithinOutputDir(resolvedPath, outputDir) {
|
|
832640
832714
|
const rel2 = import_path57.default.relative(outputDir, resolvedPath);
|
|
@@ -832863,7 +832937,7 @@ async function downloadBundle({ bucketUrl, logger: logger4, preferCached, app =
|
|
|
832863
832937
|
}, 50);
|
|
832864
832938
|
}
|
|
832865
832939
|
if (PLATFORM_IS_WINDOWS) {
|
|
832866
|
-
|
|
832940
|
+
assertLongPathsEnabled(logger4);
|
|
832867
832941
|
}
|
|
832868
832942
|
const collectedSymlinks = [];
|
|
832869
832943
|
try {
|
|
@@ -840270,7 +840344,7 @@ var definitions6 = {
|
|
|
840270
840344
|
"tr"
|
|
840271
840345
|
]
|
|
840272
840346
|
},
|
|
840273
|
-
"docs.
|
|
840347
|
+
"docs.TranslationConfigObject": {
|
|
840274
840348
|
type: "object",
|
|
840275
840349
|
properties: {
|
|
840276
840350
|
lang: {
|
|
@@ -840292,6 +840366,16 @@ var definitions6 = {
|
|
|
840292
840366
|
],
|
|
840293
840367
|
additionalProperties: false
|
|
840294
840368
|
},
|
|
840369
|
+
"docs.TranslationConfig": {
|
|
840370
|
+
anyOf: [
|
|
840371
|
+
{
|
|
840372
|
+
$ref: "#/definitions/docs.Language"
|
|
840373
|
+
},
|
|
840374
|
+
{
|
|
840375
|
+
$ref: "#/definitions/docs.TranslationConfigObject"
|
|
840376
|
+
}
|
|
840377
|
+
]
|
|
840378
|
+
},
|
|
840295
840379
|
"docs.AIChatModel": {
|
|
840296
840380
|
type: "string",
|
|
840297
840381
|
enum: [
|
|
@@ -843913,7 +843997,8 @@ ${JSON.stringify(errorDetails, void 0, 2)}`);
|
|
|
843913
843997
|
root: updatedRoot
|
|
843914
843998
|
}
|
|
843915
843999
|
};
|
|
843916
|
-
|
|
844000
|
+
const pageCount2 = Object.keys(localePages).length;
|
|
844001
|
+
context3.logger.debug(`Sending translation for locale "${locale}" (${pageCount2} page${pageCount2 === 1 ? "" : "s"})`);
|
|
843917
844002
|
const translationResponse = await fetch(`${fdrOrigin}/v2/registry/docs/translations/register`, {
|
|
843918
844003
|
method: "POST",
|
|
843919
844004
|
headers: {
|
|
@@ -844621,7 +844706,7 @@ var LegacyDocsPublisher = class {
|
|
|
844621
844706
|
previewId,
|
|
844622
844707
|
disableTemplates: void 0,
|
|
844623
844708
|
skipUpload,
|
|
844624
|
-
cliVersion: "4.
|
|
844709
|
+
cliVersion: "4.105.0",
|
|
844625
844710
|
loginCommand: "fern auth login"
|
|
844626
844711
|
});
|
|
844627
844712
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -892754,14 +892839,24 @@ var EndpointSnippetGenerator9 = class {
|
|
|
892754
892839
|
const filePropertyInfo = this.getFilePropertyInfo({ request: request7, snippet: snippet2 });
|
|
892755
892840
|
this.context.errors.unscope();
|
|
892756
892841
|
if (request7.body != null) {
|
|
892757
|
-
|
|
892758
|
-
|
|
892759
|
-
|
|
892760
|
-
|
|
892761
|
-
|
|
892762
|
-
|
|
892763
|
-
|
|
892764
|
-
|
|
892842
|
+
if (request7.body.type === "referenced") {
|
|
892843
|
+
args.push(swift_exports.functionArgument({
|
|
892844
|
+
label: "request",
|
|
892845
|
+
value: this.getReferencedRequestBodyPropertyTypeLiteral({
|
|
892846
|
+
body: request7.body.bodyType,
|
|
892847
|
+
value: snippet2.requestBody
|
|
892848
|
+
})
|
|
892849
|
+
}));
|
|
892850
|
+
} else {
|
|
892851
|
+
args.push(swift_exports.functionArgument({
|
|
892852
|
+
label: "request",
|
|
892853
|
+
value: this.getInlinedRequestArg({
|
|
892854
|
+
request: request7,
|
|
892855
|
+
snippet: snippet2,
|
|
892856
|
+
filePropertyInfo
|
|
892857
|
+
})
|
|
892858
|
+
}));
|
|
892859
|
+
}
|
|
892765
892860
|
}
|
|
892766
892861
|
return args;
|
|
892767
892862
|
}
|
|
@@ -918712,7 +918807,7 @@ var CliContext = class _CliContext {
|
|
|
918712
918807
|
if (false) {
|
|
918713
918808
|
this.logger.error("CLI_VERSION is not defined");
|
|
918714
918809
|
}
|
|
918715
|
-
return "4.
|
|
918810
|
+
return "4.105.0";
|
|
918716
918811
|
}
|
|
918717
918812
|
getCliName() {
|
|
918718
918813
|
if (false) {
|
package/package.json
CHANGED