From e135f0623246da729922a3d39adce327f80685b1 Mon Sep 17 00:00:00 2001 From: Andrew Jiang Date: Wed, 29 May 2024 12:01:20 -0400 Subject: [PATCH 1/9] types: add top level changelog, and share types across api nodes --- .../definition/docs/v1/commons/commons.yml | 209 +++++++++++ .../fdr/definition/docs/v1/db/__package__.yml | 64 ++-- .../definition/docs/v1/read/__package__.yml | 323 ++++------------- .../definition/docs/v1/write/__package__.yml | 335 +++++------------- packages/fdr-sdk/src/client/DocsV1Db.ts | 2 + packages/fdr-sdk/src/client/DocsV1Read.ts | 2 + packages/fdr-sdk/src/client/DocsV1Write.ts | 2 + .../resources/commons/types/ColorConfig.ts | 19 + .../commons/types/ColorThemedConfig.ts | 10 + .../commons}/types/ColorUnthemedConfig.ts | 4 +- .../resources/commons/types/ColorsConfig.ts | 9 + .../resources/commons/types/ColorsConfigV2.ts | 10 + .../resources/commons}/types/CssConfig.ts | 0 .../commons}/types/CustomFontConfig.ts | 6 +- .../commons/types/CustomFontConfigVariant.ts | 11 + .../commons/types/DocsTypographyConfig.ts | 11 + .../commons/types/DocsTypographyConfigV2.ts | 11 + .../resources/commons}/types/FileId.ts | 0 .../resources/commons/types/FileIdOrUrl.ts | 21 ++ .../resources/commons}/types/FontConfig.ts | 4 +- .../resources/commons/types/FontConfigV2.ts | 13 + .../resources/commons}/types/FontDisplay.ts | 0 .../resources/commons}/types/FontStyle.ts | 0 .../resources/commons/types/FooterLink.ts | 81 +++++ .../commons}/types/IntegrationsConfig.ts | 0 .../resources/commons/types/JsConfig.ts | 11 + .../resources/commons/types/JsFileConfig.ts | 10 + .../resources/commons/types/JsRemoteConfig.ts | 10 + .../commons}/types/JsScriptStrategy.ts | 0 .../commons}/types/MetadataConfig.ts | 10 +- .../commons}/types/NavbarGithubMetadata.ts | 4 +- .../resources/commons/types/NavbarLink.ts | 39 ++ .../commons}/types/NavbarLinkMetadata.ts | 4 +- .../resources/commons}/types/PageId.ts | 0 .../commons}/types/RedirectConfig.ts | 0 .../resources/commons}/types/RgbaColor.ts | 0 .../resources/commons/types/ThemedFileId.ts | 10 + .../commons}/types/TwitterCardSetting.ts | 0 .../resources/commons}/types/Url.ts | 0 .../commons/resources/commons/types/index.ts | 32 ++ .../v1/resources/db/types/DocsDbConfig.ts | 32 +- .../resources/db/types/DocsDefinitionDbV1.ts | 6 +- .../resources/db/types/DocsDefinitionDbV2.ts | 8 +- .../resources/db/types/DocsDefinitionDbV3.ts | 4 +- .../v1/resources/db/types/NavigationItem.ts | 7 +- .../v1/resources/db/types/NavigationTabV2.ts | 24 ++ .../UnversionedTabbedNavigationConfig.ts | 3 +- .../resources/v1/resources/db/types/index.ts | 1 + .../read/types/ApiNavigationConfigRoot.ts | 2 +- .../types/ApiNavigationConfigSubpackage.ts | 2 +- .../v1/resources/read/types/ApiSection.ts | 6 +- .../v1/resources/read/types/Background.ts | 2 +- .../v1/resources/read/types/ChangelogItem.ts | 2 +- .../resources/read/types/ChangelogSection.ts | 9 +- .../v1/resources/read/types/ColorConfig.ts | 17 - .../resources/read/types/ColorThemedConfig.ts | 10 - .../read/types/ColorUnthemedConfig.ts | 9 - .../v1/resources/read/types/ColorsConfig.ts | 9 - .../v1/resources/read/types/ColorsConfigV2.ts | 10 - .../read/types/CustomFontConfigVariant.ts | 11 - .../v1/resources/read/types/DocsConfig.ts | 26 +- .../v1/resources/read/types/DocsDefinition.ts | 6 +- .../v1/resources/read/types/DocsSection.ts | 6 +- .../read/types/DocsTypographyConfig.ts | 11 - .../read/types/DocsTypographyConfigV2.ts | 11 - .../v1/resources/read/types/FileIdOrUrl.ts | 19 - .../v1/resources/read/types/FontConfigV2.ts | 13 - .../v1/resources/read/types/FooterLink.ts | 81 ----- .../v1/resources/read/types/ImageFile.ts | 2 +- .../v1/resources/read/types/JsConfig.ts | 11 - .../v1/resources/read/types/JsFileConfig.ts | 10 - .../v1/resources/read/types/JsRemoteConfig.ts | 10 - .../v1/resources/read/types/LogoV2.ts | 10 - .../v1/resources/read/types/MetadataConfig.ts | 24 -- .../read/types/NavbarGithubMetadata.ts | 7 - .../v1/resources/read/types/NavbarLink.ts | 39 -- .../v1/resources/read/types/NavigationItem.ts | 7 +- .../read/types/NavigationNodeMetadata.ts | 10 + .../v1/resources/read/types/NavigationTab.ts | 7 +- .../read/types/NavigationTabGroup.ts | 4 +- .../resources/read/types/NavigationTabLink.ts | 2 +- .../v1/resources/read/types/PageContent.ts | 2 +- .../v1/resources/read/types/PageMetadata.ts | 8 +- .../v1/resources/read/types/ThemeConfig.ts | 14 +- .../v1/resources/read/types/UrlFile.ts | 2 +- .../v1/resources/read/types/index.ts | 33 +- .../write/types/ApiNavigationConfigRoot.ts | 2 +- .../types/ApiNavigationConfigSubpackage.ts | 2 +- .../v1/resources/write/types/ApiSection.ts | 7 +- .../write/types/ChangelogSectionV2.ts | 12 + .../v1/resources/write/types/ColorConfig.ts | 19 - .../write/types/ColorThemedConfig.ts | 10 - .../v1/resources/write/types/ColorsConfig.ts | 9 - .../resources/write/types/ColorsConfigV2.ts | 10 - .../v1/resources/write/types/CssConfig.ts | 7 - .../resources/write/types/CustomFontConfig.ts | 13 - .../write/types/CustomFontConfigVariant.ts | 11 - .../v1/resources/write/types/DocsConfig.ts | 32 +- .../resources/write/types/DocsDefinition.ts | 2 +- .../v1/resources/write/types/DocsSection.ts | 12 +- .../write/types/DocsTypographyConfig.ts | 11 - .../write/types/DocsTypographyConfigV2.ts | 11 - .../v1/resources/write/types/FileId.ts | 5 - .../v1/resources/write/types/FileIdOrUrl.ts | 19 - .../resources/write/types/FileS3UploadUrl.ts | 4 +- .../v1/resources/write/types/FontConfig.ts | 10 - .../v1/resources/write/types/FontConfigV2.ts | 13 - .../v1/resources/write/types/FontDisplay.ts | 13 - .../v1/resources/write/types/FontStyle.ts | 10 - .../v1/resources/write/types/FooterLink.ts | 81 ----- .../write/types/IntegrationsConfig.ts | 7 - .../v1/resources/write/types/JsConfig.ts | 11 - .../v1/resources/write/types/JsFileConfig.ts | 10 - .../resources/write/types/JsRemoteConfig.ts | 10 - .../resources/write/types/JsScriptStrategy.ts | 11 - .../v1/resources/write/types/NavbarLink.ts | 39 -- .../write/types/NavbarLinkMetadata.ts | 11 - .../resources/write/types/NavigationItem.ts | 7 +- .../write/types/NavigationNodeMetadata.ts | 12 + .../write/types/NavigationTabGroup.ts | 4 +- .../resources/write/types/NavigationTabV2.ts | 24 ++ .../v1/resources/write/types/PageContent.ts | 2 +- .../v1/resources/write/types/PageId.ts | 5 - .../v1/resources/write/types/PageMetadata.ts | 9 +- .../resources/write/types/RedirectConfig.ts | 8 - .../v1/resources/write/types/RgbaColor.ts | 10 - .../v1/resources/write/types/ThemeConfig.ts | 16 +- .../v1/resources/write/types/ThemedFileId.ts | 10 - .../write/types/TwitterCardSetting.ts | 12 - .../UnversionedTabbedNavigationConfig.ts | 3 +- .../resources/v1/resources/write/types/Url.ts | 5 - .../v1/resources/write/types/index.ts | 35 +- packages/fdr-sdk/src/client/index.ts | 6 +- .../db/convertDocsDefinitionToDb.ts | 59 ++- .../read/convertDbDocsConfigToRead.ts | 32 +- .../resources/commons/types/ColorConfig.d.ts | 13 + .../resources/commons}/types/ColorConfig.js | 0 .../commons/types/ColorThemedConfig.d.ts | 8 + .../commons}/types/ColorThemedConfig.js | 0 .../commons}/types/ColorUnthemedConfig.d.ts | 4 +- .../commons}/types/ColorUnthemedConfig.js | 0 .../resources/commons/types/ColorsConfig.d.ts | 7 + .../resources/commons}/types/ColorsConfig.js | 0 .../commons/types/ColorsConfigV2.d.ts | 8 + .../commons}/types/ColorsConfigV2.js | 0 .../resources/commons}/types/CssConfig.d.ts | 0 .../resources/commons}/types/CssConfig.js | 0 .../commons}/types/CustomFontConfig.d.ts | 6 +- .../commons}/types/CustomFontConfig.js | 0 .../types/CustomFontConfigVariant.d.ts | 9 + .../commons}/types/CustomFontConfigVariant.js | 0 .../commons/types/DocsTypographyConfig.d.ts | 9 + .../commons}/types/DocsTypographyConfig.js | 0 .../commons/types/DocsTypographyConfigV2.d.ts | 9 + .../commons}/types/DocsTypographyConfigV2.js | 0 .../resources/commons}/types/FileId.d.ts | 0 .../resources/commons}/types/FileId.js | 0 .../resources/commons/types/FileIdOrUrl.d.ts | 15 + .../resources/commons}/types/FileIdOrUrl.js | 0 .../resources/commons}/types/FontConfig.d.ts | 4 +- .../resources/commons}/types/FontConfig.js | 0 .../resources/commons/types/FontConfigV2.d.ts | 10 + .../resources/commons}/types/FontConfigV2.js | 0 .../resources/commons}/types/FontDisplay.d.ts | 0 .../resources/commons}/types/FontDisplay.js | 0 .../resources/commons}/types/FontStyle.d.ts | 0 .../resources/commons}/types/FontStyle.js | 0 .../resources/commons/types/FooterLink.d.ts | 55 +++ .../resources/commons}/types/FooterLink.js | 0 .../commons}/types/IntegrationsConfig.d.ts | 0 .../commons}/types/IntegrationsConfig.js | 0 .../resources/commons/types/JsConfig.d.ts | 9 + .../resources/commons}/types/JsConfig.js | 0 .../resources/commons/types/JsFileConfig.d.ts | 8 + .../resources/commons}/types/JsFileConfig.js | 0 .../commons/types/JsRemoteConfig.d.ts | 8 + .../commons}/types/JsRemoteConfig.js | 0 .../commons}/types/JsScriptStrategy.d.ts | 0 .../commons}/types/JsScriptStrategy.js | 0 .../commons}/types/MetadataConfig.d.ts | 10 +- .../commons}/types/MetadataConfig.js | 0 .../commons}/types/NavbarGithubMetadata.d.ts | 3 +- .../commons}/types/NavbarGithubMetadata.js | 0 .../resources/commons/types/NavbarLink.d.ts | 25 ++ .../resources/commons}/types/NavbarLink.js | 0 .../commons}/types/NavbarLinkMetadata.d.ts | 3 +- .../commons}/types/NavbarLinkMetadata.js | 0 .../resources/commons}/types/PageId.d.ts | 0 .../resources/commons}/types/PageId.js | 0 .../commons}/types/RedirectConfig.d.ts | 0 .../commons}/types/RedirectConfig.js | 0 .../resources/commons}/types/RgbaColor.d.ts | 0 .../resources/commons}/types/RgbaColor.js | 0 .../resources/commons/types/ThemedFileId.d.ts | 8 + .../resources/commons}/types/ThemedFileId.js | 0 .../commons}/types/TwitterCardSetting.d.ts | 0 .../commons}/types/TwitterCardSetting.js | 0 .../resources/commons}/types/Url.d.ts | 0 .../resources/commons}/types/Url.js | 0 .../resources/commons/types/index.d.ts | 32 ++ .../commons/resources/commons/types/index.js | 32 ++ .../v1/resources/db/types/DocsDbConfig.d.ts | 32 +- .../db/types/DocsDefinitionDbV1.d.ts | 6 +- .../db/types/DocsDefinitionDbV2.d.ts | 8 +- .../db/types/DocsDefinitionDbV3.d.ts | 4 +- .../v1/resources/db/types/NavigationItem.d.ts | 5 +- .../resources/db/types/NavigationTabV2.d.ts | 16 + .../LogoV2.js => db/types/NavigationTabV2.js} | 0 .../UnversionedTabbedNavigationConfig.d.ts | 3 +- .../v1/resources/db/types/index.d.ts | 1 + .../resources/v1/resources/db/types/index.js | 1 + .../read/types/ApiNavigationConfigRoot.d.ts | 2 +- .../types/ApiNavigationConfigSubpackage.d.ts | 2 +- .../v1/resources/read/types/ApiSection.d.ts | 6 +- .../v1/resources/read/types/Background.d.ts | 2 +- .../resources/read/types/ChangelogItem.d.ts | 2 +- .../read/types/ChangelogSection.d.ts | 9 +- .../v1/resources/read/types/ColorConfig.d.ts | 13 - .../read/types/ColorThemedConfig.d.ts | 8 - .../v1/resources/read/types/ColorsConfig.d.ts | 7 - .../resources/read/types/ColorsConfigV2.d.ts | 8 - .../read/types/CustomFontConfigVariant.d.ts | 9 - .../v1/resources/read/types/DocsConfig.d.ts | 26 +- .../resources/read/types/DocsDefinition.d.ts | 6 +- .../v1/resources/read/types/DocsSection.d.ts | 6 +- .../read/types/DocsTypographyConfig.d.ts | 9 - .../read/types/DocsTypographyConfigV2.d.ts | 9 - .../v1/resources/read/types/FileIdOrUrl.d.ts | 15 - .../v1/resources/read/types/FontConfigV2.d.ts | 10 - .../v1/resources/read/types/FooterLink.d.ts | 55 --- .../v1/resources/read/types/ImageFile.d.ts | 2 +- .../v1/resources/read/types/JsConfig.d.ts | 9 - .../v1/resources/read/types/JsFileConfig.d.ts | 8 - .../resources/read/types/JsRemoteConfig.d.ts | 8 - .../v1/resources/read/types/LogoV2.d.ts | 8 - .../v1/resources/read/types/NavbarLink.d.ts | 25 -- .../resources/read/types/NavigationItem.d.ts | 5 +- .../read/types/NavigationNodeMetadata.d.ts | 9 + .../types/NavigationNodeMetadata.js} | 0 .../resources/read/types/NavigationTab.d.ts | 5 +- .../read/types/NavigationTabGroup.d.ts | 4 +- .../read/types/NavigationTabLink.d.ts | 2 +- .../v1/resources/read/types/PageContent.d.ts | 2 +- .../v1/resources/read/types/PageMetadata.d.ts | 8 +- .../v1/resources/read/types/ThemeConfig.d.ts | 14 +- .../v1/resources/read/types/UrlFile.d.ts | 2 +- .../v1/resources/read/types/index.d.ts | 33 +- .../v1/resources/read/types/index.js | 33 +- .../write/types/ApiNavigationConfigRoot.d.ts | 2 +- .../types/ApiNavigationConfigSubpackage.d.ts | 2 +- .../v1/resources/write/types/ApiSection.d.ts | 7 +- .../write/types/ChangelogSectionV2.d.ts | 10 + ...rThemedConfig.js => ChangelogSectionV2.js} | 0 .../v1/resources/write/types/ColorConfig.d.ts | 13 - .../write/types/ColorThemedConfig.d.ts | 8 - .../write/types/ColorUnthemedConfig.d.ts | 7 - .../resources/write/types/ColorsConfig.d.ts | 7 - .../resources/write/types/ColorsConfigV2.d.ts | 8 - .../resources/write/types/ColorsConfigV2.js | 4 - .../v1/resources/write/types/CssConfig.d.ts | 6 - .../v1/resources/write/types/CssConfig.js | 4 - .../write/types/CustomFontConfig.d.ts | 11 - .../resources/write/types/CustomFontConfig.js | 4 - .../write/types/CustomFontConfigVariant.d.ts | 9 - .../write/types/CustomFontConfigVariant.js | 4 - .../v1/resources/write/types/DocsConfig.d.ts | 32 +- .../resources/write/types/DocsDefinition.d.ts | 2 +- .../v1/resources/write/types/DocsSection.d.ts | 12 +- .../write/types/DocsTypographyConfig.d.ts | 9 - .../write/types/DocsTypographyConfig.js | 4 - .../write/types/DocsTypographyConfigV2.d.ts | 9 - .../write/types/DocsTypographyConfigV2.js | 4 - .../v1/resources/write/types/FileId.d.ts | 4 - .../v1/resources/write/types/FileId.js | 4 - .../v1/resources/write/types/FileIdOrUrl.d.ts | 15 - .../v1/resources/write/types/FileIdOrUrl.js | 4 - .../write/types/FileS3UploadUrl.d.ts | 4 +- .../v1/resources/write/types/FontConfig.d.ts | 8 - .../v1/resources/write/types/FontConfig.js | 4 - .../resources/write/types/FontConfigV2.d.ts | 10 - .../v1/resources/write/types/FontConfigV2.js | 4 - .../v1/resources/write/types/FontDisplay.d.ts | 11 - .../v1/resources/write/types/FontDisplay.js | 10 - .../v1/resources/write/types/FontStyle.d.ts | 8 - .../v1/resources/write/types/FontStyle.js | 7 - .../v1/resources/write/types/FooterLink.d.ts | 55 --- .../v1/resources/write/types/FooterLink.js | 4 - .../write/types/IntegrationsConfig.d.ts | 6 - .../write/types/IntegrationsConfig.js | 4 - .../v1/resources/write/types/JsConfig.d.ts | 9 - .../v1/resources/write/types/JsConfig.js | 4 - .../resources/write/types/JsFileConfig.d.ts | 8 - .../v1/resources/write/types/JsFileConfig.js | 4 - .../resources/write/types/JsRemoteConfig.d.ts | 8 - .../resources/write/types/JsRemoteConfig.js | 4 - .../write/types/JsScriptStrategy.d.ts | 9 - .../resources/write/types/JsScriptStrategy.js | 8 - .../resources/write/types/MetadataConfig.d.ts | 22 -- .../resources/write/types/MetadataConfig.js | 4 - .../write/types/NavbarGithubMetadata.d.ts | 6 - .../write/types/NavbarGithubMetadata.js | 4 - .../v1/resources/write/types/NavbarLink.d.ts | 25 -- .../v1/resources/write/types/NavbarLink.js | 4 - .../write/types/NavbarLinkMetadata.d.ts | 10 - .../write/types/NavbarLinkMetadata.js | 4 - .../resources/write/types/NavigationItem.d.ts | 5 +- .../write/types/NavigationNodeMetadata.d.ts | 11 + ...medConfig.js => NavigationNodeMetadata.js} | 0 .../write/types/NavigationTabGroup.d.ts | 4 +- .../write/types/NavigationTabV2.d.ts | 16 + .../{ColorsConfig.js => NavigationTabV2.js} | 0 .../v1/resources/write/types/PageContent.d.ts | 2 +- .../v1/resources/write/types/PageId.d.ts | 4 - .../v1/resources/write/types/PageId.js | 4 - .../resources/write/types/PageMetadata.d.ts | 9 +- .../resources/write/types/RedirectConfig.d.ts | 7 - .../resources/write/types/RedirectConfig.js | 4 - .../v1/resources/write/types/RgbaColor.d.ts | 9 - .../v1/resources/write/types/RgbaColor.js | 4 - .../v1/resources/write/types/ThemeConfig.d.ts | 16 +- .../resources/write/types/ThemedFileId.d.ts | 8 - .../write/types/TwitterCardSetting.d.ts | 10 - .../write/types/TwitterCardSetting.js | 9 - .../UnversionedTabbedNavigationConfig.d.ts | 3 +- .../v1/resources/write/types/Url.d.ts | 4 - .../resources/v1/resources/write/types/Url.js | 4 - .../v1/resources/write/types/index.d.ts | 35 +- .../v1/resources/write/types/index.js | 35 +- 328 files changed, 1510 insertions(+), 2427 deletions(-) create mode 100644 packages/fdr-sdk/src/client/DocsV1Db.ts create mode 100644 packages/fdr-sdk/src/client/DocsV1Read.ts create mode 100644 packages/fdr-sdk/src/client/DocsV1Write.ts create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorConfig.ts create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorThemedConfig.ts rename packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/{write => commons/resources/commons}/types/ColorUnthemedConfig.ts (50%) create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorsConfig.ts create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorsConfigV2.ts rename packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/CssConfig.ts (100%) rename packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/CustomFontConfig.ts (50%) create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CustomFontConfigVariant.ts create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/DocsTypographyConfig.ts create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/DocsTypographyConfigV2.ts rename packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/FileId.ts (100%) create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FileIdOrUrl.ts rename packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/FontConfig.ts (52%) create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontConfigV2.ts rename packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/FontDisplay.ts (100%) rename packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/FontStyle.ts (100%) create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FooterLink.ts rename packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/IntegrationsConfig.ts (100%) create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsConfig.ts create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsFileConfig.ts create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsRemoteConfig.ts rename packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/JsScriptStrategy.ts (100%) rename packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/{write => commons/resources/commons}/types/MetadataConfig.ts (59%) rename packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/{write => commons/resources/commons}/types/NavbarGithubMetadata.ts (52%) create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarLink.ts rename packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/NavbarLinkMetadata.ts (65%) rename packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/PageId.ts (100%) rename packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/RedirectConfig.ts (100%) rename packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/RgbaColor.ts (100%) create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ThemedFileId.ts rename packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/TwitterCardSetting.ts (100%) rename packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/Url.ts (100%) create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/NavigationTabV2.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ColorConfig.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ColorThemedConfig.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ColorUnthemedConfig.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ColorsConfig.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ColorsConfigV2.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/CustomFontConfigVariant.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/DocsTypographyConfig.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/DocsTypographyConfigV2.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/FileIdOrUrl.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/FontConfigV2.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/FooterLink.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/JsConfig.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/JsFileConfig.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/JsRemoteConfig.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/LogoV2.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/MetadataConfig.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavbarGithubMetadata.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavbarLink.ts create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationNodeMetadata.ts create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ChangelogSectionV2.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ColorConfig.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ColorThemedConfig.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ColorsConfig.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ColorsConfigV2.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/CssConfig.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfig.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfigVariant.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfig.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfigV2.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FileId.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FileIdOrUrl.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FontConfig.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FontConfigV2.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FontDisplay.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FontStyle.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FooterLink.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/IntegrationsConfig.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/JsConfig.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/JsFileConfig.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/JsRemoteConfig.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/JsScriptStrategy.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLink.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLinkMetadata.ts create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavigationNodeMetadata.ts create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavigationTabV2.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/PageId.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/RedirectConfig.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/RgbaColor.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ThemedFileId.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/TwitterCardSetting.ts delete mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/Url.ts create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorConfig.d.ts rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/ColorConfig.js (100%) create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorThemedConfig.d.ts rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/ColorThemedConfig.js (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/ColorUnthemedConfig.d.ts (50%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/ColorUnthemedConfig.js (100%) create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorsConfig.d.ts rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/ColorsConfig.js (100%) create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorsConfigV2.d.ts rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/ColorsConfigV2.js (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/CssConfig.d.ts (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/CssConfig.js (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/CustomFontConfig.d.ts (50%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/CustomFontConfig.js (100%) create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CustomFontConfigVariant.d.ts rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/CustomFontConfigVariant.js (100%) create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/DocsTypographyConfig.d.ts rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/DocsTypographyConfig.js (100%) create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/DocsTypographyConfigV2.d.ts rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/DocsTypographyConfigV2.js (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/FileId.d.ts (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/FileId.js (100%) create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FileIdOrUrl.d.ts rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/FileIdOrUrl.js (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/FontConfig.d.ts (52%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/FontConfig.js (100%) create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontConfigV2.d.ts rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/FontConfigV2.js (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/FontDisplay.d.ts (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/FontDisplay.js (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/FontStyle.d.ts (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/FontStyle.js (100%) create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FooterLink.d.ts rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/FooterLink.js (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/IntegrationsConfig.d.ts (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/IntegrationsConfig.js (100%) create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsConfig.d.ts rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/JsConfig.js (100%) create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsFileConfig.d.ts rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/JsFileConfig.js (100%) create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsRemoteConfig.d.ts rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/JsRemoteConfig.js (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/JsScriptStrategy.d.ts (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/JsScriptStrategy.js (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/MetadataConfig.d.ts (59%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/MetadataConfig.js (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/NavbarGithubMetadata.d.ts (52%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/NavbarGithubMetadata.js (100%) create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarLink.d.ts rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/NavbarLink.js (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/NavbarLinkMetadata.d.ts (65%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/NavbarLinkMetadata.js (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/PageId.d.ts (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/PageId.js (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/RedirectConfig.d.ts (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/RedirectConfig.js (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/RgbaColor.d.ts (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/RgbaColor.js (100%) create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ThemedFileId.d.ts rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{write => commons/resources/commons}/types/ThemedFileId.js (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/TwitterCardSetting.d.ts (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/TwitterCardSetting.js (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/Url.d.ts (100%) rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read => commons/resources/commons}/types/Url.js (100%) create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/NavigationTabV2.d.ts rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{read/types/LogoV2.js => db/types/NavigationTabV2.js} (100%) delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorConfig.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorThemedConfig.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorsConfig.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorsConfigV2.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/CustomFontConfigVariant.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsTypographyConfig.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsTypographyConfigV2.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FileIdOrUrl.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FontConfigV2.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FooterLink.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/JsConfig.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/JsFileConfig.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/JsRemoteConfig.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/LogoV2.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavbarLink.d.ts create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationNodeMetadata.d.ts rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/{write/types/ColorConfig.js => read/types/NavigationNodeMetadata.js} (100%) create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ChangelogSectionV2.d.ts rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/{ColorThemedConfig.js => ChangelogSectionV2.js} (100%) delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorConfig.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorThemedConfig.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorUnthemedConfig.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorsConfig.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorsConfigV2.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorsConfigV2.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CssConfig.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CssConfig.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfig.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfig.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfigVariant.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfigVariant.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfig.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfig.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfigV2.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfigV2.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FileId.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FileId.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FileIdOrUrl.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FileIdOrUrl.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontConfig.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontConfig.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontConfigV2.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontConfigV2.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontDisplay.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontDisplay.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontStyle.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontStyle.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FooterLink.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FooterLink.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/IntegrationsConfig.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/IntegrationsConfig.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsConfig.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsConfig.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsFileConfig.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsFileConfig.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsRemoteConfig.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsRemoteConfig.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsScriptStrategy.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsScriptStrategy.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/MetadataConfig.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/MetadataConfig.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarGithubMetadata.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarGithubMetadata.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLink.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLink.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLinkMetadata.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLinkMetadata.js create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavigationNodeMetadata.d.ts rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/{ColorUnthemedConfig.js => NavigationNodeMetadata.js} (100%) create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavigationTabV2.d.ts rename servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/{ColorsConfig.js => NavigationTabV2.js} (100%) delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/PageId.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/PageId.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/RedirectConfig.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/RedirectConfig.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/RgbaColor.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/RgbaColor.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ThemedFileId.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/TwitterCardSetting.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/TwitterCardSetting.js delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/Url.d.ts delete mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/Url.js diff --git a/fern/apis/fdr/definition/docs/v1/commons/commons.yml b/fern/apis/fdr/definition/docs/v1/commons/commons.yml index 82542c3135..2c8d3e29d0 100644 --- a/fern/apis/fdr/definition/docs/v1/commons/commons.yml +++ b/fern/apis/fdr/definition/docs/v1/commons/commons.yml @@ -1,7 +1,216 @@ # yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json types: + FileId: string + PageId: string + Url: string SubpackageId: string EndpointId: string WebSocketId: string WebhookId: string + + FileIdOrUrl: + union: + fileId: FileId + url: Url + + RgbaColor: + properties: + r: integer + g: integer + b: integer + a: optional + + # SEO Config + + MetadataConfig: + properties: + "og:site_name": optional + "og:title": optional + "og:description": optional + "og:url": optional + "og:image": optional + "og:image:width": optional + "og:image:height": optional + "og:locale": optional + "og:logo": optional + "twitter:title": optional + "twitter:description": optional + "twitter:handle": optional + "twitter:image": optional + "twitter:site": optional + "twitter:url": optional + "twitter:card": optional + + RedirectConfig: + properties: + source: string + destination: string + + TwitterCardSetting: + enum: + - summary + - summary_large_image + - app + - player + + NavbarLink: + union: + filled: NavbarLinkMetadata + outlined: NavbarLinkMetadata + minimal: NavbarLinkMetadata + github: NavbarGithubMetadata + + # deprecated + primary: NavbarLinkMetadata # -> outlined + secondary: NavbarLinkMetadata # -> minimal + + NavbarLinkMetadata: + properties: + url: Url + text: optional + icon: optional + rightIcon: optional + rounded: optional + + NavbarGithubMetadata: + properties: + url: Url # github repo url + + FooterLink: + union: + github: Url + twitter: Url + x: Url + linkedin: Url + youtube: Url + instagram: Url + facebook: Url + discord: Url + slack: Url + hackernews: Url + medium: Url + website: Url + + # Customization Config + + CssConfig: + properties: + inline: optional> + + JsConfig: + properties: + remote: optional> + files: list + inline: optional> + + JsRemoteConfig: + properties: + url: Url + strategy: optional + + JsFileConfig: + properties: + fileId: FileId + strategy: optional + + JsScriptStrategy: + enum: + - beforeInteractive + - afterInteractive # default + - lazyOnload + + IntegrationsConfig: + properties: + intercom: optional + + # Typography + + DocsTypographyConfigV2: + properties: + headingsFont: optional + bodyFont: optional + codeFont: optional + + # TODO: add support for google fonts + FontConfigV2: + union: + custom: CustomFontConfig + + CustomFontConfig: + properties: + name: string + variants: list + display: optional + fallback: optional> + + # declarations + fontVariationSettings: optional + + CustomFontConfigVariant: + properties: + fontFile: FileId + weight: optional> + style: optional> + + FontStyle: + enum: + - normal + - italic + + FontDisplay: + enum: + - auto + - block + - swap + - fallback + - optional + + # Deprecated + + ThemedFileId: + availability: deprecated + properties: + dark: optional + light: optional + + ColorsConfig: + availability: deprecated + properties: + accentPrimary: optional + + ColorsConfigV2: + availability: deprecated + properties: + accentPrimary: optional + background: optional + + ColorConfig: + availability: deprecated + union: + unthemed: ColorUnthemedConfig + themed: ColorThemedConfig + + ColorUnthemedConfig: + availability: deprecated + properties: + color: optional + + ColorThemedConfig: + availability: deprecated + properties: + dark: optional + light: optional + + DocsTypographyConfig: + availability: deprecated + properties: + headingsFont: optional + bodyFont: optional + codeFont: optional + + FontConfig: + availability: deprecated + properties: + name: string + fontFile: FileId diff --git a/fern/apis/fdr/definition/docs/v1/db/__package__.yml b/fern/apis/fdr/definition/docs/v1/db/__package__.yml index eb49550f72..494ba61217 100644 --- a/fern/apis/fdr/definition/docs/v1/db/__package__.yml +++ b/fern/apis/fdr/definition/docs/v1/db/__package__.yml @@ -5,6 +5,7 @@ imports: apiReadV1: ../../../api/v1/read/__package__.yml apiReadV1Endpoint: ../../../api/v1/read/endpoint.yml docsReadV1: ../read/__package__.yml + commons: ../commons/commons.yml types: DocsDefinitionDb: @@ -14,27 +15,29 @@ types: v3: DocsDefinitionDbV3 DocsDefinitionDbV1: + availability: deprecated properties: - pages: map + pages: map referencedApis: set - files: map + files: map config: DocsDbConfig - colors: optional + colors: optional DocsDefinitionDbV2: + availability: deprecated properties: - pages: map + pages: map referencedApis: set - files: map + files: map config: DocsDbConfig - colors: optional - typography: optional + colors: optional + typography: optional DocsDefinitionDbV3: properties: - pages: map + pages: map referencedApis: set - files: map + files: map config: DocsDbConfig DocsDbConfig: @@ -43,46 +46,46 @@ types: # navigation navigation: NavigationConfig - navbarLinks: optional> - footerLinks: optional> + navbarLinks: optional> + footerLinks: optional> # logo logoHeight: optional - logoHref: optional - favicon: optional + logoHref: optional + favicon: optional # seo - metadata: optional - redirects: optional> + metadata: optional + redirects: optional> # styles - backgroundImage: optional + backgroundImage: optional colorsV3: optional layout: optional - typographyV2: optional + typographyV2: optional # integrations - integrations: optional + integrations: optional # css and js - css: optional - js: optional + css: optional + js: optional # deprecated logo: - type: optional + type: optional availability: deprecated logoV2: - type: optional + type: optional availability: deprecated colors: - type: optional + type: optional availability: deprecated colorsV2: - type: optional + type: optional availability: deprecated typography: - type: optional + type: optional availability: deprecated DbFileInfoV2: @@ -116,14 +119,22 @@ types: UnversionedTabbedNavigationConfig: properties: - tabs: list + tabs: optional> + tabsV2: optional> NavigationTab: + availability: deprecated discriminated: false union: - NavigationTabGroup - docsReadV1.NavigationTabLink + NavigationTabV2: + union: + group: NavigationTabGroup + link: docsReadV1.NavigationTabLink + changelog: docsReadV1.ChangelogSection + NavigationTabGroup: properties: title: string @@ -152,6 +163,7 @@ types: api: ApiSection section: DocsSection link: docsReadV1.LinkMetadata + changelog: docsReadV1.ChangelogSection ApiSection: properties: diff --git a/fern/apis/fdr/definition/docs/v1/read/__package__.yml b/fern/apis/fdr/definition/docs/v1/read/__package__.yml index a7e101c08c..ada453bc1f 100644 --- a/fern/apis/fdr/definition/docs/v1/read/__package__.yml +++ b/fern/apis/fdr/definition/docs/v1/read/__package__.yml @@ -36,10 +36,6 @@ service: - DomainNotRegisteredError types: - PageId: string - - Url: string - File: union: url: UrlFile @@ -47,23 +43,16 @@ types: UrlFile: properties: - url: Url + url: commons.Url ImageFile: properties: - url: Url + url: commons.Url width: double height: double blurDataUrl: optional alt: optional - FileId: string - - FileIdOrUrl: - union: - fileId: FileId - url: Url - Height: double AlgoliaSearchIndex: string @@ -111,18 +100,18 @@ types: DocsDefinition: properties: algoliaSearchIndex: optional - pages: map + pages: map apis: map - files: map - filesV2: map + files: map + filesV2: map id: optional config: DocsConfig search: SearchInfo PageContent: properties: - markdown: string # eventually PageContent should just be a FileId ? - editThisPageUrl: optional + markdown: string # eventually PageContent should just be a commons.FileId ? + editThisPageUrl: optional DocsConfig: properties: @@ -130,45 +119,49 @@ types: # navigation navigation: NavigationConfig - navbarLinks: optional> - footerLinks: optional> + navbarLinks: optional> + footerLinks: optional> # logo logoHeight: optional - logoHref: optional - favicon: optional + logoHref: optional + favicon: optional # seo - metadata: optional - redirects: optional> + metadata: optional + redirects: optional> # styles colorsV3: optional layout: optional - typographyV2: optional + typographyV2: optional # integrations - integrations: optional + integrations: optional # css and js - css: optional - js: optional + css: optional + js: optional # deprecated - backgroundImage: optional - logoV2: optional - logo: - type: optional - availability: deprecated - colors: - type: optional - availability: deprecated - colorsV2: - type: optional - availability: deprecated - typography: - type: optional - availability: deprecated + # backgroundImage: + # type: optional + # availability: deprecated + # logoV2: + # type: optional + # availability: deprecated + # logo: + # type: optional + # availability: deprecated + # colors: + # type: optional + # availability: deprecated + # colorsV2: + # type: optional + # availability: deprecated + # typography: + # type: optional + # availability: deprecated ColorsConfigV3: union: @@ -178,14 +171,14 @@ types: ThemeConfig: properties: - logo: optional - backgroundImage: optional - accentPrimary: RgbaColor + logo: optional + backgroundImage: optional + accentPrimary: commons.RgbaColor background: Background - border: optional - sidebarBackground: optional - headerBackground: optional - cardBackground: optional + border: optional + sidebarBackground: optional + headerBackground: optional + cardBackground: optional DarkAndLightModeConfig: properties: @@ -194,65 +187,9 @@ types: Background: union: - solid: RgbaColor + solid: commons.RgbaColor gradient: {} - LogoV2: - properties: - dark: optional - light: optional - - DocsTypographyConfig: - properties: - headingsFont: optional - bodyFont: optional - codeFont: optional - - DocsTypographyConfigV2: - properties: - headingsFont: optional - bodyFont: optional - codeFont: optional - - FontConfig: - properties: - name: string - fontFile: FileId - - # TODO: add support for google fonts - FontConfigV2: - union: - custom: CustomFontConfig - - CustomFontConfig: - properties: - name: string - variants: list - display: optional - fallback: optional> - - # declarations - fontVariationSettings: optional - - CustomFontConfigVariant: - properties: - fontFile: FileId - weight: optional> - style: optional> - - FontStyle: - enum: - - normal - - italic - - FontDisplay: - enum: - - auto - - block - - swap - - fallback - - optional - NavigationConfig: discriminated: false union: @@ -273,19 +210,19 @@ types: union: group: NavigationTabGroup link: NavigationTabLink + changelog: ChangelogSection NavigationTabGroup: + extends: NavigationNodeMetadata properties: title: string - icon: optional items: list - urlSlug: string NavigationTabLink: properties: title: string icon: optional - url: Url + url: commons.Url UnversionedUntabbedNavigationConfig: properties: @@ -353,11 +290,16 @@ types: api: ApiSection section: DocsSection link: LinkMetadata + changelog: ChangelogSection PageMetadata: + extends: NavigationNodeMetadata properties: - id: PageId + id: commons.PageId title: string + + NavigationNodeMetadata: + properties: icon: optional hidden: optional urlSlug: string @@ -369,51 +311,29 @@ types: icon: optional url: string - NavbarLink: - union: - filled: NavbarLinkMetadata - outlined: NavbarLinkMetadata - minimal: NavbarLinkMetadata - github: NavbarGithubMetadata - - # deprecated - primary: NavbarLinkMetadata # -> outlined - secondary: NavbarLinkMetadata # -> minimal - - NavbarLinkMetadata: - properties: - url: string - text: optional - icon: optional - rightIcon: optional - rounded: optional - - NavbarGithubMetadata: - properties: - url: string # github repo url - ApiSection: + extends: NavigationNodeMetadata properties: title: string - icon: optional - hidden: optional api: rootCommons.ApiDefinitionId - urlSlug: string skipUrlSlug: boolean - artifacts: optional + artifacts: + type: optional + availability: deprecated showErrors: boolean changelog: optional - fullSlug: optional> navigation: optional longScrolling: optional flattened: optional ApiNavigationConfigRoot: + availability: deprecated properties: - summaryPageId: optional + summaryPageId: optional items: list ApiNavigationConfigItem: + availability: deprecated union: subpackage: ApiNavigationConfigSubpackage endpointId: commons.EndpointId @@ -422,69 +342,32 @@ types: page: PageMetadata ApiNavigationConfigSubpackage: + availability: deprecated properties: - summaryPageId: optional + summaryPageId: optional subpackageId: commons.SubpackageId items: list ChangelogSection: + extends: NavigationNodeMetadata properties: title: optional - icon: - type: optional - docs: Defaults to ActivityLog icon - hidden: optional description: optional - pageId: optional + pageId: optional items: list - urlSlug: string - fullSlug: optional> ChangelogItem: properties: date: date - pageId: PageId + pageId: commons.PageId DocsSection: + extends: NavigationNodeMetadata properties: title: string - icon: optional items: list - urlSlug: string skipUrlSlug: boolean collapsed: boolean - hidden: optional - fullSlug: optional> - - ColorsConfig: - properties: - accentPrimary: optional - - ColorsConfigV2: - properties: - accentPrimary: optional - background: optional - - ColorConfig: - union: - unthemed: ColorUnthemedConfig - themed: ColorThemedConfig - - ColorUnthemedConfig: - properties: - color: optional - - ColorThemedConfig: - properties: - dark: optional - light: optional - - RgbaColor: - properties: - r: integer - g: integer - b: integer - a: optional ApiArtifacts: properties: @@ -594,82 +477,6 @@ types: endpoint-v2: AlgoliaEndpointRecordV2 page-v2: AlgoliaPageRecordV2 - CssConfig: - properties: - inline: optional> - - JsConfig: - properties: - remote: optional> - files: list - inline: optional> - - JsRemoteConfig: - properties: - url: Url - strategy: optional - - JsFileConfig: - properties: - fileId: FileId - strategy: optional - - JsScriptStrategy: - enum: - - beforeInteractive - - afterInteractive # default - - lazyOnload - - IntegrationsConfig: - properties: - intercom: optional - - MetadataConfig: - properties: - "og:site_name": optional - "og:title": optional - "og:description": optional - "og:url": optional - "og:image": optional - "og:image:width": optional - "og:image:height": optional - "og:locale": optional - "og:logo": optional - "twitter:title": optional - "twitter:description": optional - "twitter:handle": optional - "twitter:image": optional - "twitter:site": optional - "twitter:url": optional - "twitter:card": optional - - RedirectConfig: - properties: - source: string - destination: string - - TwitterCardSetting: - enum: - - summary - - summary_large_image - - app - - player - - FooterLink: - union: - github: Url - twitter: Url - x: Url - linkedin: Url - youtube: Url - instagram: Url - facebook: Url - discord: Url - slack: Url - hackernews: Url - medium: Url - website: Url - errors: DomainNotRegisteredError: status-code: 404 diff --git a/fern/apis/fdr/definition/docs/v1/write/__package__.yml b/fern/apis/fdr/definition/docs/v1/write/__package__.yml index 00cec91512..ba2dc15c0b 100644 --- a/fern/apis/fdr/definition/docs/v1/write/__package__.yml +++ b/fern/apis/fdr/definition/docs/v1/write/__package__.yml @@ -57,32 +57,21 @@ types: properties: uploadUrl: string fileId: - type: FileId + type: commons.FileId docs: | - When reading docs we will return a map that you can use to look up the docs. - - FileId: string + When reading docs we will return a map that you can use to look up the docs. Height: double - PageId: string - - Url: string - - FileIdOrUrl: - union: - fileId: FileId - url: Url - DocsDefinition: properties: - pages: map + pages: map config: DocsConfig PageContent: properties: - markdown: string # eventually PageContent should just be a FileId ? - editThisPageUrl: optional + markdown: string # eventually PageContent should just be a commons.FileId ? + editThisPageUrl: optional DocsConfig: properties: @@ -90,45 +79,45 @@ types: # navigation navigation: NavigationConfig - navbarLinks: optional> - footerLinks: optional> + navbarLinks: optional> + footerLinks: optional> # logo logoHeight: optional - logoHref: optional - favicon: optional + logoHref: optional + favicon: optional # seo - metadata: optional - redirects: optional> + metadata: optional + redirects: optional> # TODO: customize 404 page/behavior # styles colorsV3: optional layout: optional - typographyV2: optional + typographyV2: optional # integrations - integrations: optional + integrations: optional # css and js - css: optional - js: optional + css: optional + js: optional # deprecated - backgroundImage: optional - logoV2: optional + backgroundImage: optional + logoV2: optional logo: - type: optional + type: optional availability: deprecated colors: - type: optional + type: optional availability: deprecated colorsV2: - type: optional + type: optional availability: deprecated typography: - type: optional + type: optional availability: deprecated ColorsConfigV3: @@ -139,99 +128,22 @@ types: ThemeConfig: properties: - logo: optional - backgroundImage: optional - accentPrimary: RgbaColor - background: optional - border: optional - sidebarBackground: optional - headerBackground: optional - cardBackground: optional + logo: optional + backgroundImage: optional + accentPrimary: commons.RgbaColor + background: optional + border: optional + sidebarBackground: optional + headerBackground: optional + cardBackground: optional DarkAndLightModeConfig: properties: dark: ThemeConfig light: ThemeConfig - ThemedFileId: - properties: - dark: optional - light: optional - - DocsTypographyConfig: - properties: - headingsFont: optional - bodyFont: optional - codeFont: optional - - DocsTypographyConfigV2: - properties: - headingsFont: optional - bodyFont: optional - codeFont: optional - - FontConfig: - properties: - name: string - fontFile: FileId - - # TODO: add support for google fonts - FontConfigV2: - union: - custom: CustomFontConfig - - CustomFontConfig: - properties: - name: string - variants: list - display: optional - fallback: optional> - # declarations - fontVariationSettings: optional - - CustomFontConfigVariant: - properties: - fontFile: FileId - weight: optional> - style: optional> - - FontStyle: - enum: - - normal - - italic - - FontDisplay: - enum: - - auto - - block - - swap - - fallback - - optional - - NavbarLink: - union: - filled: NavbarLinkMetadata - outlined: NavbarLinkMetadata - minimal: NavbarLinkMetadata - github: NavbarGithubMetadata - - # deprecated - primary: NavbarLinkMetadata # -> outlined - secondary: NavbarLinkMetadata # -> minimal - - NavbarLinkMetadata: - properties: - url: string - text: optional - icon: optional - rightIcon: optional - rounded: optional - - NavbarGithubMetadata: - properties: - url: string # github repo url - NavigationConfig: + availability: deprecated discriminated: false union: - UnversionedNavigationConfig @@ -245,20 +157,29 @@ types: UnversionedTabbedNavigationConfig: properties: - tabs: list + tabs: + type: optional> + availability: deprecated + tabsV2: optional> NavigationTab: + availability: deprecated discriminated: false union: - NavigationTabGroup - NavigationTabLink + NavigationTabV2: + union: + group: NavigationTabGroup + link: NavigationTabLink + changelog: ChangelogSectionV2 + NavigationTabGroup: + extends: NavigationNodeMetadata properties: title: string - icon: optional items: list - urlSlugOverride: optional NavigationTabLink: properties: @@ -332,15 +253,28 @@ types: api: ApiSection section: DocsSection link: LinkMetadata + changelog: ChangelogSectionV2 PageMetadata: + extends: NavigationNodeMetadata properties: + id: + type: commons.PageId + docs: This is a filepath relative to the fern folder, with a .md/.mdx extension. title: string + + NavigationNodeMetadata: + properties: icon: optional hidden: optional - id: PageId - urlSlugOverride: optional - fullSlug: optional> + urlSlugOverride: + type: optional + docs: | + Optional slug to override the generated slug, which is `kebabCase(title)`. This is ignored if `fullSlug` is provided. + fullSlug: + type: optional> + docs: | + If provided, ignores `urlSlugOverride`, and its parent slugs, and instead uses `/${basepath}/${fullSlug.join('/')}` this page's pathname. LinkMetadata: properties: @@ -349,27 +283,31 @@ types: url: string ApiSection: + extends: NavigationNodeMetadata properties: title: string - icon: optional api: rootCommons.ApiDefinitionId - artifacts: optional + artifacts: + type: optional + availability: deprecated skipUrlSlug: optional showErrors: optional - changelog: optional - hidden: optional - urlSlugOverride: optional - fullSlug: optional> + changelog: + type: optional + availability: deprecated + changelogV2: optional navigation: optional longScrolling: optional flattened: optional ApiNavigationConfigRoot: + availability: deprecated properties: - summaryPageId: optional + summaryPageId: optional items: list ApiNavigationConfigItem: + availability: deprecated union: subpackage: ApiNavigationConfigSubpackage endpointId: commons.EndpointId @@ -378,12 +316,14 @@ types: page: PageMetadata ApiNavigationConfigSubpackage: + availability: deprecated properties: - summaryPageId: optional + summaryPageId: optional subpackageId: commons.SubpackageId items: list ChangelogSection: + availability: deprecated properties: title: type: optional @@ -402,6 +342,14 @@ types: urlSlug: string fullSlug: optional> + ChangelogSectionV2: + extends: NavigationNodeMetadata + properties: + title: optional + description: optional + pageId: optional + items: list + ChangelogItem: properties: date: date @@ -409,45 +357,22 @@ types: hidden: optional DocsSection: + extends: NavigationNodeMetadata properties: title: string - icon: optional items: list - urlSlugOverride: optional - collapsed: optional - hidden: optional + collapsed: + type: optional + # default: false + docs: | + This is only applicable to sections that are at the root level in the sidebar. + If false, the section title will be displayed as a header and the items will be displayed below it, and cannot be collapsed. skipUrlSlug: optional - fullSlug: optional> - - ColorsConfig: - properties: - accentPrimary: optional - - ColorsConfigV2: - properties: - accentPrimary: optional - background: optional - - ColorConfig: - union: - unthemed: ColorUnthemedConfig - themed: ColorThemedConfig - - ColorUnthemedConfig: - properties: - color: optional - - ColorThemedConfig: - properties: - dark: optional - light: optional - - RgbaColor: - properties: - r: integer - g: integer - b: integer - a: optional + summaryPageId: + type: optional + availability: in-development + docs: | + If provided, clicking on this section will open this page instead of the first page in the section. ApiArtifacts: properties: @@ -495,82 +420,6 @@ types: OverlappingCustomDomains: list - CssConfig: - properties: - inline: optional> - - JsConfig: - properties: - remote: optional> - files: list - inline: optional> - - JsRemoteConfig: - properties: - url: Url - strategy: optional - - JsFileConfig: - properties: - fileId: FileId - strategy: optional - - JsScriptStrategy: - enum: - - beforeInteractive - - afterInteractive # default - - lazyOnload - - IntegrationsConfig: - properties: - intercom: optional - - MetadataConfig: - properties: - "og:site_name": optional - "og:title": optional - "og:description": optional - "og:url": optional - "og:image": optional - "og:image:width": optional - "og:image:height": optional - "og:locale": optional - "og:logo": optional - "twitter:title": optional - "twitter:description": optional - "twitter:image": optional - "twitter:handle": optional - "twitter:site": optional - "twitter:url": optional - "twitter:card": optional - - RedirectConfig: - properties: - source: string - destination: string - - TwitterCardSetting: - enum: - - summary - - summary_large_image - - app - - player - - FooterLink: - union: - github: Url - twitter: Url - x: Url - linkedin: Url - youtube: Url - instagram: Url - facebook: Url - discord: Url - slack: Url - hackernews: Url - medium: Url - website: Url - errors: DocsRegistrationIdNotFound: status-code: 404 diff --git a/packages/fdr-sdk/src/client/DocsV1Db.ts b/packages/fdr-sdk/src/client/DocsV1Db.ts new file mode 100644 index 0000000000..08a1e1c6c8 --- /dev/null +++ b/packages/fdr-sdk/src/client/DocsV1Db.ts @@ -0,0 +1,2 @@ +export * from "./generated/api/resources/docs/resources/v1/resources/commons"; +export * from "./generated/api/resources/docs/resources/v1/resources/db"; diff --git a/packages/fdr-sdk/src/client/DocsV1Read.ts b/packages/fdr-sdk/src/client/DocsV1Read.ts new file mode 100644 index 0000000000..5febb9ae34 --- /dev/null +++ b/packages/fdr-sdk/src/client/DocsV1Read.ts @@ -0,0 +1,2 @@ +export * from "./generated/api/resources/docs/resources/v1/resources/commons"; +export * from "./generated/api/resources/docs/resources/v1/resources/read"; diff --git a/packages/fdr-sdk/src/client/DocsV1Write.ts b/packages/fdr-sdk/src/client/DocsV1Write.ts new file mode 100644 index 0000000000..2a363dae80 --- /dev/null +++ b/packages/fdr-sdk/src/client/DocsV1Write.ts @@ -0,0 +1,2 @@ +export * from "./generated/api/resources/docs/resources/v1/resources/commons"; +export * from "./generated/api/resources/docs/resources/v1/resources/write"; diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorConfig.ts new file mode 100644 index 0000000000..43ded47cda --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorConfig.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernRegistry from "../../../../../../../../.."; + +export type ColorConfig = + | FernRegistry.docs.v1.commons.ColorConfig.Unthemed + | FernRegistry.docs.v1.commons.ColorConfig.Themed; + +export declare namespace ColorConfig { + interface Unthemed extends FernRegistry.docs.v1.commons.ColorUnthemedConfig { + type: "unthemed"; + } + + interface Themed extends FernRegistry.docs.v1.commons.ColorThemedConfig { + type: "themed"; + } +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorThemedConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorThemedConfig.ts new file mode 100644 index 0000000000..4dec1f764e --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorThemedConfig.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernRegistry from "../../../../../../../../.."; + +export interface ColorThemedConfig { + dark?: FernRegistry.docs.v1.commons.RgbaColor; + light?: FernRegistry.docs.v1.commons.RgbaColor; +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ColorUnthemedConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorUnthemedConfig.ts similarity index 50% rename from packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ColorUnthemedConfig.ts rename to packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorUnthemedConfig.ts index ddb0a0165a..c8800a837d 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ColorUnthemedConfig.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorUnthemedConfig.ts @@ -2,8 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as FernRegistry from "../../../../../../.."; +import * as FernRegistry from "../../../../../../../../.."; export interface ColorUnthemedConfig { - color?: FernRegistry.docs.v1.write.RgbaColor; + color?: FernRegistry.docs.v1.commons.RgbaColor; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorsConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorsConfig.ts new file mode 100644 index 0000000000..db26cda3e5 --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorsConfig.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernRegistry from "../../../../../../../../.."; + +export interface ColorsConfig { + accentPrimary?: FernRegistry.docs.v1.commons.RgbaColor; +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorsConfigV2.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorsConfigV2.ts new file mode 100644 index 0000000000..b2b8854be9 --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorsConfigV2.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernRegistry from "../../../../../../../../.."; + +export interface ColorsConfigV2 { + accentPrimary?: FernRegistry.docs.v1.commons.ColorConfig; + background?: FernRegistry.docs.v1.commons.ColorConfig; +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/CssConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CssConfig.ts similarity index 100% rename from packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/CssConfig.ts rename to packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CssConfig.ts diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/CustomFontConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CustomFontConfig.ts similarity index 50% rename from packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/CustomFontConfig.ts rename to packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CustomFontConfig.ts index 3f7e542450..2817b8164b 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/CustomFontConfig.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CustomFontConfig.ts @@ -2,12 +2,12 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as FernRegistry from "../../../../../../.."; +import * as FernRegistry from "../../../../../../../../.."; export interface CustomFontConfig { name: string; - variants: FernRegistry.docs.v1.read.CustomFontConfigVariant[]; - display?: FernRegistry.docs.v1.read.FontDisplay; + variants: FernRegistry.docs.v1.commons.CustomFontConfigVariant[]; + display?: FernRegistry.docs.v1.commons.FontDisplay; fallback?: string[]; fontVariationSettings?: string; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CustomFontConfigVariant.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CustomFontConfigVariant.ts new file mode 100644 index 0000000000..5329007f75 --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CustomFontConfigVariant.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernRegistry from "../../../../../../../../.."; + +export interface CustomFontConfigVariant { + fontFile: FernRegistry.docs.v1.commons.FileId; + weight?: string[]; + style?: FernRegistry.docs.v1.commons.FontStyle[]; +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/DocsTypographyConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/DocsTypographyConfig.ts new file mode 100644 index 0000000000..5f565e8eb9 --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/DocsTypographyConfig.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernRegistry from "../../../../../../../../.."; + +export interface DocsTypographyConfig { + headingsFont?: FernRegistry.docs.v1.commons.FontConfig; + bodyFont?: FernRegistry.docs.v1.commons.FontConfig; + codeFont?: FernRegistry.docs.v1.commons.FontConfig; +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/DocsTypographyConfigV2.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/DocsTypographyConfigV2.ts new file mode 100644 index 0000000000..43bb5d273c --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/DocsTypographyConfigV2.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernRegistry from "../../../../../../../../.."; + +export interface DocsTypographyConfigV2 { + headingsFont?: FernRegistry.docs.v1.commons.FontConfigV2; + bodyFont?: FernRegistry.docs.v1.commons.FontConfigV2; + codeFont?: FernRegistry.docs.v1.commons.FontConfigV2; +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/FileId.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FileId.ts similarity index 100% rename from packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/FileId.ts rename to packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FileId.ts diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FileIdOrUrl.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FileIdOrUrl.ts new file mode 100644 index 0000000000..fd41a62361 --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FileIdOrUrl.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernRegistry from "../../../../../../../../.."; + +export type FileIdOrUrl = + | FernRegistry.docs.v1.commons.FileIdOrUrl.FileId + | FernRegistry.docs.v1.commons.FileIdOrUrl.Url; + +export declare namespace FileIdOrUrl { + interface FileId { + type: "fileId"; + value: FernRegistry.docs.v1.commons.FileId; + } + + interface Url { + type: "url"; + value: FernRegistry.docs.v1.commons.Url; + } +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/FontConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontConfig.ts similarity index 52% rename from packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/FontConfig.ts rename to packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontConfig.ts index 2ffd95a19a..06661fbb11 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/FontConfig.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontConfig.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as FernRegistry from "../../../../../../.."; +import * as FernRegistry from "../../../../../../../../.."; export interface FontConfig { name: string; - fontFile: FernRegistry.docs.v1.read.FileId; + fontFile: FernRegistry.docs.v1.commons.FileId; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontConfigV2.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontConfigV2.ts new file mode 100644 index 0000000000..b5dbeb41f4 --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontConfigV2.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernRegistry from "../../../../../../../../.."; + +export type FontConfigV2 = FernRegistry.docs.v1.commons.FontConfigV2.Custom; + +export declare namespace FontConfigV2 { + interface Custom extends FernRegistry.docs.v1.commons.CustomFontConfig { + type: "custom"; + } +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/FontDisplay.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontDisplay.ts similarity index 100% rename from packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/FontDisplay.ts rename to packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontDisplay.ts diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/FontStyle.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontStyle.ts similarity index 100% rename from packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/FontStyle.ts rename to packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontStyle.ts diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FooterLink.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FooterLink.ts new file mode 100644 index 0000000000..d7b9042e08 --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FooterLink.ts @@ -0,0 +1,81 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernRegistry from "../../../../../../../../.."; + +export type FooterLink = + | FernRegistry.docs.v1.commons.FooterLink.Github + | FernRegistry.docs.v1.commons.FooterLink.Twitter + | FernRegistry.docs.v1.commons.FooterLink.X + | FernRegistry.docs.v1.commons.FooterLink.Linkedin + | FernRegistry.docs.v1.commons.FooterLink.Youtube + | FernRegistry.docs.v1.commons.FooterLink.Instagram + | FernRegistry.docs.v1.commons.FooterLink.Facebook + | FernRegistry.docs.v1.commons.FooterLink.Discord + | FernRegistry.docs.v1.commons.FooterLink.Slack + | FernRegistry.docs.v1.commons.FooterLink.Hackernews + | FernRegistry.docs.v1.commons.FooterLink.Medium + | FernRegistry.docs.v1.commons.FooterLink.Website; + +export declare namespace FooterLink { + interface Github { + type: "github"; + value: FernRegistry.docs.v1.commons.Url; + } + + interface Twitter { + type: "twitter"; + value: FernRegistry.docs.v1.commons.Url; + } + + interface X { + type: "x"; + value: FernRegistry.docs.v1.commons.Url; + } + + interface Linkedin { + type: "linkedin"; + value: FernRegistry.docs.v1.commons.Url; + } + + interface Youtube { + type: "youtube"; + value: FernRegistry.docs.v1.commons.Url; + } + + interface Instagram { + type: "instagram"; + value: FernRegistry.docs.v1.commons.Url; + } + + interface Facebook { + type: "facebook"; + value: FernRegistry.docs.v1.commons.Url; + } + + interface Discord { + type: "discord"; + value: FernRegistry.docs.v1.commons.Url; + } + + interface Slack { + type: "slack"; + value: FernRegistry.docs.v1.commons.Url; + } + + interface Hackernews { + type: "hackernews"; + value: FernRegistry.docs.v1.commons.Url; + } + + interface Medium { + type: "medium"; + value: FernRegistry.docs.v1.commons.Url; + } + + interface Website { + type: "website"; + value: FernRegistry.docs.v1.commons.Url; + } +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/IntegrationsConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/IntegrationsConfig.ts similarity index 100% rename from packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/IntegrationsConfig.ts rename to packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/IntegrationsConfig.ts diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsConfig.ts new file mode 100644 index 0000000000..522a7f3501 --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsConfig.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernRegistry from "../../../../../../../../.."; + +export interface JsConfig { + remote?: FernRegistry.docs.v1.commons.JsRemoteConfig[]; + files: FernRegistry.docs.v1.commons.JsFileConfig[]; + inline?: string[]; +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsFileConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsFileConfig.ts new file mode 100644 index 0000000000..eb8e8d946a --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsFileConfig.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernRegistry from "../../../../../../../../.."; + +export interface JsFileConfig { + fileId: FernRegistry.docs.v1.commons.FileId; + strategy?: FernRegistry.docs.v1.commons.JsScriptStrategy; +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsRemoteConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsRemoteConfig.ts new file mode 100644 index 0000000000..53b33149a5 --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsRemoteConfig.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernRegistry from "../../../../../../../../.."; + +export interface JsRemoteConfig { + url: FernRegistry.docs.v1.commons.Url; + strategy?: FernRegistry.docs.v1.commons.JsScriptStrategy; +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/JsScriptStrategy.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsScriptStrategy.ts similarity index 100% rename from packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/JsScriptStrategy.ts rename to packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsScriptStrategy.ts diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/MetadataConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/MetadataConfig.ts similarity index 59% rename from packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/MetadataConfig.ts rename to packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/MetadataConfig.ts index c8e4304d7d..c1f1672628 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/MetadataConfig.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/MetadataConfig.ts @@ -2,23 +2,23 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as FernRegistry from "../../../../../../.."; +import * as FernRegistry from "../../../../../../../../.."; export interface MetadataConfig { "og:site_name"?: string; "og:title"?: string; "og:description"?: string; "og:url"?: string; - "og:image"?: FernRegistry.docs.v1.write.FileIdOrUrl; + "og:image"?: FernRegistry.docs.v1.commons.FileIdOrUrl; "og:image:width"?: number; "og:image:height"?: number; "og:locale"?: string; - "og:logo"?: FernRegistry.docs.v1.write.FileIdOrUrl; + "og:logo"?: FernRegistry.docs.v1.commons.FileIdOrUrl; "twitter:title"?: string; "twitter:description"?: string; - "twitter:image"?: FernRegistry.docs.v1.write.FileIdOrUrl; "twitter:handle"?: string; + "twitter:image"?: FernRegistry.docs.v1.commons.FileIdOrUrl; "twitter:site"?: string; "twitter:url"?: string; - "twitter:card"?: FernRegistry.docs.v1.write.TwitterCardSetting; + "twitter:card"?: FernRegistry.docs.v1.commons.TwitterCardSetting; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavbarGithubMetadata.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarGithubMetadata.ts similarity index 52% rename from packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavbarGithubMetadata.ts rename to packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarGithubMetadata.ts index 365b881999..38c6ae7680 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavbarGithubMetadata.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarGithubMetadata.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as FernRegistry from "../../../../../../../../.."; + export interface NavbarGithubMetadata { - url: string; + url: FernRegistry.docs.v1.commons.Url; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarLink.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarLink.ts new file mode 100644 index 0000000000..1cadfd25e5 --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarLink.ts @@ -0,0 +1,39 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernRegistry from "../../../../../../../../.."; + +export type NavbarLink = + | FernRegistry.docs.v1.commons.NavbarLink.Filled + | FernRegistry.docs.v1.commons.NavbarLink.Outlined + | FernRegistry.docs.v1.commons.NavbarLink.Minimal + | FernRegistry.docs.v1.commons.NavbarLink.Github + | FernRegistry.docs.v1.commons.NavbarLink.Primary + | FernRegistry.docs.v1.commons.NavbarLink.Secondary; + +export declare namespace NavbarLink { + interface Filled extends FernRegistry.docs.v1.commons.NavbarLinkMetadata { + type: "filled"; + } + + interface Outlined extends FernRegistry.docs.v1.commons.NavbarLinkMetadata { + type: "outlined"; + } + + interface Minimal extends FernRegistry.docs.v1.commons.NavbarLinkMetadata { + type: "minimal"; + } + + interface Github extends FernRegistry.docs.v1.commons.NavbarGithubMetadata { + type: "github"; + } + + interface Primary extends FernRegistry.docs.v1.commons.NavbarLinkMetadata { + type: "primary"; + } + + interface Secondary extends FernRegistry.docs.v1.commons.NavbarLinkMetadata { + type: "secondary"; + } +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavbarLinkMetadata.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarLinkMetadata.ts similarity index 65% rename from packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavbarLinkMetadata.ts rename to packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarLinkMetadata.ts index 9d9b8f8405..f85d6f9edd 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavbarLinkMetadata.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarLinkMetadata.ts @@ -2,8 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as FernRegistry from "../../../../../../../../.."; + export interface NavbarLinkMetadata { - url: string; + url: FernRegistry.docs.v1.commons.Url; text?: string; icon?: string; rightIcon?: string; diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/PageId.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/PageId.ts similarity index 100% rename from packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/PageId.ts rename to packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/PageId.ts diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/RedirectConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/RedirectConfig.ts similarity index 100% rename from packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/RedirectConfig.ts rename to packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/RedirectConfig.ts diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/RgbaColor.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/RgbaColor.ts similarity index 100% rename from packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/RgbaColor.ts rename to packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/RgbaColor.ts diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ThemedFileId.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ThemedFileId.ts new file mode 100644 index 0000000000..3b8009623d --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ThemedFileId.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernRegistry from "../../../../../../../../.."; + +export interface ThemedFileId { + dark?: FernRegistry.docs.v1.commons.FileId; + light?: FernRegistry.docs.v1.commons.FileId; +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/TwitterCardSetting.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/TwitterCardSetting.ts similarity index 100% rename from packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/TwitterCardSetting.ts rename to packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/TwitterCardSetting.ts diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/Url.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/Url.ts similarity index 100% rename from packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/Url.ts rename to packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/Url.ts diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/index.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/index.ts index 88ef826bc3..356c552620 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/index.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/index.ts @@ -1,4 +1,36 @@ +export * from "./FileId"; +export * from "./PageId"; +export * from "./Url"; export * from "./SubpackageId"; export * from "./EndpointId"; export * from "./WebSocketId"; export * from "./WebhookId"; +export * from "./FileIdOrUrl"; +export * from "./RgbaColor"; +export * from "./MetadataConfig"; +export * from "./RedirectConfig"; +export * from "./TwitterCardSetting"; +export * from "./NavbarLink"; +export * from "./NavbarLinkMetadata"; +export * from "./NavbarGithubMetadata"; +export * from "./FooterLink"; +export * from "./CssConfig"; +export * from "./JsConfig"; +export * from "./JsRemoteConfig"; +export * from "./JsFileConfig"; +export * from "./JsScriptStrategy"; +export * from "./IntegrationsConfig"; +export * from "./DocsTypographyConfigV2"; +export * from "./FontConfigV2"; +export * from "./CustomFontConfig"; +export * from "./CustomFontConfigVariant"; +export * from "./FontStyle"; +export * from "./FontDisplay"; +export * from "./ThemedFileId"; +export * from "./ColorsConfig"; +export * from "./ColorsConfigV2"; +export * from "./ColorConfig"; +export * from "./ColorUnthemedConfig"; +export * from "./ColorThemedConfig"; +export * from "./DocsTypographyConfig"; +export * from "./FontConfig"; diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/DocsDbConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/DocsDbConfig.ts index 22b2b8a157..b2b0e0b11f 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/DocsDbConfig.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/DocsDbConfig.ts @@ -7,23 +7,23 @@ import * as FernRegistry from "../../../../../../.."; export interface DocsDbConfig { title?: string; navigation: FernRegistry.docs.v1.db.NavigationConfig; - navbarLinks?: FernRegistry.docs.v1.read.NavbarLink[]; - footerLinks?: FernRegistry.docs.v1.read.FooterLink[]; + navbarLinks?: FernRegistry.docs.v1.commons.NavbarLink[]; + footerLinks?: FernRegistry.docs.v1.commons.FooterLink[]; logoHeight?: FernRegistry.docs.v1.read.Height; - logoHref?: FernRegistry.docs.v1.read.Url; - favicon?: FernRegistry.docs.v1.read.FileId; - metadata?: FernRegistry.docs.v1.read.MetadataConfig; - redirects?: FernRegistry.docs.v1.read.RedirectConfig[]; - backgroundImage?: FernRegistry.docs.v1.read.FileId; + logoHref?: FernRegistry.docs.v1.commons.Url; + favicon?: FernRegistry.docs.v1.commons.FileId; + metadata?: FernRegistry.docs.v1.commons.MetadataConfig; + redirects?: FernRegistry.docs.v1.commons.RedirectConfig[]; + backgroundImage?: FernRegistry.docs.v1.commons.FileId; colorsV3?: FernRegistry.docs.v1.read.ColorsConfigV3; layout?: FernRegistry.docs.v1.read.DocsLayoutConfig; - typographyV2?: FernRegistry.docs.v1.read.DocsTypographyConfigV2; - integrations?: FernRegistry.docs.v1.read.IntegrationsConfig; - css?: FernRegistry.docs.v1.read.CssConfig; - js?: FernRegistry.docs.v1.read.JsConfig; - logo?: FernRegistry.docs.v1.read.FileId; - logoV2?: FernRegistry.docs.v1.read.LogoV2; - colors?: FernRegistry.docs.v1.read.ColorsConfig; - colorsV2?: FernRegistry.docs.v1.read.ColorsConfigV2; - typography?: FernRegistry.docs.v1.read.DocsTypographyConfig; + typographyV2?: FernRegistry.docs.v1.commons.DocsTypographyConfigV2; + integrations?: FernRegistry.docs.v1.commons.IntegrationsConfig; + css?: FernRegistry.docs.v1.commons.CssConfig; + js?: FernRegistry.docs.v1.commons.JsConfig; + logo?: FernRegistry.docs.v1.commons.FileId; + logoV2?: FernRegistry.docs.v1.commons.ThemedFileId; + colors?: FernRegistry.docs.v1.commons.ColorsConfig; + colorsV2?: FernRegistry.docs.v1.commons.ColorsConfigV2; + typography?: FernRegistry.docs.v1.commons.DocsTypographyConfig; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV1.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV1.ts index 2beefce7d3..3f3b34200b 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV1.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV1.ts @@ -5,9 +5,9 @@ import * as FernRegistry from "../../../../../../.."; export interface DocsDefinitionDbV1 { - pages: Record; + pages: Record; referencedApis: FernRegistry.ApiDefinitionId[]; - files: Record; + files: Record; config: FernRegistry.docs.v1.db.DocsDbConfig; - colors?: FernRegistry.docs.v1.read.ColorsConfig; + colors?: FernRegistry.docs.v1.commons.ColorsConfig; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV2.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV2.ts index aadc704b97..4a5b03deea 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV2.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV2.ts @@ -5,10 +5,10 @@ import * as FernRegistry from "../../../../../../.."; export interface DocsDefinitionDbV2 { - pages: Record; + pages: Record; referencedApis: FernRegistry.ApiDefinitionId[]; - files: Record; + files: Record; config: FernRegistry.docs.v1.db.DocsDbConfig; - colors?: FernRegistry.docs.v1.read.ColorsConfig; - typography?: FernRegistry.docs.v1.read.DocsTypographyConfig; + colors?: FernRegistry.docs.v1.commons.ColorsConfig; + typography?: FernRegistry.docs.v1.commons.DocsTypographyConfig; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV3.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV3.ts index e119232c49..eb44b7ab0c 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV3.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV3.ts @@ -5,8 +5,8 @@ import * as FernRegistry from "../../../../../../.."; export interface DocsDefinitionDbV3 { - pages: Record; + pages: Record; referencedApis: FernRegistry.ApiDefinitionId[]; - files: Record; + files: Record; config: FernRegistry.docs.v1.db.DocsDbConfig; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/NavigationItem.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/NavigationItem.ts index b94f68ee4b..be07998672 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/NavigationItem.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/NavigationItem.ts @@ -8,7 +8,8 @@ export type NavigationItem = | FernRegistry.docs.v1.db.NavigationItem.Page | FernRegistry.docs.v1.db.NavigationItem.Api | FernRegistry.docs.v1.db.NavigationItem.Section - | FernRegistry.docs.v1.db.NavigationItem.Link; + | FernRegistry.docs.v1.db.NavigationItem.Link + | FernRegistry.docs.v1.db.NavigationItem.Changelog; export declare namespace NavigationItem { interface Page extends FernRegistry.docs.v1.read.PageMetadata { @@ -26,4 +27,8 @@ export declare namespace NavigationItem { interface Link extends FernRegistry.docs.v1.read.LinkMetadata { type: "link"; } + + interface Changelog extends FernRegistry.docs.v1.read.ChangelogSection { + type: "changelog"; + } } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/NavigationTabV2.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/NavigationTabV2.ts new file mode 100644 index 0000000000..b887d16473 --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/NavigationTabV2.ts @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernRegistry from "../../../../../../.."; + +export type NavigationTabV2 = + | FernRegistry.docs.v1.db.NavigationTabV2.Group + | FernRegistry.docs.v1.db.NavigationTabV2.Link + | FernRegistry.docs.v1.db.NavigationTabV2.Changelog; + +export declare namespace NavigationTabV2 { + interface Group extends FernRegistry.docs.v1.db.NavigationTabGroup { + type: "group"; + } + + interface Link extends FernRegistry.docs.v1.read.NavigationTabLink { + type: "link"; + } + + interface Changelog extends FernRegistry.docs.v1.read.ChangelogSection { + type: "changelog"; + } +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/UnversionedTabbedNavigationConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/UnversionedTabbedNavigationConfig.ts index 5b15eab2ba..7e7de82cdc 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/UnversionedTabbedNavigationConfig.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/UnversionedTabbedNavigationConfig.ts @@ -5,5 +5,6 @@ import * as FernRegistry from "../../../../../../.."; export interface UnversionedTabbedNavigationConfig { - tabs: FernRegistry.docs.v1.db.NavigationTab[]; + tabs?: FernRegistry.docs.v1.db.NavigationTab[]; + tabsV2?: FernRegistry.docs.v1.db.NavigationTabV2[]; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/index.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/index.ts index 87708f2aa6..1eb216ffb0 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/index.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/db/types/index.ts @@ -10,6 +10,7 @@ export * from "./NavigationConfig"; export * from "./UnversionedNavigationConfig"; export * from "./UnversionedTabbedNavigationConfig"; export * from "./NavigationTab"; +export * from "./NavigationTabV2"; export * from "./NavigationTabGroup"; export * from "./UnversionedUntabbedNavigationConfig"; export * from "./VersionedNavigationConfig"; diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ApiNavigationConfigRoot.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ApiNavigationConfigRoot.ts index bdfdd7a4ee..d998366018 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ApiNavigationConfigRoot.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ApiNavigationConfigRoot.ts @@ -5,6 +5,6 @@ import * as FernRegistry from "../../../../../../.."; export interface ApiNavigationConfigRoot { - summaryPageId?: FernRegistry.docs.v1.read.PageId; + summaryPageId?: FernRegistry.docs.v1.commons.PageId; items: FernRegistry.docs.v1.read.ApiNavigationConfigItem[]; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ApiNavigationConfigSubpackage.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ApiNavigationConfigSubpackage.ts index 6af1d42d27..a55ff5a7fb 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ApiNavigationConfigSubpackage.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ApiNavigationConfigSubpackage.ts @@ -5,7 +5,7 @@ import * as FernRegistry from "../../../../../../.."; export interface ApiNavigationConfigSubpackage { - summaryPageId?: FernRegistry.docs.v1.read.PageId; + summaryPageId?: FernRegistry.docs.v1.commons.PageId; subpackageId: FernRegistry.docs.v1.commons.SubpackageId; items: FernRegistry.docs.v1.read.ApiNavigationConfigItem[]; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ApiSection.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ApiSection.ts index f6c23ce215..2bb0454917 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ApiSection.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ApiSection.ts @@ -4,17 +4,13 @@ import * as FernRegistry from "../../../../../../.."; -export interface ApiSection { +export interface ApiSection extends FernRegistry.docs.v1.read.NavigationNodeMetadata { title: string; - icon?: string; - hidden?: boolean; api: FernRegistry.ApiDefinitionId; - urlSlug: string; skipUrlSlug: boolean; artifacts?: FernRegistry.docs.v1.read.ApiArtifacts; showErrors: boolean; changelog?: FernRegistry.docs.v1.read.ChangelogSection; - fullSlug?: string[]; navigation?: FernRegistry.docs.v1.read.ApiNavigationConfigRoot; longScrolling?: boolean; flattened?: boolean; diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/Background.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/Background.ts index 586134e411..e8d178c177 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/Background.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/Background.ts @@ -7,7 +7,7 @@ import * as FernRegistry from "../../../../../../.."; export type Background = FernRegistry.docs.v1.read.Background.Solid | FernRegistry.docs.v1.read.Background.Gradient; export declare namespace Background { - interface Solid extends FernRegistry.docs.v1.read.RgbaColor { + interface Solid extends FernRegistry.docs.v1.commons.RgbaColor { type: "solid"; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogItem.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogItem.ts index 1d0e98786d..7cf01888dd 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogItem.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogItem.ts @@ -6,5 +6,5 @@ import * as FernRegistry from "../../../../../../.."; export interface ChangelogItem { date: string; - pageId: FernRegistry.docs.v1.read.PageId; + pageId: FernRegistry.docs.v1.commons.PageId; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogSection.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogSection.ts index 1f46cbd4ab..6d8ae28ad3 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogSection.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogSection.ts @@ -4,14 +4,9 @@ import * as FernRegistry from "../../../../../../.."; -export interface ChangelogSection { +export interface ChangelogSection extends FernRegistry.docs.v1.read.NavigationNodeMetadata { title?: string; - /** Defaults to ActivityLog icon */ - icon?: string; - hidden?: boolean; description?: string; - pageId?: FernRegistry.docs.v1.read.PageId; + pageId?: FernRegistry.docs.v1.commons.PageId; items: FernRegistry.docs.v1.read.ChangelogItem[]; - urlSlug: string; - fullSlug?: string[]; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ColorConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ColorConfig.ts deleted file mode 100644 index 1ba8a4a97e..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ColorConfig.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export type ColorConfig = FernRegistry.docs.v1.read.ColorConfig.Unthemed | FernRegistry.docs.v1.read.ColorConfig.Themed; - -export declare namespace ColorConfig { - interface Unthemed extends FernRegistry.docs.v1.read.ColorUnthemedConfig { - type: "unthemed"; - } - - interface Themed extends FernRegistry.docs.v1.read.ColorThemedConfig { - type: "themed"; - } -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ColorThemedConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ColorThemedConfig.ts deleted file mode 100644 index 485d21a6d7..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ColorThemedConfig.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface ColorThemedConfig { - dark?: FernRegistry.docs.v1.read.RgbaColor; - light?: FernRegistry.docs.v1.read.RgbaColor; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ColorUnthemedConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ColorUnthemedConfig.ts deleted file mode 100644 index 389c60674e..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ColorUnthemedConfig.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface ColorUnthemedConfig { - color?: FernRegistry.docs.v1.read.RgbaColor; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ColorsConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ColorsConfig.ts deleted file mode 100644 index c5176b16ad..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ColorsConfig.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface ColorsConfig { - accentPrimary?: FernRegistry.docs.v1.read.RgbaColor; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ColorsConfigV2.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ColorsConfigV2.ts deleted file mode 100644 index 161841e726..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ColorsConfigV2.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface ColorsConfigV2 { - accentPrimary?: FernRegistry.docs.v1.read.ColorConfig; - background?: FernRegistry.docs.v1.read.ColorConfig; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/CustomFontConfigVariant.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/CustomFontConfigVariant.ts deleted file mode 100644 index e8b24192e2..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/CustomFontConfigVariant.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface CustomFontConfigVariant { - fontFile: FernRegistry.docs.v1.read.FileId; - weight?: string[]; - style?: FernRegistry.docs.v1.read.FontStyle[]; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/DocsConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/DocsConfig.ts index c2be5d8345..8bc88e986a 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/DocsConfig.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/DocsConfig.ts @@ -7,23 +7,17 @@ import * as FernRegistry from "../../../../../../.."; export interface DocsConfig { title?: string; navigation: FernRegistry.docs.v1.read.NavigationConfig; - navbarLinks?: FernRegistry.docs.v1.read.NavbarLink[]; - footerLinks?: FernRegistry.docs.v1.read.FooterLink[]; + navbarLinks?: FernRegistry.docs.v1.commons.NavbarLink[]; + footerLinks?: FernRegistry.docs.v1.commons.FooterLink[]; logoHeight?: FernRegistry.docs.v1.read.Height; - logoHref?: FernRegistry.docs.v1.read.Url; - favicon?: FernRegistry.docs.v1.read.FileId; - metadata?: FernRegistry.docs.v1.read.MetadataConfig; - redirects?: FernRegistry.docs.v1.read.RedirectConfig[]; + logoHref?: FernRegistry.docs.v1.commons.Url; + favicon?: FernRegistry.docs.v1.commons.FileId; + metadata?: FernRegistry.docs.v1.commons.MetadataConfig; + redirects?: FernRegistry.docs.v1.commons.RedirectConfig[]; colorsV3?: FernRegistry.docs.v1.read.ColorsConfigV3; layout?: FernRegistry.docs.v1.read.DocsLayoutConfig; - typographyV2?: FernRegistry.docs.v1.read.DocsTypographyConfigV2; - integrations?: FernRegistry.docs.v1.read.IntegrationsConfig; - css?: FernRegistry.docs.v1.read.CssConfig; - js?: FernRegistry.docs.v1.read.JsConfig; - backgroundImage?: FernRegistry.docs.v1.read.FileId; - logoV2?: FernRegistry.docs.v1.read.LogoV2; - logo?: FernRegistry.docs.v1.read.FileId; - colors?: FernRegistry.docs.v1.read.ColorsConfig; - colorsV2?: FernRegistry.docs.v1.read.ColorsConfigV2; - typography?: FernRegistry.docs.v1.read.DocsTypographyConfig; + typographyV2?: FernRegistry.docs.v1.commons.DocsTypographyConfigV2; + integrations?: FernRegistry.docs.v1.commons.IntegrationsConfig; + css?: FernRegistry.docs.v1.commons.CssConfig; + js?: FernRegistry.docs.v1.commons.JsConfig; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/DocsDefinition.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/DocsDefinition.ts index 1e9cf8ebe2..065bf1f552 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/DocsDefinition.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/DocsDefinition.ts @@ -6,10 +6,10 @@ import * as FernRegistry from "../../../../../../.."; export interface DocsDefinition { algoliaSearchIndex?: FernRegistry.docs.v1.read.AlgoliaSearchIndex; - pages: Record; + pages: Record; apis: Record; - files: Record; - filesV2: Record; + files: Record; + filesV2: Record; id?: FernRegistry.DocsConfigId; config: FernRegistry.docs.v1.read.DocsConfig; search: FernRegistry.docs.v1.read.SearchInfo; diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/DocsSection.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/DocsSection.ts index 4b71c3b381..f2dfa78c12 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/DocsSection.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/DocsSection.ts @@ -4,13 +4,9 @@ import * as FernRegistry from "../../../../../../.."; -export interface DocsSection { +export interface DocsSection extends FernRegistry.docs.v1.read.NavigationNodeMetadata { title: string; - icon?: string; items: FernRegistry.docs.v1.read.NavigationItem[]; - urlSlug: string; skipUrlSlug: boolean; collapsed: boolean; - hidden?: boolean; - fullSlug?: string[]; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/DocsTypographyConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/DocsTypographyConfig.ts deleted file mode 100644 index 3868e79c9a..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/DocsTypographyConfig.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface DocsTypographyConfig { - headingsFont?: FernRegistry.docs.v1.read.FontConfig; - bodyFont?: FernRegistry.docs.v1.read.FontConfig; - codeFont?: FernRegistry.docs.v1.read.FontConfig; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/DocsTypographyConfigV2.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/DocsTypographyConfigV2.ts deleted file mode 100644 index b2583cf497..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/DocsTypographyConfigV2.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface DocsTypographyConfigV2 { - headingsFont?: FernRegistry.docs.v1.read.FontConfigV2; - bodyFont?: FernRegistry.docs.v1.read.FontConfigV2; - codeFont?: FernRegistry.docs.v1.read.FontConfigV2; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/FileIdOrUrl.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/FileIdOrUrl.ts deleted file mode 100644 index 25f7b75506..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/FileIdOrUrl.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export type FileIdOrUrl = FernRegistry.docs.v1.read.FileIdOrUrl.FileId | FernRegistry.docs.v1.read.FileIdOrUrl.Url; - -export declare namespace FileIdOrUrl { - interface FileId { - type: "fileId"; - value: FernRegistry.docs.v1.read.FileId; - } - - interface Url { - type: "url"; - value: FernRegistry.docs.v1.read.Url; - } -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/FontConfigV2.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/FontConfigV2.ts deleted file mode 100644 index 1bc5751794..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/FontConfigV2.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export type FontConfigV2 = FernRegistry.docs.v1.read.FontConfigV2.Custom; - -export declare namespace FontConfigV2 { - interface Custom extends FernRegistry.docs.v1.read.CustomFontConfig { - type: "custom"; - } -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/FooterLink.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/FooterLink.ts deleted file mode 100644 index e0840d5b15..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/FooterLink.ts +++ /dev/null @@ -1,81 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export type FooterLink = - | FernRegistry.docs.v1.read.FooterLink.Github - | FernRegistry.docs.v1.read.FooterLink.Twitter - | FernRegistry.docs.v1.read.FooterLink.X - | FernRegistry.docs.v1.read.FooterLink.Linkedin - | FernRegistry.docs.v1.read.FooterLink.Youtube - | FernRegistry.docs.v1.read.FooterLink.Instagram - | FernRegistry.docs.v1.read.FooterLink.Facebook - | FernRegistry.docs.v1.read.FooterLink.Discord - | FernRegistry.docs.v1.read.FooterLink.Slack - | FernRegistry.docs.v1.read.FooterLink.Hackernews - | FernRegistry.docs.v1.read.FooterLink.Medium - | FernRegistry.docs.v1.read.FooterLink.Website; - -export declare namespace FooterLink { - interface Github { - type: "github"; - value: FernRegistry.docs.v1.read.Url; - } - - interface Twitter { - type: "twitter"; - value: FernRegistry.docs.v1.read.Url; - } - - interface X { - type: "x"; - value: FernRegistry.docs.v1.read.Url; - } - - interface Linkedin { - type: "linkedin"; - value: FernRegistry.docs.v1.read.Url; - } - - interface Youtube { - type: "youtube"; - value: FernRegistry.docs.v1.read.Url; - } - - interface Instagram { - type: "instagram"; - value: FernRegistry.docs.v1.read.Url; - } - - interface Facebook { - type: "facebook"; - value: FernRegistry.docs.v1.read.Url; - } - - interface Discord { - type: "discord"; - value: FernRegistry.docs.v1.read.Url; - } - - interface Slack { - type: "slack"; - value: FernRegistry.docs.v1.read.Url; - } - - interface Hackernews { - type: "hackernews"; - value: FernRegistry.docs.v1.read.Url; - } - - interface Medium { - type: "medium"; - value: FernRegistry.docs.v1.read.Url; - } - - interface Website { - type: "website"; - value: FernRegistry.docs.v1.read.Url; - } -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ImageFile.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ImageFile.ts index 408d6e246e..405c5dfbf4 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ImageFile.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ImageFile.ts @@ -5,7 +5,7 @@ import * as FernRegistry from "../../../../../../.."; export interface ImageFile { - url: FernRegistry.docs.v1.read.Url; + url: FernRegistry.docs.v1.commons.Url; width: number; height: number; blurDataUrl?: string; diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/JsConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/JsConfig.ts deleted file mode 100644 index 49dea23136..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/JsConfig.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface JsConfig { - remote?: FernRegistry.docs.v1.read.JsRemoteConfig[]; - files: FernRegistry.docs.v1.read.JsFileConfig[]; - inline?: string[]; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/JsFileConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/JsFileConfig.ts deleted file mode 100644 index c1fc222ad2..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/JsFileConfig.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface JsFileConfig { - fileId: FernRegistry.docs.v1.read.FileId; - strategy?: FernRegistry.docs.v1.read.JsScriptStrategy; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/JsRemoteConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/JsRemoteConfig.ts deleted file mode 100644 index d7af7e5911..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/JsRemoteConfig.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface JsRemoteConfig { - url: FernRegistry.docs.v1.read.Url; - strategy?: FernRegistry.docs.v1.read.JsScriptStrategy; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/LogoV2.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/LogoV2.ts deleted file mode 100644 index f10b318072..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/LogoV2.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface LogoV2 { - dark?: FernRegistry.docs.v1.read.FileId; - light?: FernRegistry.docs.v1.read.FileId; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/MetadataConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/MetadataConfig.ts deleted file mode 100644 index f52135d874..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/MetadataConfig.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface MetadataConfig { - "og:site_name"?: string; - "og:title"?: string; - "og:description"?: string; - "og:url"?: string; - "og:image"?: FernRegistry.docs.v1.read.FileIdOrUrl; - "og:image:width"?: number; - "og:image:height"?: number; - "og:locale"?: string; - "og:logo"?: FernRegistry.docs.v1.read.FileIdOrUrl; - "twitter:title"?: string; - "twitter:description"?: string; - "twitter:handle"?: string; - "twitter:image"?: FernRegistry.docs.v1.read.FileIdOrUrl; - "twitter:site"?: string; - "twitter:url"?: string; - "twitter:card"?: FernRegistry.docs.v1.read.TwitterCardSetting; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavbarGithubMetadata.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavbarGithubMetadata.ts deleted file mode 100644 index 365b881999..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavbarGithubMetadata.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface NavbarGithubMetadata { - url: string; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavbarLink.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavbarLink.ts deleted file mode 100644 index 53df1a1ee8..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavbarLink.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export type NavbarLink = - | FernRegistry.docs.v1.read.NavbarLink.Filled - | FernRegistry.docs.v1.read.NavbarLink.Outlined - | FernRegistry.docs.v1.read.NavbarLink.Minimal - | FernRegistry.docs.v1.read.NavbarLink.Github - | FernRegistry.docs.v1.read.NavbarLink.Primary - | FernRegistry.docs.v1.read.NavbarLink.Secondary; - -export declare namespace NavbarLink { - interface Filled extends FernRegistry.docs.v1.read.NavbarLinkMetadata { - type: "filled"; - } - - interface Outlined extends FernRegistry.docs.v1.read.NavbarLinkMetadata { - type: "outlined"; - } - - interface Minimal extends FernRegistry.docs.v1.read.NavbarLinkMetadata { - type: "minimal"; - } - - interface Github extends FernRegistry.docs.v1.read.NavbarGithubMetadata { - type: "github"; - } - - interface Primary extends FernRegistry.docs.v1.read.NavbarLinkMetadata { - type: "primary"; - } - - interface Secondary extends FernRegistry.docs.v1.read.NavbarLinkMetadata { - type: "secondary"; - } -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationItem.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationItem.ts index a8b1f054c2..71b8ff0a8f 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationItem.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationItem.ts @@ -8,7 +8,8 @@ export type NavigationItem = | FernRegistry.docs.v1.read.NavigationItem.Page | FernRegistry.docs.v1.read.NavigationItem.Api | FernRegistry.docs.v1.read.NavigationItem.Section - | FernRegistry.docs.v1.read.NavigationItem.Link; + | FernRegistry.docs.v1.read.NavigationItem.Link + | FernRegistry.docs.v1.read.NavigationItem.Changelog; export declare namespace NavigationItem { interface Page extends FernRegistry.docs.v1.read.PageMetadata { @@ -26,4 +27,8 @@ export declare namespace NavigationItem { interface Link extends FernRegistry.docs.v1.read.LinkMetadata { type: "link"; } + + interface Changelog extends FernRegistry.docs.v1.read.ChangelogSection { + type: "changelog"; + } } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationNodeMetadata.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationNodeMetadata.ts new file mode 100644 index 0000000000..0561caba8e --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationNodeMetadata.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface NavigationNodeMetadata { + icon?: string; + hidden?: boolean; + urlSlug: string; + fullSlug?: string[]; +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTab.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTab.ts index 7674a5916d..fd0543ef0c 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTab.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTab.ts @@ -6,7 +6,8 @@ import * as FernRegistry from "../../../../../../.."; export type NavigationTab = | FernRegistry.docs.v1.read.NavigationTab.Group - | FernRegistry.docs.v1.read.NavigationTab.Link; + | FernRegistry.docs.v1.read.NavigationTab.Link + | FernRegistry.docs.v1.read.NavigationTab.Changelog; export declare namespace NavigationTab { interface Group extends FernRegistry.docs.v1.read.NavigationTabGroup { @@ -16,4 +17,8 @@ export declare namespace NavigationTab { interface Link extends FernRegistry.docs.v1.read.NavigationTabLink { type: "link"; } + + interface Changelog extends FernRegistry.docs.v1.read.ChangelogSection { + type: "changelog"; + } } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabGroup.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabGroup.ts index db1e1cd7aa..ce8b49599e 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabGroup.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabGroup.ts @@ -4,9 +4,7 @@ import * as FernRegistry from "../../../../../../.."; -export interface NavigationTabGroup { +export interface NavigationTabGroup extends FernRegistry.docs.v1.read.NavigationNodeMetadata { title: string; - icon?: string; items: FernRegistry.docs.v1.read.NavigationItem[]; - urlSlug: string; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabLink.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabLink.ts index 391f951576..378a2f3e7e 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabLink.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabLink.ts @@ -7,5 +7,5 @@ import * as FernRegistry from "../../../../../../.."; export interface NavigationTabLink { title: string; icon?: string; - url: FernRegistry.docs.v1.read.Url; + url: FernRegistry.docs.v1.commons.Url; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/PageContent.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/PageContent.ts index c8520faed4..125bb14bfa 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/PageContent.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/PageContent.ts @@ -6,5 +6,5 @@ import * as FernRegistry from "../../../../../../.."; export interface PageContent { markdown: string; - editThisPageUrl?: FernRegistry.docs.v1.read.Url; + editThisPageUrl?: FernRegistry.docs.v1.commons.Url; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/PageMetadata.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/PageMetadata.ts index 4bf4102d13..a2a078b649 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/PageMetadata.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/PageMetadata.ts @@ -4,11 +4,7 @@ import * as FernRegistry from "../../../../../../.."; -export interface PageMetadata { - id: FernRegistry.docs.v1.read.PageId; +export interface PageMetadata extends FernRegistry.docs.v1.read.NavigationNodeMetadata { + id: FernRegistry.docs.v1.commons.PageId; title: string; - icon?: string; - hidden?: boolean; - urlSlug: string; - fullSlug?: string[]; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ThemeConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ThemeConfig.ts index 77a050d1d1..d789495143 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ThemeConfig.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ThemeConfig.ts @@ -5,12 +5,12 @@ import * as FernRegistry from "../../../../../../.."; export interface ThemeConfig { - logo?: FernRegistry.docs.v1.read.FileId; - backgroundImage?: FernRegistry.docs.v1.read.FileId; - accentPrimary: FernRegistry.docs.v1.read.RgbaColor; + logo?: FernRegistry.docs.v1.commons.FileId; + backgroundImage?: FernRegistry.docs.v1.commons.FileId; + accentPrimary: FernRegistry.docs.v1.commons.RgbaColor; background: FernRegistry.docs.v1.read.Background; - border?: FernRegistry.docs.v1.read.RgbaColor; - sidebarBackground?: FernRegistry.docs.v1.read.RgbaColor; - headerBackground?: FernRegistry.docs.v1.read.RgbaColor; - cardBackground?: FernRegistry.docs.v1.read.RgbaColor; + border?: FernRegistry.docs.v1.commons.RgbaColor; + sidebarBackground?: FernRegistry.docs.v1.commons.RgbaColor; + headerBackground?: FernRegistry.docs.v1.commons.RgbaColor; + cardBackground?: FernRegistry.docs.v1.commons.RgbaColor; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/UrlFile.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/UrlFile.ts index 7f25bc1063..7035709a5f 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/UrlFile.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/UrlFile.ts @@ -5,5 +5,5 @@ import * as FernRegistry from "../../../../../../.."; export interface UrlFile { - url: FernRegistry.docs.v1.read.Url; + url: FernRegistry.docs.v1.commons.Url; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/index.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/index.ts index 88d04a1a97..5f6df8f395 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/index.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/index.ts @@ -1,10 +1,6 @@ -export * from "./PageId"; -export * from "./Url"; export * from "./File_"; export * from "./UrlFile"; export * from "./ImageFile"; -export * from "./FileId"; -export * from "./FileIdOrUrl"; export * from "./Height"; export * from "./AlgoliaSearchIndex"; export * from "./LoadDocsForUrlResponse"; @@ -23,15 +19,6 @@ export * from "./ColorsConfigV3"; export * from "./ThemeConfig"; export * from "./DarkAndLightModeConfig"; export * from "./Background"; -export * from "./LogoV2"; -export * from "./DocsTypographyConfig"; -export * from "./DocsTypographyConfigV2"; -export * from "./FontConfig"; -export * from "./FontConfigV2"; -export * from "./CustomFontConfig"; -export * from "./CustomFontConfigVariant"; -export * from "./FontStyle"; -export * from "./FontDisplay"; export * from "./NavigationConfig"; export * from "./UnversionedNavigationConfig"; export * from "./UnversionedTabbedNavigationConfig"; @@ -50,10 +37,8 @@ export * from "./PageWidthSizeConfig"; export * from "./SizeConfig"; export * from "./NavigationItem"; export * from "./PageMetadata"; +export * from "./NavigationNodeMetadata"; export * from "./LinkMetadata"; -export * from "./NavbarLink"; -export * from "./NavbarLinkMetadata"; -export * from "./NavbarGithubMetadata"; export * from "./ApiSection"; export * from "./ApiNavigationConfigRoot"; export * from "./ApiNavigationConfigItem"; @@ -61,12 +46,6 @@ export * from "./ApiNavigationConfigSubpackage"; export * from "./ChangelogSection"; export * from "./ChangelogItem"; export * from "./DocsSection"; -export * from "./ColorsConfig"; -export * from "./ColorsConfigV2"; -export * from "./ColorConfig"; -export * from "./ColorUnthemedConfig"; -export * from "./ColorThemedConfig"; -export * from "./RgbaColor"; export * from "./ApiArtifacts"; export * from "./PublishedPostmanCollection"; export * from "./PublishedSdk"; @@ -84,13 +63,3 @@ export * from "./AlgoliaRecordVersion"; export * from "./AlgoliaEndpointRecordV2"; export * from "./AlgoliaPageRecordV2"; export * from "./AlgoliaRecord"; -export * from "./CssConfig"; -export * from "./JsConfig"; -export * from "./JsRemoteConfig"; -export * from "./JsFileConfig"; -export * from "./JsScriptStrategy"; -export * from "./IntegrationsConfig"; -export * from "./MetadataConfig"; -export * from "./RedirectConfig"; -export * from "./TwitterCardSetting"; -export * from "./FooterLink"; diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ApiNavigationConfigRoot.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ApiNavigationConfigRoot.ts index 53b3bcc1a4..9d372936f7 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ApiNavigationConfigRoot.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ApiNavigationConfigRoot.ts @@ -5,6 +5,6 @@ import * as FernRegistry from "../../../../../../.."; export interface ApiNavigationConfigRoot { - summaryPageId?: FernRegistry.docs.v1.write.PageId; + summaryPageId?: FernRegistry.docs.v1.commons.PageId; items: FernRegistry.docs.v1.write.ApiNavigationConfigItem[]; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ApiNavigationConfigSubpackage.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ApiNavigationConfigSubpackage.ts index 703e1f0a8d..32fccbccee 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ApiNavigationConfigSubpackage.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ApiNavigationConfigSubpackage.ts @@ -5,7 +5,7 @@ import * as FernRegistry from "../../../../../../.."; export interface ApiNavigationConfigSubpackage { - summaryPageId?: FernRegistry.docs.v1.write.PageId; + summaryPageId?: FernRegistry.docs.v1.commons.PageId; subpackageId: FernRegistry.docs.v1.commons.SubpackageId; items: FernRegistry.docs.v1.write.ApiNavigationConfigItem[]; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ApiSection.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ApiSection.ts index 262314cd5e..ff0934fbe5 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ApiSection.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ApiSection.ts @@ -4,17 +4,14 @@ import * as FernRegistry from "../../../../../../.."; -export interface ApiSection { +export interface ApiSection extends FernRegistry.docs.v1.write.NavigationNodeMetadata { title: string; - icon?: string; api: FernRegistry.ApiDefinitionId; artifacts?: FernRegistry.docs.v1.write.ApiArtifacts; skipUrlSlug?: boolean; showErrors?: boolean; changelog?: FernRegistry.docs.v1.write.ChangelogSection; - hidden?: boolean; - urlSlugOverride?: string; - fullSlug?: string[]; + changelogV2?: FernRegistry.docs.v1.write.ChangelogSectionV2; navigation?: FernRegistry.docs.v1.write.ApiNavigationConfigRoot; longScrolling?: boolean; flattened?: boolean; diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ChangelogSectionV2.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ChangelogSectionV2.ts new file mode 100644 index 0000000000..637cc34359 --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ChangelogSectionV2.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernRegistry from "../../../../../../.."; + +export interface ChangelogSectionV2 extends FernRegistry.docs.v1.write.NavigationNodeMetadata { + title?: string; + description?: string; + pageId?: string; + items: FernRegistry.docs.v1.write.ChangelogItem[]; +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ColorConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ColorConfig.ts deleted file mode 100644 index 02bdc7d30f..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ColorConfig.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export type ColorConfig = - | FernRegistry.docs.v1.write.ColorConfig.Unthemed - | FernRegistry.docs.v1.write.ColorConfig.Themed; - -export declare namespace ColorConfig { - interface Unthemed extends FernRegistry.docs.v1.write.ColorUnthemedConfig { - type: "unthemed"; - } - - interface Themed extends FernRegistry.docs.v1.write.ColorThemedConfig { - type: "themed"; - } -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ColorThemedConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ColorThemedConfig.ts deleted file mode 100644 index 46600495d9..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ColorThemedConfig.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface ColorThemedConfig { - dark?: FernRegistry.docs.v1.write.RgbaColor; - light?: FernRegistry.docs.v1.write.RgbaColor; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ColorsConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ColorsConfig.ts deleted file mode 100644 index 67d0cbffd7..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ColorsConfig.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface ColorsConfig { - accentPrimary?: FernRegistry.docs.v1.write.RgbaColor; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ColorsConfigV2.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ColorsConfigV2.ts deleted file mode 100644 index 97863c36c0..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ColorsConfigV2.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface ColorsConfigV2 { - accentPrimary?: FernRegistry.docs.v1.write.ColorConfig; - background?: FernRegistry.docs.v1.write.ColorConfig; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/CssConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/CssConfig.ts deleted file mode 100644 index c6235c49f5..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/CssConfig.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface CssConfig { - inline?: string[]; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfig.ts deleted file mode 100644 index db636bd230..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfig.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface CustomFontConfig { - name: string; - variants: FernRegistry.docs.v1.write.CustomFontConfigVariant[]; - display?: FernRegistry.docs.v1.write.FontDisplay; - fallback?: string[]; - fontVariationSettings?: string; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfigVariant.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfigVariant.ts deleted file mode 100644 index 9c0db2af1c..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfigVariant.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface CustomFontConfigVariant { - fontFile: FernRegistry.docs.v1.write.FileId; - weight?: string[]; - style?: FernRegistry.docs.v1.write.FontStyle[]; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/DocsConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/DocsConfig.ts index 6be7eb46c3..7a967c5791 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/DocsConfig.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/DocsConfig.ts @@ -7,23 +7,23 @@ import * as FernRegistry from "../../../../../../.."; export interface DocsConfig { title?: string; navigation: FernRegistry.docs.v1.write.NavigationConfig; - navbarLinks?: FernRegistry.docs.v1.write.NavbarLink[]; - footerLinks?: FernRegistry.docs.v1.write.FooterLink[]; + navbarLinks?: FernRegistry.docs.v1.commons.NavbarLink[]; + footerLinks?: FernRegistry.docs.v1.commons.FooterLink[]; logoHeight?: FernRegistry.docs.v1.write.Height; - logoHref?: FernRegistry.docs.v1.write.Url; - favicon?: FernRegistry.docs.v1.write.FileId; - metadata?: FernRegistry.docs.v1.write.MetadataConfig; - redirects?: FernRegistry.docs.v1.write.RedirectConfig[]; + logoHref?: FernRegistry.docs.v1.commons.Url; + favicon?: FernRegistry.docs.v1.commons.FileId; + metadata?: FernRegistry.docs.v1.commons.MetadataConfig; + redirects?: FernRegistry.docs.v1.commons.RedirectConfig[]; colorsV3?: FernRegistry.docs.v1.write.ColorsConfigV3; layout?: FernRegistry.docs.v1.write.DocsLayoutConfig; - typographyV2?: FernRegistry.docs.v1.write.DocsTypographyConfigV2; - integrations?: FernRegistry.docs.v1.write.IntegrationsConfig; - css?: FernRegistry.docs.v1.write.CssConfig; - js?: FernRegistry.docs.v1.write.JsConfig; - backgroundImage?: FernRegistry.docs.v1.write.FileId; - logoV2?: FernRegistry.docs.v1.write.ThemedFileId; - logo?: FernRegistry.docs.v1.write.FileId; - colors?: FernRegistry.docs.v1.write.ColorsConfig; - colorsV2?: FernRegistry.docs.v1.write.ColorsConfigV2; - typography?: FernRegistry.docs.v1.write.DocsTypographyConfig; + typographyV2?: FernRegistry.docs.v1.commons.DocsTypographyConfigV2; + integrations?: FernRegistry.docs.v1.commons.IntegrationsConfig; + css?: FernRegistry.docs.v1.commons.CssConfig; + js?: FernRegistry.docs.v1.commons.JsConfig; + backgroundImage?: FernRegistry.docs.v1.commons.FileId; + logoV2?: FernRegistry.docs.v1.commons.ThemedFileId; + logo?: FernRegistry.docs.v1.commons.FileId; + colors?: FernRegistry.docs.v1.commons.ColorsConfig; + colorsV2?: FernRegistry.docs.v1.commons.ColorsConfigV2; + typography?: FernRegistry.docs.v1.commons.DocsTypographyConfig; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/DocsDefinition.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/DocsDefinition.ts index 3bfbd8b2df..fb0f5eedb0 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/DocsDefinition.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/DocsDefinition.ts @@ -5,6 +5,6 @@ import * as FernRegistry from "../../../../../../.."; export interface DocsDefinition { - pages: Record; + pages: Record; config: FernRegistry.docs.v1.write.DocsConfig; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/DocsSection.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/DocsSection.ts index f10d311679..b69216104d 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/DocsSection.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/DocsSection.ts @@ -4,13 +4,15 @@ import * as FernRegistry from "../../../../../../.."; -export interface DocsSection { +export interface DocsSection extends FernRegistry.docs.v1.write.NavigationNodeMetadata { title: string; - icon?: string; items: FernRegistry.docs.v1.write.NavigationItem[]; - urlSlugOverride?: string; + /** + * This is only applicable to sections that are at the root level in the sidebar. + * If false, the section title will be displayed as a header and the items will be displayed below it, and cannot be collapsed. + */ collapsed?: boolean; - hidden?: boolean; skipUrlSlug?: boolean; - fullSlug?: string[]; + /** If provided, clicking on this section will open this page instead of the first page in the section. */ + summaryPageId?: FernRegistry.docs.v1.commons.PageId; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfig.ts deleted file mode 100644 index 41e7a01610..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfig.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface DocsTypographyConfig { - headingsFont?: FernRegistry.docs.v1.write.FontConfig; - bodyFont?: FernRegistry.docs.v1.write.FontConfig; - codeFont?: FernRegistry.docs.v1.write.FontConfig; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfigV2.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfigV2.ts deleted file mode 100644 index 81a79d937f..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfigV2.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface DocsTypographyConfigV2 { - headingsFont?: FernRegistry.docs.v1.write.FontConfigV2; - bodyFont?: FernRegistry.docs.v1.write.FontConfigV2; - codeFont?: FernRegistry.docs.v1.write.FontConfigV2; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FileId.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FileId.ts deleted file mode 100644 index 8485391c39..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FileId.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type FileId = string; diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FileIdOrUrl.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FileIdOrUrl.ts deleted file mode 100644 index 379b553de4..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FileIdOrUrl.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export type FileIdOrUrl = FernRegistry.docs.v1.write.FileIdOrUrl.FileId | FernRegistry.docs.v1.write.FileIdOrUrl.Url; - -export declare namespace FileIdOrUrl { - interface FileId { - type: "fileId"; - value: FernRegistry.docs.v1.write.FileId; - } - - interface Url { - type: "url"; - value: FernRegistry.docs.v1.write.Url; - } -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FileS3UploadUrl.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FileS3UploadUrl.ts index 46c85d199a..e99d4a3c14 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FileS3UploadUrl.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FileS3UploadUrl.ts @@ -6,6 +6,6 @@ import * as FernRegistry from "../../../../../../.."; export interface FileS3UploadUrl { uploadUrl: string; - /** When reading docs we will return a map that you can use to look up the docs. */ - fileId: FernRegistry.docs.v1.write.FileId; + /** When reading docs we will return a map that you can use to look up the docs. */ + fileId: FernRegistry.docs.v1.commons.FileId; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FontConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FontConfig.ts deleted file mode 100644 index 144cffb866..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FontConfig.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface FontConfig { - name: string; - fontFile: FernRegistry.docs.v1.write.FileId; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FontConfigV2.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FontConfigV2.ts deleted file mode 100644 index 9bc44f548a..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FontConfigV2.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export type FontConfigV2 = FernRegistry.docs.v1.write.FontConfigV2.Custom; - -export declare namespace FontConfigV2 { - interface Custom extends FernRegistry.docs.v1.write.CustomFontConfig { - type: "custom"; - } -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FontDisplay.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FontDisplay.ts deleted file mode 100644 index fec3aa2dd0..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FontDisplay.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type FontDisplay = "auto" | "block" | "swap" | "fallback" | "optional"; - -export const FontDisplay = { - Auto: "auto", - Block: "block", - Swap: "swap", - Fallback: "fallback", - Optional: "optional", -} as const; diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FontStyle.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FontStyle.ts deleted file mode 100644 index 7f83ec7e7c..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FontStyle.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type FontStyle = "normal" | "italic"; - -export const FontStyle = { - Normal: "normal", - Italic: "italic", -} as const; diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FooterLink.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FooterLink.ts deleted file mode 100644 index c0e2375e4a..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/FooterLink.ts +++ /dev/null @@ -1,81 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export type FooterLink = - | FernRegistry.docs.v1.write.FooterLink.Github - | FernRegistry.docs.v1.write.FooterLink.Twitter - | FernRegistry.docs.v1.write.FooterLink.X - | FernRegistry.docs.v1.write.FooterLink.Linkedin - | FernRegistry.docs.v1.write.FooterLink.Youtube - | FernRegistry.docs.v1.write.FooterLink.Instagram - | FernRegistry.docs.v1.write.FooterLink.Facebook - | FernRegistry.docs.v1.write.FooterLink.Discord - | FernRegistry.docs.v1.write.FooterLink.Slack - | FernRegistry.docs.v1.write.FooterLink.Hackernews - | FernRegistry.docs.v1.write.FooterLink.Medium - | FernRegistry.docs.v1.write.FooterLink.Website; - -export declare namespace FooterLink { - interface Github { - type: "github"; - value: FernRegistry.docs.v1.write.Url; - } - - interface Twitter { - type: "twitter"; - value: FernRegistry.docs.v1.write.Url; - } - - interface X { - type: "x"; - value: FernRegistry.docs.v1.write.Url; - } - - interface Linkedin { - type: "linkedin"; - value: FernRegistry.docs.v1.write.Url; - } - - interface Youtube { - type: "youtube"; - value: FernRegistry.docs.v1.write.Url; - } - - interface Instagram { - type: "instagram"; - value: FernRegistry.docs.v1.write.Url; - } - - interface Facebook { - type: "facebook"; - value: FernRegistry.docs.v1.write.Url; - } - - interface Discord { - type: "discord"; - value: FernRegistry.docs.v1.write.Url; - } - - interface Slack { - type: "slack"; - value: FernRegistry.docs.v1.write.Url; - } - - interface Hackernews { - type: "hackernews"; - value: FernRegistry.docs.v1.write.Url; - } - - interface Medium { - type: "medium"; - value: FernRegistry.docs.v1.write.Url; - } - - interface Website { - type: "website"; - value: FernRegistry.docs.v1.write.Url; - } -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/IntegrationsConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/IntegrationsConfig.ts deleted file mode 100644 index 62ea4e99a5..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/IntegrationsConfig.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface IntegrationsConfig { - intercom?: string; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/JsConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/JsConfig.ts deleted file mode 100644 index 6cbeed77a3..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/JsConfig.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface JsConfig { - remote?: FernRegistry.docs.v1.write.JsRemoteConfig[]; - files: FernRegistry.docs.v1.write.JsFileConfig[]; - inline?: string[]; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/JsFileConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/JsFileConfig.ts deleted file mode 100644 index ddab73f852..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/JsFileConfig.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface JsFileConfig { - fileId: FernRegistry.docs.v1.write.FileId; - strategy?: FernRegistry.docs.v1.write.JsScriptStrategy; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/JsRemoteConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/JsRemoteConfig.ts deleted file mode 100644 index 976029f21d..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/JsRemoteConfig.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface JsRemoteConfig { - url: FernRegistry.docs.v1.write.Url; - strategy?: FernRegistry.docs.v1.write.JsScriptStrategy; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/JsScriptStrategy.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/JsScriptStrategy.ts deleted file mode 100644 index 1cdb6bc01f..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/JsScriptStrategy.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type JsScriptStrategy = "beforeInteractive" | "afterInteractive" | "lazyOnload"; - -export const JsScriptStrategy = { - BeforeInteractive: "beforeInteractive", - AfterInteractive: "afterInteractive", - LazyOnload: "lazyOnload", -} as const; diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLink.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLink.ts deleted file mode 100644 index 27ed571123..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLink.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export type NavbarLink = - | FernRegistry.docs.v1.write.NavbarLink.Filled - | FernRegistry.docs.v1.write.NavbarLink.Outlined - | FernRegistry.docs.v1.write.NavbarLink.Minimal - | FernRegistry.docs.v1.write.NavbarLink.Github - | FernRegistry.docs.v1.write.NavbarLink.Primary - | FernRegistry.docs.v1.write.NavbarLink.Secondary; - -export declare namespace NavbarLink { - interface Filled extends FernRegistry.docs.v1.write.NavbarLinkMetadata { - type: "filled"; - } - - interface Outlined extends FernRegistry.docs.v1.write.NavbarLinkMetadata { - type: "outlined"; - } - - interface Minimal extends FernRegistry.docs.v1.write.NavbarLinkMetadata { - type: "minimal"; - } - - interface Github extends FernRegistry.docs.v1.write.NavbarGithubMetadata { - type: "github"; - } - - interface Primary extends FernRegistry.docs.v1.write.NavbarLinkMetadata { - type: "primary"; - } - - interface Secondary extends FernRegistry.docs.v1.write.NavbarLinkMetadata { - type: "secondary"; - } -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLinkMetadata.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLinkMetadata.ts deleted file mode 100644 index 9d9b8f8405..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLinkMetadata.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface NavbarLinkMetadata { - url: string; - text?: string; - icon?: string; - rightIcon?: string; - rounded?: boolean; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavigationItem.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavigationItem.ts index d5915bab60..da8577b8b4 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavigationItem.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavigationItem.ts @@ -8,7 +8,8 @@ export type NavigationItem = | FernRegistry.docs.v1.write.NavigationItem.Page | FernRegistry.docs.v1.write.NavigationItem.Api | FernRegistry.docs.v1.write.NavigationItem.Section - | FernRegistry.docs.v1.write.NavigationItem.Link; + | FernRegistry.docs.v1.write.NavigationItem.Link + | FernRegistry.docs.v1.write.NavigationItem.Changelog; export declare namespace NavigationItem { interface Page extends FernRegistry.docs.v1.write.PageMetadata { @@ -26,4 +27,8 @@ export declare namespace NavigationItem { interface Link extends FernRegistry.docs.v1.write.LinkMetadata { type: "link"; } + + interface Changelog extends FernRegistry.docs.v1.write.ChangelogSectionV2 { + type: "changelog"; + } } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavigationNodeMetadata.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavigationNodeMetadata.ts new file mode 100644 index 0000000000..898cf6686c --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavigationNodeMetadata.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface NavigationNodeMetadata { + icon?: string; + hidden?: boolean; + /** Optional slug to override the generated slug, which is `kebabCase(title)`. This is ignored if `fullSlug` is provided. */ + urlSlugOverride?: string; + /** If provided, ignores `urlSlugOverride`, and its parent slugs, and instead uses `/${basepath}/${fullSlug.join('/')}` this page's pathname. */ + fullSlug?: string[]; +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavigationTabGroup.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavigationTabGroup.ts index 34886831dc..d8d006f970 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavigationTabGroup.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavigationTabGroup.ts @@ -4,9 +4,7 @@ import * as FernRegistry from "../../../../../../.."; -export interface NavigationTabGroup { +export interface NavigationTabGroup extends FernRegistry.docs.v1.write.NavigationNodeMetadata { title: string; - icon?: string; items: FernRegistry.docs.v1.write.NavigationItem[]; - urlSlugOverride?: string; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavigationTabV2.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavigationTabV2.ts new file mode 100644 index 0000000000..48409aa9bd --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/NavigationTabV2.ts @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernRegistry from "../../../../../../.."; + +export type NavigationTabV2 = + | FernRegistry.docs.v1.write.NavigationTabV2.Group + | FernRegistry.docs.v1.write.NavigationTabV2.Link + | FernRegistry.docs.v1.write.NavigationTabV2.Changelog; + +export declare namespace NavigationTabV2 { + interface Group extends FernRegistry.docs.v1.write.NavigationTabGroup { + type: "group"; + } + + interface Link extends FernRegistry.docs.v1.write.NavigationTabLink { + type: "link"; + } + + interface Changelog extends FernRegistry.docs.v1.write.ChangelogSectionV2 { + type: "changelog"; + } +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/PageContent.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/PageContent.ts index ef5f82fd9b..125bb14bfa 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/PageContent.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/PageContent.ts @@ -6,5 +6,5 @@ import * as FernRegistry from "../../../../../../.."; export interface PageContent { markdown: string; - editThisPageUrl?: FernRegistry.docs.v1.write.Url; + editThisPageUrl?: FernRegistry.docs.v1.commons.Url; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/PageId.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/PageId.ts deleted file mode 100644 index d4975464fb..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/PageId.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type PageId = string; diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/PageMetadata.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/PageMetadata.ts index 05f37e57c5..cd5560d917 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/PageMetadata.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/PageMetadata.ts @@ -4,11 +4,8 @@ import * as FernRegistry from "../../../../../../.."; -export interface PageMetadata { +export interface PageMetadata extends FernRegistry.docs.v1.write.NavigationNodeMetadata { + /** This is a filepath relative to the fern folder, with a .md/.mdx extension. */ + id: FernRegistry.docs.v1.commons.PageId; title: string; - icon?: string; - hidden?: boolean; - id: FernRegistry.docs.v1.write.PageId; - urlSlugOverride?: string; - fullSlug?: string[]; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/RedirectConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/RedirectConfig.ts deleted file mode 100644 index f786219bc8..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/RedirectConfig.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface RedirectConfig { - source: string; - destination: string; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/RgbaColor.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/RgbaColor.ts deleted file mode 100644 index e4fb281445..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/RgbaColor.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface RgbaColor { - r: number; - g: number; - b: number; - a?: number; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ThemeConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ThemeConfig.ts index b28f94f855..7dd41be040 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ThemeConfig.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ThemeConfig.ts @@ -5,12 +5,12 @@ import * as FernRegistry from "../../../../../../.."; export interface ThemeConfig { - logo?: FernRegistry.docs.v1.write.FileId; - backgroundImage?: FernRegistry.docs.v1.write.FileId; - accentPrimary: FernRegistry.docs.v1.write.RgbaColor; - background?: FernRegistry.docs.v1.write.RgbaColor; - border?: FernRegistry.docs.v1.write.RgbaColor; - sidebarBackground?: FernRegistry.docs.v1.write.RgbaColor; - headerBackground?: FernRegistry.docs.v1.write.RgbaColor; - cardBackground?: FernRegistry.docs.v1.write.RgbaColor; + logo?: FernRegistry.docs.v1.commons.FileId; + backgroundImage?: FernRegistry.docs.v1.commons.FileId; + accentPrimary: FernRegistry.docs.v1.commons.RgbaColor; + background?: FernRegistry.docs.v1.commons.RgbaColor; + border?: FernRegistry.docs.v1.commons.RgbaColor; + sidebarBackground?: FernRegistry.docs.v1.commons.RgbaColor; + headerBackground?: FernRegistry.docs.v1.commons.RgbaColor; + cardBackground?: FernRegistry.docs.v1.commons.RgbaColor; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ThemedFileId.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ThemedFileId.ts deleted file mode 100644 index b46b81f316..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/ThemedFileId.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as FernRegistry from "../../../../../../.."; - -export interface ThemedFileId { - dark?: FernRegistry.docs.v1.write.FileId; - light?: FernRegistry.docs.v1.write.FileId; -} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/TwitterCardSetting.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/TwitterCardSetting.ts deleted file mode 100644 index 930841c43b..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/TwitterCardSetting.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type TwitterCardSetting = "summary" | "summary_large_image" | "app" | "player"; - -export const TwitterCardSetting = { - Summary: "summary", - SummaryLargeImage: "summary_large_image", - App: "app", - Player: "player", -} as const; diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/UnversionedTabbedNavigationConfig.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/UnversionedTabbedNavigationConfig.ts index a2fa09b666..6a8e94d51e 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/UnversionedTabbedNavigationConfig.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/UnversionedTabbedNavigationConfig.ts @@ -5,5 +5,6 @@ import * as FernRegistry from "../../../../../../.."; export interface UnversionedTabbedNavigationConfig { - tabs: FernRegistry.docs.v1.write.NavigationTab[]; + tabs?: FernRegistry.docs.v1.write.NavigationTab[]; + tabsV2?: FernRegistry.docs.v1.write.NavigationTabV2[]; } diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/Url.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/Url.ts deleted file mode 100644 index b8fd4979f6..0000000000 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/Url.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type Url = string; diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/index.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/index.ts index 6203742d25..a1a12b3bcb 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/index.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/write/types/index.ts @@ -2,33 +2,18 @@ export * from "./FilePath"; export * from "./DocsRegistrationId"; export * from "./StartDocsRegisterResponse"; export * from "./FileS3UploadUrl"; -export * from "./FileId"; export * from "./Height"; -export * from "./PageId"; -export * from "./Url"; -export * from "./FileIdOrUrl"; export * from "./DocsDefinition"; export * from "./PageContent"; export * from "./DocsConfig"; export * from "./ColorsConfigV3"; export * from "./ThemeConfig"; export * from "./DarkAndLightModeConfig"; -export * from "./ThemedFileId"; -export * from "./DocsTypographyConfig"; -export * from "./DocsTypographyConfigV2"; -export * from "./FontConfig"; -export * from "./FontConfigV2"; -export * from "./CustomFontConfig"; -export * from "./CustomFontConfigVariant"; -export * from "./FontStyle"; -export * from "./FontDisplay"; -export * from "./NavbarLink"; -export * from "./NavbarLinkMetadata"; -export * from "./NavbarGithubMetadata"; export * from "./NavigationConfig"; export * from "./UnversionedNavigationConfig"; export * from "./UnversionedTabbedNavigationConfig"; export * from "./NavigationTab"; +export * from "./NavigationTabV2"; export * from "./NavigationTabGroup"; export * from "./NavigationTabLink"; export * from "./UnversionedUntabbedNavigationConfig"; @@ -43,20 +28,16 @@ export * from "./PageWidthSizeConfig"; export * from "./SizeConfig"; export * from "./NavigationItem"; export * from "./PageMetadata"; +export * from "./NavigationNodeMetadata"; export * from "./LinkMetadata"; export * from "./ApiSection"; export * from "./ApiNavigationConfigRoot"; export * from "./ApiNavigationConfigItem"; export * from "./ApiNavigationConfigSubpackage"; export * from "./ChangelogSection"; +export * from "./ChangelogSectionV2"; export * from "./ChangelogItem"; export * from "./DocsSection"; -export * from "./ColorsConfig"; -export * from "./ColorsConfigV2"; -export * from "./ColorConfig"; -export * from "./ColorUnthemedConfig"; -export * from "./ColorThemedConfig"; -export * from "./RgbaColor"; export * from "./ApiArtifacts"; export * from "./PublishedPostmanCollection"; export * from "./PublishedSdk"; @@ -66,13 +47,3 @@ export * from "./PypiPackage"; export * from "./InvalidDomainErrorBody"; export * from "./InvliadCustomDomainErrorBody"; export * from "./OverlappingCustomDomains"; -export * from "./CssConfig"; -export * from "./JsConfig"; -export * from "./JsRemoteConfig"; -export * from "./JsFileConfig"; -export * from "./JsScriptStrategy"; -export * from "./IntegrationsConfig"; -export * from "./MetadataConfig"; -export * from "./RedirectConfig"; -export * from "./TwitterCardSetting"; -export * from "./FooterLink"; diff --git a/packages/fdr-sdk/src/client/index.ts b/packages/fdr-sdk/src/client/index.ts index 161287c02c..cf1d9828a5 100644 --- a/packages/fdr-sdk/src/client/index.ts +++ b/packages/fdr-sdk/src/client/index.ts @@ -1,10 +1,10 @@ +export * as DocsV1Db from "./DocsV1Db"; +export * as DocsV1Read from "./DocsV1Read"; +export * as DocsV1Write from "./DocsV1Write"; export { FernRegistry as FdrAPI, FernRegistryClient as FdrClient } from "./generated"; export * as APIV1Db from "./generated/api/resources/api/resources/v1/resources/db"; export * as APIV1Read from "./generated/api/resources/api/resources/v1/resources/read"; export * as APIV1Write from "./generated/api/resources/api/resources/v1/resources/register"; -export * as DocsV1Db from "./generated/api/resources/docs/resources/v1/resources/db"; -export * as DocsV1Read from "./generated/api/resources/docs/resources/v1/resources/read"; -export * as DocsV1Write from "./generated/api/resources/docs/resources/v1/resources/write"; export * as DocsV2Read from "./generated/api/resources/docs/resources/v2/resources/read"; export * as DocsV2Write from "./generated/api/resources/docs/resources/v2/resources/write"; export { visitDbNavigationConfig, visitUnversionedDbNavigationConfig } from "./visitDbNavigationConfig"; diff --git a/packages/fdr-sdk/src/converters/db/convertDocsDefinitionToDb.ts b/packages/fdr-sdk/src/converters/db/convertDocsDefinitionToDb.ts index d7564b2ccc..7248c5e046 100644 --- a/packages/fdr-sdk/src/converters/db/convertDocsDefinitionToDb.ts +++ b/packages/fdr-sdk/src/converters/db/convertDocsDefinitionToDb.ts @@ -149,7 +149,8 @@ function transformUnversionedNavigationConfigForDb( }, tabbed: (config) => { return { - tabs: config.tabs.map(transformNavigationTabForDb), + tabs: config.tabs?.map(transformNavigationTabForDb), + tabsV2: config.tabsV2?.map(transformNavigationTabV2ForDb), }; }, }); @@ -166,6 +167,38 @@ export function transformNavigationTabForDb(writeShape: DocsV1Write.NavigationTa }; } +function transformNavigationTabV2ForDb(writeShape: DocsV1Write.NavigationTabV2): DocsV1Db.NavigationTabV2 { + switch (writeShape.type) { + case "group": + return { + ...writeShape, + items: writeShape.items.map(transformNavigationItemForDb), + urlSlug: writeShape.urlSlugOverride ?? kebabCase(writeShape.title), + }; + case "link": + return writeShape; + case "changelog": { + return { type: "changelog", ...toChangelogDb(writeShape) }; + } + } +} + +function toChangelogDb(writeShape: DocsV1Write.ChangelogSectionV2): WithoutQuestionMarks { + return { + title: writeShape.title, + icon: writeShape.icon, + hidden: writeShape.hidden ?? false, + description: writeShape.description, + items: writeShape.items.map((item) => ({ + date: item.date, + pageId: item.pageId, + })), + pageId: writeShape.pageId, + urlSlug: writeShape.urlSlugOverride ?? kebabCase(writeShape.title), + fullSlug: writeShape.fullSlug, + }; +} + export function transformNavigationItemForDb( writeShape: DocsV1Write.NavigationItem, ): WithoutQuestionMarks { @@ -222,6 +255,10 @@ export function transformNavigationItemForDb( icon: writeShape.icon, url: writeShape.url, }; + case "changelog": + return { type: "changelog", ...toChangelogDb(writeShape) }; + default: + assertNever(writeShape); } } @@ -242,16 +279,22 @@ function getReferencedApiDefinitionIdsForUnversionedReadConfig( config: DocsV1Db.UnversionedNavigationConfig, ): FdrAPI.ApiDefinitionId[] { return visitUnversionedDbNavigationConfig(config, { - untabbed: (config) => { - return config.items.flatMap(getReferencedApiDefinitionIdFromItem); - }, + untabbed: (config) => config.items.flatMap(getReferencedApiDefinitionIdFromItem), tabbed: (config) => { - return config.tabs.flatMap((tab) => { + const toRet: FdrAPI.ApiDefinitionId[] = []; + config.tabs?.forEach((tab) => { if (isNavigationTabLink(tab)) { - return []; + return; + } else { + toRet.push(...tab.items.flatMap(getReferencedApiDefinitionIdFromItem)); } - return tab.items.flatMap(getReferencedApiDefinitionIdFromItem); }); + config.tabsV2?.forEach((tab) => { + if (tab.type === "group") { + toRet.push(...tab.items.flatMap(getReferencedApiDefinitionIdFromItem)); + } + }); + return toRet; }, }); } @@ -266,6 +309,8 @@ function getReferencedApiDefinitionIdFromItem(item: DocsV1Db.NavigationItem): Fd return item.items.flatMap((sectionItem) => getReferencedApiDefinitionIdFromItem(sectionItem)); case "link": return []; + case "changelog": + return []; default: assertNever(item); } diff --git a/packages/fdr-sdk/src/converters/read/convertDbDocsConfigToRead.ts b/packages/fdr-sdk/src/converters/read/convertDbDocsConfigToRead.ts index a7791ad158..8eb645fdfd 100644 --- a/packages/fdr-sdk/src/converters/read/convertDbDocsConfigToRead.ts +++ b/packages/fdr-sdk/src/converters/read/convertDbDocsConfigToRead.ts @@ -3,6 +3,7 @@ import tinycolor from "tinycolor2"; import { DocsV1Db, DocsV1Read, visitDbNavigationConfig, visitUnversionedDbNavigationConfig } from "../../client"; import { visitDbNavigationTab } from "../../client/visitNavigationTab"; import { WithoutQuestionMarks } from "../utils/WithoutQuestionMarks"; +import { assertNever } from "../utils/assertNever"; import { DEFAULT_DARK_MODE_ACCENT_PRIMARY, DEFAULT_LIGHT_MODE_ACCENT_PRIMARY } from "../utils/colors"; export function convertDbDocsConfigToRead({ @@ -12,19 +13,13 @@ export function convertDbDocsConfigToRead({ }): WithoutQuestionMarks { return { navigation: transformNavigationConfigToRead(dbShape.navigation), - logo: dbShape.logo, - logoV2: dbShape.logoV2, logoHeight: dbShape.logoHeight, logoHref: dbShape.logoHref, - colors: dbShape.colors, - colorsV2: dbShape.colorsV2, colorsV3: dbShape.colorsV3 ?? getColorsV3(dbShape), navbarLinks: dbShape.navbarLinks, footerLinks: dbShape.footerLinks, title: dbShape.title, favicon: dbShape.favicon, - backgroundImage: dbShape.backgroundImage, - typography: dbShape.typography ?? transformTypographyV2ToV1(dbShape.typographyV2), typographyV2: dbShape.typographyV2 ?? transformTypographyToV2(dbShape.typography), layout: dbShape.layout, css: dbShape.css, @@ -127,7 +122,10 @@ function transformUnversionedNavigationConfigForDb( return visitUnversionedDbNavigationConfig(config, { tabbed: (config) => { return { - tabs: config.tabs.map(transformNavigationTabForDb), + tabs: + config.tabsV2?.map(transformNavigationTabV2ForDb) ?? + config.tabs?.map(transformNavigationTabForDb) ?? + [], }; }, untabbed: (config) => { @@ -149,6 +147,22 @@ export function transformNavigationTabForDb(dbShape: DocsV1Db.NavigationTab): Do }); } +export function transformNavigationTabV2ForDb(dbShape: DocsV1Db.NavigationTabV2): DocsV1Read.NavigationTab { + switch (dbShape.type) { + case "link": + return dbShape; + case "group": + return { + ...dbShape, + items: dbShape.items.map(transformNavigationItemForDb), + }; + case "changelog": + return dbShape; + default: + assertNever(dbShape); + } +} + export function isNavigationTabLink(tab: DocsV1Db.NavigationTab): tab is DocsV1Read.NavigationTabLink { return (tab as DocsV1Read.NavigationTabLink).url != null; } @@ -168,6 +182,10 @@ export function transformNavigationItemForDb(dbShape: DocsV1Db.NavigationItem): ...dbShape, items: dbShape.items.map((item) => transformNavigationItemForDb(item)), }; + case "changelog": + return dbShape; + default: + assertNever(dbShape); } } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorConfig.d.ts new file mode 100644 index 0000000000..1f789a2676 --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorConfig.d.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as FernRegistry from "../../../../../../../../.."; +export declare type ColorConfig = FernRegistry.docs.v1.commons.ColorConfig.Unthemed | FernRegistry.docs.v1.commons.ColorConfig.Themed; +export declare namespace ColorConfig { + interface Unthemed extends FernRegistry.docs.v1.commons.ColorUnthemedConfig { + type: "unthemed"; + } + interface Themed extends FernRegistry.docs.v1.commons.ColorThemedConfig { + type: "themed"; + } +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorConfig.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorConfig.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorConfig.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorThemedConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorThemedConfig.d.ts new file mode 100644 index 0000000000..567cd11407 --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorThemedConfig.d.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as FernRegistry from "../../../../../../../../.."; +export interface ColorThemedConfig { + dark?: FernRegistry.docs.v1.commons.RgbaColor; + light?: FernRegistry.docs.v1.commons.RgbaColor; +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorThemedConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorThemedConfig.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorThemedConfig.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorThemedConfig.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorUnthemedConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorUnthemedConfig.d.ts similarity index 50% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorUnthemedConfig.d.ts rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorUnthemedConfig.d.ts index 426530424c..da2cddccd2 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorUnthemedConfig.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorUnthemedConfig.d.ts @@ -1,7 +1,7 @@ /** * This file was auto-generated by Fern from our API Definition. */ -import * as FernRegistry from "../../../../../../.."; +import * as FernRegistry from "../../../../../../../../.."; export interface ColorUnthemedConfig { - color?: FernRegistry.docs.v1.read.RgbaColor; + color?: FernRegistry.docs.v1.commons.RgbaColor; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorUnthemedConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorUnthemedConfig.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorUnthemedConfig.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorUnthemedConfig.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorsConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorsConfig.d.ts new file mode 100644 index 0000000000..7873ad1d4c --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorsConfig.d.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as FernRegistry from "../../../../../../../../.."; +export interface ColorsConfig { + accentPrimary?: FernRegistry.docs.v1.commons.RgbaColor; +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorsConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorsConfig.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorsConfig.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorsConfig.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorsConfigV2.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorsConfigV2.d.ts new file mode 100644 index 0000000000..f40ca78c86 --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorsConfigV2.d.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as FernRegistry from "../../../../../../../../.."; +export interface ColorsConfigV2 { + accentPrimary?: FernRegistry.docs.v1.commons.ColorConfig; + background?: FernRegistry.docs.v1.commons.ColorConfig; +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorsConfigV2.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorsConfigV2.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorsConfigV2.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ColorsConfigV2.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/CssConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CssConfig.d.ts similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/CssConfig.d.ts rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CssConfig.d.ts diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/CssConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CssConfig.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/CssConfig.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CssConfig.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/CustomFontConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CustomFontConfig.d.ts similarity index 50% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/CustomFontConfig.d.ts rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CustomFontConfig.d.ts index a033293516..2dabb6ee38 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/CustomFontConfig.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CustomFontConfig.d.ts @@ -1,11 +1,11 @@ /** * This file was auto-generated by Fern from our API Definition. */ -import * as FernRegistry from "../../../../../../.."; +import * as FernRegistry from "../../../../../../../../.."; export interface CustomFontConfig { name: string; - variants: FernRegistry.docs.v1.read.CustomFontConfigVariant[]; - display?: FernRegistry.docs.v1.read.FontDisplay; + variants: FernRegistry.docs.v1.commons.CustomFontConfigVariant[]; + display?: FernRegistry.docs.v1.commons.FontDisplay; fallback?: string[]; fontVariationSettings?: string; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/CustomFontConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CustomFontConfig.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/CustomFontConfig.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CustomFontConfig.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CustomFontConfigVariant.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CustomFontConfigVariant.d.ts new file mode 100644 index 0000000000..620f851175 --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CustomFontConfigVariant.d.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as FernRegistry from "../../../../../../../../.."; +export interface CustomFontConfigVariant { + fontFile: FernRegistry.docs.v1.commons.FileId; + weight?: string[]; + style?: FernRegistry.docs.v1.commons.FontStyle[]; +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/CustomFontConfigVariant.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CustomFontConfigVariant.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/CustomFontConfigVariant.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/CustomFontConfigVariant.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/DocsTypographyConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/DocsTypographyConfig.d.ts new file mode 100644 index 0000000000..c04fdd754a --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/DocsTypographyConfig.d.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as FernRegistry from "../../../../../../../../.."; +export interface DocsTypographyConfig { + headingsFont?: FernRegistry.docs.v1.commons.FontConfig; + bodyFont?: FernRegistry.docs.v1.commons.FontConfig; + codeFont?: FernRegistry.docs.v1.commons.FontConfig; +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsTypographyConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/DocsTypographyConfig.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsTypographyConfig.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/DocsTypographyConfig.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/DocsTypographyConfigV2.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/DocsTypographyConfigV2.d.ts new file mode 100644 index 0000000000..d9dc2f8a2a --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/DocsTypographyConfigV2.d.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as FernRegistry from "../../../../../../../../.."; +export interface DocsTypographyConfigV2 { + headingsFont?: FernRegistry.docs.v1.commons.FontConfigV2; + bodyFont?: FernRegistry.docs.v1.commons.FontConfigV2; + codeFont?: FernRegistry.docs.v1.commons.FontConfigV2; +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsTypographyConfigV2.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/DocsTypographyConfigV2.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsTypographyConfigV2.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/DocsTypographyConfigV2.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FileId.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FileId.d.ts similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FileId.d.ts rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FileId.d.ts diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FileId.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FileId.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FileId.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FileId.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FileIdOrUrl.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FileIdOrUrl.d.ts new file mode 100644 index 0000000000..e4cf291bc5 --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FileIdOrUrl.d.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as FernRegistry from "../../../../../../../../.."; +export declare type FileIdOrUrl = FernRegistry.docs.v1.commons.FileIdOrUrl.FileId | FernRegistry.docs.v1.commons.FileIdOrUrl.Url; +export declare namespace FileIdOrUrl { + interface FileId { + type: "fileId"; + value: FernRegistry.docs.v1.commons.FileId; + } + interface Url { + type: "url"; + value: FernRegistry.docs.v1.commons.Url; + } +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FileIdOrUrl.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FileIdOrUrl.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FileIdOrUrl.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FileIdOrUrl.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FontConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontConfig.d.ts similarity index 52% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FontConfig.d.ts rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontConfig.d.ts index 5a770b60d6..745dd22741 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FontConfig.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontConfig.d.ts @@ -1,8 +1,8 @@ /** * This file was auto-generated by Fern from our API Definition. */ -import * as FernRegistry from "../../../../../../.."; +import * as FernRegistry from "../../../../../../../../.."; export interface FontConfig { name: string; - fontFile: FernRegistry.docs.v1.read.FileId; + fontFile: FernRegistry.docs.v1.commons.FileId; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FontConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontConfig.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FontConfig.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontConfig.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontConfigV2.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontConfigV2.d.ts new file mode 100644 index 0000000000..8c2dec71c4 --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontConfigV2.d.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as FernRegistry from "../../../../../../../../.."; +export declare type FontConfigV2 = FernRegistry.docs.v1.commons.FontConfigV2.Custom; +export declare namespace FontConfigV2 { + interface Custom extends FernRegistry.docs.v1.commons.CustomFontConfig { + type: "custom"; + } +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FontConfigV2.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontConfigV2.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FontConfigV2.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontConfigV2.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FontDisplay.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontDisplay.d.ts similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FontDisplay.d.ts rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontDisplay.d.ts diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FontDisplay.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontDisplay.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FontDisplay.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontDisplay.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FontStyle.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontStyle.d.ts similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FontStyle.d.ts rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontStyle.d.ts diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FontStyle.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontStyle.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FontStyle.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FontStyle.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FooterLink.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FooterLink.d.ts new file mode 100644 index 0000000000..adcaa61cd4 --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FooterLink.d.ts @@ -0,0 +1,55 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as FernRegistry from "../../../../../../../../.."; +export declare type FooterLink = FernRegistry.docs.v1.commons.FooterLink.Github | FernRegistry.docs.v1.commons.FooterLink.Twitter | FernRegistry.docs.v1.commons.FooterLink.X | FernRegistry.docs.v1.commons.FooterLink.Linkedin | FernRegistry.docs.v1.commons.FooterLink.Youtube | FernRegistry.docs.v1.commons.FooterLink.Instagram | FernRegistry.docs.v1.commons.FooterLink.Facebook | FernRegistry.docs.v1.commons.FooterLink.Discord | FernRegistry.docs.v1.commons.FooterLink.Slack | FernRegistry.docs.v1.commons.FooterLink.Hackernews | FernRegistry.docs.v1.commons.FooterLink.Medium | FernRegistry.docs.v1.commons.FooterLink.Website; +export declare namespace FooterLink { + interface Github { + type: "github"; + value: FernRegistry.docs.v1.commons.Url; + } + interface Twitter { + type: "twitter"; + value: FernRegistry.docs.v1.commons.Url; + } + interface X { + type: "x"; + value: FernRegistry.docs.v1.commons.Url; + } + interface Linkedin { + type: "linkedin"; + value: FernRegistry.docs.v1.commons.Url; + } + interface Youtube { + type: "youtube"; + value: FernRegistry.docs.v1.commons.Url; + } + interface Instagram { + type: "instagram"; + value: FernRegistry.docs.v1.commons.Url; + } + interface Facebook { + type: "facebook"; + value: FernRegistry.docs.v1.commons.Url; + } + interface Discord { + type: "discord"; + value: FernRegistry.docs.v1.commons.Url; + } + interface Slack { + type: "slack"; + value: FernRegistry.docs.v1.commons.Url; + } + interface Hackernews { + type: "hackernews"; + value: FernRegistry.docs.v1.commons.Url; + } + interface Medium { + type: "medium"; + value: FernRegistry.docs.v1.commons.Url; + } + interface Website { + type: "website"; + value: FernRegistry.docs.v1.commons.Url; + } +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FooterLink.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FooterLink.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FooterLink.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/FooterLink.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/IntegrationsConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/IntegrationsConfig.d.ts similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/IntegrationsConfig.d.ts rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/IntegrationsConfig.d.ts diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/IntegrationsConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/IntegrationsConfig.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/IntegrationsConfig.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/IntegrationsConfig.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsConfig.d.ts new file mode 100644 index 0000000000..c405e9e31b --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsConfig.d.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as FernRegistry from "../../../../../../../../.."; +export interface JsConfig { + remote?: FernRegistry.docs.v1.commons.JsRemoteConfig[]; + files: FernRegistry.docs.v1.commons.JsFileConfig[]; + inline?: string[]; +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/JsConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsConfig.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/JsConfig.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsConfig.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsFileConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsFileConfig.d.ts new file mode 100644 index 0000000000..3afb3d0e4c --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsFileConfig.d.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as FernRegistry from "../../../../../../../../.."; +export interface JsFileConfig { + fileId: FernRegistry.docs.v1.commons.FileId; + strategy?: FernRegistry.docs.v1.commons.JsScriptStrategy; +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/JsFileConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsFileConfig.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/JsFileConfig.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsFileConfig.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsRemoteConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsRemoteConfig.d.ts new file mode 100644 index 0000000000..1d4d4ca16d --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsRemoteConfig.d.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as FernRegistry from "../../../../../../../../.."; +export interface JsRemoteConfig { + url: FernRegistry.docs.v1.commons.Url; + strategy?: FernRegistry.docs.v1.commons.JsScriptStrategy; +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/JsRemoteConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsRemoteConfig.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/JsRemoteConfig.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsRemoteConfig.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/JsScriptStrategy.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsScriptStrategy.d.ts similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/JsScriptStrategy.d.ts rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsScriptStrategy.d.ts diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/JsScriptStrategy.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsScriptStrategy.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/JsScriptStrategy.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/JsScriptStrategy.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/MetadataConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/MetadataConfig.d.ts similarity index 59% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/MetadataConfig.d.ts rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/MetadataConfig.d.ts index 84f5810cea..a41e2d8ebb 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/MetadataConfig.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/MetadataConfig.d.ts @@ -1,22 +1,22 @@ /** * This file was auto-generated by Fern from our API Definition. */ -import * as FernRegistry from "../../../../../../.."; +import * as FernRegistry from "../../../../../../../../.."; export interface MetadataConfig { "og:site_name"?: string; "og:title"?: string; "og:description"?: string; "og:url"?: string; - "og:image"?: FernRegistry.docs.v1.read.FileIdOrUrl; + "og:image"?: FernRegistry.docs.v1.commons.FileIdOrUrl; "og:image:width"?: number; "og:image:height"?: number; "og:locale"?: string; - "og:logo"?: FernRegistry.docs.v1.read.FileIdOrUrl; + "og:logo"?: FernRegistry.docs.v1.commons.FileIdOrUrl; "twitter:title"?: string; "twitter:description"?: string; "twitter:handle"?: string; - "twitter:image"?: FernRegistry.docs.v1.read.FileIdOrUrl; + "twitter:image"?: FernRegistry.docs.v1.commons.FileIdOrUrl; "twitter:site"?: string; "twitter:url"?: string; - "twitter:card"?: FernRegistry.docs.v1.read.TwitterCardSetting; + "twitter:card"?: FernRegistry.docs.v1.commons.TwitterCardSetting; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/MetadataConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/MetadataConfig.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/MetadataConfig.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/MetadataConfig.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavbarGithubMetadata.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarGithubMetadata.d.ts similarity index 52% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavbarGithubMetadata.d.ts rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarGithubMetadata.d.ts index 534acadfb8..d5fbd3f466 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavbarGithubMetadata.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarGithubMetadata.d.ts @@ -1,6 +1,7 @@ /** * This file was auto-generated by Fern from our API Definition. */ +import * as FernRegistry from "../../../../../../../../.."; export interface NavbarGithubMetadata { - url: string; + url: FernRegistry.docs.v1.commons.Url; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavbarGithubMetadata.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarGithubMetadata.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavbarGithubMetadata.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarGithubMetadata.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarLink.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarLink.d.ts new file mode 100644 index 0000000000..717b0bfb20 --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarLink.d.ts @@ -0,0 +1,25 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as FernRegistry from "../../../../../../../../.."; +export declare type NavbarLink = FernRegistry.docs.v1.commons.NavbarLink.Filled | FernRegistry.docs.v1.commons.NavbarLink.Outlined | FernRegistry.docs.v1.commons.NavbarLink.Minimal | FernRegistry.docs.v1.commons.NavbarLink.Github | FernRegistry.docs.v1.commons.NavbarLink.Primary | FernRegistry.docs.v1.commons.NavbarLink.Secondary; +export declare namespace NavbarLink { + interface Filled extends FernRegistry.docs.v1.commons.NavbarLinkMetadata { + type: "filled"; + } + interface Outlined extends FernRegistry.docs.v1.commons.NavbarLinkMetadata { + type: "outlined"; + } + interface Minimal extends FernRegistry.docs.v1.commons.NavbarLinkMetadata { + type: "minimal"; + } + interface Github extends FernRegistry.docs.v1.commons.NavbarGithubMetadata { + type: "github"; + } + interface Primary extends FernRegistry.docs.v1.commons.NavbarLinkMetadata { + type: "primary"; + } + interface Secondary extends FernRegistry.docs.v1.commons.NavbarLinkMetadata { + type: "secondary"; + } +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavbarLink.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarLink.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavbarLink.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarLink.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavbarLinkMetadata.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarLinkMetadata.d.ts similarity index 65% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavbarLinkMetadata.d.ts rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarLinkMetadata.d.ts index 6f2b90d0a2..cdd097b875 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavbarLinkMetadata.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarLinkMetadata.d.ts @@ -1,8 +1,9 @@ /** * This file was auto-generated by Fern from our API Definition. */ +import * as FernRegistry from "../../../../../../../../.."; export interface NavbarLinkMetadata { - url: string; + url: FernRegistry.docs.v1.commons.Url; text?: string; icon?: string; rightIcon?: string; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavbarLinkMetadata.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarLinkMetadata.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavbarLinkMetadata.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/NavbarLinkMetadata.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/PageId.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/PageId.d.ts similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/PageId.d.ts rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/PageId.d.ts diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/PageId.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/PageId.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/PageId.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/PageId.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/RedirectConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/RedirectConfig.d.ts similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/RedirectConfig.d.ts rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/RedirectConfig.d.ts diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/RedirectConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/RedirectConfig.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/RedirectConfig.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/RedirectConfig.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/RgbaColor.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/RgbaColor.d.ts similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/RgbaColor.d.ts rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/RgbaColor.d.ts diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/RgbaColor.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/RgbaColor.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/RgbaColor.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/RgbaColor.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ThemedFileId.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ThemedFileId.d.ts new file mode 100644 index 0000000000..2010926f2b --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ThemedFileId.d.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as FernRegistry from "../../../../../../../../.."; +export interface ThemedFileId { + dark?: FernRegistry.docs.v1.commons.FileId; + light?: FernRegistry.docs.v1.commons.FileId; +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ThemedFileId.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ThemedFileId.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ThemedFileId.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/ThemedFileId.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/TwitterCardSetting.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/TwitterCardSetting.d.ts similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/TwitterCardSetting.d.ts rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/TwitterCardSetting.d.ts diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/TwitterCardSetting.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/TwitterCardSetting.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/TwitterCardSetting.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/TwitterCardSetting.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/Url.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/Url.d.ts similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/Url.d.ts rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/Url.d.ts diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/Url.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/Url.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/Url.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/Url.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/index.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/index.d.ts index 88ef826bc3..356c552620 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/index.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/index.d.ts @@ -1,4 +1,36 @@ +export * from "./FileId"; +export * from "./PageId"; +export * from "./Url"; export * from "./SubpackageId"; export * from "./EndpointId"; export * from "./WebSocketId"; export * from "./WebhookId"; +export * from "./FileIdOrUrl"; +export * from "./RgbaColor"; +export * from "./MetadataConfig"; +export * from "./RedirectConfig"; +export * from "./TwitterCardSetting"; +export * from "./NavbarLink"; +export * from "./NavbarLinkMetadata"; +export * from "./NavbarGithubMetadata"; +export * from "./FooterLink"; +export * from "./CssConfig"; +export * from "./JsConfig"; +export * from "./JsRemoteConfig"; +export * from "./JsFileConfig"; +export * from "./JsScriptStrategy"; +export * from "./IntegrationsConfig"; +export * from "./DocsTypographyConfigV2"; +export * from "./FontConfigV2"; +export * from "./CustomFontConfig"; +export * from "./CustomFontConfigVariant"; +export * from "./FontStyle"; +export * from "./FontDisplay"; +export * from "./ThemedFileId"; +export * from "./ColorsConfig"; +export * from "./ColorsConfigV2"; +export * from "./ColorConfig"; +export * from "./ColorUnthemedConfig"; +export * from "./ColorThemedConfig"; +export * from "./DocsTypographyConfig"; +export * from "./FontConfig"; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/index.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/index.js index 88ef826bc3..356c552620 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/index.js +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/commons/resources/commons/types/index.js @@ -1,4 +1,36 @@ +export * from "./FileId"; +export * from "./PageId"; +export * from "./Url"; export * from "./SubpackageId"; export * from "./EndpointId"; export * from "./WebSocketId"; export * from "./WebhookId"; +export * from "./FileIdOrUrl"; +export * from "./RgbaColor"; +export * from "./MetadataConfig"; +export * from "./RedirectConfig"; +export * from "./TwitterCardSetting"; +export * from "./NavbarLink"; +export * from "./NavbarLinkMetadata"; +export * from "./NavbarGithubMetadata"; +export * from "./FooterLink"; +export * from "./CssConfig"; +export * from "./JsConfig"; +export * from "./JsRemoteConfig"; +export * from "./JsFileConfig"; +export * from "./JsScriptStrategy"; +export * from "./IntegrationsConfig"; +export * from "./DocsTypographyConfigV2"; +export * from "./FontConfigV2"; +export * from "./CustomFontConfig"; +export * from "./CustomFontConfigVariant"; +export * from "./FontStyle"; +export * from "./FontDisplay"; +export * from "./ThemedFileId"; +export * from "./ColorsConfig"; +export * from "./ColorsConfigV2"; +export * from "./ColorConfig"; +export * from "./ColorUnthemedConfig"; +export * from "./ColorThemedConfig"; +export * from "./DocsTypographyConfig"; +export * from "./FontConfig"; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/DocsDbConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/DocsDbConfig.d.ts index 1e0ade45b2..ee1fdf8653 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/DocsDbConfig.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/DocsDbConfig.d.ts @@ -5,23 +5,23 @@ import * as FernRegistry from "../../../../../../.."; export interface DocsDbConfig { title?: string; navigation: FernRegistry.docs.v1.db.NavigationConfig; - navbarLinks?: FernRegistry.docs.v1.read.NavbarLink[]; - footerLinks?: FernRegistry.docs.v1.read.FooterLink[]; + navbarLinks?: FernRegistry.docs.v1.commons.NavbarLink[]; + footerLinks?: FernRegistry.docs.v1.commons.FooterLink[]; logoHeight?: FernRegistry.docs.v1.read.Height; - logoHref?: FernRegistry.docs.v1.read.Url; - favicon?: FernRegistry.docs.v1.read.FileId; - metadata?: FernRegistry.docs.v1.read.MetadataConfig; - redirects?: FernRegistry.docs.v1.read.RedirectConfig[]; - backgroundImage?: FernRegistry.docs.v1.read.FileId; + logoHref?: FernRegistry.docs.v1.commons.Url; + favicon?: FernRegistry.docs.v1.commons.FileId; + metadata?: FernRegistry.docs.v1.commons.MetadataConfig; + redirects?: FernRegistry.docs.v1.commons.RedirectConfig[]; + backgroundImage?: FernRegistry.docs.v1.commons.FileId; colorsV3?: FernRegistry.docs.v1.read.ColorsConfigV3; layout?: FernRegistry.docs.v1.read.DocsLayoutConfig; - typographyV2?: FernRegistry.docs.v1.read.DocsTypographyConfigV2; - integrations?: FernRegistry.docs.v1.read.IntegrationsConfig; - css?: FernRegistry.docs.v1.read.CssConfig; - js?: FernRegistry.docs.v1.read.JsConfig; - logo?: FernRegistry.docs.v1.read.FileId; - logoV2?: FernRegistry.docs.v1.read.LogoV2; - colors?: FernRegistry.docs.v1.read.ColorsConfig; - colorsV2?: FernRegistry.docs.v1.read.ColorsConfigV2; - typography?: FernRegistry.docs.v1.read.DocsTypographyConfig; + typographyV2?: FernRegistry.docs.v1.commons.DocsTypographyConfigV2; + integrations?: FernRegistry.docs.v1.commons.IntegrationsConfig; + css?: FernRegistry.docs.v1.commons.CssConfig; + js?: FernRegistry.docs.v1.commons.JsConfig; + logo?: FernRegistry.docs.v1.commons.FileId; + logoV2?: FernRegistry.docs.v1.commons.ThemedFileId; + colors?: FernRegistry.docs.v1.commons.ColorsConfig; + colorsV2?: FernRegistry.docs.v1.commons.ColorsConfigV2; + typography?: FernRegistry.docs.v1.commons.DocsTypographyConfig; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV1.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV1.d.ts index 181843eab0..6df1699ae4 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV1.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV1.d.ts @@ -3,9 +3,9 @@ */ import * as FernRegistry from "../../../../../../.."; export interface DocsDefinitionDbV1 { - pages: Record; + pages: Record; referencedApis: FernRegistry.ApiDefinitionId[]; - files: Record; + files: Record; config: FernRegistry.docs.v1.db.DocsDbConfig; - colors?: FernRegistry.docs.v1.read.ColorsConfig; + colors?: FernRegistry.docs.v1.commons.ColorsConfig; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV2.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV2.d.ts index b4c7bd0637..7d8f10fdf4 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV2.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV2.d.ts @@ -3,10 +3,10 @@ */ import * as FernRegistry from "../../../../../../.."; export interface DocsDefinitionDbV2 { - pages: Record; + pages: Record; referencedApis: FernRegistry.ApiDefinitionId[]; - files: Record; + files: Record; config: FernRegistry.docs.v1.db.DocsDbConfig; - colors?: FernRegistry.docs.v1.read.ColorsConfig; - typography?: FernRegistry.docs.v1.read.DocsTypographyConfig; + colors?: FernRegistry.docs.v1.commons.ColorsConfig; + typography?: FernRegistry.docs.v1.commons.DocsTypographyConfig; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV3.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV3.d.ts index 1bd5692b28..dd04e565b4 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV3.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/DocsDefinitionDbV3.d.ts @@ -3,8 +3,8 @@ */ import * as FernRegistry from "../../../../../../.."; export interface DocsDefinitionDbV3 { - pages: Record; + pages: Record; referencedApis: FernRegistry.ApiDefinitionId[]; - files: Record; + files: Record; config: FernRegistry.docs.v1.db.DocsDbConfig; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/NavigationItem.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/NavigationItem.d.ts index add9b6ea83..ba7987a20d 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/NavigationItem.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/NavigationItem.d.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ import * as FernRegistry from "../../../../../../.."; -export declare type NavigationItem = FernRegistry.docs.v1.db.NavigationItem.Page | FernRegistry.docs.v1.db.NavigationItem.Api | FernRegistry.docs.v1.db.NavigationItem.Section | FernRegistry.docs.v1.db.NavigationItem.Link; +export declare type NavigationItem = FernRegistry.docs.v1.db.NavigationItem.Page | FernRegistry.docs.v1.db.NavigationItem.Api | FernRegistry.docs.v1.db.NavigationItem.Section | FernRegistry.docs.v1.db.NavigationItem.Link | FernRegistry.docs.v1.db.NavigationItem.Changelog; export declare namespace NavigationItem { interface Page extends FernRegistry.docs.v1.read.PageMetadata { type: "page"; @@ -16,4 +16,7 @@ export declare namespace NavigationItem { interface Link extends FernRegistry.docs.v1.read.LinkMetadata { type: "link"; } + interface Changelog extends FernRegistry.docs.v1.read.ChangelogSection { + type: "changelog"; + } } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/NavigationTabV2.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/NavigationTabV2.d.ts new file mode 100644 index 0000000000..472f333ba0 --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/NavigationTabV2.d.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as FernRegistry from "../../../../../../.."; +export declare type NavigationTabV2 = FernRegistry.docs.v1.db.NavigationTabV2.Group | FernRegistry.docs.v1.db.NavigationTabV2.Link | FernRegistry.docs.v1.db.NavigationTabV2.Changelog; +export declare namespace NavigationTabV2 { + interface Group extends FernRegistry.docs.v1.db.NavigationTabGroup { + type: "group"; + } + interface Link extends FernRegistry.docs.v1.read.NavigationTabLink { + type: "link"; + } + interface Changelog extends FernRegistry.docs.v1.read.ChangelogSection { + type: "changelog"; + } +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/LogoV2.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/NavigationTabV2.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/LogoV2.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/NavigationTabV2.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/UnversionedTabbedNavigationConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/UnversionedTabbedNavigationConfig.d.ts index 99c0d1572a..b47e7ec900 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/UnversionedTabbedNavigationConfig.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/UnversionedTabbedNavigationConfig.d.ts @@ -3,5 +3,6 @@ */ import * as FernRegistry from "../../../../../../.."; export interface UnversionedTabbedNavigationConfig { - tabs: FernRegistry.docs.v1.db.NavigationTab[]; + tabs?: FernRegistry.docs.v1.db.NavigationTab[]; + tabsV2?: FernRegistry.docs.v1.db.NavigationTabV2[]; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/index.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/index.d.ts index 87708f2aa6..1eb216ffb0 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/index.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/index.d.ts @@ -10,6 +10,7 @@ export * from "./NavigationConfig"; export * from "./UnversionedNavigationConfig"; export * from "./UnversionedTabbedNavigationConfig"; export * from "./NavigationTab"; +export * from "./NavigationTabV2"; export * from "./NavigationTabGroup"; export * from "./UnversionedUntabbedNavigationConfig"; export * from "./VersionedNavigationConfig"; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/index.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/index.js index 87708f2aa6..1eb216ffb0 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/index.js +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/db/types/index.js @@ -10,6 +10,7 @@ export * from "./NavigationConfig"; export * from "./UnversionedNavigationConfig"; export * from "./UnversionedTabbedNavigationConfig"; export * from "./NavigationTab"; +export * from "./NavigationTabV2"; export * from "./NavigationTabGroup"; export * from "./UnversionedUntabbedNavigationConfig"; export * from "./VersionedNavigationConfig"; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ApiNavigationConfigRoot.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ApiNavigationConfigRoot.d.ts index 3968100fd6..3abf2c5541 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ApiNavigationConfigRoot.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ApiNavigationConfigRoot.d.ts @@ -3,6 +3,6 @@ */ import * as FernRegistry from "../../../../../../.."; export interface ApiNavigationConfigRoot { - summaryPageId?: FernRegistry.docs.v1.read.PageId; + summaryPageId?: FernRegistry.docs.v1.commons.PageId; items: FernRegistry.docs.v1.read.ApiNavigationConfigItem[]; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ApiNavigationConfigSubpackage.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ApiNavigationConfigSubpackage.d.ts index 18821c83e4..b9c6c6c6e9 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ApiNavigationConfigSubpackage.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ApiNavigationConfigSubpackage.d.ts @@ -3,7 +3,7 @@ */ import * as FernRegistry from "../../../../../../.."; export interface ApiNavigationConfigSubpackage { - summaryPageId?: FernRegistry.docs.v1.read.PageId; + summaryPageId?: FernRegistry.docs.v1.commons.PageId; subpackageId: FernRegistry.docs.v1.commons.SubpackageId; items: FernRegistry.docs.v1.read.ApiNavigationConfigItem[]; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ApiSection.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ApiSection.d.ts index 0b304b493b..1f622bc7a6 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ApiSection.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ApiSection.d.ts @@ -2,17 +2,13 @@ * This file was auto-generated by Fern from our API Definition. */ import * as FernRegistry from "../../../../../../.."; -export interface ApiSection { +export interface ApiSection extends FernRegistry.docs.v1.read.NavigationNodeMetadata { title: string; - icon?: string; - hidden?: boolean; api: FernRegistry.ApiDefinitionId; - urlSlug: string; skipUrlSlug: boolean; artifacts?: FernRegistry.docs.v1.read.ApiArtifacts; showErrors: boolean; changelog?: FernRegistry.docs.v1.read.ChangelogSection; - fullSlug?: string[]; navigation?: FernRegistry.docs.v1.read.ApiNavigationConfigRoot; longScrolling?: boolean; flattened?: boolean; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/Background.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/Background.d.ts index 7413ac7937..f119cbcc37 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/Background.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/Background.d.ts @@ -4,7 +4,7 @@ import * as FernRegistry from "../../../../../../.."; export declare type Background = FernRegistry.docs.v1.read.Background.Solid | FernRegistry.docs.v1.read.Background.Gradient; export declare namespace Background { - interface Solid extends FernRegistry.docs.v1.read.RgbaColor { + interface Solid extends FernRegistry.docs.v1.commons.RgbaColor { type: "solid"; } interface Gradient { diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogItem.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogItem.d.ts index 6773b37686..d101d4e8dc 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogItem.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogItem.d.ts @@ -4,5 +4,5 @@ import * as FernRegistry from "../../../../../../.."; export interface ChangelogItem { date: string; - pageId: FernRegistry.docs.v1.read.PageId; + pageId: FernRegistry.docs.v1.commons.PageId; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogSection.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogSection.d.ts index 368244abb2..f7f5caade8 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogSection.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogSection.d.ts @@ -2,14 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ import * as FernRegistry from "../../../../../../.."; -export interface ChangelogSection { +export interface ChangelogSection extends FernRegistry.docs.v1.read.NavigationNodeMetadata { title?: string; - /** Defaults to ActivityLog icon */ - icon?: string; - hidden?: boolean; description?: string; - pageId?: FernRegistry.docs.v1.read.PageId; + pageId?: FernRegistry.docs.v1.commons.PageId; items: FernRegistry.docs.v1.read.ChangelogItem[]; - urlSlug: string; - fullSlug?: string[]; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorConfig.d.ts deleted file mode 100644 index 9187ea961b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorConfig.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export declare type ColorConfig = FernRegistry.docs.v1.read.ColorConfig.Unthemed | FernRegistry.docs.v1.read.ColorConfig.Themed; -export declare namespace ColorConfig { - interface Unthemed extends FernRegistry.docs.v1.read.ColorUnthemedConfig { - type: "unthemed"; - } - interface Themed extends FernRegistry.docs.v1.read.ColorThemedConfig { - type: "themed"; - } -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorThemedConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorThemedConfig.d.ts deleted file mode 100644 index 7424de300e..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorThemedConfig.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface ColorThemedConfig { - dark?: FernRegistry.docs.v1.read.RgbaColor; - light?: FernRegistry.docs.v1.read.RgbaColor; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorsConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorsConfig.d.ts deleted file mode 100644 index 8d36148ed6..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorsConfig.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface ColorsConfig { - accentPrimary?: FernRegistry.docs.v1.read.RgbaColor; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorsConfigV2.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorsConfigV2.d.ts deleted file mode 100644 index 9b16cec5d7..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ColorsConfigV2.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface ColorsConfigV2 { - accentPrimary?: FernRegistry.docs.v1.read.ColorConfig; - background?: FernRegistry.docs.v1.read.ColorConfig; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/CustomFontConfigVariant.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/CustomFontConfigVariant.d.ts deleted file mode 100644 index 45928586e0..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/CustomFontConfigVariant.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface CustomFontConfigVariant { - fontFile: FernRegistry.docs.v1.read.FileId; - weight?: string[]; - style?: FernRegistry.docs.v1.read.FontStyle[]; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsConfig.d.ts index b4ce8053e6..7c60a8b664 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsConfig.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsConfig.d.ts @@ -5,23 +5,17 @@ import * as FernRegistry from "../../../../../../.."; export interface DocsConfig { title?: string; navigation: FernRegistry.docs.v1.read.NavigationConfig; - navbarLinks?: FernRegistry.docs.v1.read.NavbarLink[]; - footerLinks?: FernRegistry.docs.v1.read.FooterLink[]; + navbarLinks?: FernRegistry.docs.v1.commons.NavbarLink[]; + footerLinks?: FernRegistry.docs.v1.commons.FooterLink[]; logoHeight?: FernRegistry.docs.v1.read.Height; - logoHref?: FernRegistry.docs.v1.read.Url; - favicon?: FernRegistry.docs.v1.read.FileId; - metadata?: FernRegistry.docs.v1.read.MetadataConfig; - redirects?: FernRegistry.docs.v1.read.RedirectConfig[]; + logoHref?: FernRegistry.docs.v1.commons.Url; + favicon?: FernRegistry.docs.v1.commons.FileId; + metadata?: FernRegistry.docs.v1.commons.MetadataConfig; + redirects?: FernRegistry.docs.v1.commons.RedirectConfig[]; colorsV3?: FernRegistry.docs.v1.read.ColorsConfigV3; layout?: FernRegistry.docs.v1.read.DocsLayoutConfig; - typographyV2?: FernRegistry.docs.v1.read.DocsTypographyConfigV2; - integrations?: FernRegistry.docs.v1.read.IntegrationsConfig; - css?: FernRegistry.docs.v1.read.CssConfig; - js?: FernRegistry.docs.v1.read.JsConfig; - backgroundImage?: FernRegistry.docs.v1.read.FileId; - logoV2?: FernRegistry.docs.v1.read.LogoV2; - logo?: FernRegistry.docs.v1.read.FileId; - colors?: FernRegistry.docs.v1.read.ColorsConfig; - colorsV2?: FernRegistry.docs.v1.read.ColorsConfigV2; - typography?: FernRegistry.docs.v1.read.DocsTypographyConfig; + typographyV2?: FernRegistry.docs.v1.commons.DocsTypographyConfigV2; + integrations?: FernRegistry.docs.v1.commons.IntegrationsConfig; + css?: FernRegistry.docs.v1.commons.CssConfig; + js?: FernRegistry.docs.v1.commons.JsConfig; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsDefinition.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsDefinition.d.ts index 3e4b3def48..7b74875b21 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsDefinition.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsDefinition.d.ts @@ -4,10 +4,10 @@ import * as FernRegistry from "../../../../../../.."; export interface DocsDefinition { algoliaSearchIndex?: FernRegistry.docs.v1.read.AlgoliaSearchIndex; - pages: Record; + pages: Record; apis: Record; - files: Record; - filesV2: Record; + files: Record; + filesV2: Record; id?: FernRegistry.DocsConfigId; config: FernRegistry.docs.v1.read.DocsConfig; search: FernRegistry.docs.v1.read.SearchInfo; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsSection.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsSection.d.ts index 2c87622887..5c3d309b86 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsSection.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsSection.d.ts @@ -2,13 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ import * as FernRegistry from "../../../../../../.."; -export interface DocsSection { +export interface DocsSection extends FernRegistry.docs.v1.read.NavigationNodeMetadata { title: string; - icon?: string; items: FernRegistry.docs.v1.read.NavigationItem[]; - urlSlug: string; skipUrlSlug: boolean; collapsed: boolean; - hidden?: boolean; - fullSlug?: string[]; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsTypographyConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsTypographyConfig.d.ts deleted file mode 100644 index 3ebf0b4599..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsTypographyConfig.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface DocsTypographyConfig { - headingsFont?: FernRegistry.docs.v1.read.FontConfig; - bodyFont?: FernRegistry.docs.v1.read.FontConfig; - codeFont?: FernRegistry.docs.v1.read.FontConfig; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsTypographyConfigV2.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsTypographyConfigV2.d.ts deleted file mode 100644 index 3b3dfe4351..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/DocsTypographyConfigV2.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface DocsTypographyConfigV2 { - headingsFont?: FernRegistry.docs.v1.read.FontConfigV2; - bodyFont?: FernRegistry.docs.v1.read.FontConfigV2; - codeFont?: FernRegistry.docs.v1.read.FontConfigV2; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FileIdOrUrl.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FileIdOrUrl.d.ts deleted file mode 100644 index ae7caababe..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FileIdOrUrl.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export declare type FileIdOrUrl = FernRegistry.docs.v1.read.FileIdOrUrl.FileId | FernRegistry.docs.v1.read.FileIdOrUrl.Url; -export declare namespace FileIdOrUrl { - interface FileId { - type: "fileId"; - value: FernRegistry.docs.v1.read.FileId; - } - interface Url { - type: "url"; - value: FernRegistry.docs.v1.read.Url; - } -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FontConfigV2.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FontConfigV2.d.ts deleted file mode 100644 index 21436f2311..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FontConfigV2.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export declare type FontConfigV2 = FernRegistry.docs.v1.read.FontConfigV2.Custom; -export declare namespace FontConfigV2 { - interface Custom extends FernRegistry.docs.v1.read.CustomFontConfig { - type: "custom"; - } -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FooterLink.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FooterLink.d.ts deleted file mode 100644 index 51acd2f741..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/FooterLink.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export declare type FooterLink = FernRegistry.docs.v1.read.FooterLink.Github | FernRegistry.docs.v1.read.FooterLink.Twitter | FernRegistry.docs.v1.read.FooterLink.X | FernRegistry.docs.v1.read.FooterLink.Linkedin | FernRegistry.docs.v1.read.FooterLink.Youtube | FernRegistry.docs.v1.read.FooterLink.Instagram | FernRegistry.docs.v1.read.FooterLink.Facebook | FernRegistry.docs.v1.read.FooterLink.Discord | FernRegistry.docs.v1.read.FooterLink.Slack | FernRegistry.docs.v1.read.FooterLink.Hackernews | FernRegistry.docs.v1.read.FooterLink.Medium | FernRegistry.docs.v1.read.FooterLink.Website; -export declare namespace FooterLink { - interface Github { - type: "github"; - value: FernRegistry.docs.v1.read.Url; - } - interface Twitter { - type: "twitter"; - value: FernRegistry.docs.v1.read.Url; - } - interface X { - type: "x"; - value: FernRegistry.docs.v1.read.Url; - } - interface Linkedin { - type: "linkedin"; - value: FernRegistry.docs.v1.read.Url; - } - interface Youtube { - type: "youtube"; - value: FernRegistry.docs.v1.read.Url; - } - interface Instagram { - type: "instagram"; - value: FernRegistry.docs.v1.read.Url; - } - interface Facebook { - type: "facebook"; - value: FernRegistry.docs.v1.read.Url; - } - interface Discord { - type: "discord"; - value: FernRegistry.docs.v1.read.Url; - } - interface Slack { - type: "slack"; - value: FernRegistry.docs.v1.read.Url; - } - interface Hackernews { - type: "hackernews"; - value: FernRegistry.docs.v1.read.Url; - } - interface Medium { - type: "medium"; - value: FernRegistry.docs.v1.read.Url; - } - interface Website { - type: "website"; - value: FernRegistry.docs.v1.read.Url; - } -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ImageFile.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ImageFile.d.ts index 087774ee35..e148d746b5 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ImageFile.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ImageFile.d.ts @@ -3,7 +3,7 @@ */ import * as FernRegistry from "../../../../../../.."; export interface ImageFile { - url: FernRegistry.docs.v1.read.Url; + url: FernRegistry.docs.v1.commons.Url; width: number; height: number; blurDataUrl?: string; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/JsConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/JsConfig.d.ts deleted file mode 100644 index cc32705725..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/JsConfig.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface JsConfig { - remote?: FernRegistry.docs.v1.read.JsRemoteConfig[]; - files: FernRegistry.docs.v1.read.JsFileConfig[]; - inline?: string[]; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/JsFileConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/JsFileConfig.d.ts deleted file mode 100644 index 880fe4f91e..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/JsFileConfig.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface JsFileConfig { - fileId: FernRegistry.docs.v1.read.FileId; - strategy?: FernRegistry.docs.v1.read.JsScriptStrategy; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/JsRemoteConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/JsRemoteConfig.d.ts deleted file mode 100644 index 4e21feddf9..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/JsRemoteConfig.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface JsRemoteConfig { - url: FernRegistry.docs.v1.read.Url; - strategy?: FernRegistry.docs.v1.read.JsScriptStrategy; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/LogoV2.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/LogoV2.d.ts deleted file mode 100644 index e5ef7ea04e..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/LogoV2.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface LogoV2 { - dark?: FernRegistry.docs.v1.read.FileId; - light?: FernRegistry.docs.v1.read.FileId; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavbarLink.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavbarLink.d.ts deleted file mode 100644 index 37e3327c1a..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavbarLink.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export declare type NavbarLink = FernRegistry.docs.v1.read.NavbarLink.Filled | FernRegistry.docs.v1.read.NavbarLink.Outlined | FernRegistry.docs.v1.read.NavbarLink.Minimal | FernRegistry.docs.v1.read.NavbarLink.Github | FernRegistry.docs.v1.read.NavbarLink.Primary | FernRegistry.docs.v1.read.NavbarLink.Secondary; -export declare namespace NavbarLink { - interface Filled extends FernRegistry.docs.v1.read.NavbarLinkMetadata { - type: "filled"; - } - interface Outlined extends FernRegistry.docs.v1.read.NavbarLinkMetadata { - type: "outlined"; - } - interface Minimal extends FernRegistry.docs.v1.read.NavbarLinkMetadata { - type: "minimal"; - } - interface Github extends FernRegistry.docs.v1.read.NavbarGithubMetadata { - type: "github"; - } - interface Primary extends FernRegistry.docs.v1.read.NavbarLinkMetadata { - type: "primary"; - } - interface Secondary extends FernRegistry.docs.v1.read.NavbarLinkMetadata { - type: "secondary"; - } -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationItem.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationItem.d.ts index dce1836800..3741b855e2 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationItem.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationItem.d.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ import * as FernRegistry from "../../../../../../.."; -export declare type NavigationItem = FernRegistry.docs.v1.read.NavigationItem.Page | FernRegistry.docs.v1.read.NavigationItem.Api | FernRegistry.docs.v1.read.NavigationItem.Section | FernRegistry.docs.v1.read.NavigationItem.Link; +export declare type NavigationItem = FernRegistry.docs.v1.read.NavigationItem.Page | FernRegistry.docs.v1.read.NavigationItem.Api | FernRegistry.docs.v1.read.NavigationItem.Section | FernRegistry.docs.v1.read.NavigationItem.Link | FernRegistry.docs.v1.read.NavigationItem.Changelog; export declare namespace NavigationItem { interface Page extends FernRegistry.docs.v1.read.PageMetadata { type: "page"; @@ -16,4 +16,7 @@ export declare namespace NavigationItem { interface Link extends FernRegistry.docs.v1.read.LinkMetadata { type: "link"; } + interface Changelog extends FernRegistry.docs.v1.read.ChangelogSection { + type: "changelog"; + } } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationNodeMetadata.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationNodeMetadata.d.ts new file mode 100644 index 0000000000..26b66f080b --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationNodeMetadata.d.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +export interface NavigationNodeMetadata { + icon?: string; + hidden?: boolean; + urlSlug: string; + fullSlug?: string[]; +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationNodeMetadata.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorConfig.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationNodeMetadata.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTab.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTab.d.ts index 54e3af081a..c734dbf8b3 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTab.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTab.d.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ import * as FernRegistry from "../../../../../../.."; -export declare type NavigationTab = FernRegistry.docs.v1.read.NavigationTab.Group | FernRegistry.docs.v1.read.NavigationTab.Link; +export declare type NavigationTab = FernRegistry.docs.v1.read.NavigationTab.Group | FernRegistry.docs.v1.read.NavigationTab.Link | FernRegistry.docs.v1.read.NavigationTab.Changelog; export declare namespace NavigationTab { interface Group extends FernRegistry.docs.v1.read.NavigationTabGroup { type: "group"; @@ -10,4 +10,7 @@ export declare namespace NavigationTab { interface Link extends FernRegistry.docs.v1.read.NavigationTabLink { type: "link"; } + interface Changelog extends FernRegistry.docs.v1.read.ChangelogSection { + type: "changelog"; + } } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabGroup.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabGroup.d.ts index a7941b3ed2..5dd0d30a73 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabGroup.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabGroup.d.ts @@ -2,9 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ import * as FernRegistry from "../../../../../../.."; -export interface NavigationTabGroup { +export interface NavigationTabGroup extends FernRegistry.docs.v1.read.NavigationNodeMetadata { title: string; - icon?: string; items: FernRegistry.docs.v1.read.NavigationItem[]; - urlSlug: string; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabLink.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabLink.d.ts index 9880e38015..9f82c533df 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabLink.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabLink.d.ts @@ -5,5 +5,5 @@ import * as FernRegistry from "../../../../../../.."; export interface NavigationTabLink { title: string; icon?: string; - url: FernRegistry.docs.v1.read.Url; + url: FernRegistry.docs.v1.commons.Url; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/PageContent.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/PageContent.d.ts index df2d5bf1d6..bd26b8a3ac 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/PageContent.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/PageContent.d.ts @@ -4,5 +4,5 @@ import * as FernRegistry from "../../../../../../.."; export interface PageContent { markdown: string; - editThisPageUrl?: FernRegistry.docs.v1.read.Url; + editThisPageUrl?: FernRegistry.docs.v1.commons.Url; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/PageMetadata.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/PageMetadata.d.ts index 1bdf9e9e44..8cb82750d1 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/PageMetadata.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/PageMetadata.d.ts @@ -2,11 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ import * as FernRegistry from "../../../../../../.."; -export interface PageMetadata { - id: FernRegistry.docs.v1.read.PageId; +export interface PageMetadata extends FernRegistry.docs.v1.read.NavigationNodeMetadata { + id: FernRegistry.docs.v1.commons.PageId; title: string; - icon?: string; - hidden?: boolean; - urlSlug: string; - fullSlug?: string[]; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ThemeConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ThemeConfig.d.ts index 434d2ea5ce..16a70bd91f 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ThemeConfig.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ThemeConfig.d.ts @@ -3,12 +3,12 @@ */ import * as FernRegistry from "../../../../../../.."; export interface ThemeConfig { - logo?: FernRegistry.docs.v1.read.FileId; - backgroundImage?: FernRegistry.docs.v1.read.FileId; - accentPrimary: FernRegistry.docs.v1.read.RgbaColor; + logo?: FernRegistry.docs.v1.commons.FileId; + backgroundImage?: FernRegistry.docs.v1.commons.FileId; + accentPrimary: FernRegistry.docs.v1.commons.RgbaColor; background: FernRegistry.docs.v1.read.Background; - border?: FernRegistry.docs.v1.read.RgbaColor; - sidebarBackground?: FernRegistry.docs.v1.read.RgbaColor; - headerBackground?: FernRegistry.docs.v1.read.RgbaColor; - cardBackground?: FernRegistry.docs.v1.read.RgbaColor; + border?: FernRegistry.docs.v1.commons.RgbaColor; + sidebarBackground?: FernRegistry.docs.v1.commons.RgbaColor; + headerBackground?: FernRegistry.docs.v1.commons.RgbaColor; + cardBackground?: FernRegistry.docs.v1.commons.RgbaColor; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/UrlFile.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/UrlFile.d.ts index 6f24deea1e..528bfdd79d 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/UrlFile.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/UrlFile.d.ts @@ -3,5 +3,5 @@ */ import * as FernRegistry from "../../../../../../.."; export interface UrlFile { - url: FernRegistry.docs.v1.read.Url; + url: FernRegistry.docs.v1.commons.Url; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/index.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/index.d.ts index 88d04a1a97..5f6df8f395 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/index.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/index.d.ts @@ -1,10 +1,6 @@ -export * from "./PageId"; -export * from "./Url"; export * from "./File_"; export * from "./UrlFile"; export * from "./ImageFile"; -export * from "./FileId"; -export * from "./FileIdOrUrl"; export * from "./Height"; export * from "./AlgoliaSearchIndex"; export * from "./LoadDocsForUrlResponse"; @@ -23,15 +19,6 @@ export * from "./ColorsConfigV3"; export * from "./ThemeConfig"; export * from "./DarkAndLightModeConfig"; export * from "./Background"; -export * from "./LogoV2"; -export * from "./DocsTypographyConfig"; -export * from "./DocsTypographyConfigV2"; -export * from "./FontConfig"; -export * from "./FontConfigV2"; -export * from "./CustomFontConfig"; -export * from "./CustomFontConfigVariant"; -export * from "./FontStyle"; -export * from "./FontDisplay"; export * from "./NavigationConfig"; export * from "./UnversionedNavigationConfig"; export * from "./UnversionedTabbedNavigationConfig"; @@ -50,10 +37,8 @@ export * from "./PageWidthSizeConfig"; export * from "./SizeConfig"; export * from "./NavigationItem"; export * from "./PageMetadata"; +export * from "./NavigationNodeMetadata"; export * from "./LinkMetadata"; -export * from "./NavbarLink"; -export * from "./NavbarLinkMetadata"; -export * from "./NavbarGithubMetadata"; export * from "./ApiSection"; export * from "./ApiNavigationConfigRoot"; export * from "./ApiNavigationConfigItem"; @@ -61,12 +46,6 @@ export * from "./ApiNavigationConfigSubpackage"; export * from "./ChangelogSection"; export * from "./ChangelogItem"; export * from "./DocsSection"; -export * from "./ColorsConfig"; -export * from "./ColorsConfigV2"; -export * from "./ColorConfig"; -export * from "./ColorUnthemedConfig"; -export * from "./ColorThemedConfig"; -export * from "./RgbaColor"; export * from "./ApiArtifacts"; export * from "./PublishedPostmanCollection"; export * from "./PublishedSdk"; @@ -84,13 +63,3 @@ export * from "./AlgoliaRecordVersion"; export * from "./AlgoliaEndpointRecordV2"; export * from "./AlgoliaPageRecordV2"; export * from "./AlgoliaRecord"; -export * from "./CssConfig"; -export * from "./JsConfig"; -export * from "./JsRemoteConfig"; -export * from "./JsFileConfig"; -export * from "./JsScriptStrategy"; -export * from "./IntegrationsConfig"; -export * from "./MetadataConfig"; -export * from "./RedirectConfig"; -export * from "./TwitterCardSetting"; -export * from "./FooterLink"; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/index.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/index.js index 88d04a1a97..5f6df8f395 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/index.js +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/index.js @@ -1,10 +1,6 @@ -export * from "./PageId"; -export * from "./Url"; export * from "./File_"; export * from "./UrlFile"; export * from "./ImageFile"; -export * from "./FileId"; -export * from "./FileIdOrUrl"; export * from "./Height"; export * from "./AlgoliaSearchIndex"; export * from "./LoadDocsForUrlResponse"; @@ -23,15 +19,6 @@ export * from "./ColorsConfigV3"; export * from "./ThemeConfig"; export * from "./DarkAndLightModeConfig"; export * from "./Background"; -export * from "./LogoV2"; -export * from "./DocsTypographyConfig"; -export * from "./DocsTypographyConfigV2"; -export * from "./FontConfig"; -export * from "./FontConfigV2"; -export * from "./CustomFontConfig"; -export * from "./CustomFontConfigVariant"; -export * from "./FontStyle"; -export * from "./FontDisplay"; export * from "./NavigationConfig"; export * from "./UnversionedNavigationConfig"; export * from "./UnversionedTabbedNavigationConfig"; @@ -50,10 +37,8 @@ export * from "./PageWidthSizeConfig"; export * from "./SizeConfig"; export * from "./NavigationItem"; export * from "./PageMetadata"; +export * from "./NavigationNodeMetadata"; export * from "./LinkMetadata"; -export * from "./NavbarLink"; -export * from "./NavbarLinkMetadata"; -export * from "./NavbarGithubMetadata"; export * from "./ApiSection"; export * from "./ApiNavigationConfigRoot"; export * from "./ApiNavigationConfigItem"; @@ -61,12 +46,6 @@ export * from "./ApiNavigationConfigSubpackage"; export * from "./ChangelogSection"; export * from "./ChangelogItem"; export * from "./DocsSection"; -export * from "./ColorsConfig"; -export * from "./ColorsConfigV2"; -export * from "./ColorConfig"; -export * from "./ColorUnthemedConfig"; -export * from "./ColorThemedConfig"; -export * from "./RgbaColor"; export * from "./ApiArtifacts"; export * from "./PublishedPostmanCollection"; export * from "./PublishedSdk"; @@ -84,13 +63,3 @@ export * from "./AlgoliaRecordVersion"; export * from "./AlgoliaEndpointRecordV2"; export * from "./AlgoliaPageRecordV2"; export * from "./AlgoliaRecord"; -export * from "./CssConfig"; -export * from "./JsConfig"; -export * from "./JsRemoteConfig"; -export * from "./JsFileConfig"; -export * from "./JsScriptStrategy"; -export * from "./IntegrationsConfig"; -export * from "./MetadataConfig"; -export * from "./RedirectConfig"; -export * from "./TwitterCardSetting"; -export * from "./FooterLink"; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ApiNavigationConfigRoot.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ApiNavigationConfigRoot.d.ts index 0ccf24a2b0..7fc7a05865 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ApiNavigationConfigRoot.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ApiNavigationConfigRoot.d.ts @@ -3,6 +3,6 @@ */ import * as FernRegistry from "../../../../../../.."; export interface ApiNavigationConfigRoot { - summaryPageId?: FernRegistry.docs.v1.write.PageId; + summaryPageId?: FernRegistry.docs.v1.commons.PageId; items: FernRegistry.docs.v1.write.ApiNavigationConfigItem[]; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ApiNavigationConfigSubpackage.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ApiNavigationConfigSubpackage.d.ts index a472312869..5b25e366a9 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ApiNavigationConfigSubpackage.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ApiNavigationConfigSubpackage.d.ts @@ -3,7 +3,7 @@ */ import * as FernRegistry from "../../../../../../.."; export interface ApiNavigationConfigSubpackage { - summaryPageId?: FernRegistry.docs.v1.write.PageId; + summaryPageId?: FernRegistry.docs.v1.commons.PageId; subpackageId: FernRegistry.docs.v1.commons.SubpackageId; items: FernRegistry.docs.v1.write.ApiNavigationConfigItem[]; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ApiSection.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ApiSection.d.ts index 5123eceeb0..5e4858f8f3 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ApiSection.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ApiSection.d.ts @@ -2,17 +2,14 @@ * This file was auto-generated by Fern from our API Definition. */ import * as FernRegistry from "../../../../../../.."; -export interface ApiSection { +export interface ApiSection extends FernRegistry.docs.v1.write.NavigationNodeMetadata { title: string; - icon?: string; api: FernRegistry.ApiDefinitionId; artifacts?: FernRegistry.docs.v1.write.ApiArtifacts; skipUrlSlug?: boolean; showErrors?: boolean; changelog?: FernRegistry.docs.v1.write.ChangelogSection; - hidden?: boolean; - urlSlugOverride?: string; - fullSlug?: string[]; + changelogV2?: FernRegistry.docs.v1.write.ChangelogSectionV2; navigation?: FernRegistry.docs.v1.write.ApiNavigationConfigRoot; longScrolling?: boolean; flattened?: boolean; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ChangelogSectionV2.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ChangelogSectionV2.d.ts new file mode 100644 index 0000000000..98813c9d54 --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ChangelogSectionV2.d.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as FernRegistry from "../../../../../../.."; +export interface ChangelogSectionV2 extends FernRegistry.docs.v1.write.NavigationNodeMetadata { + title?: string; + description?: string; + pageId?: string; + items: FernRegistry.docs.v1.write.ChangelogItem[]; +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorThemedConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ChangelogSectionV2.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorThemedConfig.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ChangelogSectionV2.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorConfig.d.ts deleted file mode 100644 index 7142eaec01..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorConfig.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export declare type ColorConfig = FernRegistry.docs.v1.write.ColorConfig.Unthemed | FernRegistry.docs.v1.write.ColorConfig.Themed; -export declare namespace ColorConfig { - interface Unthemed extends FernRegistry.docs.v1.write.ColorUnthemedConfig { - type: "unthemed"; - } - interface Themed extends FernRegistry.docs.v1.write.ColorThemedConfig { - type: "themed"; - } -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorThemedConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorThemedConfig.d.ts deleted file mode 100644 index 06d6edd5d8..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorThemedConfig.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface ColorThemedConfig { - dark?: FernRegistry.docs.v1.write.RgbaColor; - light?: FernRegistry.docs.v1.write.RgbaColor; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorUnthemedConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorUnthemedConfig.d.ts deleted file mode 100644 index db9a1d7b34..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorUnthemedConfig.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface ColorUnthemedConfig { - color?: FernRegistry.docs.v1.write.RgbaColor; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorsConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorsConfig.d.ts deleted file mode 100644 index de3aa741dc..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorsConfig.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface ColorsConfig { - accentPrimary?: FernRegistry.docs.v1.write.RgbaColor; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorsConfigV2.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorsConfigV2.d.ts deleted file mode 100644 index 84cd453804..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorsConfigV2.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface ColorsConfigV2 { - accentPrimary?: FernRegistry.docs.v1.write.ColorConfig; - background?: FernRegistry.docs.v1.write.ColorConfig; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorsConfigV2.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorsConfigV2.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorsConfigV2.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CssConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CssConfig.d.ts deleted file mode 100644 index cfc2e7a169..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CssConfig.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export interface CssConfig { - inline?: string[]; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CssConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CssConfig.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CssConfig.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfig.d.ts deleted file mode 100644 index c4f630eaa5..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfig.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface CustomFontConfig { - name: string; - variants: FernRegistry.docs.v1.write.CustomFontConfigVariant[]; - display?: FernRegistry.docs.v1.write.FontDisplay; - fallback?: string[]; - fontVariationSettings?: string; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfig.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfig.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfigVariant.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfigVariant.d.ts deleted file mode 100644 index b602257fc9..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfigVariant.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface CustomFontConfigVariant { - fontFile: FernRegistry.docs.v1.write.FileId; - weight?: string[]; - style?: FernRegistry.docs.v1.write.FontStyle[]; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfigVariant.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfigVariant.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/CustomFontConfigVariant.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsConfig.d.ts index fe7e0a6192..24c61e5083 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsConfig.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsConfig.d.ts @@ -5,23 +5,23 @@ import * as FernRegistry from "../../../../../../.."; export interface DocsConfig { title?: string; navigation: FernRegistry.docs.v1.write.NavigationConfig; - navbarLinks?: FernRegistry.docs.v1.write.NavbarLink[]; - footerLinks?: FernRegistry.docs.v1.write.FooterLink[]; + navbarLinks?: FernRegistry.docs.v1.commons.NavbarLink[]; + footerLinks?: FernRegistry.docs.v1.commons.FooterLink[]; logoHeight?: FernRegistry.docs.v1.write.Height; - logoHref?: FernRegistry.docs.v1.write.Url; - favicon?: FernRegistry.docs.v1.write.FileId; - metadata?: FernRegistry.docs.v1.write.MetadataConfig; - redirects?: FernRegistry.docs.v1.write.RedirectConfig[]; + logoHref?: FernRegistry.docs.v1.commons.Url; + favicon?: FernRegistry.docs.v1.commons.FileId; + metadata?: FernRegistry.docs.v1.commons.MetadataConfig; + redirects?: FernRegistry.docs.v1.commons.RedirectConfig[]; colorsV3?: FernRegistry.docs.v1.write.ColorsConfigV3; layout?: FernRegistry.docs.v1.write.DocsLayoutConfig; - typographyV2?: FernRegistry.docs.v1.write.DocsTypographyConfigV2; - integrations?: FernRegistry.docs.v1.write.IntegrationsConfig; - css?: FernRegistry.docs.v1.write.CssConfig; - js?: FernRegistry.docs.v1.write.JsConfig; - backgroundImage?: FernRegistry.docs.v1.write.FileId; - logoV2?: FernRegistry.docs.v1.write.ThemedFileId; - logo?: FernRegistry.docs.v1.write.FileId; - colors?: FernRegistry.docs.v1.write.ColorsConfig; - colorsV2?: FernRegistry.docs.v1.write.ColorsConfigV2; - typography?: FernRegistry.docs.v1.write.DocsTypographyConfig; + typographyV2?: FernRegistry.docs.v1.commons.DocsTypographyConfigV2; + integrations?: FernRegistry.docs.v1.commons.IntegrationsConfig; + css?: FernRegistry.docs.v1.commons.CssConfig; + js?: FernRegistry.docs.v1.commons.JsConfig; + backgroundImage?: FernRegistry.docs.v1.commons.FileId; + logoV2?: FernRegistry.docs.v1.commons.ThemedFileId; + logo?: FernRegistry.docs.v1.commons.FileId; + colors?: FernRegistry.docs.v1.commons.ColorsConfig; + colorsV2?: FernRegistry.docs.v1.commons.ColorsConfigV2; + typography?: FernRegistry.docs.v1.commons.DocsTypographyConfig; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsDefinition.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsDefinition.d.ts index 64d17c8661..c5bdc5e781 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsDefinition.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsDefinition.d.ts @@ -3,6 +3,6 @@ */ import * as FernRegistry from "../../../../../../.."; export interface DocsDefinition { - pages: Record; + pages: Record; config: FernRegistry.docs.v1.write.DocsConfig; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsSection.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsSection.d.ts index 4259af3d20..9df2f98a61 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsSection.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsSection.d.ts @@ -2,13 +2,15 @@ * This file was auto-generated by Fern from our API Definition. */ import * as FernRegistry from "../../../../../../.."; -export interface DocsSection { +export interface DocsSection extends FernRegistry.docs.v1.write.NavigationNodeMetadata { title: string; - icon?: string; items: FernRegistry.docs.v1.write.NavigationItem[]; - urlSlugOverride?: string; + /** + * This is only applicable to sections that are at the root level in the sidebar. + * If false, the section title will be displayed as a header and the items will be displayed below it, and cannot be collapsed. + */ collapsed?: boolean; - hidden?: boolean; skipUrlSlug?: boolean; - fullSlug?: string[]; + /** If provided, clicking on this section will open this page instead of the first page in the section. */ + summaryPageId?: FernRegistry.docs.v1.commons.PageId; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfig.d.ts deleted file mode 100644 index bd198f7927..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfig.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface DocsTypographyConfig { - headingsFont?: FernRegistry.docs.v1.write.FontConfig; - bodyFont?: FernRegistry.docs.v1.write.FontConfig; - codeFont?: FernRegistry.docs.v1.write.FontConfig; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfig.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfig.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfigV2.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfigV2.d.ts deleted file mode 100644 index 76981f084c..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfigV2.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface DocsTypographyConfigV2 { - headingsFont?: FernRegistry.docs.v1.write.FontConfigV2; - bodyFont?: FernRegistry.docs.v1.write.FontConfigV2; - codeFont?: FernRegistry.docs.v1.write.FontConfigV2; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfigV2.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfigV2.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/DocsTypographyConfigV2.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FileId.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FileId.d.ts deleted file mode 100644 index 4e63e2b504..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FileId.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export declare type FileId = string; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FileId.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FileId.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FileId.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FileIdOrUrl.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FileIdOrUrl.d.ts deleted file mode 100644 index e32ef6f6d1..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FileIdOrUrl.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export declare type FileIdOrUrl = FernRegistry.docs.v1.write.FileIdOrUrl.FileId | FernRegistry.docs.v1.write.FileIdOrUrl.Url; -export declare namespace FileIdOrUrl { - interface FileId { - type: "fileId"; - value: FernRegistry.docs.v1.write.FileId; - } - interface Url { - type: "url"; - value: FernRegistry.docs.v1.write.Url; - } -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FileIdOrUrl.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FileIdOrUrl.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FileIdOrUrl.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FileS3UploadUrl.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FileS3UploadUrl.d.ts index 11c8fd30fb..0fcccbef5f 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FileS3UploadUrl.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FileS3UploadUrl.d.ts @@ -4,6 +4,6 @@ import * as FernRegistry from "../../../../../../.."; export interface FileS3UploadUrl { uploadUrl: string; - /** When reading docs we will return a map that you can use to look up the docs. */ - fileId: FernRegistry.docs.v1.write.FileId; + /** When reading docs we will return a map that you can use to look up the docs. */ + fileId: FernRegistry.docs.v1.commons.FileId; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontConfig.d.ts deleted file mode 100644 index 7a36078825..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontConfig.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface FontConfig { - name: string; - fontFile: FernRegistry.docs.v1.write.FileId; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontConfig.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontConfig.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontConfigV2.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontConfigV2.d.ts deleted file mode 100644 index 6edd4023e1..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontConfigV2.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export declare type FontConfigV2 = FernRegistry.docs.v1.write.FontConfigV2.Custom; -export declare namespace FontConfigV2 { - interface Custom extends FernRegistry.docs.v1.write.CustomFontConfig { - type: "custom"; - } -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontConfigV2.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontConfigV2.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontConfigV2.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontDisplay.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontDisplay.d.ts deleted file mode 100644 index a84ff8a83e..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontDisplay.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export declare type FontDisplay = "auto" | "block" | "swap" | "fallback" | "optional"; -export declare const FontDisplay: { - readonly Auto: "auto"; - readonly Block: "block"; - readonly Swap: "swap"; - readonly Fallback: "fallback"; - readonly Optional: "optional"; -}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontDisplay.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontDisplay.js deleted file mode 100644 index 137fea86ab..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontDisplay.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export const FontDisplay = { - Auto: "auto", - Block: "block", - Swap: "swap", - Fallback: "fallback", - Optional: "optional", -}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontStyle.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontStyle.d.ts deleted file mode 100644 index a72a842826..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontStyle.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export declare type FontStyle = "normal" | "italic"; -export declare const FontStyle: { - readonly Normal: "normal"; - readonly Italic: "italic"; -}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontStyle.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontStyle.js deleted file mode 100644 index 543e7fe390..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FontStyle.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export const FontStyle = { - Normal: "normal", - Italic: "italic", -}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FooterLink.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FooterLink.d.ts deleted file mode 100644 index 380d1cf965..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FooterLink.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export declare type FooterLink = FernRegistry.docs.v1.write.FooterLink.Github | FernRegistry.docs.v1.write.FooterLink.Twitter | FernRegistry.docs.v1.write.FooterLink.X | FernRegistry.docs.v1.write.FooterLink.Linkedin | FernRegistry.docs.v1.write.FooterLink.Youtube | FernRegistry.docs.v1.write.FooterLink.Instagram | FernRegistry.docs.v1.write.FooterLink.Facebook | FernRegistry.docs.v1.write.FooterLink.Discord | FernRegistry.docs.v1.write.FooterLink.Slack | FernRegistry.docs.v1.write.FooterLink.Hackernews | FernRegistry.docs.v1.write.FooterLink.Medium | FernRegistry.docs.v1.write.FooterLink.Website; -export declare namespace FooterLink { - interface Github { - type: "github"; - value: FernRegistry.docs.v1.write.Url; - } - interface Twitter { - type: "twitter"; - value: FernRegistry.docs.v1.write.Url; - } - interface X { - type: "x"; - value: FernRegistry.docs.v1.write.Url; - } - interface Linkedin { - type: "linkedin"; - value: FernRegistry.docs.v1.write.Url; - } - interface Youtube { - type: "youtube"; - value: FernRegistry.docs.v1.write.Url; - } - interface Instagram { - type: "instagram"; - value: FernRegistry.docs.v1.write.Url; - } - interface Facebook { - type: "facebook"; - value: FernRegistry.docs.v1.write.Url; - } - interface Discord { - type: "discord"; - value: FernRegistry.docs.v1.write.Url; - } - interface Slack { - type: "slack"; - value: FernRegistry.docs.v1.write.Url; - } - interface Hackernews { - type: "hackernews"; - value: FernRegistry.docs.v1.write.Url; - } - interface Medium { - type: "medium"; - value: FernRegistry.docs.v1.write.Url; - } - interface Website { - type: "website"; - value: FernRegistry.docs.v1.write.Url; - } -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FooterLink.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FooterLink.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/FooterLink.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/IntegrationsConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/IntegrationsConfig.d.ts deleted file mode 100644 index d6b4d419a9..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/IntegrationsConfig.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export interface IntegrationsConfig { - intercom?: string; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/IntegrationsConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/IntegrationsConfig.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/IntegrationsConfig.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsConfig.d.ts deleted file mode 100644 index 73ffe15b8f..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsConfig.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface JsConfig { - remote?: FernRegistry.docs.v1.write.JsRemoteConfig[]; - files: FernRegistry.docs.v1.write.JsFileConfig[]; - inline?: string[]; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsConfig.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsConfig.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsFileConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsFileConfig.d.ts deleted file mode 100644 index 236ac49d47..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsFileConfig.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface JsFileConfig { - fileId: FernRegistry.docs.v1.write.FileId; - strategy?: FernRegistry.docs.v1.write.JsScriptStrategy; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsFileConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsFileConfig.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsFileConfig.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsRemoteConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsRemoteConfig.d.ts deleted file mode 100644 index 195171e564..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsRemoteConfig.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface JsRemoteConfig { - url: FernRegistry.docs.v1.write.Url; - strategy?: FernRegistry.docs.v1.write.JsScriptStrategy; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsRemoteConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsRemoteConfig.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsRemoteConfig.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsScriptStrategy.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsScriptStrategy.d.ts deleted file mode 100644 index 3b52fb49b2..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsScriptStrategy.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export declare type JsScriptStrategy = "beforeInteractive" | "afterInteractive" | "lazyOnload"; -export declare const JsScriptStrategy: { - readonly BeforeInteractive: "beforeInteractive"; - readonly AfterInteractive: "afterInteractive"; - readonly LazyOnload: "lazyOnload"; -}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsScriptStrategy.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsScriptStrategy.js deleted file mode 100644 index 7577f32451..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/JsScriptStrategy.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export const JsScriptStrategy = { - BeforeInteractive: "beforeInteractive", - AfterInteractive: "afterInteractive", - LazyOnload: "lazyOnload", -}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/MetadataConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/MetadataConfig.d.ts deleted file mode 100644 index f50eb2a12f..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/MetadataConfig.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface MetadataConfig { - "og:site_name"?: string; - "og:title"?: string; - "og:description"?: string; - "og:url"?: string; - "og:image"?: FernRegistry.docs.v1.write.FileIdOrUrl; - "og:image:width"?: number; - "og:image:height"?: number; - "og:locale"?: string; - "og:logo"?: FernRegistry.docs.v1.write.FileIdOrUrl; - "twitter:title"?: string; - "twitter:description"?: string; - "twitter:image"?: FernRegistry.docs.v1.write.FileIdOrUrl; - "twitter:handle"?: string; - "twitter:site"?: string; - "twitter:url"?: string; - "twitter:card"?: FernRegistry.docs.v1.write.TwitterCardSetting; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/MetadataConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/MetadataConfig.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/MetadataConfig.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarGithubMetadata.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarGithubMetadata.d.ts deleted file mode 100644 index 534acadfb8..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarGithubMetadata.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export interface NavbarGithubMetadata { - url: string; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarGithubMetadata.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarGithubMetadata.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarGithubMetadata.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLink.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLink.d.ts deleted file mode 100644 index 5d6013dc34..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLink.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export declare type NavbarLink = FernRegistry.docs.v1.write.NavbarLink.Filled | FernRegistry.docs.v1.write.NavbarLink.Outlined | FernRegistry.docs.v1.write.NavbarLink.Minimal | FernRegistry.docs.v1.write.NavbarLink.Github | FernRegistry.docs.v1.write.NavbarLink.Primary | FernRegistry.docs.v1.write.NavbarLink.Secondary; -export declare namespace NavbarLink { - interface Filled extends FernRegistry.docs.v1.write.NavbarLinkMetadata { - type: "filled"; - } - interface Outlined extends FernRegistry.docs.v1.write.NavbarLinkMetadata { - type: "outlined"; - } - interface Minimal extends FernRegistry.docs.v1.write.NavbarLinkMetadata { - type: "minimal"; - } - interface Github extends FernRegistry.docs.v1.write.NavbarGithubMetadata { - type: "github"; - } - interface Primary extends FernRegistry.docs.v1.write.NavbarLinkMetadata { - type: "primary"; - } - interface Secondary extends FernRegistry.docs.v1.write.NavbarLinkMetadata { - type: "secondary"; - } -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLink.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLink.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLink.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLinkMetadata.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLinkMetadata.d.ts deleted file mode 100644 index 6f2b90d0a2..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLinkMetadata.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export interface NavbarLinkMetadata { - url: string; - text?: string; - icon?: string; - rightIcon?: string; - rounded?: boolean; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLinkMetadata.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLinkMetadata.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavbarLinkMetadata.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavigationItem.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavigationItem.d.ts index 97e2e8a1a3..3673583bdd 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavigationItem.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavigationItem.d.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ import * as FernRegistry from "../../../../../../.."; -export declare type NavigationItem = FernRegistry.docs.v1.write.NavigationItem.Page | FernRegistry.docs.v1.write.NavigationItem.Api | FernRegistry.docs.v1.write.NavigationItem.Section | FernRegistry.docs.v1.write.NavigationItem.Link; +export declare type NavigationItem = FernRegistry.docs.v1.write.NavigationItem.Page | FernRegistry.docs.v1.write.NavigationItem.Api | FernRegistry.docs.v1.write.NavigationItem.Section | FernRegistry.docs.v1.write.NavigationItem.Link | FernRegistry.docs.v1.write.NavigationItem.Changelog; export declare namespace NavigationItem { interface Page extends FernRegistry.docs.v1.write.PageMetadata { type: "page"; @@ -16,4 +16,7 @@ export declare namespace NavigationItem { interface Link extends FernRegistry.docs.v1.write.LinkMetadata { type: "link"; } + interface Changelog extends FernRegistry.docs.v1.write.ChangelogSectionV2 { + type: "changelog"; + } } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavigationNodeMetadata.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavigationNodeMetadata.d.ts new file mode 100644 index 0000000000..68fcdc3561 --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavigationNodeMetadata.d.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +export interface NavigationNodeMetadata { + icon?: string; + hidden?: boolean; + /** Optional slug to override the generated slug, which is `kebabCase(title)`. This is ignored if `fullSlug` is provided. */ + urlSlugOverride?: string; + /** If provided, ignores `urlSlugOverride`, and its parent slugs, and instead uses `/${basepath}/${fullSlug.join('/')}` this page's pathname. */ + fullSlug?: string[]; +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorUnthemedConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavigationNodeMetadata.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorUnthemedConfig.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavigationNodeMetadata.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavigationTabGroup.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavigationTabGroup.d.ts index e04596f816..b928803550 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavigationTabGroup.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavigationTabGroup.d.ts @@ -2,9 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ import * as FernRegistry from "../../../../../../.."; -export interface NavigationTabGroup { +export interface NavigationTabGroup extends FernRegistry.docs.v1.write.NavigationNodeMetadata { title: string; - icon?: string; items: FernRegistry.docs.v1.write.NavigationItem[]; - urlSlugOverride?: string; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavigationTabV2.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavigationTabV2.d.ts new file mode 100644 index 0000000000..bd828bbb07 --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavigationTabV2.d.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as FernRegistry from "../../../../../../.."; +export declare type NavigationTabV2 = FernRegistry.docs.v1.write.NavigationTabV2.Group | FernRegistry.docs.v1.write.NavigationTabV2.Link | FernRegistry.docs.v1.write.NavigationTabV2.Changelog; +export declare namespace NavigationTabV2 { + interface Group extends FernRegistry.docs.v1.write.NavigationTabGroup { + type: "group"; + } + interface Link extends FernRegistry.docs.v1.write.NavigationTabLink { + type: "link"; + } + interface Changelog extends FernRegistry.docs.v1.write.ChangelogSectionV2 { + type: "changelog"; + } +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorsConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavigationTabV2.js similarity index 100% rename from servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ColorsConfig.js rename to servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/NavigationTabV2.js diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/PageContent.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/PageContent.d.ts index ab1ab5efee..bd26b8a3ac 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/PageContent.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/PageContent.d.ts @@ -4,5 +4,5 @@ import * as FernRegistry from "../../../../../../.."; export interface PageContent { markdown: string; - editThisPageUrl?: FernRegistry.docs.v1.write.Url; + editThisPageUrl?: FernRegistry.docs.v1.commons.Url; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/PageId.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/PageId.d.ts deleted file mode 100644 index e670342868..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/PageId.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export declare type PageId = string; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/PageId.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/PageId.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/PageId.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/PageMetadata.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/PageMetadata.d.ts index 81653d1ea1..4dc318b3ce 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/PageMetadata.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/PageMetadata.d.ts @@ -2,11 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ import * as FernRegistry from "../../../../../../.."; -export interface PageMetadata { +export interface PageMetadata extends FernRegistry.docs.v1.write.NavigationNodeMetadata { + /** This is a filepath relative to the fern folder, with a .md/.mdx extension. */ + id: FernRegistry.docs.v1.commons.PageId; title: string; - icon?: string; - hidden?: boolean; - id: FernRegistry.docs.v1.write.PageId; - urlSlugOverride?: string; - fullSlug?: string[]; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/RedirectConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/RedirectConfig.d.ts deleted file mode 100644 index 0461817ff8..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/RedirectConfig.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export interface RedirectConfig { - source: string; - destination: string; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/RedirectConfig.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/RedirectConfig.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/RedirectConfig.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/RgbaColor.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/RgbaColor.d.ts deleted file mode 100644 index f48bd27e69..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/RgbaColor.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export interface RgbaColor { - r: number; - g: number; - b: number; - a?: number; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/RgbaColor.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/RgbaColor.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/RgbaColor.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ThemeConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ThemeConfig.d.ts index 2c030b5e5a..9ee32b9e19 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ThemeConfig.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ThemeConfig.d.ts @@ -3,12 +3,12 @@ */ import * as FernRegistry from "../../../../../../.."; export interface ThemeConfig { - logo?: FernRegistry.docs.v1.write.FileId; - backgroundImage?: FernRegistry.docs.v1.write.FileId; - accentPrimary: FernRegistry.docs.v1.write.RgbaColor; - background?: FernRegistry.docs.v1.write.RgbaColor; - border?: FernRegistry.docs.v1.write.RgbaColor; - sidebarBackground?: FernRegistry.docs.v1.write.RgbaColor; - headerBackground?: FernRegistry.docs.v1.write.RgbaColor; - cardBackground?: FernRegistry.docs.v1.write.RgbaColor; + logo?: FernRegistry.docs.v1.commons.FileId; + backgroundImage?: FernRegistry.docs.v1.commons.FileId; + accentPrimary: FernRegistry.docs.v1.commons.RgbaColor; + background?: FernRegistry.docs.v1.commons.RgbaColor; + border?: FernRegistry.docs.v1.commons.RgbaColor; + sidebarBackground?: FernRegistry.docs.v1.commons.RgbaColor; + headerBackground?: FernRegistry.docs.v1.commons.RgbaColor; + cardBackground?: FernRegistry.docs.v1.commons.RgbaColor; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ThemedFileId.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ThemedFileId.d.ts deleted file mode 100644 index d24db5f488..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/ThemedFileId.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as FernRegistry from "../../../../../../.."; -export interface ThemedFileId { - dark?: FernRegistry.docs.v1.write.FileId; - light?: FernRegistry.docs.v1.write.FileId; -} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/TwitterCardSetting.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/TwitterCardSetting.d.ts deleted file mode 100644 index 13ecf66d98..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/TwitterCardSetting.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export declare type TwitterCardSetting = "summary" | "summary_large_image" | "app" | "player"; -export declare const TwitterCardSetting: { - readonly Summary: "summary"; - readonly SummaryLargeImage: "summary_large_image"; - readonly App: "app"; - readonly Player: "player"; -}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/TwitterCardSetting.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/TwitterCardSetting.js deleted file mode 100644 index 453eaba20a..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/TwitterCardSetting.js +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export const TwitterCardSetting = { - Summary: "summary", - SummaryLargeImage: "summary_large_image", - App: "app", - Player: "player", -}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/UnversionedTabbedNavigationConfig.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/UnversionedTabbedNavigationConfig.d.ts index 27bdec059b..8af10db7b7 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/UnversionedTabbedNavigationConfig.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/UnversionedTabbedNavigationConfig.d.ts @@ -3,5 +3,6 @@ */ import * as FernRegistry from "../../../../../../.."; export interface UnversionedTabbedNavigationConfig { - tabs: FernRegistry.docs.v1.write.NavigationTab[]; + tabs?: FernRegistry.docs.v1.write.NavigationTab[]; + tabsV2?: FernRegistry.docs.v1.write.NavigationTabV2[]; } diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/Url.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/Url.d.ts deleted file mode 100644 index 36e78de696..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/Url.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export declare type Url = string; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/Url.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/Url.js deleted file mode 100644 index 0b46289f5b..0000000000 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/Url.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/index.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/index.d.ts index 6203742d25..a1a12b3bcb 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/index.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/index.d.ts @@ -2,33 +2,18 @@ export * from "./FilePath"; export * from "./DocsRegistrationId"; export * from "./StartDocsRegisterResponse"; export * from "./FileS3UploadUrl"; -export * from "./FileId"; export * from "./Height"; -export * from "./PageId"; -export * from "./Url"; -export * from "./FileIdOrUrl"; export * from "./DocsDefinition"; export * from "./PageContent"; export * from "./DocsConfig"; export * from "./ColorsConfigV3"; export * from "./ThemeConfig"; export * from "./DarkAndLightModeConfig"; -export * from "./ThemedFileId"; -export * from "./DocsTypographyConfig"; -export * from "./DocsTypographyConfigV2"; -export * from "./FontConfig"; -export * from "./FontConfigV2"; -export * from "./CustomFontConfig"; -export * from "./CustomFontConfigVariant"; -export * from "./FontStyle"; -export * from "./FontDisplay"; -export * from "./NavbarLink"; -export * from "./NavbarLinkMetadata"; -export * from "./NavbarGithubMetadata"; export * from "./NavigationConfig"; export * from "./UnversionedNavigationConfig"; export * from "./UnversionedTabbedNavigationConfig"; export * from "./NavigationTab"; +export * from "./NavigationTabV2"; export * from "./NavigationTabGroup"; export * from "./NavigationTabLink"; export * from "./UnversionedUntabbedNavigationConfig"; @@ -43,20 +28,16 @@ export * from "./PageWidthSizeConfig"; export * from "./SizeConfig"; export * from "./NavigationItem"; export * from "./PageMetadata"; +export * from "./NavigationNodeMetadata"; export * from "./LinkMetadata"; export * from "./ApiSection"; export * from "./ApiNavigationConfigRoot"; export * from "./ApiNavigationConfigItem"; export * from "./ApiNavigationConfigSubpackage"; export * from "./ChangelogSection"; +export * from "./ChangelogSectionV2"; export * from "./ChangelogItem"; export * from "./DocsSection"; -export * from "./ColorsConfig"; -export * from "./ColorsConfigV2"; -export * from "./ColorConfig"; -export * from "./ColorUnthemedConfig"; -export * from "./ColorThemedConfig"; -export * from "./RgbaColor"; export * from "./ApiArtifacts"; export * from "./PublishedPostmanCollection"; export * from "./PublishedSdk"; @@ -66,13 +47,3 @@ export * from "./PypiPackage"; export * from "./InvalidDomainErrorBody"; export * from "./InvliadCustomDomainErrorBody"; export * from "./OverlappingCustomDomains"; -export * from "./CssConfig"; -export * from "./JsConfig"; -export * from "./JsRemoteConfig"; -export * from "./JsFileConfig"; -export * from "./JsScriptStrategy"; -export * from "./IntegrationsConfig"; -export * from "./MetadataConfig"; -export * from "./RedirectConfig"; -export * from "./TwitterCardSetting"; -export * from "./FooterLink"; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/index.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/index.js index 6203742d25..a1a12b3bcb 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/index.js +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/write/types/index.js @@ -2,33 +2,18 @@ export * from "./FilePath"; export * from "./DocsRegistrationId"; export * from "./StartDocsRegisterResponse"; export * from "./FileS3UploadUrl"; -export * from "./FileId"; export * from "./Height"; -export * from "./PageId"; -export * from "./Url"; -export * from "./FileIdOrUrl"; export * from "./DocsDefinition"; export * from "./PageContent"; export * from "./DocsConfig"; export * from "./ColorsConfigV3"; export * from "./ThemeConfig"; export * from "./DarkAndLightModeConfig"; -export * from "./ThemedFileId"; -export * from "./DocsTypographyConfig"; -export * from "./DocsTypographyConfigV2"; -export * from "./FontConfig"; -export * from "./FontConfigV2"; -export * from "./CustomFontConfig"; -export * from "./CustomFontConfigVariant"; -export * from "./FontStyle"; -export * from "./FontDisplay"; -export * from "./NavbarLink"; -export * from "./NavbarLinkMetadata"; -export * from "./NavbarGithubMetadata"; export * from "./NavigationConfig"; export * from "./UnversionedNavigationConfig"; export * from "./UnversionedTabbedNavigationConfig"; export * from "./NavigationTab"; +export * from "./NavigationTabV2"; export * from "./NavigationTabGroup"; export * from "./NavigationTabLink"; export * from "./UnversionedUntabbedNavigationConfig"; @@ -43,20 +28,16 @@ export * from "./PageWidthSizeConfig"; export * from "./SizeConfig"; export * from "./NavigationItem"; export * from "./PageMetadata"; +export * from "./NavigationNodeMetadata"; export * from "./LinkMetadata"; export * from "./ApiSection"; export * from "./ApiNavigationConfigRoot"; export * from "./ApiNavigationConfigItem"; export * from "./ApiNavigationConfigSubpackage"; export * from "./ChangelogSection"; +export * from "./ChangelogSectionV2"; export * from "./ChangelogItem"; export * from "./DocsSection"; -export * from "./ColorsConfig"; -export * from "./ColorsConfigV2"; -export * from "./ColorConfig"; -export * from "./ColorUnthemedConfig"; -export * from "./ColorThemedConfig"; -export * from "./RgbaColor"; export * from "./ApiArtifacts"; export * from "./PublishedPostmanCollection"; export * from "./PublishedSdk"; @@ -66,13 +47,3 @@ export * from "./PypiPackage"; export * from "./InvalidDomainErrorBody"; export * from "./InvliadCustomDomainErrorBody"; export * from "./OverlappingCustomDomains"; -export * from "./CssConfig"; -export * from "./JsConfig"; -export * from "./JsRemoteConfig"; -export * from "./JsFileConfig"; -export * from "./JsScriptStrategy"; -export * from "./IntegrationsConfig"; -export * from "./MetadataConfig"; -export * from "./RedirectConfig"; -export * from "./TwitterCardSetting"; -export * from "./FooterLink"; From a20eac412d1cafebdce8ac42bfa1a958aae9deea Mon Sep 17 00:00:00 2001 From: Andrew Jiang Date: Wed, 29 May 2024 12:53:03 -0400 Subject: [PATCH 2/9] fdr-utils fix --- .../fdr-utils/src/getNavigationRoot.ts | 52 ++++++++++---- packages/commons/fdr-utils/src/resolver.ts | 70 ++++++++++++++----- packages/commons/fdr-utils/src/types.ts | 19 ++++- 3 files changed, 108 insertions(+), 33 deletions(-) diff --git a/packages/commons/fdr-utils/src/getNavigationRoot.ts b/packages/commons/fdr-utils/src/getNavigationRoot.ts index 78457dd180..489dcb4f53 100644 --- a/packages/commons/fdr-utils/src/getNavigationRoot.ts +++ b/packages/commons/fdr-utils/src/getNavigationRoot.ts @@ -1,4 +1,5 @@ import { APIV1Read, DocsV1Read, FdrAPI } from "@fern-api/fdr-sdk"; +import { assertNever, visitDiscriminatedUnion } from "@fern-ui/core-utils"; import { resolveSidebarNodesRoot } from "./resolver"; import { SidebarNavigationRaw, SidebarNodeRaw, SidebarTab } from "./types"; import { visitSidebarNodeRaw } from "./visitSidebarNodeRaw"; @@ -31,6 +32,7 @@ const PRIORITY_LIST: Record = { tabGroup: 3, versionGroup: 2, pageGroup: 1, + tabChangelog: 0, page: 0, }; @@ -88,18 +90,31 @@ export function getNavigationRoot( const { items: tabItems, node: currentTab } = findSiblings( parents, - (n): n is SidebarNodeRaw.TabGroup => n.type === "tabGroup" || n.type === "tabLink", + (n): n is SidebarNodeRaw.TabGroup => n.type === "tabGroup", ); const tabs = tabItems - .filter((n) => n.type === "tabLink" || n.type === "tabGroup") - .map((tab): SidebarTab => { - if (tab.type === "tabLink") { - return tab; - } - const { items, ...tabGroup } = tab; - return tabGroup; - }); + .filter((n) => n.type === "tabGroup" || n.type === "tabChangelog" || n.type === "tabLink") + .map((tab) => + visitDiscriminatedUnion(tab, "type")._visit({ + tabLink: (link) => link, + tabGroup: (group) => ({ + type: "tabGroup", + title: group.title, + icon: group.icon, + index: group.index, + slug: group.slug, + }), + tabChangelog: (changelog) => ({ + type: "tabChangelog", + title: changelog.title, + icon: changelog.icon, + index: changelog.index, + slug: changelog.slug, + }), + _other: (other) => assertNever(other as never), + }), + ); const { items: versionItems, node: currentVerion } = findSiblings( parents, @@ -140,8 +155,13 @@ function resolveRedirect(node: SidebarNodeRaw.VisitableNode | undefined, from: s if (isNavigationNode(node) || node.type === "section") { const firstChild = node.items.filter( - (item): item is SidebarNodeRaw.TabGroup | SidebarNodeRaw.VersionGroup | SidebarNodeRaw => - item.type !== "tabLink", + ( + item, + ): item is + | SidebarNodeRaw.TabGroup + | SidebarNodeRaw.TabChangelogPage + | SidebarNodeRaw.VersionGroup + | SidebarNodeRaw => item.type !== "tabLink", )[0]; return resolveRedirect(firstChild, from); } @@ -162,9 +182,15 @@ function resolveRedirect(node: SidebarNodeRaw.VisitableNode | undefined, from: s return { type: "redirect", redirect: "/" + node.slug.join("/") }; } -function findSiblings( +function findSiblings( parents: readonly SidebarNodeRaw.ParentNode[], - match: (node: SidebarNodeRaw.VisitableNode | SidebarNodeRaw.TabLink | SidebarNodeRaw.Link) => boolean, + match: ( + node: + | SidebarNodeRaw.VisitableNode + | SidebarNodeRaw.TabLink + | SidebarNodeRaw.Link + | SidebarNodeRaw.TabChangelogPage, + ) => boolean, ): { items: readonly T[]; node: T | undefined } { const navigationDepth = parents.findIndex(match); diff --git a/packages/commons/fdr-utils/src/resolver.ts b/packages/commons/fdr-utils/src/resolver.ts index 41bf2a673b..ec97050b5d 100644 --- a/packages/commons/fdr-utils/src/resolver.ts +++ b/packages/commons/fdr-utils/src/resolver.ts @@ -1,5 +1,5 @@ import { APIV1Read, DocsV1Read, FdrAPI } from "@fern-api/fdr-sdk"; -import { isNonNullish, visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { assertNever, isNonNullish, visitDiscriminatedUnion } from "@fern-ui/core-utils"; import { isUnversionedTabbedNavigationConfig, isVersionedNavigationConfig } from "./docs"; import { FlattenedApiDefinitionPackage, @@ -197,24 +197,42 @@ function resolveSidebarNodesVersionItems( ): SidebarNodeRaw.VersionGroup["items"] { if (isUnversionedTabbedNavigationConfig(nav)) { return nav.tabs.map((tab, index): SidebarNodeRaw.Tab => { - if (tab.type === "link") { - return { + return visitDiscriminatedUnion(tab, "type")._visit({ + group: (group) => ({ + type: "tabGroup", + title: group.title, + icon: group.icon, + slug: [...parentSlugs, ...group.urlSlug.split("/")], + index, + items: resolveSidebarNodes(group.items, apis, pages, parentSlugs, parentSlugs, domain), + }), + link: (link) => ({ type: "tabLink", - title: tab.title, - url: tab.url, - icon: tab.icon, + title: link.title, + url: link.url, + icon: link.icon, index, - }; - } - const tabSlug = [...parentSlugs, ...tab.urlSlug.split("/")]; - return { - type: "tabGroup", - title: tab.title, - icon: tab.icon, - slug: tabSlug, - index, - items: resolveSidebarNodes(tab.items, apis, pages, tabSlug, parentSlugs, domain), - }; + }), + changelog: (changelog) => ({ + type: "tabChangelog", + id: changelog.urlSlug, + title: changelog.title ?? "Changelog", + description: changelog.description, + pageId: changelog.pageId, + slug: + changelog.fullSlug != null + ? [...parentSlugs, ...changelog.fullSlug] + : [...parentSlugs, ...changelog.urlSlug.split("/")], + items: changelog.items.map((item) => ({ + date: item.date, + pageId: item.pageId, + })), + icon: changelog.icon, + hidden: changelog.hidden ?? false, + index, + }), + _other: (tab) => assertNever(tab as never), + }); }); } @@ -369,6 +387,24 @@ export function resolveSidebarNodes( link: (link) => { pushPageGroup({ ...link, icon: link.icon }); }, + changelog: (changelog) => ({ + type: "page", + pageType: "changelog", + id: changelog.urlSlug, + title: changelog.title ?? "Changelog", + description: changelog.description, + pageId: changelog.pageId, + slug: + changelog.fullSlug != null + ? [...fixedSlugs, ...changelog.fullSlug] + : [...parentSlugs, ...changelog.urlSlug.split("/")], + items: changelog.items.map((item) => ({ + date: item.date, + pageId: item.pageId, + })), + icon: changelog.icon, + hidden: changelog.hidden ?? false, + }), _other: () => Promise.resolve(), }); } diff --git a/packages/commons/fdr-utils/src/types.ts b/packages/commons/fdr-utils/src/types.ts index 3ae4ff67f2..50b9c3bca1 100644 --- a/packages/commons/fdr-utils/src/types.ts +++ b/packages/commons/fdr-utils/src/types.ts @@ -30,7 +30,15 @@ interface SidebarTabLink { url: string; } -export type SidebarTab = SidebarTabGroup | SidebarTabLink; +interface SidebarTabChangelog { + type: "tabChangelog"; + title: string; + icon: string | undefined; + index: number; + slug: readonly string[]; +} + +export type SidebarTab = SidebarTabGroup | SidebarTabLink | SidebarTabChangelog; export interface SidebarNavigationRaw { currentTabIndex: number | undefined; @@ -53,6 +61,7 @@ export declare namespace SidebarNodeRaw { | SidebarNodeRaw.Page | SidebarNodeRaw.VersionGroup | SidebarNodeRaw.TabGroup + | SidebarNodeRaw.TabChangelogPage | SidebarNodeRaw; export type ParentNode = | SidebarNodeRaw.Root @@ -72,7 +81,7 @@ export declare namespace SidebarNodeRaw { items: readonly SidebarNodeRaw.Tab[] | readonly SidebarNodeRaw[]; } - export type Tab = TabLink | TabGroup; + export type Tab = TabLink | TabGroup | TabChangelogPage; export interface TabGroup extends SidebarTabGroup { items: readonly SidebarNodeRaw[]; @@ -95,6 +104,8 @@ export declare namespace SidebarNodeRaw { }[]; } + export interface TabChangelogPage extends Omit, SidebarTabChangelog {} + export interface ApiSection { type: "apiSection"; api: FdrAPI.ApiId; @@ -182,12 +193,14 @@ export declare namespace SidebarNode { items: readonly Tab[] | readonly SidebarNode[]; } - export type Tab = SidebarNodeRaw.TabLink | TabGroup; + export type Tab = SidebarNodeRaw.TabLink | TabGroup | TabChangelogPage; export interface TabGroup extends Omit { items: readonly SidebarNode[]; } + export interface TabChangelogPage extends Omit, SidebarTabChangelog {} + export interface PageGroup extends Omit { pages: (Page | SidebarNodeRaw.Link | Section)[]; } From 047d99233230eea18ed98736cd82b1a3899d96c5 Mon Sep 17 00:00:00 2001 From: Andrew Jiang Date: Wed, 29 May 2024 14:55:59 -0400 Subject: [PATCH 3/9] fixes? --- packages/commons/fdr-utils/src/visitSidebarNodeRaw.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/commons/fdr-utils/src/visitSidebarNodeRaw.ts b/packages/commons/fdr-utils/src/visitSidebarNodeRaw.ts index 5e36e4fef2..7aad6d42f8 100644 --- a/packages/commons/fdr-utils/src/visitSidebarNodeRaw.ts +++ b/packages/commons/fdr-utils/src/visitSidebarNodeRaw.ts @@ -101,6 +101,9 @@ export function visitSidebarNodeRaw( } return true; }, + tabChangelog: () => { + return true; + }, _other: () => true, }); } From 0e558a2eb4622eb909b4dd5651e01daeed5c0f83 Mon Sep 17 00:00:00 2001 From: Andrew Jiang Date: Wed, 29 May 2024 15:54:05 -0400 Subject: [PATCH 4/9] update algolia search record generator --- .../algolia/AlgoliaSearchRecordGenerator.ts | 222 +++++++++++------- 1 file changed, 134 insertions(+), 88 deletions(-) diff --git a/servers/fdr/src/services/algolia/AlgoliaSearchRecordGenerator.ts b/servers/fdr/src/services/algolia/AlgoliaSearchRecordGenerator.ts index 514cece6f2..c5caa89bf2 100644 --- a/servers/fdr/src/services/algolia/AlgoliaSearchRecordGenerator.ts +++ b/servers/fdr/src/services/algolia/AlgoliaSearchRecordGenerator.ts @@ -1,4 +1,4 @@ -import { visitDbNavigationTab, visitUnversionedDbNavigationConfig } from "@fern-api/fdr-sdk"; +import { DocsV1Read, visitDbNavigationTab, visitUnversionedDbNavigationConfig } from "@fern-api/fdr-sdk"; import { v4 as uuid } from "uuid"; import { APIV1Db, APIV1Read, DocsV1Db } from "../../api"; import { LOGGER } from "../../app/FdrApplication"; @@ -101,21 +101,35 @@ export class AlgoliaSearchRecordGenerator { private generateAlgoliaSearchRecordsForUnversionedTabbedNavigationConfig( config: DocsV1Db.UnversionedTabbedNavigationConfig, context: NavigationContext, - ) { - const records = config.tabs.map((tab) => - visitDbNavigationTab(tab, { - group: (group) => { - const tabRecords = group.items.map((item) => - this.generateAlgoliaSearchRecordsForNavigationItem( - item, - context.withPathPart({ name: tab.title, urlSlug: group.urlSlug }), - ), - ); - return tabRecords.flat(1); - }, - link: () => [], - }), - ); + ): AlgoliaSearchRecord[] { + const records = + config.tabsV2?.flatMap((tab) => { + switch (tab.type) { + case "group": + return tab.items.flatMap((item) => + this.generateAlgoliaSearchRecordsForNavigationItem(item, context), + ); + case "changelog": + return this.generateAlgoliaSearchRecordsForChangelogSection(tab, context); + default: + return []; + } + }) ?? + config.tabs?.map((tab) => + visitDbNavigationTab(tab, { + group: (group) => { + const tabRecords = group.items.map((item) => + this.generateAlgoliaSearchRecordsForNavigationItem( + item, + context.withPathPart({ name: tab.title, urlSlug: group.urlSlug }), + ), + ); + return tabRecords.flat(1); + }, + link: () => [], + }), + ) ?? + []; return records.flat(1); } @@ -124,6 +138,9 @@ export class AlgoliaSearchRecordGenerator { context: NavigationContext, ): AlgoliaSearchRecord[] { if (item.type === "section") { + if (item.hidden) { + return []; + } const section = item; const records = section.items.map((item) => this.generateAlgoliaSearchRecordsForNavigationItem( @@ -139,6 +156,9 @@ export class AlgoliaSearchRecordGenerator { ); return records.flat(1); } else if (item.type === "api") { + if (item.hidden) { + return []; + } const records: AlgoliaSearchRecord[] = []; const api = item; const apiId = api.api; @@ -159,82 +179,21 @@ export class AlgoliaSearchRecordGenerator { } if (item.changelog != null) { - if (item.changelog.pageId != null) { - const changelogPageContent = this.config.docsDefinition.pages[item.changelog.pageId]; - const urlSlug = item.changelog.urlSlug; - const title = item.changelog.title ?? `${api.title} Changelog`; - - if (changelogPageContent != null) { - const processedContent = convertMarkdownToText(changelogPageContent.markdown); - const { indexSegment } = context; - const pageContext = context.withPathPart({ - // TODO: parse from frontmatter? - name: title, - urlSlug, - }); - records.push( - compact({ - type: "page-v2", - objectID: uuid(), - title, - // TODO: Set to something more than 10kb on prod - // See: https://support.algolia.com/hc/en-us/articles/4406981897617-Is-there-a-size-limit-for-my-index-records-/ - content: truncateToBytes(processedContent, 10_000 - 1), - path: { - parts: pageContext.pathParts, - }, - version: - indexSegment.type === "versioned" - ? { - id: indexSegment.version.id, - urlSlug: indexSegment.version.urlSlug ?? indexSegment.version.id, - } - : undefined, - indexSegmentId: indexSegment.id, - }), - ); - } - - item.changelog.items.forEach((changelogItem) => { - const changelogItemContext = context.withPathPart({ - name: `${title} - ${changelogItem.date}`, - urlSlug, // changelogs are all under the same page - }); - - const changelogPageContent = this.config.docsDefinition.pages[changelogItem.pageId]; - if (changelogPageContent != null) { - const processedContent = convertMarkdownToText(changelogPageContent.markdown); - const { indexSegment } = context; - - records.push( - compact({ - type: "page-v2", - objectID: uuid(), - title: `${title} - ${changelogItem.date}`, - // TODO: Set to something more than 10kb on prod - // See: https://support.algolia.com/hc/en-us/articles/4406981897617-Is-there-a-size-limit-for-my-index-records-/ - content: truncateToBytes(processedContent, 10_000 - 1), - path: { - parts: changelogItemContext.pathParts, - // TODO: add anchor - }, - version: - indexSegment.type === "versioned" - ? { - id: indexSegment.version.id, - urlSlug: indexSegment.version.urlSlug ?? indexSegment.version.id, - } - : undefined, - indexSegmentId: indexSegment.id, - }), - ); - } - }); - } + records.push( + ...this.generateAlgoliaSearchRecordsForChangelogSection( + item.changelog, + context, + `${api.title} Changelog`, + ), + ); } return records; } else if (item.type === "page") { + if (item.hidden) { + return []; + } + const page = item; const pageContent = this.config.docsDefinition.pages[page.id]; if (pageContent == null) { @@ -273,10 +232,97 @@ export class AlgoliaSearchRecordGenerator { ]; } else if (item.type === "link") { return []; + } else if (item.type === "changelog") { + return this.generateAlgoliaSearchRecordsForChangelogSection(item, context); } assertNever(item); } + private generateAlgoliaSearchRecordsForChangelogSection( + changelog: DocsV1Read.ChangelogSection, + context: NavigationContext, + fallbackTitle: string = "Changelog", + ): AlgoliaSearchRecord[] { + if (changelog.hidden) { + return []; + } + const records: AlgoliaSearchRecord[] = []; + if (changelog.pageId != null) { + const changelogPageContent = this.config.docsDefinition.pages[changelog.pageId]; + const urlSlug = changelog.urlSlug; + const title = changelog.title ?? fallbackTitle; + + if (changelogPageContent != null) { + const processedContent = convertMarkdownToText(changelogPageContent.markdown); + const { indexSegment } = context; + const pageContext = context.withPathPart({ + // TODO: parse from frontmatter? + name: title, + urlSlug, + }); + records.push( + compact({ + type: "page-v2", + objectID: uuid(), + title, + // TODO: Set to something more than 10kb on prod + // See: https://support.algolia.com/hc/en-us/articles/4406981897617-Is-there-a-size-limit-for-my-index-records-/ + content: truncateToBytes(processedContent, 10_000 - 1), + path: { + parts: pageContext.pathParts, + }, + version: + indexSegment.type === "versioned" + ? { + id: indexSegment.version.id, + urlSlug: indexSegment.version.urlSlug ?? indexSegment.version.id, + } + : undefined, + indexSegmentId: indexSegment.id, + }), + ); + } + + changelog.items.forEach((changelogItem) => { + const changelogItemContext = context.withPathPart({ + name: `${title} - ${changelogItem.date}`, + urlSlug, // changelogs are all under the same page + }); + + const changelogPageContent = this.config.docsDefinition.pages[changelogItem.pageId]; + if (changelogPageContent != null) { + const processedContent = convertMarkdownToText(changelogPageContent.markdown); + const { indexSegment } = context; + + records.push( + compact({ + type: "page-v2", + objectID: uuid(), + title: `${title} - ${changelogItem.date}`, + // TODO: Set to something more than 10kb on prod + // See: https://support.algolia.com/hc/en-us/articles/4406981897617-Is-there-a-size-limit-for-my-index-records-/ + content: truncateToBytes(processedContent, 10_000 - 1), + path: { + parts: changelogItemContext.pathParts, + // TODO: add anchor + }, + version: + indexSegment.type === "versioned" + ? { + id: indexSegment.version.id, + urlSlug: indexSegment.version.urlSlug ?? indexSegment.version.id, + } + : undefined, + indexSegmentId: indexSegment.id, + }), + ); + } + }); + } + + return records; + } + private generateAlgoliaSearchRecordsForApiDefinition( apiDef: APIV1Db.DbApiDefinition, context: NavigationContext, From d515947eb031ab449281e350c4e04f1dcaed0494 Mon Sep 17 00:00:00 2001 From: Andrew Jiang Date: Wed, 29 May 2024 16:00:20 -0400 Subject: [PATCH 5/9] fix HeaderTab and SidebarTab compilation breaks --- packages/ui/app/src/docs/HeaderTabs.tsx | 3 ++- packages/ui/app/src/sidebar/SidebarTabButton.tsx | 3 ++- packages/ui/app/src/util/getSidebarTabHref.ts | 12 ++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 packages/ui/app/src/util/getSidebarTabHref.ts diff --git a/packages/ui/app/src/docs/HeaderTabs.tsx b/packages/ui/app/src/docs/HeaderTabs.tsx index 5487afe732..633eb420b1 100644 --- a/packages/ui/app/src/docs/HeaderTabs.tsx +++ b/packages/ui/app/src/docs/HeaderTabs.tsx @@ -2,6 +2,7 @@ import { RemoteFontAwesomeIcon } from "@fern-ui/components"; import { ReactElement } from "react"; import { FernLink } from "../components/FernLink"; import { useDocsContext } from "../contexts/docs-context/useDocsContext"; +import { getSidebarTabHref } from "../util/getSidebarTabHref"; export function HeaderTabs(): ReactElement { const { tabs, currentTabIndex } = useDocsContext(); @@ -12,7 +13,7 @@ export function HeaderTabs(): ReactElement {
  • diff --git a/packages/ui/app/src/sidebar/SidebarTabButton.tsx b/packages/ui/app/src/sidebar/SidebarTabButton.tsx index e51daa92e0..8fdec8fb09 100644 --- a/packages/ui/app/src/sidebar/SidebarTabButton.tsx +++ b/packages/ui/app/src/sidebar/SidebarTabButton.tsx @@ -3,6 +3,7 @@ import { SidebarTab } from "@fern-ui/fdr-utils"; import cn from "clsx"; import { memo } from "react"; import { FernLink } from "../components/FernLink"; +import { getSidebarTabHref } from "../util/getSidebarTabHref"; export declare namespace SidebarTabButton { export interface Props { @@ -20,7 +21,7 @@ const UnmemoizedSidebarTabButton: React.FC = ({ tab, sel "text-base lg:text-sm flex flex-1 py-2 lg:px-3 group/tab-button group-hover/tab-button:transition rounded-lg justify-start items-center select-none min-w-0 hover:t-accent", "data-[state=active]:t-accent data-[state=inactive]:t-muted", )} - href={tab.type === "tabGroup" ? `/${tab.slug.join("/")}` : tab.url} + href={getSidebarTabHref(tab)} data-state={selected ? "active" : "inactive"} >
    diff --git a/packages/ui/app/src/util/getSidebarTabHref.ts b/packages/ui/app/src/util/getSidebarTabHref.ts new file mode 100644 index 0000000000..676a3ca55d --- /dev/null +++ b/packages/ui/app/src/util/getSidebarTabHref.ts @@ -0,0 +1,12 @@ +import { visitDiscriminatedUnion } from "@fern-ui/core-utils"; +import { SidebarTab } from "@fern-ui/fdr-utils"; +import urljoin from "url-join"; + +export function getSidebarTabHref(tab: SidebarTab): string { + return visitDiscriminatedUnion(tab, "type")._visit({ + tabGroup: (value) => urljoin("/", ...value.slug), + tabLink: (value) => value.url, + tabChangelog: (value) => urljoin("/", ...value.slug), + _other: () => "/", + }); +} From adadf48245c20f7202956d8e778137223dd94106 Mon Sep 17 00:00:00 2001 From: Andrew Jiang Date: Wed, 29 May 2024 16:03:47 -0400 Subject: [PATCH 6/9] fix servers/fdr types --- servers/fdr/src/api/DocsV1Db.ts | 2 ++ servers/fdr/src/api/DocsV1Read.ts | 2 ++ servers/fdr/src/api/DocsV1Write.ts | 2 ++ servers/fdr/src/api/index.ts | 8 ++++---- 4 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 servers/fdr/src/api/DocsV1Db.ts create mode 100644 servers/fdr/src/api/DocsV1Read.ts create mode 100644 servers/fdr/src/api/DocsV1Write.ts diff --git a/servers/fdr/src/api/DocsV1Db.ts b/servers/fdr/src/api/DocsV1Db.ts new file mode 100644 index 0000000000..08a1e1c6c8 --- /dev/null +++ b/servers/fdr/src/api/DocsV1Db.ts @@ -0,0 +1,2 @@ +export * from "./generated/api/resources/docs/resources/v1/resources/commons"; +export * from "./generated/api/resources/docs/resources/v1/resources/db"; diff --git a/servers/fdr/src/api/DocsV1Read.ts b/servers/fdr/src/api/DocsV1Read.ts new file mode 100644 index 0000000000..5febb9ae34 --- /dev/null +++ b/servers/fdr/src/api/DocsV1Read.ts @@ -0,0 +1,2 @@ +export * from "./generated/api/resources/docs/resources/v1/resources/commons"; +export * from "./generated/api/resources/docs/resources/v1/resources/read"; diff --git a/servers/fdr/src/api/DocsV1Write.ts b/servers/fdr/src/api/DocsV1Write.ts new file mode 100644 index 0000000000..2a363dae80 --- /dev/null +++ b/servers/fdr/src/api/DocsV1Write.ts @@ -0,0 +1,2 @@ +export * from "./generated/api/resources/docs/resources/v1/resources/commons"; +export * from "./generated/api/resources/docs/resources/v1/resources/write"; diff --git a/servers/fdr/src/api/index.ts b/servers/fdr/src/api/index.ts index 439dc12fa0..1781a89cec 100644 --- a/servers/fdr/src/api/index.ts +++ b/servers/fdr/src/api/index.ts @@ -1,13 +1,14 @@ +export * as DocsV1Db from "./DocsV1Db"; +export * as DocsV1Read from "./DocsV1Read"; +export * as DocsV1Write from "./DocsV1Write"; export { FernRegistry as FdrAPI } from "./generated"; export * as APIV1Db from "./generated/api/resources/api/resources/v1/resources/db"; export * as APIV1Read from "./generated/api/resources/api/resources/v1/resources/read"; export { ReadService as APIV1ReadService } from "./generated/api/resources/api/resources/v1/resources/read/service/ReadService"; export * as APIV1Write from "./generated/api/resources/api/resources/v1/resources/register"; export { RegisterService as APIV1WriteService } from "./generated/api/resources/api/resources/v1/resources/register/service/RegisterService"; -export * as DocsV1Db from "./generated/api/resources/docs/resources/v1/resources/db"; -export * as DocsV1Read from "./generated/api/resources/docs/resources/v1/resources/read"; +export { DiffService } from "./generated/api/resources/diff/service/DiffService"; export { ReadService as DocsV1ReadService } from "./generated/api/resources/docs/resources/v1/resources/read/service/ReadService"; -export * as DocsV1Write from "./generated/api/resources/docs/resources/v1/resources/write"; export { WriteService as DocsV1WriteService } from "./generated/api/resources/docs/resources/v1/resources/write/service/WriteService"; export * as DocsV2Read from "./generated/api/resources/docs/resources/v2/resources/read"; export { ReadService as DocsV2ReadService } from "./generated/api/resources/docs/resources/v2/resources/read/service/ReadService"; @@ -16,5 +17,4 @@ export { WriteService as DocsV2WriteService } from "./generated/api/resources/do export { SnippetsService } from "./generated/api/resources/snippets/service/SnippetsService"; export { SnippetsFactoryService } from "./generated/api/resources/snippetsFactory/service/SnippetsFactoryService"; export { TemplatesService } from "./generated/api/resources/templates/service/TemplatesService"; -export { DiffService } from "./generated/api/resources/diff/service/DiffService"; export { register } from "./generated/register"; From f5279b2c8deea125ebf61f55f6709c1f55b07a27 Mon Sep 17 00:00:00 2001 From: Andrew Jiang Date: Wed, 29 May 2024 16:21:01 -0400 Subject: [PATCH 7/9] fix docs.test.ts --- servers/fdr/src/__test__/local/services/docs.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/fdr/src/__test__/local/services/docs.test.ts b/servers/fdr/src/__test__/local/services/docs.test.ts index 560e7c78d8..3f203717a7 100644 --- a/servers/fdr/src/__test__/local/services/docs.test.ts +++ b/servers/fdr/src/__test__/local/services/docs.test.ts @@ -80,7 +80,7 @@ it("docs register V2", async () => { ); expect(docs.baseUrl.domain).toEqual("acme.docs.buildwithfern.com"); expect(Object.entries(docs.definition.files)).toHaveLength(3); - expect(docs.definition.config.typography).toEqual({ + expect(docs.definition.config.typographyV2).toEqual({ headingsFont: { name: "Syne", fontFile: FONT_FILE_ID, From 64c7ac2d75030cf722ce440262988b142a1c2788 Mon Sep 17 00:00:00 2001 From: Andrew Jiang Date: Wed, 29 May 2024 16:42:45 -0400 Subject: [PATCH 8/9] update tests --- .../definition/docs/v1/read/__package__.yml | 22 ++++++- .../fdr-utils/src/getAllUrlsFromDocsConfig.ts | 2 +- packages/commons/fdr-utils/src/resolver.ts | 60 ++++++++++--------- .../read/types/ChangelogSectionV1.ts | 9 +++ .../v1/resources/read/types/NavigationTab.ts | 20 +------ .../read/types/NavigationTabGroupV1.ts | 9 +++ .../read/types/NavigationTabLinkV1.ts | 9 +++ .../v1/resources/read/types/index.ts | 3 + .../read/types/ChangelogSectionV1.d.ts | 7 +++ .../read/types/ChangelogSectionV1.js | 4 ++ .../resources/read/types/NavigationTab.d.ts | 13 +--- .../read/types/NavigationTabGroupV1.d.ts | 7 +++ .../read/types/NavigationTabGroupV1.js | 4 ++ .../read/types/NavigationTabLinkV1.d.ts | 7 +++ .../read/types/NavigationTabLinkV1.js | 4 ++ .../v1/resources/read/types/index.d.ts | 3 + .../v1/resources/read/types/index.js | 3 + 17 files changed, 125 insertions(+), 61 deletions(-) create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogSectionV1.ts create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabGroupV1.ts create mode 100644 packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabLinkV1.ts create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogSectionV1.d.ts create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogSectionV1.js create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabGroupV1.d.ts create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabGroupV1.js create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabLinkV1.d.ts create mode 100644 servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabLinkV1.js diff --git a/fern/apis/fdr/definition/docs/v1/read/__package__.yml b/fern/apis/fdr/definition/docs/v1/read/__package__.yml index ada453bc1f..d5568644f0 100644 --- a/fern/apis/fdr/definition/docs/v1/read/__package__.yml +++ b/fern/apis/fdr/definition/docs/v1/read/__package__.yml @@ -207,10 +207,26 @@ types: tabs: list NavigationTab: + discriminated: false union: - group: NavigationTabGroup - link: NavigationTabLink - changelog: ChangelogSection + - NavigationTabGroupV1 + - NavigationTabLinkV1 + - ChangelogSectionV1 + + NavigationTabGroupV1: + extends: NavigationTabGroup + properties: + type: optional> + + NavigationTabLinkV1: + extends: NavigationTabLink + properties: + type: literal<"link"> + + ChangelogSectionV1: + extends: ChangelogSection + properties: + type: literal<"changelog"> NavigationTabGroup: extends: NavigationNodeMetadata diff --git a/packages/commons/fdr-utils/src/getAllUrlsFromDocsConfig.ts b/packages/commons/fdr-utils/src/getAllUrlsFromDocsConfig.ts index bad8bae41e..20fd9db07a 100644 --- a/packages/commons/fdr-utils/src/getAllUrlsFromDocsConfig.ts +++ b/packages/commons/fdr-utils/src/getAllUrlsFromDocsConfig.ts @@ -14,7 +14,7 @@ export function getAllUrlsFromDocsConfig( const visitedSlugs: string[] = []; visitSidebarNodeRaw(root, (node) => { - visitedSlugs.push(node.slug.join("/")); + visitedSlugs.push(urljoin(...node.slug)); }); return Array.from(new Set(visitedSlugs.map((slug) => urljoin(host, slug)))); diff --git a/packages/commons/fdr-utils/src/resolver.ts b/packages/commons/fdr-utils/src/resolver.ts index ec97050b5d..5aecb639af 100644 --- a/packages/commons/fdr-utils/src/resolver.ts +++ b/packages/commons/fdr-utils/src/resolver.ts @@ -192,51 +192,55 @@ function resolveSidebarNodesVersionItems( nav: DocsV1Read.UnversionedNavigationConfig, apis: Record, pages: Record, - parentSlugs: readonly string[], + fixedSlugs: readonly string[], domain: string, ): SidebarNodeRaw.VersionGroup["items"] { if (isUnversionedTabbedNavigationConfig(nav)) { return nav.tabs.map((tab, index): SidebarNodeRaw.Tab => { - return visitDiscriminatedUnion(tab, "type")._visit({ - group: (group) => ({ + if (tab.type === "group" || (tab.type == null && tab.items != null)) { + const parentSlugs = [...fixedSlugs, ...tab.urlSlug.split("/")]; + return { type: "tabGroup", - title: group.title, - icon: group.icon, - slug: [...parentSlugs, ...group.urlSlug.split("/")], + title: tab.title, + icon: tab.icon, + slug: parentSlugs, index, - items: resolveSidebarNodes(group.items, apis, pages, parentSlugs, parentSlugs, domain), - }), - link: (link) => ({ + items: resolveSidebarNodes(tab.items, apis, pages, parentSlugs, fixedSlugs, domain), + }; + } else if (tab.type === "link") { + return { type: "tabLink", - title: link.title, - url: link.url, - icon: link.icon, + title: tab.title, + url: tab.url, + icon: tab.icon, index, - }), - changelog: (changelog) => ({ + }; + } else if (tab.type === "changelog") { + return { type: "tabChangelog", - id: changelog.urlSlug, - title: changelog.title ?? "Changelog", - description: changelog.description, - pageId: changelog.pageId, + id: tab.urlSlug, + title: tab.title ?? "Changelog", + description: tab.description, + pageId: tab.pageId, slug: - changelog.fullSlug != null - ? [...parentSlugs, ...changelog.fullSlug] - : [...parentSlugs, ...changelog.urlSlug.split("/")], - items: changelog.items.map((item) => ({ + tab.fullSlug != null + ? [...fixedSlugs, ...tab.fullSlug] + : [...fixedSlugs, ...tab.urlSlug.split("/")], + items: tab.items.map((item) => ({ date: item.date, pageId: item.pageId, })), - icon: changelog.icon, - hidden: changelog.hidden ?? false, + icon: tab.icon, + hidden: tab.hidden ?? false, index, - }), - _other: (tab) => assertNever(tab as never), - }); + }; + } else { + assertNever(tab as never); + } }); } - return resolveSidebarNodes(nav.items, apis, pages, parentSlugs, parentSlugs, domain); + return resolveSidebarNodes(nav.items, apis, pages, fixedSlugs, fixedSlugs, domain); } export function resolveSidebarNodes( diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogSectionV1.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogSectionV1.ts new file mode 100644 index 0000000000..1dfdf027e4 --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogSectionV1.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernRegistry from "../../../../../../.."; + +export interface ChangelogSectionV1 extends FernRegistry.docs.v1.read.ChangelogSection { + type: "changelog"; +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTab.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTab.ts index fd0543ef0c..1fbb4fd1dc 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTab.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTab.ts @@ -5,20 +5,6 @@ import * as FernRegistry from "../../../../../../.."; export type NavigationTab = - | FernRegistry.docs.v1.read.NavigationTab.Group - | FernRegistry.docs.v1.read.NavigationTab.Link - | FernRegistry.docs.v1.read.NavigationTab.Changelog; - -export declare namespace NavigationTab { - interface Group extends FernRegistry.docs.v1.read.NavigationTabGroup { - type: "group"; - } - - interface Link extends FernRegistry.docs.v1.read.NavigationTabLink { - type: "link"; - } - - interface Changelog extends FernRegistry.docs.v1.read.ChangelogSection { - type: "changelog"; - } -} + | FernRegistry.docs.v1.read.NavigationTabGroupV1 + | FernRegistry.docs.v1.read.NavigationTabLinkV1 + | FernRegistry.docs.v1.read.ChangelogSectionV1; diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabGroupV1.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabGroupV1.ts new file mode 100644 index 0000000000..97bca84669 --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabGroupV1.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernRegistry from "../../../../../../.."; + +export interface NavigationTabGroupV1 extends FernRegistry.docs.v1.read.NavigationTabGroup { + type?: "group"; +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabLinkV1.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabLinkV1.ts new file mode 100644 index 0000000000..55bf313bff --- /dev/null +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabLinkV1.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as FernRegistry from "../../../../../../.."; + +export interface NavigationTabLinkV1 extends FernRegistry.docs.v1.read.NavigationTabLink { + type: "link"; +} diff --git a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/index.ts b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/index.ts index 5f6df8f395..d2c30f93b6 100644 --- a/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/index.ts +++ b/packages/fdr-sdk/src/client/generated/api/resources/docs/resources/v1/resources/read/types/index.ts @@ -23,6 +23,9 @@ export * from "./NavigationConfig"; export * from "./UnversionedNavigationConfig"; export * from "./UnversionedTabbedNavigationConfig"; export * from "./NavigationTab"; +export * from "./NavigationTabGroupV1"; +export * from "./NavigationTabLinkV1"; +export * from "./ChangelogSectionV1"; export * from "./NavigationTabGroup"; export * from "./NavigationTabLink"; export * from "./UnversionedUntabbedNavigationConfig"; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogSectionV1.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogSectionV1.d.ts new file mode 100644 index 0000000000..71eb49b248 --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogSectionV1.d.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as FernRegistry from "../../../../../../.."; +export interface ChangelogSectionV1 extends FernRegistry.docs.v1.read.ChangelogSection { + type: "changelog"; +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogSectionV1.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogSectionV1.js new file mode 100644 index 0000000000..0b46289f5b --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/ChangelogSectionV1.js @@ -0,0 +1,4 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTab.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTab.d.ts index c734dbf8b3..7cdb08b7b0 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTab.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTab.d.ts @@ -2,15 +2,4 @@ * This file was auto-generated by Fern from our API Definition. */ import * as FernRegistry from "../../../../../../.."; -export declare type NavigationTab = FernRegistry.docs.v1.read.NavigationTab.Group | FernRegistry.docs.v1.read.NavigationTab.Link | FernRegistry.docs.v1.read.NavigationTab.Changelog; -export declare namespace NavigationTab { - interface Group extends FernRegistry.docs.v1.read.NavigationTabGroup { - type: "group"; - } - interface Link extends FernRegistry.docs.v1.read.NavigationTabLink { - type: "link"; - } - interface Changelog extends FernRegistry.docs.v1.read.ChangelogSection { - type: "changelog"; - } -} +export declare type NavigationTab = FernRegistry.docs.v1.read.NavigationTabGroupV1 | FernRegistry.docs.v1.read.NavigationTabLinkV1 | FernRegistry.docs.v1.read.ChangelogSectionV1; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabGroupV1.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabGroupV1.d.ts new file mode 100644 index 0000000000..3968ed8ffe --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabGroupV1.d.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as FernRegistry from "../../../../../../.."; +export interface NavigationTabGroupV1 extends FernRegistry.docs.v1.read.NavigationTabGroup { + type?: "group"; +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabGroupV1.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabGroupV1.js new file mode 100644 index 0000000000..0b46289f5b --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabGroupV1.js @@ -0,0 +1,4 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabLinkV1.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabLinkV1.d.ts new file mode 100644 index 0000000000..0aaf225aa6 --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabLinkV1.d.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as FernRegistry from "../../../../../../.."; +export interface NavigationTabLinkV1 extends FernRegistry.docs.v1.read.NavigationTabLink { + type: "link"; +} diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabLinkV1.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabLinkV1.js new file mode 100644 index 0000000000..0b46289f5b --- /dev/null +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/NavigationTabLinkV1.js @@ -0,0 +1,4 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +export {}; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/index.d.ts b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/index.d.ts index 5f6df8f395..d2c30f93b6 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/index.d.ts +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/index.d.ts @@ -23,6 +23,9 @@ export * from "./NavigationConfig"; export * from "./UnversionedNavigationConfig"; export * from "./UnversionedTabbedNavigationConfig"; export * from "./NavigationTab"; +export * from "./NavigationTabGroupV1"; +export * from "./NavigationTabLinkV1"; +export * from "./ChangelogSectionV1"; export * from "./NavigationTabGroup"; export * from "./NavigationTabLink"; export * from "./UnversionedUntabbedNavigationConfig"; diff --git a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/index.js b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/index.js index 5f6df8f395..d2c30f93b6 100644 --- a/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/index.js +++ b/servers/fdr/src/api/generated/api/resources/docs/resources/v1/resources/read/types/index.js @@ -23,6 +23,9 @@ export * from "./NavigationConfig"; export * from "./UnversionedNavigationConfig"; export * from "./UnversionedTabbedNavigationConfig"; export * from "./NavigationTab"; +export * from "./NavigationTabGroupV1"; +export * from "./NavigationTabLinkV1"; +export * from "./ChangelogSectionV1"; export * from "./NavigationTabGroup"; export * from "./NavigationTabLink"; export * from "./UnversionedUntabbedNavigationConfig"; From c1ba663db32bffe50af40472b5b97c08ddb07141 Mon Sep 17 00:00:00 2001 From: Andrew Jiang Date: Wed, 29 May 2024 17:05:57 -0400 Subject: [PATCH 9/9] Test --- servers/fdr/src/__test__/local/services/docs.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/fdr/src/__test__/local/services/docs.test.ts b/servers/fdr/src/__test__/local/services/docs.test.ts index 3f203717a7..1ab90897aa 100644 --- a/servers/fdr/src/__test__/local/services/docs.test.ts +++ b/servers/fdr/src/__test__/local/services/docs.test.ts @@ -82,8 +82,9 @@ it("docs register V2", async () => { expect(Object.entries(docs.definition.files)).toHaveLength(3); expect(docs.definition.config.typographyV2).toEqual({ headingsFont: { + type: "custom", name: "Syne", - fontFile: FONT_FILE_ID, + variants: [{ fontFile: FONT_FILE_ID }], }, }); // load docs again