@fern-api/fern-api-dev 5.17.1-3-g719b96df398 → 5.17.1-4-g789cc010ee9
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 +284 -196
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -653743,139 +653743,6 @@ async function isLoggedIn() {
|
|
|
653743
653743
|
}
|
|
653744
653744
|
}
|
|
653745
653745
|
|
|
653746
|
-
// ../config/lib/schemas/index.js
|
|
653747
|
-
var schemas_exports13 = {};
|
|
653748
|
-
__export(schemas_exports13, {
|
|
653749
|
-
AiChatConfigSchema: () => AiChatConfigSchema,
|
|
653750
|
-
AiConfigSchema: () => AiConfigSchema,
|
|
653751
|
-
AiExamplesConfigSchema: () => AiExamplesConfigSchema,
|
|
653752
|
-
AiProviderSchema: () => AiProviderSchema,
|
|
653753
|
-
AnalyticsConfigSchema: () => AnalyticsConfigSchema2,
|
|
653754
|
-
AnnouncementConfigSchema: () => AnnouncementConfigSchema2,
|
|
653755
|
-
ApiDefinitionSchema: () => ApiDefinitionSchema3,
|
|
653756
|
-
ApiReferenceConfigurationSchema: () => ApiReferenceConfigurationSchema,
|
|
653757
|
-
ApiSpecSchema: () => ApiSpecSchema,
|
|
653758
|
-
ApisSchema: () => ApisSchema,
|
|
653759
|
-
AsyncApiSettingsSchema: () => AsyncApiSettingsSchema2,
|
|
653760
|
-
AsyncApiSpecSchema: () => AsyncApiSpecSchema2,
|
|
653761
|
-
AuthSchemesSchema: () => AuthSchemesSchema,
|
|
653762
|
-
AuthorSchema: () => AuthorSchema,
|
|
653763
|
-
AvailabilitySchema: () => AvailabilitySchema4,
|
|
653764
|
-
BackgroundImageConfigurationSchema: () => BackgroundImageConfigurationSchema,
|
|
653765
|
-
BaseApiSettingsSchema: () => BaseApiSettingsSchema2,
|
|
653766
|
-
ChangelogConfigurationSchema: () => ChangelogConfigurationSchema,
|
|
653767
|
-
CliSchema: () => CliSchema,
|
|
653768
|
-
ColorsConfigurationSchema: () => ColorsConfigurationSchema,
|
|
653769
|
-
ConjureSettingsSchema: () => ConjureSettingsSchema,
|
|
653770
|
-
ConjureSpecSchema: () => ConjureSpecSchema,
|
|
653771
|
-
CratesPublishSchema: () => CratesPublishSchema,
|
|
653772
|
-
CssConfigSchema: () => CssConfigSchema2,
|
|
653773
|
-
DefaultIntegerFormatSchema: () => DefaultIntegerFormatSchema,
|
|
653774
|
-
DocsInstanceSchema: () => DocsInstanceSchema,
|
|
653775
|
-
DocsSchema: () => DocsSchema,
|
|
653776
|
-
DocsSettingsConfigSchema: () => DocsSettingsConfigSchema2,
|
|
653777
|
-
EditThisPageConfigSchema: () => EditThisPageConfigSchema,
|
|
653778
|
-
EnvironmentSchema: () => EnvironmentSchema4,
|
|
653779
|
-
ExampleGenerationSchema: () => ExampleGenerationSchema,
|
|
653780
|
-
ExampleStyleSchema: () => ExampleStyleSchema,
|
|
653781
|
-
ExperimentalConfigSchema: () => ExperimentalConfigSchema,
|
|
653782
|
-
FeatureFlagConfigurationSchema: () => FeatureFlagConfigurationSchema,
|
|
653783
|
-
FeatureFlagSchema: () => FeatureFlagSchema,
|
|
653784
|
-
FernRcAccountSchema: () => FernRcAccountSchema,
|
|
653785
|
-
FernRcAiProviderSchema: () => FernRcAiProviderSchema,
|
|
653786
|
-
FernRcAiSchema: () => FernRcAiSchema,
|
|
653787
|
-
FernRcAuthSchema: () => FernRcAuthSchema,
|
|
653788
|
-
FernRcCacheSchema: () => FernRcCacheSchema,
|
|
653789
|
-
FernRcSchema: () => FernRcSchema,
|
|
653790
|
-
FernSettingsSchema: () => FernSettingsSchema,
|
|
653791
|
-
FernSpecSchema: () => FernSpecSchema,
|
|
653792
|
-
FernYmlSchema: () => FernYmlSchema,
|
|
653793
|
-
FolderConfigurationSchema: () => FolderConfigurationSchema,
|
|
653794
|
-
FooterLinksConfigSchema: () => FooterLinksConfigSchema,
|
|
653795
|
-
FormParameterEncodingSchema: () => FormParameterEncodingSchema,
|
|
653796
|
-
GeneratorImageObjectSchema: () => GeneratorImageObjectSchema2,
|
|
653797
|
-
GeneratorImageSchema: () => GeneratorImageSchema,
|
|
653798
|
-
GitHubOutputModeSchema: () => GitHubOutputModeSchema,
|
|
653799
|
-
GitHubRepositoryOutputModeSchema: () => GitHubRepositoryOutputModeSchema,
|
|
653800
|
-
GitHubRepositoryOutputSchema: () => GitHubRepositoryOutputSchema,
|
|
653801
|
-
GitOutputSchema: () => GitOutputSchema,
|
|
653802
|
-
GitSelfHostedOutputModeSchema: () => GitSelfHostedOutputModeSchema,
|
|
653803
|
-
GitSelfHostedOutputSchema: () => GitSelfHostedOutputSchema,
|
|
653804
|
-
GraphQlSpecSchema: () => GraphQlSpecSchema2,
|
|
653805
|
-
HeaderConfigSchema: () => HeaderConfigSchema,
|
|
653806
|
-
HeaderSchema: () => HeaderSchema2,
|
|
653807
|
-
IntegrationsConfigSchema: () => IntegrationsConfigSchema2,
|
|
653808
|
-
IntercomConfigSchema: () => IntercomConfigSchema2,
|
|
653809
|
-
JsConfigSchema: () => JsConfigSchema2,
|
|
653810
|
-
LayoutConfigSchema: () => LayoutConfigSchema,
|
|
653811
|
-
LibraryConfigurationSchema: () => LibraryConfigurationSchema,
|
|
653812
|
-
LibraryInputConfigurationSchema: () => LibraryInputConfigurationSchema,
|
|
653813
|
-
LibraryOutputConfigurationSchema: () => LibraryOutputConfigurationSchema,
|
|
653814
|
-
LibraryReferenceConfigurationSchema: () => LibraryReferenceConfigurationSchema,
|
|
653815
|
-
LicenseSchema: () => LicenseSchema,
|
|
653816
|
-
LinkConfigurationSchema: () => LinkConfigurationSchema,
|
|
653817
|
-
LogoConfigurationSchema: () => LogoConfigurationSchema2,
|
|
653818
|
-
MavenPublishSchema: () => MavenPublishSchema,
|
|
653819
|
-
MavenSignatureSchema: () => MavenSignatureSchema,
|
|
653820
|
-
MessageNamingVersionSchema: () => MessageNamingVersionSchema,
|
|
653821
|
-
MetadataConfigSchema: () => MetadataConfigSchema2,
|
|
653822
|
-
MetadataSchema: () => MetadataSchema,
|
|
653823
|
-
MultiServerStrategySchema: () => MultiServerStrategySchema,
|
|
653824
|
-
MultipleBaseUrlsEnvironmentSchema: () => MultipleBaseUrlsEnvironmentSchema3,
|
|
653825
|
-
NavbarLinkSchema: () => NavbarLinkSchema2,
|
|
653826
|
-
NavigationConfigSchema: () => NavigationConfigSchema4,
|
|
653827
|
-
NavigationItem: () => NavigationItem3,
|
|
653828
|
-
NpmPublishSchema: () => NpmPublishSchema,
|
|
653829
|
-
NugetPublishSchema: () => NugetPublishSchema,
|
|
653830
|
-
OpenApiExampleGenerationSchema: () => OpenApiExampleGenerationSchema2,
|
|
653831
|
-
OpenApiFilterSchema: () => OpenApiFilterSchema2,
|
|
653832
|
-
OpenApiSettingsSchema: () => OpenApiSettingsSchema2,
|
|
653833
|
-
OpenApiSpecSchema: () => OpenApiSpecSchema2,
|
|
653834
|
-
OpenRpcSettingsSchema: () => OpenRpcSettingsSchema,
|
|
653835
|
-
OpenRpcSpecSchema: () => OpenRpcSpecSchema2,
|
|
653836
|
-
OutputObjectSchema: () => OutputObjectSchema,
|
|
653837
|
-
OutputSchema: () => OutputSchema,
|
|
653838
|
-
PageActionsConfigSchema: () => PageActionsConfigSchema2,
|
|
653839
|
-
PageConfigurationSchema: () => PageConfigurationSchema,
|
|
653840
|
-
PathParameterOrderSchema: () => PathParameterOrderSchema,
|
|
653841
|
-
PlaygroundSettingsSchema: () => PlaygroundSettingsSchema,
|
|
653842
|
-
ProductConfigSchema: () => ProductConfigSchema,
|
|
653843
|
-
ProtobufDefinitionSchema: () => ProtobufDefinitionSchema2,
|
|
653844
|
-
ProtobufSettingsSchema: () => ProtobufSettingsSchema,
|
|
653845
|
-
ProtobufSpecSchema: () => ProtobufSpecSchema2,
|
|
653846
|
-
PublishSchema: () => PublishSchema,
|
|
653847
|
-
PypiMetadataSchema: () => PypiMetadataSchema,
|
|
653848
|
-
PypiPublishSchema: () => PypiPublishSchema,
|
|
653849
|
-
ReadmeCustomSectionSchema: () => ReadmeCustomSectionSchema2,
|
|
653850
|
-
ReadmeEndpointSchema: () => ReadmeEndpointSchema2,
|
|
653851
|
-
ReadmeSchema: () => ReadmeSchema2,
|
|
653852
|
-
RedirectConfigSchema: () => RedirectConfigSchema2,
|
|
653853
|
-
RemoveDiscriminantsFromSchemasSchema: () => RemoveDiscriminantsFromSchemasSchema,
|
|
653854
|
-
ResolveAliasesSchema: () => ResolveAliasesSchema2,
|
|
653855
|
-
ReviewersSchema: () => ReviewersSchema2,
|
|
653856
|
-
RoleSchema: () => RoleSchema,
|
|
653857
|
-
RubygemsPublishSchema: () => RubygemsPublishSchema,
|
|
653858
|
-
SdkTargetLanguageSchema: () => SdkTargetLanguageSchema,
|
|
653859
|
-
SdkTargetSchema: () => SdkTargetSchema,
|
|
653860
|
-
SdksSchema: () => SdksSchema,
|
|
653861
|
-
SectionConfigurationSchema: () => SectionConfigurationSchema,
|
|
653862
|
-
SingleBaseUrlEnvironmentSchema: () => SingleBaseUrlEnvironmentSchema3,
|
|
653863
|
-
SnippetsConfigurationSchema: () => SnippetsConfigurationSchema,
|
|
653864
|
-
TabConfigSchema: () => TabConfigSchema,
|
|
653865
|
-
TabVariantSchema: () => TabVariantSchema,
|
|
653866
|
-
TabbedNavigationConfigSchema: () => TabbedNavigationConfigSchema,
|
|
653867
|
-
TabbedNavigationItemSchema: () => TabbedNavigationItemSchema,
|
|
653868
|
-
ThemeConfigSchema: () => ThemeConfigSchema4,
|
|
653869
|
-
TypographyConfigSchema: () => TypographyConfigSchema,
|
|
653870
|
-
UntabbedNavigationConfigSchema: () => UntabbedNavigationConfigSchema,
|
|
653871
|
-
VersionConfigSchema: () => VersionConfigSchema,
|
|
653872
|
-
createEmptyFernRcSchema: () => createEmptyFernRcSchema,
|
|
653873
|
-
isGitOutputGitHubRepository: () => isGitOutputGitHubRepository,
|
|
653874
|
-
isGitOutputSelfHosted: () => isGitOutputSelfHosted,
|
|
653875
|
-
isWellKnownLicense: () => isWellKnownLicense,
|
|
653876
|
-
resolveOutputObjectSchema: () => resolveOutputObjectSchema
|
|
653877
|
-
});
|
|
653878
|
-
|
|
653879
653746
|
// ../config/lib/schemas/AiProviderSchema.js
|
|
653880
653747
|
var AiProviderSchema = external_exports.enum(["openai", "anthropic", "bedrock"]);
|
|
653881
653748
|
|
|
@@ -654217,67 +654084,9 @@ var CliSchema = external_exports.object({
|
|
|
654217
654084
|
version: external_exports.string().optional()
|
|
654218
654085
|
});
|
|
654219
654086
|
|
|
654220
|
-
// ../config/lib/schemas/CratesPublishSchema.js
|
|
654221
|
-
var CratesPublishSchema = external_exports.object({
|
|
654222
|
-
packageName: external_exports.string(),
|
|
654223
|
-
url: external_exports.string().optional(),
|
|
654224
|
-
token: external_exports.string().optional()
|
|
654225
|
-
});
|
|
654226
|
-
|
|
654227
654087
|
// ../config/lib/schemas/docs/DocsSchema.js
|
|
654228
654088
|
var DocsSchema = docs_yml_exports.DocsYmlSchemas.DocsConfiguration;
|
|
654229
654089
|
|
|
654230
|
-
// ../config/lib/schemas/docs/index.js
|
|
654231
|
-
var S5 = docs_yml_exports.DocsYmlSchemas;
|
|
654232
|
-
var DocsInstanceSchema = S5.DocsInstance;
|
|
654233
|
-
var EditThisPageConfigSchema = S5.EditThisPageConfig;
|
|
654234
|
-
var NavigationConfigSchema4 = S5.NavigationConfig;
|
|
654235
|
-
var TabbedNavigationConfigSchema = S5.TabbedNavigationConfig;
|
|
654236
|
-
var UntabbedNavigationConfigSchema = S5.UntabbedNavigationConfig;
|
|
654237
|
-
var NavigationItem3 = S5.NavigationItem;
|
|
654238
|
-
var PageConfigurationSchema = S5.PageConfiguration;
|
|
654239
|
-
var SectionConfigurationSchema = S5.SectionConfiguration;
|
|
654240
|
-
var ApiReferenceConfigurationSchema = S5.ApiReferenceConfiguration;
|
|
654241
|
-
var LinkConfigurationSchema = S5.LinkConfiguration;
|
|
654242
|
-
var ChangelogConfigurationSchema = S5.ChangelogConfiguration;
|
|
654243
|
-
var LibraryReferenceConfigurationSchema = S5.LibraryReferenceConfiguration;
|
|
654244
|
-
var FolderConfigurationSchema = S5.FolderConfiguration;
|
|
654245
|
-
var TabbedNavigationItemSchema = S5.TabbedNavigationItem;
|
|
654246
|
-
var TabVariantSchema = S5.TabVariant;
|
|
654247
|
-
var TabConfigSchema = S5.TabConfig;
|
|
654248
|
-
var VersionConfigSchema = S5.VersionConfig;
|
|
654249
|
-
var ProductConfigSchema = S5.ProductConfig;
|
|
654250
|
-
var SnippetsConfigurationSchema = S5.SnippetsConfiguration;
|
|
654251
|
-
var PlaygroundSettingsSchema = S5.PlaygroundSettings;
|
|
654252
|
-
var LogoConfigurationSchema2 = S5.LogoConfiguration;
|
|
654253
|
-
var BackgroundImageConfigurationSchema = S5.BackgroundImageConfiguration;
|
|
654254
|
-
var ColorsConfigurationSchema = S5.ColorsConfiguration;
|
|
654255
|
-
var TypographyConfigSchema = S5.DocsTypographyConfig;
|
|
654256
|
-
var LayoutConfigSchema = S5.LayoutConfig;
|
|
654257
|
-
var DocsSettingsConfigSchema2 = S5.DocsSettingsConfig;
|
|
654258
|
-
var ThemeConfigSchema4 = S5.ThemeConfig;
|
|
654259
|
-
var NavbarLinkSchema2 = S5.NavbarLink;
|
|
654260
|
-
var FooterLinksConfigSchema = S5.FooterLinksConfig;
|
|
654261
|
-
var PageActionsConfigSchema2 = S5.PageActionsConfig;
|
|
654262
|
-
var AnalyticsConfigSchema2 = S5.AnalyticsConfig;
|
|
654263
|
-
var MetadataConfigSchema2 = S5.MetadataConfig;
|
|
654264
|
-
var RedirectConfigSchema2 = S5.RedirectConfig;
|
|
654265
|
-
var AiChatConfigSchema = S5.AIChatConfig;
|
|
654266
|
-
var AiExamplesConfigSchema = S5.AiExamplesConfig;
|
|
654267
|
-
var AnnouncementConfigSchema2 = S5.AnnouncementConfig;
|
|
654268
|
-
var IntegrationsConfigSchema2 = S5.IntegrationsConfig;
|
|
654269
|
-
var IntercomConfigSchema2 = S5.IntercomConfig;
|
|
654270
|
-
var LibraryConfigurationSchema = S5.LibraryConfiguration;
|
|
654271
|
-
var LibraryInputConfigurationSchema = S5.LibraryInputConfiguration;
|
|
654272
|
-
var LibraryOutputConfigurationSchema = S5.LibraryOutputConfiguration;
|
|
654273
|
-
var CssConfigSchema2 = S5.CssConfig;
|
|
654274
|
-
var JsConfigSchema2 = S5.JsConfig;
|
|
654275
|
-
var ExperimentalConfigSchema = S5.ExperimentalConfig;
|
|
654276
|
-
var FeatureFlagSchema = S5.FeatureFlag;
|
|
654277
|
-
var FeatureFlagConfigurationSchema = S5.FeatureFlagConfiguration;
|
|
654278
|
-
var AvailabilitySchema4 = S5.Availability;
|
|
654279
|
-
var RoleSchema = S5.Role;
|
|
654280
|
-
|
|
654281
654090
|
// ../config/lib/schemas/SdkTargetLanguageSchema.js
|
|
654282
654091
|
var SdkTargetLanguageSchema = external_exports.enum([
|
|
654283
654092
|
"csharp",
|
|
@@ -654390,6 +654199,13 @@ var OutputObjectSchema = external_exports.object({
|
|
|
654390
654199
|
// ../config/lib/schemas/OutputSchema.js
|
|
654391
654200
|
var OutputSchema = external_exports.union([external_exports.string(), OutputObjectSchema]);
|
|
654392
654201
|
|
|
654202
|
+
// ../config/lib/schemas/CratesPublishSchema.js
|
|
654203
|
+
var CratesPublishSchema = external_exports.object({
|
|
654204
|
+
packageName: external_exports.string(),
|
|
654205
|
+
url: external_exports.string().optional(),
|
|
654206
|
+
token: external_exports.string().optional()
|
|
654207
|
+
});
|
|
654208
|
+
|
|
654393
654209
|
// ../config/lib/schemas/MavenPublishSchema.js
|
|
654394
654210
|
var MavenSignatureSchema = external_exports.object({
|
|
654395
654211
|
keyId: external_exports.string(),
|
|
@@ -654489,6 +654305,243 @@ var FernYmlSchema = external_exports.object({
|
|
|
654489
654305
|
apis: ApisSchema.optional()
|
|
654490
654306
|
});
|
|
654491
654307
|
|
|
654308
|
+
// ../config/lib/jsonSchemas.js
|
|
654309
|
+
var SCHEMA_ENTRIES = [
|
|
654310
|
+
{
|
|
654311
|
+
name: "api",
|
|
654312
|
+
description: "A single API definition (the `api:` block in fern.yml).",
|
|
654313
|
+
schema: ApiDefinitionSchema3
|
|
654314
|
+
},
|
|
654315
|
+
{
|
|
654316
|
+
name: "apis",
|
|
654317
|
+
description: "A map of named API definitions (the `apis:` block in fern.yml).",
|
|
654318
|
+
schema: ApisSchema
|
|
654319
|
+
},
|
|
654320
|
+
{
|
|
654321
|
+
name: "sdks",
|
|
654322
|
+
description: "The `sdks:` block in fern.yml, including defaultGroup, targets, and readme.",
|
|
654323
|
+
schema: SdksSchema
|
|
654324
|
+
},
|
|
654325
|
+
{
|
|
654326
|
+
name: "sdks.targets",
|
|
654327
|
+
description: "A single SDK target (a value inside `sdks.targets`).",
|
|
654328
|
+
schema: SdkTargetSchema
|
|
654329
|
+
},
|
|
654330
|
+
{
|
|
654331
|
+
name: "docs",
|
|
654332
|
+
description: "The `docs:` block in fern.yml (documentation configuration).",
|
|
654333
|
+
schema: DocsSchema
|
|
654334
|
+
},
|
|
654335
|
+
{
|
|
654336
|
+
name: "ai",
|
|
654337
|
+
description: "The `ai:` block in fern.yml (AI-powered example generation config).",
|
|
654338
|
+
schema: AiConfigSchema
|
|
654339
|
+
},
|
|
654340
|
+
{
|
|
654341
|
+
name: "cli",
|
|
654342
|
+
description: "The `cli:` block in fern.yml (CLI version pinning).",
|
|
654343
|
+
schema: CliSchema
|
|
654344
|
+
}
|
|
654345
|
+
];
|
|
654346
|
+
var JSON_SCHEMA_ENTRIES = SCHEMA_ENTRIES.map(({ name: name2, description }) => ({ name: name2, description }));
|
|
654347
|
+
function getJsonSchemaByName(name2) {
|
|
654348
|
+
const entry = SCHEMA_ENTRIES.find((e8) => e8.name === name2);
|
|
654349
|
+
if (entry == null) {
|
|
654350
|
+
return void 0;
|
|
654351
|
+
}
|
|
654352
|
+
return external_exports.toJSONSchema(entry.schema);
|
|
654353
|
+
}
|
|
654354
|
+
function getJsonSchemaNames() {
|
|
654355
|
+
return SCHEMA_ENTRIES.map((e8) => e8.name);
|
|
654356
|
+
}
|
|
654357
|
+
function getFernYmlJsonSchema() {
|
|
654358
|
+
return external_exports.toJSONSchema(FernYmlSchema);
|
|
654359
|
+
}
|
|
654360
|
+
|
|
654361
|
+
// ../config/lib/schemas/index.js
|
|
654362
|
+
var schemas_exports13 = {};
|
|
654363
|
+
__export(schemas_exports13, {
|
|
654364
|
+
AiChatConfigSchema: () => AiChatConfigSchema,
|
|
654365
|
+
AiConfigSchema: () => AiConfigSchema,
|
|
654366
|
+
AiExamplesConfigSchema: () => AiExamplesConfigSchema,
|
|
654367
|
+
AiProviderSchema: () => AiProviderSchema,
|
|
654368
|
+
AnalyticsConfigSchema: () => AnalyticsConfigSchema2,
|
|
654369
|
+
AnnouncementConfigSchema: () => AnnouncementConfigSchema2,
|
|
654370
|
+
ApiDefinitionSchema: () => ApiDefinitionSchema3,
|
|
654371
|
+
ApiReferenceConfigurationSchema: () => ApiReferenceConfigurationSchema,
|
|
654372
|
+
ApiSpecSchema: () => ApiSpecSchema,
|
|
654373
|
+
ApisSchema: () => ApisSchema,
|
|
654374
|
+
AsyncApiSettingsSchema: () => AsyncApiSettingsSchema2,
|
|
654375
|
+
AsyncApiSpecSchema: () => AsyncApiSpecSchema2,
|
|
654376
|
+
AuthSchemesSchema: () => AuthSchemesSchema,
|
|
654377
|
+
AuthorSchema: () => AuthorSchema,
|
|
654378
|
+
AvailabilitySchema: () => AvailabilitySchema4,
|
|
654379
|
+
BackgroundImageConfigurationSchema: () => BackgroundImageConfigurationSchema,
|
|
654380
|
+
BaseApiSettingsSchema: () => BaseApiSettingsSchema2,
|
|
654381
|
+
ChangelogConfigurationSchema: () => ChangelogConfigurationSchema,
|
|
654382
|
+
CliSchema: () => CliSchema,
|
|
654383
|
+
ColorsConfigurationSchema: () => ColorsConfigurationSchema,
|
|
654384
|
+
ConjureSettingsSchema: () => ConjureSettingsSchema,
|
|
654385
|
+
ConjureSpecSchema: () => ConjureSpecSchema,
|
|
654386
|
+
CratesPublishSchema: () => CratesPublishSchema,
|
|
654387
|
+
CssConfigSchema: () => CssConfigSchema2,
|
|
654388
|
+
DefaultIntegerFormatSchema: () => DefaultIntegerFormatSchema,
|
|
654389
|
+
DocsInstanceSchema: () => DocsInstanceSchema,
|
|
654390
|
+
DocsSchema: () => DocsSchema,
|
|
654391
|
+
DocsSettingsConfigSchema: () => DocsSettingsConfigSchema2,
|
|
654392
|
+
EditThisPageConfigSchema: () => EditThisPageConfigSchema,
|
|
654393
|
+
EnvironmentSchema: () => EnvironmentSchema4,
|
|
654394
|
+
ExampleGenerationSchema: () => ExampleGenerationSchema,
|
|
654395
|
+
ExampleStyleSchema: () => ExampleStyleSchema,
|
|
654396
|
+
ExperimentalConfigSchema: () => ExperimentalConfigSchema,
|
|
654397
|
+
FeatureFlagConfigurationSchema: () => FeatureFlagConfigurationSchema,
|
|
654398
|
+
FeatureFlagSchema: () => FeatureFlagSchema,
|
|
654399
|
+
FernRcAccountSchema: () => FernRcAccountSchema,
|
|
654400
|
+
FernRcAiProviderSchema: () => FernRcAiProviderSchema,
|
|
654401
|
+
FernRcAiSchema: () => FernRcAiSchema,
|
|
654402
|
+
FernRcAuthSchema: () => FernRcAuthSchema,
|
|
654403
|
+
FernRcCacheSchema: () => FernRcCacheSchema,
|
|
654404
|
+
FernRcSchema: () => FernRcSchema,
|
|
654405
|
+
FernSettingsSchema: () => FernSettingsSchema,
|
|
654406
|
+
FernSpecSchema: () => FernSpecSchema,
|
|
654407
|
+
FernYmlSchema: () => FernYmlSchema,
|
|
654408
|
+
FolderConfigurationSchema: () => FolderConfigurationSchema,
|
|
654409
|
+
FooterLinksConfigSchema: () => FooterLinksConfigSchema,
|
|
654410
|
+
FormParameterEncodingSchema: () => FormParameterEncodingSchema,
|
|
654411
|
+
GeneratorImageObjectSchema: () => GeneratorImageObjectSchema2,
|
|
654412
|
+
GeneratorImageSchema: () => GeneratorImageSchema,
|
|
654413
|
+
GitHubOutputModeSchema: () => GitHubOutputModeSchema,
|
|
654414
|
+
GitHubRepositoryOutputModeSchema: () => GitHubRepositoryOutputModeSchema,
|
|
654415
|
+
GitHubRepositoryOutputSchema: () => GitHubRepositoryOutputSchema,
|
|
654416
|
+
GitOutputSchema: () => GitOutputSchema,
|
|
654417
|
+
GitSelfHostedOutputModeSchema: () => GitSelfHostedOutputModeSchema,
|
|
654418
|
+
GitSelfHostedOutputSchema: () => GitSelfHostedOutputSchema,
|
|
654419
|
+
GraphQlSpecSchema: () => GraphQlSpecSchema2,
|
|
654420
|
+
HeaderConfigSchema: () => HeaderConfigSchema,
|
|
654421
|
+
HeaderSchema: () => HeaderSchema2,
|
|
654422
|
+
IntegrationsConfigSchema: () => IntegrationsConfigSchema2,
|
|
654423
|
+
IntercomConfigSchema: () => IntercomConfigSchema2,
|
|
654424
|
+
JsConfigSchema: () => JsConfigSchema2,
|
|
654425
|
+
LayoutConfigSchema: () => LayoutConfigSchema,
|
|
654426
|
+
LibraryConfigurationSchema: () => LibraryConfigurationSchema,
|
|
654427
|
+
LibraryInputConfigurationSchema: () => LibraryInputConfigurationSchema,
|
|
654428
|
+
LibraryOutputConfigurationSchema: () => LibraryOutputConfigurationSchema,
|
|
654429
|
+
LibraryReferenceConfigurationSchema: () => LibraryReferenceConfigurationSchema,
|
|
654430
|
+
LicenseSchema: () => LicenseSchema,
|
|
654431
|
+
LinkConfigurationSchema: () => LinkConfigurationSchema,
|
|
654432
|
+
LogoConfigurationSchema: () => LogoConfigurationSchema2,
|
|
654433
|
+
MavenPublishSchema: () => MavenPublishSchema,
|
|
654434
|
+
MavenSignatureSchema: () => MavenSignatureSchema,
|
|
654435
|
+
MessageNamingVersionSchema: () => MessageNamingVersionSchema,
|
|
654436
|
+
MetadataConfigSchema: () => MetadataConfigSchema2,
|
|
654437
|
+
MetadataSchema: () => MetadataSchema,
|
|
654438
|
+
MultiServerStrategySchema: () => MultiServerStrategySchema,
|
|
654439
|
+
MultipleBaseUrlsEnvironmentSchema: () => MultipleBaseUrlsEnvironmentSchema3,
|
|
654440
|
+
NavbarLinkSchema: () => NavbarLinkSchema2,
|
|
654441
|
+
NavigationConfigSchema: () => NavigationConfigSchema4,
|
|
654442
|
+
NavigationItem: () => NavigationItem3,
|
|
654443
|
+
NpmPublishSchema: () => NpmPublishSchema,
|
|
654444
|
+
NugetPublishSchema: () => NugetPublishSchema,
|
|
654445
|
+
OpenApiExampleGenerationSchema: () => OpenApiExampleGenerationSchema2,
|
|
654446
|
+
OpenApiFilterSchema: () => OpenApiFilterSchema2,
|
|
654447
|
+
OpenApiSettingsSchema: () => OpenApiSettingsSchema2,
|
|
654448
|
+
OpenApiSpecSchema: () => OpenApiSpecSchema2,
|
|
654449
|
+
OpenRpcSettingsSchema: () => OpenRpcSettingsSchema,
|
|
654450
|
+
OpenRpcSpecSchema: () => OpenRpcSpecSchema2,
|
|
654451
|
+
OutputObjectSchema: () => OutputObjectSchema,
|
|
654452
|
+
OutputSchema: () => OutputSchema,
|
|
654453
|
+
PageActionsConfigSchema: () => PageActionsConfigSchema2,
|
|
654454
|
+
PageConfigurationSchema: () => PageConfigurationSchema,
|
|
654455
|
+
PathParameterOrderSchema: () => PathParameterOrderSchema,
|
|
654456
|
+
PlaygroundSettingsSchema: () => PlaygroundSettingsSchema,
|
|
654457
|
+
ProductConfigSchema: () => ProductConfigSchema,
|
|
654458
|
+
ProtobufDefinitionSchema: () => ProtobufDefinitionSchema2,
|
|
654459
|
+
ProtobufSettingsSchema: () => ProtobufSettingsSchema,
|
|
654460
|
+
ProtobufSpecSchema: () => ProtobufSpecSchema2,
|
|
654461
|
+
PublishSchema: () => PublishSchema,
|
|
654462
|
+
PypiMetadataSchema: () => PypiMetadataSchema,
|
|
654463
|
+
PypiPublishSchema: () => PypiPublishSchema,
|
|
654464
|
+
ReadmeCustomSectionSchema: () => ReadmeCustomSectionSchema2,
|
|
654465
|
+
ReadmeEndpointSchema: () => ReadmeEndpointSchema2,
|
|
654466
|
+
ReadmeSchema: () => ReadmeSchema2,
|
|
654467
|
+
RedirectConfigSchema: () => RedirectConfigSchema2,
|
|
654468
|
+
RemoveDiscriminantsFromSchemasSchema: () => RemoveDiscriminantsFromSchemasSchema,
|
|
654469
|
+
ResolveAliasesSchema: () => ResolveAliasesSchema2,
|
|
654470
|
+
ReviewersSchema: () => ReviewersSchema2,
|
|
654471
|
+
RoleSchema: () => RoleSchema,
|
|
654472
|
+
RubygemsPublishSchema: () => RubygemsPublishSchema,
|
|
654473
|
+
SdkTargetLanguageSchema: () => SdkTargetLanguageSchema,
|
|
654474
|
+
SdkTargetSchema: () => SdkTargetSchema,
|
|
654475
|
+
SdksSchema: () => SdksSchema,
|
|
654476
|
+
SectionConfigurationSchema: () => SectionConfigurationSchema,
|
|
654477
|
+
SingleBaseUrlEnvironmentSchema: () => SingleBaseUrlEnvironmentSchema3,
|
|
654478
|
+
SnippetsConfigurationSchema: () => SnippetsConfigurationSchema,
|
|
654479
|
+
TabConfigSchema: () => TabConfigSchema,
|
|
654480
|
+
TabVariantSchema: () => TabVariantSchema,
|
|
654481
|
+
TabbedNavigationConfigSchema: () => TabbedNavigationConfigSchema,
|
|
654482
|
+
TabbedNavigationItemSchema: () => TabbedNavigationItemSchema,
|
|
654483
|
+
ThemeConfigSchema: () => ThemeConfigSchema4,
|
|
654484
|
+
TypographyConfigSchema: () => TypographyConfigSchema,
|
|
654485
|
+
UntabbedNavigationConfigSchema: () => UntabbedNavigationConfigSchema,
|
|
654486
|
+
VersionConfigSchema: () => VersionConfigSchema,
|
|
654487
|
+
createEmptyFernRcSchema: () => createEmptyFernRcSchema,
|
|
654488
|
+
isGitOutputGitHubRepository: () => isGitOutputGitHubRepository,
|
|
654489
|
+
isGitOutputSelfHosted: () => isGitOutputSelfHosted,
|
|
654490
|
+
isWellKnownLicense: () => isWellKnownLicense,
|
|
654491
|
+
resolveOutputObjectSchema: () => resolveOutputObjectSchema
|
|
654492
|
+
});
|
|
654493
|
+
|
|
654494
|
+
// ../config/lib/schemas/docs/index.js
|
|
654495
|
+
var S5 = docs_yml_exports.DocsYmlSchemas;
|
|
654496
|
+
var DocsInstanceSchema = S5.DocsInstance;
|
|
654497
|
+
var EditThisPageConfigSchema = S5.EditThisPageConfig;
|
|
654498
|
+
var NavigationConfigSchema4 = S5.NavigationConfig;
|
|
654499
|
+
var TabbedNavigationConfigSchema = S5.TabbedNavigationConfig;
|
|
654500
|
+
var UntabbedNavigationConfigSchema = S5.UntabbedNavigationConfig;
|
|
654501
|
+
var NavigationItem3 = S5.NavigationItem;
|
|
654502
|
+
var PageConfigurationSchema = S5.PageConfiguration;
|
|
654503
|
+
var SectionConfigurationSchema = S5.SectionConfiguration;
|
|
654504
|
+
var ApiReferenceConfigurationSchema = S5.ApiReferenceConfiguration;
|
|
654505
|
+
var LinkConfigurationSchema = S5.LinkConfiguration;
|
|
654506
|
+
var ChangelogConfigurationSchema = S5.ChangelogConfiguration;
|
|
654507
|
+
var LibraryReferenceConfigurationSchema = S5.LibraryReferenceConfiguration;
|
|
654508
|
+
var FolderConfigurationSchema = S5.FolderConfiguration;
|
|
654509
|
+
var TabbedNavigationItemSchema = S5.TabbedNavigationItem;
|
|
654510
|
+
var TabVariantSchema = S5.TabVariant;
|
|
654511
|
+
var TabConfigSchema = S5.TabConfig;
|
|
654512
|
+
var VersionConfigSchema = S5.VersionConfig;
|
|
654513
|
+
var ProductConfigSchema = S5.ProductConfig;
|
|
654514
|
+
var SnippetsConfigurationSchema = S5.SnippetsConfiguration;
|
|
654515
|
+
var PlaygroundSettingsSchema = S5.PlaygroundSettings;
|
|
654516
|
+
var LogoConfigurationSchema2 = S5.LogoConfiguration;
|
|
654517
|
+
var BackgroundImageConfigurationSchema = S5.BackgroundImageConfiguration;
|
|
654518
|
+
var ColorsConfigurationSchema = S5.ColorsConfiguration;
|
|
654519
|
+
var TypographyConfigSchema = S5.DocsTypographyConfig;
|
|
654520
|
+
var LayoutConfigSchema = S5.LayoutConfig;
|
|
654521
|
+
var DocsSettingsConfigSchema2 = S5.DocsSettingsConfig;
|
|
654522
|
+
var ThemeConfigSchema4 = S5.ThemeConfig;
|
|
654523
|
+
var NavbarLinkSchema2 = S5.NavbarLink;
|
|
654524
|
+
var FooterLinksConfigSchema = S5.FooterLinksConfig;
|
|
654525
|
+
var PageActionsConfigSchema2 = S5.PageActionsConfig;
|
|
654526
|
+
var AnalyticsConfigSchema2 = S5.AnalyticsConfig;
|
|
654527
|
+
var MetadataConfigSchema2 = S5.MetadataConfig;
|
|
654528
|
+
var RedirectConfigSchema2 = S5.RedirectConfig;
|
|
654529
|
+
var AiChatConfigSchema = S5.AIChatConfig;
|
|
654530
|
+
var AiExamplesConfigSchema = S5.AiExamplesConfig;
|
|
654531
|
+
var AnnouncementConfigSchema2 = S5.AnnouncementConfig;
|
|
654532
|
+
var IntegrationsConfigSchema2 = S5.IntegrationsConfig;
|
|
654533
|
+
var IntercomConfigSchema2 = S5.IntercomConfig;
|
|
654534
|
+
var LibraryConfigurationSchema = S5.LibraryConfiguration;
|
|
654535
|
+
var LibraryInputConfigurationSchema = S5.LibraryInputConfiguration;
|
|
654536
|
+
var LibraryOutputConfigurationSchema = S5.LibraryOutputConfiguration;
|
|
654537
|
+
var CssConfigSchema2 = S5.CssConfig;
|
|
654538
|
+
var JsConfigSchema2 = S5.JsConfig;
|
|
654539
|
+
var ExperimentalConfigSchema = S5.ExperimentalConfig;
|
|
654540
|
+
var FeatureFlagSchema = S5.FeatureFlag;
|
|
654541
|
+
var FeatureFlagConfigurationSchema = S5.FeatureFlagConfiguration;
|
|
654542
|
+
var AvailabilitySchema4 = S5.Availability;
|
|
654543
|
+
var RoleSchema = S5.Role;
|
|
654544
|
+
|
|
654492
654545
|
// ../config/lib/schemas/fernrc/FernRcAccountSchema.js
|
|
654493
654546
|
var FernRcAccountSchema = external_exports.object({
|
|
654494
654547
|
/** Account identifier (email address) */
|
|
@@ -661011,7 +661064,7 @@ var AccessTokenPosthogManager = class {
|
|
|
661011
661064
|
properties: {
|
|
661012
661065
|
...event,
|
|
661013
661066
|
...event.properties,
|
|
661014
|
-
version: "5.17.1-
|
|
661067
|
+
version: "5.17.1-4-g789cc010ee9",
|
|
661015
661068
|
usingAccessToken: true,
|
|
661016
661069
|
...getRunIdProperties()
|
|
661017
661070
|
}
|
|
@@ -661066,7 +661119,7 @@ var UserPosthogManager = class {
|
|
|
661066
661119
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
661067
661120
|
event: "CLI",
|
|
661068
661121
|
properties: {
|
|
661069
|
-
version: "5.17.1-
|
|
661122
|
+
version: "5.17.1-4-g789cc010ee9",
|
|
661070
661123
|
...event,
|
|
661071
661124
|
...event.properties,
|
|
661072
661125
|
usingAccessToken: false,
|
|
@@ -852049,7 +852102,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
852049
852102
|
var LOGS_FOLDER_NAME = "logs";
|
|
852050
852103
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
852051
852104
|
function getCliSource() {
|
|
852052
|
-
const version7 = "5.17.1-
|
|
852105
|
+
const version7 = "5.17.1-4-g789cc010ee9";
|
|
852053
852106
|
return `cli@${version7}`;
|
|
852054
852107
|
}
|
|
852055
852108
|
var DebugLogger = class {
|
|
@@ -864858,7 +864911,7 @@ var LegacyDocsPublisher = class {
|
|
|
864858
864911
|
previewId,
|
|
864859
864912
|
disableTemplates: void 0,
|
|
864860
864913
|
skipUpload,
|
|
864861
|
-
cliVersion: "5.17.1-
|
|
864914
|
+
cliVersion: "5.17.1-4-g789cc010ee9",
|
|
864862
864915
|
loginCommand: "fern auth login"
|
|
864863
864916
|
});
|
|
864864
864917
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -867888,6 +867941,40 @@ function addReplayCommand(cli) {
|
|
|
867888
867941
|
]);
|
|
867889
867942
|
}
|
|
867890
867943
|
|
|
867944
|
+
// ../cli-v2/lib/commands/schema/command.js
|
|
867945
|
+
var SchemaCommand = class {
|
|
867946
|
+
async handle(context3, args) {
|
|
867947
|
+
if (args.name == null) {
|
|
867948
|
+
this.writeJson(context3, getFernYmlJsonSchema(), args.pretty);
|
|
867949
|
+
return;
|
|
867950
|
+
}
|
|
867951
|
+
const schema2 = getJsonSchemaByName(args.name);
|
|
867952
|
+
if (schema2 == null) {
|
|
867953
|
+
const available = getJsonSchemaNames().join(", ");
|
|
867954
|
+
throw new CliError({
|
|
867955
|
+
message: `Unknown schema '${args.name}'. Available subsections: ${available}.`,
|
|
867956
|
+
code: CliError.Code.ConfigError
|
|
867957
|
+
});
|
|
867958
|
+
}
|
|
867959
|
+
this.writeJson(context3, schema2, args.pretty);
|
|
867960
|
+
}
|
|
867961
|
+
writeJson(context3, value2, pretty) {
|
|
867962
|
+
const json3 = pretty ? JSON.stringify(value2, null, 2) : JSON.stringify(value2);
|
|
867963
|
+
context3.stdout.info(json3);
|
|
867964
|
+
}
|
|
867965
|
+
};
|
|
867966
|
+
function addSchemaCommand(cli) {
|
|
867967
|
+
const cmd = new SchemaCommand();
|
|
867968
|
+
command2(cli, "schema [name]", "Print a JSON Schema for fern.yml (or a dot-delimited subsection like `sdks` or `sdks.targets`)", (context3, args) => cmd.handle(context3, args), (yargs) => yargs.positional("name", {
|
|
867969
|
+
type: "string",
|
|
867970
|
+
description: `Dot-delimited subsection of fern.yml. Omit to print the full schema. Available subsections: ${getJsonSchemaNames().join(", ")}.`
|
|
867971
|
+
}).option("pretty", {
|
|
867972
|
+
type: "boolean",
|
|
867973
|
+
default: true,
|
|
867974
|
+
description: "Pretty-print the JSON output"
|
|
867975
|
+
}));
|
|
867976
|
+
}
|
|
867977
|
+
|
|
867891
867978
|
// ../cli-v2/lib/commands/sdk/utils/gitUrl.js
|
|
867892
867979
|
function isGitUrl(value2) {
|
|
867893
867980
|
return value2.endsWith(".git") || value2.startsWith("https://github.com/") || value2.startsWith("https://gitlab.com/") || value2.startsWith("git@");
|
|
@@ -920314,6 +920401,7 @@ function createCliV2(argv) {
|
|
|
920314
920401
|
addInitCommand(cli);
|
|
920315
920402
|
addOrgCommand(cli);
|
|
920316
920403
|
addReplayCommand(cli);
|
|
920404
|
+
addSchemaCommand(cli);
|
|
920317
920405
|
addSdkCommand(cli);
|
|
920318
920406
|
addTelemetryCommand(cli);
|
|
920319
920407
|
return cli;
|
|
@@ -939436,7 +939524,7 @@ var CliContext = class _CliContext {
|
|
|
939436
939524
|
if (false) {
|
|
939437
939525
|
this.logger.error("CLI_VERSION is not defined");
|
|
939438
939526
|
}
|
|
939439
|
-
return "5.17.1-
|
|
939527
|
+
return "5.17.1-4-g789cc010ee9";
|
|
939440
939528
|
}
|
|
939441
939529
|
getCliName() {
|
|
939442
939530
|
if (false) {
|
package/package.json
CHANGED