The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
updates v2 js docs
Copplea5eb5deffab8
diff --git a/apps/reference/_supabase_js/generated/auth-api-createuser.mdx b/apps/reference/_supabase_js/generated/auth-api-createuser.mdxindex 8b7a1149efb..f479d43146e 100644--- a/apps/reference/_supabase_js/generated/auth-api-createuser.mdx+++ b/apps/reference/_supabase_js/generated/auth-api-createuser.mdx@@ -2,16 +2,12 @@id: auth-api-createusertitle: 'createUser()'slug: /auth-api-createuser-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Creates a new user.--This function should only be called on a server. Never expose your `service_role` key in the browser.-```jsconst { data: user, error } = await supabase.auth.api.createUser({email: '[email protected]',@@ -38,7 +34,7 @@ const { data: user, error } = await supabase.auth.api.createUser({</h4><div class="method-list-item-description">-The data you want to create the user with.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/auth-api-deleteuser.mdx b/apps/reference/_supabase_js/generated/auth-api-deleteuser.mdxindex 12ff527f317..1e6f75248d1 100644--- a/apps/reference/_supabase_js/generated/auth-api-deleteuser.mdx+++ b/apps/reference/_supabase_js/generated/auth-api-deleteuser.mdx@@ -2,16 +2,12 @@id: auth-api-deleteusertitle: 'deleteUser()'slug: /auth-api-deleteuser-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Delete a user. Requires a `service_role` key.--This function should only be called on a server. Never expose your `service_role` key in the browser.-```jsconst { data: user, error } = await supabase.auth.api.deleteUser('715ed5db-f090-4b8c-a067-640ecee36aa0'@@ -36,7 +32,7 @@ const { data: user, error } = await supabase.auth.api.deleteUser(</h4><div class="method-list-item-description">-The user uid you want to remove.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/auth-api-generatelink.mdx b/apps/reference/_supabase_js/generated/auth-api-generatelink.mdxindex 92a755a813e..5c22d99989f 100644--- a/apps/reference/_supabase_js/generated/auth-api-generatelink.mdx+++ b/apps/reference/_supabase_js/generated/auth-api-generatelink.mdx@@ -2,14 +2,12 @@id: auth-api-generatelinktitle: 'generateLink()'slug: /auth-api-generatelink-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Generates links to be sent via email or other.-## Parameters<ul className="method-list-group">@@ -23,12 +21,12 @@ Generates links to be sent via email or other.required</span><span className="method-list-item-validation">- <code>signup</code> | <code>magiclink</code> | <code>recovery</code> | <code>invite</code> | <code>email_change_current</code> | <code>email_change_new</code>+ <code>signup</code> | <code>invite</code> | <code>magiclink</code> | <code>recovery</code></span></h4><div class="method-list-item-description">-The link type ("signup" or "magiclink" or "recovery" or "invite").+No description provided.</div>@@ -48,7 +46,7 @@ The link type ("signup" or "magiclink" or "recovery" or "invite").</h4><div class="method-list-item-description">-The user's email.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/auth-api-getuser.mdx b/apps/reference/_supabase_js/generated/auth-api-getuser.mdxindex 235055ad277..fdf38ab3061 100644--- a/apps/reference/_supabase_js/generated/auth-api-getuser.mdx+++ b/apps/reference/_supabase_js/generated/auth-api-getuser.mdx@@ -2,18 +2,12 @@id: auth-api-getusertitle: 'getUser()'slug: /auth-api-getuser-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Gets the current user details.--This method is called by the GoTrueClient `update` where-the jwt is set to this.currentSession.access_token-and therefore, acts like getting the currently authenticated user-```jsconst { user, error } = await supabase.auth.api.getUser('ACCESS_TOKEN_JWT')```@@ -36,7 +30,7 @@ const { user, error } = await supabase.auth.api.getUser('ACCESS_TOKEN_JWT')</h4><div class="method-list-item-description">-A valid, logged-in JWT. Typically, the access_token for the currentSession+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/auth-api-inviteuserbyemail.mdx b/apps/reference/_supabase_js/generated/auth-api-inviteuserbyemail.mdxindex 26e32e2c3a2..ea1f4b559f6 100644--- a/apps/reference/_supabase_js/generated/auth-api-inviteuserbyemail.mdx+++ b/apps/reference/_supabase_js/generated/auth-api-inviteuserbyemail.mdx@@ -2,14 +2,12 @@id: auth-api-inviteuserbyemailtitle: 'inviteUserByEmail()'slug: /auth-api-inviteuserbyemail-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Sends an invite link to an email address.-## Parameters<ul className="method-list-group">@@ -28,7 +26,7 @@ Sends an invite link to an email address.</h4><div class="method-list-item-description">-The email address of the user.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/auth-api-listusers.mdx b/apps/reference/_supabase_js/generated/auth-api-listusers.mdxindex b9318d5d854..6cd5dcace33 100644--- a/apps/reference/_supabase_js/generated/auth-api-listusers.mdx+++ b/apps/reference/_supabase_js/generated/auth-api-listusers.mdx@@ -2,16 +2,12 @@id: auth-api-listuserstitle: 'listUsers()'slug: /auth-api-listusers-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Get a list of users.--This function should only be called on a server. Never expose your `service_role` key in the browser.-```jsconst { data: user, error } = await supabase.auth.api.listUsers()```diff --git a/apps/reference/_supabase_js/generated/auth-api-resetpasswordforemail.mdx b/apps/reference/_supabase_js/generated/auth-api-resetpasswordforemail.mdxindex 84363170606..63ddc910e4a 100644--- a/apps/reference/_supabase_js/generated/auth-api-resetpasswordforemail.mdx+++ b/apps/reference/_supabase_js/generated/auth-api-resetpasswordforemail.mdx@@ -2,14 +2,12 @@id: auth-api-resetpasswordforemailtitle: 'resetPasswordForEmail()'slug: /auth-api-resetpasswordforemail-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Sends a reset request to an email address.-```jsconst { data, error } = await supabase.auth.api.resetPasswordForEmail(@@ -34,7 +32,7 @@ const { data, error } = await supabase.auth.api.resetPasswordForEmail(</h4><div class="method-list-item-description">-The email address of the user.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/auth-api-sendmobileotp.mdx b/apps/reference/_supabase_js/generated/auth-api-sendmobileotp.mdxindex 9e4f6b6b4a3..f95d4831398 100644--- a/apps/reference/_supabase_js/generated/auth-api-sendmobileotp.mdx+++ b/apps/reference/_supabase_js/generated/auth-api-sendmobileotp.mdx@@ -2,14 +2,12 @@id: auth-api-sendmobileotptitle: 'sendMobileOTP()'slug: /auth-api-sendmobileotp-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Sends a mobile OTP via SMS. Will register the account if it doesn't already exist-## Parameters<ul className="method-list-group">@@ -28,7 +26,7 @@ Sends a mobile OTP via SMS. Will register the account if it doesn't already exis</h4><div class="method-list-item-description">-The user's phone number WITH international prefix+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/auth-api-updateuserbyid.mdx b/apps/reference/_supabase_js/generated/auth-api-updateuserbyid.mdxindex 75129556236..9d5f215055a 100644--- a/apps/reference/_supabase_js/generated/auth-api-updateuserbyid.mdx+++ b/apps/reference/_supabase_js/generated/auth-api-updateuserbyid.mdx@@ -2,14 +2,12 @@id: auth-api-updateuserbyidtitle: 'updateUserById()'slug: /auth-api-updateuserbyid-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Updates the user data.-```jsconst { data: user, error } = await supabase.auth.api.updateUserById('6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',@@ -55,9 +53,7 @@ No description provided.</h4><div class="method-list-item-description">-The data you want to update.--This function should only be called on a server. Never expose your `service_role` key in the browser.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/auth-session.mdx b/apps/reference/_supabase_js/generated/auth-getsession.mdxsimilarity index 65%rename from apps/reference/_supabase_js/generated/auth-session.mdxrename to apps/reference/_supabase_js/generated/auth-getsession.mdxindex 65bd9a57241..b8a6eafafaf 100644--- a/apps/reference/_supabase_js/generated/auth-session.mdx+++ b/apps/reference/_supabase_js/generated/auth-getsession.mdx@@ -1,15 +1,13 @@----id: auth-session-title: 'session()'-slug: /auth-session-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+id: auth-getsession+title: 'getSession()'+slug: /auth-getsession+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Returns the session data, if there is an active session.-```jsconst session = supabase.auth.session()```diff --git a/apps/reference/_supabase_js/generated/auth-user.mdx b/apps/reference/_supabase_js/generated/auth-getuser.mdxsimilarity index 55%rename from apps/reference/_supabase_js/generated/auth-user.mdxrename to apps/reference/_supabase_js/generated/auth-getuser.mdxindex 1f0bda9417a..5d38bee3289 100644--- a/apps/reference/_supabase_js/generated/auth-user.mdx+++ b/apps/reference/_supabase_js/generated/auth-getuser.mdx@@ -1,17 +1,13 @@----id: auth-user-title: 'user()'-slug: /auth-user-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+id: auth-getuser+title: 'getUser()'+slug: /auth-getuser+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Inside a browser context, `user()` will return the user data, if there is a logged in user.--For server-side management, you can get a user through `auth.api.getUserByCookie()`-```jsconst user = supabase.auth.user()```diff --git a/apps/reference/_supabase_js/generated/auth-onauthstatechange.mdx b/apps/reference/_supabase_js/generated/auth-onauthstatechange.mdxindex f102c5b9680..b579469504b 100644--- a/apps/reference/_supabase_js/generated/auth-onauthstatechange.mdx+++ b/apps/reference/_supabase_js/generated/auth-onauthstatechange.mdx@@ -2,14 +2,12 @@id: auth-onauthstatechangetitle: 'onAuthStateChange()'slug: /auth-onauthstatechange-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Receive a notification every time an auth event happens.-```jssupabase.auth.onAuthStateChange((event, session) => {console.log(event, session)diff --git a/apps/reference/_supabase_js/generated/auth-setauth.mdx b/apps/reference/_supabase_js/generated/auth-setsession.mdxsimilarity index 92%rename from apps/reference/_supabase_js/generated/auth-setauth.mdxrename to apps/reference/_supabase_js/generated/auth-setsession.mdxindex c0d03e8a82f..7464c7bf1f6 100644--- a/apps/reference/_supabase_js/generated/auth-setauth.mdx+++ b/apps/reference/_supabase_js/generated/auth-setsession.mdx@@ -1,15 +1,13 @@----id: auth-setauth-title: 'setAuth()'-slug: /auth-setauth-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+id: auth-setsession+title: 'setSession()'+slug: /auth-setsession+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Overrides the JWT on the current client. The JWT will then be sent in all subsequent network requests.-```jsfunction apiFunction(req, res) {// Assuming the access token was sent as a header "X-Supabase-Auth"@@ -31,7 +29,7 @@ function apiFunction(req, res) {<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">- access_token+ refresh_token</span><span className="method-list-item-label-badge required">required@@ -42,7 +40,7 @@ function apiFunction(req, res) {</h4><div class="method-list-item-description">-a jwt access token+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/auth-signin.mdx b/apps/reference/_supabase_js/generated/auth-signinwithoauth.mdxsimilarity index 58%rename from apps/reference/_supabase_js/generated/auth-signin.mdxrename to apps/reference/_supabase_js/generated/auth-signinwithoauth.mdxindex 1d4c5b197f4..e2e939771bd 100644--- a/apps/reference/_supabase_js/generated/auth-signin.mdx+++ b/apps/reference/_supabase_js/generated/auth-signinwithoauth.mdx@@ -1,15 +1,13 @@----id: auth-signin-title: 'signIn()'-slug: /auth-signin-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+id: auth-signinwithoauth+title: 'signInWithOAuth()'+slug: /auth-signinwithoauth+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Log in an existing user, or login via a third-party provider.-```jsconst { user, session, error } = await supabase.auth.signIn({email: '[email protected]',@@ -24,74 +22,13 @@ const { user, session, error } = await supabase.auth.signIn({<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">- __namedParameters- </span>- <span className="method-list-item-label-badge required">- required- </span>- <span className="method-list-item-validation">- <code>UserCredentials</code>- </span>- </h4>- <div class="method-list-item-description">--No description provided.-- </div>--</li>--<li className="method-list-item">- <h4 className="method-list-item-label">- <span className="method-list-item-label-name">- options+ credentials</span><span className="method-list-item-label-badge required">required</span><span className="method-list-item-validation">- <code>object</code>- </span>- </h4>- <div class="method-list-item-description">--No description provided.-- </div>--<ul className="method-list-group">- <h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>--<li className="method-list-item">- <h4 className="method-list-item-label">- <span className="method-list-item-label-name">- captchaToken- </span>- <span className="method-list-item-label-badge false">- optional- </span>- <span className="method-list-item-validation">- <code>string</code>- </span>- </h4>- <div class="method-list-item-description">--No description provided.-- </div>--</li>--<li className="method-list-item">- <h4 className="method-list-item-label">- <span className="method-list-item-label-name">- queryParams- </span>- <span className="method-list-item-label-badge false">- optional- </span>- <span className="method-list-item-validation">- <code>object</code>+ <code>SignInWithOAuthCredentials</code></span></h4><div class="method-list-item-description">@@ -102,70 +39,6 @@ No description provided.</li>-<li className="method-list-item">- <h4 className="method-list-item-label">- <span className="method-list-item-label-name">- redirectTo- </span>- <span className="method-list-item-label-badge false">- optional- </span>- <span className="method-list-item-validation">- <code>string</code>- </span>- </h4>- <div class="method-list-item-description">--No description provided.-- </div>--</li>--<li className="method-list-item">- <h4 className="method-list-item-label">- <span className="method-list-item-label-name">- scopes- </span>- <span className="method-list-item-label-badge false">- optional- </span>- <span className="method-list-item-validation">- <code>string</code>- </span>- </h4>- <div class="method-list-item-description">--No description provided.-- </div>--</li>--<li className="method-list-item">- <h4 className="method-list-item-label">- <span className="method-list-item-label-name">- shouldCreateUser- </span>- <span className="method-list-item-label-badge false">- optional- </span>- <span className="method-list-item-validation">- <code>boolean</code>- </span>- </h4>- <div class="method-list-item-description">--No description provided.-- </div>--</li>--</ul>--</li>-</ul>## Notesdiff --git a/apps/reference/_supabase_js/generated/auth-signinwithotp.mdx b/apps/reference/_supabase_js/generated/auth-signinwithotp.mdxnew file mode 100644index 00000000000..4420ff81db8--- /dev/null+++ b/apps/reference/_supabase_js/generated/auth-signinwithotp.mdx@@ -0,0 +1,148 @@+---+id: auth-signinwithotp+title: 'signInWithOtp()'+slug: /auth-signinwithotp+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml+---++import Tabs from '@theme/Tabs'+import TabItem from '@theme/TabItem'++```js+const { user, session, error } = await supabase.auth.signIn({+ email: '[email protected]',+ password: 'example-password',+})+```++## Parameters++<ul className="method-list-group">++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ credentials+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>SignInWithPasswordlessCredentials</code>+ </span>+ </h4>+ <div class="method-list-item-description">++No description provided.++ </div>++</li>++</ul>++## Notes++- A user can sign up either via email or OAuth.+- If you provide `email` without a `password`, the user will be sent a magic link.+- The magic link's destination URL is determined by the SITE_URL config variable. To change this, you can go to Authentication -> Settings on [app.supabase.com](https://app.supabase.com)+- Specifying a `provider` will open the browser to the relevant login page.++## Examples++### Sign in with email.++```js+const { user, session, error } = await supabase.auth.signIn({+ email: '[email protected]',+ password: 'example-password',+})+```++### Sign in with magic link.++If no password is provided, the user will be sent a "magic link" to their email address, which they can click to open your application with a valid session. By default, a given user can only request a Magic Link once every 60 seconds.++```js+const { user, session, error } = await supabase.auth.signIn({+ email: '[email protected]',+})+```++### Sign in using third-party providers.++Supabase supports many different [third-party providers](https://supabase.com/docs/guides/auth#providers).++```js+const { user, session, error } = await supabase.auth.signIn({+ // provider can be 'github', 'google', 'gitlab', and more+ provider: 'github',+})+```++### Sign in with Phone.++Supabase supports Phone Auth.++```js+const { user, session, error } = await supabase.auth.signIn({+ phone: '+13334445555',+ password: 'some-password',+})+```++### Sign in with redirect.++Note that the `redirectTo` param is only relevant for OAuth logins, where the login flow is managed by+the Auth server. If you are using email/phone logins you should set up your own redirects (within the email/sms template).++Sometimes you want to control where the user is redirected to after they are logged in. Supabase supports this for+any URL path on your website (the URL must either be on the same domain as your Site URL [see Auth>Settings in dashboard], or must match one of the Additional Redirect URLs [also in Auth>Settings]).++```js+const { user, session, error } = await supabase.auth.signIn(+ {+ provider: 'github',+ },+ {+ redirectTo: 'https://example.com/welcome',+ }+)+```++### Sign in with scopes.++If you need additional data from an OAuth provider, you can include a space-separated list of scopes in your request to get back an OAuth provider token.+You may also need to specify the scopes in the provider's OAuth app settings, depending on the provider.++```js+const { user, session, error } = await supabase.auth.signIn(+ {+ provider: 'github',+ },+ {+ scopes: 'repo gist notifications',+ }+)+const oAuthToken = session.provider_token // use to access provider API+```++### Sign in using a refresh token (e.g. in React Native).++If you are completing a sign up or login in a React Native app you can pass the refresh token obtained from the provider to obtain a session.++```js+// An example using Expo's `AuthSession`+const redirectUri = AuthSession.makeRedirectUri({ useProxy: false })+const provider = 'google'++AuthSession.startAsync({+ authUrl: `https://MYSUPABASEAPP.supabase.co/auth/v1/authorize?provider=${provider}&redirect_to=${redirectUri}`,+ returnUrl: redirectUri,+}).then(async (response: any) => {+ if (!response) return+ const { user, session, error } = await supabase.auth.signIn({+ refreshToken: response.params?.refresh_token,+ })+})+```diff --git a/apps/reference/_supabase_js/generated/auth-signinwithpassword.mdx b/apps/reference/_supabase_js/generated/auth-signinwithpassword.mdxnew file mode 100644index 00000000000..bc062d14317--- /dev/null+++ b/apps/reference/_supabase_js/generated/auth-signinwithpassword.mdx@@ -0,0 +1,148 @@+---+id: auth-signinwithpassword+title: 'signInWithPassword()'+slug: /auth-signinwithpassword+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml+---++import Tabs from '@theme/Tabs'+import TabItem from '@theme/TabItem'++```js+const { user, session, error } = await supabase.auth.signIn({+ email: '[email protected]',+ password: 'example-password',+})+```++## Parameters++<ul className="method-list-group">++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ credentials+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>SignInWithPasswordCredentials</code>+ </span>+ </h4>+ <div class="method-list-item-description">++No description provided.++ </div>++</li>++</ul>++## Notes++- A user can sign up either via email or OAuth.+- If you provide `email` without a `password`, the user will be sent a magic link.+- The magic link's destination URL is determined by the SITE_URL config variable. To change this, you can go to Authentication -> Settings on [app.supabase.com](https://app.supabase.com)+- Specifying a `provider` will open the browser to the relevant login page.++## Examples++### Sign in with email.++```js+const { user, session, error } = await supabase.auth.signIn({+ email: '[email protected]',+ password: 'example-password',+})+```++### Sign in with magic link.++If no password is provided, the user will be sent a "magic link" to their email address, which they can click to open your application with a valid session. By default, a given user can only request a Magic Link once every 60 seconds.++```js+const { user, session, error } = await supabase.auth.signIn({+ email: '[email protected]',+})+```++### Sign in using third-party providers.++Supabase supports many different [third-party providers](https://supabase.com/docs/guides/auth#providers).++```js+const { user, session, error } = await supabase.auth.signIn({+ // provider can be 'github', 'google', 'gitlab', and more+ provider: 'github',+})+```++### Sign in with Phone.++Supabase supports Phone Auth.++```js+const { user, session, error } = await supabase.auth.signIn({+ phone: '+13334445555',+ password: 'some-password',+})+```++### Sign in with redirect.++Note that the `redirectTo` param is only relevant for OAuth logins, where the login flow is managed by+the Auth server. If you are using email/phone logins you should set up your own redirects (within the email/sms template).++Sometimes you want to control where the user is redirected to after they are logged in. Supabase supports this for+any URL path on your website (the URL must either be on the same domain as your Site URL [see Auth>Settings in dashboard], or must match one of the Additional Redirect URLs [also in Auth>Settings]).++```js+const { user, session, error } = await supabase.auth.signIn(+ {+ provider: 'github',+ },+ {+ redirectTo: 'https://example.com/welcome',+ }+)+```++### Sign in with scopes.++If you need additional data from an OAuth provider, you can include a space-separated list of scopes in your request to get back an OAuth provider token.+You may also need to specify the scopes in the provider's OAuth app settings, depending on the provider.++```js+const { user, session, error } = await supabase.auth.signIn(+ {+ provider: 'github',+ },+ {+ scopes: 'repo gist notifications',+ }+)+const oAuthToken = session.provider_token // use to access provider API+```++### Sign in using a refresh token (e.g. in React Native).++If you are completing a sign up or login in a React Native app you can pass the refresh token obtained from the provider to obtain a session.++```js+// An example using Expo's `AuthSession`+const redirectUri = AuthSession.makeRedirectUri({ useProxy: false })+const provider = 'google'++AuthSession.startAsync({+ authUrl: `https://MYSUPABASEAPP.supabase.co/auth/v1/authorize?provider=${provider}&redirect_to=${redirectUri}`,+ returnUrl: redirectUri,+}).then(async (response: any) => {+ if (!response) return+ const { user, session, error } = await supabase.auth.signIn({+ refreshToken: response.params?.refresh_token,+ })+})+```diff --git a/apps/reference/_supabase_js/generated/auth-signout.mdx b/apps/reference/_supabase_js/generated/auth-signout.mdxindex ffe27f139f2..301b0297fae 100644--- a/apps/reference/_supabase_js/generated/auth-signout.mdx+++ b/apps/reference/_supabase_js/generated/auth-signout.mdx@@ -2,17 +2,12 @@id: auth-signouttitle: 'signOut()'slug: /auth-signout-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Inside a browser context, `signOut()` will remove the logged in user from the browser session-and log them out - removing all items from localstorage and then trigger a "SIGNED_OUT" event.--For server-side management, you can revoke all refresh tokens for a user by passing a user's JWT through to `auth.api.signOut(JWT: string)`. There is no way to revoke a user's session JWT before it automatically expires-```jsconst { error } = await supabase.auth.signOut()```diff --git a/apps/reference/_supabase_js/generated/auth-signup.mdx b/apps/reference/_supabase_js/generated/auth-signup.mdxindex f587ddc1b63..a9b2a9731e0 100644--- a/apps/reference/_supabase_js/generated/auth-signup.mdx+++ b/apps/reference/_supabase_js/generated/auth-signup.mdx@@ -2,14 +2,12 @@id: auth-signuptitle: 'signUp()'slug: /auth-signup-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Creates a new user.-```jsconst { user, session, error } = await supabase.auth.signUp({email: '[email protected]',diff --git a/apps/reference/_supabase_js/generated/auth-update.mdx b/apps/reference/_supabase_js/generated/auth-update.mdxindex 4ceb5f7e6e9..c4724e5ff52 100644--- a/apps/reference/_supabase_js/generated/auth-update.mdx+++ b/apps/reference/_supabase_js/generated/auth-update.mdx@@ -2,14 +2,12 @@id: auth-updatetitle: 'update()'slug: /auth-update-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Updates user data, if there is a logged in user.-```jsconst { user, error } = await supabase.auth.update({ email: '[email protected]' })```diff --git a/apps/reference/_supabase_js/generated/containedby.mdx b/apps/reference/_supabase_js/generated/containedby.mdxindex b58a3271632..aa8f5da0d93 100644--- a/apps/reference/_supabase_js/generated/containedby.mdx+++ b/apps/reference/_supabase_js/generated/containedby.mdx@@ -2,12 +2,15 @@id: containedbytitle: '.containedBy()'slug: /containedby-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'+Finds all rows whose json, array, or range value on the stated `column` is+contained by the specified `value`.+```jsconst { data, error } = await supabase.from('countries')@@ -15,6 +18,52 @@ const { data, error } = await supabase.containedBy('main_exports', ['cars', 'food', 'machine'])```+## Parameters++<ul className="method-list-group">++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ column+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>ColumnName</code>+ </span>+ </h4>+ <div class="method-list-item-description">++The column to filter on.++ </div>++</li>++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ value+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>string</code> | <code>Record</code> | <code>array</code>+ </span>+ </h4>+ <div class="method-list-item-description">++The value to filter with.++ </div>++</li>++</ul>+## Notes- `.containedBy()` can work on array columns or range columns.diff --git a/apps/reference/_supabase_js/generated/contains.mdx b/apps/reference/_supabase_js/generated/contains.mdxindex 1203d6ad3ed..05ffa13e34d 100644--- a/apps/reference/_supabase_js/generated/contains.mdx+++ b/apps/reference/_supabase_js/generated/contains.mdx@@ -2,12 +2,15 @@id: containstitle: '.contains()'slug: /contains-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'+Finds all rows whose json, array, or range value on the stated `column`+contains the values specified in `value`.+```jsconst { data, error } = await supabase.from('countries')@@ -15,6 +18,52 @@ const { data, error } = await supabase.contains('main_exports', ['oil'])```+## Parameters++<ul className="method-list-group">++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ column+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>ColumnName</code>+ </span>+ </h4>+ <div class="method-list-item-description">++The column to filter on.++ </div>++</li>++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ value+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>string</code> | <code>Record</code> | <code>array</code>+ </span>+ </h4>+ <div class="method-list-item-description">++The value to filter with.++ </div>++</li>++</ul>+## Notes- `.contains()` can work on array columns or range columns.diff --git a/apps/reference/_supabase_js/generated/delete.mdx b/apps/reference/_supabase_js/generated/delete.mdxindex c63b41b8e30..cedfd86b77f 100644--- a/apps/reference/_supabase_js/generated/delete.mdx+++ b/apps/reference/_supabase_js/generated/delete.mdx@@ -2,7 +2,7 @@id: deletetitle: 'Delete data: delete()'slug: /delete-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'@@ -24,7 +24,7 @@ const { data, error } = await supabase<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">- __namedParameters+ count</span><span className="method-list-item-label-badge required">required@@ -35,48 +35,28 @@ const { data, error } = await supabase</h4><div class="method-list-item-description">-No description provided.+Count algorithm to use to count rows in a table.</div><ul className="method-list-group"><h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>-<li className="method-list-item">- <h4 className="method-list-item-label">- <span className="method-list-item-label-name">- returning- </span>- <span className="method-list-item-label-badge required">- required- </span>- <span className="method-list-item-validation">- <code>minimal</code> | <code>representation</code>- </span>- </h4>- <div class="method-list-item-description">--If `true`, return the deleted row(s) in the response.-- </div>--</li>-<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">count</span>- <span className="method-list-item-label-badge required">- required+ <span className="method-list-item-label-badge false">+ optional</span><span className="method-list-item-validation">- <code>null</code> | <code>exact</code> | <code>planned</code> | <code>estimated</code>+ <code>exact</code> | <code>planned</code> | <code>estimated</code></span></h4><div class="method-list-item-description">-Count algorithm to use to count rows in a table.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/eq.mdx b/apps/reference/_supabase_js/generated/eq.mdxindex 44e46e82900..c073e0e8191 100644--- a/apps/reference/_supabase_js/generated/eq.mdx+++ b/apps/reference/_supabase_js/generated/eq.mdx@@ -2,7 +2,7 @@id: eqtitle: '.eq()'slug: /eq-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'@@ -31,7 +31,7 @@ const { data, error } = await supabaserequired</span><span className="method-list-item-validation">- <code>object</code>+ <code>ColumnName</code></span></h4><div class="method-list-item-description">diff --git a/apps/reference/_supabase_js/generated/filter.mdx b/apps/reference/_supabase_js/generated/filter.mdxindex 0dc9d9bfaaf..738ef78f541 100644--- a/apps/reference/_supabase_js/generated/filter.mdx+++ b/apps/reference/_supabase_js/generated/filter.mdx@@ -2,7 +2,7 @@id: filtertitle: '.filter()'slug: /filter-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'@@ -30,7 +30,7 @@ const { data, error } = await supabaserequired</span><span className="method-list-item-validation">- <code>object</code>+ <code>ColumnName</code></span></h4><div class="method-list-item-description">@@ -50,7 +50,7 @@ The column to filter on.required</span><span className="method-list-item-validation">- <code>FilterOperator</code>+ <code>FilterOperator</code> | <code>not.eq</code> | <code>not.neq</code> | <code>not.gt</code> | <code>not.gte</code> | <code>not.lt</code> | <code>not.lte</code> | <code>not.like</code> | <code>not.ilike</code> | <code>not.is</code> | <code>not.in</code> | <code>not.cs</code> | <code>not.cd</code> | <code>not.sl</code> | <code>not.sr</code> | <code>not.nxl</code> | <code>not.nxr</code> | <code>not.adj</code> | <code>not.ov</code> | <code>not.fts</code> | <code>not.plfts</code> | <code>not.phfts</code> | <code>not.wfts</code></span></h4><div class="method-list-item-description">@@ -70,7 +70,7 @@ The operator to filter with.required</span><span className="method-list-item-validation">- <code>any</code>+ <code>unknown</code></span></h4><div class="method-list-item-description">diff --git a/apps/reference/_supabase_js/generated/getchannels.mdx b/apps/reference/_supabase_js/generated/getchannels.mdxnew file mode 100644index 00000000000..8990158ff6a--- /dev/null+++ b/apps/reference/_supabase_js/generated/getchannels.mdx@@ -0,0 +1,23 @@+---+id: getchannels+title: 'getChannels()'+slug: /getchannels+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml+---++import Tabs from '@theme/Tabs'+import TabItem from '@theme/TabItem'++Returns an array of all your channels.++```js+const subscriptions = supabase.getChannels()+```++## Examples++### Get all subscriptions++```js+const subscriptions = supabase.getChannels()+```diff --git a/apps/reference/_supabase_js/generated/getsubscriptions.mdx b/apps/reference/_supabase_js/generated/getsubscriptions.mdxdeleted file mode 100644index 77b312b53a8..00000000000--- a/apps/reference/_supabase_js/generated/getsubscriptions.mdx+++ /dev/null@@ -1,23 +0,0 @@-----id: getsubscriptions-title: 'getSubscriptions()'-slug: /getsubscriptions-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml------import Tabs from '@theme/Tabs'-import TabItem from '@theme/TabItem'--Returns an array of all your subscriptions.--```js-const subscriptions = supabase.getSubscriptions()-```--## Examples--### Get all subscriptions--```js-const subscriptions = supabase.getSubscriptions()-```diff --git a/apps/reference/_supabase_js/generated/gt.mdx b/apps/reference/_supabase_js/generated/gt.mdxindex 19f5dffd62c..317fd9804df 100644--- a/apps/reference/_supabase_js/generated/gt.mdx+++ b/apps/reference/_supabase_js/generated/gt.mdx@@ -2,7 +2,7 @@id: gttitle: '.gt()'slug: /gt-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'@@ -31,7 +31,7 @@ const { data, error } = await supabaserequired</span><span className="method-list-item-validation">- <code>object</code>+ <code>ColumnName</code></span></h4><div class="method-list-item-description">diff --git a/apps/reference/_supabase_js/generated/gte.mdx b/apps/reference/_supabase_js/generated/gte.mdxindex 0b130750794..6a6e5e513e6 100644--- a/apps/reference/_supabase_js/generated/gte.mdx+++ b/apps/reference/_supabase_js/generated/gte.mdx@@ -2,7 +2,7 @@id: gtetitle: '.gte()'slug: /gte-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'@@ -31,7 +31,7 @@ const { data, error } = await supabaserequired</span><span className="method-list-item-validation">- <code>object</code>+ <code>ColumnName</code></span></h4><div class="method-list-item-description">diff --git a/apps/reference/_supabase_js/generated/ilike.mdx b/apps/reference/_supabase_js/generated/ilike.mdxindex e03a5313ab6..a3076b0b0ca 100644--- a/apps/reference/_supabase_js/generated/ilike.mdx+++ b/apps/reference/_supabase_js/generated/ilike.mdx@@ -2,7 +2,7 @@id: iliketitle: '.ilike()'slug: /ilike-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'@@ -31,7 +31,7 @@ const { data, error } = await supabaserequired</span><span className="method-list-item-validation">- <code>object</code>+ <code>ColumnName</code></span></h4><div class="method-list-item-description">diff --git a/apps/reference/_supabase_js/generated/in.mdx b/apps/reference/_supabase_js/generated/in.mdxindex 382c102d728..155b6f2cb2d 100644--- a/apps/reference/_supabase_js/generated/in.mdx+++ b/apps/reference/_supabase_js/generated/in.mdx@@ -2,7 +2,7 @@id: intitle: '.in()'slug: /in-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'@@ -31,7 +31,7 @@ const { data, error } = await supabaserequired</span><span className="method-list-item-validation">- <code>object</code>+ <code>ColumnName</code></span></h4><div class="method-list-item-description">diff --git a/apps/reference/_supabase_js/generated/index.mdx b/apps/reference/_supabase_js/generated/index.mdxindex a25a52f0326..22955c42880 100644--- a/apps/reference/_supabase_js/generated/index.mdx+++ b/apps/reference/_supabase_js/generated/index.mdx@@ -1,8 +1,8 @@---id: indextitle: 'Supabase Client'-slug: supabase-client-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+slug: /supabase-client+custom_edit_url: ../../spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'diff --git a/apps/reference/_supabase_js/generated/insert.mdx b/apps/reference/_supabase_js/generated/insert.mdxindex 588bdc094e0..b5904f9478a 100644--- a/apps/reference/_supabase_js/generated/insert.mdx+++ b/apps/reference/_supabase_js/generated/insert.mdx@@ -2,7 +2,7 @@id: inserttitle: 'Create data: insert()'slug: /insert-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'@@ -29,7 +29,7 @@ const { data, error } = await supabaserequired</span><span className="method-list-item-validation">- <code>Partial</code> | <code>array</code>+ <code>Row</code> | <code>array</code></span></h4><div class="method-list-item-description">@@ -43,13 +43,34 @@ The values to insert.<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">- options+ count+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>object</code>+ </span>+ </h4>+ <div class="method-list-item-description">++Count algorithm to use to count rows in a table.++ </div>++<ul className="method-list-group">+ <h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ count</span><span className="method-list-item-label-badge false">optional</span><span className="method-list-item-validation">- <code>undefined</code> | <code>reflection</code>+ <code>exact</code> | <code>planned</code> | <code>estimated</code></span></h4><div class="method-list-item-description">@@ -62,6 +83,10 @@ No description provided.</ul>+</li>++</ul>+## Notes- By default, every time you run `insert()`, the client library will make a `select` to return the full record.diff --git a/apps/reference/_supabase_js/generated/invoke.mdx b/apps/reference/_supabase_js/generated/invoke.mdxindex cfd24c6afcb..d43cb52a83e 100644--- a/apps/reference/_supabase_js/generated/invoke.mdx+++ b/apps/reference/_supabase_js/generated/invoke.mdx@@ -2,7 +2,7 @@id: invoketitle: 'invoke()'slug: /invoke-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'diff --git a/apps/reference/_supabase_js/generated/is.mdx b/apps/reference/_supabase_js/generated/is.mdxindex dbb0c8c72a7..f1228f0c3d8 100644--- a/apps/reference/_supabase_js/generated/is.mdx+++ b/apps/reference/_supabase_js/generated/is.mdx@@ -2,7 +2,7 @@id: istitle: '.is()'slug: /is-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'@@ -31,7 +31,7 @@ const { data, error } = await supabaserequired</span><span className="method-list-item-validation">- <code>object</code>+ <code>ColumnName</code></span></h4><div class="method-list-item-description">@@ -51,7 +51,7 @@ The column to filter on.required</span><span className="method-list-item-validation">- <code>boolean</code> | <code>null</code>+ <code>object</code></span></h4><div class="method-list-item-description">diff --git a/apps/reference/_supabase_js/generated/like.mdx b/apps/reference/_supabase_js/generated/like.mdxindex 8a8ac83bebc..213c4496032 100644--- a/apps/reference/_supabase_js/generated/like.mdx+++ b/apps/reference/_supabase_js/generated/like.mdx@@ -2,7 +2,7 @@id: liketitle: '.like()'slug: /like-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'@@ -31,7 +31,7 @@ const { data, error } = await supabaserequired</span><span className="method-list-item-validation">- <code>object</code>+ <code>ColumnName</code></span></h4><div class="method-list-item-description">diff --git a/apps/reference/_supabase_js/generated/limit.mdx b/apps/reference/_supabase_js/generated/limit.mdxindex 9dc354106db..904fb1716b8 100644--- a/apps/reference/_supabase_js/generated/limit.mdx+++ b/apps/reference/_supabase_js/generated/limit.mdx@@ -2,7 +2,7 @@id: limittitle: 'limit()'slug: /limit-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'@@ -44,7 +44,7 @@ The maximum no. of rows to limit to.<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">- __namedParameters+ foreignTable</span><span className="method-list-item-label-badge required">required@@ -55,7 +55,7 @@ The maximum no. of rows to limit to.</h4><div class="method-list-item-description">-No description provided.+The foreign table to use (for foreign columns).</div>@@ -67,16 +67,16 @@ No description provided.<span className="method-list-item-label-name">foreignTable</span>- <span className="method-list-item-label-badge required">- required+ <span className="method-list-item-label-badge false">+ optional</span><span className="method-list-item-validation">- <code>undefined</code> | <code>string</code>+ <code>string</code></span></h4><div class="method-list-item-description">-The foreign table to use (for foreign columns).+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/lt.mdx b/apps/reference/_supabase_js/generated/lt.mdxindex c0411060feb..119d5d3da9f 100644--- a/apps/reference/_supabase_js/generated/lt.mdx+++ b/apps/reference/_supabase_js/generated/lt.mdx@@ -2,7 +2,7 @@id: lttitle: '.lt()'slug: /lt-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'@@ -31,7 +31,7 @@ const { data, error } = await supabaserequired</span><span className="method-list-item-validation">- <code>object</code>+ <code>ColumnName</code></span></h4><div class="method-list-item-description">diff --git a/apps/reference/_supabase_js/generated/lte.mdx b/apps/reference/_supabase_js/generated/lte.mdxindex 71fd438cbdf..10caa460d38 100644--- a/apps/reference/_supabase_js/generated/lte.mdx+++ b/apps/reference/_supabase_js/generated/lte.mdx@@ -2,7 +2,7 @@id: ltetitle: '.lte()'slug: /lte-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'@@ -31,7 +31,7 @@ const { data, error } = await supabaserequired</span><span className="method-list-item-validation">- <code>object</code>+ <code>ColumnName</code></span></h4><div class="method-list-item-description">diff --git a/apps/reference/_supabase_js/generated/match.mdx b/apps/reference/_supabase_js/generated/match.mdxindex c2ba9363b02..546f42dee8a 100644--- a/apps/reference/_supabase_js/generated/match.mdx+++ b/apps/reference/_supabase_js/generated/match.mdx@@ -2,7 +2,7 @@id: matchtitle: '.match()'slug: /match-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'diff --git a/apps/reference/_supabase_js/generated/maybesingle.mdx b/apps/reference/_supabase_js/generated/maybesingle.mdxindex 8d354b462ed..7b1d7dd0d06 100644--- a/apps/reference/_supabase_js/generated/maybesingle.mdx+++ b/apps/reference/_supabase_js/generated/maybesingle.mdx@@ -2,7 +2,7 @@id: maybesingletitle: 'maybeSingle()'slug: /maybesingle-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'diff --git a/apps/reference/_supabase_js/generated/neq.mdx b/apps/reference/_supabase_js/generated/neq.mdxindex cdedceafcd1..05d70c11258 100644--- a/apps/reference/_supabase_js/generated/neq.mdx+++ b/apps/reference/_supabase_js/generated/neq.mdx@@ -2,7 +2,7 @@id: neqtitle: '.neq()'slug: /neq-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'@@ -31,7 +31,7 @@ const { data, error } = await supabaserequired</span><span className="method-list-item-validation">- <code>object</code>+ <code>ColumnName</code></span></h4><div class="method-list-item-description">diff --git a/apps/reference/_supabase_js/generated/not.mdx b/apps/reference/_supabase_js/generated/not.mdxindex e0c55713b76..4fbd74c182f 100644--- a/apps/reference/_supabase_js/generated/not.mdx+++ b/apps/reference/_supabase_js/generated/not.mdx@@ -2,7 +2,7 @@id: nottitle: '.not()'slug: /not-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'@@ -30,7 +30,7 @@ const { data, error } = await supabaserequired</span><span className="method-list-item-validation">- <code>object</code>+ <code>ColumnName</code></span></h4><div class="method-list-item-description">@@ -70,7 +70,7 @@ The operator to filter with.required</span><span className="method-list-item-validation">- <code>any</code>+ <code>object</code></span></h4><div class="method-list-item-description">diff --git a/apps/reference/_supabase_js/generated/or.mdx b/apps/reference/_supabase_js/generated/or.mdxindex 3e78274a2da..f448c047085 100644--- a/apps/reference/_supabase_js/generated/or.mdx+++ b/apps/reference/_supabase_js/generated/or.mdx@@ -2,7 +2,7 @@id: ortitle: '.or()'slug: /or-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'@@ -44,7 +44,7 @@ The filters to use, separated by commas.<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">- __namedParameters+ foreignTable</span><span className="method-list-item-label-badge required">required@@ -55,7 +55,7 @@ The filters to use, separated by commas.</h4><div class="method-list-item-description">-No description provided.+The foreign table to use (if `column` is a foreign column).</div>@@ -67,16 +67,16 @@ No description provided.<span className="method-list-item-label-name">foreignTable</span>- <span className="method-list-item-label-badge required">- required+ <span className="method-list-item-label-badge false">+ optional</span><span className="method-list-item-validation">- <code>undefined</code> | <code>string</code>+ <code>string</code></span></h4><div class="method-list-item-description">-The foreign table to use (if `column` is a foreign column).+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/order.mdx b/apps/reference/_supabase_js/generated/order.mdxindex afd5e2a2d16..e5d0f3822cd 100644--- a/apps/reference/_supabase_js/generated/order.mdx+++ b/apps/reference/_supabase_js/generated/order.mdx@@ -2,7 +2,7 @@id: ordertitle: 'order()'slug: /order-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'@@ -30,7 +30,7 @@ const { data, error } = await supabaserequired</span><span className="method-list-item-validation">- <code>object</code>+ <code>ColumnName</code></span></h4><div class="method-list-item-description">@@ -44,10 +44,10 @@ The column to order on.<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">- __namedParameters+ options</span>- <span className="method-list-item-label-badge required">- required+ <span className="method-list-item-label-badge false">+ optional</span><span className="method-list-item-validation"><code>object</code>@@ -65,10 +65,10 @@ No description provided.<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">- nullsFirst+ ascending</span>- <span className="method-list-item-label-badge required">- required+ <span className="method-list-item-label-badge false">+ optional</span><span className="method-list-item-validation"><code>boolean</code>@@ -76,7 +76,7 @@ No description provided.</h4><div class="method-list-item-description">-If `true`, `null`s appear first.+No description provided.</div>@@ -87,16 +87,16 @@ If `true`, `null`s appear first.<span className="method-list-item-label-name">foreignTable</span>- <span className="method-list-item-label-badge required">- required+ <span className="method-list-item-label-badge false">+ optional</span><span className="method-list-item-validation">- <code>undefined</code> | <code>string</code>+ <code>undefined</code></span></h4><div class="method-list-item-description">-The foreign table to use (if `column` is a foreign column).+No description provided.</div>@@ -105,10 +105,10 @@ The foreign table to use (if `column` is a foreign column).<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">- ascending+ nullsFirst</span>- <span className="method-list-item-label-badge required">- required+ <span className="method-list-item-label-badge false">+ optional</span><span className="method-list-item-validation"><code>boolean</code>@@ -116,7 +116,7 @@ The foreign table to use (if `column` is a foreign column).</h4><div class="method-list-item-description">-If `true`, the result will be in ascending order.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/overlaps.mdx b/apps/reference/_supabase_js/generated/overlaps.mdxindex b3f0f877f79..5f646551aee 100644--- a/apps/reference/_supabase_js/generated/overlaps.mdx+++ b/apps/reference/_supabase_js/generated/overlaps.mdx@@ -2,12 +2,15 @@id: overlapstitle: '.overlaps()'slug: /overlaps-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'+Finds all rows whose array or range value on the stated `column` overlaps+(has a value in common) with the specified `value`.+```jsconst { data, error } = await supabase.from('countries')@@ -15,6 +18,52 @@ const { data, error } = await supabase.overlaps('main_exports', ['computers', 'minerals'])```+## Parameters++<ul className="method-list-group">++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ column+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>ColumnName</code>+ </span>+ </h4>+ <div class="method-list-item-description">++The column to filter on.++ </div>++</li>++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ value+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>string</code> | <code>array</code>+ </span>+ </h4>+ <div class="method-list-item-description">++The value to filter with.++ </div>++</li>++</ul>+## Notes- `.overlaps()` can work on array columns or range columns.diff --git a/apps/reference/_supabase_js/generated/range.mdx b/apps/reference/_supabase_js/generated/range.mdxindex 5f304eff4c8..ffa3c3d597c 100644--- a/apps/reference/_supabase_js/generated/range.mdx+++ b/apps/reference/_supabase_js/generated/range.mdx@@ -2,7 +2,7 @@id: rangetitle: 'range()'slug: /range-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'@@ -64,7 +64,7 @@ The last index to which to limit the result, inclusive.<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">- __namedParameters+ foreignTable</span><span className="method-list-item-label-badge required">required@@ -75,7 +75,7 @@ The last index to which to limit the result, inclusive.</h4><div class="method-list-item-description">-No description provided.+The foreign table to use (for foreign columns).</div>@@ -87,16 +87,16 @@ No description provided.<span className="method-list-item-label-name">foreignTable</span>- <span className="method-list-item-label-badge required">- required+ <span className="method-list-item-label-badge false">+ optional</span><span className="method-list-item-validation">- <code>undefined</code> | <code>string</code>+ <code>string</code></span></h4><div class="method-list-item-description">-The foreign table to use (for foreign columns).+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/rangeadjacent.mdx b/apps/reference/_supabase_js/generated/rangeadjacent.mdxindex 49aa41beb45..1affe88d70f 100644--- a/apps/reference/_supabase_js/generated/rangeadjacent.mdx+++ b/apps/reference/_supabase_js/generated/rangeadjacent.mdx@@ -2,12 +2,15 @@id: rangeadjacenttitle: '.rangeAdjacent()'slug: /rangeadjacent-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'+Finds all rows whose range value on the stated `column` is adjacent to+the specified `range`.+```jsconst { data, error } = await supabase.from('countries')@@ -15,6 +18,52 @@ const { data, error } = await supabase.rangeAdjacent('population_range_millions', '[70, 185]')```+## Parameters++<ul className="method-list-group">++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ column+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>ColumnName</code>+ </span>+ </h4>+ <div class="method-list-item-description">++The column to filter on.++ </div>++</li>++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ range+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>string</code>+ </span>+ </h4>+ <div class="method-list-item-description">++The range to filter with.++ </div>++</li>++</ul>+## Examples### With `select()`diff --git a/apps/reference/_supabase_js/generated/rangegt.mdx b/apps/reference/_supabase_js/generated/rangegt.mdxindex 20f7f13cc2a..15c346bc81f 100644--- a/apps/reference/_supabase_js/generated/rangegt.mdx+++ b/apps/reference/_supabase_js/generated/rangegt.mdx@@ -2,12 +2,15 @@id: rangegttitle: '.rangeGt()'slug: /rangegt-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'+Finds all rows whose range value on the stated `column` is strictly to+the right of the specified `range`.+```jsconst { data, error } = await supabase.from('countries')@@ -15,6 +18,52 @@ const { data, error } = await supabase.rangeGt('population_range_millions', '[150, 250]')```+## Parameters++<ul className="method-list-group">++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ column+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>ColumnName</code>+ </span>+ </h4>+ <div class="method-list-item-description">++The column to filter on.++ </div>++</li>++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ range+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>string</code>+ </span>+ </h4>+ <div class="method-list-item-description">++The range to filter with.++ </div>++</li>++</ul>+## Examples### With `select()`diff --git a/apps/reference/_supabase_js/generated/rangegte.mdx b/apps/reference/_supabase_js/generated/rangegte.mdxindex b31f8068d73..5dd689bff4d 100644--- a/apps/reference/_supabase_js/generated/rangegte.mdx+++ b/apps/reference/_supabase_js/generated/rangegte.mdx@@ -2,12 +2,15 @@id: rangegtetitle: '.rangeGte()'slug: /rangegte-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'+Finds all rows whose range value on the stated `column` does not extend+to the left of the specified `range`.+```jsconst { data, error } = await supabase.from('countries')@@ -15,6 +18,52 @@ const { data, error } = await supabase.rangeGte('population_range_millions', '[150, 250]')```+## Parameters++<ul className="method-list-group">++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ column+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>ColumnName</code>+ </span>+ </h4>+ <div class="method-list-item-description">++The column to filter on.++ </div>++</li>++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ range+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>string</code>+ </span>+ </h4>+ <div class="method-list-item-description">++The range to filter with.++ </div>++</li>++</ul>+## Examples### With `select()`diff --git a/apps/reference/_supabase_js/generated/rangelt.mdx b/apps/reference/_supabase_js/generated/rangelt.mdxindex 5c28fb1b8a9..5252510dcf8 100644--- a/apps/reference/_supabase_js/generated/rangelt.mdx+++ b/apps/reference/_supabase_js/generated/rangelt.mdx@@ -2,12 +2,15 @@id: rangelttitle: '.rangeLt()'slug: /rangelt-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'+Finds all rows whose range value on the stated `column` is strictly to the+left of the specified `range`.+```jsconst { data, error } = await supabase.from('countries')@@ -15,6 +18,52 @@ const { data, error } = await supabase.rangeLt('population_range_millions', '[150, 250]')```+## Parameters++<ul className="method-list-group">++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ column+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>ColumnName</code>+ </span>+ </h4>+ <div class="method-list-item-description">++The column to filter on.++ </div>++</li>++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ range+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>string</code>+ </span>+ </h4>+ <div class="method-list-item-description">++The range to filter with.++ </div>++</li>++</ul>+## Examples### With `select()`diff --git a/apps/reference/_supabase_js/generated/rangelte.mdx b/apps/reference/_supabase_js/generated/rangelte.mdxindex 1884658f482..495037f6a6f 100644--- a/apps/reference/_supabase_js/generated/rangelte.mdx+++ b/apps/reference/_supabase_js/generated/rangelte.mdx@@ -2,12 +2,15 @@id: rangeltetitle: '.rangeLte()'slug: /rangelte-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'+Finds all rows whose range value on the stated `column` does not extend+to the right of the specified `range`.+```jsconst { data, error } = await supabase.from('countries')@@ -15,6 +18,52 @@ const { data, error } = await supabase.rangeLte('population_range_millions', '[150, 250]')```+## Parameters++<ul className="method-list-group">++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ column+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>ColumnName</code>+ </span>+ </h4>+ <div class="method-list-item-description">++The column to filter on.++ </div>++</li>++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ range+ </span>+ <span className="method-list-item-label-badge required">+ required+ </span>+ <span className="method-list-item-validation">+ <code>string</code>+ </span>+ </h4>+ <div class="method-list-item-description">++The range to filter with.++ </div>++</li>++</ul>+## Examples### With `select()`diff --git a/apps/reference/_supabase_js/generated/removeallsubscriptions.mdx b/apps/reference/_supabase_js/generated/removeallchannels.mdxsimilarity index 62%rename from apps/reference/_supabase_js/generated/removeallsubscriptions.mdxrename to apps/reference/_supabase_js/generated/removeallchannels.mdxindex bd79ef872b9..ebdb1015b23 100644--- a/apps/reference/_supabase_js/generated/removeallsubscriptions.mdx+++ b/apps/reference/_supabase_js/generated/removeallchannels.mdx@@ -1,18 +1,18 @@----id: removeallsubscriptions-title: 'removeAllSubscriptions()'-slug: /removeallsubscriptions-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+id: removeallchannels+title: 'removeAllChannels()'+slug: /removeallchannels+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Closes and removes all subscriptions and returns a list of removed-subscriptions and their errors.+Closes and removes all channels and returns a list of removed+channels and their errors.```js-supabase.removeAllSubscriptions()+supabase.removeAllChannels()```## Notes@@ -24,5 +24,5 @@ supabase.removeAllSubscriptions()### Removes all subscriptions```js-supabase.removeAllSubscriptions()+supabase.removeAllChannels()```diff --git a/apps/reference/_supabase_js/generated/removesubscription.mdx b/apps/reference/_supabase_js/generated/removechannel.mdxsimilarity index 72%rename from apps/reference/_supabase_js/generated/removesubscription.mdxrename to apps/reference/_supabase_js/generated/removechannel.mdxindex 3c168797420..e2111a9c8e1 100644--- a/apps/reference/_supabase_js/generated/removesubscription.mdx+++ b/apps/reference/_supabase_js/generated/removechannel.mdx@@ -1,17 +1,17 @@----id: removesubscription-title: 'removeSubscription()'-slug: /removesubscription-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+id: removechannel+title: 'removeChannel()'+slug: /removechannel+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Closes and removes a subscription and returns the number of open subscriptions.+Closes and removes a channel and returns the number of open channels.```js-supabase.removeSubscription(mySubscription)+supabase.removeChannel(mySubscription)```## Parameters@@ -21,7 +21,7 @@ supabase.removeSubscription(mySubscription)<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">- subscription+ channel</span><span className="method-list-item-label-badge required">required@@ -32,7 +32,7 @@ supabase.removeSubscription(mySubscription)</h4><div class="method-list-item-description">-The subscription you want to close and remove.+The channel you want to close and remove.</div>@@ -49,5 +49,5 @@ The subscription you want to close and remove.### Remove a subscription```js-supabase.removeSubscription(mySubscription)+supabase.removeChannel(mySubscription)```diff --git a/apps/reference/_supabase_js/generated/rpc.mdx b/apps/reference/_supabase_js/generated/rpc.mdxindex 3e6982909e2..e5899dbbb22 100644--- a/apps/reference/_supabase_js/generated/rpc.mdx+++ b/apps/reference/_supabase_js/generated/rpc.mdx@@ -2,7 +2,7 @@id: rpctitle: 'Postgres functions: rpc()'slug: /rpc-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'@@ -36,7 +36,7 @@ const { data, error } = await supabase.rpc('hello_world')required</span><span className="method-list-item-validation">- <code>string</code>+ <code>FunctionName</code></span></h4><div class="method-list-item-description">@@ -50,13 +50,13 @@ The function name to call.<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">- params+ args</span>- <span className="method-list-item-label-badge false">- optional+ <span className="method-list-item-label-badge required">+ required</span><span className="method-list-item-validation">- <code>undefined</code> | <code>object</code>+ <code>object</code></span></h4><div class="method-list-item-description">@@ -70,7 +70,7 @@ The parameters to pass to the function call.<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">- __namedParameters+ options</span><span className="method-list-item-label-badge required">required@@ -81,7 +81,7 @@ The parameters to pass to the function call.</h4><div class="method-list-item-description">-No description provided.+Named parameters.</div>@@ -91,18 +91,18 @@ No description provided.<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">- head+ count</span>- <span className="method-list-item-label-badge required">- required+ <span className="method-list-item-label-badge false">+ optional</span><span className="method-list-item-validation">- <code>boolean</code>+ <code>exact</code> | <code>planned</code> | <code>estimated</code></span></h4><div class="method-list-item-description">-When set to true, no data will be returned.+Count algorithm to use to count rows in a table.</div>@@ -111,18 +111,18 @@ When set to true, no data will be returned.<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">- count+ head</span>- <span className="method-list-item-label-badge required">- required+ <span className="method-list-item-label-badge false">+ optional</span><span className="method-list-item-validation">- <code>null</code> | <code>exact</code> | <code>planned</code> | <code>estimated</code>+ <code>boolean</code></span></h4><div class="method-list-item-description">-Count algorithm to use to count rows in a table.+When set to true, no data will be returned.</div>diff --git a/apps/reference/_supabase_js/generated/select.mdx b/apps/reference/_supabase_js/generated/select.mdxindex 0cc42396eba..dd25e2cb135 100644--- a/apps/reference/_supabase_js/generated/select.mdx+++ b/apps/reference/_supabase_js/generated/select.mdx@@ -2,7 +2,7 @@id: selecttitle: 'Fetch data: select()'slug: /select-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'@@ -23,11 +23,11 @@ const { data, error } = await supabase.from('cities').select()<span className="method-list-item-label-name">columns</span>- <span className="method-list-item-label-badge required">- required+ <span className="method-list-item-label-badge false">+ optional</span><span className="method-list-item-validation">- <code>string</code>+ <code>Query</code></span></h4><div class="method-list-item-description">@@ -62,18 +62,18 @@ No description provided.<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">- head+ count</span>- <span className="method-list-item-label-badge required">- required+ <span className="method-list-item-label-badge false">+ optional</span><span className="method-list-item-validation">- <code>boolean</code>+ <code>exact</code> | <code>planned</code> | <code>estimated</code></span></h4><div class="method-list-item-description">-When set to true, select will void data.+No description provided.</div>@@ -82,18 +82,18 @@ When set to true, select will void data.<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">- count+ head</span>- <span className="method-list-item-label-badge required">- required+ <span className="method-list-item-label-badge false">+ optional</span><span className="method-list-item-validation">- <code>null</code> | <code>exact</code> | <code>planned</code> | <code>estimated</code>+ <code>boolean</code></span></h4><div class="method-list-item-description">-Count algorithm to use to count rows in a table.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/single.mdx b/apps/reference/_supabase_js/generated/single.mdxindex c1879471f4d..f8c0fe17ef5 100644--- a/apps/reference/_supabase_js/generated/single.mdx+++ b/apps/reference/_supabase_js/generated/single.mdx@@ -2,7 +2,7 @@id: singletitle: 'single()'slug: /single-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'diff --git a/apps/reference/_supabase_js/generated/storage-createbucket.mdx b/apps/reference/_supabase_js/generated/storage-createbucket.mdxindex f02934dd370..3cb009b5b72 100644--- a/apps/reference/_supabase_js/generated/storage-createbucket.mdx+++ b/apps/reference/_supabase_js/generated/storage-createbucket.mdx@@ -2,14 +2,12 @@id: storage-createbuckettitle: 'createBucket()'slug: /storage-createbucket-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Creates a new Storage bucket-```jsconst { data, error } = await supabase.storage.createBucket('avatars', {public: false,@@ -34,7 +32,7 @@ const { data, error } = await supabase.storage.createBucket('avatars', {</h4><div class="method-list-item-description">-A unique identifier for the bucket you are creating.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/storage-deletebucket.mdx b/apps/reference/_supabase_js/generated/storage-deletebucket.mdxindex c629a8eba95..f2611bac5ff 100644--- a/apps/reference/_supabase_js/generated/storage-deletebucket.mdx+++ b/apps/reference/_supabase_js/generated/storage-deletebucket.mdx@@ -2,15 +2,12 @@id: storage-deletebuckettitle: 'deleteBucket()'slug: /storage-deletebucket-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Deletes an existing bucket. A bucket can't be deleted with existing objects inside it.-You must first `empty()` the bucket.-```jsconst { data, error } = await supabase.storage.deleteBucket('avatars')```@@ -33,7 +30,7 @@ const { data, error } = await supabase.storage.deleteBucket('avatars')</h4><div class="method-list-item-description">-The unique identifier of the bucket you would like to delete.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/storage-emptybucket.mdx b/apps/reference/_supabase_js/generated/storage-emptybucket.mdxindex 8824e754ed8..e2263447e79 100644--- a/apps/reference/_supabase_js/generated/storage-emptybucket.mdx+++ b/apps/reference/_supabase_js/generated/storage-emptybucket.mdx@@ -2,14 +2,12 @@id: storage-emptybuckettitle: 'emptyBucket()'slug: /storage-emptybucket-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Removes all objects inside a single bucket.-```jsconst { data, error } = await supabase.storage.emptyBucket('avatars')```@@ -32,7 +30,7 @@ const { data, error } = await supabase.storage.emptyBucket('avatars')</h4><div class="method-list-item-description">-The unique identifier of the bucket you would like to empty.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/storage-from-copy.mdx b/apps/reference/_supabase_js/generated/storage-from-copy.mdxindex 1716ed889b5..a8601ca7a3d 100644--- a/apps/reference/_supabase_js/generated/storage-from-copy.mdx+++ b/apps/reference/_supabase_js/generated/storage-from-copy.mdx@@ -2,14 +2,12 @@id: storage-from-copytitle: 'from.copy()'slug: /storage-from-copy-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Copies an existing file.-```jsconst { data, error } = await supabase.storage.from('avatars')@@ -34,7 +32,7 @@ const { data, error } = await supabase.storage</h4><div class="method-list-item-description">-The original file path, including the current file name. For example `folder/image.png`.+No description provided.</div>@@ -54,7 +52,7 @@ The original file path, including the current file name. For example `folder/ima</h4><div class="method-list-item-description">-The new file path, including the new file name. For example `folder/image-copy.png`.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/storage-from-createsignedurl.mdx b/apps/reference/_supabase_js/generated/storage-from-createsignedurl.mdxindex 488f6004674..47bd12d799c 100644--- a/apps/reference/_supabase_js/generated/storage-from-createsignedurl.mdx+++ b/apps/reference/_supabase_js/generated/storage-from-createsignedurl.mdx@@ -2,14 +2,12 @@id: storage-from-createsignedurltitle: 'from.createSignedUrl()'slug: /storage-from-createsignedurl-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Create signed URL to download file without requiring permissions. This URL can be valid for a set number of seconds.-```jsconst { signedURL, error } = await supabase.storage.from('avatars')@@ -34,7 +32,7 @@ const { signedURL, error } = await supabase.storage</h4><div class="method-list-item-description">-The file path to be downloaded, including the current file name. For example `folder/image.png`.+No description provided.</div>@@ -54,7 +52,7 @@ The file path to be downloaded, including the current file name. For example `fo</h4><div class="method-list-item-description">-The number of seconds until the signed URL expires. For example, `60` for a URL which is valid for one minute.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/storage-from-createsignedurls.mdx b/apps/reference/_supabase_js/generated/storage-from-createsignedurls.mdxindex f17d08e05c1..91139ab88e5 100644--- a/apps/reference/_supabase_js/generated/storage-from-createsignedurls.mdx+++ b/apps/reference/_supabase_js/generated/storage-from-createsignedurls.mdx@@ -2,14 +2,12 @@id: storage-from-createsignedurlstitle: 'from.createSignedUrls()'slug: /storage-from-createsignedurls-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Create signed URLs to download files without requiring permissions. These URLs can be valid for a set number of seconds.-```jsconst { data, error } = await supabase.storage.from('avatars')@@ -34,7 +32,7 @@ const { data, error } = await supabase.storage</h4><div class="method-list-item-description">-The file paths to be downloaded, including the current file names. For example `['folder/image.png', 'folder2/image2.png']`.+No description provided.</div>@@ -54,7 +52,7 @@ The file paths to be downloaded, including the current file names. For example `</h4><div class="method-list-item-description">-The number of seconds until the signed URLs expire. For example, `60` for URLs which are valid for one minute.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/storage-from-download.mdx b/apps/reference/_supabase_js/generated/storage-from-download.mdxindex e4db68c7f26..8b460bcc8a3 100644--- a/apps/reference/_supabase_js/generated/storage-from-download.mdx+++ b/apps/reference/_supabase_js/generated/storage-from-download.mdx@@ -2,14 +2,12 @@id: storage-from-downloadtitle: 'from.download()'slug: /storage-from-download-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Downloads a file.-```jsconst { data, error } = await supabase.storage.from('avatars')@@ -34,7 +32,7 @@ const { data, error } = await supabase.storage</h4><div class="method-list-item-description">-The file path to be downloaded, including the path and file name. For example `folder/image.png`.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/storage-from-getpublicurl.mdx b/apps/reference/_supabase_js/generated/storage-from-getpublicurl.mdxindex 93fc34a5a23..bedc5337ce5 100644--- a/apps/reference/_supabase_js/generated/storage-from-getpublicurl.mdx+++ b/apps/reference/_supabase_js/generated/storage-from-getpublicurl.mdx@@ -2,14 +2,12 @@id: storage-from-getpublicurltitle: 'from.getPublicUrl()'slug: /storage-from-getpublicurl-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Retrieve URLs for assets in public buckets-```jsconst { publicURL, error } = supabase.storage.from('public-bucket')@@ -34,7 +32,7 @@ const { publicURL, error } = supabase.storage</h4><div class="method-list-item-description">-The file path to be downloaded, including the path and file name. For example `folder/image.png`.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/storage-from-list.mdx b/apps/reference/_supabase_js/generated/storage-from-list.mdxindex e188a4c4970..176ac6562c4 100644--- a/apps/reference/_supabase_js/generated/storage-from-list.mdx+++ b/apps/reference/_supabase_js/generated/storage-from-list.mdx@@ -2,14 +2,12 @@id: storage-from-listtitle: 'from.list()'slug: /storage-from-list-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Lists all the files within a bucket.-```jsconst { data, error } = await supabase.storage.from('avatars').list('folder', {limit: 100,@@ -31,12 +29,12 @@ const { data, error } = await supabase.storage.from('avatars').list('folder', {optional</span><span className="method-list-item-validation">- <code>undefined</code> | <code>string</code>+ <code>string</code></span></h4><div class="method-list-item-description">-The folder path.+No description provided.</div>@@ -56,7 +54,7 @@ The folder path.</h4><div class="method-list-item-description">-Search options, including `limit`, `offset`, `sortBy`, and `search`.+No description provided.</div>@@ -76,7 +74,7 @@ Search options, including `limit`, `offset`, `sortBy`, and `search`.</h4><div class="method-list-item-description">-Fetch parameters, currently only supports `signal`, which is an AbortController's signal+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/storage-from-move.mdx b/apps/reference/_supabase_js/generated/storage-from-move.mdxindex 09152fb8619..56055875966 100644--- a/apps/reference/_supabase_js/generated/storage-from-move.mdx+++ b/apps/reference/_supabase_js/generated/storage-from-move.mdx@@ -2,14 +2,12 @@id: storage-from-movetitle: 'from.move()'slug: /storage-from-move-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Moves an existing file.-```jsconst { data, error } = await supabase.storage.from('avatars')@@ -34,7 +32,7 @@ const { data, error } = await supabase.storage</h4><div class="method-list-item-description">-The original file path, including the current file name. For example `folder/image.png`.+No description provided.</div>@@ -54,7 +52,7 @@ The original file path, including the current file name. For example `folder/ima</h4><div class="method-list-item-description">-The new file path, including the new file name. For example `folder/image-new.png`.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/storage-from-remove.mdx b/apps/reference/_supabase_js/generated/storage-from-remove.mdxindex 8b594a25c53..76ef72b4fba 100644--- a/apps/reference/_supabase_js/generated/storage-from-remove.mdx+++ b/apps/reference/_supabase_js/generated/storage-from-remove.mdx@@ -2,14 +2,12 @@id: storage-from-removetitle: 'from.remove()'slug: /storage-from-remove-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Deletes files within the same bucket-```jsconst { data, error } = await supabase.storage.from('avatars')@@ -34,7 +32,7 @@ const { data, error } = await supabase.storage</h4><div class="method-list-item-description">-An array of files to be deleted, including the path and file name. For example [`folder/image.png`].+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/storage-from-update.mdx b/apps/reference/_supabase_js/generated/storage-from-update.mdxindex 3fd9f3cc370..477f7d22895 100644--- a/apps/reference/_supabase_js/generated/storage-from-update.mdx+++ b/apps/reference/_supabase_js/generated/storage-from-update.mdx@@ -2,14 +2,12 @@id: storage-from-updatetitle: 'from.update()'slug: /storage-from-update-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Replaces an existing file at the specified path with a new one.-```jsconst avatarFile = event.target.files[0]const { data, error } = await supabase.storage@@ -38,7 +36,7 @@ const { data, error } = await supabase.storage</h4><div class="method-list-item-description">-The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload.+No description provided.</div>@@ -53,12 +51,12 @@ The relative file path. Should be of the format `folder/subfolder/filename.png`.required</span><span className="method-list-item-validation">- <code>ArrayBuffer</code> | <code>ArrayBufferView</code> | <code>Blob</code> | <code>Buffer</code> | <code>File</code> | <code>FormData</code> | <code>ReadableStream</code> | <code>ReadableStream</code> | <code>URLSearchParams</code> | <code>string</code>+ <code>string</code> | <code>ArrayBuffer</code> | <code>ArrayBufferView</code> | <code>Blob</code> | <code>Buffer</code> | <code>File</code> | <code>FormData</code> | <code>ReadableStream</code> | <code>ReadableStream</code> | <code>URLSearchParams</code></span></h4><div class="method-list-item-description">-The body of the file to be stored in the bucket.+No description provided.</div>@@ -78,10 +76,7 @@ The body of the file to be stored in the bucket.</h4><div class="method-list-item-description">-HTTP headers.-`cacheControl`: string, the `Cache-Control: max-age=<seconds>` seconds value.-`contentType`: string, the `Content-Type` header value. Should be specified if using a `fileBody` that is neither `Blob` nor `File` nor `FormData`, otherwise will default to `text/plain;charset=UTF-8`.-`upsert`: boolean, whether to perform an upsert.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/storage-from-upload.mdx b/apps/reference/_supabase_js/generated/storage-from-upload.mdxindex 82f0c843e35..8cc1741b96f 100644--- a/apps/reference/_supabase_js/generated/storage-from-upload.mdx+++ b/apps/reference/_supabase_js/generated/storage-from-upload.mdx@@ -2,14 +2,12 @@id: storage-from-uploadtitle: 'from.upload()'slug: /storage-from-upload-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Uploads a file to an existing bucket.-```jsconst avatarFile = event.target.files[0]const { data, error } = await supabase.storage@@ -38,7 +36,7 @@ const { data, error } = await supabase.storage</h4><div class="method-list-item-description">-The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload.+No description provided.</div>@@ -53,12 +51,12 @@ The relative file path. Should be of the format `folder/subfolder/filename.png`.required</span><span className="method-list-item-validation">- <code>ArrayBuffer</code> | <code>ArrayBufferView</code> | <code>Blob</code> | <code>Buffer</code> | <code>File</code> | <code>FormData</code> | <code>ReadableStream</code> | <code>ReadableStream</code> | <code>URLSearchParams</code> | <code>string</code>+ <code>string</code> | <code>ArrayBuffer</code> | <code>ArrayBufferView</code> | <code>Blob</code> | <code>Buffer</code> | <code>File</code> | <code>FormData</code> | <code>ReadableStream</code> | <code>ReadableStream</code> | <code>URLSearchParams</code></span></h4><div class="method-list-item-description">-The body of the file to be stored in the bucket.+No description provided.</div>@@ -78,10 +76,7 @@ The body of the file to be stored in the bucket.</h4><div class="method-list-item-description">-HTTP headers.-`cacheControl`: string, the `Cache-Control: max-age=<seconds>` seconds value.-`contentType`: string, the `Content-Type` header value. Should be specified if using a `fileBody` that is neither `Blob` nor `File` nor `FormData`, otherwise will default to `text/plain;charset=UTF-8`.-`upsert`: boolean, whether to perform an upsert.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/storage-getbucket.mdx b/apps/reference/_supabase_js/generated/storage-getbucket.mdxindex 38f17b1a56a..718bf676da7 100644--- a/apps/reference/_supabase_js/generated/storage-getbucket.mdx+++ b/apps/reference/_supabase_js/generated/storage-getbucket.mdx@@ -2,14 +2,12 @@id: storage-getbuckettitle: 'getBucket()'slug: /storage-getbucket-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Retrieves the details of an existing Storage bucket.-```jsconst { data, error } = await supabase.storage.getBucket('avatars')```@@ -32,7 +30,7 @@ const { data, error } = await supabase.storage.getBucket('avatars')</h4><div class="method-list-item-description">-The unique identifier of the bucket you would like to retrieve.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/storage-listbuckets.mdx b/apps/reference/_supabase_js/generated/storage-listbuckets.mdxindex da1fb046c54..ffb575feb9a 100644--- a/apps/reference/_supabase_js/generated/storage-listbuckets.mdx+++ b/apps/reference/_supabase_js/generated/storage-listbuckets.mdx@@ -2,14 +2,12 @@id: storage-listbucketstitle: 'listBuckets()'slug: /storage-listbuckets-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Retrieves the details of all Storage buckets within an existing project.-```jsconst { data, error } = await supabase.storage.listBuckets()```diff --git a/apps/reference/_supabase_js/generated/storage-updatebucket.mdx b/apps/reference/_supabase_js/generated/storage-updatebucket.mdxindex fb73694e139..6468d0f4ec2 100644--- a/apps/reference/_supabase_js/generated/storage-updatebucket.mdx+++ b/apps/reference/_supabase_js/generated/storage-updatebucket.mdx@@ -2,14 +2,12 @@id: storage-updatebuckettitle: 'updateBucket()'slug: /storage-updatebucket-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Updates a new Storage bucket-```jsconst { data, error } = await supabase.storage.updateBucket('avatars', {public: false,@@ -34,7 +32,7 @@ const { data, error } = await supabase.storage.updateBucket('avatars', {</h4><div class="method-list-item-description">-A unique identifier for the bucket you are updating.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/subscribe.mdx b/apps/reference/_supabase_js/generated/subscribe.mdxindex b25997936c4..76f49eb696c 100644--- a/apps/reference/_supabase_js/generated/subscribe.mdx+++ b/apps/reference/_supabase_js/generated/subscribe.mdx@@ -2,13 +2,13 @@id: subscribetitle: 'on().subscribe()'slug: /subscribe-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Subscribe to realtime changes in your database.+The event you want to listen to.```jsconst mySubscription = supabase@@ -32,12 +32,32 @@ const mySubscription = supabaserequired</span><span className="method-list-item-validation">- <code>SupabaseEventTypes</code>+ <code>string</code></span></h4><div class="method-list-item-description">-The database event which you would like to receive updates for, or you can use the special wildcard `*` to listen to all changes.+The event++ </div>++</li>++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ filter+ </span>+ <span className="method-list-item-label-badge false">+ optional+ </span>+ <span className="method-list-item-validation">+ <code>Record</code>+ </span>+ </h4>+ <div class="method-list-item-description">++An object that specifies what you want to listen to from the event.</div>@@ -48,8 +68,8 @@ The database event which you would like to receive updates for, or you can use t<span className="method-list-item-label-name">callback</span>- <span className="method-list-item-label-badge required">- required+ <span className="method-list-item-label-badge false">+ optional</span><span className="method-list-item-validation"><code>object</code>@@ -57,7 +77,7 @@ The database event which you would like to receive updates for, or you can use t</h4><div class="method-list-item-description">-A callback that will handle the payload that is sent whenever your database changes.+A callback function that is called whenever the event occurs.</div>diff --git a/apps/reference/_supabase_js/generated/textsearch.mdx b/apps/reference/_supabase_js/generated/textsearch.mdxindex 02514ae1b0d..4ba108f4520 100644--- a/apps/reference/_supabase_js/generated/textsearch.mdx+++ b/apps/reference/_supabase_js/generated/textsearch.mdx@@ -2,14 +2,14 @@id: textsearchtitle: '.textSearch()'slug: /textsearch-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Finds all rows whose tsvector value on the stated `column` matches-to_tsquery(`query`).+Finds all rows whose text or tsvector value on the stated `column` matches+the tsquery in `query`.## Parameters@@ -24,7 +24,7 @@ to_tsquery(`query`).required</span><span className="method-list-item-validation">- <code>object</code>+ <code>ColumnName</code></span></h4><div class="method-list-item-description">@@ -58,10 +58,10 @@ The Postgres tsquery string to filter with.<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">- __namedParameters+ options</span>- <span className="method-list-item-label-badge required">- required+ <span className="method-list-item-label-badge false">+ optional</span><span className="method-list-item-validation"><code>object</code>@@ -81,16 +81,36 @@ No description provided.<span className="method-list-item-label-name">config</span>- <span className="method-list-item-label-badge required">- required+ <span className="method-list-item-label-badge false">+ optional</span><span className="method-list-item-validation">- <code>undefined</code> | <code>string</code>+ <code>string</code></span></h4><div class="method-list-item-description">-The text search configuration to use.+No description provided.++ </div>++</li>++<li className="method-list-item">+ <h4 className="method-list-item-label">+ <span className="method-list-item-label-name">+ type+ </span>+ <span className="method-list-item-label-badge false">+ optional+ </span>+ <span className="method-list-item-validation">+ <code>plain</code> | <code>phrase</code> | <code>websearch</code>+ </span>+ </h4>+ <div class="method-list-item-description">++No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/update.mdx b/apps/reference/_supabase_js/generated/update.mdxindex 4ad779421da..0735e143d64 100644--- a/apps/reference/_supabase_js/generated/update.mdx+++ b/apps/reference/_supabase_js/generated/update.mdx@@ -2,7 +2,7 @@id: updatetitle: 'Modify data: update()'slug: /update-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'@@ -30,7 +30,7 @@ const { data, error } = await supabaserequired</span><span className="method-list-item-validation">- <code>Partial</code>+ <code>Row</code></span></h4><div class="method-list-item-description">@@ -44,7 +44,7 @@ The values to update.<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">- __namedParameters+ count</span><span className="method-list-item-label-badge required">required@@ -55,48 +55,28 @@ The values to update.</h4><div class="method-list-item-description">-No description provided.+Count algorithm to use to count rows in a table.</div><ul className="method-list-group"><h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>-<li className="method-list-item">- <h4 className="method-list-item-label">- <span className="method-list-item-label-name">- returning- </span>- <span className="method-list-item-label-badge required">- required- </span>- <span className="method-list-item-validation">- <code>minimal</code> | <code>representation</code>- </span>- </h4>- <div class="method-list-item-description">--By default the updated record is returned. Set this to 'minimal' if you don't need this value.-- </div>--</li>-<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">count</span>- <span className="method-list-item-label-badge required">- required+ <span className="method-list-item-label-badge false">+ optional</span><span className="method-list-item-validation">- <code>null</code> | <code>exact</code> | <code>planned</code> | <code>estimated</code>+ <code>exact</code> | <code>planned</code> | <code>estimated</code></span></h4><div class="method-list-item-description">-Count algorithm to use to count rows in a table.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/upsert.mdx b/apps/reference/_supabase_js/generated/upsert.mdxindex 9fb12f9ae2d..7fa46090407 100644--- a/apps/reference/_supabase_js/generated/upsert.mdx+++ b/apps/reference/_supabase_js/generated/upsert.mdx@@ -2,7 +2,7 @@id: upserttitle: 'Upsert data: upsert()'slug: /upsert-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'@@ -29,7 +29,7 @@ const { data, error } = await supabaserequired</span><span className="method-list-item-validation">- <code>Partial</code> | <code>array</code>+ <code>Row</code> | <code>array</code></span></h4><div class="method-list-item-description">@@ -64,38 +64,18 @@ No description provided.<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">- returning- </span>- <span className="method-list-item-label-badge required">- required- </span>- <span className="method-list-item-validation">- <code>minimal</code> | <code>representation</code>- </span>- </h4>- <div class="method-list-item-description">--By default the new record is returned. Set this to 'minimal' if you don't need this value.-- </div>--</li>--<li className="method-list-item">- <h4 className="method-list-item-label">- <span className="method-list-item-label-name">- onConflict+ count</span>- <span className="method-list-item-label-badge required">- required+ <span className="method-list-item-label-badge false">+ optional</span><span className="method-list-item-validation">- <code>undefined</code> | <code>string</code>+ <code>exact</code> | <code>planned</code> | <code>estimated</code></span></h4><div class="method-list-item-description">-By specifying the `on_conflict` query parameter, you can make UPSERT work on a column(s) that has a UNIQUE constraint.+No description provided.</div>@@ -106,8 +86,8 @@ By specifying the `on_conflict` query parameter, you can make UPSERT work on a c<span className="method-list-item-label-name">ignoreDuplicates</span>- <span className="method-list-item-label-badge required">- required+ <span className="method-list-item-label-badge false">+ optional</span><span className="method-list-item-validation"><code>boolean</code>@@ -115,7 +95,7 @@ By specifying the `on_conflict` query parameter, you can make UPSERT work on a c</h4><div class="method-list-item-description">-Specifies if duplicate rows should be ignored and not inserted.+No description provided.</div>@@ -124,18 +104,18 @@ Specifies if duplicate rows should be ignored and not inserted.<li className="method-list-item"><h4 className="method-list-item-label"><span className="method-list-item-label-name">- count+ onConflict</span>- <span className="method-list-item-label-badge required">- required+ <span className="method-list-item-label-badge false">+ optional</span><span className="method-list-item-validation">- <code>null</code> | <code>exact</code> | <code>planned</code> | <code>estimated</code>+ <code>string</code></span></h4><div class="method-list-item-description">-Count algorithm to use to count rows in a table.+No description provided.</div>diff --git a/apps/reference/_supabase_js/generated/using-filters.mdx b/apps/reference/_supabase_js/generated/using-filters.mdxindex 61c8b3e4286..6fc5eb2e9a4 100644--- a/apps/reference/_supabase_js/generated/using-filters.mdx+++ b/apps/reference/_supabase_js/generated/using-filters.mdx@@ -2,7 +2,7 @@id: using-filterstitle: 'Using Filters'slug: /using-filters-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'diff --git a/apps/reference/_supabase_js/generated/using-modifiers.mdx b/apps/reference/_supabase_js/generated/using-modifiers.mdxindex 933bbaaaefb..1d6571a967b 100644--- a/apps/reference/_supabase_js/generated/using-modifiers.mdx+++ b/apps/reference/_supabase_js/generated/using-modifiers.mdx@@ -2,7 +2,7 @@id: using-modifierstitle: 'Using Modifiers'slug: /using-modifiers-custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase_js_v2_ref.yml+custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml---import Tabs from '@theme/Tabs'diff --git a/apps/reference/nav/supabase_js_sidebars.js b/apps/reference/nav/supabase_js_sidebars.jsindex 280f77dee32..8d3dee35788 100644--- a/apps/reference/nav/supabase_js_sidebars.js+++ b/apps/reference/nav/supabase_js_sidebars.js@@ -35,12 +35,14 @@ const sidebars = {label: 'Auth',items: ['generated/auth-signup',- 'generated/auth-signin',+ 'generated/auth-signinwithpassword',+ 'generated/auth-signinwithotp',+ 'generated/auth-signinwithoauth','generated/auth-signout',- 'generated/auth-session',- 'generated/auth-user',+ 'generated/auth-getsession',+ 'generated/auth-getuser','generated/auth-update',- 'generated/auth-setauth',+ 'generated/auth-setsession','generated/auth-onauthstatechange','generated/auth-api-getuser','generated/auth-api-resetpasswordforemail',@@ -85,9 +87,9 @@ const sidebars = {label: 'Realtime',items: ['generated/subscribe',- 'generated/removesubscription',- 'generated/removeallsubscriptions',- 'generated/getsubscriptions',+ 'generated/removechannel',+ 'generated/removeallchannels',+ 'generated/getchannels',],collapsed: true,},diff --git a/packages/generator/LegacyReferenceGenerator.ts b/packages/generator/LegacyReferenceGenerator.tsindex 45e8a98137f..59c4f091759 100644--- a/packages/generator/LegacyReferenceGenerator.ts+++ b/packages/generator/LegacyReferenceGenerator.ts@@ -316,7 +316,7 @@ function generateSidebar(docSpec: any) {function generateDocsIndexPage(docSpec: any, inputFileName: string) {return Page({- slug: slugify(docSpec.info.title),+ slug: (docSpec.info.slugPrefix || '') + slugify(docSpec.info.title),id: 'index',title: docSpec.info.title,specFileName: inputFileName,