The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore(docs): yaml import types
Greg Richardson695b00c0ceca
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsxindex 3d22d69e9d1..be2973bde7e 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx@@ -3,19 +3,13 @@ import { memo, useEffect } from 'react'import { menuState, useMenuLevelId } from '~/hooks/useMenuState'import NavigationMenuGuideList from './NavigationMenuGuideList'import NavigationMenuRefList from './NavigationMenuRefList'-// @ts-expect-error+import spec_js_v2 from '~/../../spec/supabase_js_v2.yml' assert { type: 'yml' }-// @ts-expect-errorimport spec_js_v1 from '~/../../spec/supabase_js_v1.yml' assert { type: 'yml' }-// @ts-expect-errorimport spec_dart_v1 from '~/../../spec/supabase_dart_v1.yml' assert { type: 'yml' }-// @ts-expect-errorimport spec_dart_v0 from '~/../../spec/supabase_dart_v0.yml' assert { type: 'yml' }-// @ts-expect-errorimport spec_csharp_v0 from '~/../../spec/supabase_csharp_v0.yml' assert { type: 'yml' }-// @ts-expect-errorimport spec_python_v2 from '~/../../spec/supabase_py_v2.yml' assert { type: 'yml' }-// @ts-expect-errorimport spec_swift_v0 from '~/../../spec/supabase_swift_v0.yml' assert { type: 'yml' }// import { gen_v3 } from '~/lib/refGenerator/helpers'diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuCliList.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuCliList.tsxindex cae120747b8..e90a3ceb0b7 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuCliList.tsx+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuCliList.tsx@@ -3,7 +3,6 @@ import { useRouter } from 'next/router'import { IconChevronLeft } from 'ui'import * as NavItems from './NavigationMenu.constants'-// @ts-expect-errorimport clientLibsCommon from '~/../../spec/common-cli.yml' assert { type: 'yml' }const NavigationMenuCliList = ({ currentLevel, setLevel, id }) => {diff --git a/apps/docs/components/reference/CLICommandSection.tsx b/apps/docs/components/reference/CLICommandSection.tsxindex f25d32e74cf..400b3fa7287 100644--- a/apps/docs/components/reference/CLICommandSection.tsx+++ b/apps/docs/components/reference/CLICommandSection.tsx@@ -1,6 +1,5 @@import ReactMarkdown from 'react-markdown'import { CodeBlock, IconChevronRight, Tabs } from 'ui'-// @ts-expect-errorimport spec from '~/../../spec/cli_v1_commands.yaml' assert { type: 'yml' }import Options from '~/components/Options'import Param from '~/components/Params'diff --git a/apps/docs/components/reference/enrichments/cli/CliGlobalFlagsHandler.tsx b/apps/docs/components/reference/enrichments/cli/CliGlobalFlagsHandler.tsxindex 1de9c1971d0..e108730f65a 100644--- a/apps/docs/components/reference/enrichments/cli/CliGlobalFlagsHandler.tsx+++ b/apps/docs/components/reference/enrichments/cli/CliGlobalFlagsHandler.tsx@@ -1,6 +1,5 @@import RefSubLayout from '~/layouts/ref/RefSubLayout'-// @ts-expect-errorimport spec from '~/../../spec/cli_v1_commands.yaml' assert { type: 'yaml' }import Param from '~/components/Params'import Options from '~/components/Options'diff --git a/apps/docs/lib/mdx/getConfig.tsx b/apps/docs/lib/mdx/getConfig.tsxindex 4cd95686c7f..2341e23b3e2 100644--- a/apps/docs/lib/mdx/getConfig.tsx+++ b/apps/docs/lib/mdx/getConfig.tsx@@ -1,12 +1,7 @@-// @ts-expect-errorimport specStorageV0 from '~/../../spec/storage_v0_config.yaml' assert { type: 'yml' }-// @ts-expect-errorimport specRealtimeV0 from '~/../../spec/realtime_v0_config.yaml' assert { type: 'yml' }-// @ts-expect-errorimport specAuthV1 from '~/../../spec/gotrue_v1_config.yaml' assert { type: 'yml' }-// @ts-expect-errorimport specAnalyticsV0 from '~/../../spec/analytics_v0_config.yaml' assert { type: 'yml' }-// @ts-expect-errorimport specFunctionsV0 from '~/../../spec/functions_v0_config.yaml' assert { type: 'yml' }function getStorageConfigV0() {diff --git a/apps/docs/pages/reference/analytics/config.tsx b/apps/docs/pages/reference/analytics/config.tsxindex e22dfe2e911..ed0c0dc07a6 100644--- a/apps/docs/pages/reference/analytics/config.tsx+++ b/apps/docs/pages/reference/analytics/config.tsx@@ -4,7 +4,6 @@ import components from '~/components/index'import { MDXRemote } from 'next-mdx-remote'import { serialize } from 'next-mdx-remote/serialize'-// @ts-expect-errorimport specFile from '~/../../spec/analytics_v0_config.yaml' assert { type: 'yml' }import { Parameter } from '~/lib/refGenerator/refTypes'diff --git a/apps/docs/pages/reference/auth/config.tsx b/apps/docs/pages/reference/auth/config.tsxindex c024dbe9ecc..41b9437f148 100644--- a/apps/docs/pages/reference/auth/config.tsx+++ b/apps/docs/pages/reference/auth/config.tsx@@ -1,4 +1,3 @@-// @ts-expect-errorimport specFile from '~/../../spec/gotrue_v1_config.yaml' assert { type: 'yml' }import { Parameter } from '~/lib/refGenerator/refTypes'import ReactMarkdown from 'react-markdown'diff --git a/apps/docs/pages/reference/cli/[...slug].tsx b/apps/docs/pages/reference/cli/[...slug].tsxindex 3555095ee72..5af245300ef 100644--- a/apps/docs/pages/reference/cli/[...slug].tsx+++ b/apps/docs/pages/reference/cli/[...slug].tsx@@ -1,4 +1,3 @@-// @ts-expect-errorimport spec from '~/../../spec/cli_v1_commands.yaml' assert { type: 'yml' }import { flattenSections } from '~/lib/helpers'diff --git a/apps/docs/pages/reference/cli/config.tsx b/apps/docs/pages/reference/cli/config.tsxindex a40295b3802..6a167f1ec03 100644--- a/apps/docs/pages/reference/cli/config.tsx+++ b/apps/docs/pages/reference/cli/config.tsx@@ -1,4 +1,3 @@-// @ts-expect-errorimport specFile from '~/../../spec/cli_v1_config.yaml' assert { type: 'yml' }import { Parameter } from '~/lib/refGenerator/refTypes'import ReactMarkdown from 'react-markdown'diff --git a/apps/docs/pages/reference/csharp/[...slug].tsx b/apps/docs/pages/reference/csharp/[...slug].tsxindex f3e510ece23..17b26f498a4 100644--- a/apps/docs/pages/reference/csharp/[...slug].tsx+++ b/apps/docs/pages/reference/csharp/[...slug].tsx@@ -1,5 +1,4 @@import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'-// @ts-expect-errorimport spec from '~/../../spec/supabase_csharp_v0.yml' assert { type: 'yml' }import RefSectionHandler from '~/components/reference/RefSectionHandler'import { flattenSections } from '~/lib/helpers'diff --git a/apps/docs/pages/reference/csharp/crawlers/[...slug].tsx b/apps/docs/pages/reference/csharp/crawlers/[...slug].tsxindex 89d58eb1478..f94729d7482 100644--- a/apps/docs/pages/reference/csharp/crawlers/[...slug].tsx+++ b/apps/docs/pages/reference/csharp/crawlers/[...slug].tsx@@ -1,6 +1,5 @@import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'import typeSpec from '~/../../spec/enrichments/tsdoc_v2/combined.json'-// @ts-expect-errorimport spec from '~/../../spec/supabase_csharp_v0.yml' assert { type: 'yml' }import RefSectionHandler from '~/components/reference/RefSectionHandler'import { flattenSections } from '~/lib/helpers'diff --git a/apps/docs/pages/reference/csharp/v0/[...slug].tsx b/apps/docs/pages/reference/csharp/v0/[...slug].tsxindex 41b28c0a1ef..92e4d0a5b9c 100644--- a/apps/docs/pages/reference/csharp/v0/[...slug].tsx+++ b/apps/docs/pages/reference/csharp/v0/[...slug].tsx@@ -1,5 +1,4 @@import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'-// @ts-expect-errorimport spec from '~/../../spec/supabase_csharp_v0.yml' assert { type: 'yml' }import RefSectionHandler from '~/components/reference/RefSectionHandler'import { flattenSections } from '~/lib/helpers'diff --git a/apps/docs/pages/reference/csharp/v0/crawlers/[...slug].tsx b/apps/docs/pages/reference/csharp/v0/crawlers/[...slug].tsxindex 059df1c75b1..d4c26ddf9dd 100644--- a/apps/docs/pages/reference/csharp/v0/crawlers/[...slug].tsx+++ b/apps/docs/pages/reference/csharp/v0/crawlers/[...slug].tsx@@ -1,6 +1,5 @@import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'import typeSpec from '~/../../spec/enrichments/tsdoc_v2/combined.json'-// @ts-expect-errorimport spec from '~/../../spec/supabase_csharp_v0.yml' assert { type: 'yml' }import RefSectionHandler from '~/components/reference/RefSectionHandler'import { flattenSections } from '~/lib/helpers'diff --git a/apps/docs/pages/reference/dart/[...slug].tsx b/apps/docs/pages/reference/dart/[...slug].tsxindex f35f74c6120..6cd14595a69 100644--- a/apps/docs/pages/reference/dart/[...slug].tsx+++ b/apps/docs/pages/reference/dart/[...slug].tsx@@ -1,5 +1,4 @@import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'-// @ts-expect-errorimport spec from '~/../../spec/supabase_dart_v1.yml' assert { type: 'yml' }import RefSectionHandler from '~/components/reference/RefSectionHandler'import { flattenSections } from '~/lib/helpers'diff --git a/apps/docs/pages/reference/dart/crawlers/[...slug].tsx b/apps/docs/pages/reference/dart/crawlers/[...slug].tsxindex 84497018cdb..54aef81d9c1 100644--- a/apps/docs/pages/reference/dart/crawlers/[...slug].tsx+++ b/apps/docs/pages/reference/dart/crawlers/[...slug].tsx@@ -1,6 +1,5 @@import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'import typeSpec from '~/../../spec/enrichments/tsdoc_v2/combined.json'-// @ts-expect-errorimport spec from '~/../../spec/supabase_dart_v1.yml' assert { type: 'yml' }import RefSectionHandler from '~/components/reference/RefSectionHandler'import { flattenSections } from '~/lib/helpers'diff --git a/apps/docs/pages/reference/dart/v0/[...slug].tsx b/apps/docs/pages/reference/dart/v0/[...slug].tsxindex 4b6a485d9c6..455b8cdfbe5 100644--- a/apps/docs/pages/reference/dart/v0/[...slug].tsx+++ b/apps/docs/pages/reference/dart/v0/[...slug].tsx@@ -1,5 +1,4 @@import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'-// @ts-expect-errorimport spec from '~/../../spec/supabase_dart_v0.yml' assert { type: 'yml' }import RefSectionHandler from '~/components/reference/RefSectionHandler'import { flattenSections } from '~/lib/helpers'diff --git a/apps/docs/pages/reference/dart/v0/crawlers/[...slug].tsx b/apps/docs/pages/reference/dart/v0/crawlers/[...slug].tsxindex 997b56deec2..459912b8b35 100644--- a/apps/docs/pages/reference/dart/v0/crawlers/[...slug].tsx+++ b/apps/docs/pages/reference/dart/v0/crawlers/[...slug].tsx@@ -1,6 +1,5 @@import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'import typeSpec from '~/../../spec/enrichments/tsdoc_v2/combined.json'-// @ts-expect-errorimport spec from '~/../../spec/supabase_dart_v0.yml' assert { type: 'yml' }import RefSectionHandler from '~/components/reference/RefSectionHandler'import { flattenSections } from '~/lib/helpers'diff --git a/apps/docs/pages/reference/javascript/[...slug].tsx b/apps/docs/pages/reference/javascript/[...slug].tsxindex 3cbbcc08694..244fe6c28ae 100644--- a/apps/docs/pages/reference/javascript/[...slug].tsx+++ b/apps/docs/pages/reference/javascript/[...slug].tsx@@ -1,6 +1,5 @@import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'import typeSpec from '~/../../spec/enrichments/tsdoc_v2/combined.json'-// @ts-expect-errorimport spec from '~/../../spec/supabase_js_v2.yml' assert { type: 'yml' }import RefSectionHandler from '~/components/reference/RefSectionHandler'import { flattenSections } from '~/lib/helpers'diff --git a/apps/docs/pages/reference/javascript/crawlers/[...slug].tsx b/apps/docs/pages/reference/javascript/crawlers/[...slug].tsxindex df4a97dcdc5..34c4ee78943 100644--- a/apps/docs/pages/reference/javascript/crawlers/[...slug].tsx+++ b/apps/docs/pages/reference/javascript/crawlers/[...slug].tsx@@ -1,6 +1,5 @@import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'import typeSpec from '~/../../spec/enrichments/tsdoc_v2/combined.json'-// @ts-expect-errorimport spec from '~/../../spec/supabase_js_v2.yml' assert { type: 'yml' }import RefSectionHandler from '~/components/reference/RefSectionHandler'import { flattenSections } from '~/lib/helpers'diff --git a/apps/docs/pages/reference/javascript/v1/[...slug].tsx b/apps/docs/pages/reference/javascript/v1/[...slug].tsxindex 4dd32c156ca..e7a5b4bf8d1 100644--- a/apps/docs/pages/reference/javascript/v1/[...slug].tsx+++ b/apps/docs/pages/reference/javascript/v1/[...slug].tsx@@ -1,6 +1,5 @@import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'import typeSpec from '~/../../spec/enrichments/tsdoc_v1/combined.json'-// @ts-expect-errorimport spec from '~/../../spec/supabase_js_v1.yml' assert { type: 'yml' }import RefSectionHandler from '~/components/reference/RefSectionHandler'import { flattenSections } from '~/lib/helpers'diff --git a/apps/docs/pages/reference/javascript/v1/crawlers/[...slug].tsx b/apps/docs/pages/reference/javascript/v1/crawlers/[...slug].tsxindex 19278fccd67..64a6816669d 100644--- a/apps/docs/pages/reference/javascript/v1/crawlers/[...slug].tsx+++ b/apps/docs/pages/reference/javascript/v1/crawlers/[...slug].tsx@@ -1,6 +1,5 @@import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'import typeSpec from '~/../../spec/enrichments/tsdoc_v2/combined.json'-// @ts-expect-errorimport spec from '~/../../spec/supabase_js_v1.yml' assert { type: 'yml' }import RefSectionHandler from '~/components/reference/RefSectionHandler'import { flattenSections } from '~/lib/helpers'diff --git a/apps/docs/pages/reference/python/[...slug].tsx b/apps/docs/pages/reference/python/[...slug].tsxindex a93ce7bcf52..d0b6ae951dd 100644--- a/apps/docs/pages/reference/python/[...slug].tsx+++ b/apps/docs/pages/reference/python/[...slug].tsx@@ -1,6 +1,5 @@import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'import typeSpec from '~/../../spec/enrichments/tsdoc_v2/combined.json'-// @ts-expect-errorimport spec from '~/../../spec/supabase_py_v2.yml' assert { type: 'yml' }import RefSectionHandler from '~/components/reference/RefSectionHandler'import { flattenSections } from '~/lib/helpers'diff --git a/apps/docs/pages/reference/python/crawlers/[...slug].tsx b/apps/docs/pages/reference/python/crawlers/[...slug].tsxindex 593da6371f7..0ccb2c18cce 100644--- a/apps/docs/pages/reference/python/crawlers/[...slug].tsx+++ b/apps/docs/pages/reference/python/crawlers/[...slug].tsx@@ -1,6 +1,5 @@import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'import typeSpec from '~/../../spec/enrichments/tsdoc_v2/combined.json'-// @ts-expect-errorimport spec from '~/../../spec/supabase_py_v2.yml' assert { type: 'yml' }import RefSectionHandler from '~/components/reference/RefSectionHandler'import { flattenSections } from '~/lib/helpers'diff --git a/apps/docs/pages/reference/realtime/config.tsx b/apps/docs/pages/reference/realtime/config.tsxindex eaa7763e7fa..aab317af44d 100644--- a/apps/docs/pages/reference/realtime/config.tsx+++ b/apps/docs/pages/reference/realtime/config.tsx@@ -4,7 +4,6 @@ import components from '~/components/index'import { MDXRemote } from 'next-mdx-remote'import { serialize } from 'next-mdx-remote/serialize'-// @ts-expect-errorimport specFile from '~/../../spec/realtime_v0_config.yaml' assert { type: 'yml' }import { Parameter } from '~/lib/refGenerator/refTypes'diff --git a/apps/docs/pages/reference/storage/config.tsx b/apps/docs/pages/reference/storage/config.tsxindex 8af901cba03..94dee5d9e55 100644--- a/apps/docs/pages/reference/storage/config.tsx+++ b/apps/docs/pages/reference/storage/config.tsx@@ -1,4 +1,3 @@-// @ts-expect-errorimport specFile from '~/../../spec/storage_v0_config.yaml' assert { type: 'yml' }import { Parameter } from '~/lib/refGenerator/refTypes'diff --git a/apps/docs/pages/reference/swift/[...slug].tsx b/apps/docs/pages/reference/swift/[...slug].tsxindex d0e994ed1d6..dd1ffb3354e 100644--- a/apps/docs/pages/reference/swift/[...slug].tsx+++ b/apps/docs/pages/reference/swift/[...slug].tsx@@ -1,5 +1,4 @@import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'-// @ts-expect-errorimport spec from '~/../../spec/supabase_swift_v0.yml' assert { type: 'yml' }import RefSectionHandler from '~/components/reference/RefSectionHandler'import { flattenSections } from '~/lib/helpers'diff --git a/apps/docs/pages/reference/swift/crawlers/[...slug].tsx b/apps/docs/pages/reference/swift/crawlers/[...slug].tsxindex 308eda7006f..644925aeac4 100644--- a/apps/docs/pages/reference/swift/crawlers/[...slug].tsx+++ b/apps/docs/pages/reference/swift/crawlers/[...slug].tsx@@ -1,6 +1,5 @@import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'import typeSpec from '~/../../spec/enrichments/tsdoc_v2/combined.json'-// @ts-expect-errorimport spec from '~/../../spec/supabase_swift_v0.yml' assert { type: 'yml' }import RefSectionHandler from '~/components/reference/RefSectionHandler'import { flattenSections } from '~/lib/helpers'diff --git a/apps/docs/pages/reference/swift/v0/[...slug].tsx b/apps/docs/pages/reference/swift/v0/[...slug].tsxindex c27937c271f..3e2e253dc6a 100644--- a/apps/docs/pages/reference/swift/v0/[...slug].tsx+++ b/apps/docs/pages/reference/swift/v0/[...slug].tsx@@ -1,5 +1,4 @@import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'-// @ts-expect-errorimport spec from '~/../../spec/supabase_swift_v0.yml' assert { type: 'yml' }import RefSectionHandler from '~/components/reference/RefSectionHandler'import { flattenSections } from '~/lib/helpers'diff --git a/apps/docs/pages/reference/swift/v0/crawlers/[...slug].tsx b/apps/docs/pages/reference/swift/v0/crawlers/[...slug].tsxindex d89222f1f22..099dfb582a8 100644--- a/apps/docs/pages/reference/swift/v0/crawlers/[...slug].tsx+++ b/apps/docs/pages/reference/swift/v0/crawlers/[...slug].tsx@@ -1,6 +1,5 @@import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'import typeSpec from '~/../../spec/enrichments/tsdoc_v2/combined.json'-// @ts-expect-errorimport spec from '~/../../spec/supabase_swift_v0.yml' assert { type: 'yml' }import RefSectionHandler from '~/components/reference/RefSectionHandler'import { flattenSections } from '~/lib/helpers'diff --git a/apps/docs/types/index.ts b/apps/docs/types/index.tsindex c1e58ad998a..88cdf87ab6b 100644--- a/apps/docs/types/index.ts+++ b/apps/docs/types/index.ts@@ -1 +1,3 @@export * from './next'++export type Json = string | number | boolean | { [key: string]: Json } | Json[]diff --git a/apps/docs/types/yaml.d.ts b/apps/docs/types/yaml.d.tsnew file mode 100644index 00000000000..519982d6518--- /dev/null+++ b/apps/docs/types/yaml.d.ts@@ -0,0 +1,13 @@+declare module '*.yml' {+ import { Json } from '.'++ const value: Json+ export default value+}++declare module '*.yaml' {+ import { Json } from '.'++ const value: Json+ export default value+}