diff --git a/README.md b/README.md index 4a6e2f223da..304eceed468 100644 --- a/README.md +++ b/README.md @@ -142,7 +142,7 @@ Our approach for client libraries is modular. Each sub-library is a standalone i - gotrue-java - - storage-java + storage-java - diff --git a/apps/docs/components/Navigation/Navigation.constants.ts b/apps/docs/components/Navigation/Navigation.constants.ts index 53b76960443..b0d769e6ea3 100644 --- a/apps/docs/components/Navigation/Navigation.constants.ts +++ b/apps/docs/components/Navigation/Navigation.constants.ts @@ -204,6 +204,11 @@ export const menuItems: NavMenu = { url: '/guides/database/extensions/plv8', items: [], }, + { + name: 'PostGIS: Geo queries', + url: '/guides/database/extensions/postgis', + items: [], + }, { name: 'uuid-ossp: Unique Identifiers', url: '/guides/database/extensions/uuid-ossp', @@ -300,6 +305,7 @@ export const menuItems: NavMenu = { { name: 'Authsignal', url: '/guides/integrations/authsignal', items: [] }, { name: 'Clerk', url: '/guides/integrations/clerk', items: [] }, { name: 'keyri', url: '/guides/integrations/keyri', items: [] }, + { name: 'Picket', url: '/guides/integrations/picket', items: [] }, { name: 'Stytch', url: '/guides/integrations/stytch', items: [] }, { name: 'SuperTokens', url: '/guides/integrations/supertokens', items: [] }, ], diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts index d9837f2ea65..7abe1bea978 100644 --- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts +++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts @@ -42,13 +42,14 @@ export const gettingstarted = { items: [ { name: 'Features', url: '/guides/getting-started/features', items: [] }, { name: 'Architecture', url: '/guides/getting-started/architecture', items: [] }, - // { - // name: 'Quickstarts', - // items: [ - // { name: 'NextJS', url: '/guides/getting-started/quickstarts/nextjs', items: [] }, - // { name: 'ReactJS', url: '/guides/getting-started/quickstarts/reactjs', items: [] }, - // ], - // }, + { + name: 'Framework Quickstarts', + items: [ + { name: 'ReactJS', url: '/guides/getting-started/quickstarts/reactjs', items: [] }, + { name: 'NextJS', url: '/guides/getting-started/quickstarts/nextjs', items: [] }, + { name: 'Flutter', url: '/guides/getting-started/quickstarts/flutter', items: [] }, + ], + }, { name: 'Web app tutorials', items: [ @@ -389,6 +390,11 @@ export const database = { url: '/guides/database/extensions/pgnet', items: [], }, + { + name: 'PostGIS: Geo queries', + url: '/guides/database/extensions/postgis', + items: [], + }, { name: 'pgTAP: Unit Testing', url: '/guides/database/extensions/pgtap', items: [] }, { name: 'uuid-ossp: Unique Identifiers', diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsx index e4e73a8e132..ee9bbf30f38 100644 --- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsx +++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsx @@ -7,10 +7,6 @@ import { IconChevronLeft } from '~/../../packages/ui' import * as NavItems from './NavigationMenu.constants' import * as Accordion from '@radix-ui/react-accordion' -interface ImPureProps { - // users: Array -} - const HeaderImage = React.memo(function HeaderImage(props: any) { const router = useRouter() const { isDarkMode } = useTheme() @@ -45,12 +41,6 @@ const ContentAccordionLink = React.memo(function ContentAccordionLink(props: any const router = useRouter() const { isDarkMode } = useTheme() - let subItemMenuOpen = false - - if (router.asPath.includes(props.subItem.url)) { - subItemMenuOpen = true - } - const LinkContainer = (props) => { return ( @@ -188,7 +178,7 @@ const Content = (props) => { return (
{x.items && x.items.length > 0 ? ( -
+
{x.items.map((subItem, subItemIndex) => { return ( { return ( - + {title} ) @@ -245,7 +245,7 @@ const Content: React.FC = ({ id, lib, commonSections, sp
-
    +
      {sections.map((fn: any, fnIndex) => { // run allow check if (isFuncNotInLibraryOrVersion(fn.id, fn.type, allowedKeys)) { diff --git a/apps/docs/pages/guides/auth/auth-helpers/nextjs-server-components.mdx b/apps/docs/pages/guides/auth/auth-helpers/nextjs-server-components.mdx index 4b31c0a1011..a49f6c3c2ca 100644 --- a/apps/docs/pages/guides/auth/auth-helpers/nextjs-server-components.mdx +++ b/apps/docs/pages/guides/auth/auth-helpers/nextjs-server-components.mdx @@ -139,7 +139,7 @@ Middleware runs before every route declared in the `matcher` array. Since we don > -Create a new file at `/pages/middleware.js` and populate with the following: +Create a new file at `/app/middleware.js` and populate with the following: ```jsx title="middleware.js" import { createMiddlewareSupabaseClient } from '@supabase/auth-helpers-nextjs' @@ -166,7 +166,7 @@ export const config = { -Create a new file at `/middleware.ts` (a sibling of /pages) and populate with the following: +Create a new file at `/app/middleware.ts` and populate with the following: ```tsx title="middleware.ts" import { createMiddlewareSupabaseClient } from '@supabase/auth-helpers-nextjs' @@ -220,11 +220,13 @@ export default function SupabaseListener({ accessToken }) { const router = useRouter() useEffect(() => { - supabase.auth.onAuthStateChange((event, session) => { + const { data: subscription } = supabase.auth.onAuthStateChange((event, session) => { if (session?.access_token !== accessToken) { - router.reload() + router.refresh() } }) + + return () => subscription.unsubscribe() }, [accessToken]) return null diff --git a/apps/docs/pages/guides/auth/managing-user-data.mdx b/apps/docs/pages/guides/auth/managing-user-data.mdx index 3e49846fc5d..8d6e414eb05 100644 --- a/apps/docs/pages/guides/auth/managing-user-data.mdx +++ b/apps/docs/pages/guides/auth/managing-user-data.mdx @@ -34,6 +34,10 @@ Make sure to specify the `on delete cascade` clause when referencing `auth.users +## Deleting Users + +You may delete users directly or via the management console at Authentication > Users. Note that deleting a user from the `auth.users` table does not automatically sign out a user. As Supabase makes use of JSON Web Tokens (JWT), a user's JWT will remain "valid" until it has expired. Should you wish to immediately revoke access for a user, do considering making use of a Row Level Security policy as described below. + ## Public access Since Row Level Security is enabled, this table is accessible via the API but no data will be returned unless we set up some Policies. diff --git a/apps/docs/pages/guides/auth/social-login/auth-twitter.mdx b/apps/docs/pages/guides/auth/social-login/auth-twitter.mdx index ca28d47a57c..fbf98ba1b1c 100644 --- a/apps/docs/pages/guides/auth/social-login/auth-twitter.mdx +++ b/apps/docs/pages/guides/auth/social-login/auth-twitter.mdx @@ -6,7 +6,7 @@ export const meta = { description: 'Add Twitter OAuth to your Supabase project', } -To enable Twitter Auth for your project, you need to set up a Twitter OAuth application with [elevated access](https://developer.twitter.com/en/portal/products/elevated)and add the application credentials in the Supabase Dashboard. +To enable Twitter Auth for your project, you need to set up a Twitter OAuth application with [elevated access](https://developer.twitter.com/en/portal/products/elevated) and add the application credentials in the Supabase Dashboard. ## Overview diff --git a/apps/docs/pages/guides/database/extensions/postgis.mdx b/apps/docs/pages/guides/database/extensions/postgis.mdx new file mode 100644 index 00000000000..6f241b0774e --- /dev/null +++ b/apps/docs/pages/guides/database/extensions/postgis.mdx @@ -0,0 +1,302 @@ +import Layout from '~/layouts/DefaultGuideLayout' + +export const meta = { + id: 'postgis', + title: 'PostGIS: Geo queries', + description: 'Working with geo-spatial data in Postgres', +} + +[PostGIS](https://postgis.net/) is a Postgres extension that allows you to interact with Geo data within Postgres. You can sort your data by geographic location, get data within certain geographic boundaries, and do much more with it. + +## Overview + +While you may be able to store simple lat/long geographic coordinates as a set of decimals, it does not scale very well when you try to query through a large data set. PostGIS comes with special data types that are efficient, and indexable for high scalability. + +The additional data types that PostGIS provides include [Point](https://postgis.net/docs/using_postgis_dbmanagement.html#Point), [Polygon](https://postgis.net/docs/using_postgis_dbmanagement.html#Polygon), [Linestring](https://postgis.net/docs/using_postgis_dbmanagement.html#LineString), and many more to represent different types of geographical data. In this guide, we will mainly focus on how to interact with `Point` type, which represents a single set of latitude and longitude. If you are interested in digging deeper, you can learn more about different data types on the [data management section of PostGIS docs](https://postgis.net/docs/using_postgis_dbmanagement.html). + +## Usage + +### Enable the extension + +You can get started with PostGIS by enabling the PostGIS extension in your Supabase dashboard. + + + + +1. Go to the [Database](https://app.supabase.com/project/_/database/tables) page in the Dashboard. +2. Click on **Extensions** in the sidebar. +3. Search for "postgis" and enable the extension. + + + + +```sql +-- Example: enable the "postgis" extension +create extension postgis with schema extensions; + +-- Example: disable the "postgis" extension +drop extension if exists postgis; +``` + + + + +## Examples + +Now that we are ready to get started with PostGIS, let’s create a table and see how we can utilize PostGIS for some typical use cases. Let’s imagine we are creating a simple restaurant-searching app. + +Let’s create our table. Each row represents a restaurant with its location stored in `location` column as a `Point` type. + +```sql +create table if not exists public.restaurants ( + id int generated by default as identity primary key, + name text not null, + location geography(POINT) not null +); +``` + +We can then set a [spatial index](https://postgis.net/docs/using_postgis_dbmanagement.html#build-indexes) on the `location` column of this table. + +```sql +create index restaurants_geo_index + on public.restaurants + using GIST (location); +``` + +### Inserting data + +You can insert geographical data through SQL or through our API. + + + + +

      Restaurants

      + +| id | name | location | +| --- | ----------- | -------------------------------- | +| 1 | Supa Burger | lat: 40.807416, long: -73.946823 | +| 2 | Supa Pizza | lat: 40.807475, long: -73.94581 | +| 3 | Supa Taco | lat: 40.80629, long: -73.945826 | + +
      + + +```sql +insert into public.restaurants +(name, location) +values + ('Supa Burger', st_point(-73.946823, 40.807416)), + ('Supa Pizza', st_point(-73.94581, 40.807475)), + ('Supa Taco', st_point(-73.945826, 40.80629)); +``` + + + + +```js +const { error } = await supabase.from('restaurants').insert([ + { + name: 'Supa Burger', + location: 'POINT(-73.946823 40.807416)', + }, + { + name: 'Supa Pizza', + location: 'POINT(-73.94581 40.807475)', + }, + { + name: 'Supa Taco', + location: 'POINT(-73.945826 40.80629)', + }, +]) +``` + + + + +```dart +await supabase.from('restaurants').insert([ + { + 'name': 'Supa Burger', + 'location': 'POINT(-73.946823 40.807416)', + }, + { + 'name': 'Supa Pizza', + 'location': 'POINT(-73.94581 40.807475)', + }, + { + 'name': 'Supa Taco', + 'location': 'POINT(-73.945826 40.80629)', + }, +]); +``` + + +
      + +Notice the order in which you pass the latitude and longitude. Longitude comes first, and is because longitude represents the x-axis of the location. Another thing to watch for is when inserting data from the client library, there is no comma between the two values, just a single space. + +At this point, if you go into your Supabase dashboard and look at the data, you will notice that the value of the `location` column looks something like this. + +``` +0101000020E6100000A4DFBE0E9C91614044FAEDEBC0494240 +``` + +We can query the `restaurants` table directly, but it will return the `location` column in the format you see above. We will create [database functions](https://supabase.com/docs/guides/database/functions) so that we can use the [st_astext()](https://postgis.net/docs/ST_AsText.html) function to convert it back to a human-readable format like `POINT(-73.946713 40.807313)`. + +### Order by distance + +Sorting datasets from closest to farthest, sometimes called nearest-neighbor sort, is a very common use case in Geo-queries. PostGIS can handle it very easily with the use of the [`<->`](https://postgis.net/docs/geometry_distance_knn.html) operator. `<->` operator returns the two-dimensional distance between two geometries and will utilize the spatial index when used within `order by` clause. You can create the following database function to sort the restaurants from closest to farthest by passing the current locations as parameters. + +```sql +create or replace function nearby_restaurants(lat float, long float) +returns setof record +language sql +as $$ + select id, name, st_astext(location) as location, st_distance(location, st_point(long, lat)::geography) as dist_meters + from public.restaurants + order by location <-> st_point(long, lat)::geography; +$$; +``` + +You can call this function from your client using `rpc()` like this: + + + + +```js +const { data, error } = await supabase.rpc('nearby_restaurants', { + lat: 40.807313, + long: -73.946713, +}) +``` + + + + +```dart +final data = await supabase.rpc('nearby_restaurants',params: { + 'lat': 40.807313, + 'long': -73.946713, +}); +``` + + + + +```json +[ + { + "id": 1, + "name": "Supa Burger", + "location": "POINT(-73.946823 40.807416)", + "dist_meters": 14.73033739 + }, + { + "id": 2, + "name": "Supa Pizza", + "location": "POINT(-73.94581 40.807475)", + "dist_meters": 78.28980007 + }, + { + "id": 3, + "name": "Supa Taco", + "location": "POINT(-73.945826 40.80629)", + "dist_meters": 136.04329002 + } +] +``` + + + + +### Finding all data points within a bounding box + +![Searching within a bounding box of a map](/docs/img/guides/database/extensions/postgis/map.png) + +When you are working on a map-based application where the user scrolls through your map, you might want to load the that lies within the bounding box of the map every time your users scroll. PostGIS can return the rows that are within the bounding box just by supplying the bottom left and the top right coordinates. Let’s look at what the function would look like. + +```sql +create or replace function restaurants_in_view(min_lat float, min_long float, max_lat float, max_long float) +returns setof record +language sql +as $$ + select id, name, st_astext(location) as location + from public.restaurants + where location && ST_SetSRID(ST_MakeBox2D(ST_Point(min_long, min_lat), ST_Point(max_long, max_lat)),4326) +$$; +``` + +[`&&`](https://postgis.net/docs/geometry_overlaps.html) operator used in the `where` statement here returns a boolean of whether the bounding box of the two geometries intersect or not. We basically are creating a bounding box from the two points and finding those points that fall under the bounding box. We are also utilizing a few different PostGIS functions here. + +- [ST_MakeBox2D](https://postgis.net/docs/ST_MakeBox2D.html): Creates a 2-dimensional box from two points. +- [ST_SetSRID](https://postgis.net/docs/ST_SetSRID.html): Sets the [SRID](https://postgis.net/docs/manual-dev/using_postgis_dbmanagement.html#spatial_ref_sys), which is an identifier of what coordinate system to use, for the geometry. 4326 the standard longitude and latitude coordinate systems. + +You can call this function from your client using `rpc()` like this: + + + + +```js +const { data, error } = await supabase.rpc('restaurants_in_view', { + min_lat: 40.807, + min_long: -73.946, + max_lat: 40.808, + max_long: -73.945, +}) +``` + + + + +```dart +final data = await supabase.rpc('restaurants_in_view', params: { + 'min_lat': 40.807, + 'min_long': -73.946, + 'max_lat': 40.808, + 'max_long': -73.945, +}); +``` + + + + +```json +[ + { + "id": 2, + "name": "Supa Pizza", + "location": "POINT(-73.94581 40.807475)" + } +] +``` + + + + +## Resources + +- [Official PostGIS documentation](https://postgis.net/documentation/) + +export const Page = ({ children }) => + +export default Page diff --git a/apps/docs/pages/guides/database/full-text-search.mdx b/apps/docs/pages/guides/database/full-text-search.mdx index 51de6e5bdaa..c3fa7beaa92 100644 --- a/apps/docs/pages/guides/database/full-text-search.mdx +++ b/apps/docs/pages/guides/database/full-text-search.mdx @@ -108,8 +108,7 @@ const { data, error } = await supabase.from('books').select().eq('title', 'Harry final result = await client .from('books') .select() - .eq('title', 'Harry') - .execute(); + .eq('title', 'Harry'); ```
      @@ -146,8 +145,7 @@ const { data, error } = await supabase.from('books').select().textSearch('title' final result = await client .from('books') .select() - .textSearch('title', "'Harry'") - .execute(); + .textSearch('title', "'Harry'"); ```
      @@ -191,8 +189,7 @@ const { data, error } = await supabase.from('books').select().textSearch('descri final result = await client .from('books') .select() - .textSearch('description', "'big'") - .execute(); + .textSearch('description', "'big'"); ``` @@ -278,8 +275,7 @@ const { data, error } = await supabase final result = await client .from('books') .select() - .textSearch('description', "'little' & 'big'") - .execute(); + .textSearch('description', "'little' & 'big'"); ``` @@ -331,8 +327,7 @@ const { data, error } = await supabase final result = await client .from('books') .select() - .textSearch('description', "'little' | 'big'") - .execute(); + .textSearch('description', "'little' | 'big'"); ``` @@ -430,8 +425,7 @@ const { data, error } = await supabase.from('books').select().textSearch('fts', final result = await client .from('books') .select() - .textSearch('fts', "'little' & 'big'") - .execute(); + .textSearch('fts', "'little' & 'big'"); ``` @@ -488,8 +482,7 @@ const { data, error } = await supabase final result = await client .from('books') .select() - .textSearch('description', "'big' <-> 'dreams'") - .execute(); + .textSearch('description', "'big' <-> 'dreams'"); ``` @@ -531,8 +524,7 @@ const { data, error } = await supabase final result = await client .from('books') .select() - .textSearch('description', "'year' <2> 'school'") - .execute(); + .textSearch('description', "'year' <2> 'school'"); ``` @@ -577,8 +569,7 @@ const { data, error } = await supabase final result = await client .from('books') .select() - .textSearch('description', "'big' & !'little'") - .execute(); + .textSearch('description', "'big' & !'little'"); ``` diff --git a/apps/docs/pages/guides/getting-started/quickstarts/flutter.mdx b/apps/docs/pages/guides/getting-started/quickstarts/flutter.mdx new file mode 100644 index 00000000000..339eb20dd2f --- /dev/null +++ b/apps/docs/pages/guides/getting-started/quickstarts/flutter.mdx @@ -0,0 +1,196 @@ +import Layout from '~/layouts/DefaultGuideLayout' +import StepHikeCompact from '~/components/StepHikeCompact' + +export const meta = { + title: 'Use Supabase with Flutter', + subtitle: + 'Learn how to create a Supabase project, add some sample data to your database, and query the data from a Flutter app.', + breadcrumb: 'Framework Quickstarts', +} + + + + + + + [Create a new project](https://app.supabase.com) in the Supabase Dashboard. + + After your project is ready, create a table in your Supabase database using the [SQL Editor](https://app.supabase.com/project/_/sql) in the Dashboard. Use the following SQL statement to create a `countries` table with some sample data. + + + + + + ```sql SQL_EDITOR + -- Create the table + CREATE TABLE countries ( + id SERIAL PRIMARY KEY, + name VARCHAR(255) NOT NULL + ); + -- Insert some sample data into the table + INSERT INTO countries (name) VALUES ('United States'); + INSERT INTO countries (name) VALUES ('Canada'); + INSERT INTO countries (name) VALUES ('Mexico'); + ```` + + + + + + + + + + Create a Flutter app using the `flutter create` command. You can skip this step if you already have a working app. + + + + + + ```bash Terminal + flutter create my_app + ``` + + + + + + + + + + The fastest way to get started is to use the [`supabase_flutter`](https://pub.dev/packages/supabase_flutter) client library which provides a convenient interface for working with Supabase from a Flutter app. + + Open the `pubspec.yaml` file inside your Flutter app and add `supabase_flutter` as a dependency. + + + + + + ```yaml pubspec.yaml + supabase_flutter: ^1.2.2 + ``` + + + + + + + + + + Open `lib/main.dart` and edit the main function to initialize Supabase using your [project URL and public API (anon) key](https://app.supabase.com/project/_/settings/api). + + + + + + ```dart lib/main.dart + import 'package:supabase_flutter/supabase_flutter.dart'; + + Future main() async { + WidgetsFlutterBinding.ensureInitialized(); + + await Supabase.initialize( + url: 'YOUR_SUPABASE_URL', + anonKey: 'YOUR_SUPABASE_ANON_KEY', + ); + runApp(MyApp()); + } + ``` + + + + + + + + + + Use a `FutureBuilder` to fetch the data when the home page loads and display the query result in a `ListView`. + + Replace the default `MyApp` and `MyHomePage` classes with the following code. + + + + + + ```dart lib/main.dart + class MyApp extends StatelessWidget { + const MyApp({Key? key}) : super(key: key); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + title: 'Countries', + home: HomePage(), + ); + } + } + + class HomePage extends StatefulWidget { + const HomePage({super.key}); + + @override + State createState() => _HomePageState(); + } + + class _HomePageState extends State { + final _future = Supabase.instance.client + .from('countries') + .select>>(); + + @override + Widget build(BuildContext context) { + return Scaffold( + body: FutureBuilder>>( + future: _future, + builder: (context, snapshot) { + if (!snapshot.hasData) { + return const Center(child: CircularProgressIndicator()); + } + final countries = snapshot.data!; + return ListView.builder( + itemCount: countries.length, + itemBuilder: ((context, index) { + final country = countries[index]; + return ListTile( + title: Text(country['name']), + ); + }), + ); + }, + ), + ); + } + } + ``` + + + + + + + + + Run your app on a platform of your choosing! By default an app should launch in your web browser. + + Note that `supabase_flutter` is compatible with web, iOS, Android, macOS, and Windows apps. + + + + + + ```bash Terminal + flutter run + ``` + + + + + + + +export const Page = ({ children }) => + +export default Page diff --git a/apps/docs/pages/guides/getting-started/quickstarts/nextjs.mdx b/apps/docs/pages/guides/getting-started/quickstarts/nextjs.mdx index 25e4b066c09..b51a4d88b72 100644 --- a/apps/docs/pages/guides/getting-started/quickstarts/nextjs.mdx +++ b/apps/docs/pages/guides/getting-started/quickstarts/nextjs.mdx @@ -3,7 +3,8 @@ import StepHikeCompact from '~/components/StepHikeCompact' export const meta = { title: 'Use Supabase with NextJS', - subtitle: 'Learn how to create a Supabase project, add some sample data to your database, and query the data from a NextJS app.', + subtitle: + 'Learn how to create a Supabase project, add some sample data to your database, and query the data from a NextJS app.', breadcrumb: 'Framework Quickstarts', } @@ -58,7 +59,7 @@ export const meta = { The fastest way to get started is to use the `supabase-js` client library which provides a convenient interface for working with Supabase from a NextJS app. - + Navigate to the NextJS app and install `supabase-js`. @@ -85,7 +86,7 @@ export const meta = { ```js lib/supabaseClient.js import { createClient } from '@supabase/supabase-js' - const supabase = createClient('https://.supabase.co', '') + export const supabase = createClient('https://.supabase.co', '') ``` @@ -95,8 +96,8 @@ export const meta = { - Use a `getInitialProps` method to fetch the data when the page loads and display the query result as a simple list. - + Use the `getServerSideProps` method to fetch the data server-side and display the query result as a simple list. + Replace the existing function in your index file in the `pages` directory with the following code. @@ -116,11 +117,13 @@ export const meta = { ); } - Page.getInitialProps = async () => { - const { data, error } = await supabase.from('countries').select() + export async function getServerSideProps() { + let { data } = await supabase.from('countries').select() return { - countries: data + props: { + countries: data + }, } } diff --git a/apps/docs/pages/guides/getting-started/quickstarts/reactjs.mdx b/apps/docs/pages/guides/getting-started/quickstarts/reactjs.mdx index da4f7431bb3..ea117046949 100644 --- a/apps/docs/pages/guides/getting-started/quickstarts/reactjs.mdx +++ b/apps/docs/pages/guides/getting-started/quickstarts/reactjs.mdx @@ -3,7 +3,8 @@ import StepHikeCompact from '~/components/StepHikeCompact' export const meta = { title: 'Use Supabase with React', - subtitle: 'Learn how to create a Supabase project, add some sample data to your database, and query the data from a React app.', + subtitle: + 'Learn how to create a Supabase project, add some sample data to your database, and query the data from a React app.', breadcrumb: 'Framework Quickstarts', } @@ -58,7 +59,7 @@ export const meta = { The fastest way to get started is to use the `supabase-js` client library which provides a convenient interface for working with Supabase from a React app. - + Navigate to the React app and install `supabase-js`. @@ -73,11 +74,11 @@ export const meta = { - + In `index.js`, create a Supabase client using your [Project URL and public API (anon) key](https://app.supabase.com/project/_/settings/api). - + Add a `getCountries` function to fetch the data and log the query result to the browser console. @@ -90,7 +91,7 @@ export const meta = { const supabase = createClient('https://.supabase.co', '') async function getCountries() { - const countries = await supabase.from('countries').select('*') + const countries = await supabase.from('countries').select() console.log(countries) } @@ -101,7 +102,7 @@ export const meta = { - + Start the app, go to http://localhost:3000 in a browser, and open the browser console and you should see the list of countries. diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx index 165c7c5052a..81b86e96b2f 100644 --- a/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx +++ b/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx @@ -129,6 +129,7 @@ Wrap your `pages/_app.tsx` component with the `SessionContextProvider` component import { useState } from 'react' import { createBrowserSupabaseClient } from '@supabase/auth-helpers-nextjs' import { SessionContextProvider, Session } from '@supabase/auth-helpers-react' +import { AppProps } from 'next/app' function MyApp({ Component, diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-sveltekit.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-sveltekit.mdx index 2dc0cca9d0d..bbac06e6019 100644 --- a/apps/docs/pages/guides/getting-started/tutorials/with-sveltekit.mdx +++ b/apps/docs/pages/guides/getting-started/tutorials/with-sveltekit.mdx @@ -56,8 +56,7 @@ import { env } from '$env/dynamic/public' export const supabase = createClient(env.PUBLIC_SUPABASE_URL, env.PUBLIC_SUPABASE_ANON_KEY) ``` -And one optional step is to update the CSS file `public/global.css` to make the app look nice. -You can find the full contents of this file [here](https://raw.githubusercontent.com/supabase/supabase/master/examples/user-management/svelte-user-management/src/app.css). +Optionally, update `src/routes/style.css` with the [CSS from the example](https://raw.githubusercontent.com/supabase/supabase/master/examples/user-management/svelte-user-management/src/app.css). ### Supabase Auth Helpers diff --git a/apps/docs/pages/guides/integrations/picket.mdx b/apps/docs/pages/guides/integrations/picket.mdx new file mode 100644 index 00000000000..d33fa8f7988 --- /dev/null +++ b/apps/docs/pages/guides/integrations/picket.mdx @@ -0,0 +1,572 @@ +import Layout from '~/layouts/DefaultGuideLayout' + +export const meta = { + id: 'picket', + title: 'Picket', + description: + "Get the best of web2 and web3. Picket allows your users to log in with their wallet without sacrificing Supabase's awesome data management and security features.", +} + +[Picket](https://picketapi.com) is a developer-first, multi-chain web3 auth platform. With Picket, you can easily authenticate users via their wallets and token gate anything. + +This guide steps through building a simple todo list Next.js application with Picket and Supabase. We use Picket to allow users to login into our app with their wallets and leverage Supabase's Row Level Security (RLS) to securely store user information off-chain. + +> Checkout a [live demo](https://picket-supabase-auth-example-v36z.vercel.app/) of a Picket + Supabase integration + +The code for this guide is based of [this example repo](https://github.com/picketapi/picket-supabase-auth-example). + +## Requirements + +- You have [Supabase](https://supabase.com) account. If you don't, sign up at https://supabase.com/ +- You have a [Picket](https://picketapi.com) account. If you don't, sign up at https://picketapi.com/ +- You've read the [Picket Setup Guide](https://docs.picketapi.com/picket-docs/quick-start-guides/quick-start-guides/start-here-setup) +- Familiarity with [React](https://reactjs.org/) and [Next.js](https://nextjs.org/) + +## Step 1: Create a Picket Project + +First, we'll create a new project in our [Picket dashboard](https://picketapi.com/dashboard). + +Click the `Create New Project` button at the top of the Projects section on your [Picket dashboard](https://picketapi.com/dashboard). Edit the project to give it a memorable name. + +![Picket project settings](/docs/img/guides/integrations/picket/picket_project.png) + +We're done for now! We'll revisit this project when we are setting up environment variables in our app. + +## Step 2: Create a Supabase Project + +From your [Supabase dashboard](https://app.supabase.com/), click `New project`. + +Enter a `Name` for your Supabase project. + +Enter a secure `Database Password`. + +Select the any `Region`. + +Click `Create new project`. + +![Supabase project settings](/docs/img/guides/integrations/picket/supabase_project.png) + +## Step 3: Create new New Table with RLS in Supabase + +### Create a `todos` Table + +From the sidebar menu in the [Supabase dashboard](https://app.supabase.com/), click `Table editor`, then `New table`. + +Enter `todos` as the `Name` field. + +Select `Enable Row Level Security (RLS)`. + +Create four columns: + +- `name` as `text` +- `wallet_address` as `text` +- `completed` as `bool` with the default value `false` +- `created_at` as timestamptz with a default value of `now()` + +Click `Save` to create the new table. + +![todos table](/docs/img/guides/integrations/picket/new_table.png) + +### Setup Row Level Security (RLS) + +Now we want to make sure that only the `todos` owner, the user's `wallet_address`, can access their todos. The key component of the this RLS policy is the expression + +```sql +((jwt() ->> 'walletAddress'::text) = wallet_address) +``` + +This expression checks that the wallet address in the requesting JWT access token is the same as the `wallet_address` in the `todos` table. + +![RLS policy](/docs/img/guides/integrations/picket/rls_policy.png) + +## Step 4: Create a Next.js app + +Now, let's start building! + +Create a [new Typescript Next.js app](https://nextjs.org/docs/getting-started) + +```bash +npx create-next-app@latest --typescript +``` + +Create a `.env.local` file and enter the following values + +- `NEXT_PUBLIC_PICKET_PUBLISHABLE_KEY` => Copy the publishable key from the Picket project you created in step 1 +- `PICKET_PROJECT_SECRET_KEY` => Copy the secret key from the Picket project you created in the step 1 +- `NEXT_PUBLIC_SUPABASE_URL` => You can find this URL under "Settings > API" in your Supabase project +- `NEXT_PUBLIC_SUPABASE_ANON_KEY` => You can find this project API key under "Settings > API" in your Supabase project +- `SUAPBASE_JWT_SECRET`=> You can find this secret under "Settings > API" in your Supabase project + +```txt +NEXT_PUBLIC_PICKET_PUBLISHABLE_KEY="YOUR_PICKET_PUBLISHABLE_KEY" +PICKET_PROJECT_SECRET_KEY="YOUR_PICKET_PROJECT_SECRET_KEY" +NEXT_PUBLIC_SUPABASE_URL="YOUR_SUPABASE_URL" +NEXT_PUBLIC_SUPABASE_ANON_KEY="YOUR_SUPABASE_ANON_KEY" +SUPABASE_JWT_SECRET="YOUR_SUPABASE_JWT_SECRET" +``` + +## Step 5: Setup Picket for Wallet Login + +> For more information on how to setup [Picket](https://picketapi.com) in your Next.js app, checkout the [Picket getting started guide](https://docs.picketapi.com/picket-docs/quick-start-guides/quick-start-guides/wallet-login) +> After initializing our app, we can setup Picket. + +Install the Picket [React](/picket-docs/reference/libraries-and-sdks/react-sdk-picket-react) and [Node](/picket-docs/reference/libraries-and-sdks/node.js-library-picket-node) libraries + +```bash +npm i @picketapi/picket-react @picketapi/picket-node +``` + +Update `pages/_app.tsx` to setup the `PicketProvider` + +```tsx +import '../styles/globals.css' +import type { AppProps } from 'next/app' + +import { PicketProvider } from '@picketapi/picket-react' + +export default function App({ Component, pageProps }: AppProps) { + return ( + + + + ) +} +``` + +Update `pages/index.tsx` to let users log in and out with their wallet + +```tsx +import { GetServerSideProps } from 'next' +import { useRouter } from 'next/router' +import { useCallback } from 'react' + +import styles from '../styles/Home.module.css' + +import { usePicket } from '@picketapi/picket-react' +import { cookieName } from '../utils/supabase' + +type Props = { + loggedIn: boolean +} + +export default function Home(props: Props) { + const { loggedIn } = props + const { login, logout, authState } = usePicket() + const router = useRouter() + + const handleLogin = useCallback(async () => { + let auth = authState + // no need to re-login if they've already connected with Picket + if (!auth) { + // login with Picket + auth = await login() + } + + // login failed + if (!auth) return + + // create a corresponding supabase access token + await fetch('/api/login', { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ + accessToken: auth.accessToken, + }), + }) + // redirect to their todos page + router.push('/todos') + }, [authState, login, router]) + + const handleLogout = useCallback(async () => { + // clear both picket and supabase session + await logout() + await fetch('/api/logout', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + }) + // refresh the page + router.push('/') + }, [logout, router]) + + return ( +
      +
      + {loggedIn ? ( + + ) : ( + + )} +
      +
      + ) +} + +export const getServerSideProps: GetServerSideProps = async ({ req }) => { + // get supabase token server-side + const accessToken = req.cookies[cookieName] + + if (!accessToken) { + return { + props: { + loggedIn: false, + }, + } + } + + return { + props: { + loggedIn: true, + }, + } +} +``` + +## Step 6: Issue a Supabase JWT on Wallet Login + +Great, now we have setup a typical Picket Next.js app. Next, we need to implement the log in/out API routes to allow users to securely query our Supabase project. + +First, install dependencies + +```bash +npm install @supabase/supabase-js jsonwebtoken cookie js-cookie +``` + +Create a utility function to create a Supabase client with a custom access token in `utils/supabase.ts` + +```ts +import { createClient, SupabaseClientOptions } from '@supabase/supabase-js' + +export const cookieName = 'sb-access-token' + +const getSupabase = (accessToken: string) => { + const options: SupabaseClientOptions<'public'> = {} + + if (accessToken) { + options.global = { + headers: { + // This gives Supabase information about the user (wallet) making the request + Authorization: `Bearer ${accessToken}`, + }, + } + } + + const supabase = createClient( + process.env.NEXT_PUBLIC_SUPABASE_URL!, + process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!, + options + ) + + return supabase +} + +export { getSupabase } +``` + +Create new api route `pages/api/login.ts`. This route validates the Picket access token then issues another equivalent Supabase access token for us to use with the Supabase client. + +```ts +import type { NextApiRequest, NextApiResponse } from 'next' +import jwt from 'jsonwebtoken' +import cookie from 'cookie' +import Picket from '@picketapi/picket-node' + +import { cookieName } from '../../utils/supabase' + +// create picket node client with your picket secret api key +const picket = new Picket(process.env.PICKET_PROJECT_SECRET_KEY!) + +const expToExpiresIn = (exp: number) => exp - Math.floor(Date.now() / 1000) + +export default async function handler(req: NextApiRequest, res: NextApiResponse) { + const { accessToken } = req.body + // omit expiration time,.it will conflict with jwt.sign + const { exp, ...payload } = await picket.validate(accessToken) + const expiresIn = expToExpiresIn(exp) + + const supabaseJWT = jwt.sign( + { + ...payload, + }, + process.env.SUPABASE_JWT_SECRET!, + { + expiresIn, + } + ) + + // Set a new cookie with the name + res.setHeader( + 'Set-Cookie', + cookie.serialize(cookieName, supabaseJWT, { + path: '/', + secure: process.env.NODE_ENV !== 'development', + // allow the cookie to be accessed client-side + httpOnly: false, + sameSite: 'strict', + maxAge: expiresIn, + }) + ) + res.status(200).json({}) +} +``` + +And now create an equivalent logout api route `/pages/api/logout.ts` to delete the Supabase access token cookie. + +```ts +import type { NextApiRequest, NextApiResponse } from 'next' +import cookie from 'cookie' + +import { cookieName } from '../../utils/supabase' + +export default async function handler(_req: NextApiRequest, res: NextApiResponse) { + // Clear the supabase cookie + res.setHeader( + 'Set-Cookie', + cookie.serialize(cookieName, '', { + path: '/', + maxAge: -1, + }) + ) + + res.status(200).json({}) +} +``` + +We can now login and logout to the app with our wallet! + +## Step 7: Interacting with Data in Supabase + +Now that we can login to the app, it's time to start interacting with Supabase. Let's make a todo list page for authenticated users. + +Create a new file `pages/todos.tsx` + +```tsx +import { GetServerSideProps } from 'next' +import Head from 'next/head' +import Link from 'next/link' +import { useState, useMemo } from 'react' +import jwt from 'jsonwebtoken' +import Cookies from 'js-cookie' + +import styles from '../styles/Home.module.css' + +import { getSupabase, cookieName } from '../utils/supabase' + +type Todo = { + name: string + completed: boolean +} + +type Props = { + walletAddress: string + todos: Todo[] +} + +const displayWalletAddress = (walletAddress: string) => + `${walletAddress.slice(0, 6)}...${walletAddress.slice(-4)}` + +export default function Todos(props: Props) { + const { walletAddress } = props + const [todos, setTodos] = useState(props.todos) + + // avoid re-creating supabase client every render + const supabase = useMemo(() => { + const accessToken = Cookies.get(cookieName) + return getSupabase(accessToken || '') + }, []) + + return ( +
      + + Picket 💜 Supabase + + +
      +

      Your Personal Todo List

      +
      +

      Welcome {displayWalletAddress(walletAddress)},

      +

      + Your todo list is stored in Supabase and are only accessible to you and your wallet + address. Picket + Supabase makes it easy to build scalable, hybrid web2 and web3 apps. + Use Supabase to store non-critical or private data off-chain like user app preferences + or todo lists. +

      +
      +
      +

      Todo List

      + {todos.map((todo) => ( +
      + { + await supabase.from('todos').upsert({ + wallet_address: walletAddress, + name: todo.name, + completed: !todo.completed, + }) + setTodos((todos) => + todos.map((t) => (t.name === todo.name ? { ...t, completed: !t.completed } : t)) + ) + }} + /> + + {todo.name} + +
      + ))} +
      + + Go back home → + +
      +
      +
      +
      + ) +} + +export const getServerSideProps: GetServerSideProps = async ({ req }) => { + // example of fetching data server-side + const accessToken = req.cookies[cookieName] + + // require authentication + if (!accessToken) { + return { + redirect: { + destination: '/', + }, + props: { + walletAddress: '', + todos: [], + }, + } + } + + // check if logged in user has completed the tutorial + const supabase = getSupabase(accessToken) + const { walletAddress } = jwt.decode(accessToken) as { + walletAddress: string + } + + // get todos for the users + // if none exist, create the default todos + let { data } = await supabase.from('todos').select('*') + + if (!data || data.length === 0) { + let error = null + ;({ data, error } = await supabase + .from('todos') + .insert([ + { + wallet_address: walletAddress, + name: 'Complete the Picket + Supabase Tutorial', + completed: true, + }, + { + wallet_address: walletAddress, + name: 'Create a Picket Account (https://picketapi.com/)', + completed: false, + }, + { + wallet_address: walletAddress, + name: 'Read the Picket Docs (https://docs.picketapi.com/)', + completed: false, + }, + { + wallet_address: walletAddress, + name: 'Build an Awesome Web3 Experience', + completed: false, + }, + ]) + .select('*')) + + if (error) { + // log error and redirect home + console.error(error) + return { + redirect: { + destination: '/', + }, + props: { + walletAddress: '', + todos: [], + }, + } + } + } + + return { + props: { + walletAddress, + todos: data as Todo[], + }, + } +} +``` + +This is a long file, but don't be intimidated. The page is actually straightforward. It + +1. Verifies server-side that the user is authenticated and if they are not redirects them to the homepage +2. Checks to see if they already have `todos` . If so, it returns them. If not, it initializes them for the users +3. We render the `todos` and when the user selects or deselects a todo, we update the data in the database + +## Step 8: Try it Out! + +And that's it. If you haven't already, run your app to test it out yourself + +```bash +# start the app +npm run dev +# open http://localhost:3000 +``` + +### What's Next? + +- Explore the [Picket documentation](https://docs.picketapi.com/picket-docs/) +- Play with the live [Picket + Supabase demo](https://picket-supabase-auth-example-v36z.vercel.app/) +- Checkout Picket's [example Github repositories](https://github.com/picketapi) + +### Common Use-Case for Picket + Supabase + +- Account linking. Allow users to associate their wallet address(es) with their existing web2 account in your app +- Leverage Supabase's awesome libraries and ecosystem while still enabling wallet login +- Store app-specific data, like user preferences, about your user's wallet adress off-chain +- Cache on-chain data to improve your DApp's performance + +export const Page = ({ children }) => + +export default Page diff --git a/apps/docs/pages/guides/integrations/stytch.mdx b/apps/docs/pages/guides/integrations/stytch.mdx index 2ff0f691ae2..a76eacfeaa3 100644 --- a/apps/docs/pages/guides/integrations/stytch.mdx +++ b/apps/docs/pages/guides/integrations/stytch.mdx @@ -13,7 +13,7 @@ In this guide we will build a simple expense tracker web application using Stytc We will leverage Supabase to store and authorize access to user data. Supabase makes it simple to set up Row Level Security (RLS) policies which ensure users can only read and write data that they are authorized to do so. If you do not already have a Supabase account, you will need to create one. -This guide will use [Next.js](https://nextjs.org/) which is a web application framework built on top of React. Stytch provides a [Node.js library](https://github.com/stytchauth/stytch-node) and a [React library](https://github.com/stytchauth/stytch-react) which makes building Next.js apps super easy. +This guide will use [Next.js](https://nextjs.org/) which is a web application framework built on top of React. Stytch provides a [Node.js library](https://github.com/stytchauth/stytch-node) and a [React library](https://stytch.com/docs/sdks/javascript-sdk) which makes building Next.js apps super easy. > Note: You can find a completed version of this project on [Github](https://github.com/stytchauth/stytch-nextjs-supabase). diff --git a/apps/docs/pages/guides/platform/compute-add-ons.mdx b/apps/docs/pages/guides/platform/compute-add-ons.mdx index 7e8f39015ca..d79b9ef62f0 100644 --- a/apps/docs/pages/guides/platform/compute-add-ons.mdx +++ b/apps/docs/pages/guides/platform/compute-add-ons.mdx @@ -8,18 +8,18 @@ export const meta = { Every project on the Supabase Platform comes with its own dedicated Postgres instance running inside a virtual machine (VM). The following table describes the base instance with additional compute add-ons available if you need extra performance when scaling up Supabase. -| Plan | Pricing | CPU | Memory | Disk IO Bandwidth | Connections: Direct | Connections: Pooler | -| --------------- | ------- | ----------------------- | ------ | ----------------- | ------------------- | -------------------- | -| Free (Included) | $0 | 2-core ARM (shared) | 1 GB | Up to 2,606 Mbps | 10 (recommended) | 50 (recommended) | -| Small | $5 | 2-core ARM (shared) | 2 GB | Up to 2,606 Mbps | 30 (recommended) | 75 (recommended) | -| Medium | $50 | 2-core ARM (shared) | 4 GB | Up to 2,606 Mbps | 50 (recommended) | 150 (recommended) | -| Large | $100 | 2-core ARM (dedicated) | 8 GB | Up to 4,750 Mbps | 100 (recommended) | 300 (recommended) | -| XL | $200 | 4-core ARM (dedicated) | 16 GB | Up to 4,750 Mbps | 200 (recommended) | 600 (recommended) | -| 2XL | $400 | 8-core ARM (dedicated) | 32 GB | Up to 4,750 Mbps | 350 (recommended) | 1200 (recommended) | -| 4XL | $950 | 16-core ARM (dedicated) | 64 GB | Up to 4,750 Mbps | 420 (recommended) | 2800 (recommended) | -| 8XL | $1,860 | 32-core ARM (dedicated) | 128 GB | Up to 9,000 Mbps | 450 (recommended) | 5600 (recommended) | -| 12XL | $2,790 | 48-core ARM (dedicated) | 192 GB | Up to 13,500 Mbps | 480 (recommended) | 8600 (recommended) | -| 16XL | $3,720 | 64-core ARM (dedicated) | 256 GB | Up to 19,000 Mbps | 500 (recommended) | 11,600 (recommended) | +| Plan | Pricing | CPU | Memory | Maximum Disk IO Bandwidth | Baseline Disk IO Bandwidth | Connections: Direct (recommended) | Connections: Pooler (recommended) | +| --------------- | ------- | ----------------------- | ------ | ------------------------- | -------------------------- | --------------------------------- | --------------------------------- | +| Free (Included) | $0 | 2-core ARM (shared) | 1 GB | 2,606 Mbps | 87 Mbps | 10 | 50 | +| Small | $5 | 2-core ARM (shared) | 2 GB | 2,606 Mbps | 174 Mbps | 30 | 75 | +| Medium | $50 | 2-core ARM (shared) | 4 GB | 2,606 Mbps | 347 Mbps | 50 | 150 | +| Large | $100 | 2-core ARM (dedicated) | 8 GB | 4,750 Mbps | 630 Mbps | 100 | 300 | +| XL | $200 | 4-core ARM (dedicated) | 16 GB | 4,750 Mbps | 1,188 Mbps | 200 | 600 | +| 2XL | $400 | 8-core ARM (dedicated) | 32 GB | 4,750 Mbps | 2,375 Mbps | 350 | 1200 | +| 4XL | $950 | 16-core ARM (dedicated) | 64 GB | 4,750 Mbps | 4,750 Mbps | 420 | 2800 | +| 8XL | $1,860 | 32-core ARM (dedicated) | 128 GB | 9,500 Mbps | 9,500 Mbps | 450 | 5600 | +| 12XL | $2,790 | 48-core ARM (dedicated) | 192 GB | 14,250 Mbps | 14,250 Mbps | 480 | 8600 | +| 16XL | $3,720 | 64-core ARM (dedicated) | 256 GB | 19,000 Mbps | 19,000 Mbps | 500 | 11,600 | [Contact us](https://supabase.com/contact/enterprise) if you require a custom plan. @@ -33,7 +33,9 @@ When considering compute upgrades, assess whether your bottlenecks are hardware- ## Disk IO bandwidth -Disk IO bandwidth can be measured in IOPS, a unit of measurement representing the number of input/output operations per second. These operations are calculated in Megabits per second. Depending on the read/write load of your application, you may need to upgrade to a larger instance capable of a higher number of IOPS. If you're unsure of how many IOPS your application requires, you can load test your project and inspect these [metrics in the Dashboard](https://app.supabase.com/project/_/reports). Alternatively, you can start on a smaller instance size and upgrade later as needed. +SSD Disks are attached to your servers and the disk performance of your workload is determined by the Disk IO bandwidth of this connection. Smaller compute instances can burst up to the maximum disk IO bandwidth for 30 minutes in a day. Beyond that, the performance reverts to the baseline disk IO bandwidth. For example, the free tier can burst up to 2,606 Mbps for 30 minutes a day and reverts to the baseline performance of 87 Mbps. If you need consistent disk performance, choose the 4XL or larger compute add-on which has the same baseline and maximum disk IO bandwidth. + +If you're unsure of how many IOPS your application requires, you can load test your project and inspect these [metrics in the Dashboard](https://app.supabase.com/project/_/reports). If the `Daily Disk IO Budget % Remaining` stat is less than 100%, it indicates that your workload has burst beyond the baseline IO throughput during the day. If this metric drops to zero, the workload has used up all the burst IO throughput minutes during the day and is running at the baseline performance. These projects are good candidates for upgrading to a larger compute add with higher baseline throughput. export const Page = ({ children }) => diff --git a/apps/docs/pages/index.mdx b/apps/docs/pages/index.mdx index 17bc30954ec..5de1c11462e 100644 --- a/apps/docs/pages/index.mdx +++ b/apps/docs/pages/index.mdx @@ -11,16 +11,15 @@ export const meta = {

      Supabase is an open source Firebase alternative providing all the backend features you need to - build a product. [Learn more](/docs/guides/getting-started/architecture) about Supabase, start - with the [tutorials](/docs/guides/getting-started#tutorials), or dive straight into the different - products and APIs. + build a product. [Learn more](/docs/guides/getting-started/architecture) about Supabase, follow a + quickstart for an overview, or dive straight into the different products and APIs.

      {/* start container */}
      -
      +
      Get started
      - + - + + + + + +
      @@ -106,7 +110,7 @@ export const meta = { md:items-center md:gap-3 ">

      Ready to make a fully working app?

      -

      Follow the step-by-step tutorials.

      +

      Follow the step-by-step tutorials.

diff --git a/apps/docs/public/img/guides/database/extensions/postgis/map.png b/apps/docs/public/img/guides/database/extensions/postgis/map.png new file mode 100644 index 00000000000..ef368146ad6 Binary files /dev/null and b/apps/docs/public/img/guides/database/extensions/postgis/map.png differ diff --git a/apps/docs/public/img/guides/integrations/picket/new_table.png b/apps/docs/public/img/guides/integrations/picket/new_table.png new file mode 100644 index 00000000000..72aa9b21ea2 Binary files /dev/null and b/apps/docs/public/img/guides/integrations/picket/new_table.png differ diff --git a/apps/docs/public/img/guides/integrations/picket/picket_project.png b/apps/docs/public/img/guides/integrations/picket/picket_project.png new file mode 100644 index 00000000000..6d359e9af83 Binary files /dev/null and b/apps/docs/public/img/guides/integrations/picket/picket_project.png differ diff --git a/apps/docs/public/img/guides/integrations/picket/rls_policy.png b/apps/docs/public/img/guides/integrations/picket/rls_policy.png new file mode 100644 index 00000000000..347038ebe90 Binary files /dev/null and b/apps/docs/public/img/guides/integrations/picket/rls_policy.png differ diff --git a/apps/docs/public/img/guides/integrations/picket/supabase_project.png b/apps/docs/public/img/guides/integrations/picket/supabase_project.png new file mode 100644 index 00000000000..97c441b6ef8 Binary files /dev/null and b/apps/docs/public/img/guides/integrations/picket/supabase_project.png differ diff --git a/apps/www/_blog/2020-07-09-postgresql-templates.mdx b/apps/www/_blog/2020-07-09-postgresql-templates.mdx index 7550d0a5b3c..e0908248c7f 100644 --- a/apps/www/_blog/2020-07-09-postgresql-templates.mdx +++ b/apps/www/_blog/2020-07-09-postgresql-templates.mdx @@ -8,6 +8,7 @@ author_image_url: https://avatars0.githubusercontent.com/u/26374889?s=400&u=f5e3 authorURL: https://github.com/dragarcia tags: - postgres + - planetpg date: '07-09-2020' --- diff --git a/apps/www/_blog/2020-07-17-postgresql-physical-logical-backups.mdx b/apps/www/_blog/2020-07-17-postgresql-physical-logical-backups.mdx index c6d41b41283..e1a6fc1801e 100644 --- a/apps/www/_blog/2020-07-17-postgresql-physical-logical-backups.mdx +++ b/apps/www/_blog/2020-07-17-postgresql-physical-logical-backups.mdx @@ -8,6 +8,7 @@ author_image_url: https://avatars0.githubusercontent.com/u/26374889?s=400&u=f5e3 authorURL: https://github.com/dragarcia tags: - postgres + - planetpg date: '07-07-2020' --- diff --git a/apps/www/_blog/2020-08-02-continuous-postgresql-backup-walg.mdx b/apps/www/_blog/2020-08-02-continuous-postgresql-backup-walg.mdx index de0b4c6e801..5ef8452afd8 100644 --- a/apps/www/_blog/2020-08-02-continuous-postgresql-backup-walg.mdx +++ b/apps/www/_blog/2020-08-02-continuous-postgresql-backup-walg.mdx @@ -8,6 +8,7 @@ author_image_url: https://avatars0.githubusercontent.com/u/26374889?s=400&u=f5e3 authorURL: https://github.com/dragarcia tags: - postgres + - planetpg date: '08-02-2020' --- diff --git a/apps/www/_blog/2020-11-18-postgresql-views.mdx b/apps/www/_blog/2020-11-18-postgresql-views.mdx index 5237a9c9675..8f20842d9c6 100644 --- a/apps/www/_blog/2020-11-18-postgresql-views.mdx +++ b/apps/www/_blog/2020-11-18-postgresql-views.mdx @@ -9,6 +9,7 @@ authorURL: https://github.com/dragarcia image: postgres-views.png tags: - postgres + - planetpg date: '11-18-2020' --- diff --git a/apps/www/_blog/2021-02-27-cracking-postgres-interview.mdx b/apps/www/_blog/2021-02-27-cracking-postgres-interview.mdx index 8d1f2cf067a..9e83a52bb99 100644 --- a/apps/www/_blog/2021-02-27-cracking-postgres-interview.mdx +++ b/apps/www/_blog/2021-02-27-cracking-postgres-interview.mdx @@ -11,6 +11,7 @@ thumb: elephants.png tags: - sql - postgres + - planetpg date: '02-27-2021' --- diff --git a/apps/www/_blog/2021-03-05-postgres-as-a-cron-server.mdx b/apps/www/_blog/2021-03-05-postgres-as-a-cron-server.mdx index 28adb8d679f..c879a5ca8cb 100644 --- a/apps/www/_blog/2021-03-05-postgres-as-a-cron-server.mdx +++ b/apps/www/_blog/2021-03-05-postgres-as-a-cron-server.mdx @@ -10,6 +10,7 @@ image: supabase-postgres-cron.png thumb: supabase-postgres-cron.png tags: - postgres + - planetpg date: '03-05-2021' --- diff --git a/apps/www/_blog/2021-07-01-roles-postgres-hooks.mdx b/apps/www/_blog/2021-07-01-roles-postgres-hooks.mdx index b81e9211b3c..9c45c3ff78a 100644 --- a/apps/www/_blog/2021-07-01-roles-postgres-hooks.mdx +++ b/apps/www/_blog/2021-07-01-roles-postgres-hooks.mdx @@ -9,6 +9,7 @@ image: postgres-hooks/og-postgres-hooks.jpg thumb: postgres-hooks/cover-postgres-hooks.jpg tags: - postgres + - planetpg date: '2021-07-02' --- diff --git a/apps/www/_blog/2022-03-08-audit.mdx b/apps/www/_blog/2022-03-08-audit.mdx index 88993d48113..f482933101f 100644 --- a/apps/www/_blog/2022-03-08-audit.mdx +++ b/apps/www/_blog/2022-03-08-audit.mdx @@ -9,6 +9,7 @@ image: supa-audit/postgres_auditing_in_150_lines_of_SQL.png thumb: supa-audit/postgres_auditing_in_150_lines_of_SQL.png tags: - postgres + - planetpg date: '2022-03-08' toc_depth: 3 --- diff --git a/apps/www/_blog/2022-06-28-partial-postgresql-data-dumps-with-rls.mdx b/apps/www/_blog/2022-06-28-partial-postgresql-data-dumps-with-rls.mdx index b2f6e508cc1..1ddc4baaf0a 100644 --- a/apps/www/_blog/2022-06-28-partial-postgresql-data-dumps-with-rls.mdx +++ b/apps/www/_blog/2022-06-28-partial-postgresql-data-dumps-with-rls.mdx @@ -7,6 +7,7 @@ thumb: partial-dumps/og-partial-dumps-with-rls.png tags: - postgresql - data + - planetpg date: '2022-06-28' toc_depth: 3 --- diff --git a/apps/www/_blog/2022-07-18-seen-by-in-postgresql.mdx b/apps/www/_blog/2022-07-18-seen-by-in-postgresql.mdx index 36575dff7ba..32414a702a9 100644 --- a/apps/www/_blog/2022-07-18-seen-by-in-postgresql.mdx +++ b/apps/www/_blog/2022-07-18-seen-by-in-postgresql.mdx @@ -6,6 +6,7 @@ image: seen-by/seen-by-postgresql-thumb.png thumb: seen-by/seen-by-postgresql-thumb.png tags: - postgres + - planetpg date: '2022-07-18' toc_depth: 3 --- diff --git a/apps/www/_blog/2022-09-08-choosing-a-postgres-primary-key.mdx b/apps/www/_blog/2022-09-08-choosing-a-postgres-primary-key.mdx index 7b96861b886..497bf573aaf 100644 --- a/apps/www/_blog/2022-09-08-choosing-a-postgres-primary-key.mdx +++ b/apps/www/_blog/2022-09-08-choosing-a-postgres-primary-key.mdx @@ -6,6 +6,7 @@ image: primary-keys/postgres-primary-key.jpg thumb: primary-keys/postgres-primary-key.jpg tags: - postgres + - planetpg date: '2022-09-08' toc_depth: 3 --- diff --git a/apps/www/_blog/2022-10-03-postgres-wasm.mdx b/apps/www/_blog/2022-10-03-postgres-wasm.mdx index 89f2c6947fb..13121a74747 100644 --- a/apps/www/_blog/2022-10-03-postgres-wasm.mdx +++ b/apps/www/_blog/2022-10-03-postgres-wasm.mdx @@ -6,6 +6,7 @@ image: postgres-wasm/postgres-wasm.jpg thumb: postgres-wasm/postgres-wasm.jpg tags: - postgres + - planetpg date: '2022-10-03' toc_depth: 3 --- diff --git a/apps/www/_blog/2022-10-14-postgres-full-text-search-vs-the-rest.mdx b/apps/www/_blog/2022-10-14-postgres-full-text-search-vs-the-rest.mdx index 763143a6c6d..1a587021735 100644 --- a/apps/www/_blog/2022-10-14-postgres-full-text-search-vs-the-rest.mdx +++ b/apps/www/_blog/2022-10-14-postgres-full-text-search-vs-the-rest.mdx @@ -6,6 +6,7 @@ image: postgres-fts-vs-the-rest/postgres-full-text-search.jpg thumb: postgres-fts-vs-the-rest/postgres-full-text-search.jpg tags: - postgres + - planetpg date: '2022-10-14' toc_depth: 3 --- diff --git a/apps/www/_blog/2022-10-27-postgresql-commitfest.mdx b/apps/www/_blog/2022-10-27-postgresql-commitfest.mdx index 0e9a8af3f3f..929650f9591 100644 --- a/apps/www/_blog/2022-10-27-postgresql-commitfest.mdx +++ b/apps/www/_blog/2022-10-27-postgresql-commitfest.mdx @@ -6,6 +6,7 @@ image: what-is-postgres-commitfest/what-is-postgres-commitfest.jpg thumb: what-is-postgres-commitfest/what-is-postgres-commitfest.jpg tags: - postgres + - planetpg date: '2022-10-27' toc_depth: 3 --- diff --git a/apps/www/_blog/2022-11-24-sql-or-nosql-both-with-postgresql.mdx b/apps/www/_blog/2022-11-24-sql-or-nosql-both-with-postgresql.mdx index 5198e23f3df..d36e20d6b0f 100644 --- a/apps/www/_blog/2022-11-24-sql-or-nosql-both-with-postgresql.mdx +++ b/apps/www/_blog/2022-11-24-sql-or-nosql-both-with-postgresql.mdx @@ -6,6 +6,7 @@ image: 2022-11-24-sql-nosql-postgresql/sql-nosql-postgresql.jpg thumb: 2022-11-24-sql-nosql-postgresql/sql-nosql-postgresql.jpg tags: - postgres + - planetpg date: '2022-11-24' toc_depth: 3 --- diff --git a/apps/www/_blog/2022-12-01-transparent-column-encryption-with-postgres.mdx b/apps/www/_blog/2022-12-01-transparent-column-encryption-with-postgres.mdx index 739236e69d8..0759568c18b 100644 --- a/apps/www/_blog/2022-12-01-transparent-column-encryption-with-postgres.mdx +++ b/apps/www/_blog/2022-12-01-transparent-column-encryption-with-postgres.mdx @@ -6,6 +6,7 @@ image: transparent-column-encryption-with-postgres.jpg thumb: transparent-column-encryption-with-postgres.jpg tags: - postgres + - planetpg date: '2022-12-01' toc_depth: 3 --- diff --git a/apps/www/_blog/2022-12-16-new-in-postgres-15.mdx b/apps/www/_blog/2022-12-16-new-in-postgres-15.mdx index 6eb78cee729..dffd813c4e0 100644 --- a/apps/www/_blog/2022-12-16-new-in-postgres-15.mdx +++ b/apps/www/_blog/2022-12-16-new-in-postgres-15.mdx @@ -7,6 +7,7 @@ thumb: lw6-community/pg15.png tags: - postgres - launch-week + - planetpg date: '2022-12-16' toc_depth: 3 --- diff --git a/apps/www/_blog/2022-12-16-pg-graphql-v1.mdx b/apps/www/_blog/2022-12-16-pg-graphql-v1.mdx index d72dcdfd1d4..6104a05411a 100644 --- a/apps/www/_blog/2022-12-16-pg-graphql-v1.mdx +++ b/apps/www/_blog/2022-12-16-pg-graphql-v1.mdx @@ -8,6 +8,7 @@ tags: - graphql - postgres - launch-week + - planetpg date: '2022-12-16' toc_depth: 3 --- diff --git a/apps/www/_blog/2022-12-16-postgres-point-in-time-recovery.mdx b/apps/www/_blog/2022-12-16-postgres-point-in-time-recovery.mdx index 3e9007dbe0b..b53160ee936 100644 --- a/apps/www/_blog/2022-12-16-postgres-point-in-time-recovery.mdx +++ b/apps/www/_blog/2022-12-16-postgres-point-in-time-recovery.mdx @@ -8,6 +8,7 @@ tags: - launch-week - postgres - backups + - planetpg date: '2022-12-16' toc_depth: 3 --- diff --git a/apps/www/_blog/2022-12-16-postgrest-11-prerelease.mdx b/apps/www/_blog/2022-12-16-postgrest-11-prerelease.mdx index 138a576eefc..52a4f18fa44 100644 --- a/apps/www/_blog/2022-12-16-postgrest-11-prerelease.mdx +++ b/apps/www/_blog/2022-12-16-postgrest-11-prerelease.mdx @@ -7,6 +7,7 @@ thumb: lw6-community/postgrest.png tags: - postgres - launch-week + - planetpg date: '2022-12-16' toc_depth: 3 --- diff --git a/apps/www/_blog/2022-12-16-vault-now-in-beta.mdx b/apps/www/_blog/2022-12-16-vault-now-in-beta.mdx index 141e75ed838..37a6397743f 100644 --- a/apps/www/_blog/2022-12-16-vault-now-in-beta.mdx +++ b/apps/www/_blog/2022-12-16-vault-now-in-beta.mdx @@ -8,6 +8,7 @@ tags: - launch-week - postgres - encryption + - planetpg date: '2022-12-16' toc_depth: 3 --- diff --git a/apps/www/_blog/2023-01-03-launch-week-6-hackathon-winners.mdx b/apps/www/_blog/2023-01-03-launch-week-6-hackathon-winners.mdx new file mode 100644 index 00000000000..e1772d9569f --- /dev/null +++ b/apps/www/_blog/2023-01-03-launch-week-6-hackathon-winners.mdx @@ -0,0 +1,130 @@ +--- +title: 'Launch Week 6 Hackathon Winners' +description: Announcing the winners of the Launch Week 6 Hackathon! +author: andrew_smith,tyler_shukert +image: lw6-hackathon-winners/hackathon-winners.png +thumb: lw6-hackathon-winners/hackathon-winners.png +tags: + - hackathon + - community +date: '2023-01-03' +toc_depth: 2 +--- + +We ended 2022 shipping tons of features in [Launch Week 6](https://supabase.com/launch-week), but the fun hasn’t ended yet, because we get to announce the winners of our [Hackathon No.6](https://supabase.com/blog/launch-week-6-hackathon)! + +As usual, we enjoyed looking at all the awesome projects, and this time we got to share the excitement with the folks from Deno, who judged the [Best Edge Functions Project](https://deno.com/blog/edge-functions-supabase-launch-week-6-hackathon#Winners). You can view all the submissions on [madewithsupabase.com](https://www.madewithsupabase.com/). + +And now, without further ado, congratulations to the winners of Supabase Launch Week 6 Hackathon! + +## Best Overall Project + +### Winner + +[Depulso](https://github.com/KarthikeyanRanasthala/depulso/) - by [@\_iamkarthikeyan](https://twitter.com/_iamkarthikeyan) and [@SindhuMansi](https://twitter.com/SindhuMansi). + +Depulso is a CLI and a web app to easily and quickly setup static site deployments. Each deployment gets assigned a .depulso.site subdomain with SSL. + +![Depulso](/images/blog/lw6-hackathon-winners/depulso.png) + +### Runner Up + +[Supa SQL App](https://github.com/rodgetech/supa-sql-app) - by [@luis_rodge](https://twitter.com/luis_rodge). + +Supa SQL App turns human language into SQL queries. Simply tell it what you want to do and it will generate the SQL query for you. + +![Supa SQL App](/images/blog/lw6-hackathon-winners/supa-sql-app.png) + +## Most Fun/Interesting + +### Winner + +[HTTP Sense](https://github.com/http-sense/http-sense) - by [@tchyut_p](https://twitter.com/tchyut_p) and [@nkitsaini](https://github.com/nkitsaini). + +HTTP Sense is a reverse proxy and network monitoring tool that provides comprehensive network monitoring for your backend servers and microservices. It provides a secure and high-performance gateway that can be used to monitor incoming traffic. + +![HTTP Sense](/images/blog/lw6-hackathon-winners/http-sense.png) + +### Runner Up + +[supabase-js-rs](https://github.com/wa1aric/supabase-js-rs) - by [@wa1aric](https://twitter.com/wa1aric). + +supabase-js-rs is a rust bindings for Supabase JavaScript library via WebAssembly. You can import it in your Rust WASM project to interact with Supabase. + +![supabase-js-rs](/images/blog/lw6-hackathon-winners/supabase-js-rs.png) + +## Best Flutter Project + +### Winner + +[supaquiz - Multiplayer trivia/quiz game](https://github.com/yallurium/supaquiz) - by [@yallurium](https://twitter.com/yallurium). + +Supaquiz is a realtime multiplayer trivia/quiz game where you can host or join games with other players remotely. + +![supaquiz - Multiplayer trivia/quiz game](/images/blog/lw6-hackathon-winners/supaquiz.png) + +## Best Storage Project + +### Winner + +[Lookout](https://github.com/luxecraft/lookout) - by [Aman](https://twitter.com/Amanrk28), [Nivas](https://twitter.com/nithsua), [Hari](https://twitter.com/_harisaran_), and [Sabesh](https://twitter.com/sabeshbharathi). + +Lookout is an application that lets you discover images from across various media by searching them using their metadata - their properties, content inside the image, textual data found inside the image etc. + +![Lookout](/images/blog/lw6-hackathon-winners/lookout.png) + +### Runner Up + +[Penelope AI](https://github.com/taishikato/Penelope-AI) - by [@taishik\_](https://twitter.com/taishik_). + +Penelope AI is an AI writing assistant that can summarize, paraphrase, create stories, and auto-complete from your writing. + +![Penelope AI - Unleash the power of your writing with the most sophisticated AI writing assistant.](/images/blog/lw6-hackathon-winners/penelope-ai.png) + +## Best Edge Functions Project + +### Winner + +[Vista](https://github.com/zernonia/vista) - by [@zernonia](https://twitter.com/zernonia). + +Vista is a video transcoder that adds subtitles from the audio. The design of the subtitles are customizable to fit the theme of the video. + +![Vista](/images/blog/lw6-hackathon-winners/vista.png) + +### Runner Up + +[Supa Que](https://github.com/suciptoid/supaque) - by [@suciptodev](https://twitter.com/suciptodev). + +Supa Que is a serverless queue worker. + +![Supa Que](/images/blog/lw6-hackathon-winners/supaque.png) + +## The Prizes + +As promised in the [hackathon announcement article](https://supabase.com/blog/launch-week-6-hackathon) the winners of the Best overall project will be granted the extremely limited edition Supabase Darkmode Keyboard! + +![Supabase Keyboard](/images/blog/lw6-hackathon/keyboard.png) + +Each members of the winners in other categories will receive a limited edition supaverified swag kit, and the winners of the Best Edge Functions projects will receive swag kits from the Deno team. + +![Swag kit](/images/blog/lw6-hackathon/swagkit.png) + +The swag kits are limited edition and extremely valuable, so keep them safe! Again, congratulations on all the winners! + +## Hang out with us and the winners of the Hackathon + +To celebrate the massive success of the Hackathon, we are hosting a Discord Stage Channel and inviting the winners and everyone who participated. Join us on Thursday, Jan 5th at 7:00 AM PST. + +[**Join the Discord event**](https://discord.gg/8gGcMp5x?event=1059852103754989659) + +![Join Supabase Discord Channel](/images/blog/hackathon/community.png) + +### Get Started Guides + +If you're inspired to build, check out some of the latest resources: + +- [**supabase-js v2**](https://supabase.com/blog/supabase-js-v2) +- [**Supabase Storage Guide**](https://supabase.com/docs/guides/storage) +- [**Flutter Quick Start Guide**](https://supabase.com/docs/guides/with-flutter) +- [**Supabase CLI local development guide**](https://supabase.com/docs/guides/local-development) +- [**Edge Functions Guide**](https://supabase.com/docs/guides/functions) diff --git a/apps/www/_blog/2023-01-05-supabase-beta-december-2022.mdx b/apps/www/_blog/2023-01-05-supabase-beta-december-2022.mdx new file mode 100644 index 00000000000..08162d1e9d5 --- /dev/null +++ b/apps/www/_blog/2023-01-05-supabase-beta-december-2022.mdx @@ -0,0 +1,121 @@ +--- +title: Supabase Beta December 2022 +description: This month the Beta Update is a Launch Week 6 Special, where we review the cascade of announcements. +author: ant_wilson +image: 2023-01-05-december-beta-update/monthly-update-december2022.jpg +thumb: 2023-01-05-december-beta-update/monthly-update-december2022.jpg +tags: + - release-notes +date: '2023-01-05' +toc_depth: 3 +--- + +Happy New Year! Hope you are off to a great start. We closed 2022 on a high note with [Launch Week 6](https://supabase.com/launch-week) and a cascade of announcements. Here is everything we shipped so you can try them all 💻 + +## Day 1: New Docs + +![Day 1: New Docs](/images/blog/2023-01-05-december-beta-update/docs.jpg) + +Documentation is super important to us, it's part of the product, and the Supabase docs needed a refresh. That's why we worked on a new redesign, better navigation, better reference docs, and we rebuilt the site using Next.js. + +- [Blog Post](https://supabase.com/blog/new-supabase-docs-built-with-nextjs) +- [Video announcement](https://www.youtube.com/watch?v=Q1Amk6iDlF8) + +## Day 2: Storage v2 - Image resizing and Smart CDN + +![Day 2: Storage v2 - Image resizing and Smart CDN](/images/blog/2023-01-05-december-beta-update/storage-v2-image-rezising.jpg) + +We introduced three new features for Supabase Storage: Image resizing, webhooks, and a Smart CDN. These features are designed to work together to deliver a next-gen image resizing system. + +- [Blog Post](https://supabase.com/blog/storage-image-resizing-smart-cdn) +- [Video announcement](https://www.youtube.com/watch?v=NpEl20iuOtg) + +## Day 3 - Multi-factor Authentication via Row Level Security Enforcement + +![Day 3 - Multi-factor Authentication via Row Level Security Enforcement](/images/blog/2023-01-05-december-beta-update/multi-factor-authentication.png) + +We released Multi-factor Authentication (MFA) for everyone, including the option to enforce it via RLS 🔐. Plus, in preparation for releasing SAML, we're "dogfooding" the feature with the introduction of Single Sign On (SSO) on our dashboard. + +- [Blog post](https://supabase.com/blog/mfa-auth-via-rls) +- [Video announcement](https://www.youtube.com/watch?v=He7LI2mv9v0) + +## Day 4 - Supabase Wrappers, a Postgres FDW framework + +![Day 4 - Supabase Wrappers, a Postgres FDW framework](/images/blog/2023-01-05-december-beta-update/supabase-wrappers.jpg) + +Foreign Data Wrappers are a core feature of PostgreSQL. With Supabase Wrappers, we've extended this feature to query other databases or any other external system (including third-party APIs), using SQL. + +- [Blog post](https://supabase.com/blog/postgres-foreign-data-wrappers-rust) +- [Video announcement](https://www.youtube.com/watch?v=QA2qC5F-4OU) + +## Day 5 - The Vault is now in Beta + +![Day 5 - The Vault is now in Beta](/images/blog/2023-01-05-december-beta-update/vault.jpg) + +The Vault is a new Postgres extension that makes it safe and easy to store encrypted secrets and encrypt other stored data in your database. + +- [Blog post](https://supabase.com/blog/vault-now-in-beta) +- [Video announcement](https://www.youtube.com/watch?v=QHLPNDrdN2w) + +## Community Day + +![Community Day](/images/blog/2023-01-05-december-beta-update/community.jpg) + +It's starting to feel like Supabase is really just a "community of communities" 🤗. Far too much has happened in the last 3 months for us to possibly feature it all here, so here's a collection of the highlights! + +[Blog post](https://supabase.com/blog/launch-week-6-community-day) + +## Postgres Ecosystem + +We are all in on Postgres. That is why contributing to the ecosystem is always a priority. Launch Week 6 was no exception, with several announcements: + +![Postgres Ecosystem](/images/blog/2023-01-05-december-beta-update/postgres-ecosystem.jpg) + +- [pg_graphql v1.0](https://supabase.com/blog/pg-graphql-v1) +- [PostgREST 11 pre-release](https://supabase.com/blog/postgrest-11-prerelease) +- [What's new in Postgres 15\?](https://supabase.com/blog/new-in-postgres-15) +- [pg_crdt - an experimental CRDT extension for Postgres](https://supabase.com/blog/postgres-crdt) + +## Custom Domains and Point-in-Time Recovery + +![Custom Domains and Point-in-Time Recovery](/images/blog/2023-01-05-december-beta-update/custom-domains-pitr.jpg) + +Two key features to level up your projects are now available: Custom domains allow you to use your own domain for your Supabase project, while PITR provides the ability for a database to be restored at any specified point in time. + +- [Custom Domains](https://supabase.com/blog/custom-domain-names) +- [Point in Time Recovery](https://supabase.com/blog/postgres-point-in-time-recovery) + +## Hackathon Winners + +![Hackathon Winners](/images/blog/2023-01-05-december-beta-update/lw-6-hackathon.jpg) + +It was great to see so many high-quality projects. The decision wasn't easy, but in the end, the panel of judges chose Depulso as the winner of the Best Overall Project. + +Congratulations 👏 to [@_iamkarthikeyan](https://twitter.com/_iamkarthikeyan) and [@SindhuMansi](https://twitter.com/SindhuMansi) who get each a Supabase Darkmode Keyboard and the $1500 Github sponsorship! + +- [Full list of Winners](https://supabase.com/blog/launch-week-6-hackathon-winners) +- [See all the submissions](https://www.madewithsupabase.com/launch-week-6) + +## Extended Community Highlights + +![Community](/images/blog/2022-june/community.jpg) + +- FlutterFlow and Supabase integration. [Video](https://www.youtube.com/watch?v=hw9Q-NjASbU) +- ClickHouse and PostgreSQL - a match made in data heaven. [Article](https://clickhouse.com/blog/migrating-data-between-clickhouse-postgres) +- Build any Front-end like Admin Panel or CRM for your Supabase. [Article](https://blog.jetadmin.io/how-to-build-any-front-end-such-as-admin-panel-or-crm-for-your-supabase-in-minutes/) +- Everything Svelte: a course with all you need to know to build a modern web application. [Course](https://www.everythingsvelte.com/) +- Edgy Edge Functions: a look at a new Edge Function per week. [Youtube Playlist](https://www.youtube.com/playlist?list=PL5S4mPUpp4OulD3olUW8Eq1IYKpUbk5Ob) +- Pixels, an app that provides canvas to create pixel art. [App](https://pixels.refine.dev/) | [Github Repo](https://github.com/refinedev/refine/tree/next/examples/pixels) +- Supabase Angular authentication with RxJS Observables. [Tutorial](https://dev.to/kylerummens/supabase-angular-authentication-with-rxjs-observables-3d0f) +- Create Calendar Events in React With Google Calendar API and Supabase. [Video Tutorial](https://www.youtube.com/watch?v=tgcCl52EN84) +- Going Serverless with Supabase. [Part 1](https://dev.to/davepar/going-serverless-with-supabase-103h) +- Supabase a Complete Backend Solution. [Video](https://www.youtube.com/watch?v=Ve0qE55fw0Y) +- Supabase OAuth with SvelteKit (Discord, Google, GitHub). [Video](https://www.youtube.com/watch?v=KfezTtt2GsA) + +## Meme Zone + +As always, one of our favorite memes from last month. [Follow us on Twitter](https://twitter.com/supabase) for more. + +![Supabase Beta December Meme](/images/blog/2023-01-05-december-beta-update/beta-update-december-meme.jpeg) + +See you next month! diff --git a/apps/www/components/Favicons.tsx b/apps/www/components/Favicons.tsx index 8cb53689b8c..5c65346f0fa 100644 --- a/apps/www/components/Favicons.tsx +++ b/apps/www/components/Favicons.tsx @@ -24,8 +24,7 @@ const Favicons = () => { /> {/* */} - {/* */} - + diff --git a/apps/www/data/PricingAddOn.json b/apps/www/data/PricingAddOn.json index 316eb215276..d756fb75d18 100644 --- a/apps/www/data/PricingAddOn.json +++ b/apps/www/data/PricingAddOn.json @@ -14,16 +14,21 @@ { "key": "pricing", "title": "Pricing", "value": "$0" }, { "key": "cpu", "title": "CPU", "value": "2-core ARM (shared)" }, { "key": "memory", "title": "Memory", "value": "1 GB" }, - { "key": "diskIO", "title": "Disk IO Bandwidth", "value": "Up to 2,606 Mbps" }, + { "key": "maxDiskIO", "title": "Maximum Disk IO Bandwidth", "value": "2,606 Mbps" }, + { + "key": "baseDiskIO", + "title": "Baseline Disk IO Bandwidth", + "value": "87 Mbps" + }, { "key": "directConnections", - "title": "Connections: Direct", - "value": "10 (recommended)" + "title": "Connections: Direct (recommended)", + "value": "10" }, { "key": "poolerConnections", - "title": "Connections: Pooler", - "value": "50 (recommended)" + "title": "Connections: Pooler (recommended)", + "value": "50" } ] }, @@ -33,16 +38,21 @@ { "key": "pricing", "title": "Pricing", "value": "$5" }, { "key": "cpu", "title": "CPU", "value": "2-core ARM (shared)" }, { "key": "memory", "title": "Memory", "value": "2 GB" }, - { "key": "diskIO", "title": "Disk IO Bandwidth", "value": "Up to 2,606 Mbps" }, + { "key": "maxDiskIO", "title": "Maximum Disk IO Bandwidth", "value": "2,606 Mbps" }, + { + "key": "baseDiskIO", + "title": "Baseline Disk IO Bandwidth", + "value": "174 Mbps" + }, { "key": "directConnections", - "title": "Connections: Direct", - "value": "30 (recommended)" + "title": "Connections: Direct (recommended)", + "value": "30" }, { "key": "poolerConnections", - "title": "Connections: Pooler", - "value": "75 (recommended)" + "title": "Connections: Pooler (recommended)", + "value": "75" } ] }, @@ -52,16 +62,21 @@ { "key": "pricing", "title": "Pricing", "value": "$50" }, { "key": "cpu", "title": "CPU", "value": "2-core ARM (shared)" }, { "key": "memory", "title": "Memory", "value": "4 GB" }, - { "key": "diskIO", "title": "Disk IO Bandwidth", "value": "Up to 2,606 Mbps" }, + { "key": "maxDiskIO", "title": "Maximum Disk IO Bandwidth", "value": "2,606 Mbps" }, + { + "key": "baseDiskIO", + "title": "Baseline Disk IO Bandwidth", + "value": "347 Mbps" + }, { "key": "directConnections", - "title": "Connections: Direct", - "value": "50 (recommended)" + "title": "Connections: Direct (recommended)", + "value": "50" }, { "key": "poolerConnections", - "title": "Connections: Pooler", - "value": "150 (recommended)" + "title": "Connections: Pooler (recommended)", + "value": "150" } ] }, @@ -71,16 +86,21 @@ { "key": "pricing", "title": "Pricing", "value": "$100" }, { "key": "cpu", "title": "CPU", "value": "2-core ARM (dedicated)" }, { "key": "memory", "title": "Memory", "value": "8 GB" }, - { "key": "diskIO", "title": "Disk IO Bandwidth", "value": "Up to 4,750 Mbps" }, + { "key": "maxDiskIO", "title": "Maximum Disk IO Bandwidth", "value": "4,750 Mbps" }, + { + "key": "baseDiskIO", + "title": "Baseline Disk IO Bandwidth", + "value": "630 Mbps" + }, { "key": "directConnections", - "title": "Connections: Direct", - "value": "100 (recommended)" + "title": "Connections: Direct (recommended)", + "value": "100" }, { "key": "poolerConnections", - "title": "Connections: Pooler", - "value": "300 (recommended)" + "title": "Connections: Pooler (recommended)", + "value": "300" } ] }, @@ -90,16 +110,21 @@ { "key": "pricing", "title": "Pricing", "value": "$200" }, { "key": "cpu", "title": "CPU", "value": "4-core ARM (dedicated)" }, { "key": "memory", "title": "Memory", "value": "16 GB" }, - { "key": "diskIO", "title": "Disk IO Bandwidth", "value": "Up to 4,750 Mbps" }, + { "key": "maxDiskIO", "title": "Maximum Disk IO Bandwidth", "value": "4,750 Mbps" }, + { + "key": "baseDiskIO", + "title": "Baseline Disk IO Bandwidth", + "value": "1,188 Mbps" + }, { "key": "directConnections", - "title": "Connections: Direct", - "value": "200 (recommended)" + "title": "Connections: Direct (recommended)", + "value": "200" }, { "key": "poolerConnections", - "title": "Connections: Pooler", - "value": "600 (recommended)" + "title": "Connections: Pooler (recommended)", + "value": "600" } ] }, @@ -109,16 +134,21 @@ { "key": "pricing", "title": "Pricing", "value": "$400" }, { "key": "cpu", "title": "CPU", "value": "8-core ARM (dedicated)" }, { "key": "memory", "title": "Memory", "value": "32 GB" }, - { "key": "diskIO", "title": "Disk IO Bandwidth", "value": "Up to 4,750 Mbps" }, + { "key": "maxDiskIO", "title": "Maximum Disk IO Bandwidth", "value": "4,750 Mbps" }, + { + "key": "baseDiskIO", + "title": "Baseline Disk IO Bandwidth", + "value": "2,375 Mbps" + }, { "key": "directConnections", - "title": "Connections: Direct", - "value": "350 (recommended)" + "title": "Connections: Direct (recommended)", + "value": "350" }, { "key": "poolerConnections", - "title": "Connections: Pooler", - "value": "1200 (recommended)" + "title": "Connections: Pooler (recommended)", + "value": "1200" } ] }, @@ -128,16 +158,21 @@ { "key": "pricing", "title": "Pricing", "value": "$950" }, { "key": "cpu", "title": "CPU", "value": "16-core ARM (dedicated)" }, { "key": "memory", "title": "Memory", "value": "64 GB" }, - { "key": "diskIO", "title": "Disk IO Bandwidth", "value": "Up to 4,750 Mbps" }, + { "key": "maxDiskIO", "title": "Maximum Disk IO Bandwidth", "value": "4,750 Mbps" }, + { + "key": "baseDiskIO", + "title": "Baseline Disk IO Bandwidth", + "value": "4,750 Mbps" + }, { "key": "directConnections", - "title": "Connections: Direct", - "value": "420 (recommended)" + "title": "Connections: Direct (recommended)", + "value": "420" }, { "key": "poolerConnections", - "title": "Connections: Pooler", - "value": "2800 (recommended)" + "title": "Connections: Pooler (recommended)", + "value": "2800" } ] }, @@ -147,16 +182,21 @@ { "key": "pricing", "title": "Pricing", "value": "$1,860" }, { "key": "cpu", "title": "CPU", "value": "32-core ARM (dedicated)" }, { "key": "memory", "title": "Memory", "value": "128 GB" }, - { "key": "diskIO", "title": "Disk IO Bandwidth", "value": "Up to 9,000 Mbps" }, + { "key": "maxDiskIO", "title": "Maximum Disk IO Bandwidth", "value": "9,500 Mbps" }, + { + "key": "baseDiskIO", + "title": "Baseline Disk IO Bandwidth", + "value": "9,500 Mbps" + }, { "key": "directConnections", - "title": "Connections: Direct", - "value": "450 (recommended)" + "title": "Connections: Direct (recommended)", + "value": "450" }, { "key": "poolerConnections", - "title": "Connections: Pooler", - "value": "5600 (recommended)" + "title": "Connections: Pooler (recommended)", + "value": "5600" } ] }, @@ -166,16 +206,25 @@ { "key": "pricing", "title": "Pricing", "value": "$2,790" }, { "key": "cpu", "title": "CPU", "value": "48-core ARM (dedicated)" }, { "key": "memory", "title": "Memory", "value": "192 GB" }, - { "key": "diskIO", "title": "Disk IO Bandwidth", "value": "Up to 13,500 Mbps" }, + { + "key": "maxDiskIO", + "title": "Maximum Disk IO Bandwidth", + "value": "14,250 Mbps" + }, + { + "key": "baseDiskIO", + "title": "Baseline Disk IO Bandwidth", + "value": "14,250 Mbps" + }, { "key": "directConnections", - "title": "Connections: Direct", - "value": "480 (recommended)" + "title": "Connections: Direct (recommended)", + "value": "480" }, { "key": "poolerConnections", - "title": "Connections: Pooler", - "value": "8600 (recommended)" + "title": "Connections: Pooler (recommended)", + "value": "8600" } ] }, @@ -185,16 +234,25 @@ { "key": "pricing", "title": "Pricing", "value": "$3,720" }, { "key": "cpu", "title": "CPU", "value": "64-core ARM (dedicated)" }, { "key": "memory", "title": "Memory", "value": "256 GB" }, - { "key": "diskIO", "title": "Disk IO Bandwidth", "value": "Up to 19,000 Mbps" }, + { + "key": "maxDiskIO", + "title": "Maximum Disk IO Bandwidth", + "value": "19,000 Mbps" + }, + { + "key": "baseDiskIO", + "title": "Baseline Disk IO Bandwidth", + "value": "19,000 Mbps" + }, { "key": "directConnections", - "title": "Connections: Direct", - "value": "500 (recommended)" + "title": "Connections: Direct (recommended)", + "value": "500" }, { "key": "poolerConnections", - "title": "Connections: Pooler", - "value": "11,600 (recommended)" + "title": "Connections: Pooler (recommended)", + "value": "11,600" } ] }, @@ -204,15 +262,20 @@ { "key": "pricing", "title": "Pricing", "value": "Contact Us" }, { "key": "cpu", "title": "CPU", "value": "Contact Us" }, { "key": "memory", "title": "Memory", "value": "Contact Us" }, - { "key": "diskIO", "title": "Disk IO Bandwidth", "value": "Contact Us" }, + { "key": "maxDiskIO", "title": "Maximum Disk IO Bandwidth", "value": "Contact Us" }, + { + "key": "baseDiskIO", + "title": "Baseline Disk IO Bandwidth", + "value": "Contact Us" + }, { "key": "directConnections", - "title": "Connections: Direct", + "title": "Connections: Direct (recommended)", "value": "Contact Us" }, { "key": "poolerConnections", - "title": "Connections: Pooler", + "title": "Connections: Pooler (recommended)", "value": "Contact Us" } ] diff --git a/apps/www/lib/redirects.js b/apps/www/lib/redirects.js index 56951babe70..1e992b67d9e 100644 --- a/apps/www/lib/redirects.js +++ b/apps/www/lib/redirects.js @@ -1217,26 +1217,11 @@ module.exports = [ source: '/docs/reference/cli/supabase-db-commit', destination: '/docs/reference/cli/usage', }, - { - permanent: true, - source: '/docs/reference/cli/supabase-db-reset', - destination: '/docs/reference/cli/usage', - }, { permanent: true, source: '/docs/reference/cli/supabase-db-remote-set', destination: '/docs/reference/cli/usage', }, - { - permanent: true, - source: '/docs/reference/cli/supabase-db-remote-commit', - destination: '/docs/reference/cli/usage', - }, - { - permanent: true, - source: '/docs/reference/cli/supabase-db-push', - destination: '/docs/reference/cli/usage', - }, { permanent: true, source: '/docs/reference/cli/supabase-functions-delete', diff --git a/apps/www/pages/blog.tsx b/apps/www/pages/blog.tsx index 3e020c9533b..49eb7c8351f 100644 --- a/apps/www/pages/blog.tsx +++ b/apps/www/pages/blog.tsx @@ -19,11 +19,17 @@ export async function getStaticProps() { const allPostsData = getSortedPosts('_blog', undefined, undefined, '** BLOG PAGE **') const categories = getAllCategories('_blog') const rss = generateRss(allPostsData) + // @ts-ignore + const planetPgPosts = allPostsData.filter((post) => post.tags.includes('planetpg')) + const planetPgrss = generateRss(planetPgPosts) // create a rss feed in public directory // rss feed is added via component in render return fs.writeFileSync('./public/rss.xml', rss) + // create separate feed for just posts promoted in PlanetPG + fs.writeFileSync('./public/planetpg-rss.xml', planetPgrss) + return { props: { blogs: allPostsData, diff --git a/apps/www/pages/pricing/CHANGELOG.txt b/apps/www/pages/pricing/CHANGELOG.txt index bec552c3e06..78652cdfa2f 100644 --- a/apps/www/pages/pricing/CHANGELOG.txt +++ b/apps/www/pages/pricing/CHANGELOG.txt @@ -1,5 +1,11 @@ Pricing Changelog +### 09 Jan 2023 +---- + +Database Compute Add ons +- Clarified iops values to the latest instance types + ### 02 Nov 2022 ---- diff --git a/apps/www/pages/supasquad.mdx b/apps/www/pages/supasquad.mdx index 012750bedac..e305eab4b73 100644 --- a/apps/www/pages/supasquad.mdx +++ b/apps/www/pages/supasquad.mdx @@ -37,7 +37,7 @@ Spread the word on social channels and help to answer Supabase-related questions ### Builder -Build Supabase examples, blog about them, and them add to the [SupaSquad GitHub Org](https://github.com/supasquad). +Build Supabase examples, blog about them, and add them to the [SupaSquad GitHub Org](https://github.com/supasquad). ### Author diff --git a/apps/www/public/favicon/favicon-lw.svg b/apps/www/public/favicon/favicon-lw.svg deleted file mode 100644 index b34acb319ed..00000000000 --- a/apps/www/public/favicon/favicon-lw.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/apps/www/public/images/blog/2023-01-05-december-beta-update/beta-update-december-meme.jpeg b/apps/www/public/images/blog/2023-01-05-december-beta-update/beta-update-december-meme.jpeg new file mode 100644 index 00000000000..ff78e8e5244 Binary files /dev/null and b/apps/www/public/images/blog/2023-01-05-december-beta-update/beta-update-december-meme.jpeg differ diff --git a/apps/www/public/images/blog/2023-01-05-december-beta-update/community.jpg b/apps/www/public/images/blog/2023-01-05-december-beta-update/community.jpg new file mode 100644 index 00000000000..84567254258 Binary files /dev/null and b/apps/www/public/images/blog/2023-01-05-december-beta-update/community.jpg differ diff --git a/apps/www/public/images/blog/2023-01-05-december-beta-update/custom-domains-pitr.jpg b/apps/www/public/images/blog/2023-01-05-december-beta-update/custom-domains-pitr.jpg new file mode 100644 index 00000000000..dcef6e6ce8b Binary files /dev/null and b/apps/www/public/images/blog/2023-01-05-december-beta-update/custom-domains-pitr.jpg differ diff --git a/apps/www/public/images/blog/2023-01-05-december-beta-update/docs.jpg b/apps/www/public/images/blog/2023-01-05-december-beta-update/docs.jpg new file mode 100644 index 00000000000..cefd8fe47f6 Binary files /dev/null and b/apps/www/public/images/blog/2023-01-05-december-beta-update/docs.jpg differ diff --git a/apps/www/public/images/blog/2023-01-05-december-beta-update/lw-6-hackathon.jpg b/apps/www/public/images/blog/2023-01-05-december-beta-update/lw-6-hackathon.jpg new file mode 100644 index 00000000000..93738d17f45 Binary files /dev/null and b/apps/www/public/images/blog/2023-01-05-december-beta-update/lw-6-hackathon.jpg differ diff --git a/apps/www/public/images/blog/2023-01-05-december-beta-update/monthly-update-december2022.jpg b/apps/www/public/images/blog/2023-01-05-december-beta-update/monthly-update-december2022.jpg new file mode 100644 index 00000000000..23bfe31c448 Binary files /dev/null and b/apps/www/public/images/blog/2023-01-05-december-beta-update/monthly-update-december2022.jpg differ diff --git a/apps/www/public/images/blog/2023-01-05-december-beta-update/multi-factor-authentication.png b/apps/www/public/images/blog/2023-01-05-december-beta-update/multi-factor-authentication.png new file mode 100644 index 00000000000..9cafd8a979b Binary files /dev/null and b/apps/www/public/images/blog/2023-01-05-december-beta-update/multi-factor-authentication.png differ diff --git a/apps/www/public/images/blog/2023-01-05-december-beta-update/postgres-ecosystem.jpg b/apps/www/public/images/blog/2023-01-05-december-beta-update/postgres-ecosystem.jpg new file mode 100644 index 00000000000..7d916078aa6 Binary files /dev/null and b/apps/www/public/images/blog/2023-01-05-december-beta-update/postgres-ecosystem.jpg differ diff --git a/apps/www/public/images/blog/2023-01-05-december-beta-update/storage-v2-image-rezising.jpg b/apps/www/public/images/blog/2023-01-05-december-beta-update/storage-v2-image-rezising.jpg new file mode 100644 index 00000000000..35b4c725f6e Binary files /dev/null and b/apps/www/public/images/blog/2023-01-05-december-beta-update/storage-v2-image-rezising.jpg differ diff --git a/apps/www/public/images/blog/2023-01-05-december-beta-update/supabase-wrappers.jpg b/apps/www/public/images/blog/2023-01-05-december-beta-update/supabase-wrappers.jpg new file mode 100644 index 00000000000..0afe665cfb1 Binary files /dev/null and b/apps/www/public/images/blog/2023-01-05-december-beta-update/supabase-wrappers.jpg differ diff --git a/apps/www/public/images/blog/2023-01-05-december-beta-update/vault.jpg b/apps/www/public/images/blog/2023-01-05-december-beta-update/vault.jpg new file mode 100644 index 00000000000..deaa9f8c8d7 Binary files /dev/null and b/apps/www/public/images/blog/2023-01-05-december-beta-update/vault.jpg differ diff --git a/apps/www/public/images/blog/lw6-hackathon-winners/depulso.png b/apps/www/public/images/blog/lw6-hackathon-winners/depulso.png new file mode 100644 index 00000000000..a48867b6e06 Binary files /dev/null and b/apps/www/public/images/blog/lw6-hackathon-winners/depulso.png differ diff --git a/apps/www/public/images/blog/lw6-hackathon-winners/hackathon-winners.png b/apps/www/public/images/blog/lw6-hackathon-winners/hackathon-winners.png new file mode 100644 index 00000000000..8277a120404 Binary files /dev/null and b/apps/www/public/images/blog/lw6-hackathon-winners/hackathon-winners.png differ diff --git a/apps/www/public/images/blog/lw6-hackathon-winners/http-sense.png b/apps/www/public/images/blog/lw6-hackathon-winners/http-sense.png new file mode 100644 index 00000000000..cc0aae71139 Binary files /dev/null and b/apps/www/public/images/blog/lw6-hackathon-winners/http-sense.png differ diff --git a/apps/www/public/images/blog/lw6-hackathon-winners/lookout.png b/apps/www/public/images/blog/lw6-hackathon-winners/lookout.png new file mode 100644 index 00000000000..b7641a5b659 Binary files /dev/null and b/apps/www/public/images/blog/lw6-hackathon-winners/lookout.png differ diff --git a/apps/www/public/images/blog/lw6-hackathon-winners/penelope-ai.png b/apps/www/public/images/blog/lw6-hackathon-winners/penelope-ai.png new file mode 100644 index 00000000000..f9860de2466 Binary files /dev/null and b/apps/www/public/images/blog/lw6-hackathon-winners/penelope-ai.png differ diff --git a/apps/www/public/images/blog/lw6-hackathon-winners/supa-sql-app.png b/apps/www/public/images/blog/lw6-hackathon-winners/supa-sql-app.png new file mode 100644 index 00000000000..caa7ac1a675 Binary files /dev/null and b/apps/www/public/images/blog/lw6-hackathon-winners/supa-sql-app.png differ diff --git a/apps/www/public/images/blog/lw6-hackathon-winners/supabase-js-rs.png b/apps/www/public/images/blog/lw6-hackathon-winners/supabase-js-rs.png new file mode 100644 index 00000000000..ce0a4890e0b Binary files /dev/null and b/apps/www/public/images/blog/lw6-hackathon-winners/supabase-js-rs.png differ diff --git a/apps/www/public/images/blog/lw6-hackathon-winners/supaque.png b/apps/www/public/images/blog/lw6-hackathon-winners/supaque.png new file mode 100644 index 00000000000..e8dab961486 Binary files /dev/null and b/apps/www/public/images/blog/lw6-hackathon-winners/supaque.png differ diff --git a/apps/www/public/images/blog/lw6-hackathon-winners/supaquiz.png b/apps/www/public/images/blog/lw6-hackathon-winners/supaquiz.png new file mode 100644 index 00000000000..6793eeccf0c Binary files /dev/null and b/apps/www/public/images/blog/lw6-hackathon-winners/supaquiz.png differ diff --git a/apps/www/public/images/blog/lw6-hackathon-winners/vista.png b/apps/www/public/images/blog/lw6-hackathon-winners/vista.png new file mode 100644 index 00000000000..9d0b7bd1582 Binary files /dev/null and b/apps/www/public/images/blog/lw6-hackathon-winners/vista.png differ diff --git a/apps/www/public/planetpg-rss.xml b/apps/www/public/planetpg-rss.xml new file mode 100644 index 00000000000..9a980d87cea --- /dev/null +++ b/apps/www/public/planetpg-rss.xml @@ -0,0 +1,159 @@ + + + + Blog - Supabase + https://supabase.com + Latest news from Supabase + en + Thu, 15 Dec 2022 03:03:30 +0000 + + + https://supabase.com/blog/vault-now-in-beta + Supabase Vault is now in Beta + https://supabase.com/blog/vault-now-in-beta + A Postgres extension to store encrypted secrets and encrypt data. + Thu, 15 Dec 2022 03:03:30 +0000 + + + https://supabase.com/blog/postgrest-11-prerelease + PostgREST 11 pre-release + https://supabase.com/blog/postgrest-11-prerelease + Describes new features of PostgREST 11 pre-release + Thu, 15 Dec 2022 03:03:30 +0000 + + + https://supabase.com/blog/postgres-point-in-time-recovery + Point in Time Recovery is now available for Pro projects + https://supabase.com/blog/postgres-point-in-time-recovery + We're making PITR available for more projects, with a new Dashboard UI that makes it simple to use. + Thu, 15 Dec 2022 03:03:30 +0000 + + + https://supabase.com/blog/pg-graphql-v1 + pg_graphql v1.0 + https://supabase.com/blog/pg-graphql-v1 + Announcing the v1.0 release of pg_graphql + Thu, 15 Dec 2022 03:03:30 +0000 + + + https://supabase.com/blog/new-in-postgres-15 + What's new in Postgres 15? + https://supabase.com/blog/new-in-postgres-15 + Describes the release of Postgres 15, new features and reasons to use it + Thu, 15 Dec 2022 03:03:30 +0000 + + + https://supabase.com/blog/transparent-column-encryption-with-postgres + Transparent Column Encryption with Postgres + https://supabase.com/blog/transparent-column-encryption-with-postgres + Using pgsodium's Transparent Column Encryption to encrypt data and provide your users with row-level encryption. + Wed, 30 Nov 2022 03:03:30 +0000 + + + https://supabase.com/blog/sql-or-nosql-both-with-postgresql + SQL or NoSQL? Why not use both (with PostgreSQL)? + https://supabase.com/blog/sql-or-nosql-both-with-postgresql + How to turn Postgres into an easy-to-use NoSQL database that retains all the power of SQL + Wed, 23 Nov 2022 03:03:30 +0000 + + + https://supabase.com/blog/postgresql-commitfest + What is PostgreSQL commitfest and how to contribute + https://supabase.com/blog/postgresql-commitfest + A time-tested method for contributing to the core Postgres code + Wed, 26 Oct 2022 02:02:30 +0000 + + + https://supabase.com/blog/postgres-full-text-search-vs-the-rest + Postgres Full Text Search vs the rest + https://supabase.com/blog/postgres-full-text-search-vs-the-rest + Comparing one of the most popular Postgres features against alternatives + Thu, 13 Oct 2022 02:02:30 +0000 + + + https://supabase.com/blog/postgres-wasm + Postgres WASM by Snaplet and Supabase + https://supabase.com/blog/postgres-wasm + We're open sourcing postgres-wasm, a PostgresQL server that runs inside a browser, with our friends at Snaplet. + Sun, 02 Oct 2022 02:02:30 +0000 + + + https://supabase.com/blog/choosing-a-postgres-primary-key + Choosing a Postgres Primary Key + https://supabase.com/blog/choosing-a-postgres-primary-key + Turns out the question of which identifier to use as a Primary Key is complicated -- we're going to dive into some of the complexity and inherent trade-offs, and figure things out + Wed, 07 Sep 2022 02:02:30 +0000 + + + https://supabase.com/blog/seen-by-in-postgresql + Implementing "seen by" functionality with Postgres + https://supabase.com/blog/seen-by-in-postgresql + Different approaches for tracking visitor counts with PostgreSQL. + Sun, 17 Jul 2022 02:02:30 +0000 + + + https://supabase.com/blog/partial-postgresql-data-dumps-with-rls + Partial data dumps using Postgres Row Level Security + https://supabase.com/blog/partial-postgresql-data-dumps-with-rls + Using RLS to create seed files for local PostgreSQL testing. + Mon, 27 Jun 2022 02:02:30 +0000 + + + https://supabase.com/blog/audit + Postgres Auditing in 150 lines of SQL + https://supabase.com/blog/audit + PostgreSQL has a robust set of features which we can leverage to create a generic auditing solution in 150 lines of SQL. + Mon, 07 Mar 2022 03:03:30 +0000 + + + https://supabase.com/blog/roles-postgres-hooks + Protecting reserved roles with PostgreSQL Hooks + https://supabase.com/blog/roles-postgres-hooks + Using Postgres Hooks to protect functionality in your Postgres database. + Thu, 01 Jul 2021 02:02:30 +0000 + + + https://supabase.com/blog/postgres-as-a-cron-server + Postgres as a CRON Server + https://supabase.com/blog/postgres-as-a-cron-server + Running repetitive tasks with your Postgres database. + Fri, 05 Mar 2021 03:03:30 +0000 + + + https://supabase.com/blog/cracking-postgres-interview + Cracking PostgreSQL Interview Questions + https://supabase.com/blog/cracking-postgres-interview + Understand the top PostgreSQL Interview Questions + Sat, 27 Feb 2021 03:03:30 +0000 + + + https://supabase.com/blog/postgresql-views + Postgres Views + https://supabase.com/blog/postgresql-views + Creating and using a view in PostgreSQL. + Wed, 18 Nov 2020 03:03:30 +0000 + + + https://supabase.com/blog/continuous-postgresql-backup-walg + Continuous PostgreSQL Backups using WAL-G + https://supabase.com/blog/continuous-postgresql-backup-walg + Have you ever wanted to restore your database's state to a particular moment in time? This post explains how, using WAL-G. + Sun, 02 Aug 2020 02:02:30 +0000 + + + https://supabase.com/blog/postgresql-templates + What are PostgreSQL Templates? + https://supabase.com/blog/postgresql-templates + What are PostgreSQL templates and what are they used for? + Thu, 09 Jul 2020 02:02:30 +0000 + + + https://supabase.com/blog/postgresql-physical-logical-backups + Physical vs Logical Backups in PostgreSQL + https://supabase.com/blog/postgresql-physical-logical-backups + What are physical and logical backups in Postgres? + Tue, 07 Jul 2020 02:02:30 +0000 + + + + diff --git a/apps/www/public/rss.xml b/apps/www/public/rss.xml index 215ba2e41d8..2e9e12c7b1b 100644 --- a/apps/www/public/rss.xml +++ b/apps/www/public/rss.xml @@ -5,1036 +5,1078 @@ https://supabase.com Latest news from Supabase en - Thu, 15 Dec 2022 16:04:00 +0000 + Wed, 04 Jan 2023 03:03:30 +0000 + https://supabase.com/blog/supabase-beta-december-2022 + Supabase Beta December 2022 + https://supabase.com/blog/supabase-beta-december-2022 + This month the Beta Update is a Launch Week 6 Special, where we review the cascade of announcements. + Wed, 04 Jan 2023 03:03:30 +0000 + + + https://supabase.com/blog/launch-week-6-hackathon-winners + Launch Week 6 Hackathon Winners + https://supabase.com/blog/launch-week-6-hackathon-winners + Announcing the winners of the Launch Week 6 Hackathon! + Mon, 02 Jan 2023 03:03:30 +0000 + + + https://supabase.com/blog/vault-now-in-beta + Supabase Vault is now in Beta + https://supabase.com/blog/vault-now-in-beta + A Postgres extension to store encrypted secrets and encrypt data. + Thu, 15 Dec 2022 03:03:30 +0000 + + https://supabase.com/blog/postgrest-11-prerelease PostgREST 11 pre-release https://supabase.com/blog/postgrest-11-prerelease Describes new features of PostgREST 11 pre-release - Thu, 15 Dec 2022 16:04:00 +0000 + Thu, 15 Dec 2022 03:03:30 +0000 + + + https://supabase.com/blog/postgres-point-in-time-recovery + Point in Time Recovery is now available for Pro projects + https://supabase.com/blog/postgres-point-in-time-recovery + We're making PITR available for more projects, with a new Dashboard UI that makes it simple to use. + Thu, 15 Dec 2022 03:03:30 +0000 + + + https://supabase.com/blog/pg-graphql-v1 + pg_graphql v1.0 + https://supabase.com/blog/pg-graphql-v1 + Announcing the v1.0 release of pg_graphql + Thu, 15 Dec 2022 03:03:30 +0000 https://supabase.com/blog/new-in-postgres-15 What's new in Postgres 15? https://supabase.com/blog/new-in-postgres-15 Describes the release of Postgres 15, new features and reasons to use it - Thu, 15 Dec 2022 16:04:00 +0000 + Thu, 15 Dec 2022 03:03:30 +0000 + + + https://supabase.com/blog/launch-week-6-wrap-up + Launch Week 6: Wrap Up + https://supabase.com/blog/launch-week-6-wrap-up + That's a wrap on Supabase Launch Week Day 6. Here's everything we shipped in one long blog post. + Thu, 15 Dec 2022 03:03:30 +0000 https://supabase.com/blog/launch-week-6-community-day Community Day https://supabase.com/blog/launch-week-6-community-day Wrapping up Launch Week 6 with contributors, partners, and friends. - Thu, 15 Dec 2022 16:04:00 +0000 + Thu, 15 Dec 2022 03:03:30 +0000 + + + https://supabase.com/blog/custom-domain-names + Custom Domain Names + https://supabase.com/blog/custom-domain-names + Change your Supabase project's domain name to your own domain. + Thu, 15 Dec 2022 03:03:30 +0000 https://supabase.com/blog/postgres-foreign-data-wrappers-rust Supabase Wrappers, a Postgres FDW framework written in Rust https://supabase.com/blog/postgres-foreign-data-wrappers-rust A framework for building Postgres Foreign Data Wrappers which connects to Stripe, Firebase, Clickhouse, and more. - Wed, 14 Dec 2022 16:04:00 +0000 + Wed, 14 Dec 2022 03:03:30 +0000 https://supabase.com/blog/mfa-auth-via-rls Multi-factor Authentication via Row Level Security Enforcement https://supabase.com/blog/mfa-auth-via-rls MFA Auth with enforcement via RLS - Tue, 13 Dec 2022 16:04:00 +0000 - - - https://supabase.com/blog/mfa-auth-via-rls - Multi-factor Authentication via Row Level Security Enforcement - https://supabase.com/blog/mfa-auth-via-rls - MFA Auth with enforcement via RLS - Tue, 13 Dec 2022 23:11:00 +0000 + Tue, 13 Dec 2022 03:03:30 +0000 https://supabase.com/blog/storage-image-resizing-smart-cdn Supabase Storage v2: Image resizing and Smart CDN https://supabase.com/blog/storage-image-resizing-smart-cdn We're introducing new features for Supabase Storage: Image resizing and a Smart CDN. - Mon, 12 Dec 2022 05:05:00 +0000 + Mon, 12 Dec 2022 03:03:30 +0000 https://supabase.com/blog/new-supabase-docs-built-with-nextjs New Supabase Docs, built with Next.js https://supabase.com/blog/new-supabase-docs-built-with-nextjs We've redesigned our Docs and migrated to Next.js - Sun, 11 Dec 2022 16:04:00 +0000 + Sun, 11 Dec 2022 03:03:30 +0000 https://supabase.com/blog/postgres-crdt pg_crdt - an experimental CRDT extension for Postgres https://supabase.com/blog/postgres-crdt Embedding Yjs and Automerge into Postgres for collaborative applications. - Fri, 09 Dec 2022 05:05:00 +0000 + Fri, 09 Dec 2022 03:03:30 +0000 https://supabase.com/blog/who-we-hire Who We Hire at Supabase https://supabase.com/blog/who-we-hire Traits we look for to maintain a culture of shipping fast and often - Thu, 08 Dec 2022 05:05:00 +0000 + Thu, 08 Dec 2022 03:03:30 +0000 https://supabase.com/blog/launch-week-6-hackathon Launch Week 6 Hackathon https://supabase.com/blog/launch-week-6-hackathon Build an Open Source Project, Win $1500 and the Supabase Darkmode Keyboard - Thu, 08 Dec 2022 05:05:00 +0000 + Thu, 08 Dec 2022 03:03:30 +0000 https://supabase.com/blog/supabase-beta-november-2022 Supabase Beta November 2022 https://supabase.com/blog/supabase-beta-november-2022 We are preparing everything for Launch Week 6, but we still had time to ship some goodies this month! - Tue, 06 Dec 2022 05:05:00 +0000 + Tue, 06 Dec 2022 03:03:30 +0000 https://supabase.com/blog/the-supabase-content-storm The Supabase Content Storm https://supabase.com/blog/the-supabase-content-storm We worked with +30 content creators to drop a mountain of content simultaneously. - Mon, 05 Dec 2022 05:05:00 +0000 + Mon, 05 Dec 2022 03:03:30 +0000 https://supabase.com/blog/transparent-column-encryption-with-postgres Transparent Column Encryption with Postgres https://supabase.com/blog/transparent-column-encryption-with-postgres Using pgsodium's Transparent Column Encryption to encrypt data and provide your users with row-level encryption. - Wed, 30 Nov 2022 05:05:00 +0000 + Wed, 30 Nov 2022 03:03:30 +0000 https://supabase.com/blog/sql-or-nosql-both-with-postgresql SQL or NoSQL? Why not use both (with PostgreSQL)? https://supabase.com/blog/sql-or-nosql-both-with-postgresql How to turn Postgres into an easy-to-use NoSQL database that retains all the power of SQL - Wed, 23 Nov 2022 05:05:00 +0000 + Wed, 23 Nov 2022 03:03:30 +0000 https://supabase.com/blog/flutter-authentication-and-authorization-with-rls Flutter Authentication and Authorization with RLS https://supabase.com/blog/flutter-authentication-and-authorization-with-rls Learn how you can secure your Flutter app using Supabase Row Level Security. - Mon, 21 Nov 2022 05:05:00 +0000 + Mon, 21 Nov 2022 03:03:30 +0000 https://supabase.com/blog/fetching-and-caching-supabase-data-in-next-js-server-components Fetching and caching Supabase data in Next.js 13 Server Components https://supabase.com/blog/fetching-and-caching-supabase-data-in-next-js-server-components Next.js 13 introduces new data fetching and caching methods to enable React Server Components and Suspense. - Wed, 16 Nov 2022 05:05:00 +0000 + Wed, 16 Nov 2022 03:03:30 +0000 https://supabase.com/blog/authentication-in-ionic-angular Authentication in Ionic Angular with Supabase https://supabase.com/blog/authentication-in-ionic-angular Learn how to build an Ionic Angular app with authentication, Row Level Security, and Magic Link auth. - Mon, 07 Nov 2022 05:05:00 +0000 + Mon, 07 Nov 2022 03:03:30 +0000 https://supabase.com/blog/supabase-beta-update-october-2022 Supabase Beta October 2022 https://supabase.com/blog/supabase-beta-update-october-2022 New SDKs, quickstarts, Functions tricks, and more. But, more importantly, Launch Week 6️ has a date! - Tue, 01 Nov 2022 04:04:00 +0000 + Tue, 01 Nov 2022 02:02:30 +0000 https://supabase.com/blog/postgresql-commitfest What is PostgreSQL commitfest and how to contribute https://supabase.com/blog/postgresql-commitfest A time-tested method for contributing to the core Postgres code - Wed, 26 Oct 2022 04:04:00 +0000 + Wed, 26 Oct 2022 02:02:30 +0000 https://supabase.com/blog/supabase-flutter-sdk-v1-released supabase-flutter v1 Released https://supabase.com/blog/supabase-flutter-sdk-v1-released We've released supabase-flutter v1. More intuitive way of accessing Supabase from your Flutter application. - Thu, 20 Oct 2022 04:04:00 +0000 + Thu, 20 Oct 2022 02:02:30 +0000 https://supabase.com/blog/supabase-js-v2-released supabase-js v2 Released https://supabase.com/blog/supabase-js-v2-released We've released supabase-js v2. Updated examples, quickstarts, and an improved experience. - Wed, 19 Oct 2022 04:04:00 +0000 + Wed, 19 Oct 2022 02:02:30 +0000 https://supabase.com/blog/postgres-full-text-search-vs-the-rest Postgres Full Text Search vs the rest https://supabase.com/blog/postgres-full-text-search-vs-the-rest Comparing one of the most popular Postgres features against alternatives - Thu, 13 Oct 2022 04:04:00 +0000 + Thu, 13 Oct 2022 02:02:30 +0000 https://supabase.com/blog/supabase-beta-update-september-2022 Supabase Beta September 2022 https://supabase.com/blog/supabase-beta-update-september-2022 We were too focused on clearing out the backlog so we didn't ship anything new last month... or did we?! - Tue, 04 Oct 2022 04:04:00 +0000 + Tue, 04 Oct 2022 02:02:30 +0000 https://supabase.com/blog/postgres-wasm Postgres WASM by Snaplet and Supabase https://supabase.com/blog/postgres-wasm We're open sourcing postgres-wasm, a PostgresQL server that runs inside a browser, with our friends at Snaplet. - Sun, 02 Oct 2022 04:04:00 +0000 + Sun, 02 Oct 2022 02:02:30 +0000 https://supabase.com/blog/choosing-a-postgres-primary-key Choosing a Postgres Primary Key https://supabase.com/blog/choosing-a-postgres-primary-key Turns out the question of which identifier to use as a Primary Key is complicated -- we're going to dive into some of the complexity and inherent trade-offs, and figure things out - Wed, 07 Sep 2022 04:04:00 +0000 + Wed, 07 Sep 2022 02:02:30 +0000 https://supabase.com/blog/supabase-beta-update-august-2022 Supabase Beta August 2022 https://supabase.com/blog/supabase-beta-update-august-2022 Launch Week Special. See everything we shipped, plus winners of the Hackathon and the extended Community Highlights - Tue, 06 Sep 2022 04:04:00 +0000 + Tue, 06 Sep 2022 02:02:30 +0000 https://supabase.com/blog/launch-week-5-hackathon-winners Launch Week 5 Hackathon Winners https://supabase.com/blog/launch-week-5-hackathon-winners Announcing the winners of the Launch Week 5 Hackathon! - Wed, 24 Aug 2022 04:04:00 +0000 + Wed, 24 Aug 2022 02:02:30 +0000 https://supabase.com/blog/building-a-realtime-trello-board-with-supabase-and-angular Building a Realtime Trello Board with Supabase and Angular https://supabase.com/blog/building-a-realtime-trello-board-with-supabase-and-angular Go beyond the hello world example with this real world project. - Tue, 23 Aug 2022 04:04:00 +0000 + Tue, 23 Aug 2022 02:02:30 +0000 https://supabase.com/blog/supabase-vault Supabase Vault https://supabase.com/blog/supabase-vault Today we're announcing Vault, a Postgres extension for managing secrets and encryption inside your database. - Thu, 18 Aug 2022 04:04:00 +0000 + Thu, 18 Aug 2022 02:02:30 +0000 https://supabase.com/blog/postgrest-v10 PostgREST v10: EXPLAIN and Improved Relationship Detection https://supabase.com/blog/postgrest-v10 Today, PostgREST 10 was released. Let's take a look at some of the new features that go hand in hand with supabase-js v2. - Thu, 18 Aug 2022 04:04:00 +0000 + Thu, 18 Aug 2022 02:02:30 +0000 https://supabase.com/blog/pg-jsonschema-a-postgres-extension-for-json-validation pg_jsonschema: JSON Schema support for Postgres https://supabase.com/blog/pg-jsonschema-a-postgres-extension-for-json-validation Today we're releasing pg_jsonschema, a Postgres extension for JSON validation. - Thu, 18 Aug 2022 04:04:00 +0000 + Thu, 18 Aug 2022 02:02:30 +0000 https://supabase.com/blog/launch-week-5-one-more-thing One more thing https://supabase.com/blog/launch-week-5-one-more-thing Let's be honest, it's never just one more thing. - Thu, 18 Aug 2022 04:04:00 +0000 + Thu, 18 Aug 2022 02:02:30 +0000 https://supabase.com/blog/launch-week-5-community-day Community Day https://supabase.com/blog/launch-week-5-community-day Wrapping up Launch Week 5 with contributors, partners, and friends. - Thu, 18 Aug 2022 04:04:00 +0000 + Thu, 18 Aug 2022 02:02:30 +0000 https://supabase.com/blog/supabase-realtime-multiplayer-general-availability Realtime: Multiplayer Edition https://supabase.com/blog/supabase-realtime-multiplayer-general-availability Announcing the general availability of Realtime's Broadcast and Presence. - Wed, 17 Aug 2022 04:04:00 +0000 + Wed, 17 Aug 2022 02:02:30 +0000 https://supabase.com/blog/supabase-soc2 Supabase is SOC2 compliant https://supabase.com/blog/supabase-soc2 Supabase is now SOC2 compliant. Learn how we got here and what it means for our customers. - Tue, 16 Aug 2022 04:04:00 +0000 + Tue, 16 Aug 2022 02:02:30 +0000 https://supabase.com/blog/supabase-js-v2 supabase-js v2 https://supabase.com/blog/supabase-js-v2 A look at supabase-js v2, which brings type support and focuses on quality-of-life improvements for developers. - Mon, 15 Aug 2022 04:04:00 +0000 + Mon, 15 Aug 2022 02:02:30 +0000 https://supabase.com/blog/supabase-cli-v1-and-admin-api-beta Supabase CLI v1 and Management API Beta https://supabase.com/blog/supabase-cli-v1-and-admin-api-beta We are moving Supabase CLI v1 out of beta, and releasing Management API beta. - Sun, 14 Aug 2022 04:04:00 +0000 + Sun, 14 Aug 2022 02:02:30 +0000 https://supabase.com/blog/supabase-series-b Supabase Series B https://supabase.com/blog/supabase-series-b Supabase raised $80M in May, bringing our total funding to $116M. - Thu, 11 Aug 2022 04:04:00 +0000 + Thu, 11 Aug 2022 02:02:30 +0000 https://supabase.com/blog/launch-week-5-hackathon Launch Week 5 Hackathon https://supabase.com/blog/launch-week-5-hackathon Build to win $1500 - Friday 12th to Monday 21st August 2022 - Tue, 09 Aug 2022 04:04:00 +0000 + Tue, 09 Aug 2022 02:02:30 +0000 https://supabase.com/blog/slack-consolidate-slackbot-to-consolidate-messages Slack Consolidate: a slackbot built with Python and Supabase https://supabase.com/blog/slack-consolidate-slackbot-to-consolidate-messages A slackbot to consolidate messages from different channels using Supabase, Slack SDK and Python - Mon, 08 Aug 2022 04:04:00 +0000 + Mon, 08 Aug 2022 02:02:30 +0000 https://supabase.com/blog/supabase-beta-update-july-2022 Supabase Beta July 2022 https://supabase.com/blog/supabase-beta-update-july-2022 Launch Week Golden Tickets, Flutter SDK 1.0 Developer Preview and more... - Tue, 02 Aug 2022 04:04:00 +0000 + Tue, 02 Aug 2022 02:02:30 +0000 https://supabase.com/blog/supabase-flutter-sdk-1-developer-preview Supabase Flutter SDK 1.0 Developer Preview https://supabase.com/blog/supabase-flutter-sdk-1-developer-preview Supabase Flutter SDK is getting a major update and we need your help making it better. - Mon, 01 Aug 2022 04:04:00 +0000 + Mon, 01 Aug 2022 02:02:30 +0000 https://supabase.com/blog/seen-by-in-postgresql Implementing "seen by" functionality with Postgres https://supabase.com/blog/seen-by-in-postgresql Different approaches for tracking visitor counts with PostgreSQL. - Sun, 17 Jul 2022 04:04:00 +0000 + Sun, 17 Jul 2022 02:02:30 +0000 https://supabase.com/blog/supabase-auth-helpers-with-sveltekit-support Revamped Auth Helpers for Supabase (with SvelteKit support) https://supabase.com/blog/supabase-auth-helpers-with-sveltekit-support Supabase Auth Helpers now have improved developer experience, Sveltekit support, and more. - Tue, 12 Jul 2022 04:04:00 +0000 + Tue, 12 Jul 2022 02:02:30 +0000 https://supabase.com/blog/beta-update-june-2022 Supabase Beta June 2022 https://supabase.com/blog/beta-update-june-2022 Auth Helpers, Unlimited Free Projects, CLI and more... - Tue, 05 Jul 2022 04:04:00 +0000 + Tue, 05 Jul 2022 02:02:30 +0000 https://supabase.com/blog/flutter-tutorial-building-a-chat-app Flutter Tutorial: building a Flutter chat app https://supabase.com/blog/flutter-tutorial-building-a-chat-app Learn how to build a Flutter chat app with open source and scalable backend (inc. auth, realtime, database, and more). - Wed, 29 Jun 2022 04:04:00 +0000 + Wed, 29 Jun 2022 02:02:30 +0000 https://supabase.com/blog/visualizing-supabase-data-using-metabase Visualizing Supabase Data using Metabase https://supabase.com/blog/visualizing-supabase-data-using-metabase How to create different kinds of charts out of data stored in Supabase using Metabase. - Tue, 28 Jun 2022 04:04:00 +0000 + Tue, 28 Jun 2022 02:02:30 +0000 https://supabase.com/blog/partial-postgresql-data-dumps-with-rls Partial data dumps using Postgres Row Level Security https://supabase.com/blog/partial-postgresql-data-dumps-with-rls Using RLS to create seed files for local PostgreSQL testing. - Mon, 27 Jun 2022 04:04:00 +0000 + Mon, 27 Jun 2022 02:02:30 +0000 https://supabase.com/blog/loading-data-supabase-python Python data loading with Supabase https://supabase.com/blog/loading-data-supabase-python An example of how to load data into Supabase using supabase-py - Thu, 16 Jun 2022 04:04:00 +0000 + Thu, 16 Jun 2022 02:02:30 +0000 https://supabase.com/blog/beta-update-may-2022 Supabase Beta May 2022 https://supabase.com/blog/beta-update-may-2022 Product and community updates including wildcard auth redirects, edge functions with webhooks, and Prometheus endpoints for everybody. - Tue, 31 May 2022 04:04:00 +0000 + Tue, 31 May 2022 02:02:30 +0000 https://supabase.com/blog/how-supabase-accelerates-development-of-all-pull-together How Mike Lyndon is using Supabase to accelerate development of AllPullTogether https://supabase.com/blog/how-supabase-accelerates-development-of-all-pull-together Mike Lyndon is learning web development as he builds AllPullTogether, and Supabase is helping him accelerate what he can accomplish. - Wed, 25 May 2022 04:04:00 +0000 + Wed, 25 May 2022 02:02:30 +0000 https://supabase.com/blog/partner-gallery-works-with-supabase Works With Supabase - announcing our Partner Gallery https://supabase.com/blog/partner-gallery-works-with-supabase Introducing our Partner Gallery - open source and made with Supabase. - Tue, 19 Apr 2022 04:04:00 +0000 + Tue, 19 Apr 2022 02:02:30 +0000 https://supabase.com/blog/bring-the-func-hackathon-winners Bring the Func Hackathon Winners 2022 https://supabase.com/blog/bring-the-func-hackathon-winners Celebrating many amazing OSS Hackathon projects using GraphQL and Edge Functions. - Sun, 17 Apr 2022 04:04:00 +0000 + Sun, 17 Apr 2022 02:02:30 +0000 https://supabase.com/blog/beta-update-march-2022 Supabase Beta March 2022 https://supabase.com/blog/beta-update-march-2022 Functions, GraphQL, and much more. - Thu, 14 Apr 2022 04:04:00 +0000 + Thu, 14 Apr 2022 02:02:30 +0000 https://supabase.com/blog/supabrew Supabrew - Never Code Thirsty https://supabase.com/blog/supabrew A light and refreshing non-alcoholic beer for devs. - Fri, 01 Apr 2022 04:04:00 +0000 + Fri, 01 Apr 2022 02:02:30 +0000 https://supabase.com/blog/supabase-realtime-with-multiplayer-features Supabase Realtime, with Multiplayer Features https://supabase.com/blog/supabase-realtime-with-multiplayer-features Today we're announced Realtime, with multiplayer features. Realtime enables broadcast, presence, and listening to database changes delivered over WebSockets. - Fri, 01 Apr 2022 04:04:00 +0000 + Fri, 01 Apr 2022 02:02:30 +0000 https://supabase.com/blog/hackathon-bring-the-func Hackathon: Bring the Func(🕺) https://supabase.com/blog/hackathon-bring-the-func Build open-source projects with our latest features, win limited edition swag and plant a tree! - Fri, 01 Apr 2022 04:04:00 +0000 + Fri, 01 Apr 2022 02:02:30 +0000 https://supabase.com/blog/supabase-edge-functions Edge Functions are now available in Supabase https://supabase.com/blog/supabase-edge-functions Today we're launching Edge Functions. Edge Functions let you execute Typescript code close to your users, no matter where they're located. - Wed, 30 Mar 2022 04:04:00 +0000 + Wed, 30 Mar 2022 02:02:30 +0000 https://supabase.com/blog/supabase-enterprise Introducing Supabase Enterprise https://supabase.com/blog/supabase-enterprise Today we are releasing Supabase Enterprise, a suite of features to scale your project. - Tue, 29 Mar 2022 04:04:00 +0000 + Tue, 29 Mar 2022 02:02:30 +0000 https://supabase.com/blog/graphql-now-available GraphQL is now available in Supabase https://supabase.com/blog/graphql-now-available GraphQL support is now in general availability on the Supabase platform via our open source PostgreSQL extension, pg_graphql (beta). - Mon, 28 Mar 2022 04:04:00 +0000 + Mon, 28 Mar 2022 02:02:30 +0000 https://supabase.com/blog/community-day-lw4 Community Day https://supabase.com/blog/community-day-lw4 Kicking off Launch Week 4 with contributors, partners, and friends. - Sun, 27 Mar 2022 04:04:00 +0000 + Sun, 27 Mar 2022 02:02:30 +0000 https://supabase.com/blog/supabase-launch-week-four Supabase Launch Week 4 https://supabase.com/blog/supabase-launch-week-four Launch Week 4: One new feature every day for an entire week. Starting Monday 28th March. - Thu, 24 Mar 2022 04:04:00 +0000 + Thu, 24 Mar 2022 02:02:30 +0000 https://supabase.com/blog/should-i-open-source-my-company Should I Open Source my Company? https://supabase.com/blog/should-i-open-source-my-company The unexpected upsides of building in public - Thu, 24 Mar 2022 04:04:00 +0000 + Thu, 24 Mar 2022 02:02:30 +0000 https://supabase.com/blog/audit Postgres Auditing in 150 lines of SQL https://supabase.com/blog/audit PostgreSQL has a robust set of features which we can leverage to create a generic auditing solution in 150 lines of SQL. - Mon, 07 Mar 2022 05:05:00 +0000 + Mon, 07 Mar 2022 03:03:30 +0000 https://supabase.com/blog/supabase-beta-january-2022 Supabase Beta January 2022 https://supabase.com/blog/supabase-beta-january-2022 New auth providers, SMS providers, and new videos. - Mon, 21 Feb 2022 05:05:00 +0000 + Mon, 21 Feb 2022 03:03:30 +0000 https://supabase.com/blog/supabase-beta-december-2021 Supabase Beta December 2021 https://supabase.com/blog/supabase-beta-december-2021 New crypto extension, Postgres videos, and a bunch of cool integrations. - Wed, 19 Jan 2022 05:05:00 +0000 + Wed, 19 Jan 2022 03:03:30 +0000 https://supabase.com/blog/product-hunt-golden-kitty-awards-2021 Golden Kitty Awards Ceremony Watch Party with Supabase https://supabase.com/blog/product-hunt-golden-kitty-awards-2021 Hang out with us while watching the Product Hunt Golden Kitty Awards Ceremony - Wed, 19 Jan 2022 05:05:00 +0000 + Wed, 19 Jan 2022 03:03:30 +0000 https://supabase.com/blog/holiday-hackdays-winners-2021 Holiday Hackdays Winners 2021 https://supabase.com/blog/holiday-hackdays-winners-2021 Celebrating many amazing projects submitted to our Holiday Hackdays Hackathon. - Thu, 16 Dec 2021 05:05:00 +0000 + Thu, 16 Dec 2021 03:03:30 +0000 https://supabase.com/blog/beta-november-2021-launch-week-recap Supabase Beta November 2021: Launch Week Recap https://supabase.com/blog/beta-november-2021-launch-week-recap We wrapped up November with Supabase's third Launch Week. Here's all the awesome stuff that got shipped ... - Tue, 14 Dec 2021 05:05:00 +0000 + Tue, 14 Dec 2021 03:03:30 +0000 https://supabase.com/blog/supabase-holiday-hackdays-hackathon Kicking off the Holiday Hackdays https://supabase.com/blog/supabase-holiday-hackdays-hackathon Build cool stuff and celebrate open-source software with us during the Holiday Hackdays! - Thu, 02 Dec 2021 05:05:00 +0000 + Thu, 02 Dec 2021 03:03:30 +0000 https://supabase.com/blog/pg-graphql pg_graphql: A GraphQL extension for PostgreSQL https://supabase.com/blog/pg-graphql GraphQL support is in development for PostgreSQL + Supabase. - Thu, 02 Dec 2021 05:05:00 +0000 + Thu, 02 Dec 2021 03:03:30 +0000 https://supabase.com/blog/launch-week-three-friday-five-more-things Five more things https://supabase.com/blog/launch-week-three-friday-five-more-things It's never just one more thing! - Thu, 02 Dec 2021 05:05:00 +0000 + Thu, 02 Dec 2021 03:03:30 +0000 https://supabase.com/blog/supabase-acquires-logflare Supabase acquires Logflare https://supabase.com/blog/supabase-acquires-logflare Today, we're ecstatic to announce that Logflare is joining Supabase. - Wed, 01 Dec 2021 05:05:00 +0000 + Wed, 01 Dec 2021 03:03:30 +0000 https://supabase.com/blog/realtime-row-level-security-in-postgresql Realtime Postgres RLS now available on Supabase https://supabase.com/blog/realtime-row-level-security-in-postgresql Realtime database changes are now broadcast to authenticated users, respecting the same PostgreSQL policies that you use for Row Level Security. - Tue, 30 Nov 2021 05:05:00 +0000 + Tue, 30 Nov 2021 03:03:30 +0000 https://supabase.com/blog/supabase-studio Supabase Studio https://supabase.com/blog/supabase-studio The same Dashboard that you're using on our Platform is now available for local development and Self-Hosting. - Mon, 29 Nov 2021 05:05:00 +0000 + Mon, 29 Nov 2021 03:03:30 +0000 https://supabase.com/blog/community-day-lw3 Community Day https://supabase.com/blog/community-day-lw3 Kicking off launch week by highlighting the communities around Supabase. - Sun, 28 Nov 2021 05:05:00 +0000 + Sun, 28 Nov 2021 03:03:30 +0000 https://supabase.com/blog/whats-new-in-postgres-14 New in PostgreSQL 14: What every developer should know https://supabase.com/blog/whats-new-in-postgres-14 A quick look at some new features and functionality in PostgreSQL 14. - Sat, 27 Nov 2021 05:05:00 +0000 + Sat, 27 Nov 2021 03:03:30 +0000 https://supabase.com/blog/postgrest-9 PostgREST 9 https://supabase.com/blog/postgrest-9 New features and updates in PostgREST version 9. - Fri, 26 Nov 2021 05:05:00 +0000 + Fri, 26 Nov 2021 03:03:30 +0000 https://supabase.com/blog/supabase-launch-week-the-trilogy Supabase Launch Week III: Holiday Special https://supabase.com/blog/supabase-launch-week-the-trilogy Tis the season to be shipping. - Thu, 25 Nov 2021 05:05:00 +0000 + Thu, 25 Nov 2021 03:03:30 +0000 https://supabase.com/blog/supabase-how-we-launch How we launch at Supabase https://supabase.com/blog/supabase-how-we-launch The history and methodology of Supabase Launch Week. - Thu, 25 Nov 2021 05:05:00 +0000 + Thu, 25 Nov 2021 03:03:30 +0000 https://supabase.com/blog/supabase-beta-october-2021 Supabase Beta October 2021 https://supabase.com/blog/supabase-beta-october-2021 Three new Auth providers, multi-schema support, and we're gearing up for another Launch Week. - Sat, 06 Nov 2021 04:04:00 +0000 + Sat, 06 Nov 2021 02:02:30 +0000 https://supabase.com/blog/supabase-series-a Supabase $30m Series A https://supabase.com/blog/supabase-series-a Supabase just raised $30M, bringing our total funding to $36M. - Wed, 27 Oct 2021 04:04:00 +0000 + Wed, 27 Oct 2021 02:02:30 +0000 https://supabase.com/blog/replenysh-time-to-value-in-less-than-24-hours Replenysh uses Supabase to implement OTP in less than 24-hours https://supabase.com/blog/replenysh-time-to-value-in-less-than-24-hours Learn how Replenysh uses Supabase to power the circular economy, redefining how brands interact with their customers and products. - Mon, 18 Oct 2021 04:04:00 +0000 + Mon, 18 Oct 2021 02:02:30 +0000 https://supabase.com/blog/hacktoberfest-hackathon-winners-2021 Hacktoberfest Hackathon Winners 2021 https://supabase.com/blog/hacktoberfest-hackathon-winners-2021 Celebrating many amazing projects submitted to our Hacktoberfest Hackathon. - Wed, 13 Oct 2021 04:04:00 +0000 + Wed, 13 Oct 2021 02:02:30 +0000 https://supabase.com/blog/supabase-beta-sept-2021 Supabase Beta Sept 2021 https://supabase.com/blog/supabase-beta-sept-2021 Hackathon, Aborting request, UI updates, and now Hiring. - Sun, 03 Oct 2021 04:04:00 +0000 + Sun, 03 Oct 2021 02:02:30 +0000 https://supabase.com/blog/supabase-hacktoberfest-hackathon-2021 Supabase Hacktoberfest Hackathon 2021 https://supabase.com/blog/supabase-hacktoberfest-hackathon-2021 We're running another Supabase Hackathon during Hacktoberfest! - Mon, 27 Sep 2021 04:04:00 +0000 + Mon, 27 Sep 2021 02:02:30 +0000 https://supabase.com/blog/supabase-beta-august-2021 Supabase Beta August 2021 https://supabase.com/blog/supabase-beta-august-2021 Fundraising, Realtime Security, custom SMS templates, and deployments in South Korea. - Thu, 09 Sep 2021 04:04:00 +0000 + Thu, 09 Sep 2021 02:02:30 +0000 https://supabase.com/blog/supabase-beta-july-2021 Supabase Beta July 2021 https://supabase.com/blog/supabase-beta-july-2021 Discord Logins, Vercel Integration, Full text search, and OAuth guides. - Wed, 11 Aug 2021 04:04:00 +0000 + Wed, 11 Aug 2021 02:02:30 +0000 https://supabase.com/blog/hackathon-winners Open Source Hackathon Winners https://supabase.com/blog/hackathon-winners Let the medal ceremony begin for the best projects submitted during the Supabase Hackathon. - Sun, 08 Aug 2021 04:04:00 +0000 + Sun, 08 Aug 2021 02:02:30 +0000 https://supabase.com/blog/supabase-swag-store Supabase Swag Store https://supabase.com/blog/supabase-swag-store Today we are officially launching the Supabase Swag Store. - Thu, 29 Jul 2021 04:04:00 +0000 + Thu, 29 Jul 2021 02:02:30 +0000 https://supabase.com/blog/supabase-functions-updates Updates for Supabase Functions https://supabase.com/blog/supabase-functions-updates The question on everyone's mind - are we launching Supabase Functions? Well, it's complicated. - Thu, 29 Jul 2021 04:04:00 +0000 + Thu, 29 Jul 2021 02:02:30 +0000 https://supabase.com/blog/1-the-supabase-hackathon The Supabase Hackathon https://supabase.com/blog/1-the-supabase-hackathon A whole week of Hacking for Fun and Prizes. - Thu, 29 Jul 2021 04:04:00 +0000 + Thu, 29 Jul 2021 02:02:30 +0000 https://supabase.com/blog/supabase-reports-and-metrics Supabase Reports and Metrics https://supabase.com/blog/supabase-reports-and-metrics We're exposing a full set of metrics in your projects, so that you can build better (and faster) products for your users. - Wed, 28 Jul 2021 04:04:00 +0000 + Wed, 28 Jul 2021 02:02:30 +0000 https://supabase.com/blog/supabase-auth-passwordless-sms-login Supabase Auth v2: Phone Auth now available https://supabase.com/blog/supabase-auth-passwordless-sms-login Phone Auth is available today on all new and existing Supabase projects. - Tue, 27 Jul 2021 04:04:00 +0000 + Tue, 27 Jul 2021 02:02:30 +0000 https://supabase.com/blog/mobbin-supabase-200000-users Mobbin uses Supabase to authenticate 200,000 users https://supabase.com/blog/mobbin-supabase-200000-users Learn how Mobbin migrated 200,000 users from Firebase for a better authentication experience. - Tue, 27 Jul 2021 04:04:00 +0000 + Tue, 27 Jul 2021 02:02:30 +0000 https://supabase.com/blog/storage-beta Supabase Storage now in Beta https://supabase.com/blog/storage-beta Supabase Storage moves into Beta. - Mon, 26 Jul 2021 04:04:00 +0000 + Mon, 26 Jul 2021 02:02:30 +0000 https://supabase.com/blog/spot-flutter-with-postgres Spot: a video sharing app built with Flutter https://supabase.com/blog/spot-flutter-with-postgres Spot is a geolocation-based video-sharing app with some social networking features. - Mon, 26 Jul 2021 04:04:00 +0000 + Mon, 26 Jul 2021 02:02:30 +0000 https://supabase.com/blog/supabase-postgres-13 Supabase is now on Postgres 13.3 https://supabase.com/blog/supabase-postgres-13 From today, new Supabase projects will be on a version of Supabase Postgres that runs on Postgres 13.3. - Sun, 25 Jul 2021 04:04:00 +0000 + Sun, 25 Jul 2021 02:02:30 +0000 https://supabase.com/blog/supabase-community-day Supabase Community Day https://supabase.com/blog/supabase-community-day Community Day - Sun, 25 Jul 2021 04:04:00 +0000 + Sun, 25 Jul 2021 02:02:30 +0000 https://supabase.com/blog/epsilon3-self-hosting Epsilon3 Self-Host Supabase To Revolutionize Space Operations https://supabase.com/blog/epsilon3-self-hosting Learn how the team at Epsilon3 use Supabase to help teams execute secure and reliable operations in an industry that project spend runs into the billions. - Sun, 25 Jul 2021 04:04:00 +0000 + Sun, 25 Jul 2021 02:02:30 +0000 https://supabase.com/blog/supabase-launch-week-sql Supabase Launch Week II: The SQL https://supabase.com/blog/supabase-launch-week-sql Five days of Supabase. Again. - Wed, 21 Jul 2021 04:04:00 +0000 + Wed, 21 Jul 2021 02:02:30 +0000 https://supabase.com/blog/roles-postgres-hooks Protecting reserved roles with PostgreSQL Hooks https://supabase.com/blog/roles-postgres-hooks Using Postgres Hooks to protect functionality in your Postgres database. - Thu, 01 Jul 2021 04:04:00 +0000 + Thu, 01 Jul 2021 02:02:30 +0000 https://supabase.com/blog/supabase-beta-june-2021 Supabase Beta June 2021 https://supabase.com/blog/supabase-beta-june-2021 Discord Logins, Vercel Integration, Full text search, and OAuth guides. - Tue, 01 Jun 2021 04:04:00 +0000 + Tue, 01 Jun 2021 02:02:30 +0000 https://supabase.com/blog/supabase-beta-may-2021 Supabase Beta May 2021 https://supabase.com/blog/supabase-beta-may-2021 Apple & Twitter Logins, Supabase Grid, Go & Swift Libraries. - Tue, 01 Jun 2021 04:04:00 +0000 + Tue, 01 Jun 2021 02:02:30 +0000 https://supabase.com/blog/supabase-beta-april-2021 Supabase Beta April 2021 https://supabase.com/blog/supabase-beta-april-2021 Supabase "gardening" - stability, security, and community support. - Tue, 04 May 2021 04:04:00 +0000 + Tue, 04 May 2021 02:02:30 +0000 https://supabase.com/blog/supabase-beta-march-2021 Supabase Beta March 2021 https://supabase.com/blog/supabase-beta-march-2021 Launch week, Storage, Supabase CLI, Connection Pooling, Supabase UI, and Pricing. - Mon, 05 Apr 2021 04:04:00 +0000 + Mon, 05 Apr 2021 02:02:30 +0000 https://supabase.com/blog/supabase-workflows Workflows are coming to Supabase https://supabase.com/blog/supabase-workflows Functions are great, but you know what's better? - Thu, 01 Apr 2021 04:04:00 +0000 + Thu, 01 Apr 2021 02:02:30 +0000 https://supabase.com/blog/supabase-pgbouncer PgBouncer is now available in Supabase https://supabase.com/blog/supabase-pgbouncer Better support for Serverless and Postgres. - Thu, 01 Apr 2021 04:04:00 +0000 + Thu, 01 Apr 2021 02:02:30 +0000 https://supabase.com/blog/supabase-dot-com Supabase Dot Com https://supabase.com/blog/supabase-dot-com The Supabase Domain name is changing. - Thu, 01 Apr 2021 04:04:00 +0000 + Thu, 01 Apr 2021 02:02:30 +0000 https://supabase.com/blog/supabase-nft-marketplace Supabase Launches NFT Marketplace https://supabase.com/blog/supabase-nft-marketplace A fully encrypted NFT platform to protect and transact your digital assets - Thu, 01 Apr 2021 04:04:00 +0000 + Thu, 01 Apr 2021 02:02:30 +0000 https://supabase.com/blog/supabase-cli Supabase CLI https://supabase.com/blog/supabase-cli Local development, database migrations, and self-hosting. - Wed, 31 Mar 2021 04:04:00 +0000 + Wed, 31 Mar 2021 02:02:30 +0000 https://supabase.com/blog/supabase-storage Storage is now available in Supabase https://supabase.com/blog/supabase-storage Launching Supabase Storage and how you can use it in your apps - Tue, 30 Mar 2021 04:04:00 +0000 + Tue, 30 Mar 2021 02:02:30 +0000 https://supabase.com/blog/pricing Supabase Beta Pricing https://supabase.com/blog/pricing Supabase launches Beta pricing structure - Mon, 29 Mar 2021 04:04:00 +0000 + Mon, 29 Mar 2021 02:02:30 +0000 https://supabase.com/blog/launch-week Launch week https://supabase.com/blog/launch-week Five days of Supabase. - Wed, 24 Mar 2021 04:04:00 +0000 + Wed, 24 Mar 2021 02:02:30 +0000 https://supabase.com/blog/angels-of-supabase Angels of Supabase https://supabase.com/blog/angels-of-supabase Meet the investors of Supabase. - Wed, 24 Mar 2021 04:04:00 +0000 + Wed, 24 Mar 2021 02:02:30 +0000 https://supabase.com/blog/In-The-Loop Developers stay up to date with intheloop.dev https://supabase.com/blog/In-The-Loop Learn why Kevin is building intheloop.dev with Supabase - Mon, 22 Mar 2021 04:04:00 +0000 + Mon, 22 Mar 2021 02:02:30 +0000 https://supabase.com/blog/using-supabase-replit Using Supabase in Replit https://supabase.com/blog/using-supabase-replit Free hosted relational database from within your node.js repl - Thu, 11 Mar 2021 05:05:00 +0000 + Thu, 11 Mar 2021 03:03:30 +0000 https://supabase.com/blog/toad-a-link-shortener-with-simple-apis-for-low-coders Toad, a link shortener with simple APIs for low-coders https://supabase.com/blog/toad-a-link-shortener-with-simple-apis-for-low-coders An easy-to-use link shortening tool with simple APIs - Mon, 08 Mar 2021 05:05:00 +0000 + Mon, 08 Mar 2021 03:03:30 +0000 https://supabase.com/blog/postgres-as-a-cron-server Postgres as a CRON Server https://supabase.com/blog/postgres-as-a-cron-server Running repetitive tasks with your Postgres database. - Fri, 05 Mar 2021 05:05:00 +0000 + Fri, 05 Mar 2021 03:03:30 +0000 https://supabase.com/blog/supabase-beta-february-2021 Supabase Beta February 2021 https://supabase.com/blog/supabase-beta-february-2021 One year of building. - Tue, 02 Mar 2021 05:05:00 +0000 + Tue, 02 Mar 2021 03:03:30 +0000 https://supabase.com/blog/cracking-postgres-interview Cracking PostgreSQL Interview Questions https://supabase.com/blog/cracking-postgres-interview Understand the top PostgreSQL Interview Questions - Sat, 27 Feb 2021 05:05:00 +0000 + Sat, 27 Feb 2021 03:03:30 +0000 https://supabase.com/blog/case-study-roboflow Roboflow.com choose Supabase to power Paint.wtf leaderboard https://supabase.com/blog/case-study-roboflow Learn how Roboflow.com used Supabase to build their Paint.wtf leaderboard - Tue, 09 Feb 2021 05:05:00 +0000 + Tue, 09 Feb 2021 03:03:30 +0000 https://supabase.com/blog/supabase-beta-january-2021 Supabase Beta January 2021 https://supabase.com/blog/supabase-beta-january-2021 Eleven months of building. - Tue, 02 Feb 2021 05:05:00 +0000 + Tue, 02 Feb 2021 03:03:30 +0000 https://supabase.com/blog/supabase-beta-december-2020 Supabase Beta December 2020 https://supabase.com/blog/supabase-beta-december-2020 Ten months of building. - Sat, 02 Jan 2021 05:05:00 +0000 + Sat, 02 Jan 2021 03:03:30 +0000 https://supabase.com/blog/supabase-dashboard-performance Making the Supabase Dashboard Supa-fast https://supabase.com/blog/supabase-dashboard-performance Improving the performance of the Supabase dashboard - Sun, 13 Dec 2020 05:05:00 +0000 + Sun, 13 Dec 2020 03:03:30 +0000 https://supabase.com/blog/supabase-striveschool Supabase Partners With Strive School To Help Teach Open Source https://supabase.com/blog/supabase-striveschool Supabase Partners With Strive School To Help Teach Open Source To The Next Generation Of Developers - Wed, 02 Dec 2020 05:05:00 +0000 + Wed, 02 Dec 2020 03:03:30 +0000 https://supabase.com/blog/case-study-xendit Xendit Built a Counter-Fraud Watchlist for the Fintech Industry https://supabase.com/blog/case-study-xendit See how Xendit use Supabase to build a full-text search engine. - Wed, 02 Dec 2020 05:05:00 +0000 + Wed, 02 Dec 2020 03:03:30 +0000 https://supabase.com/blog/case-study-tayfa TAYFA Built a No-Code Website Builder in Seven Days https://supabase.com/blog/case-study-tayfa See how Tayfa went from idea to paying customer in less than 30 days. - Wed, 02 Dec 2020 05:05:00 +0000 + Wed, 02 Dec 2020 03:03:30 +0000 https://supabase.com/blog/case-study-monitoro Monitoro Built a Web Crawler Handling Millions of API Requests https://supabase.com/blog/case-study-monitoro See how Monitoro built an automated scraping platform using Supabase. - Wed, 02 Dec 2020 05:05:00 +0000 + Wed, 02 Dec 2020 03:03:30 +0000 https://supabase.com/blog/supabase-alpha-november-2020 Supabase Alpha November 2020 https://supabase.com/blog/supabase-alpha-november-2020 Nine months of building. - Tue, 01 Dec 2020 05:05:00 +0000 + Tue, 01 Dec 2020 03:03:30 +0000 https://supabase.com/blog/postgresql-views Postgres Views https://supabase.com/blog/postgresql-views Creating and using a view in PostgreSQL. - Wed, 18 Nov 2020 05:05:00 +0000 + Wed, 18 Nov 2020 03:03:30 +0000 https://supabase.com/blog/supabase-alpha-october-2020 Supabase Alpha October 2020 https://supabase.com/blog/supabase-alpha-october-2020 Eight months of building. - Mon, 02 Nov 2020 05:05:00 +0000 + Mon, 02 Nov 2020 03:03:30 +0000 https://supabase.com/blog/improved-dx Supabase.js 1.0 https://supabase.com/blog/improved-dx We're releasing a new version of our Supabase client with some awesome new improvements. - Fri, 30 Oct 2020 04:04:00 +0000 + Fri, 30 Oct 2020 02:02:30 +0000 https://supabase.com/blog/supabase-alpha-september-2020 Supabase Alpha September 2020 https://supabase.com/blog/supabase-alpha-september-2020 Seven months of building. - Sat, 03 Oct 2020 04:04:00 +0000 + Sat, 03 Oct 2020 02:02:30 +0000 https://supabase.com/blog/supabase-hacktoberfest-2020 Supabase Hacktoberfest 2020 https://supabase.com/blog/supabase-hacktoberfest-2020 Join us for a celebration of open source software and learn how to contribute to Supabase. - Fri, 11 Sep 2020 04:04:00 +0000 + Fri, 11 Sep 2020 02:02:30 +0000 https://supabase.com/blog/supabase-alpha-august-2020 Supabase Alpha August 2020 https://supabase.com/blog/supabase-alpha-august-2020 Six months of building - Thu, 03 Sep 2020 04:04:00 +0000 + Thu, 03 Sep 2020 02:02:30 +0000 https://supabase.com/blog/supabase-auth Supabase Auth https://supabase.com/blog/supabase-auth Authenticate and authorize your users with Supabase Auth - Wed, 05 Aug 2020 04:04:00 +0000 + Wed, 05 Aug 2020 02:02:30 +0000 https://supabase.com/blog/supabase-alpha-july-2020 Supabase Alpha July 2020 https://supabase.com/blog/supabase-alpha-july-2020 Five months of building - Sun, 02 Aug 2020 04:04:00 +0000 + Sun, 02 Aug 2020 02:02:30 +0000 https://supabase.com/blog/continuous-postgresql-backup-walg Continuous PostgreSQL Backups using WAL-G https://supabase.com/blog/continuous-postgresql-backup-walg Have you ever wanted to restore your database's state to a particular moment in time? This post explains how, using WAL-G. - Sun, 02 Aug 2020 04:04:00 +0000 + Sun, 02 Aug 2020 02:02:30 +0000 https://supabase.com/blog/alpha-launch-postmortem Alpha Launch Postmortem https://supabase.com/blog/alpha-launch-postmortem Everything that went wrong with Supabase's launch - Fri, 10 Jul 2020 04:04:00 +0000 + Fri, 10 Jul 2020 02:02:30 +0000 https://supabase.com/blog/postgresql-templates What are PostgreSQL Templates? https://supabase.com/blog/postgresql-templates What are PostgreSQL templates and what are they used for? - Thu, 09 Jul 2020 04:04:00 +0000 + Thu, 09 Jul 2020 02:02:30 +0000 https://supabase.com/blog/postgresql-physical-logical-backups Physical vs Logical Backups in PostgreSQL https://supabase.com/blog/postgresql-physical-logical-backups What are physical and logical backups in Postgres? - Tue, 07 Jul 2020 04:04:00 +0000 + Tue, 07 Jul 2020 02:02:30 +0000 https://supabase.com/blog/supabase-alpha-june-2020 Supabase Alpha June 2020 https://supabase.com/blog/supabase-alpha-june-2020 Four months of building - Wed, 01 Jul 2020 04:04:00 +0000 + Wed, 01 Jul 2020 02:02:30 +0000 https://supabase.com/blog/supabase-steve-chavez Steve Chavez has joined Supabase https://supabase.com/blog/supabase-steve-chavez Steve joins Supabase to help build Auth. - Mon, 15 Jun 2020 04:04:00 +0000 + Mon, 15 Jun 2020 02:02:30 +0000 https://supabase.com/blog/supabase-alpha-may-2020 Supabase Alpha May 2020 https://supabase.com/blog/supabase-alpha-may-2020 Three months of building - Mon, 01 Jun 2020 04:04:00 +0000 + Mon, 01 Jun 2020 02:02:30 +0000 https://supabase.com/blog/supabase-alpha-april-2020 Supabase Alpha April 2020 https://supabase.com/blog/supabase-alpha-april-2020 Two months of building - Mon, 01 Jun 2020 04:04:00 +0000 + Mon, 01 Jun 2020 02:02:30 +0000 diff --git a/docker/.env.example b/docker/.env.example index 3d68946481e..81c5afd474b 100644 --- a/docker/.env.example +++ b/docker/.env.example @@ -74,4 +74,5 @@ STUDIO_DEFAULT_ORGANIZATION=Default Organization STUDIO_DEFAULT_PROJECT=Default Project STUDIO_PORT=3000 -SUPABASE_PUBLIC_URL=http://localhost:8000 # replace if you intend to use Studio outside of localhost +# replace if you intend to use Studio outside of localhost +SUPABASE_PUBLIC_URL=http://localhost:8000 diff --git a/docker/dev/docker-compose.dev.yml b/docker/dev/docker-compose.dev.yml index 136c34ab3e0..2df9520bbc2 100644 --- a/docker/dev/docker-compose.dev.yml +++ b/docker/dev/docker-compose.dev.yml @@ -18,6 +18,8 @@ services: db: restart: 'no' volumes: + # Always use a fresh database when developing + - /var/lib/postgresql/data # Seed data should be inserted last (alphabetical order) - ./dev/data.sql:/docker-entrypoint-initdb.d/seed.sql storage: diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 54a48a3f25a..db91090408e 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -47,7 +47,7 @@ services: auth: container_name: supabase-auth - image: supabase/gotrue:v2.31.0 + image: supabase/gotrue:v2.40.1 depends_on: db: # Disable this if you are using an external Postgres database condition: service_healthy @@ -104,29 +104,30 @@ services: PGRST_DB_USE_LEGACY_GUCS: "false" realtime: - container_name: supabase-realtime - image: supabase/realtime:v0.25.1 + container_name: realtime-dev.supabase-realtime + image: supabase/realtime:v2.1.0 depends_on: db: # Disable this if you are using an external Postgres database condition: service_healthy restart: unless-stopped environment: + PORT: 4000 DB_HOST: ${POSTGRES_HOST} DB_PORT: ${POSTGRES_PORT} - DB_NAME: ${POSTGRES_DB} - DB_USER: supabase_admin + DB_USER: ${POSTGRES_USER} DB_PASSWORD: ${POSTGRES_PASSWORD} - DB_SSL: "false" - PORT: 4000 - JWT_SECRET: ${JWT_SECRET} - REPLICATION_MODE: RLS - REPLICATION_POLL_INTERVAL: 100 - SECURE_CHANNELS: "true" - SLOT_NAME: supabase_realtime_rls - TEMPORARY_SLOT: "true" + DB_NAME: ${POSTGRES_DB} + DB_AFTER_CONNECT_QUERY: 'SET search_path TO _realtime' + DB_ENC_KEY: supabaserealtime + API_JWT_SECRET: ${JWT_SECRET} + FLY_ALLOC_ID: fly123 + FLY_APP_NAME: realtime + SECRET_KEY_BASE: UpNVntn3cDxHJpq99YMc1T1AQgQpc8kfYTuRgBiYa15BLrx8etQoXz3gZv1/u2oq + ERL_AFLAGS: -proto_dist inet_tcp + ENABLE_TAILSCALE: "false" + DNS_NODES: "''" command: > - bash -c "./prod/rel/realtime/bin/realtime eval Realtime.Release.migrate - && ./prod/rel/realtime/bin/realtime start" + sh -c "/app/bin/migrate && /app/bin/realtime eval 'Realtime.Release.seeds(Realtime.Repo)' && /app/bin/server" storage: container_name: supabase-storage @@ -208,5 +209,6 @@ services: PGDATABASE: ${POSTGRES_DB} POSTGRES_DB: ${POSTGRES_DB} volumes: + - ./volumes/db/realtime.sql:/docker-entrypoint-initdb.d/realtime.sql - ./volumes/db/roles.sql:/docker-entrypoint-initdb.d/roles.sql - ./volumes/db/data:/var/lib/postgresql/data diff --git a/docker/volumes/api/kong.yml b/docker/volumes/api/kong.yml index 7dd003d587a..d10738334f1 100644 --- a/docker/volumes/api/kong.yml +++ b/docker/volumes/api/kong.yml @@ -124,7 +124,7 @@ services: ## Secure Realtime routes - name: realtime-v1 _comment: "Realtime: /realtime/v1/* -> ws://realtime:4000/socket/*" - url: http://realtime:4000/socket/ + url: http://realtime-dev.supabase-realtime:4000/socket/ routes: - name: realtime-v1-all strip_path: true diff --git a/docker/volumes/db/realtime.sql b/docker/volumes/db/realtime.sql new file mode 100644 index 00000000000..4d4b9ffb912 --- /dev/null +++ b/docker/volumes/db/realtime.sql @@ -0,0 +1,4 @@ +\set pguser `echo "$POSTGRES_USER"` + +create schema if not exists _realtime; +alter schema _realtime owner to :pguser; diff --git a/examples/caching/with-nextjs-13/package-lock.json b/examples/caching/with-nextjs-13/package-lock.json index 37f5b0dda65..4328cb48ea7 100644 --- a/examples/caching/with-nextjs-13/package-lock.json +++ b/examples/caching/with-nextjs-13/package-lock.json @@ -2180,9 +2180,9 @@ "dev": true }, "node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dev": true, "dependencies": { "minimist": "^1.2.0" @@ -4922,9 +4922,9 @@ "dev": true }, "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dev": true, "requires": { "minimist": "^1.2.0" diff --git a/examples/user-management/angular-user-management/package-lock.json b/examples/user-management/angular-user-management/package-lock.json index 799fbad3c46..3b53fcb10c4 100644 --- a/examples/user-management/angular-user-management/package-lock.json +++ b/examples/user-management/angular-user-management/package-lock.json @@ -7093,9 +7093,9 @@ "dev": true }, "node_modules/json5": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", - "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, "bin": { "json5": "lib/cli.js" @@ -17212,9 +17212,9 @@ "dev": true }, "json5": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", - "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true }, "jsonc-parser": { diff --git a/examples/user-management/nextjs-ts-user-management/package-lock.json b/examples/user-management/nextjs-ts-user-management/package-lock.json index e56a717918b..277499b2d68 100644 --- a/examples/user-management/nextjs-ts-user-management/package-lock.json +++ b/examples/user-management/nextjs-ts-user-management/package-lock.json @@ -2364,9 +2364,9 @@ "dev": true }, "node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dev": true, "dependencies": { "minimist": "^1.2.0" @@ -5219,9 +5219,9 @@ "dev": true }, "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dev": true, "requires": { "minimist": "^1.2.0" diff --git a/examples/user-management/nuxt3-user-management/package-lock.json b/examples/user-management/nuxt3-user-management/package-lock.json index 4ebcbe4d0e2..c9b14f7de86 100644 --- a/examples/user-management/nuxt3-user-management/package-lock.json +++ b/examples/user-management/nuxt3-user-management/package-lock.json @@ -4385,9 +4385,9 @@ } }, "node_modules/json5": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", - "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, "bin": { "json5": "lib/cli.js" @@ -10873,9 +10873,9 @@ "dev": true }, "json5": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", - "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true }, "jsonc-parser": { diff --git a/examples/user-management/nuxtjs-user-management/package-lock.json b/examples/user-management/nuxtjs-user-management/package-lock.json index b56ae56ac2e..20ebce86572 100644 --- a/examples/user-management/nuxtjs-user-management/package-lock.json +++ b/examples/user-management/nuxtjs-user-management/package-lock.json @@ -4140,9 +4140,9 @@ } }, "node_modules/cache-loader/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dependencies": { "minimist": "^1.2.0" }, @@ -6823,9 +6823,9 @@ } }, "node_modules/html-webpack-plugin/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dependencies": { "minimist": "^1.2.0" }, @@ -7642,9 +7642,9 @@ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" }, "node_modules/json5": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", - "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "bin": { "json5": "lib/cli.js" }, @@ -9446,9 +9446,9 @@ } }, "node_modules/postcss-loader/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dependencies": { "minimist": "^1.2.0" }, @@ -12440,9 +12440,9 @@ "integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==" }, "node_modules/vue-loader/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dependencies": { "minimist": "^1.2.0" }, @@ -12591,9 +12591,9 @@ "integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==" }, "node_modules/vue-style-loader/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dependencies": { "minimist": "^1.2.0" }, @@ -13407,9 +13407,9 @@ } }, "node_modules/webpack/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dependencies": { "minimist": "^1.2.0" }, @@ -17088,9 +17088,9 @@ }, "dependencies": { "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "requires": { "minimist": "^1.2.0" } @@ -19177,9 +19177,9 @@ }, "dependencies": { "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "requires": { "minimist": "^1.2.0" } @@ -19762,9 +19762,9 @@ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" }, "json5": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", - "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==" + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==" }, "jsonfile": { "version": "6.1.0", @@ -21177,9 +21177,9 @@ }, "dependencies": { "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "requires": { "minimist": "^1.2.0" } @@ -23561,9 +23561,9 @@ "integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==" }, "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "requires": { "minimist": "^1.2.0" } @@ -23686,9 +23686,9 @@ "integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==" }, "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "requires": { "minimist": "^1.2.0" } @@ -24190,9 +24190,9 @@ } }, "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "requires": { "minimist": "^1.2.0" } diff --git a/examples/user-management/react-user-management/package-lock.json b/examples/user-management/react-user-management/package-lock.json index 534a7c7ab75..a3c749fba7c 100644 --- a/examples/user-management/react-user-management/package-lock.json +++ b/examples/user-management/react-user-management/package-lock.json @@ -4273,9 +4273,9 @@ } }, "node_modules/babel-loader/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dependencies": { "minimist": "^1.2.0" }, @@ -9521,9 +9521,9 @@ } }, "node_modules/html-webpack-plugin/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dependencies": { "minimist": "^1.2.0" }, @@ -12595,12 +12595,9 @@ "integrity": "sha512-c7/8mbUsKigAbLkD5B010BK4D9LZm7A1pNItkEwiUZRpIN66exu/e7YQWysGun+TRKaJp8MhemM+VkfWv42aCA==" }, "node_modules/json5": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", - "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", - "dependencies": { - "minimist": "^1.2.5" - }, + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "bin": { "json5": "lib/cli.js" }, @@ -13133,9 +13130,9 @@ } }, "node_modules/mini-css-extract-plugin/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dependencies": { "minimist": "^1.2.0" }, @@ -14942,9 +14939,9 @@ } }, "node_modules/postcss-loader/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dependencies": { "minimist": "^1.2.0" }, @@ -16818,9 +16815,9 @@ } }, "node_modules/resolve-url-loader/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dependencies": { "minimist": "^1.2.0" }, @@ -19194,9 +19191,9 @@ } }, "node_modules/tsconfig-paths/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dependencies": { "minimist": "^1.2.0" }, @@ -20999,9 +20996,9 @@ } }, "node_modules/webpack/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dependencies": { "minimist": "^1.2.0" }, @@ -24968,9 +24965,9 @@ }, "dependencies": { "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "requires": { "minimist": "^1.2.0" } @@ -29143,9 +29140,9 @@ }, "dependencies": { "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "requires": { "minimist": "^1.2.0" } @@ -31411,12 +31408,9 @@ "integrity": "sha512-c7/8mbUsKigAbLkD5B010BK4D9LZm7A1pNItkEwiUZRpIN66exu/e7YQWysGun+TRKaJp8MhemM+VkfWv42aCA==" }, "json5": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", - "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", - "requires": { - "minimist": "^1.2.5" - } + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==" }, "jsonfile": { "version": "6.1.0", @@ -31836,9 +31830,9 @@ }, "dependencies": { "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "requires": { "minimist": "^1.2.0" } @@ -33259,9 +33253,9 @@ }, "dependencies": { "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "requires": { "minimist": "^1.2.0" } @@ -34764,9 +34758,9 @@ "integrity": "sha1-TapNnbAPmBmIDHn6RXrlsJof04k=" }, "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "requires": { "minimist": "^1.2.0" } @@ -36653,9 +36647,9 @@ }, "dependencies": { "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "requires": { "minimist": "^1.2.0" } @@ -37523,9 +37517,9 @@ "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=" }, "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "requires": { "minimist": "^1.2.0" } diff --git a/examples/user-management/solid-user-management/package-lock.json b/examples/user-management/solid-user-management/package-lock.json index 601825ff2d6..e67ca55d43a 100644 --- a/examples/user-management/solid-user-management/package-lock.json +++ b/examples/user-management/solid-user-management/package-lock.json @@ -1320,9 +1320,9 @@ } }, "node_modules/json5": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", - "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, "bin": { "json5": "lib/cli.js" @@ -2631,9 +2631,9 @@ "dev": true }, "json5": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", - "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true }, "merge-anything": { diff --git a/package-lock.json b/package-lock.json index a623b4950f1..95377a815ed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9706,75 +9706,6 @@ "tailwindcss": ">=3.0.0 || >= 3.0.0-alpha.1" } }, - "node_modules/@tanstack/match-sorter-utils": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/@tanstack/match-sorter-utils/-/match-sorter-utils-8.1.1.tgz", - "integrity": "sha512-IdmEekEYxQsoLOR0XQyw3jD1GujBpRRYaGJYQUw1eOT1eUugWxdc7jomh1VQ1EKHcdwDLpLaCz/8y4KraU4T9A==", - "dependencies": { - "remove-accents": "0.4.2" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/kentcdodds" - } - }, - "node_modules/@tanstack/query-core": { - "version": "4.15.1", - "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-4.15.1.tgz", - "integrity": "sha512-+UfqJsNbPIVo0a9ANW0ZxtjiMfGLaaoIaL9vZeVycvmBuWywJGtSi7fgPVMCPdZQFOzMsaXaOsDtSKQD5xLRVQ==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/tannerlinsley" - } - }, - "node_modules/@tanstack/react-query": { - "version": "4.16.1", - "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-4.16.1.tgz", - "integrity": "sha512-PDE9u49wSDykPazlCoLFevUpceLjQ0Mm8i6038HgtTEKb/aoVnUZdlUP7C392ds3Cd75+EGlHU7qpEX06R7d9Q==", - "dependencies": { - "@tanstack/query-core": "4.15.1", - "use-sync-external-store": "^1.2.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/tannerlinsley" - }, - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0", - "react-native": "*" - }, - "peerDependenciesMeta": { - "react-dom": { - "optional": true - }, - "react-native": { - "optional": true - } - } - }, - "node_modules/@tanstack/react-query-devtools": { - "version": "4.16.1", - "resolved": "https://registry.npmjs.org/@tanstack/react-query-devtools/-/react-query-devtools-4.16.1.tgz", - "integrity": "sha512-VrDYLmG+OOcvGSZL5avG4R8jhqeMFP7pzW2sh2BWEV9UfI+aocG+CW8y8ygacxuKy48m8Tyo/xfe8H1z9BGb+g==", - "dependencies": { - "@tanstack/match-sorter-utils": "8.1.1", - "superjson": "^1.10.0", - "use-sync-external-store": "^1.2.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/tannerlinsley" - }, - "peerDependencies": { - "@tanstack/react-query": "4.16.1", - "react": "^16.8.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" - } - }, "node_modules/@testdeck/core": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/@testdeck/core/-/core-0.2.2.tgz", @@ -11040,6 +10971,15 @@ "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==" }, + "node_modules/@zip.js/zip.js": { + "version": "2.6.61", + "resolved": "https://registry.npmjs.org/@zip.js/zip.js/-/zip.js-2.6.61.tgz", + "integrity": "sha512-3zBN4zSTXUTz0vFzSnVV76a1tNVBj5cH6rSRDGpYzY95P6JQkepN0puXgtUqLHMTsnfGbwnpG1yVO93RH3xQ1g==", + "engines": { + "deno": ">=1.0.0", + "node": ">=16.5.0" + } + }, "node_modules/abab": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", @@ -14531,9 +14471,9 @@ } }, "node_modules/css-loader/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dev": true, "dependencies": { "minimist": "^1.2.0" @@ -19576,9 +19516,9 @@ } }, "node_modules/html-webpack-plugin/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dev": true, "dependencies": { "minimist": "^1.2.0" @@ -22579,9 +22519,9 @@ } }, "node_modules/js-yaml-loader/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dependencies": { "minimist": "^1.2.0" }, @@ -22725,9 +22665,9 @@ "dev": true }, "node_modules/json5": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", - "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "bin": { "json5": "lib/cli.js" }, @@ -34674,9 +34614,9 @@ } }, "node_modules/tsconfig-paths/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dependencies": { "minimist": "^1.2.0" }, @@ -36613,9 +36553,9 @@ } }, "node_modules/webpack/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dependencies": { "minimist": "^1.2.0" }, @@ -37583,8 +37523,9 @@ "@supabase/react-data-grid": "^7.1.0-beta.7", "@supabase/shared-types": "^0.1.29", "@supabase/supabase-js": "^2.1.1", - "@tanstack/react-query": "^4.16.1", - "@tanstack/react-query-devtools": "^4.16.1", + "@tanstack/react-query": "^4.22.0", + "@tanstack/react-query-devtools": "^4.22.0", + "@zip.js/zip.js": "^2.6.61", "ajv": "^8.6.3", "analytics-node": "^3.5.0", "awesome-debounce-promise": "^2.1.0", @@ -37717,6 +37658,75 @@ "tailwindcss": ">=3.0.0 || insiders" } }, + "studio/node_modules/@tanstack/match-sorter-utils": { + "version": "8.7.6", + "resolved": "https://registry.npmjs.org/@tanstack/match-sorter-utils/-/match-sorter-utils-8.7.6.tgz", + "integrity": "sha512-2AMpRiA6QivHOUiBpQAVxjiHAA68Ei23ZUMNaRJrN6omWiSFLoYrxGcT6BXtuzp0Jw4h6HZCmGGIM/gbwebO2A==", + "dependencies": { + "remove-accents": "0.4.2" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/kentcdodds" + } + }, + "studio/node_modules/@tanstack/query-core": { + "version": "4.22.0", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-4.22.0.tgz", + "integrity": "sha512-OeLyBKBQoT265f5G9biReijeP8mBxNFwY7ZUu1dKL+YzqpG5q5z7J/N1eT8aWyKuhyDTiUHuKm5l+oIVzbtrjw==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, + "studio/node_modules/@tanstack/react-query": { + "version": "4.22.0", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-4.22.0.tgz", + "integrity": "sha512-P9o+HjG42uB/xHR6dMsJaPhtZydSe4v0xdG5G/cEj1oHZAXelMlm67/rYJNQGKgBamKElKogj+HYGF+NY2yHYg==", + "dependencies": { + "@tanstack/query-core": "4.22.0", + "use-sync-external-store": "^1.2.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-native": "*" + }, + "peerDependenciesMeta": { + "react-dom": { + "optional": true + }, + "react-native": { + "optional": true + } + } + }, + "studio/node_modules/@tanstack/react-query-devtools": { + "version": "4.22.0", + "resolved": "https://registry.npmjs.org/@tanstack/react-query-devtools/-/react-query-devtools-4.22.0.tgz", + "integrity": "sha512-YeYFBnfqvb+ZlA0IiJqiHNNSzepNhI1p2o9i8NlhQli9+Zrn230M47OBaBUs8qr3DD1dC2zGB1Dis50Ktz8gAA==", + "dependencies": { + "@tanstack/match-sorter-utils": "^8.7.0", + "superjson": "^1.10.0", + "use-sync-external-store": "^1.2.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "@tanstack/react-query": "4.22.0", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, "studio/node_modules/@types/d3-path": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-2.0.2.tgz", @@ -44528,38 +44538,6 @@ "mini-svg-data-uri": "^1.2.3" } }, - "@tanstack/match-sorter-utils": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/@tanstack/match-sorter-utils/-/match-sorter-utils-8.1.1.tgz", - "integrity": "sha512-IdmEekEYxQsoLOR0XQyw3jD1GujBpRRYaGJYQUw1eOT1eUugWxdc7jomh1VQ1EKHcdwDLpLaCz/8y4KraU4T9A==", - "requires": { - "remove-accents": "0.4.2" - } - }, - "@tanstack/query-core": { - "version": "4.15.1", - "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-4.15.1.tgz", - "integrity": "sha512-+UfqJsNbPIVo0a9ANW0ZxtjiMfGLaaoIaL9vZeVycvmBuWywJGtSi7fgPVMCPdZQFOzMsaXaOsDtSKQD5xLRVQ==" - }, - "@tanstack/react-query": { - "version": "4.16.1", - "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-4.16.1.tgz", - "integrity": "sha512-PDE9u49wSDykPazlCoLFevUpceLjQ0Mm8i6038HgtTEKb/aoVnUZdlUP7C392ds3Cd75+EGlHU7qpEX06R7d9Q==", - "requires": { - "@tanstack/query-core": "4.15.1", - "use-sync-external-store": "^1.2.0" - } - }, - "@tanstack/react-query-devtools": { - "version": "4.16.1", - "resolved": "https://registry.npmjs.org/@tanstack/react-query-devtools/-/react-query-devtools-4.16.1.tgz", - "integrity": "sha512-VrDYLmG+OOcvGSZL5avG4R8jhqeMFP7pzW2sh2BWEV9UfI+aocG+CW8y8ygacxuKy48m8Tyo/xfe8H1z9BGb+g==", - "requires": { - "@tanstack/match-sorter-utils": "8.1.1", - "superjson": "^1.10.0", - "use-sync-external-store": "^1.2.0" - } - }, "@testdeck/core": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/@testdeck/core/-/core-0.2.2.tgz", @@ -45664,6 +45642,11 @@ "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==" }, + "@zip.js/zip.js": { + "version": "2.6.61", + "resolved": "https://registry.npmjs.org/@zip.js/zip.js/-/zip.js-2.6.61.tgz", + "integrity": "sha512-3zBN4zSTXUTz0vFzSnVV76a1tNVBj5cH6rSRDGpYzY95P6JQkepN0puXgtUqLHMTsnfGbwnpG1yVO93RH3xQ1g==" + }, "abab": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", @@ -48413,9 +48396,9 @@ } }, "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dev": true, "requires": { "minimist": "^1.2.0" @@ -52812,9 +52795,9 @@ }, "dependencies": { "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dev": true, "requires": { "minimist": "^1.2.0" @@ -55175,9 +55158,9 @@ } }, "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "requires": { "minimist": "^1.2.0" } @@ -55282,9 +55265,9 @@ "dev": true }, "json5": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", - "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==" + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==" }, "jsonc-parser": { "version": "3.2.0", @@ -63365,11 +63348,11 @@ "@supabase/shared-types": "^0.1.29", "@supabase/supabase-js": "^2.1.1", "@tailwindcss/typography": "^0.5.2", - "@tanstack/react-query": "^4.16.1", - "@tanstack/react-query-devtools": "^4.16.1", + "@tanstack/react-query": "^4.22.0", + "@tanstack/react-query-devtools": "^4.22.0", "@testing-library/dom": "^8.19.0", "@testing-library/react": "^12.1.5", - "@testing-library/react-hooks": "*", + "@testing-library/react-hooks": "^8.0.1", "@testing-library/user-event": "^13.5.0", "@types/blueimp-md5": "^2.18.0", "@types/file-saver": "^2.0.2", @@ -63391,6 +63374,7 @@ "@types/sqlstring": "^2.3.0", "@types/uuid": "^8.3.4", "@types/zxcvbn": "^4.4.1", + "@zip.js/zip.js": "^2.6.61", "ajv": "^8.6.3", "analytics-node": "^3.5.0", "autoprefixer": "10.4.2", @@ -63484,6 +63468,38 @@ "postcss-selector-parser": "6.0.10" } }, + "@tanstack/match-sorter-utils": { + "version": "8.7.6", + "resolved": "https://registry.npmjs.org/@tanstack/match-sorter-utils/-/match-sorter-utils-8.7.6.tgz", + "integrity": "sha512-2AMpRiA6QivHOUiBpQAVxjiHAA68Ei23ZUMNaRJrN6omWiSFLoYrxGcT6BXtuzp0Jw4h6HZCmGGIM/gbwebO2A==", + "requires": { + "remove-accents": "0.4.2" + } + }, + "@tanstack/query-core": { + "version": "4.22.0", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-4.22.0.tgz", + "integrity": "sha512-OeLyBKBQoT265f5G9biReijeP8mBxNFwY7ZUu1dKL+YzqpG5q5z7J/N1eT8aWyKuhyDTiUHuKm5l+oIVzbtrjw==" + }, + "@tanstack/react-query": { + "version": "4.22.0", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-4.22.0.tgz", + "integrity": "sha512-P9o+HjG42uB/xHR6dMsJaPhtZydSe4v0xdG5G/cEj1oHZAXelMlm67/rYJNQGKgBamKElKogj+HYGF+NY2yHYg==", + "requires": { + "@tanstack/query-core": "4.22.0", + "use-sync-external-store": "^1.2.0" + } + }, + "@tanstack/react-query-devtools": { + "version": "4.22.0", + "resolved": "https://registry.npmjs.org/@tanstack/react-query-devtools/-/react-query-devtools-4.22.0.tgz", + "integrity": "sha512-YeYFBnfqvb+ZlA0IiJqiHNNSzepNhI1p2o9i8NlhQli9+Zrn230M47OBaBUs8qr3DD1dC2zGB1Dis50Ktz8gAA==", + "requires": { + "@tanstack/match-sorter-utils": "^8.7.0", + "superjson": "^1.10.0", + "use-sync-external-store": "^1.2.0" + } + }, "@types/d3-path": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-2.0.2.tgz", @@ -64526,9 +64542,9 @@ }, "dependencies": { "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "requires": { "minimist": "^1.2.0" } @@ -66043,9 +66059,9 @@ "integrity": "sha512-gfygJYZ2gLTDlmbWMI0CE2MwnFzSN/2SZfkMlItC4K/JBlsWVDB0bO6XhqcY13YXE7iMcAJnzTCJjPiTeJJ0Mw==" }, "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "requires": { "minimist": "^1.2.0" } diff --git a/spec/api_v0_openapi.json b/spec/api_v0_openapi.json index b634edfa990..0411bac6db7 100644 --- a/spec/api_v0_openapi.json +++ b/spec/api_v0_openapi.json @@ -338,165 +338,6 @@ "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }] } }, - "/v1/projects/{ref}/secrets": { - "get": { - "operationId": "getSecrets", - "summary": "List all secrets", - "description": "Returns all secrets you've previously added to the specified project.", - "parameters": [ - { - "name": "ref", - "required": true, - "in": "path", - "description": "Project ref", - "schema": { "minLength": 20, "maxLength": 20, "type": "string" } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { "$ref": "#/components/schemas/SecretResponse" } - } - } - } - }, - "403": { "description": "" }, - "500": { "description": "Failed to retrieve project's secrets" } - }, - "tags": ["secrets"], - "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }] - }, - "post": { - "operationId": "createSecrets", - "summary": "Bulk create secrets", - "description": "Creates multiple secrets and adds them to the specified project.", - "parameters": [ - { - "name": "ref", - "required": true, - "in": "path", - "description": "Project ref", - "schema": { "minLength": 20, "maxLength": 20, "type": "string" } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { "$ref": "#/components/schemas/CreateSecretBody" } - } - } - } - }, - "responses": { - "201": { "description": "" }, - "403": { "description": "" }, - "500": { "description": "Failed to create project's secrets" } - }, - "tags": ["secrets"], - "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }] - }, - "delete": { - "operationId": "deleteSecrets", - "summary": "Bulk delete secrets", - "description": "Deletes all secrets with the given names from the specified project", - "parameters": [ - { - "name": "ref", - "required": true, - "in": "path", - "description": "Project ref", - "schema": { "minLength": 20, "maxLength": 20, "type": "string" } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { "schema": { "type": "array", "items": { "type": "string" } } } - } - }, - "responses": { - "200": { - "description": "", - "content": { "application/json": { "schema": { "type": "object" } } } - }, - "403": { "description": "" }, - "500": { "description": "Failed to delete secrets with given names" } - }, - "tags": ["secrets"], - "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }] - } - }, - "/v1/projects/{ref}/postgrest": { - "get": { - "operationId": "getPostgRESTConfig", - "summary": "Gets project's postgrest config", - "parameters": [ - { - "name": "ref", - "required": true, - "in": "path", - "description": "Project ref", - "schema": { "minLength": 20, "maxLength": 20, "type": "string" } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/PostgrestConfigResponse" } - } - } - }, - "403": { "description": "" }, - "500": { "description": "Failed to retrieve project's postgrest config" } - }, - "tags": ["services"], - "security": [{ "bearer": [] }] - }, - "patch": { - "operationId": "updatePostgRESTConfig", - "summary": "Updates project's postgrest config", - "parameters": [ - { - "name": "ref", - "required": true, - "in": "path", - "description": "Project ref", - "schema": { "minLength": 20, "maxLength": 20, "type": "string" } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/UpdatePostgrestConfigBody" } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/PostgrestConfigResponse" } - } - } - }, - "403": { "description": "" }, - "500": { "description": "Failed to update project's postgrest config" } - }, - "tags": ["services"], - "security": [{ "bearer": [] }] - } - }, "/v1/projects/{ref}/custom-hostname": { "get": { "operationId": "getCustomHostnameConfig", @@ -641,106 +482,6 @@ "security": [{ "bearer": [] }] } }, - "/v1/projects/{ref}/pgsodium": { - "get": { - "operationId": "getConfig", - "summary": "Gets project's pgsodium config", - "parameters": [ - { - "name": "ref", - "required": true, - "in": "path", - "description": "Project ref", - "schema": { "minLength": 20, "maxLength": 20, "type": "string" } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/PgsodiumConfigResponse" } - } - } - }, - "403": { "description": "" }, - "500": { "description": "Failed to retrieve project's pgsodium config" } - }, - "tags": ["pgsodium (beta)"], - "security": [{ "bearer": [] }] - }, - "put": { - "operationId": "updateConfig", - "summary": "Updates project's pgsodium config. Updating the root_key can cause all data encrypted with the older key to become inaccessible.", - "parameters": [ - { - "name": "ref", - "required": true, - "in": "path", - "description": "Project ref", - "schema": { "minLength": 20, "maxLength": 20, "type": "string" } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/UpdatePgsodiumConfigBody" } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/PgsodiumConfigResponse" } - } - } - }, - "403": { "description": "" }, - "500": { "description": "Failed to update project's pgsodium config" } - }, - "tags": ["pgsodium (beta)"], - "security": [{ "bearer": [] }] - } - }, - "/v1/projects/{ref}/types/typescript": { - "get": { - "operationId": "getTypescriptTypes", - "summary": "Generate TypeScript types", - "description": "Returns the TypeScript types of your schema for use with supabase-js.", - "parameters": [ - { - "name": "included_schemas", - "required": false, - "in": "query", - "schema": { "default": "public", "type": "string" } - }, - { - "name": "ref", - "required": true, - "in": "path", - "description": "Project ref", - "schema": { "minLength": 20, "maxLength": 20, "type": "string" } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/TypescriptResponse" } - } - } - }, - "403": { "description": "" }, - "500": { "description": "Failed to generate TypeScript types" } - }, - "tags": ["projects"], - "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }] - } - }, "/v1/projects/{ref}/network-bans/retrieve": { "post": { "operationId": "getNetworkBans", @@ -866,6 +607,329 @@ "security": [{ "bearer": [] }] } }, + "/v1/projects/{ref}/pgsodium": { + "get": { + "operationId": "getConfig", + "summary": "Gets project's pgsodium config", + "parameters": [ + { + "name": "ref", + "required": true, + "in": "path", + "description": "Project ref", + "schema": { "minLength": 20, "maxLength": 20, "type": "string" } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/PgsodiumConfigResponse" } + } + } + }, + "403": { "description": "" }, + "500": { "description": "Failed to retrieve project's pgsodium config" } + }, + "tags": ["pgsodium (beta)"], + "security": [{ "bearer": [] }] + }, + "put": { + "operationId": "updateConfig", + "summary": "Updates project's pgsodium config. Updating the root_key can cause all data encrypted with the older key to become inaccessible.", + "parameters": [ + { + "name": "ref", + "required": true, + "in": "path", + "description": "Project ref", + "schema": { "minLength": 20, "maxLength": 20, "type": "string" } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/UpdatePgsodiumConfigBody" } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/PgsodiumConfigResponse" } + } + } + }, + "403": { "description": "" }, + "500": { "description": "Failed to update project's pgsodium config" } + }, + "tags": ["pgsodium (beta)"], + "security": [{ "bearer": [] }] + } + }, + "/v1/projects/{ref}/postgrest": { + "get": { + "operationId": "getPostgRESTConfig", + "summary": "Gets project's postgrest config", + "parameters": [ + { + "name": "ref", + "required": true, + "in": "path", + "description": "Project ref", + "schema": { "minLength": 20, "maxLength": 20, "type": "string" } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/PostgrestConfigResponse" } + } + } + }, + "403": { "description": "" }, + "500": { "description": "Failed to retrieve project's postgrest config" } + }, + "tags": ["services"], + "security": [{ "bearer": [] }] + }, + "patch": { + "operationId": "updatePostgRESTConfig", + "summary": "Updates project's postgrest config", + "parameters": [ + { + "name": "ref", + "required": true, + "in": "path", + "description": "Project ref", + "schema": { "minLength": 20, "maxLength": 20, "type": "string" } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/UpdatePostgrestConfigBody" } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/PostgrestConfigResponse" } + } + } + }, + "403": { "description": "" }, + "500": { "description": "Failed to update project's postgrest config" } + }, + "tags": ["services"], + "security": [{ "bearer": [] }] + } + }, + "/v1/projects/{ref}/secrets": { + "get": { + "operationId": "getSecrets", + "summary": "List all secrets", + "description": "Returns all secrets you've previously added to the specified project.", + "parameters": [ + { + "name": "ref", + "required": true, + "in": "path", + "description": "Project ref", + "schema": { "minLength": 20, "maxLength": 20, "type": "string" } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/SecretResponse" } + } + } + } + }, + "403": { "description": "" }, + "500": { "description": "Failed to retrieve project's secrets" } + }, + "tags": ["secrets"], + "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }] + }, + "post": { + "operationId": "createSecrets", + "summary": "Bulk create secrets", + "description": "Creates multiple secrets and adds them to the specified project.", + "parameters": [ + { + "name": "ref", + "required": true, + "in": "path", + "description": "Project ref", + "schema": { "minLength": 20, "maxLength": 20, "type": "string" } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/CreateSecretBody" } + } + } + } + }, + "responses": { + "201": { "description": "" }, + "403": { "description": "" }, + "500": { "description": "Failed to create project's secrets" } + }, + "tags": ["secrets"], + "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }] + }, + "delete": { + "operationId": "deleteSecrets", + "summary": "Bulk delete secrets", + "description": "Deletes all secrets with the given names from the specified project", + "parameters": [ + { + "name": "ref", + "required": true, + "in": "path", + "description": "Project ref", + "schema": { "minLength": 20, "maxLength": 20, "type": "string" } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { "schema": { "type": "array", "items": { "type": "string" } } } + } + }, + "responses": { + "200": { + "description": "", + "content": { "application/json": { "schema": { "type": "object" } } } + }, + "403": { "description": "" }, + "500": { "description": "Failed to delete secrets with given names" } + }, + "tags": ["secrets"], + "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }] + } + }, + "/v1/projects/{ref}/ssl-enforcement": { + "get": { + "operationId": "getSslEnforcementConfig", + "summary": "Get project's SSL enforcement configuration.", + "parameters": [ + { + "name": "ref", + "required": true, + "in": "path", + "description": "Project ref", + "schema": { "minLength": 20, "maxLength": 20, "type": "string" } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SslEnforcementResponse" } + } + } + }, + "403": { "description": "" }, + "500": { "description": "Failed to retrieve project's SSL enforcement config" } + }, + "tags": ["ssl enforcement (beta)"], + "security": [{ "bearer": [] }] + }, + "put": { + "operationId": "updateSslEnforcementConfig", + "summary": "Update project's SSL enforcement configuration.", + "parameters": [ + { + "name": "ref", + "required": true, + "in": "path", + "description": "Project ref", + "schema": { "minLength": 20, "maxLength": 20, "type": "string" } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SslEnforcementRequest" } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SslEnforcementResponse" } + } + } + }, + "403": { "description": "" }, + "500": { "description": "Failed to update project's SSL enforcement configuration." } + }, + "tags": ["ssl enforcement (beta)"], + "security": [{ "bearer": [] }] + } + }, + "/v1/projects/{ref}/types/typescript": { + "get": { + "operationId": "getTypescriptTypes", + "summary": "Generate TypeScript types", + "description": "Returns the TypeScript types of your schema for use with supabase-js.", + "parameters": [ + { + "name": "included_schemas", + "required": false, + "in": "query", + "schema": { "default": "public", "type": "string" } + }, + { + "name": "ref", + "required": true, + "in": "path", + "description": "Project ref", + "schema": { "minLength": 20, "maxLength": 20, "type": "string" } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/TypescriptResponse" } + } + } + }, + "403": { "description": "" }, + "500": { "description": "Failed to generate TypeScript types" } + }, + "tags": ["projects"], + "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }, { "bearer": [] }] + } + }, "/v1/projects/{ref}/vanity-subdomain": { "get": { "operationId": "getVanitySubdomainConfig", @@ -1100,36 +1164,6 @@ "verify_jwt": { "type": "boolean" } } }, - "SecretResponse": { - "type": "object", - "properties": { "name": { "type": "string" }, "value": { "type": "string" } }, - "required": ["name", "value"] - }, - "CreateSecretBody": { - "type": "object", - "properties": { - "name": { "type": "string" }, - "value": { "type": "string", "pattern": "/^(?!SUPABASE_).*/" } - }, - "required": ["name", "value"] - }, - "PostgrestConfigResponse": { - "type": "object", - "properties": { - "max_rows": { "type": "integer" }, - "db_schema": { "type": "string" }, - "db_extra_search_path": { "type": "string" } - }, - "required": ["max_rows", "db_schema", "db_extra_search_path"] - }, - "UpdatePostgrestConfigBody": { - "type": "object", - "properties": { - "max_rows": { "type": "integer", "minimum": 0, "maximum": 1000000 }, - "db_extra_search_path": { "type": "string" }, - "db_schema": { "type": "string" } - } - }, "UpdateCustomHostnameResponse": { "type": "object", "properties": { @@ -1153,21 +1187,6 @@ "properties": { "custom_hostname": { "type": "string" } }, "required": ["custom_hostname"] }, - "PgsodiumConfigResponse": { - "type": "object", - "properties": { "root_key": { "type": "string" } }, - "required": ["root_key"] - }, - "UpdatePgsodiumConfigBody": { - "type": "object", - "properties": { "root_key": { "type": "string" } }, - "required": ["root_key"] - }, - "TypescriptResponse": { - "type": "object", - "properties": { "types": { "type": "string" } }, - "required": ["types"] - }, "NetworkBanResponse": { "type": "object", "properties": { @@ -1194,6 +1213,69 @@ }, "required": ["entitlement", "config", "status"] }, + "PgsodiumConfigResponse": { + "type": "object", + "properties": { "root_key": { "type": "string" } }, + "required": ["root_key"] + }, + "UpdatePgsodiumConfigBody": { + "type": "object", + "properties": { "root_key": { "type": "string" } }, + "required": ["root_key"] + }, + "PostgrestConfigResponse": { + "type": "object", + "properties": { + "max_rows": { "type": "integer" }, + "db_schema": { "type": "string" }, + "db_extra_search_path": { "type": "string" } + }, + "required": ["max_rows", "db_schema", "db_extra_search_path"] + }, + "UpdatePostgrestConfigBody": { + "type": "object", + "properties": { + "max_rows": { "type": "integer", "minimum": 0, "maximum": 1000000 }, + "db_extra_search_path": { "type": "string" }, + "db_schema": { "type": "string" } + } + }, + "SecretResponse": { + "type": "object", + "properties": { "name": { "type": "string" }, "value": { "type": "string" } }, + "required": ["name", "value"] + }, + "CreateSecretBody": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "value": { "type": "string", "pattern": "/^(?!SUPABASE_).*/" } + }, + "required": ["name", "value"] + }, + "SslEnforcements": { + "type": "object", + "properties": { "database": { "type": "boolean" } }, + "required": ["database"] + }, + "SslEnforcementResponse": { + "type": "object", + "properties": { + "currentConfig": { "$ref": "#/components/schemas/SslEnforcements" }, + "appliedSuccessfully": { "type": "boolean" } + }, + "required": ["currentConfig", "appliedSuccessfully"] + }, + "SslEnforcementRequest": { + "type": "object", + "properties": { "requestedConfig": { "$ref": "#/components/schemas/SslEnforcements" } }, + "required": ["requestedConfig"] + }, + "TypescriptResponse": { + "type": "object", + "properties": { "types": { "type": "string" } }, + "required": ["types"] + }, "VanitySubdomainConfigResponse": { "type": "object", "properties": { diff --git a/spec/enrichments/tsdoc_v2/combined.json b/spec/enrichments/tsdoc_v2/combined.json index 84e9353dcfd..0467e800000 100644 --- a/spec/enrichments/tsdoc_v2/combined.json +++ b/spec/enrichments/tsdoc_v2/combined.json @@ -286,7 +286,7 @@ "isOptional": true }, "comment": { - "shortText": "Automatically refreshes the token for logged in users." + "shortText": "Automatically refreshes the token for logged-in users. Defaults to true." }, "sources": [ { @@ -309,7 +309,7 @@ "isOptional": true }, "comment": { - "shortText": "Detect a session from the URL. Used for OAuth login callbacks." + "shortText": "Detect a session from the URL. Used for OAuth login callbacks. Defaults to true." }, "sources": [ { @@ -332,7 +332,7 @@ "isOptional": true }, "comment": { - "shortText": "Whether to persist a logged in session to storage." + "shortText": "Whether to persist a logged-in session to storage. Defaults to true." }, "sources": [ { @@ -355,7 +355,7 @@ "isOptional": true }, "comment": { - "shortText": "A storage provider. Used to store the logged in session." + "shortText": "A storage provider. Used to store the logged-in session." }, "sources": [ { @@ -386,7 +386,7 @@ "isOptional": true }, "comment": { - "shortText": "Optional key name used for storing tokens in local storage" + "shortText": "Optional key name used for storing tokens in local storage." }, "sources": [ { @@ -427,7 +427,7 @@ "isOptional": true }, "comment": { - "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to 'public'." + "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to `public`." }, "sources": [ { @@ -2601,7 +2601,7 @@ "isOptional": true }, "comment": { - "shortText": "Automatically refreshes the token for logged in users." + "shortText": "Automatically refreshes the token for logged-in users. Defaults to true." }, "sources": [ { @@ -2624,7 +2624,7 @@ "isOptional": true }, "comment": { - "shortText": "Detect a session from the URL. Used for OAuth login callbacks." + "shortText": "Detect a session from the URL. Used for OAuth login callbacks. Defaults to true." }, "sources": [ { @@ -2647,7 +2647,7 @@ "isOptional": true }, "comment": { - "shortText": "Whether to persist a logged in session to storage." + "shortText": "Whether to persist a logged-in session to storage. Defaults to true." }, "sources": [ { @@ -2670,7 +2670,7 @@ "isOptional": true }, "comment": { - "shortText": "A storage provider. Used to store the logged in session." + "shortText": "A storage provider. Used to store the logged-in session." }, "sources": [ { @@ -2701,7 +2701,7 @@ "isOptional": true }, "comment": { - "shortText": "Optional key name used for storing tokens in local storage" + "shortText": "Optional key name used for storing tokens in local storage." }, "sources": [ { @@ -2742,7 +2742,7 @@ "isOptional": true }, "comment": { - "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to 'public'." + "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to `public`." }, "sources": [ { @@ -3705,7 +3705,7 @@ "isOptional": true }, "comment": { - "shortText": "Automatically refreshes the token for logged in users." + "shortText": "Automatically refreshes the token for logged-in users. Defaults to true." }, "sources": [ { @@ -3728,7 +3728,7 @@ "isOptional": true }, "comment": { - "shortText": "Detect a session from the URL. Used for OAuth login callbacks." + "shortText": "Detect a session from the URL. Used for OAuth login callbacks. Defaults to true." }, "sources": [ { @@ -3751,7 +3751,7 @@ "isOptional": true }, "comment": { - "shortText": "Whether to persist a logged in session to storage." + "shortText": "Whether to persist a logged-in session to storage. Defaults to true." }, "sources": [ { @@ -3774,7 +3774,7 @@ "isOptional": true }, "comment": { - "shortText": "A storage provider. Used to store the logged in session." + "shortText": "A storage provider. Used to store the logged-in session." }, "sources": [ { @@ -3805,7 +3805,7 @@ "isOptional": true }, "comment": { - "shortText": "Optional key name used for storing tokens in local storage" + "shortText": "Optional key name used for storing tokens in local storage." }, "sources": [ { @@ -3846,7 +3846,7 @@ "isOptional": true }, "comment": { - "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to 'public'." + "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to `public`." }, "sources": [ { @@ -4154,7 +4154,7 @@ "isOptional": true }, "comment": { - "shortText": "Automatically refreshes the token for logged in users." + "shortText": "Automatically refreshes the token for logged-in users. Defaults to true." }, "sources": [ { @@ -4177,7 +4177,7 @@ "isOptional": true }, "comment": { - "shortText": "Detect a session from the URL. Used for OAuth login callbacks." + "shortText": "Detect a session from the URL. Used for OAuth login callbacks. Defaults to true." }, "sources": [ { @@ -4200,7 +4200,7 @@ "isOptional": true }, "comment": { - "shortText": "Whether to persist a logged in session to storage." + "shortText": "Whether to persist a logged-in session to storage. Defaults to true." }, "sources": [ { @@ -4223,7 +4223,7 @@ "isOptional": true }, "comment": { - "shortText": "A storage provider. Used to store the logged in session." + "shortText": "A storage provider. Used to store the logged-in session." }, "sources": [ { @@ -4254,7 +4254,7 @@ "isOptional": true }, "comment": { - "shortText": "Optional key name used for storing tokens in local storage" + "shortText": "Optional key name used for storing tokens in local storage." }, "sources": [ { @@ -4295,7 +4295,7 @@ "isOptional": true }, "comment": { - "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to 'public'." + "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to `public`." }, "sources": [ { @@ -5534,7 +5534,7 @@ "isOptional": true }, "comment": { - "shortText": "Automatically refreshes the token for logged in users." + "shortText": "Automatically refreshes the token for logged-in users. Defaults to true." }, "sources": [ { @@ -5557,7 +5557,7 @@ "isOptional": true }, "comment": { - "shortText": "Detect a session from the URL. Used for OAuth login callbacks." + "shortText": "Detect a session from the URL. Used for OAuth login callbacks. Defaults to true." }, "sources": [ { @@ -5580,7 +5580,7 @@ "isOptional": true }, "comment": { - "shortText": "Whether to persist a logged in session to storage." + "shortText": "Whether to persist a logged-in session to storage. Defaults to true." }, "sources": [ { @@ -5603,7 +5603,7 @@ "isOptional": true }, "comment": { - "shortText": "A storage provider. Used to store the logged in session." + "shortText": "A storage provider. Used to store the logged-in session." }, "sources": [ { @@ -5634,7 +5634,7 @@ "isOptional": true }, "comment": { - "shortText": "Optional key name used for storing tokens in local storage" + "shortText": "Optional key name used for storing tokens in local storage." }, "sources": [ { @@ -5675,7 +5675,7 @@ "isOptional": true }, "comment": { - "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to 'public'." + "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to `public`." }, "sources": [ { @@ -5984,14 +5984,14 @@ "originalName": "", "children": [ { - "id": 732, + "id": 740, "name": "AuthApiError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 733, + "id": 741, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -6005,14 +6005,14 @@ ], "signatures": [ { - "id": 734, + "id": 742, "name": "new AuthApiError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 735, + "id": 743, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -6023,7 +6023,7 @@ } }, { - "id": 736, + "id": 744, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -6036,24 +6036,24 @@ ], "type": { "type": "reference", - "id": 732, + "id": 740, "name": "AuthApiError" }, "overwrites": { "type": "reference", - "id": 729, + "id": 737, "name": "AuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 728, + "id": 736, "name": "AuthError.constructor" } }, { - "id": 737, + "id": 745, "name": "status", "kind": 1024, "kindString": "Property", @@ -6071,7 +6071,7 @@ } }, { - "id": 738, + "id": 746, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -6085,7 +6085,7 @@ ], "signatures": [ { - "id": 739, + "id": 747, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -6093,14 +6093,14 @@ "type": { "type": "reflection", "declaration": { - "id": 740, + "id": 748, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 742, + "id": 750, "name": "message", "kind": 1024, "kindString": "Property", @@ -6119,7 +6119,7 @@ "defaultValue": "..." }, { - "id": 741, + "id": 749, "name": "name", "kind": 1024, "kindString": "Property", @@ -6138,7 +6138,7 @@ "defaultValue": "..." }, { - "id": 743, + "id": 751, "name": "status", "kind": 1024, "kindString": "Property", @@ -6161,7 +6161,7 @@ { "title": "Properties", "kind": 1024, - "children": [742, 741, 743] + "children": [750, 749, 751] } ] } @@ -6174,17 +6174,17 @@ { "title": "Constructors", "kind": 512, - "children": [733] + "children": [741] }, { "title": "Properties", "kind": 1024, - "children": [737] + "children": [745] }, { "title": "Methods", "kind": 2048, - "children": [738] + "children": [746] } ], "sources": [ @@ -6197,20 +6197,20 @@ "extendedTypes": [ { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } ] }, { - "id": 727, + "id": 735, "name": "AuthError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 728, + "id": 736, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -6224,14 +6224,14 @@ ], "signatures": [ { - "id": 729, + "id": 737, "name": "new AuthError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 730, + "id": 738, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -6244,7 +6244,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" }, "overwrites": { @@ -6263,7 +6263,7 @@ { "title": "Constructors", "kind": 512, - "children": [728] + "children": [736] } ], "sources": [ @@ -6284,30 +6284,30 @@ "extendedBy": [ { "type": "reference", - "id": 732, + "id": 740, "name": "AuthApiError" }, { "type": "reference", - "id": 745, + "id": 753, "name": "AuthUnknownError" }, { "type": "reference", - "id": 752, + "id": 760, "name": "CustomAuthError" } ] }, { - "id": 792, + "id": 800, "name": "AuthImplicitGrantRedirectError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 793, + "id": 801, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -6321,14 +6321,14 @@ ], "signatures": [ { - "id": 794, + "id": 802, "name": "new AuthImplicitGrantRedirectError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 795, + "id": 803, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -6339,7 +6339,7 @@ } }, { - "id": 796, + "id": 804, "name": "details", "kind": 32768, "kindString": "Parameter", @@ -6354,14 +6354,14 @@ { "type": "reflection", "declaration": { - "id": 797, + "id": 805, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 799, + "id": 807, "name": "code", "kind": 1024, "kindString": "Property", @@ -6379,7 +6379,7 @@ } }, { - "id": 798, + "id": 806, "name": "error", "kind": 1024, "kindString": "Property", @@ -6401,7 +6401,7 @@ { "title": "Properties", "kind": 1024, - "children": [799, 798] + "children": [807, 806] } ] } @@ -6413,24 +6413,24 @@ ], "type": { "type": "reference", - "id": 792, + "id": 800, "name": "AuthImplicitGrantRedirectError" }, "overwrites": { "type": "reference", - "id": 754, + "id": 762, "name": "CustomAuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 753, + "id": 761, "name": "CustomAuthError.constructor" } }, { - "id": 800, + "id": 808, "name": "details", "kind": 1024, "kindString": "Property", @@ -6452,14 +6452,14 @@ { "type": "reflection", "declaration": { - "id": 801, + "id": 809, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 803, + "id": 811, "name": "code", "kind": 1024, "kindString": "Property", @@ -6477,7 +6477,7 @@ } }, { - "id": 802, + "id": 810, "name": "error", "kind": 1024, "kindString": "Property", @@ -6499,7 +6499,7 @@ { "title": "Properties", "kind": 1024, - "children": [803, 802] + "children": [811, 810] } ] } @@ -6508,588 +6508,6 @@ }, "defaultValue": "null" }, - { - "id": 814, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 47, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 758, - "name": "CustomAuthError.name" - } - }, - { - "id": 815, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 48, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "id": 759, - "name": "CustomAuthError.status" - } - }, - { - "id": 804, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 83, - "character": 2 - } - ], - "signatures": [ - { - "id": 805, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 806, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 810, - "name": "details", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 88, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 811, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 813, - "name": "code", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 77, - "character": 28 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 812, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 77, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [813, 812] - } - ] - } - } - ] - }, - "defaultValue": "..." - }, - { - "id": 808, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 86, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 807, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 85, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 809, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 87, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [810, 808, 807, 809] - } - ] - } - }, - "overwrites": { - "type": "reference", - "id": 761, - "name": "CustomAuthError.toJSON" - } - } - ], - "overwrites": { - "type": "reference", - "id": 760, - "name": "CustomAuthError.toJSON" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [793] - }, - { - "title": "Properties", - "kind": 1024, - "children": [800, 814, 815] - }, - { - "title": "Methods", - "kind": 2048, - "children": [804] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 76, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 752, - "name": "CustomAuthError" - } - ] - }, - { - "id": 779, - "name": "AuthInvalidCredentialsError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 780, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 71, - "character": 2 - } - ], - "signatures": [ - { - "id": 781, - "name": "new AuthInvalidCredentialsError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 782, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 779, - "name": "AuthInvalidCredentialsError" - }, - "overwrites": { - "type": "reference", - "id": 754, - "name": "CustomAuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 753, - "name": "CustomAuthError.constructor" - } - }, - { - "id": 783, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 47, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 758, - "name": "CustomAuthError.name" - } - }, - { - "id": 784, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 48, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "id": 759, - "name": "CustomAuthError.status" - } - }, - { - "id": 785, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 55, - "character": 2 - } - ], - "signatures": [ - { - "id": 786, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 787, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 789, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 58, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 788, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 57, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 790, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 59, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [789, 788, 790] - } - ] - } - }, - "inheritedFrom": { - "type": "reference", - "id": 761, - "name": "CustomAuthError.toJSON" - } - } - ], - "inheritedFrom": { - "type": "reference", - "id": 760, - "name": "CustomAuthError.toJSON" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [780] - }, - { - "title": "Properties", - "kind": 1024, - "children": [783, 784] - }, - { - "title": "Methods", - "kind": 2048, - "children": [785] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 70, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 752, - "name": "CustomAuthError" - } - ] - }, - { - "id": 817, - "name": "AuthRetryableFetchError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 818, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 94, - "character": 2 - } - ], - "signatures": [ - { - "id": 819, - "name": "new AuthRetryableFetchError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 820, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 821, - "name": "status", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "id": 817, - "name": "AuthRetryableFetchError" - }, - "overwrites": { - "type": "reference", - "id": 754, - "name": "CustomAuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 753, - "name": "CustomAuthError.constructor" - } - }, { "id": 822, "name": "name", @@ -7109,7 +6527,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 758, + "id": 766, "name": "CustomAuthError.name" } }, @@ -7132,12 +6550,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 759, + "id": 767, "name": "CustomAuthError.status" } }, { - "id": 824, + "id": 812, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -7145,13 +6563,13 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 55, + "line": 83, "character": 2 } ], "signatures": [ { - "id": 825, + "id": 813, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -7159,14 +6577,93 @@ "type": { "type": "reflection", "declaration": { - "id": 826, + "id": 814, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 828, + "id": 818, + "name": "details", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 88, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reflection", + "declaration": { + "id": 819, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 821, + "name": "code", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 77, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 820, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 77, + "character": 13 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [821, 820] + } + ] + } + } + ] + }, + "defaultValue": "..." + }, + { + "id": 816, "name": "message", "kind": 1024, "kindString": "Property", @@ -7174,7 +6671,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 58, + "line": 86, "character": 6 } ], @@ -7185,7 +6682,7 @@ "defaultValue": "..." }, { - "id": 827, + "id": 815, "name": "name", "kind": 1024, "kindString": "Property", @@ -7193,7 +6690,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 57, + "line": 85, "character": 6 } ], @@ -7204,7 +6701,7 @@ "defaultValue": "..." }, { - "id": 829, + "id": 817, "name": "status", "kind": 1024, "kindString": "Property", @@ -7212,7 +6709,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 59, + "line": 87, "character": 6 } ], @@ -7227,21 +6724,21 @@ { "title": "Properties", "kind": 1024, - "children": [828, 827, 829] + "children": [818, 816, 815, 817] } ] } }, - "inheritedFrom": { + "overwrites": { "type": "reference", - "id": 761, + "id": 769, "name": "CustomAuthError.toJSON" } } ], - "inheritedFrom": { + "overwrites": { "type": "reference", - "id": 760, + "id": 768, "name": "CustomAuthError.toJSON" } } @@ -7250,43 +6747,43 @@ { "title": "Constructors", "kind": 512, - "children": [818] + "children": [801] }, { "title": "Properties", "kind": 1024, - "children": [822, 823] + "children": [808, 822, 823] }, { "title": "Methods", "kind": 2048, - "children": [824] + "children": [812] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 93, + "line": 76, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 752, + "id": 760, "name": "CustomAuthError" } ] }, { - "id": 767, - "name": "AuthSessionMissingError", + "id": 787, + "name": "AuthInvalidCredentialsError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 768, + "id": 788, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -7294,37 +6791,50 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 65, + "line": 71, "character": 2 } ], "signatures": [ { - "id": 769, - "name": "new AuthSessionMissingError", + "id": 789, + "name": "new AuthInvalidCredentialsError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, + "parameters": [ + { + "id": 790, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], "type": { "type": "reference", - "id": 767, - "name": "AuthSessionMissingError" + "id": 787, + "name": "AuthInvalidCredentialsError" }, "overwrites": { "type": "reference", - "id": 754, + "id": 762, "name": "CustomAuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 753, + "id": 761, "name": "CustomAuthError.constructor" } }, { - "id": 770, + "id": 791, "name": "name", "kind": 1024, "kindString": "Property", @@ -7342,12 +6852,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 758, + "id": 766, "name": "CustomAuthError.name" } }, { - "id": 771, + "id": 792, "name": "status", "kind": 1024, "kindString": "Property", @@ -7365,12 +6875,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 759, + "id": 767, "name": "CustomAuthError.status" } }, { - "id": 772, + "id": 793, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -7384,7 +6894,7 @@ ], "signatures": [ { - "id": 773, + "id": 794, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -7392,14 +6902,14 @@ "type": { "type": "reflection", "declaration": { - "id": 774, + "id": 795, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 776, + "id": 797, "name": "message", "kind": 1024, "kindString": "Property", @@ -7418,7 +6928,7 @@ "defaultValue": "..." }, { - "id": 775, + "id": 796, "name": "name", "kind": 1024, "kindString": "Property", @@ -7437,7 +6947,7 @@ "defaultValue": "..." }, { - "id": 777, + "id": 798, "name": "status", "kind": 1024, "kindString": "Property", @@ -7460,21 +6970,21 @@ { "title": "Properties", "kind": 1024, - "children": [776, 775, 777] + "children": [797, 796, 798] } ] } }, "inheritedFrom": { "type": "reference", - "id": 761, + "id": 769, "name": "CustomAuthError.toJSON" } } ], "inheritedFrom": { "type": "reference", - "id": 760, + "id": 768, "name": "CustomAuthError.toJSON" } } @@ -7483,17 +6993,507 @@ { "title": "Constructors", "kind": 512, - "children": [768] + "children": [788] }, { "title": "Properties", "kind": 1024, - "children": [770, 771] + "children": [791, 792] }, { "title": "Methods", "kind": 2048, - "children": [772] + "children": [793] + } + ], + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 70, + "character": 13 + } + ], + "extendedTypes": [ + { + "type": "reference", + "id": 760, + "name": "CustomAuthError" + } + ] + }, + { + "id": 825, + "name": "AuthRetryableFetchError", + "kind": 128, + "kindString": "Class", + "flags": {}, + "children": [ + { + "id": 826, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 94, + "character": 2 + } + ], + "signatures": [ + { + "id": 827, + "name": "new AuthRetryableFetchError", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 828, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 829, + "name": "status", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "id": 825, + "name": "AuthRetryableFetchError" + }, + "overwrites": { + "type": "reference", + "id": 762, + "name": "CustomAuthError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "id": 761, + "name": "CustomAuthError.constructor" + } + }, + { + "id": 830, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 47, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "id": 766, + "name": "CustomAuthError.name" + } + }, + { + "id": 831, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 48, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "id": 767, + "name": "CustomAuthError.status" + } + }, + { + "id": 832, + "name": "toJSON", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 55, + "character": 2 + } + ], + "signatures": [ + { + "id": 833, + "name": "toJSON", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 834, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 836, + "name": "message", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 58, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 835, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 57, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 837, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 59, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [836, 835, 837] + } + ] + } + }, + "inheritedFrom": { + "type": "reference", + "id": 769, + "name": "CustomAuthError.toJSON" + } + } + ], + "inheritedFrom": { + "type": "reference", + "id": 768, + "name": "CustomAuthError.toJSON" + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [826] + }, + { + "title": "Properties", + "kind": 1024, + "children": [830, 831] + }, + { + "title": "Methods", + "kind": 2048, + "children": [832] + } + ], + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 93, + "character": 13 + } + ], + "extendedTypes": [ + { + "type": "reference", + "id": 760, + "name": "CustomAuthError" + } + ] + }, + { + "id": 775, + "name": "AuthSessionMissingError", + "kind": 128, + "kindString": "Class", + "flags": {}, + "children": [ + { + "id": 776, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 65, + "character": 2 + } + ], + "signatures": [ + { + "id": 777, + "name": "new AuthSessionMissingError", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "type": { + "type": "reference", + "id": 775, + "name": "AuthSessionMissingError" + }, + "overwrites": { + "type": "reference", + "id": 762, + "name": "CustomAuthError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "id": 761, + "name": "CustomAuthError.constructor" + } + }, + { + "id": 778, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 47, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "id": 766, + "name": "CustomAuthError.name" + } + }, + { + "id": 779, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 48, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "id": 767, + "name": "CustomAuthError.status" + } + }, + { + "id": 780, + "name": "toJSON", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 55, + "character": 2 + } + ], + "signatures": [ + { + "id": 781, + "name": "toJSON", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 782, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 784, + "name": "message", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 58, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 783, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 57, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 785, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 59, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [784, 783, 785] + } + ] + } + }, + "inheritedFrom": { + "type": "reference", + "id": 769, + "name": "CustomAuthError.toJSON" + } + } + ], + "inheritedFrom": { + "type": "reference", + "id": 768, + "name": "CustomAuthError.toJSON" + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [776] + }, + { + "title": "Properties", + "kind": 1024, + "children": [778, 779] + }, + { + "title": "Methods", + "kind": 2048, + "children": [780] } ], "sources": [ @@ -7506,20 +7506,20 @@ "extendedTypes": [ { "type": "reference", - "id": 752, + "id": 760, "name": "CustomAuthError" } ] }, { - "id": 745, + "id": 753, "name": "AuthUnknownError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 746, + "id": 754, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -7533,14 +7533,14 @@ ], "signatures": [ { - "id": 747, + "id": 755, "name": "new AuthUnknownError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 748, + "id": 756, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -7551,7 +7551,7 @@ } }, { - "id": 749, + "id": 757, "name": "originalError", "kind": 32768, "kindString": "Parameter", @@ -7564,24 +7564,24 @@ ], "type": { "type": "reference", - "id": 745, + "id": 753, "name": "AuthUnknownError" }, "overwrites": { "type": "reference", - "id": 729, + "id": 737, "name": "AuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 728, + "id": 736, "name": "AuthError.constructor" } }, { - "id": 750, + "id": 758, "name": "originalError", "kind": 1024, "kindString": "Property", @@ -7603,12 +7603,12 @@ { "title": "Constructors", "kind": 512, - "children": [746] + "children": [754] }, { "title": "Properties", "kind": 1024, - "children": [750] + "children": [758] } ], "sources": [ @@ -7621,20 +7621,20 @@ "extendedTypes": [ { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } ] }, { - "id": 752, + "id": 760, "name": "CustomAuthError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 753, + "id": 761, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -7648,14 +7648,14 @@ ], "signatures": [ { - "id": 754, + "id": 762, "name": "new CustomAuthError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 755, + "id": 763, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -7666,7 +7666,7 @@ } }, { - "id": 756, + "id": 764, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -7677,7 +7677,7 @@ } }, { - "id": 757, + "id": 765, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -7690,24 +7690,24 @@ ], "type": { "type": "reference", - "id": 752, + "id": 760, "name": "CustomAuthError" }, "overwrites": { "type": "reference", - "id": 729, + "id": 737, "name": "AuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 728, + "id": 736, "name": "AuthError.constructor" } }, { - "id": 758, + "id": 766, "name": "name", "kind": 1024, "kindString": "Property", @@ -7729,7 +7729,7 @@ } }, { - "id": 759, + "id": 767, "name": "status", "kind": 1024, "kindString": "Property", @@ -7747,7 +7747,7 @@ } }, { - "id": 760, + "id": 768, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -7761,7 +7761,7 @@ ], "signatures": [ { - "id": 761, + "id": 769, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -7769,14 +7769,14 @@ "type": { "type": "reflection", "declaration": { - "id": 762, + "id": 770, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 764, + "id": 772, "name": "message", "kind": 1024, "kindString": "Property", @@ -7795,7 +7795,7 @@ "defaultValue": "..." }, { - "id": 763, + "id": 771, "name": "name", "kind": 1024, "kindString": "Property", @@ -7814,7 +7814,7 @@ "defaultValue": "..." }, { - "id": 765, + "id": 773, "name": "status", "kind": 1024, "kindString": "Property", @@ -7837,7 +7837,7 @@ { "title": "Properties", "kind": 1024, - "children": [764, 763, 765] + "children": [772, 771, 773] } ] } @@ -7850,17 +7850,17 @@ { "title": "Constructors", "kind": 512, - "children": [753] + "children": [761] }, { "title": "Properties", "kind": 1024, - "children": [758, 759] + "children": [766, 767] }, { "title": "Methods", "kind": 2048, - "children": [760] + "children": [768] } ], "sources": [ @@ -7873,29 +7873,29 @@ "extendedTypes": [ { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } ], "extendedBy": [ { "type": "reference", - "id": 767, + "id": 775, "name": "AuthSessionMissingError" }, { "type": "reference", - "id": 779, + "id": 787, "name": "AuthInvalidCredentialsError" }, { "type": "reference", - "id": 792, + "id": 800, "name": "AuthImplicitGrantRedirectError" }, { "type": "reference", - "id": 817, + "id": 825, "name": "AuthRetryableFetchError" } ] @@ -7916,7 +7916,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 28, + "line": 35, "character": 2 } ], @@ -7954,7 +7954,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 37, + "line": 44, "character": 4 } ], @@ -8044,7 +8044,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 34, + "line": 41, "character": 4 } ], @@ -8091,7 +8091,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 33, + "line": 40, "character": 4 } ], @@ -8132,16 +8132,16 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 20, + "line": 27, "character": 2 } ], "type": { "type": "reference", - "id": 699, + "id": 700, "name": "GoTrueAdminMFAApi", "dereferenced": { - "id": 699, + "id": 700, "name": "GoTrueAdminMFAApi", "kind": 256, "kindString": "Interface", @@ -8157,14 +8157,14 @@ }, "children": [ { - "id": 703, + "id": 704, "name": "deleteFactor", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 704, + "id": 705, "name": "deleteFactor", "kind": 4096, "kindString": "Call signature", @@ -8184,17 +8184,17 @@ }, "parameters": [ { - "id": 705, + "id": 706, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 683, + "id": 684, "name": "AuthMFAAdminDeleteFactorParams", "dereferenced": { - "id": 683, + "id": 684, "name": "AuthMFAAdminDeleteFactorParams", "kind": 4194304, "kindString": "Type alias", @@ -8210,21 +8210,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 842, + "line": 838, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 684, + "id": 685, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 685, + "id": 686, "name": "id", "kind": 1024, "kindString": "Property", @@ -8235,7 +8235,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 844, + "line": 840, "character": 2 } ], @@ -8245,7 +8245,7 @@ } }, { - "id": 686, + "id": 687, "name": "userId", "kind": 1024, "kindString": "Property", @@ -8256,7 +8256,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 847, + "line": 843, "character": 2 } ], @@ -8270,13 +8270,13 @@ { "title": "Properties", "kind": 1024, - "children": [685, 686] + "children": [686, 687] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 842, + "line": 838, "character": 45 } ] @@ -8291,7 +8291,7 @@ "typeArguments": [ { "type": "reference", - "id": 674, + "id": 675, "name": "AuthMFAAdminDeleteFactorResponse" } ], @@ -8303,14 +8303,14 @@ ] }, { - "id": 700, + "id": 701, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 701, + "id": 702, "name": "listFactors", "kind": 4096, "kindString": "Call signature", @@ -8320,17 +8320,17 @@ }, "parameters": [ { - "id": 702, + "id": 703, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 696, + "id": 697, "name": "AuthMFAAdminListFactorsParams", "dereferenced": { - "id": 696, + "id": 697, "name": "AuthMFAAdminListFactorsParams", "kind": 4194304, "kindString": "Type alias", @@ -8346,21 +8346,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 862, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 697, + "id": 698, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 698, + "id": 699, "name": "userId", "kind": 1024, "kindString": "Property", @@ -8371,7 +8371,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 868, + "line": 864, "character": 2 } ], @@ -8385,13 +8385,13 @@ { "title": "Properties", "kind": 1024, - "children": [698] + "children": [699] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 862, "character": 44 } ] @@ -8406,7 +8406,7 @@ "typeArguments": [ { "type": "reference", - "id": 687, + "id": 688, "name": "AuthMFAAdminListFactorsResponse" } ], @@ -8422,13 +8422,13 @@ { "title": "Methods", "kind": 2048, - "children": [703, 700] + "children": [704, 701] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 876, + "line": 872, "character": 17 } ] @@ -8444,7 +8444,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 139, + "line": 146, "character": 8 } ], @@ -8467,17 +8467,17 @@ "flags": {}, "type": { "type": "reference", - "id": 411, + "id": 412, "name": "AdminUserAttributes", "dereferenced": { - "id": 411, + "id": 412, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 413, + "id": 414, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -8501,7 +8501,7 @@ } }, { - "id": 416, + "id": 417, "name": "ban_duration", "kind": 1024, "kindString": "Property", @@ -8525,7 +8525,7 @@ } }, { - "id": 420, + "id": 421, "name": "data", "kind": 1024, "kindString": "Property", @@ -8549,12 +8549,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 410, + "id": 411, "name": "UserAttributes.data" } }, { - "id": 417, + "id": 418, "name": "email", "kind": 1024, "kindString": "Property", @@ -8577,12 +8577,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 407, + "id": 408, "name": "UserAttributes.email" } }, { - "id": 414, + "id": 415, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -8606,7 +8606,7 @@ } }, { - "id": 419, + "id": 420, "name": "password", "kind": 1024, "kindString": "Property", @@ -8629,12 +8629,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 409, + "id": 410, "name": "UserAttributes.password" } }, { - "id": 418, + "id": 419, "name": "phone", "kind": 1024, "kindString": "Property", @@ -8657,12 +8657,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 408, + "id": 409, "name": "UserAttributes.phone" } }, { - "id": 415, + "id": 416, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -8686,7 +8686,7 @@ } }, { - "id": 412, + "id": 413, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -8714,7 +8714,7 @@ { "title": "Properties", "kind": 1024, - "children": [413, 416, 420, 417, 414, 419, 418, 415, 412] + "children": [414, 417, 421, 418, 415, 420, 419, 416, 413] } ], "sources": [ @@ -8727,7 +8727,7 @@ "extendedTypes": [ { "type": "reference", - "id": 406, + "id": 407, "name": "UserAttributes" } ] @@ -8740,7 +8740,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -8752,7 +8752,7 @@ ] }, { - "id": 66, + "id": 67, "name": "deleteUser", "kind": 2048, "kindString": "Method", @@ -8760,13 +8760,13 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 234, + "line": 260, "character": 8 } ], "signatures": [ { - "id": 67, + "id": 68, "name": "deleteUser", "kind": 4096, "kindString": "Call signature", @@ -8776,7 +8776,7 @@ }, "parameters": [ { - "id": 68, + "id": 69, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -8795,7 +8795,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -8815,7 +8815,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 105, + "line": 112, "character": 8 } ], @@ -8838,10 +8838,10 @@ "flags": {}, "type": { "type": "reference", - "id": 543, + "id": 544, "name": "GenerateLinkParams", "dereferenced": { - "id": 543, + "id": 544, "name": "GenerateLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -8857,7 +8857,7 @@ "type": "union", "types": [ { - "id": 518, + "id": 519, "name": "GenerateSignupLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -8872,14 +8872,14 @@ "type": { "type": "reflection", "declaration": { - "id": 519, + "id": 520, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 521, + "id": 522, "name": "email", "kind": 1024, "kindString": "Property", @@ -8897,7 +8897,7 @@ } }, { - "id": 523, + "id": 524, "name": "options", "kind": 1024, "kindString": "Property", @@ -8916,7 +8916,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -8939,7 +8939,7 @@ } }, { - "id": 522, + "id": 523, "name": "password", "kind": 1024, "kindString": "Property", @@ -8957,7 +8957,7 @@ } }, { - "id": 520, + "id": 521, "name": "type", "kind": 1024, "kindString": "Property", @@ -8979,7 +8979,7 @@ { "title": "Properties", "kind": 1024, - "children": [521, 523, 522, 520] + "children": [522, 524, 523, 521] } ], "sources": [ @@ -8993,7 +8993,7 @@ } }, { - "id": 524, + "id": 525, "name": "GenerateInviteOrMagiclinkParams", "kind": 4194304, "kindString": "Type alias", @@ -9008,14 +9008,14 @@ "type": { "type": "reflection", "declaration": { - "id": 525, + "id": 526, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 527, + "id": 528, "name": "email", "kind": 1024, "kindString": "Property", @@ -9036,7 +9036,7 @@ } }, { - "id": 528, + "id": 529, "name": "options", "kind": 1024, "kindString": "Property", @@ -9055,7 +9055,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -9078,7 +9078,7 @@ } }, { - "id": 526, + "id": 527, "name": "type", "kind": 1024, "kindString": "Property", @@ -9109,7 +9109,7 @@ { "title": "Properties", "kind": 1024, - "children": [527, 528, 526] + "children": [528, 529, 527] } ], "sources": [ @@ -9123,7 +9123,7 @@ } }, { - "id": 529, + "id": 530, "name": "GenerateRecoveryLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -9138,14 +9138,14 @@ "type": { "type": "reflection", "declaration": { - "id": 530, + "id": 531, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 532, + "id": 533, "name": "email", "kind": 1024, "kindString": "Property", @@ -9166,7 +9166,7 @@ } }, { - "id": 533, + "id": 534, "name": "options", "kind": 1024, "kindString": "Property", @@ -9185,7 +9185,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -9199,7 +9199,7 @@ } }, { - "id": 531, + "id": 532, "name": "type", "kind": 1024, "kindString": "Property", @@ -9221,7 +9221,7 @@ { "title": "Properties", "kind": 1024, - "children": [532, 533, 531] + "children": [533, 534, 532] } ], "sources": [ @@ -9235,7 +9235,7 @@ } }, { - "id": 534, + "id": 535, "name": "GenerateEmailChangeLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -9250,14 +9250,14 @@ "type": { "type": "reflection", "declaration": { - "id": 535, + "id": 536, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 537, + "id": 538, "name": "email", "kind": 1024, "kindString": "Property", @@ -9278,7 +9278,7 @@ } }, { - "id": 538, + "id": 539, "name": "newEmail", "kind": 1024, "kindString": "Property", @@ -9299,7 +9299,7 @@ } }, { - "id": 539, + "id": 540, "name": "options", "kind": 1024, "kindString": "Property", @@ -9318,7 +9318,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -9332,7 +9332,7 @@ } }, { - "id": 536, + "id": 537, "name": "type", "kind": 1024, "kindString": "Property", @@ -9363,7 +9363,7 @@ { "title": "Properties", "kind": 1024, - "children": [537, 538, 539, 536] + "children": [538, 539, 540, 537] } ], "sources": [ @@ -9387,7 +9387,7 @@ "typeArguments": [ { "type": "reference", - "id": 544, + "id": 545, "name": "GenerateLinkResponse" } ], @@ -9399,7 +9399,7 @@ ] }, { - "id": 59, + "id": 60, "name": "getUserById", "kind": 2048, "kindString": "Method", @@ -9407,13 +9407,13 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 189, + "line": 215, "character": 8 } ], "signatures": [ { - "id": 60, + "id": 61, "name": "getUserById", "kind": 4096, "kindString": "Call signature", @@ -9423,7 +9423,7 @@ }, "parameters": [ { - "id": 61, + "id": 62, "name": "uid", "kind": 32768, "kindString": "Parameter", @@ -9442,7 +9442,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -9462,7 +9462,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 75, + "line": 82, "character": 8 } ], @@ -9520,7 +9520,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 79, + "line": 86, "character": 6 } ], @@ -9543,7 +9543,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 78, + "line": 85, "character": 6 } ], @@ -9570,7 +9570,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -9590,7 +9590,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 161, + "line": 168, "character": 8 } ], @@ -9615,14 +9615,14 @@ "isOptional": true }, "comment": { - "shortText": "An object which supports `page` and `per_page` as numbers, to alter the paginated results.\n" + "shortText": "An object which supports `page` and `perPage` as numbers, to alter the paginated results.\n" }, "type": { "type": "reference", - "id": 717, + "id": 725, "name": "PageParams", "dereferenced": { - "id": 717, + "id": 725, "name": "PageParams", "kind": 4194304, "kindString": "Type alias", @@ -9630,21 +9630,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 917, + "line": 920, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 718, + "id": 726, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 719, + "id": 727, "name": "page", "kind": 1024, "kindString": "Property", @@ -9657,7 +9657,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 919, + "line": 922, "character": 2 } ], @@ -9667,7 +9667,7 @@ } }, { - "id": 720, + "id": 728, "name": "perPage", "kind": 1024, "kindString": "Property", @@ -9680,7 +9680,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 921, + "line": 924, "character": 2 } ], @@ -9694,13 +9694,13 @@ { "title": "Properties", "kind": 1024, - "children": [719, 720] + "children": [727, 728] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 917, + "line": 920, "character": 25 } ] @@ -9734,54 +9734,82 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 15 + "line": 171, + "character": 8 } ], "type": { - "type": "reflection", - "declaration": { - "id": 51, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 52, - "name": "users", - "kind": 1024, - "kindString": "Property", + "type": "intersection", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 51, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", "flags": {}, - "sources": [ + "children": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 23 + "id": 53, + "name": "aud", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueAdminApi.ts", + "line": 171, + "character": 31 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 52, + "name": "users", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueAdminApi.ts", + "line": 171, + "character": 16 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 385, + "name": "User" + } + } } ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 384, - "name": "User" + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [53, 52] } - } + ] } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [52] - } - ] - } + }, + { + "type": "reference", + "id": 718, + "name": "Pagination" + } + ] } }, { - "id": 53, + "id": 54, "name": "error", "kind": 1024, "kindString": "Property", @@ -9789,8 +9817,8 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 40 + "line": 171, + "character": 59 } ], "type": { @@ -9803,7 +9831,7 @@ { "title": "Properties", "kind": 1024, - "children": [50, 53] + "children": [50, 54] } ] } @@ -9811,14 +9839,14 @@ { "type": "reflection", "declaration": { - "id": 54, + "id": 55, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 55, + "id": 56, "name": "data", "kind": 1024, "kindString": "Property", @@ -9826,21 +9854,21 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 58 + "line": 172, + "character": 8 } ], "type": { "type": "reflection", "declaration": { - "id": 56, + "id": 57, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 57, + "id": 58, "name": "users", "kind": 1024, "kindString": "Property", @@ -9848,8 +9876,8 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 66 + "line": 172, + "character": 16 } ], "type": { @@ -9861,14 +9889,14 @@ { "title": "Properties", "kind": 1024, - "children": [57] + "children": [58] } ] } } }, { - "id": 58, + "id": 59, "name": "error", "kind": 1024, "kindString": "Property", @@ -9876,13 +9904,13 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 79 + "line": 172, + "character": 29 } ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -9891,7 +9919,7 @@ { "title": "Properties", "kind": 1024, - "children": [55, 58] + "children": [56, 59] } ] } @@ -9915,7 +9943,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 52, + "line": 59, "character": 8 } ], @@ -9966,7 +9994,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 52, + "line": 59, "character": 40 } ], @@ -9984,7 +10012,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 52, + "line": 59, "character": 52 } ], @@ -9997,7 +10025,7 @@ }, { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } ] @@ -10022,7 +10050,7 @@ ] }, { - "id": 62, + "id": 63, "name": "updateUserById", "kind": 2048, "kindString": "Method", @@ -10030,13 +10058,13 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 211, + "line": 237, "character": 8 } ], "signatures": [ { - "id": 63, + "id": 64, "name": "updateUserById", "kind": 4096, "kindString": "Call signature", @@ -10046,7 +10074,7 @@ }, "parameters": [ { - "id": 64, + "id": 65, "name": "uid", "kind": 32768, "kindString": "Parameter", @@ -10057,7 +10085,7 @@ } }, { - "id": 65, + "id": 66, "name": "attributes", "kind": 32768, "kindString": "Parameter", @@ -10067,17 +10095,17 @@ }, "type": { "type": "reference", - "id": 411, + "id": 412, "name": "AdminUserAttributes", "dereferenced": { - "id": 411, + "id": 412, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 413, + "id": 414, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -10101,7 +10129,7 @@ } }, { - "id": 416, + "id": 417, "name": "ban_duration", "kind": 1024, "kindString": "Property", @@ -10125,7 +10153,7 @@ } }, { - "id": 420, + "id": 421, "name": "data", "kind": 1024, "kindString": "Property", @@ -10149,12 +10177,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 410, + "id": 411, "name": "UserAttributes.data" } }, { - "id": 417, + "id": 418, "name": "email", "kind": 1024, "kindString": "Property", @@ -10177,12 +10205,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 407, + "id": 408, "name": "UserAttributes.email" } }, { - "id": 414, + "id": 415, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -10206,7 +10234,7 @@ } }, { - "id": 419, + "id": 420, "name": "password", "kind": 1024, "kindString": "Property", @@ -10229,12 +10257,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 409, + "id": 410, "name": "UserAttributes.password" } }, { - "id": 418, + "id": 419, "name": "phone", "kind": 1024, "kindString": "Property", @@ -10257,12 +10285,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 408, + "id": 409, "name": "UserAttributes.phone" } }, { - "id": 415, + "id": 416, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -10286,7 +10314,7 @@ } }, { - "id": 412, + "id": 413, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -10314,7 +10342,7 @@ { "title": "Properties", "kind": 1024, - "children": [413, 416, 420, 417, 414, 419, 418, 415, 412] + "children": [414, 417, 421, 418, 415, 420, 419, 416, 413] } ], "sources": [ @@ -10327,7 +10355,7 @@ "extendedTypes": [ { "type": "reference", - "id": 406, + "id": 407, "name": "UserAttributes" } ] @@ -10340,7 +10368,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -10366,26 +10394,26 @@ { "title": "Methods", "kind": 2048, - "children": [43, 66, 40, 59, 33, 46, 27, 62] + "children": [43, 67, 40, 60, 33, 46, 27, 63] } ], "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 18, + "line": 25, "character": 21 } ] }, { - "id": 75, + "id": 76, "name": "GoTrueClient", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 76, + "id": 77, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -10399,7 +10427,7 @@ ], "signatures": [ { - "id": 77, + "id": 78, "name": "new GoTrueClient", "kind": 16384, "kindString": "Constructor signature", @@ -10409,17 +10437,17 @@ }, "parameters": [ { - "id": 78, + "id": 79, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 288, + "id": 289, "name": "GoTrueClientOptions", "dereferenced": { - "id": 288, + "id": 289, "name": "GoTrueClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -10434,14 +10462,14 @@ "type": { "type": "reflection", "declaration": { - "id": 289, + "id": 290, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 297, + "id": 298, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -10461,7 +10489,7 @@ } }, { - "id": 296, + "id": 297, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -10481,7 +10509,7 @@ } }, { - "id": 300, + "id": 301, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -10501,7 +10529,7 @@ } }, { - "id": 291, + "id": 292, "name": "headers", "kind": 1024, "kindString": "Property", @@ -10518,7 +10546,7 @@ "type": { "type": "reflection", "declaration": { - "id": 292, + "id": 293, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -10531,14 +10559,14 @@ } ], "indexSignature": { - "id": 293, + "id": 294, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 294, + "id": 295, "name": "key", "kind": 32768, "flags": {}, @@ -10557,7 +10585,7 @@ } }, { - "id": 298, + "id": 299, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -10577,7 +10605,7 @@ } }, { - "id": 299, + "id": 300, "name": "storage", "kind": 1024, "kindString": "Property", @@ -10593,10 +10621,10 @@ ], "type": { "type": "reference", - "id": 706, + "id": 707, "name": "SupportedStorage", "dereferenced": { - "id": 706, + "id": 707, "name": "SupportedStorage", "kind": 4194304, "kindString": "Type alias", @@ -10604,7 +10632,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 903, + "line": 899, "character": 12 } ], @@ -10649,7 +10677,7 @@ } }, { - "id": 295, + "id": 296, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -10669,7 +10697,7 @@ } }, { - "id": 290, + "id": 291, "name": "url", "kind": 1024, "kindString": "Property", @@ -10693,7 +10721,7 @@ { "title": "Properties", "kind": 1024, - "children": [297, 296, 300, 291, 298, 299, 295, 290] + "children": [298, 297, 301, 292, 299, 300, 296, 291] } ], "sources": [ @@ -10711,14 +10739,14 @@ ], "type": { "type": "reference", - "id": 75, + "id": 76, "name": "default" } } ] }, { - "id": 79, + "id": 80, "name": "admin", "kind": 1024, "kindString": "Property", @@ -10753,7 +10781,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 28, + "line": 35, "character": 2 } ], @@ -10791,7 +10819,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 37, + "line": 44, "character": 4 } ], @@ -10881,7 +10909,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 34, + "line": 41, "character": 4 } ], @@ -10928,7 +10956,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 33, + "line": 40, "character": 4 } ], @@ -10969,16 +10997,16 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 20, + "line": 27, "character": 2 } ], "type": { "type": "reference", - "id": 699, + "id": 700, "name": "GoTrueAdminMFAApi", "dereferenced": { - "id": 699, + "id": 700, "name": "GoTrueAdminMFAApi", "kind": 256, "kindString": "Interface", @@ -10994,14 +11022,14 @@ }, "children": [ { - "id": 703, + "id": 704, "name": "deleteFactor", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 704, + "id": 705, "name": "deleteFactor", "kind": 4096, "kindString": "Call signature", @@ -11021,17 +11049,17 @@ }, "parameters": [ { - "id": 705, + "id": 706, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 683, + "id": 684, "name": "AuthMFAAdminDeleteFactorParams", "dereferenced": { - "id": 683, + "id": 684, "name": "AuthMFAAdminDeleteFactorParams", "kind": 4194304, "kindString": "Type alias", @@ -11047,21 +11075,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 842, + "line": 838, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 684, + "id": 685, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 685, + "id": 686, "name": "id", "kind": 1024, "kindString": "Property", @@ -11072,7 +11100,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 844, + "line": 840, "character": 2 } ], @@ -11082,7 +11110,7 @@ } }, { - "id": 686, + "id": 687, "name": "userId", "kind": 1024, "kindString": "Property", @@ -11093,7 +11121,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 847, + "line": 843, "character": 2 } ], @@ -11107,13 +11135,13 @@ { "title": "Properties", "kind": 1024, - "children": [685, 686] + "children": [686, 687] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 842, + "line": 838, "character": 45 } ] @@ -11128,7 +11156,7 @@ "typeArguments": [ { "type": "reference", - "id": 674, + "id": 675, "name": "AuthMFAAdminDeleteFactorResponse" } ], @@ -11140,14 +11168,14 @@ ] }, { - "id": 700, + "id": 701, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 701, + "id": 702, "name": "listFactors", "kind": 4096, "kindString": "Call signature", @@ -11157,17 +11185,17 @@ }, "parameters": [ { - "id": 702, + "id": 703, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 696, + "id": 697, "name": "AuthMFAAdminListFactorsParams", "dereferenced": { - "id": 696, + "id": 697, "name": "AuthMFAAdminListFactorsParams", "kind": 4194304, "kindString": "Type alias", @@ -11183,21 +11211,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 862, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 697, + "id": 698, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 698, + "id": 699, "name": "userId", "kind": 1024, "kindString": "Property", @@ -11208,7 +11236,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 868, + "line": 864, "character": 2 } ], @@ -11222,13 +11250,13 @@ { "title": "Properties", "kind": 1024, - "children": [698] + "children": [699] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 862, "character": 44 } ] @@ -11243,7 +11271,7 @@ "typeArguments": [ { "type": "reference", - "id": 687, + "id": 688, "name": "AuthMFAAdminListFactorsResponse" } ], @@ -11259,13 +11287,13 @@ { "title": "Methods", "kind": 2048, - "children": [703, 700] + "children": [704, 701] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 876, + "line": 872, "character": 17 } ] @@ -11281,7 +11309,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 139, + "line": 146, "character": 8 } ], @@ -11304,17 +11332,17 @@ "flags": {}, "type": { "type": "reference", - "id": 411, + "id": 412, "name": "AdminUserAttributes", "dereferenced": { - "id": 411, + "id": 412, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 413, + "id": 414, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -11338,7 +11366,7 @@ } }, { - "id": 416, + "id": 417, "name": "ban_duration", "kind": 1024, "kindString": "Property", @@ -11362,7 +11390,7 @@ } }, { - "id": 420, + "id": 421, "name": "data", "kind": 1024, "kindString": "Property", @@ -11386,12 +11414,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 410, + "id": 411, "name": "UserAttributes.data" } }, { - "id": 417, + "id": 418, "name": "email", "kind": 1024, "kindString": "Property", @@ -11414,12 +11442,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 407, + "id": 408, "name": "UserAttributes.email" } }, { - "id": 414, + "id": 415, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -11443,7 +11471,7 @@ } }, { - "id": 419, + "id": 420, "name": "password", "kind": 1024, "kindString": "Property", @@ -11466,12 +11494,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 409, + "id": 410, "name": "UserAttributes.password" } }, { - "id": 418, + "id": 419, "name": "phone", "kind": 1024, "kindString": "Property", @@ -11494,12 +11522,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 408, + "id": 409, "name": "UserAttributes.phone" } }, { - "id": 415, + "id": 416, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -11523,7 +11551,7 @@ } }, { - "id": 412, + "id": 413, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -11551,7 +11579,7 @@ { "title": "Properties", "kind": 1024, - "children": [413, 416, 420, 417, 414, 419, 418, 415, 412] + "children": [414, 417, 421, 418, 415, 420, 419, 416, 413] } ], "sources": [ @@ -11564,7 +11592,7 @@ "extendedTypes": [ { "type": "reference", - "id": 406, + "id": 407, "name": "UserAttributes" } ] @@ -11577,7 +11605,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -11589,7 +11617,7 @@ ] }, { - "id": 66, + "id": 67, "name": "deleteUser", "kind": 2048, "kindString": "Method", @@ -11597,13 +11625,13 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 234, + "line": 260, "character": 8 } ], "signatures": [ { - "id": 67, + "id": 68, "name": "deleteUser", "kind": 4096, "kindString": "Call signature", @@ -11613,7 +11641,7 @@ }, "parameters": [ { - "id": 68, + "id": 69, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -11632,7 +11660,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -11652,7 +11680,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 105, + "line": 112, "character": 8 } ], @@ -11675,10 +11703,10 @@ "flags": {}, "type": { "type": "reference", - "id": 543, + "id": 544, "name": "GenerateLinkParams", "dereferenced": { - "id": 543, + "id": 544, "name": "GenerateLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -11694,7 +11722,7 @@ "type": "union", "types": [ { - "id": 518, + "id": 519, "name": "GenerateSignupLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -11709,14 +11737,14 @@ "type": { "type": "reflection", "declaration": { - "id": 519, + "id": 520, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 521, + "id": 522, "name": "email", "kind": 1024, "kindString": "Property", @@ -11734,7 +11762,7 @@ } }, { - "id": 523, + "id": 524, "name": "options", "kind": 1024, "kindString": "Property", @@ -11753,7 +11781,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -11776,7 +11804,7 @@ } }, { - "id": 522, + "id": 523, "name": "password", "kind": 1024, "kindString": "Property", @@ -11794,7 +11822,7 @@ } }, { - "id": 520, + "id": 521, "name": "type", "kind": 1024, "kindString": "Property", @@ -11816,7 +11844,7 @@ { "title": "Properties", "kind": 1024, - "children": [521, 523, 522, 520] + "children": [522, 524, 523, 521] } ], "sources": [ @@ -11830,7 +11858,7 @@ } }, { - "id": 524, + "id": 525, "name": "GenerateInviteOrMagiclinkParams", "kind": 4194304, "kindString": "Type alias", @@ -11845,14 +11873,14 @@ "type": { "type": "reflection", "declaration": { - "id": 525, + "id": 526, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 527, + "id": 528, "name": "email", "kind": 1024, "kindString": "Property", @@ -11873,7 +11901,7 @@ } }, { - "id": 528, + "id": 529, "name": "options", "kind": 1024, "kindString": "Property", @@ -11892,7 +11920,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -11915,7 +11943,7 @@ } }, { - "id": 526, + "id": 527, "name": "type", "kind": 1024, "kindString": "Property", @@ -11946,7 +11974,7 @@ { "title": "Properties", "kind": 1024, - "children": [527, 528, 526] + "children": [528, 529, 527] } ], "sources": [ @@ -11960,7 +11988,7 @@ } }, { - "id": 529, + "id": 530, "name": "GenerateRecoveryLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -11975,14 +12003,14 @@ "type": { "type": "reflection", "declaration": { - "id": 530, + "id": 531, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 532, + "id": 533, "name": "email", "kind": 1024, "kindString": "Property", @@ -12003,7 +12031,7 @@ } }, { - "id": 533, + "id": 534, "name": "options", "kind": 1024, "kindString": "Property", @@ -12022,7 +12050,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -12036,7 +12064,7 @@ } }, { - "id": 531, + "id": 532, "name": "type", "kind": 1024, "kindString": "Property", @@ -12058,7 +12086,7 @@ { "title": "Properties", "kind": 1024, - "children": [532, 533, 531] + "children": [533, 534, 532] } ], "sources": [ @@ -12072,7 +12100,7 @@ } }, { - "id": 534, + "id": 535, "name": "GenerateEmailChangeLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -12087,14 +12115,14 @@ "type": { "type": "reflection", "declaration": { - "id": 535, + "id": 536, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 537, + "id": 538, "name": "email", "kind": 1024, "kindString": "Property", @@ -12115,7 +12143,7 @@ } }, { - "id": 538, + "id": 539, "name": "newEmail", "kind": 1024, "kindString": "Property", @@ -12136,7 +12164,7 @@ } }, { - "id": 539, + "id": 540, "name": "options", "kind": 1024, "kindString": "Property", @@ -12155,7 +12183,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -12169,7 +12197,7 @@ } }, { - "id": 536, + "id": 537, "name": "type", "kind": 1024, "kindString": "Property", @@ -12200,7 +12228,7 @@ { "title": "Properties", "kind": 1024, - "children": [537, 538, 539, 536] + "children": [538, 539, 540, 537] } ], "sources": [ @@ -12224,7 +12252,7 @@ "typeArguments": [ { "type": "reference", - "id": 544, + "id": 545, "name": "GenerateLinkResponse" } ], @@ -12236,7 +12264,7 @@ ] }, { - "id": 59, + "id": 60, "name": "getUserById", "kind": 2048, "kindString": "Method", @@ -12244,13 +12272,13 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 189, + "line": 215, "character": 8 } ], "signatures": [ { - "id": 60, + "id": 61, "name": "getUserById", "kind": 4096, "kindString": "Call signature", @@ -12260,7 +12288,7 @@ }, "parameters": [ { - "id": 61, + "id": 62, "name": "uid", "kind": 32768, "kindString": "Parameter", @@ -12279,7 +12307,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -12299,7 +12327,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 75, + "line": 82, "character": 8 } ], @@ -12357,7 +12385,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 79, + "line": 86, "character": 6 } ], @@ -12380,7 +12408,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 78, + "line": 85, "character": 6 } ], @@ -12407,7 +12435,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -12427,7 +12455,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 161, + "line": 168, "character": 8 } ], @@ -12452,14 +12480,14 @@ "isOptional": true }, "comment": { - "shortText": "An object which supports `page` and `per_page` as numbers, to alter the paginated results.\n" + "shortText": "An object which supports `page` and `perPage` as numbers, to alter the paginated results.\n" }, "type": { "type": "reference", - "id": 717, + "id": 725, "name": "PageParams", "dereferenced": { - "id": 717, + "id": 725, "name": "PageParams", "kind": 4194304, "kindString": "Type alias", @@ -12467,21 +12495,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 917, + "line": 920, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 718, + "id": 726, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 719, + "id": 727, "name": "page", "kind": 1024, "kindString": "Property", @@ -12494,7 +12522,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 919, + "line": 922, "character": 2 } ], @@ -12504,7 +12532,7 @@ } }, { - "id": 720, + "id": 728, "name": "perPage", "kind": 1024, "kindString": "Property", @@ -12517,7 +12545,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 921, + "line": 924, "character": 2 } ], @@ -12531,13 +12559,13 @@ { "title": "Properties", "kind": 1024, - "children": [719, 720] + "children": [727, 728] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 917, + "line": 920, "character": 25 } ] @@ -12571,54 +12599,82 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 15 + "line": 171, + "character": 8 } ], "type": { - "type": "reflection", - "declaration": { - "id": 51, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 52, - "name": "users", - "kind": 1024, - "kindString": "Property", + "type": "intersection", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 51, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", "flags": {}, - "sources": [ + "children": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 23 + "id": 53, + "name": "aud", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueAdminApi.ts", + "line": 171, + "character": 31 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 52, + "name": "users", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueAdminApi.ts", + "line": 171, + "character": 16 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 385, + "name": "User" + } + } } ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 384, - "name": "User" + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [53, 52] } - } + ] } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [52] - } - ] - } + }, + { + "type": "reference", + "id": 718, + "name": "Pagination" + } + ] } }, { - "id": 53, + "id": 54, "name": "error", "kind": 1024, "kindString": "Property", @@ -12626,8 +12682,8 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 40 + "line": 171, + "character": 59 } ], "type": { @@ -12640,7 +12696,7 @@ { "title": "Properties", "kind": 1024, - "children": [50, 53] + "children": [50, 54] } ] } @@ -12648,14 +12704,14 @@ { "type": "reflection", "declaration": { - "id": 54, + "id": 55, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 55, + "id": 56, "name": "data", "kind": 1024, "kindString": "Property", @@ -12663,21 +12719,21 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 58 + "line": 172, + "character": 8 } ], "type": { "type": "reflection", "declaration": { - "id": 56, + "id": 57, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 57, + "id": 58, "name": "users", "kind": 1024, "kindString": "Property", @@ -12685,8 +12741,8 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 66 + "line": 172, + "character": 16 } ], "type": { @@ -12698,14 +12754,14 @@ { "title": "Properties", "kind": 1024, - "children": [57] + "children": [58] } ] } } }, { - "id": 58, + "id": 59, "name": "error", "kind": 1024, "kindString": "Property", @@ -12713,13 +12769,13 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 79 + "line": 172, + "character": 29 } ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -12728,7 +12784,7 @@ { "title": "Properties", "kind": 1024, - "children": [55, 58] + "children": [56, 59] } ] } @@ -12752,7 +12808,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 52, + "line": 59, "character": 8 } ], @@ -12803,7 +12859,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 52, + "line": 59, "character": 40 } ], @@ -12821,7 +12877,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 52, + "line": 59, "character": 52 } ], @@ -12834,7 +12890,7 @@ }, { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } ] @@ -12859,7 +12915,7 @@ ] }, { - "id": 62, + "id": 63, "name": "updateUserById", "kind": 2048, "kindString": "Method", @@ -12867,13 +12923,13 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 211, + "line": 237, "character": 8 } ], "signatures": [ { - "id": 63, + "id": 64, "name": "updateUserById", "kind": 4096, "kindString": "Call signature", @@ -12883,7 +12939,7 @@ }, "parameters": [ { - "id": 64, + "id": 65, "name": "uid", "kind": 32768, "kindString": "Parameter", @@ -12894,7 +12950,7 @@ } }, { - "id": 65, + "id": 66, "name": "attributes", "kind": 32768, "kindString": "Parameter", @@ -12904,17 +12960,17 @@ }, "type": { "type": "reference", - "id": 411, + "id": 412, "name": "AdminUserAttributes", "dereferenced": { - "id": 411, + "id": 412, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 413, + "id": 414, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -12938,7 +12994,7 @@ } }, { - "id": 416, + "id": 417, "name": "ban_duration", "kind": 1024, "kindString": "Property", @@ -12962,7 +13018,7 @@ } }, { - "id": 420, + "id": 421, "name": "data", "kind": 1024, "kindString": "Property", @@ -12986,12 +13042,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 410, + "id": 411, "name": "UserAttributes.data" } }, { - "id": 417, + "id": 418, "name": "email", "kind": 1024, "kindString": "Property", @@ -13014,12 +13070,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 407, + "id": 408, "name": "UserAttributes.email" } }, { - "id": 414, + "id": 415, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -13043,7 +13099,7 @@ } }, { - "id": 419, + "id": 420, "name": "password", "kind": 1024, "kindString": "Property", @@ -13066,12 +13122,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 409, + "id": 410, "name": "UserAttributes.password" } }, { - "id": 418, + "id": 419, "name": "phone", "kind": 1024, "kindString": "Property", @@ -13094,12 +13150,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 408, + "id": 409, "name": "UserAttributes.phone" } }, { - "id": 415, + "id": 416, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -13123,7 +13179,7 @@ } }, { - "id": 412, + "id": 413, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -13151,7 +13207,7 @@ { "title": "Properties", "kind": 1024, - "children": [413, 416, 420, 417, 414, 419, 418, 415, 412] + "children": [414, 417, 421, 418, 415, 420, 419, 416, 413] } ], "sources": [ @@ -13164,7 +13220,7 @@ "extendedTypes": [ { "type": "reference", - "id": 406, + "id": 407, "name": "UserAttributes" } ] @@ -13177,7 +13233,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -13203,13 +13259,13 @@ { "title": "Methods", "kind": 2048, - "children": [43, 66, 40, 59, 33, 46, 27, 62] + "children": [43, 67, 40, 60, 33, 46, 27, 63] } ], "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 18, + "line": 25, "character": 21 } ] @@ -13217,7 +13273,7 @@ } }, { - "id": 80, + "id": 81, "name": "mfa", "kind": 1024, "kindString": "Property", @@ -13234,10 +13290,10 @@ ], "type": { "type": "reference", - "id": 654, + "id": 655, "name": "GoTrueMFAApi", "dereferenced": { - "id": 654, + "id": 655, "name": "GoTrueMFAApi", "kind": 256, "kindString": "Interface", @@ -13247,14 +13303,14 @@ }, "children": [ { - "id": 658, + "id": 659, "name": "challenge", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 659, + "id": 660, "name": "challenge", "kind": 4096, "kindString": "Call signature", @@ -13264,17 +13320,17 @@ }, "parameters": [ { - "id": 660, + "id": 661, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 578, + "id": 579, "name": "MFAChallengeParams", "dereferenced": { - "id": 578, + "id": 579, "name": "MFAChallengeParams", "kind": 4194304, "kindString": "Type alias", @@ -13289,14 +13345,14 @@ "type": { "type": "reflection", "declaration": { - "id": 579, + "id": 580, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 580, + "id": 581, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -13321,7 +13377,7 @@ { "title": "Properties", "kind": 1024, - "children": [580] + "children": [581] } ], "sources": [ @@ -13342,7 +13398,7 @@ "typeArguments": [ { "type": "reference", - "id": 622, + "id": 623, "name": "AuthMFAChallengeResponse" } ], @@ -13354,14 +13410,14 @@ ] }, { - "id": 667, + "id": 668, "name": "challengeAndVerify", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 668, + "id": 669, "name": "challengeAndVerify", "kind": 4096, "kindString": "Call signature", @@ -13371,17 +13427,17 @@ }, "parameters": [ { - "id": 669, + "id": 670, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 581, + "id": 582, "name": "MFAChallengeAndVerifyParams", "dereferenced": { - "id": 581, + "id": 582, "name": "MFAChallengeAndVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -13396,14 +13452,14 @@ "type": { "type": "reflection", "declaration": { - "id": 582, + "id": 583, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 584, + "id": 585, "name": "code", "kind": 1024, "kindString": "Property", @@ -13424,7 +13480,7 @@ } }, { - "id": 583, + "id": 584, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -13449,7 +13505,7 @@ { "title": "Properties", "kind": 1024, - "children": [584, 583] + "children": [585, 584] } ], "sources": [ @@ -13470,7 +13526,7 @@ "typeArguments": [ { "type": "reference", - "id": 585, + "id": 586, "name": "AuthMFAVerifyResponse" } ], @@ -13482,14 +13538,14 @@ ] }, { - "id": 655, + "id": 656, "name": "enroll", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 656, + "id": 657, "name": "enroll", "kind": 4096, "kindString": "Call signature", @@ -13500,17 +13556,17 @@ }, "parameters": [ { - "id": 657, + "id": 658, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 565, + "id": 566, "name": "MFAEnrollParams", "dereferenced": { - "id": 565, + "id": 566, "name": "MFAEnrollParams", "kind": 4194304, "kindString": "Type alias", @@ -13525,14 +13581,14 @@ "type": { "type": "reflection", "declaration": { - "id": 566, + "id": 567, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 567, + "id": 568, "name": "factorType", "kind": 1024, "kindString": "Property", @@ -13553,7 +13609,7 @@ } }, { - "id": 569, + "id": 570, "name": "friendlyName", "kind": 1024, "kindString": "Property", @@ -13576,7 +13632,7 @@ } }, { - "id": 568, + "id": 569, "name": "issuer", "kind": 1024, "kindString": "Property", @@ -13603,7 +13659,7 @@ { "title": "Properties", "kind": 1024, - "children": [567, 569, 568] + "children": [568, 570, 569] } ], "sources": [ @@ -13624,7 +13680,7 @@ "typeArguments": [ { "type": "reference", - "id": 598, + "id": 599, "name": "AuthMFAEnrollResponse" } ], @@ -13636,14 +13692,14 @@ ] }, { - "id": 672, + "id": 673, "name": "getAuthenticatorAssuranceLevel", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 673, + "id": 674, "name": "getAuthenticatorAssuranceLevel", "kind": 4096, "kindString": "Call signature", @@ -13657,7 +13713,7 @@ "typeArguments": [ { "type": "reference", - "id": 643, + "id": 644, "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse" } ], @@ -13669,20 +13725,20 @@ ] }, { - "id": 670, + "id": 671, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 671, + "id": 672, "name": "listFactors", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Returns the list of MFA factors enabled for this user. For most use cases\nyou should consider using {@link\nGoTrueMFAApi#getAuthenticatorAssuranceLevel}. This uses a cached version\nof the factors and avoids incurring a network call. If you need to update\nthis list, call {@link GoTrueClient#getUser} first.", + "shortText": "Returns the list of MFA factors enabled for this user.", "tags": [ { "tag": "see", @@ -13703,7 +13759,7 @@ "typeArguments": [ { "type": "reference", - "id": 632, + "id": 633, "name": "AuthMFAListFactorsResponse" } ], @@ -13715,14 +13771,14 @@ ] }, { - "id": 664, + "id": 665, "name": "unenroll", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 665, + "id": 666, "name": "unenroll", "kind": 4096, "kindString": "Call signature", @@ -13732,17 +13788,17 @@ }, "parameters": [ { - "id": 666, + "id": 667, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 570, + "id": 571, "name": "MFAUnenrollParams", "dereferenced": { - "id": 570, + "id": 571, "name": "MFAUnenrollParams", "kind": 4194304, "kindString": "Type alias", @@ -13757,14 +13813,14 @@ "type": { "type": "reflection", "declaration": { - "id": 571, + "id": 572, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 572, + "id": 573, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -13789,7 +13845,7 @@ { "title": "Properties", "kind": 1024, - "children": [572] + "children": [573] } ], "sources": [ @@ -13810,7 +13866,7 @@ "typeArguments": [ { "type": "reference", - "id": 613, + "id": 614, "name": "AuthMFAUnenrollResponse" } ], @@ -13822,14 +13878,14 @@ ] }, { - "id": 661, + "id": 662, "name": "verify", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 662, + "id": 663, "name": "verify", "kind": 4096, "kindString": "Call signature", @@ -13839,17 +13895,17 @@ }, "parameters": [ { - "id": 663, + "id": 664, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 573, + "id": 574, "name": "MFAVerifyParams", "dereferenced": { - "id": 573, + "id": 574, "name": "MFAVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -13864,14 +13920,14 @@ "type": { "type": "reflection", "declaration": { - "id": 574, + "id": 575, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 576, + "id": 577, "name": "challengeId", "kind": 1024, "kindString": "Property", @@ -13892,7 +13948,7 @@ } }, { - "id": 577, + "id": 578, "name": "code", "kind": 1024, "kindString": "Property", @@ -13913,7 +13969,7 @@ } }, { - "id": 575, + "id": 576, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -13938,7 +13994,7 @@ { "title": "Properties", "kind": 1024, - "children": [576, 577, 575] + "children": [577, 578, 576] } ], "sources": [ @@ -13959,7 +14015,7 @@ "typeArguments": [ { "type": "reference", - "id": 585, + "id": 586, "name": "AuthMFAVerifyResponse" } ], @@ -13975,7 +14031,7 @@ { "title": "Methods", "kind": 2048, - "children": [658, 667, 655, 672, 670, 664, 661] + "children": [659, 668, 656, 673, 671, 665, 662] } ], "sources": [ @@ -13989,7 +14045,7 @@ } }, { - "id": 124, + "id": 125, "name": "getSession", "kind": 2048, "kindString": "Method", @@ -13997,13 +14053,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 487, + "line": 501, "character": 8 } ], "signatures": [ { - "id": 125, + "id": 126, "name": "getSession", "kind": 4096, "kindString": "Call signature", @@ -14020,14 +14076,14 @@ { "type": "reflection", "declaration": { - "id": 126, + "id": 127, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 127, + "id": 128, "name": "data", "kind": 1024, "kindString": "Property", @@ -14035,21 +14091,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 489, + "line": 503, "character": 8 } ], "type": { "type": "reflection", "declaration": { - "id": 128, + "id": 129, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 129, + "id": 130, "name": "session", "kind": 1024, "kindString": "Property", @@ -14057,13 +14113,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 490, + "line": 504, "character": 10 } ], "type": { "type": "reference", - "id": 347, + "id": 348, "name": "Session" } } @@ -14072,14 +14128,14 @@ { "title": "Properties", "kind": 1024, - "children": [129] + "children": [130] } ] } } }, { - "id": 130, + "id": 131, "name": "error", "kind": 1024, "kindString": "Property", @@ -14087,7 +14143,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 492, + "line": 506, "character": 8 } ], @@ -14101,7 +14157,7 @@ { "title": "Properties", "kind": 1024, - "children": [127, 130] + "children": [128, 131] } ] } @@ -14109,14 +14165,14 @@ { "type": "reflection", "declaration": { - "id": 131, + "id": 132, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 132, + "id": 133, "name": "data", "kind": 1024, "kindString": "Property", @@ -14124,21 +14180,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 495, + "line": 509, "character": 8 } ], "type": { "type": "reflection", "declaration": { - "id": 133, + "id": 134, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 134, + "id": 135, "name": "session", "kind": 1024, "kindString": "Property", @@ -14146,7 +14202,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 496, + "line": 510, "character": 10 } ], @@ -14160,14 +14216,14 @@ { "title": "Properties", "kind": 1024, - "children": [134] + "children": [135] } ] } } }, { - "id": 135, + "id": 136, "name": "error", "kind": 1024, "kindString": "Property", @@ -14175,13 +14231,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 498, + "line": 512, "character": 8 } ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -14190,7 +14246,7 @@ { "title": "Properties", "kind": 1024, - "children": [132, 135] + "children": [133, 136] } ] } @@ -14198,14 +14254,14 @@ { "type": "reflection", "declaration": { - "id": 136, + "id": 137, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 137, + "id": 138, "name": "data", "kind": 1024, "kindString": "Property", @@ -14213,21 +14269,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 501, + "line": 515, "character": 8 } ], "type": { "type": "reflection", "declaration": { - "id": 138, + "id": 139, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 139, + "id": 140, "name": "session", "kind": 1024, "kindString": "Property", @@ -14235,7 +14291,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 502, + "line": 516, "character": 10 } ], @@ -14249,14 +14305,14 @@ { "title": "Properties", "kind": 1024, - "children": [139] + "children": [140] } ] } } }, { - "id": 140, + "id": 141, "name": "error", "kind": 1024, "kindString": "Property", @@ -14264,7 +14320,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 504, + "line": 518, "character": 8 } ], @@ -14278,7 +14334,7 @@ { "title": "Properties", "kind": 1024, - "children": [137, 140] + "children": [138, 141] } ] } @@ -14294,7 +14350,7 @@ ] }, { - "id": 141, + "id": 142, "name": "getUser", "kind": 2048, "kindString": "Method", @@ -14302,13 +14358,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 550, + "line": 564, "character": 8 } ], "signatures": [ { - "id": 142, + "id": 143, "name": "getUser", "kind": 4096, "kindString": "Call signature", @@ -14318,7 +14374,7 @@ }, "parameters": [ { - "id": 143, + "id": 144, "name": "jwt", "kind": 32768, "kindString": "Parameter", @@ -14339,7 +14395,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -14351,7 +14407,7 @@ ] }, { - "id": 102, + "id": 103, "name": "initialize", "kind": 2048, "kindString": "Method", @@ -14365,7 +14421,7 @@ ], "signatures": [ { - "id": 103, + "id": 104, "name": "initialize", "kind": 4096, "kindString": "Call signature", @@ -14378,7 +14434,7 @@ "typeArguments": [ { "type": "reference", - "id": 707, + "id": 708, "name": "InitializeResult" } ], @@ -14390,7 +14446,7 @@ ] }, { - "id": 185, + "id": 186, "name": "onAuthStateChange", "kind": 2048, "kindString": "Method", @@ -14398,13 +14454,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 834, + "line": 848, "character": 2 } ], "signatures": [ { - "id": 186, + "id": 187, "name": "onAuthStateChange", "kind": 4096, "kindString": "Call signature", @@ -14414,7 +14470,7 @@ }, "parameters": [ { - "id": 187, + "id": 188, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -14425,33 +14481,33 @@ "type": { "type": "reflection", "declaration": { - "id": 188, + "id": 189, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 189, + "id": 190, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 190, + "id": 191, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 287, + "id": 288, "name": "AuthChangeEvent" } }, { - "id": 191, + "id": 192, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -14465,7 +14521,7 @@ }, { "type": "reference", - "id": 347, + "id": 348, "name": "Session" } ] @@ -14485,14 +14541,14 @@ "type": { "type": "reflection", "declaration": { - "id": 192, + "id": 193, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 193, + "id": 194, "name": "data", "kind": 1024, "kindString": "Property", @@ -14500,21 +14556,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 835, + "line": 849, "character": 4 } ], "type": { "type": "reflection", "declaration": { - "id": 194, + "id": 195, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 195, + "id": 196, "name": "subscription", "kind": 1024, "kindString": "Property", @@ -14522,23 +14578,23 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 835, + "line": 849, "character": 12 } ], "type": { "type": "reference", - "id": 421, + "id": 422, "name": "Subscription", "dereferenced": { - "id": 421, + "id": 422, "name": "Subscription", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 422, + "id": 423, "name": "id", "kind": 1024, "kindString": "Property", @@ -14559,7 +14615,7 @@ } }, { - "id": 423, + "id": 424, "name": "callback", "kind": 2048, "kindString": "Method", @@ -14573,7 +14629,7 @@ ], "signatures": [ { - "id": 424, + "id": 425, "name": "callback", "kind": 4096, "kindString": "Call signature", @@ -14583,17 +14639,17 @@ }, "parameters": [ { - "id": 425, + "id": 426, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 287, + "id": 288, "name": "AuthChangeEvent", "dereferenced": { - "id": 287, + "id": 288, "name": "AuthChangeEvent", "kind": 4194304, "kindString": "Type alias", @@ -14633,7 +14689,7 @@ "value": "USER_DELETED" }, { - "id": 286, + "id": 287, "name": "AuthChangeEventMFA", "kind": 4194304, "kindString": "Type alias", @@ -14656,7 +14712,7 @@ } }, { - "id": 426, + "id": 427, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -14670,7 +14726,7 @@ }, { "type": "reference", - "id": 347, + "id": 348, "name": "Session" } ] @@ -14685,7 +14741,7 @@ ] }, { - "id": 427, + "id": 428, "name": "unsubscribe", "kind": 2048, "kindString": "Method", @@ -14699,7 +14755,7 @@ ], "signatures": [ { - "id": 428, + "id": 429, "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", @@ -14719,12 +14775,12 @@ { "title": "Properties", "kind": 1024, - "children": [422] + "children": [423] }, { "title": "Methods", "kind": 2048, - "children": [423, 427] + "children": [424, 428] } ], "sources": [ @@ -14742,7 +14798,7 @@ { "title": "Properties", "kind": 1024, - "children": [195] + "children": [196] } ] } @@ -14753,7 +14809,7 @@ { "title": "Properties", "kind": 1024, - "children": [193] + "children": [194] } ] } @@ -14762,7 +14818,7 @@ ] }, { - "id": 160, + "id": 161, "name": "refreshSession", "kind": 2048, "kindString": "Method", @@ -14770,13 +14826,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 689, + "line": 703, "character": 8 } ], "signatures": [ { - "id": 161, + "id": 162, "name": "refreshSession", "kind": 4096, "kindString": "Call signature", @@ -14786,7 +14842,7 @@ }, "parameters": [ { - "id": 162, + "id": 163, "name": "currentSession", "kind": 32768, "kindString": "Parameter", @@ -14799,14 +14855,14 @@ "type": { "type": "reflection", "declaration": { - "id": 163, + "id": 164, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 164, + "id": 165, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -14814,7 +14870,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 689, + "line": 703, "character": 42 } ], @@ -14828,7 +14884,7 @@ { "title": "Properties", "kind": 1024, - "children": [164] + "children": [165] } ] } @@ -14840,7 +14896,7 @@ "typeArguments": [ { "type": "reference", - "id": 301, + "id": 302, "name": "AuthResponse" } ], @@ -14852,7 +14908,7 @@ ] }, { - "id": 196, + "id": 197, "name": "resetPasswordForEmail", "kind": 2048, "kindString": "Method", @@ -14860,13 +14916,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 857, + "line": 871, "character": 8 } ], "signatures": [ { - "id": 197, + "id": 198, "name": "resetPasswordForEmail", "kind": 4096, "kindString": "Call signature", @@ -14876,7 +14932,7 @@ }, "parameters": [ { - "id": 198, + "id": 199, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -14890,7 +14946,7 @@ } }, { - "id": 199, + "id": 200, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -14898,14 +14954,14 @@ "type": { "type": "reflection", "declaration": { - "id": 200, + "id": 201, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 202, + "id": 203, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -14918,7 +14974,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 861, + "line": 875, "character": 6 } ], @@ -14928,7 +14984,7 @@ } }, { - "id": 201, + "id": 202, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -14941,7 +14997,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 860, + "line": 874, "character": 6 } ], @@ -14955,7 +15011,7 @@ { "title": "Properties", "kind": 1024, - "children": [202, 201] + "children": [203, 202] } ] } @@ -14972,14 +15028,14 @@ { "type": "reflection", "declaration": { - "id": 203, + "id": 204, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 204, + "id": 205, "name": "data", "kind": 1024, "kindString": "Property", @@ -14987,14 +15043,14 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 865, + "line": 879, "character": 8 } ], "type": { "type": "reflection", "declaration": { - "id": 205, + "id": 206, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -15003,7 +15059,7 @@ } }, { - "id": 206, + "id": 207, "name": "error", "kind": 1024, "kindString": "Property", @@ -15011,7 +15067,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 866, + "line": 880, "character": 8 } ], @@ -15025,7 +15081,7 @@ { "title": "Properties", "kind": 1024, - "children": [204, 206] + "children": [205, 207] } ] } @@ -15033,14 +15089,14 @@ { "type": "reflection", "declaration": { - "id": 207, + "id": 208, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 208, + "id": 209, "name": "data", "kind": 1024, "kindString": "Property", @@ -15048,7 +15104,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 868, + "line": 882, "character": 8 } ], @@ -15058,7 +15114,7 @@ } }, { - "id": 209, + "id": 210, "name": "error", "kind": 1024, "kindString": "Property", @@ -15066,13 +15122,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 868, + "line": 882, "character": 20 } ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -15081,7 +15137,7 @@ { "title": "Properties", "kind": 1024, - "children": [208, 209] + "children": [209, 210] } ] } @@ -15097,7 +15153,7 @@ ] }, { - "id": 154, + "id": 155, "name": "setSession", "kind": 2048, "kindString": "Method", @@ -15105,13 +15161,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 626, + "line": 640, "character": 8 } ], "signatures": [ { - "id": 155, + "id": 156, "name": "setSession", "kind": 4096, "kindString": "Call signature", @@ -15121,7 +15177,7 @@ }, "parameters": [ { - "id": 156, + "id": 157, "name": "currentSession", "kind": 32768, "kindString": "Parameter", @@ -15132,14 +15188,14 @@ "type": { "type": "reflection", "declaration": { - "id": 157, + "id": 158, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 158, + "id": 159, "name": "access_token", "kind": 1024, "kindString": "Property", @@ -15147,7 +15203,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 627, + "line": 641, "character": 4 } ], @@ -15157,7 +15213,7 @@ } }, { - "id": 159, + "id": 160, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -15165,7 +15221,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 628, + "line": 642, "character": 4 } ], @@ -15179,7 +15235,7 @@ { "title": "Properties", "kind": 1024, - "children": [158, 159] + "children": [159, 160] } ] } @@ -15191,7 +15247,7 @@ "typeArguments": [ { "type": "reference", - "id": 301, + "id": 302, "name": "AuthResponse" } ], @@ -15203,7 +15259,7 @@ ] }, { - "id": 112, + "id": 113, "name": "signInWithOAuth", "kind": 2048, "kindString": "Method", @@ -15211,13 +15267,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 340, + "line": 349, "character": 8 } ], "signatures": [ { - "id": 113, + "id": 114, "name": "signInWithOAuth", "kind": 4096, "kindString": "Call signature", @@ -15227,17 +15283,17 @@ }, "parameters": [ { - "id": 114, + "id": 115, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 478, + "id": 479, "name": "SignInWithOAuthCredentials", "dereferenced": { - "id": 478, + "id": 479, "name": "SignInWithOAuthCredentials", "kind": 4194304, "kindString": "Type alias", @@ -15252,14 +15308,14 @@ "type": { "type": "reflection", "declaration": { - "id": 479, + "id": 480, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 481, + "id": 482, "name": "options", "kind": 1024, "kindString": "Property", @@ -15276,14 +15332,14 @@ "type": { "type": "reflection", "declaration": { - "id": 482, + "id": 483, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 485, + "id": 486, "name": "queryParams", "kind": 1024, "kindString": "Property", @@ -15303,7 +15359,7 @@ "type": { "type": "reflection", "declaration": { - "id": 486, + "id": 487, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -15316,14 +15372,14 @@ } ], "indexSignature": { - "id": 487, + "id": 488, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 488, + "id": 489, "name": "key", "kind": 32768, "flags": {}, @@ -15342,7 +15398,7 @@ } }, { - "id": 483, + "id": 484, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -15365,7 +15421,7 @@ } }, { - "id": 484, + "id": 485, "name": "scopes", "kind": 1024, "kindString": "Property", @@ -15392,7 +15448,7 @@ { "title": "Properties", "kind": 1024, - "children": [485, 483, 484] + "children": [486, 484, 485] } ], "sources": [ @@ -15406,7 +15462,7 @@ } }, { - "id": 480, + "id": 481, "name": "provider", "kind": 1024, "kindString": "Property", @@ -15423,10 +15479,10 @@ ], "type": { "type": "reference", - "id": 285, + "id": 286, "name": "Provider", "dereferenced": { - "id": 285, + "id": 286, "name": "Provider", "kind": 4194304, "kindString": "Type alias", @@ -15518,7 +15574,7 @@ { "title": "Properties", "kind": 1024, - "children": [481, 480] + "children": [482, 481] } ], "sources": [ @@ -15539,7 +15595,7 @@ "typeArguments": [ { "type": "reference", - "id": 314, + "id": 315, "name": "OAuthResponse" } ], @@ -15551,7 +15607,7 @@ ] }, { - "id": 115, + "id": 116, "name": "signInWithOtp", "kind": 2048, "kindString": "Method", @@ -15559,33 +15615,34 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 355, + "line": 369, "character": 8 } ], "signatures": [ { - "id": 116, + "id": 117, "name": "signInWithOtp", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Log in a user using magiclink or a one-time password (OTP).\nIf the `{{ .ConfirmationURL }}` variable is specified in the email template, a magiclink will be sent.\nIf the `{{ .Token }}` variable is specified in the email template, an OTP will be sent.\nIf you're using phone sign-ins, only an OTP will be sent. You won't be able to send a magiclink for phone sign-ins." + "shortText": "Log in a user using magiclink or a one-time password (OTP).", + "text": "If the `{{ .ConfirmationURL }}` variable is specified in the email template, a magiclink will be sent.\nIf the `{{ .Token }}` variable is specified in the email template, an OTP will be sent.\nIf you're using phone sign-ins, only an OTP will be sent. You won't be able to send a magiclink for phone sign-ins.\n\nBe aware that you may get back an error message that will not distinguish\nbetween the cases where the account does not exist or, that the account\ncan only be accessed via social login.\n" }, "parameters": [ { - "id": 117, + "id": 118, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 462, + "id": 463, "name": "SignInWithPasswordlessCredentials", "dereferenced": { - "id": 462, + "id": 463, "name": "SignInWithPasswordlessCredentials", "kind": 4194304, "kindString": "Type alias", @@ -15603,14 +15660,14 @@ { "type": "reflection", "declaration": { - "id": 463, + "id": 464, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 464, + "id": 465, "name": "email", "kind": 1024, "kindString": "Property", @@ -15631,7 +15688,7 @@ } }, { - "id": 465, + "id": 466, "name": "options", "kind": 1024, "kindString": "Property", @@ -15648,14 +15705,14 @@ "type": { "type": "reflection", "declaration": { - "id": 466, + "id": 467, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 470, + "id": 471, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -15678,7 +15735,7 @@ } }, { - "id": 469, + "id": 470, "name": "data", "kind": 1024, "kindString": "Property", @@ -15702,7 +15759,7 @@ } }, { - "id": 467, + "id": 468, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -15725,7 +15782,7 @@ } }, { - "id": 468, + "id": 469, "name": "shouldCreateUser", "kind": 1024, "kindString": "Property", @@ -15752,7 +15809,7 @@ { "title": "Properties", "kind": 1024, - "children": [470, 469, 467, 468] + "children": [471, 470, 468, 469] } ], "sources": [ @@ -15770,7 +15827,7 @@ { "title": "Properties", "kind": 1024, - "children": [464, 465] + "children": [465, 466] } ], "sources": [ @@ -15785,14 +15842,14 @@ { "type": "reflection", "declaration": { - "id": 471, + "id": 472, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 473, + "id": 474, "name": "options", "kind": 1024, "kindString": "Property", @@ -15809,14 +15866,14 @@ "type": { "type": "reflection", "declaration": { - "id": 474, + "id": 475, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 477, + "id": 478, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -15839,7 +15896,7 @@ } }, { - "id": 476, + "id": 477, "name": "data", "kind": 1024, "kindString": "Property", @@ -15863,7 +15920,7 @@ } }, { - "id": 475, + "id": 476, "name": "shouldCreateUser", "kind": 1024, "kindString": "Property", @@ -15890,7 +15947,7 @@ { "title": "Properties", "kind": 1024, - "children": [477, 476, 475] + "children": [478, 477, 476] } ], "sources": [ @@ -15904,7 +15961,7 @@ } }, { - "id": 472, + "id": 473, "name": "phone", "kind": 1024, "kindString": "Property", @@ -15929,7 +15986,7 @@ { "title": "Properties", "kind": 1024, - "children": [473, 472] + "children": [474, 473] } ], "sources": [ @@ -15952,7 +16009,7 @@ "typeArguments": [ { "type": "reference", - "id": 301, + "id": 302, "name": "AuthResponse" } ], @@ -15964,7 +16021,7 @@ ] }, { - "id": 109, + "id": 110, "name": "signInWithPassword", "kind": 2048, "kindString": "Method", @@ -15972,33 +16029,34 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 288, + "line": 297, "character": 8 } ], "signatures": [ { - "id": 110, + "id": 111, "name": "signInWithPassword", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Log in an existing user with an email and password or phone and password." + "shortText": "Log in an existing user with an email and password or phone and password.", + "text": "Be aware that you may get back an error message that will not distingish\nbetween the cases where the account does not exist or that the\nemail/phone and password combination is wrong or that the account can only\nbe accessed via social login.\n" }, "parameters": [ { - "id": 111, + "id": 112, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 447, + "id": 448, "name": "SignInWithPasswordCredentials", "dereferenced": { - "id": 447, + "id": 448, "name": "SignInWithPasswordCredentials", "kind": 4194304, "kindString": "Type alias", @@ -16016,14 +16074,14 @@ { "type": "reflection", "declaration": { - "id": 448, + "id": 449, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 449, + "id": 450, "name": "email", "kind": 1024, "kindString": "Property", @@ -16044,7 +16102,7 @@ } }, { - "id": 451, + "id": 452, "name": "options", "kind": 1024, "kindString": "Property", @@ -16061,14 +16119,14 @@ "type": { "type": "reflection", "declaration": { - "id": 452, + "id": 453, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 454, + "id": 455, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -16091,7 +16149,7 @@ } }, { - "id": 453, + "id": 454, "name": "data", "kind": 1024, "kindString": "Property", @@ -16119,7 +16177,7 @@ { "title": "Properties", "kind": 1024, - "children": [454, 453] + "children": [455, 454] } ], "sources": [ @@ -16133,7 +16191,7 @@ } }, { - "id": 450, + "id": 451, "name": "password", "kind": 1024, "kindString": "Property", @@ -16158,7 +16216,7 @@ { "title": "Properties", "kind": 1024, - "children": [449, 451, 450] + "children": [450, 452, 451] } ], "sources": [ @@ -16173,14 +16231,14 @@ { "type": "reflection", "declaration": { - "id": 455, + "id": 456, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 458, + "id": 459, "name": "options", "kind": 1024, "kindString": "Property", @@ -16197,14 +16255,14 @@ "type": { "type": "reflection", "declaration": { - "id": 459, + "id": 460, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 461, + "id": 462, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -16227,7 +16285,7 @@ } }, { - "id": 460, + "id": 461, "name": "data", "kind": 1024, "kindString": "Property", @@ -16255,7 +16313,7 @@ { "title": "Properties", "kind": 1024, - "children": [461, 460] + "children": [462, 461] } ], "sources": [ @@ -16269,7 +16327,7 @@ } }, { - "id": 457, + "id": 458, "name": "password", "kind": 1024, "kindString": "Property", @@ -16290,7 +16348,7 @@ } }, { - "id": 456, + "id": 457, "name": "phone", "kind": 1024, "kindString": "Property", @@ -16315,7 +16373,7 @@ { "title": "Properties", "kind": 1024, - "children": [458, 457, 456] + "children": [459, 458, 457] } ], "sources": [ @@ -16338,7 +16396,7 @@ "typeArguments": [ { "type": "reference", - "id": 301, + "id": 302, "name": "AuthResponse" } ], @@ -16350,7 +16408,7 @@ ] }, { - "id": 121, + "id": 122, "name": "signInWithSSO", "kind": 2048, "kindString": "Method", @@ -16358,13 +16416,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 458, + "line": 472, "character": 8 } ], "signatures": [ { - "id": 122, + "id": 123, "name": "signInWithSSO", "kind": 4096, "kindString": "Call signature", @@ -16381,17 +16439,17 @@ }, "parameters": [ { - "id": 123, + "id": 124, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 508, + "id": 509, "name": "SignInWithSSO", "dereferenced": { - "id": 508, + "id": 509, "name": "SignInWithSSO", "kind": 4194304, "kindString": "Type alias", @@ -16409,14 +16467,14 @@ { "type": "reflection", "declaration": { - "id": 509, + "id": 510, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 510, + "id": 511, "name": "options", "kind": 1024, "kindString": "Property", @@ -16433,14 +16491,14 @@ "type": { "type": "reflection", "declaration": { - "id": 511, + "id": 512, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 513, + "id": 514, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -16463,7 +16521,7 @@ } }, { - "id": 512, + "id": 513, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -16490,7 +16548,7 @@ { "title": "Properties", "kind": 1024, - "children": [513, 512] + "children": [514, 513] } ], "sources": [ @@ -16508,7 +16566,7 @@ { "title": "Properties", "kind": 1024, - "children": [510] + "children": [511] } ], "sources": [ @@ -16526,14 +16584,14 @@ { "type": "reflection", "declaration": { - "id": 514, + "id": 515, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 515, + "id": 516, "name": "providerId", "kind": 1024, "kindString": "Property", @@ -16558,7 +16616,7 @@ { "title": "Properties", "kind": 1024, - "children": [515] + "children": [516] } ], "sources": [ @@ -16573,14 +16631,14 @@ { "type": "reflection", "declaration": { - "id": 516, + "id": 517, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 517, + "id": 518, "name": "domain", "kind": 1024, "kindString": "Property", @@ -16605,7 +16663,7 @@ { "title": "Properties", "kind": 1024, - "children": [517] + "children": [518] } ], "sources": [ @@ -16630,7 +16688,7 @@ "typeArguments": [ { "type": "reference", - "id": 327, + "id": 328, "name": "SSOResponse" } ], @@ -16642,7 +16700,7 @@ ] }, { - "id": 181, + "id": 182, "name": "signOut", "kind": 2048, "kindString": "Method", @@ -16650,13 +16708,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 809, + "line": 823, "character": 8 } ], "signatures": [ { - "id": 182, + "id": 183, "name": "signOut", "kind": 4096, "kindString": "Call signature", @@ -16671,14 +16729,14 @@ { "type": "reflection", "declaration": { - "id": 183, + "id": 184, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 184, + "id": 185, "name": "error", "kind": 1024, "kindString": "Property", @@ -16686,7 +16744,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 809, + "line": 823, "character": 29 } ], @@ -16699,7 +16757,7 @@ }, { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } ] @@ -16710,7 +16768,7 @@ { "title": "Properties", "kind": 1024, - "children": [184] + "children": [185] } ] } @@ -16724,7 +16782,7 @@ ] }, { - "id": 106, + "id": 107, "name": "signUp", "kind": 2048, "kindString": "Method", @@ -16732,34 +16790,35 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 225, + "line": 229, "character": 8 } ], "signatures": [ { - "id": 107, + "id": 108, "name": "signUp", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { "shortText": "Creates a new user.", + "text": "Be aware that if a user account exists in the system you may get back an\nerror message that attempts to hide this information from the user.\n", "returns": "A logged-in session if the server has \"autoconfirm\" ON" }, "parameters": [ { - "id": 108, + "id": 109, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 431, + "id": 432, "name": "SignUpWithPasswordCredentials", "dereferenced": { - "id": 431, + "id": 432, "name": "SignUpWithPasswordCredentials", "kind": 4194304, "kindString": "Type alias", @@ -16777,14 +16836,14 @@ { "type": "reflection", "declaration": { - "id": 432, + "id": 433, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 433, + "id": 434, "name": "email", "kind": 1024, "kindString": "Property", @@ -16805,7 +16864,7 @@ } }, { - "id": 435, + "id": 436, "name": "options", "kind": 1024, "kindString": "Property", @@ -16822,14 +16881,14 @@ "type": { "type": "reflection", "declaration": { - "id": 436, + "id": 437, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 439, + "id": 440, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -16852,7 +16911,7 @@ } }, { - "id": 438, + "id": 439, "name": "data", "kind": 1024, "kindString": "Property", @@ -16876,7 +16935,7 @@ } }, { - "id": 437, + "id": 438, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -16903,7 +16962,7 @@ { "title": "Properties", "kind": 1024, - "children": [439, 438, 437] + "children": [440, 439, 438] } ], "sources": [ @@ -16917,7 +16976,7 @@ } }, { - "id": 434, + "id": 435, "name": "password", "kind": 1024, "kindString": "Property", @@ -16942,7 +17001,7 @@ { "title": "Properties", "kind": 1024, - "children": [433, 435, 434] + "children": [434, 436, 435] } ], "sources": [ @@ -16957,14 +17016,14 @@ { "type": "reflection", "declaration": { - "id": 440, + "id": 441, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 443, + "id": 444, "name": "options", "kind": 1024, "kindString": "Property", @@ -16981,14 +17040,14 @@ "type": { "type": "reflection", "declaration": { - "id": 444, + "id": 445, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 446, + "id": 447, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -17011,7 +17070,7 @@ } }, { - "id": 445, + "id": 446, "name": "data", "kind": 1024, "kindString": "Property", @@ -17039,7 +17098,7 @@ { "title": "Properties", "kind": 1024, - "children": [446, 445] + "children": [447, 446] } ], "sources": [ @@ -17053,7 +17112,7 @@ } }, { - "id": 442, + "id": 443, "name": "password", "kind": 1024, "kindString": "Property", @@ -17074,7 +17133,7 @@ } }, { - "id": 441, + "id": 442, "name": "phone", "kind": 1024, "kindString": "Property", @@ -17099,7 +17158,7 @@ { "title": "Properties", "kind": 1024, - "children": [443, 442, 441] + "children": [444, 443, 442] } ], "sources": [ @@ -17122,7 +17181,7 @@ "typeArguments": [ { "type": "reference", - "id": 301, + "id": 302, "name": "AuthResponse" } ], @@ -17134,7 +17193,7 @@ ] }, { - "id": 144, + "id": 145, "name": "updateUser", "kind": 2048, "kindString": "Method", @@ -17142,13 +17201,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 579, + "line": 593, "character": 8 } ], "signatures": [ { - "id": 145, + "id": 146, "name": "updateUser", "kind": 4096, "kindString": "Call signature", @@ -17158,24 +17217,24 @@ }, "parameters": [ { - "id": 146, + "id": 147, "name": "attributes", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 406, + "id": 407, "name": "UserAttributes", "dereferenced": { - "id": 406, + "id": 407, "name": "UserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 410, + "id": 411, "name": "data", "kind": 1024, "kindString": "Property", @@ -17199,7 +17258,7 @@ } }, { - "id": 407, + "id": 408, "name": "email", "kind": 1024, "kindString": "Property", @@ -17222,7 +17281,7 @@ } }, { - "id": 409, + "id": 410, "name": "password", "kind": 1024, "kindString": "Property", @@ -17245,7 +17304,7 @@ } }, { - "id": 408, + "id": 409, "name": "phone", "kind": 1024, "kindString": "Property", @@ -17272,7 +17331,7 @@ { "title": "Properties", "kind": 1024, - "children": [410, 407, 409, 408] + "children": [411, 408, 410, 409] } ], "sources": [ @@ -17285,7 +17344,7 @@ "extendedBy": [ { "type": "reference", - "id": 411, + "id": 412, "name": "AdminUserAttributes" } ] @@ -17298,7 +17357,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -17310,7 +17369,7 @@ ] }, { - "id": 118, + "id": 119, "name": "verifyOtp", "kind": 2048, "kindString": "Method", @@ -17318,13 +17377,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 399, + "line": 413, "character": 8 } ], "signatures": [ { - "id": 119, + "id": 120, "name": "verifyOtp", "kind": 4096, "kindString": "Call signature", @@ -17334,17 +17393,17 @@ }, "parameters": [ { - "id": 120, + "id": 121, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 489, + "id": 490, "name": "VerifyOtpParams", "dereferenced": { - "id": 489, + "id": 490, "name": "VerifyOtpParams", "kind": 4194304, "kindString": "Type alias", @@ -17360,14 +17419,14 @@ "type": "union", "types": [ { - "id": 490, + "id": 491, "name": "VerifyMobileOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 494, + "id": 495, "name": "options", "kind": 1024, "kindString": "Property", @@ -17384,14 +17443,14 @@ "type": { "type": "reflection", "declaration": { - "id": 495, + "id": 496, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 497, + "id": 498, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -17420,7 +17479,7 @@ } }, { - "id": 496, + "id": 497, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -17447,14 +17506,14 @@ { "title": "Properties", "kind": 1024, - "children": [497, 496] + "children": [498, 497] } ] } } }, { - "id": 491, + "id": 492, "name": "phone", "kind": 1024, "kindString": "Property", @@ -17475,7 +17534,7 @@ } }, { - "id": 492, + "id": 493, "name": "token", "kind": 1024, "kindString": "Property", @@ -17496,7 +17555,7 @@ } }, { - "id": 493, + "id": 494, "name": "type", "kind": 1024, "kindString": "Property", @@ -17513,10 +17572,10 @@ ], "type": { "type": "reference", - "id": 506, + "id": 507, "name": "MobileOtpType", "dereferenced": { - "id": 506, + "id": 507, "name": "MobileOtpType", "kind": 4194304, "kindString": "Type alias", @@ -17549,7 +17608,7 @@ { "title": "Properties", "kind": 1024, - "children": [494, 491, 492, 493] + "children": [495, 492, 493, 494] } ], "sources": [ @@ -17561,14 +17620,14 @@ ] }, { - "id": 498, + "id": 499, "name": "VerifyEmailOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 499, + "id": 500, "name": "email", "kind": 1024, "kindString": "Property", @@ -17589,7 +17648,7 @@ } }, { - "id": 502, + "id": 503, "name": "options", "kind": 1024, "kindString": "Property", @@ -17606,14 +17665,14 @@ "type": { "type": "reflection", "declaration": { - "id": 503, + "id": 504, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 505, + "id": 506, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -17636,7 +17695,7 @@ } }, { - "id": 504, + "id": 505, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -17663,14 +17722,14 @@ { "title": "Properties", "kind": 1024, - "children": [505, 504] + "children": [506, 505] } ] } } }, { - "id": 500, + "id": 501, "name": "token", "kind": 1024, "kindString": "Property", @@ -17691,7 +17750,7 @@ } }, { - "id": 501, + "id": 502, "name": "type", "kind": 1024, "kindString": "Property", @@ -17708,10 +17767,10 @@ ], "type": { "type": "reference", - "id": 507, + "id": 508, "name": "EmailOtpType", "dereferenced": { - "id": 507, + "id": 508, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -17756,7 +17815,7 @@ { "title": "Properties", "kind": 1024, - "children": [499, 502, 500, 501] + "children": [500, 503, 501, 502] } ], "sources": [ @@ -17778,7 +17837,7 @@ "typeArguments": [ { "type": "reference", - "id": 301, + "id": 302, "name": "AuthResponse" } ], @@ -17794,18 +17853,18 @@ { "title": "Constructors", "kind": 512, - "children": [76] + "children": [77] }, { "title": "Properties", "kind": 1024, - "children": [79, 80] + "children": [80, 81] }, { "title": "Methods", "kind": 2048, "children": [ - 124, 141, 102, 185, 160, 196, 154, 112, 115, 109, 121, 181, 106, 144, 118 + 125, 142, 103, 186, 161, 197, 155, 113, 116, 110, 122, 182, 107, 145, 119 ] } ], @@ -17818,7 +17877,7 @@ ] }, { - "id": 356, + "id": 357, "name": "AMREntry", "kind": 256, "kindString": "Interface", @@ -17835,7 +17894,7 @@ }, "children": [ { - "id": 357, + "id": 358, "name": "method", "kind": 1024, "kindString": "Property", @@ -17856,7 +17915,7 @@ } }, { - "id": 358, + "id": 359, "name": "timestamp", "kind": 1024, "kindString": "Property", @@ -17881,7 +17940,7 @@ { "title": "Properties", "kind": 1024, - "children": [357, 358] + "children": [358, 359] } ], "sources": [ @@ -17893,14 +17952,14 @@ ] }, { - "id": 411, + "id": 412, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 413, + "id": 414, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -17924,7 +17983,7 @@ } }, { - "id": 416, + "id": 417, "name": "ban_duration", "kind": 1024, "kindString": "Property", @@ -17948,7 +18007,7 @@ } }, { - "id": 420, + "id": 421, "name": "data", "kind": 1024, "kindString": "Property", @@ -17972,12 +18031,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 410, + "id": 411, "name": "UserAttributes.data" } }, { - "id": 417, + "id": 418, "name": "email", "kind": 1024, "kindString": "Property", @@ -18000,12 +18059,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 407, + "id": 408, "name": "UserAttributes.email" } }, { - "id": 414, + "id": 415, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -18029,7 +18088,7 @@ } }, { - "id": 419, + "id": 420, "name": "password", "kind": 1024, "kindString": "Property", @@ -18052,12 +18111,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 409, + "id": 410, "name": "UserAttributes.password" } }, { - "id": 418, + "id": 419, "name": "phone", "kind": 1024, "kindString": "Property", @@ -18080,12 +18139,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 408, + "id": 409, "name": "UserAttributes.phone" } }, { - "id": 415, + "id": 416, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -18109,7 +18168,7 @@ } }, { - "id": 412, + "id": 413, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -18137,7 +18196,7 @@ { "title": "Properties", "kind": 1024, - "children": [413, 416, 420, 417, 414, 419, 418, 415, 412] + "children": [414, 417, 421, 418, 415, 420, 419, 416, 413] } ], "sources": [ @@ -18150,13 +18209,13 @@ "extendedTypes": [ { "type": "reference", - "id": 406, + "id": 407, "name": "UserAttributes" } ] }, { - "id": 370, + "id": 371, "name": "Factor", "kind": 256, "kindString": "Interface", @@ -18180,7 +18239,7 @@ }, "children": [ { - "id": 375, + "id": 376, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -18198,7 +18257,7 @@ } }, { - "id": 373, + "id": 374, "name": "factor_type", "kind": 1024, "kindString": "Property", @@ -18219,7 +18278,7 @@ } }, { - "id": 372, + "id": 373, "name": "friendly_name", "kind": 1024, "kindString": "Property", @@ -18242,7 +18301,7 @@ } }, { - "id": 371, + "id": 372, "name": "id", "kind": 1024, "kindString": "Property", @@ -18263,7 +18322,7 @@ } }, { - "id": 374, + "id": 375, "name": "status", "kind": 1024, "kindString": "Property", @@ -18293,7 +18352,7 @@ } }, { - "id": 376, + "id": 377, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -18315,7 +18374,7 @@ { "title": "Properties", "kind": 1024, - "children": [375, 373, 372, 371, 374, 376] + "children": [376, 374, 373, 372, 375, 377] } ], "sources": [ @@ -18327,14 +18386,14 @@ ] }, { - "id": 540, + "id": 541, "name": "GenerateLinkOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 541, + "id": 542, "name": "data", "kind": 1024, "kindString": "Property", @@ -18358,7 +18417,7 @@ } }, { - "id": 542, + "id": 543, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -18385,7 +18444,7 @@ { "title": "Properties", "kind": 1024, - "children": [541, 542] + "children": [542, 543] } ], "sources": [ @@ -18397,7 +18456,7 @@ ] }, { - "id": 699, + "id": 700, "name": "GoTrueAdminMFAApi", "kind": 256, "kindString": "Interface", @@ -18413,14 +18472,14 @@ }, "children": [ { - "id": 703, + "id": 704, "name": "deleteFactor", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 704, + "id": 705, "name": "deleteFactor", "kind": 4096, "kindString": "Call signature", @@ -18440,17 +18499,17 @@ }, "parameters": [ { - "id": 705, + "id": 706, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 683, + "id": 684, "name": "AuthMFAAdminDeleteFactorParams", "dereferenced": { - "id": 683, + "id": 684, "name": "AuthMFAAdminDeleteFactorParams", "kind": 4194304, "kindString": "Type alias", @@ -18466,21 +18525,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 842, + "line": 838, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 684, + "id": 685, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 685, + "id": 686, "name": "id", "kind": 1024, "kindString": "Property", @@ -18491,7 +18550,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 844, + "line": 840, "character": 2 } ], @@ -18501,7 +18560,7 @@ } }, { - "id": 686, + "id": 687, "name": "userId", "kind": 1024, "kindString": "Property", @@ -18512,7 +18571,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 847, + "line": 843, "character": 2 } ], @@ -18526,13 +18585,13 @@ { "title": "Properties", "kind": 1024, - "children": [685, 686] + "children": [686, 687] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 842, + "line": 838, "character": 45 } ] @@ -18547,7 +18606,7 @@ "typeArguments": [ { "type": "reference", - "id": 674, + "id": 675, "name": "AuthMFAAdminDeleteFactorResponse" } ], @@ -18559,14 +18618,14 @@ ] }, { - "id": 700, + "id": 701, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 701, + "id": 702, "name": "listFactors", "kind": 4096, "kindString": "Call signature", @@ -18576,17 +18635,17 @@ }, "parameters": [ { - "id": 702, + "id": 703, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 696, + "id": 697, "name": "AuthMFAAdminListFactorsParams", "dereferenced": { - "id": 696, + "id": 697, "name": "AuthMFAAdminListFactorsParams", "kind": 4194304, "kindString": "Type alias", @@ -18602,21 +18661,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 862, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 697, + "id": 698, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 698, + "id": 699, "name": "userId", "kind": 1024, "kindString": "Property", @@ -18627,7 +18686,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 868, + "line": 864, "character": 2 } ], @@ -18641,13 +18700,13 @@ { "title": "Properties", "kind": 1024, - "children": [698] + "children": [699] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 862, "character": 44 } ] @@ -18662,7 +18721,7 @@ "typeArguments": [ { "type": "reference", - "id": 687, + "id": 688, "name": "AuthMFAAdminListFactorsResponse" } ], @@ -18678,19 +18737,19 @@ { "title": "Methods", "kind": 2048, - "children": [703, 700] + "children": [704, 701] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 876, + "line": 872, "character": 17 } ] }, { - "id": 654, + "id": 655, "name": "GoTrueMFAApi", "kind": 256, "kindString": "Interface", @@ -18700,14 +18759,14 @@ }, "children": [ { - "id": 658, + "id": 659, "name": "challenge", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 659, + "id": 660, "name": "challenge", "kind": 4096, "kindString": "Call signature", @@ -18717,17 +18776,17 @@ }, "parameters": [ { - "id": 660, + "id": 661, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 578, + "id": 579, "name": "MFAChallengeParams", "dereferenced": { - "id": 578, + "id": 579, "name": "MFAChallengeParams", "kind": 4194304, "kindString": "Type alias", @@ -18742,14 +18801,14 @@ "type": { "type": "reflection", "declaration": { - "id": 579, + "id": 580, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 580, + "id": 581, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -18774,7 +18833,7 @@ { "title": "Properties", "kind": 1024, - "children": [580] + "children": [581] } ], "sources": [ @@ -18795,7 +18854,7 @@ "typeArguments": [ { "type": "reference", - "id": 622, + "id": 623, "name": "AuthMFAChallengeResponse" } ], @@ -18807,14 +18866,14 @@ ] }, { - "id": 667, + "id": 668, "name": "challengeAndVerify", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 668, + "id": 669, "name": "challengeAndVerify", "kind": 4096, "kindString": "Call signature", @@ -18824,17 +18883,17 @@ }, "parameters": [ { - "id": 669, + "id": 670, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 581, + "id": 582, "name": "MFAChallengeAndVerifyParams", "dereferenced": { - "id": 581, + "id": 582, "name": "MFAChallengeAndVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -18849,14 +18908,14 @@ "type": { "type": "reflection", "declaration": { - "id": 582, + "id": 583, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 584, + "id": 585, "name": "code", "kind": 1024, "kindString": "Property", @@ -18877,7 +18936,7 @@ } }, { - "id": 583, + "id": 584, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -18902,7 +18961,7 @@ { "title": "Properties", "kind": 1024, - "children": [584, 583] + "children": [585, 584] } ], "sources": [ @@ -18923,7 +18982,7 @@ "typeArguments": [ { "type": "reference", - "id": 585, + "id": 586, "name": "AuthMFAVerifyResponse" } ], @@ -18935,14 +18994,14 @@ ] }, { - "id": 655, + "id": 656, "name": "enroll", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 656, + "id": 657, "name": "enroll", "kind": 4096, "kindString": "Call signature", @@ -18953,17 +19012,17 @@ }, "parameters": [ { - "id": 657, + "id": 658, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 565, + "id": 566, "name": "MFAEnrollParams", "dereferenced": { - "id": 565, + "id": 566, "name": "MFAEnrollParams", "kind": 4194304, "kindString": "Type alias", @@ -18978,14 +19037,14 @@ "type": { "type": "reflection", "declaration": { - "id": 566, + "id": 567, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 567, + "id": 568, "name": "factorType", "kind": 1024, "kindString": "Property", @@ -19006,7 +19065,7 @@ } }, { - "id": 569, + "id": 570, "name": "friendlyName", "kind": 1024, "kindString": "Property", @@ -19029,7 +19088,7 @@ } }, { - "id": 568, + "id": 569, "name": "issuer", "kind": 1024, "kindString": "Property", @@ -19056,7 +19115,7 @@ { "title": "Properties", "kind": 1024, - "children": [567, 569, 568] + "children": [568, 570, 569] } ], "sources": [ @@ -19077,7 +19136,7 @@ "typeArguments": [ { "type": "reference", - "id": 598, + "id": 599, "name": "AuthMFAEnrollResponse" } ], @@ -19089,14 +19148,14 @@ ] }, { - "id": 672, + "id": 673, "name": "getAuthenticatorAssuranceLevel", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 673, + "id": 674, "name": "getAuthenticatorAssuranceLevel", "kind": 4096, "kindString": "Call signature", @@ -19110,7 +19169,7 @@ "typeArguments": [ { "type": "reference", - "id": 643, + "id": 644, "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse" } ], @@ -19122,20 +19181,20 @@ ] }, { - "id": 670, + "id": 671, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 671, + "id": 672, "name": "listFactors", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Returns the list of MFA factors enabled for this user. For most use cases\nyou should consider using {@link\nGoTrueMFAApi#getAuthenticatorAssuranceLevel}. This uses a cached version\nof the factors and avoids incurring a network call. If you need to update\nthis list, call {@link GoTrueClient#getUser} first.", + "shortText": "Returns the list of MFA factors enabled for this user.", "tags": [ { "tag": "see", @@ -19156,7 +19215,7 @@ "typeArguments": [ { "type": "reference", - "id": 632, + "id": 633, "name": "AuthMFAListFactorsResponse" } ], @@ -19168,14 +19227,14 @@ ] }, { - "id": 664, + "id": 665, "name": "unenroll", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 665, + "id": 666, "name": "unenroll", "kind": 4096, "kindString": "Call signature", @@ -19185,17 +19244,17 @@ }, "parameters": [ { - "id": 666, + "id": 667, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 570, + "id": 571, "name": "MFAUnenrollParams", "dereferenced": { - "id": 570, + "id": 571, "name": "MFAUnenrollParams", "kind": 4194304, "kindString": "Type alias", @@ -19210,14 +19269,14 @@ "type": { "type": "reflection", "declaration": { - "id": 571, + "id": 572, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 572, + "id": 573, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -19242,7 +19301,7 @@ { "title": "Properties", "kind": 1024, - "children": [572] + "children": [573] } ], "sources": [ @@ -19263,7 +19322,7 @@ "typeArguments": [ { "type": "reference", - "id": 613, + "id": 614, "name": "AuthMFAUnenrollResponse" } ], @@ -19275,14 +19334,14 @@ ] }, { - "id": 661, + "id": 662, "name": "verify", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 662, + "id": 663, "name": "verify", "kind": 4096, "kindString": "Call signature", @@ -19292,17 +19351,17 @@ }, "parameters": [ { - "id": 663, + "id": 664, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 573, + "id": 574, "name": "MFAVerifyParams", "dereferenced": { - "id": 573, + "id": 574, "name": "MFAVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -19317,14 +19376,14 @@ "type": { "type": "reflection", "declaration": { - "id": 574, + "id": 575, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 576, + "id": 577, "name": "challengeId", "kind": 1024, "kindString": "Property", @@ -19345,7 +19404,7 @@ } }, { - "id": 577, + "id": 578, "name": "code", "kind": 1024, "kindString": "Property", @@ -19366,7 +19425,7 @@ } }, { - "id": 575, + "id": 576, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -19391,7 +19450,7 @@ { "title": "Properties", "kind": 1024, - "children": [576, 577, 575] + "children": [577, 578, 576] } ], "sources": [ @@ -19412,7 +19471,7 @@ "typeArguments": [ { "type": "reference", - "id": 585, + "id": 586, "name": "AuthMFAVerifyResponse" } ], @@ -19428,7 +19487,7 @@ { "title": "Methods", "kind": 2048, - "children": [658, 667, 655, 672, 670, 664, 661] + "children": [659, 668, 656, 673, 671, 665, 662] } ], "sources": [ @@ -19440,14 +19499,14 @@ ] }, { - "id": 347, + "id": 348, "name": "Session", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 350, + "id": 351, "name": "access_token", "kind": 1024, "kindString": "Property", @@ -19468,7 +19527,7 @@ } }, { - "id": 353, + "id": 354, "name": "expires_at", "kind": 1024, "kindString": "Property", @@ -19491,7 +19550,7 @@ } }, { - "id": 352, + "id": 353, "name": "expires_in", "kind": 1024, "kindString": "Property", @@ -19512,7 +19571,7 @@ } }, { - "id": 349, + "id": 350, "name": "provider_refresh_token", "kind": 1024, "kindString": "Property", @@ -19544,7 +19603,7 @@ } }, { - "id": 348, + "id": 349, "name": "provider_token", "kind": 1024, "kindString": "Property", @@ -19576,7 +19635,7 @@ } }, { - "id": 351, + "id": 352, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -19597,7 +19656,7 @@ } }, { - "id": 354, + "id": 355, "name": "token_type", "kind": 1024, "kindString": "Property", @@ -19615,7 +19674,7 @@ } }, { - "id": 355, + "id": 356, "name": "user", "kind": 1024, "kindString": "Property", @@ -19629,17 +19688,17 @@ ], "type": { "type": "reference", - "id": 384, + "id": 385, "name": "User", "dereferenced": { - "id": 384, + "id": 385, "name": "User", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 394, + "id": 395, "name": "action_link", "kind": 1024, "kindString": "Property", @@ -19659,7 +19718,7 @@ } }, { - "id": 386, + "id": 387, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -19673,17 +19732,17 @@ ], "type": { "type": "reference", - "id": 377, + "id": 378, "name": "UserAppMetadata", "dereferenced": { - "id": 377, + "id": 378, "name": "UserAppMetadata", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 378, + "id": 379, "name": "provider", "kind": 1024, "kindString": "Property", @@ -19707,7 +19766,7 @@ { "title": "Properties", "kind": 1024, - "children": [378] + "children": [379] } ], "sources": [ @@ -19718,14 +19777,14 @@ } ], "indexSignature": { - "id": 379, + "id": 380, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 380, + "id": 381, "name": "key", "kind": 32768, "flags": {}, @@ -19744,7 +19803,7 @@ } }, { - "id": 388, + "id": 389, "name": "aud", "kind": 1024, "kindString": "Property", @@ -19762,7 +19821,7 @@ } }, { - "id": 389, + "id": 390, "name": "confirmation_sent_at", "kind": 1024, "kindString": "Property", @@ -19782,7 +19841,7 @@ } }, { - "id": 398, + "id": 399, "name": "confirmed_at", "kind": 1024, "kindString": "Property", @@ -19802,7 +19861,7 @@ } }, { - "id": 397, + "id": 398, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -19820,7 +19879,7 @@ } }, { - "id": 395, + "id": 396, "name": "email", "kind": 1024, "kindString": "Property", @@ -19840,7 +19899,7 @@ } }, { - "id": 391, + "id": 392, "name": "email_change_sent_at", "kind": 1024, "kindString": "Property", @@ -19860,7 +19919,7 @@ } }, { - "id": 399, + "id": 400, "name": "email_confirmed_at", "kind": 1024, "kindString": "Property", @@ -19880,7 +19939,7 @@ } }, { - "id": 405, + "id": 406, "name": "factors", "kind": 1024, "kindString": "Property", @@ -19898,13 +19957,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 370, + "id": 371, "name": "Factor" } } }, { - "id": 385, + "id": 386, "name": "id", "kind": 1024, "kindString": "Property", @@ -19922,7 +19981,7 @@ } }, { - "id": 404, + "id": 405, "name": "identities", "kind": 1024, "kindString": "Property", @@ -19940,13 +19999,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 359, + "id": 360, "name": "UserIdentity" } } }, { - "id": 393, + "id": 394, "name": "invited_at", "kind": 1024, "kindString": "Property", @@ -19966,7 +20025,7 @@ } }, { - "id": 401, + "id": 402, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", @@ -19986,7 +20045,7 @@ } }, { - "id": 392, + "id": 393, "name": "new_email", "kind": 1024, "kindString": "Property", @@ -20006,7 +20065,7 @@ } }, { - "id": 396, + "id": 397, "name": "phone", "kind": 1024, "kindString": "Property", @@ -20026,7 +20085,7 @@ } }, { - "id": 400, + "id": 401, "name": "phone_confirmed_at", "kind": 1024, "kindString": "Property", @@ -20046,7 +20105,7 @@ } }, { - "id": 390, + "id": 391, "name": "recovery_sent_at", "kind": 1024, "kindString": "Property", @@ -20066,7 +20125,7 @@ } }, { - "id": 402, + "id": 403, "name": "role", "kind": 1024, "kindString": "Property", @@ -20086,7 +20145,7 @@ } }, { - "id": 403, + "id": 404, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -20106,7 +20165,7 @@ } }, { - "id": 387, + "id": 388, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -20120,10 +20179,10 @@ ], "type": { "type": "reference", - "id": 381, + "id": 382, "name": "UserMetadata", "dereferenced": { - "id": 381, + "id": 382, "name": "UserMetadata", "kind": 256, "kindString": "Interface", @@ -20136,14 +20195,14 @@ } ], "indexSignature": { - "id": 382, + "id": 383, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 383, + "id": 384, "name": "key", "kind": 32768, "flags": {}, @@ -20167,8 +20226,8 @@ "title": "Properties", "kind": 1024, "children": [ - 394, 386, 388, 389, 398, 397, 395, 391, 399, 405, 385, 404, 393, 401, 392, - 396, 400, 390, 402, 403, 387 + 395, 387, 389, 390, 399, 398, 396, 392, 400, 406, 386, 405, 394, 402, 393, + 397, 401, 391, 403, 404, 388 ] } ], @@ -20187,7 +20246,7 @@ { "title": "Properties", "kind": 1024, - "children": [350, 353, 352, 349, 348, 351, 354, 355] + "children": [351, 354, 353, 350, 349, 352, 355, 356] } ], "sources": [ @@ -20199,14 +20258,14 @@ ] }, { - "id": 421, + "id": 422, "name": "Subscription", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 422, + "id": 423, "name": "id", "kind": 1024, "kindString": "Property", @@ -20227,7 +20286,7 @@ } }, { - "id": 423, + "id": 424, "name": "callback", "kind": 2048, "kindString": "Method", @@ -20241,7 +20300,7 @@ ], "signatures": [ { - "id": 424, + "id": 425, "name": "callback", "kind": 4096, "kindString": "Call signature", @@ -20251,17 +20310,17 @@ }, "parameters": [ { - "id": 425, + "id": 426, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 287, + "id": 288, "name": "AuthChangeEvent", "dereferenced": { - "id": 287, + "id": 288, "name": "AuthChangeEvent", "kind": 4194304, "kindString": "Type alias", @@ -20301,7 +20360,7 @@ "value": "USER_DELETED" }, { - "id": 286, + "id": 287, "name": "AuthChangeEventMFA", "kind": 4194304, "kindString": "Type alias", @@ -20324,7 +20383,7 @@ } }, { - "id": 426, + "id": 427, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -20338,7 +20397,7 @@ }, { "type": "reference", - "id": 347, + "id": 348, "name": "Session" } ] @@ -20353,7 +20412,7 @@ ] }, { - "id": 427, + "id": 428, "name": "unsubscribe", "kind": 2048, "kindString": "Method", @@ -20367,7 +20426,7 @@ ], "signatures": [ { - "id": 428, + "id": 429, "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", @@ -20387,12 +20446,12 @@ { "title": "Properties", "kind": 1024, - "children": [422] + "children": [423] }, { "title": "Methods", "kind": 2048, - "children": [423, 427] + "children": [424, 428] } ], "sources": [ @@ -20404,14 +20463,14 @@ ] }, { - "id": 429, + "id": 430, "name": "UpdatableFactorAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 430, + "id": 431, "name": "friendlyName", "kind": 1024, "kindString": "Property", @@ -20433,7 +20492,7 @@ { "title": "Properties", "kind": 1024, - "children": [430] + "children": [431] } ], "sources": [ @@ -20445,14 +20504,14 @@ ] }, { - "id": 384, + "id": 385, "name": "User", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 394, + "id": 395, "name": "action_link", "kind": 1024, "kindString": "Property", @@ -20472,7 +20531,7 @@ } }, { - "id": 386, + "id": 387, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -20486,17 +20545,17 @@ ], "type": { "type": "reference", - "id": 377, + "id": 378, "name": "UserAppMetadata", "dereferenced": { - "id": 377, + "id": 378, "name": "UserAppMetadata", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 378, + "id": 379, "name": "provider", "kind": 1024, "kindString": "Property", @@ -20520,7 +20579,7 @@ { "title": "Properties", "kind": 1024, - "children": [378] + "children": [379] } ], "sources": [ @@ -20531,14 +20590,14 @@ } ], "indexSignature": { - "id": 379, + "id": 380, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 380, + "id": 381, "name": "key", "kind": 32768, "flags": {}, @@ -20557,7 +20616,7 @@ } }, { - "id": 388, + "id": 389, "name": "aud", "kind": 1024, "kindString": "Property", @@ -20575,7 +20634,7 @@ } }, { - "id": 389, + "id": 390, "name": "confirmation_sent_at", "kind": 1024, "kindString": "Property", @@ -20595,7 +20654,7 @@ } }, { - "id": 398, + "id": 399, "name": "confirmed_at", "kind": 1024, "kindString": "Property", @@ -20615,7 +20674,7 @@ } }, { - "id": 397, + "id": 398, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -20633,7 +20692,7 @@ } }, { - "id": 395, + "id": 396, "name": "email", "kind": 1024, "kindString": "Property", @@ -20653,7 +20712,7 @@ } }, { - "id": 391, + "id": 392, "name": "email_change_sent_at", "kind": 1024, "kindString": "Property", @@ -20673,7 +20732,7 @@ } }, { - "id": 399, + "id": 400, "name": "email_confirmed_at", "kind": 1024, "kindString": "Property", @@ -20693,7 +20752,7 @@ } }, { - "id": 405, + "id": 406, "name": "factors", "kind": 1024, "kindString": "Property", @@ -20711,13 +20770,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 370, + "id": 371, "name": "Factor" } } }, { - "id": 385, + "id": 386, "name": "id", "kind": 1024, "kindString": "Property", @@ -20735,7 +20794,7 @@ } }, { - "id": 404, + "id": 405, "name": "identities", "kind": 1024, "kindString": "Property", @@ -20753,13 +20812,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 359, + "id": 360, "name": "UserIdentity" } } }, { - "id": 393, + "id": 394, "name": "invited_at", "kind": 1024, "kindString": "Property", @@ -20779,7 +20838,7 @@ } }, { - "id": 401, + "id": 402, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", @@ -20799,7 +20858,7 @@ } }, { - "id": 392, + "id": 393, "name": "new_email", "kind": 1024, "kindString": "Property", @@ -20819,7 +20878,7 @@ } }, { - "id": 396, + "id": 397, "name": "phone", "kind": 1024, "kindString": "Property", @@ -20839,7 +20898,7 @@ } }, { - "id": 400, + "id": 401, "name": "phone_confirmed_at", "kind": 1024, "kindString": "Property", @@ -20859,7 +20918,7 @@ } }, { - "id": 390, + "id": 391, "name": "recovery_sent_at", "kind": 1024, "kindString": "Property", @@ -20879,7 +20938,7 @@ } }, { - "id": 402, + "id": 403, "name": "role", "kind": 1024, "kindString": "Property", @@ -20899,7 +20958,7 @@ } }, { - "id": 403, + "id": 404, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -20919,7 +20978,7 @@ } }, { - "id": 387, + "id": 388, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -20933,10 +20992,10 @@ ], "type": { "type": "reference", - "id": 381, + "id": 382, "name": "UserMetadata", "dereferenced": { - "id": 381, + "id": 382, "name": "UserMetadata", "kind": 256, "kindString": "Interface", @@ -20949,14 +21008,14 @@ } ], "indexSignature": { - "id": 382, + "id": 383, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 383, + "id": 384, "name": "key", "kind": 32768, "flags": {}, @@ -20980,8 +21039,8 @@ "title": "Properties", "kind": 1024, "children": [ - 394, 386, 388, 389, 398, 397, 395, 391, 399, 405, 385, 404, 393, 401, 392, 396, 400, - 390, 402, 403, 387 + 395, 387, 389, 390, 399, 398, 396, 392, 400, 406, 386, 405, 394, 402, 393, 397, 401, + 391, 403, 404, 388 ] } ], @@ -20994,14 +21053,14 @@ ] }, { - "id": 377, + "id": 378, "name": "UserAppMetadata", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 378, + "id": 379, "name": "provider", "kind": 1024, "kindString": "Property", @@ -21025,7 +21084,7 @@ { "title": "Properties", "kind": 1024, - "children": [378] + "children": [379] } ], "sources": [ @@ -21036,14 +21095,14 @@ } ], "indexSignature": { - "id": 379, + "id": 380, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 380, + "id": 381, "name": "key", "kind": 32768, "flags": {}, @@ -21060,14 +21119,14 @@ } }, { - "id": 406, + "id": 407, "name": "UserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 410, + "id": 411, "name": "data", "kind": 1024, "kindString": "Property", @@ -21091,7 +21150,7 @@ } }, { - "id": 407, + "id": 408, "name": "email", "kind": 1024, "kindString": "Property", @@ -21114,7 +21173,7 @@ } }, { - "id": 409, + "id": 410, "name": "password", "kind": 1024, "kindString": "Property", @@ -21137,7 +21196,7 @@ } }, { - "id": 408, + "id": 409, "name": "phone", "kind": 1024, "kindString": "Property", @@ -21164,7 +21223,7 @@ { "title": "Properties", "kind": 1024, - "children": [410, 407, 409, 408] + "children": [411, 408, 410, 409] } ], "sources": [ @@ -21177,20 +21236,20 @@ "extendedBy": [ { "type": "reference", - "id": 411, + "id": 412, "name": "AdminUserAttributes" } ] }, { - "id": 359, + "id": 360, "name": "UserIdentity", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 367, + "id": 368, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -21208,7 +21267,7 @@ } }, { - "id": 360, + "id": 361, "name": "id", "kind": 1024, "kindString": "Property", @@ -21226,7 +21285,7 @@ } }, { - "id": 362, + "id": 363, "name": "identity_data", "kind": 1024, "kindString": "Property", @@ -21241,20 +21300,20 @@ "type": { "type": "reflection", "declaration": { - "id": 363, + "id": 364, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 364, + "id": 365, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 365, + "id": 366, "name": "key", "kind": 32768, "flags": {}, @@ -21273,7 +21332,7 @@ } }, { - "id": 368, + "id": 369, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", @@ -21291,7 +21350,7 @@ } }, { - "id": 366, + "id": 367, "name": "provider", "kind": 1024, "kindString": "Property", @@ -21309,7 +21368,7 @@ } }, { - "id": 369, + "id": 370, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -21329,7 +21388,7 @@ } }, { - "id": 361, + "id": 362, "name": "user_id", "kind": 1024, "kindString": "Property", @@ -21351,7 +21410,7 @@ { "title": "Properties", "kind": 1024, - "children": [367, 360, 362, 368, 366, 369, 361] + "children": [368, 361, 363, 369, 367, 370, 362] } ], "sources": [ @@ -21363,7 +21422,7 @@ ] }, { - "id": 381, + "id": 382, "name": "UserMetadata", "kind": 256, "kindString": "Interface", @@ -21376,14 +21435,14 @@ } ], "indexSignature": { - "id": 382, + "id": 383, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 383, + "id": 384, "name": "key", "kind": 32768, "flags": {}, @@ -21400,14 +21459,14 @@ } }, { - "id": 498, + "id": 499, "name": "VerifyEmailOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 499, + "id": 500, "name": "email", "kind": 1024, "kindString": "Property", @@ -21428,7 +21487,7 @@ } }, { - "id": 502, + "id": 503, "name": "options", "kind": 1024, "kindString": "Property", @@ -21445,14 +21504,14 @@ "type": { "type": "reflection", "declaration": { - "id": 503, + "id": 504, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 505, + "id": 506, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -21475,7 +21534,7 @@ } }, { - "id": 504, + "id": 505, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -21502,14 +21561,14 @@ { "title": "Properties", "kind": 1024, - "children": [505, 504] + "children": [506, 505] } ] } } }, { - "id": 500, + "id": 501, "name": "token", "kind": 1024, "kindString": "Property", @@ -21530,7 +21589,7 @@ } }, { - "id": 501, + "id": 502, "name": "type", "kind": 1024, "kindString": "Property", @@ -21547,10 +21606,10 @@ ], "type": { "type": "reference", - "id": 507, + "id": 508, "name": "EmailOtpType", "dereferenced": { - "id": 507, + "id": 508, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -21595,7 +21654,7 @@ { "title": "Properties", "kind": 1024, - "children": [499, 502, 500, 501] + "children": [500, 503, 501, 502] } ], "sources": [ @@ -21607,14 +21666,14 @@ ] }, { - "id": 490, + "id": 491, "name": "VerifyMobileOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 494, + "id": 495, "name": "options", "kind": 1024, "kindString": "Property", @@ -21631,14 +21690,14 @@ "type": { "type": "reflection", "declaration": { - "id": 495, + "id": 496, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 497, + "id": 498, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -21667,7 +21726,7 @@ } }, { - "id": 496, + "id": 497, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -21694,14 +21753,14 @@ { "title": "Properties", "kind": 1024, - "children": [497, 496] + "children": [498, 497] } ] } } }, { - "id": 491, + "id": 492, "name": "phone", "kind": 1024, "kindString": "Property", @@ -21722,7 +21781,7 @@ } }, { - "id": 492, + "id": 493, "name": "token", "kind": 1024, "kindString": "Property", @@ -21743,7 +21802,7 @@ } }, { - "id": 493, + "id": 494, "name": "type", "kind": 1024, "kindString": "Property", @@ -21760,10 +21819,10 @@ ], "type": { "type": "reference", - "id": 506, + "id": 507, "name": "MobileOtpType", "dereferenced": { - "id": 506, + "id": 507, "name": "MobileOtpType", "kind": 4194304, "kindString": "Type alias", @@ -21796,7 +21855,7 @@ { "title": "Properties", "kind": 1024, - "children": [494, 491, 492, 493] + "children": [495, 492, 493, 494] } ], "sources": [ @@ -21808,7 +21867,7 @@ ] }, { - "id": 287, + "id": 288, "name": "AuthChangeEvent", "kind": 4194304, "kindString": "Type alias", @@ -21848,7 +21907,7 @@ "value": "USER_DELETED" }, { - "id": 286, + "id": 287, "name": "AuthChangeEventMFA", "kind": 4194304, "kindString": "Type alias", @@ -21869,7 +21928,7 @@ } }, { - "id": 286, + "id": 287, "name": "AuthChangeEventMFA", "kind": 4194304, "kindString": "Type alias", @@ -21887,7 +21946,7 @@ } }, { - "id": 683, + "id": 684, "name": "AuthMFAAdminDeleteFactorParams", "kind": 4194304, "kindString": "Type alias", @@ -21903,21 +21962,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 842, + "line": 838, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 684, + "id": 685, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 685, + "id": 686, "name": "id", "kind": 1024, "kindString": "Property", @@ -21928,7 +21987,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 844, + "line": 840, "character": 2 } ], @@ -21938,7 +21997,7 @@ } }, { - "id": 686, + "id": 687, "name": "userId", "kind": 1024, "kindString": "Property", @@ -21949,7 +22008,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 847, + "line": 843, "character": 2 } ], @@ -21963,13 +22022,13 @@ { "title": "Properties", "kind": 1024, - "children": [685, 686] + "children": [686, 687] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 842, + "line": 838, "character": 45 } ] @@ -21977,7 +22036,7 @@ } }, { - "id": 674, + "id": 675, "name": "AuthMFAAdminDeleteFactorResponse", "kind": 4194304, "kindString": "Type alias", @@ -21993,7 +22052,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 829, + "line": 825, "character": 12 } ], @@ -22003,14 +22062,14 @@ { "type": "reflection", "declaration": { - "id": 675, + "id": 676, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 676, + "id": 677, "name": "data", "kind": 1024, "kindString": "Property", @@ -22018,21 +22077,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 831, + "line": 827, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 677, + "id": 678, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 678, + "id": 679, "name": "id", "kind": 1024, "kindString": "Property", @@ -22043,7 +22102,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 833, + "line": 829, "character": 8 } ], @@ -22057,13 +22116,13 @@ { "title": "Properties", "kind": 1024, - "children": [678] + "children": [679] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 831, + "line": 827, "character": 12 } ] @@ -22071,7 +22130,7 @@ } }, { - "id": 679, + "id": 680, "name": "error", "kind": 1024, "kindString": "Property", @@ -22079,7 +22138,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 835, + "line": 831, "character": 6 } ], @@ -22093,13 +22152,13 @@ { "title": "Properties", "kind": 1024, - "children": [676, 679] + "children": [677, 680] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 830, + "line": 826, "character": 4 } ] @@ -22108,14 +22167,14 @@ { "type": "reflection", "declaration": { - "id": 680, + "id": 681, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 681, + "id": 682, "name": "data", "kind": 1024, "kindString": "Property", @@ -22123,7 +22182,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 837, + "line": 833, "character": 6 } ], @@ -22133,7 +22192,7 @@ } }, { - "id": 682, + "id": 683, "name": "error", "kind": 1024, "kindString": "Property", @@ -22141,13 +22200,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 837, + "line": 833, "character": 18 } ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -22156,13 +22215,13 @@ { "title": "Properties", "kind": 1024, - "children": [681, 682] + "children": [682, 683] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 837, + "line": 833, "character": 4 } ] @@ -22172,7 +22231,7 @@ } }, { - "id": 696, + "id": 697, "name": "AuthMFAAdminListFactorsParams", "kind": 4194304, "kindString": "Type alias", @@ -22188,21 +22247,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 862, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 697, + "id": 698, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 698, + "id": 699, "name": "userId", "kind": 1024, "kindString": "Property", @@ -22213,7 +22272,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 868, + "line": 864, "character": 2 } ], @@ -22227,13 +22286,13 @@ { "title": "Properties", "kind": 1024, - "children": [698] + "children": [699] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 862, "character": 44 } ] @@ -22241,7 +22300,7 @@ } }, { - "id": 687, + "id": 688, "name": "AuthMFAAdminListFactorsResponse", "kind": 4194304, "kindString": "Type alias", @@ -22257,7 +22316,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 853, + "line": 849, "character": 12 } ], @@ -22267,18 +22326,83 @@ { "type": "reflection", "declaration": { - "id": 688, + "id": 689, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 689, + "id": 690, "name": "data", "kind": 1024, "kindString": "Property", "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 851, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 691, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 692, + "name": "factors", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "All factors attached to the user." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 853, + "character": 8 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 371, + "name": "Factor" + } + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [692] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 851, + "character": 12 + } + ] + } + } + }, + { + "id": 693, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", @@ -22286,71 +22410,6 @@ "character": 6 } ], - "type": { - "type": "reflection", - "declaration": { - "id": 690, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 691, - "name": "factors", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "All factors attached to the user." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 857, - "character": 8 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 370, - "name": "Factor" - } - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [691] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 855, - "character": 12 - } - ] - } - } - }, - { - "id": 692, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 859, - "character": 6 - } - ], "type": { "type": "literal", "value": null @@ -22361,13 +22420,13 @@ { "title": "Properties", "kind": 1024, - "children": [689, 692] + "children": [690, 693] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 854, + "line": 850, "character": 4 } ] @@ -22376,14 +22435,14 @@ { "type": "reflection", "declaration": { - "id": 693, + "id": 694, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 694, + "id": 695, "name": "data", "kind": 1024, "kindString": "Property", @@ -22391,7 +22450,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 861, + "line": 857, "character": 6 } ], @@ -22401,7 +22460,7 @@ } }, { - "id": 695, + "id": 696, "name": "error", "kind": 1024, "kindString": "Property", @@ -22409,13 +22468,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 861, + "line": 857, "character": 18 } ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -22424,13 +22483,13 @@ { "title": "Properties", "kind": 1024, - "children": [694, 695] + "children": [695, 696] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 861, + "line": 857, "character": 4 } ] @@ -22440,7 +22499,7 @@ } }, { - "id": 622, + "id": 623, "name": "AuthMFAChallengeResponse", "kind": 4194304, "kindString": "Type alias", @@ -22458,14 +22517,14 @@ { "type": "reflection", "declaration": { - "id": 623, + "id": 624, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 624, + "id": 625, "name": "data", "kind": 1024, "kindString": "Property", @@ -22480,14 +22539,14 @@ "type": { "type": "reflection", "declaration": { - "id": 625, + "id": 626, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 627, + "id": 628, "name": "expires_at", "kind": 1024, "kindString": "Property", @@ -22508,7 +22567,7 @@ } }, { - "id": 626, + "id": 627, "name": "id", "kind": 1024, "kindString": "Property", @@ -22533,7 +22592,7 @@ { "title": "Properties", "kind": 1024, - "children": [627, 626] + "children": [628, 627] } ], "sources": [ @@ -22547,7 +22606,7 @@ } }, { - "id": 628, + "id": 629, "name": "error", "kind": 1024, "kindString": "Property", @@ -22569,7 +22628,7 @@ { "title": "Properties", "kind": 1024, - "children": [624, 628] + "children": [625, 629] } ], "sources": [ @@ -22584,14 +22643,14 @@ { "type": "reflection", "declaration": { - "id": 629, + "id": 630, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 630, + "id": 631, "name": "data", "kind": 1024, "kindString": "Property", @@ -22609,7 +22668,7 @@ } }, { - "id": 631, + "id": 632, "name": "error", "kind": 1024, "kindString": "Property", @@ -22623,7 +22682,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -22632,7 +22691,7 @@ { "title": "Properties", "kind": 1024, - "children": [630, 631] + "children": [631, 632] } ], "sources": [ @@ -22648,7 +22707,7 @@ } }, { - "id": 598, + "id": 599, "name": "AuthMFAEnrollResponse", "kind": 4194304, "kindString": "Type alias", @@ -22666,14 +22725,14 @@ { "type": "reflection", "declaration": { - "id": 599, + "id": 600, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 600, + "id": 601, "name": "data", "kind": 1024, "kindString": "Property", @@ -22688,14 +22747,14 @@ "type": { "type": "reflection", "declaration": { - "id": 601, + "id": 602, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 602, + "id": 603, "name": "id", "kind": 1024, "kindString": "Property", @@ -22716,7 +22775,7 @@ } }, { - "id": 604, + "id": 605, "name": "totp", "kind": 1024, "kindString": "Property", @@ -22734,14 +22793,14 @@ "type": { "type": "reflection", "declaration": { - "id": 605, + "id": 606, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 606, + "id": 607, "name": "qr_code", "kind": 1024, "kindString": "Property", @@ -22762,7 +22821,7 @@ } }, { - "id": 607, + "id": 608, "name": "secret", "kind": 1024, "kindString": "Property", @@ -22783,7 +22842,7 @@ } }, { - "id": 608, + "id": 609, "name": "uri", "kind": 1024, "kindString": "Property", @@ -22808,7 +22867,7 @@ { "title": "Properties", "kind": 1024, - "children": [606, 607, 608] + "children": [607, 608, 609] } ], "sources": [ @@ -22822,7 +22881,7 @@ } }, { - "id": 603, + "id": 604, "name": "type", "kind": 1024, "kindString": "Property", @@ -22847,7 +22906,7 @@ { "title": "Properties", "kind": 1024, - "children": [602, 604, 603] + "children": [603, 605, 604] } ], "sources": [ @@ -22861,7 +22920,7 @@ } }, { - "id": 609, + "id": 610, "name": "error", "kind": 1024, "kindString": "Property", @@ -22883,7 +22942,7 @@ { "title": "Properties", "kind": 1024, - "children": [600, 609] + "children": [601, 610] } ], "sources": [ @@ -22898,14 +22957,14 @@ { "type": "reflection", "declaration": { - "id": 610, + "id": 611, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 611, + "id": 612, "name": "data", "kind": 1024, "kindString": "Property", @@ -22923,7 +22982,7 @@ } }, { - "id": 612, + "id": 613, "name": "error", "kind": 1024, "kindString": "Property", @@ -22937,7 +22996,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -22946,7 +23005,7 @@ { "title": "Properties", "kind": 1024, - "children": [611, 612] + "children": [612, 613] } ], "sources": [ @@ -22962,7 +23021,7 @@ } }, { - "id": 643, + "id": 644, "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse", "kind": 4194304, "kindString": "Type alias", @@ -22980,14 +23039,14 @@ { "type": "reflection", "declaration": { - "id": 644, + "id": 645, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 645, + "id": 646, "name": "data", "kind": 1024, "kindString": "Property", @@ -23002,14 +23061,14 @@ "type": { "type": "reflection", "declaration": { - "id": 646, + "id": 647, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 649, + "id": 650, "name": "currentAuthenticationMethods", "kind": 1024, "kindString": "Property", @@ -23028,13 +23087,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 356, + "id": 357, "name": "AMREntry" } } }, { - "id": 647, + "id": 648, "name": "currentLevel", "kind": 1024, "kindString": "Property", @@ -23054,7 +23113,7 @@ "types": [ { "type": "reference", - "id": 642, + "id": 643, "name": "AuthenticatorAssuranceLevels" }, { @@ -23065,7 +23124,7 @@ } }, { - "id": 648, + "id": 649, "name": "nextLevel", "kind": 1024, "kindString": "Property", @@ -23091,7 +23150,7 @@ "types": [ { "type": "reference", - "id": 642, + "id": 643, "name": "AuthenticatorAssuranceLevels" }, { @@ -23106,7 +23165,7 @@ { "title": "Properties", "kind": 1024, - "children": [649, 647, 648] + "children": [650, 648, 649] } ], "sources": [ @@ -23120,7 +23179,7 @@ } }, { - "id": 650, + "id": 651, "name": "error", "kind": 1024, "kindString": "Property", @@ -23142,7 +23201,7 @@ { "title": "Properties", "kind": 1024, - "children": [645, 650] + "children": [646, 651] } ], "sources": [ @@ -23157,14 +23216,14 @@ { "type": "reflection", "declaration": { - "id": 651, + "id": 652, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 652, + "id": 653, "name": "data", "kind": 1024, "kindString": "Property", @@ -23182,7 +23241,7 @@ } }, { - "id": 653, + "id": 654, "name": "error", "kind": 1024, "kindString": "Property", @@ -23196,7 +23255,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -23205,7 +23264,7 @@ { "title": "Properties", "kind": 1024, - "children": [652, 653] + "children": [653, 654] } ], "sources": [ @@ -23221,7 +23280,7 @@ } }, { - "id": 632, + "id": 633, "name": "AuthMFAListFactorsResponse", "kind": 4194304, "kindString": "Type alias", @@ -23239,14 +23298,14 @@ { "type": "reflection", "declaration": { - "id": 633, + "id": 634, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 634, + "id": 635, "name": "data", "kind": 1024, "kindString": "Property", @@ -23261,14 +23320,14 @@ "type": { "type": "reflection", "declaration": { - "id": 635, + "id": 636, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 636, + "id": 637, "name": "all", "kind": 1024, "kindString": "Property", @@ -23287,13 +23346,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 370, + "id": 371, "name": "Factor" } } }, { - "id": 637, + "id": 638, "name": "totp", "kind": 1024, "kindString": "Property", @@ -23312,7 +23371,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 370, + "id": 371, "name": "Factor" } } @@ -23322,7 +23381,7 @@ { "title": "Properties", "kind": 1024, - "children": [636, 637] + "children": [637, 638] } ], "sources": [ @@ -23336,7 +23395,7 @@ } }, { - "id": 638, + "id": 639, "name": "error", "kind": 1024, "kindString": "Property", @@ -23358,7 +23417,7 @@ { "title": "Properties", "kind": 1024, - "children": [634, 638] + "children": [635, 639] } ], "sources": [ @@ -23373,14 +23432,14 @@ { "type": "reflection", "declaration": { - "id": 639, + "id": 640, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 640, + "id": 641, "name": "data", "kind": 1024, "kindString": "Property", @@ -23398,7 +23457,7 @@ } }, { - "id": 641, + "id": 642, "name": "error", "kind": 1024, "kindString": "Property", @@ -23412,7 +23471,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -23421,7 +23480,7 @@ { "title": "Properties", "kind": 1024, - "children": [640, 641] + "children": [641, 642] } ], "sources": [ @@ -23437,7 +23496,7 @@ } }, { - "id": 613, + "id": 614, "name": "AuthMFAUnenrollResponse", "kind": 4194304, "kindString": "Type alias", @@ -23455,14 +23514,14 @@ { "type": "reflection", "declaration": { - "id": 614, + "id": 615, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 615, + "id": 616, "name": "data", "kind": 1024, "kindString": "Property", @@ -23477,14 +23536,14 @@ "type": { "type": "reflection", "declaration": { - "id": 616, + "id": 617, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 617, + "id": 618, "name": "id", "kind": 1024, "kindString": "Property", @@ -23509,7 +23568,7 @@ { "title": "Properties", "kind": 1024, - "children": [617] + "children": [618] } ], "sources": [ @@ -23523,7 +23582,7 @@ } }, { - "id": 618, + "id": 619, "name": "error", "kind": 1024, "kindString": "Property", @@ -23545,7 +23604,7 @@ { "title": "Properties", "kind": 1024, - "children": [615, 618] + "children": [616, 619] } ], "sources": [ @@ -23560,14 +23619,14 @@ { "type": "reflection", "declaration": { - "id": 619, + "id": 620, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 620, + "id": 621, "name": "data", "kind": 1024, "kindString": "Property", @@ -23585,7 +23644,7 @@ } }, { - "id": 621, + "id": 622, "name": "error", "kind": 1024, "kindString": "Property", @@ -23599,7 +23658,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -23608,7 +23667,7 @@ { "title": "Properties", "kind": 1024, - "children": [620, 621] + "children": [621, 622] } ], "sources": [ @@ -23624,7 +23683,7 @@ } }, { - "id": 585, + "id": 586, "name": "AuthMFAVerifyResponse", "kind": 4194304, "kindString": "Type alias", @@ -23642,14 +23701,14 @@ { "type": "reflection", "declaration": { - "id": 586, + "id": 587, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 587, + "id": 588, "name": "data", "kind": 1024, "kindString": "Property", @@ -23664,14 +23723,14 @@ "type": { "type": "reflection", "declaration": { - "id": 588, + "id": 589, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 589, + "id": 590, "name": "access_token", "kind": 1024, "kindString": "Property", @@ -23692,7 +23751,7 @@ } }, { - "id": 591, + "id": 592, "name": "expires_in", "kind": 1024, "kindString": "Property", @@ -23713,7 +23772,7 @@ } }, { - "id": 592, + "id": 593, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -23734,7 +23793,7 @@ } }, { - "id": 590, + "id": 591, "name": "token_type", "kind": 1024, "kindString": "Property", @@ -23755,7 +23814,7 @@ } }, { - "id": 593, + "id": 594, "name": "user", "kind": 1024, "kindString": "Property", @@ -23772,7 +23831,7 @@ ], "type": { "type": "reference", - "id": 384, + "id": 385, "name": "User" } } @@ -23781,7 +23840,7 @@ { "title": "Properties", "kind": 1024, - "children": [589, 591, 592, 590, 593] + "children": [590, 592, 593, 591, 594] } ], "sources": [ @@ -23795,7 +23854,7 @@ } }, { - "id": 594, + "id": 595, "name": "error", "kind": 1024, "kindString": "Property", @@ -23817,7 +23876,7 @@ { "title": "Properties", "kind": 1024, - "children": [587, 594] + "children": [588, 595] } ], "sources": [ @@ -23832,14 +23891,14 @@ { "type": "reflection", "declaration": { - "id": 595, + "id": 596, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 596, + "id": 597, "name": "data", "kind": 1024, "kindString": "Property", @@ -23857,7 +23916,7 @@ } }, { - "id": 597, + "id": 598, "name": "error", "kind": 1024, "kindString": "Property", @@ -23871,7 +23930,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -23880,7 +23939,7 @@ { "title": "Properties", "kind": 1024, - "children": [596, 597] + "children": [597, 598] } ], "sources": [ @@ -23896,7 +23955,7 @@ } }, { - "id": 301, + "id": 302, "name": "AuthResponse", "kind": 4194304, "kindString": "Type alias", @@ -23914,14 +23973,14 @@ { "type": "reflection", "declaration": { - "id": 302, + "id": 303, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 303, + "id": 304, "name": "data", "kind": 1024, "kindString": "Property", @@ -23936,14 +23995,14 @@ "type": { "type": "reflection", "declaration": { - "id": 304, + "id": 305, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 306, + "id": 307, "name": "session", "kind": 1024, "kindString": "Property", @@ -23960,7 +24019,7 @@ "types": [ { "type": "reference", - "id": 347, + "id": 348, "name": "Session" }, { @@ -23971,7 +24030,7 @@ } }, { - "id": 305, + "id": 306, "name": "user", "kind": 1024, "kindString": "Property", @@ -23988,7 +24047,7 @@ "types": [ { "type": "reference", - "id": 384, + "id": 385, "name": "User" }, { @@ -24003,7 +24062,7 @@ { "title": "Properties", "kind": 1024, - "children": [306, 305] + "children": [307, 306] } ], "sources": [ @@ -24017,7 +24076,7 @@ } }, { - "id": 307, + "id": 308, "name": "error", "kind": 1024, "kindString": "Property", @@ -24039,7 +24098,7 @@ { "title": "Properties", "kind": 1024, - "children": [303, 307] + "children": [304, 308] } ], "sources": [ @@ -24054,14 +24113,14 @@ { "type": "reflection", "declaration": { - "id": 308, + "id": 309, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 309, + "id": 310, "name": "data", "kind": 1024, "kindString": "Property", @@ -24076,14 +24135,14 @@ "type": { "type": "reflection", "declaration": { - "id": 310, + "id": 311, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 312, + "id": 313, "name": "session", "kind": 1024, "kindString": "Property", @@ -24101,7 +24160,7 @@ } }, { - "id": 311, + "id": 312, "name": "user", "kind": 1024, "kindString": "Property", @@ -24123,7 +24182,7 @@ { "title": "Properties", "kind": 1024, - "children": [312, 311] + "children": [313, 312] } ], "sources": [ @@ -24137,7 +24196,7 @@ } }, { - "id": 313, + "id": 314, "name": "error", "kind": 1024, "kindString": "Property", @@ -24151,7 +24210,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -24160,7 +24219,7 @@ { "title": "Properties", "kind": 1024, - "children": [309, 313] + "children": [310, 314] } ], "sources": [ @@ -24176,7 +24235,7 @@ } }, { - "id": 642, + "id": 643, "name": "AuthenticatorAssuranceLevels", "kind": 4194304, "kindString": "Type alias", @@ -24203,7 +24262,7 @@ } }, { - "id": 710, + "id": 711, "name": "CallRefreshTokenResult", "kind": 4194304, "kindString": "Type alias", @@ -24211,7 +24270,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 907, + "line": 903, "character": 12 } ], @@ -24221,14 +24280,77 @@ { "type": "reflection", "declaration": { - "id": 711, + "id": 712, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ + { + "id": 714, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 906, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + }, { "id": 713, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 905, + "character": 6 + } + ], + "type": { + "type": "reference", + "id": 348, + "name": "Session" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [714, 713] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 904, + "character": 4 + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 715, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 717, "name": "error", "kind": 1024, "kindString": "Property", @@ -24241,12 +24363,13 @@ } ], "type": { - "type": "literal", - "value": null + "type": "reference", + "id": 735, + "name": "AuthError" } }, { - "id": 712, + "id": 716, "name": "session", "kind": 1024, "kindString": "Property", @@ -24259,9 +24382,8 @@ } ], "type": { - "type": "reference", - "id": 347, - "name": "Session" + "type": "literal", + "value": null } } ], @@ -24269,7 +24391,7 @@ { "title": "Properties", "kind": 1024, - "children": [713, 712] + "children": [717, 716] } ], "sources": [ @@ -24280,75 +24402,12 @@ } ] } - }, - { - "type": "reflection", - "declaration": { - "id": 714, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 716, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 914, - "character": 6 - } - ], - "type": { - "type": "reference", - "id": 727, - "name": "AuthError" - } - }, - { - "id": 715, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 913, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [716, 715] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 912, - "character": 4 - } - ] - } } ] } }, { - "id": 507, + "id": 508, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -24387,7 +24446,7 @@ } }, { - "id": 534, + "id": 535, "name": "GenerateEmailChangeLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -24402,14 +24461,14 @@ "type": { "type": "reflection", "declaration": { - "id": 535, + "id": 536, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 537, + "id": 538, "name": "email", "kind": 1024, "kindString": "Property", @@ -24430,7 +24489,7 @@ } }, { - "id": 538, + "id": 539, "name": "newEmail", "kind": 1024, "kindString": "Property", @@ -24451,7 +24510,7 @@ } }, { - "id": 539, + "id": 540, "name": "options", "kind": 1024, "kindString": "Property", @@ -24470,7 +24529,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -24484,7 +24543,7 @@ } }, { - "id": 536, + "id": 537, "name": "type", "kind": 1024, "kindString": "Property", @@ -24515,7 +24574,7 @@ { "title": "Properties", "kind": 1024, - "children": [537, 538, 539, 536] + "children": [538, 539, 540, 537] } ], "sources": [ @@ -24529,7 +24588,7 @@ } }, { - "id": 524, + "id": 525, "name": "GenerateInviteOrMagiclinkParams", "kind": 4194304, "kindString": "Type alias", @@ -24544,14 +24603,14 @@ "type": { "type": "reflection", "declaration": { - "id": 525, + "id": 526, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 527, + "id": 528, "name": "email", "kind": 1024, "kindString": "Property", @@ -24572,7 +24631,7 @@ } }, { - "id": 528, + "id": 529, "name": "options", "kind": 1024, "kindString": "Property", @@ -24591,7 +24650,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -24614,7 +24673,7 @@ } }, { - "id": 526, + "id": 527, "name": "type", "kind": 1024, "kindString": "Property", @@ -24645,7 +24704,7 @@ { "title": "Properties", "kind": 1024, - "children": [527, 528, 526] + "children": [528, 529, 527] } ], "sources": [ @@ -24659,7 +24718,7 @@ } }, { - "id": 543, + "id": 544, "name": "GenerateLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -24675,7 +24734,7 @@ "type": "union", "types": [ { - "id": 518, + "id": 519, "name": "GenerateSignupLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -24690,14 +24749,14 @@ "type": { "type": "reflection", "declaration": { - "id": 519, + "id": 520, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 521, + "id": 522, "name": "email", "kind": 1024, "kindString": "Property", @@ -24715,7 +24774,7 @@ } }, { - "id": 523, + "id": 524, "name": "options", "kind": 1024, "kindString": "Property", @@ -24734,7 +24793,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -24757,7 +24816,7 @@ } }, { - "id": 522, + "id": 523, "name": "password", "kind": 1024, "kindString": "Property", @@ -24775,7 +24834,7 @@ } }, { - "id": 520, + "id": 521, "name": "type", "kind": 1024, "kindString": "Property", @@ -24797,7 +24856,7 @@ { "title": "Properties", "kind": 1024, - "children": [521, 523, 522, 520] + "children": [522, 524, 523, 521] } ], "sources": [ @@ -24811,7 +24870,7 @@ } }, { - "id": 524, + "id": 525, "name": "GenerateInviteOrMagiclinkParams", "kind": 4194304, "kindString": "Type alias", @@ -24826,14 +24885,14 @@ "type": { "type": "reflection", "declaration": { - "id": 525, + "id": 526, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 527, + "id": 528, "name": "email", "kind": 1024, "kindString": "Property", @@ -24854,7 +24913,7 @@ } }, { - "id": 528, + "id": 529, "name": "options", "kind": 1024, "kindString": "Property", @@ -24873,7 +24932,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -24896,7 +24955,7 @@ } }, { - "id": 526, + "id": 527, "name": "type", "kind": 1024, "kindString": "Property", @@ -24927,7 +24986,7 @@ { "title": "Properties", "kind": 1024, - "children": [527, 528, 526] + "children": [528, 529, 527] } ], "sources": [ @@ -24941,7 +25000,7 @@ } }, { - "id": 529, + "id": 530, "name": "GenerateRecoveryLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -24956,14 +25015,14 @@ "type": { "type": "reflection", "declaration": { - "id": 530, + "id": 531, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 532, + "id": 533, "name": "email", "kind": 1024, "kindString": "Property", @@ -24984,7 +25043,7 @@ } }, { - "id": 533, + "id": 534, "name": "options", "kind": 1024, "kindString": "Property", @@ -25003,7 +25062,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -25017,7 +25076,7 @@ } }, { - "id": 531, + "id": 532, "name": "type", "kind": 1024, "kindString": "Property", @@ -25039,7 +25098,7 @@ { "title": "Properties", "kind": 1024, - "children": [532, 533, 531] + "children": [533, 534, 532] } ], "sources": [ @@ -25053,7 +25112,7 @@ } }, { - "id": 534, + "id": 535, "name": "GenerateEmailChangeLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -25068,14 +25127,14 @@ "type": { "type": "reflection", "declaration": { - "id": 535, + "id": 536, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 537, + "id": 538, "name": "email", "kind": 1024, "kindString": "Property", @@ -25096,7 +25155,7 @@ } }, { - "id": 538, + "id": 539, "name": "newEmail", "kind": 1024, "kindString": "Property", @@ -25117,7 +25176,7 @@ } }, { - "id": 539, + "id": 540, "name": "options", "kind": 1024, "kindString": "Property", @@ -25136,7 +25195,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -25150,7 +25209,7 @@ } }, { - "id": 536, + "id": 537, "name": "type", "kind": 1024, "kindString": "Property", @@ -25181,7 +25240,7 @@ { "title": "Properties", "kind": 1024, - "children": [537, 538, 539, 536] + "children": [538, 539, 540, 537] } ], "sources": [ @@ -25198,7 +25257,7 @@ } }, { - "id": 557, + "id": 558, "name": "GenerateLinkProperties", "kind": 4194304, "kindString": "Type alias", @@ -25216,14 +25275,14 @@ "type": { "type": "reflection", "declaration": { - "id": 558, + "id": 559, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 559, + "id": 560, "name": "action_link", "kind": 1024, "kindString": "Property", @@ -25244,7 +25303,7 @@ } }, { - "id": 560, + "id": 561, "name": "email_otp", "kind": 1024, "kindString": "Property", @@ -25265,7 +25324,7 @@ } }, { - "id": 561, + "id": 562, "name": "hashed_token", "kind": 1024, "kindString": "Property", @@ -25286,7 +25345,7 @@ } }, { - "id": 562, + "id": 563, "name": "redirect_to", "kind": 1024, "kindString": "Property", @@ -25307,7 +25366,7 @@ } }, { - "id": 563, + "id": 564, "name": "verification_type", "kind": 1024, "kindString": "Property", @@ -25324,10 +25383,10 @@ ], "type": { "type": "reference", - "id": 564, + "id": 565, "name": "GenerateLinkType", "dereferenced": { - "id": 564, + "id": 565, "name": "GenerateLinkType", "kind": 4194304, "kindString": "Type alias", @@ -25376,7 +25435,7 @@ { "title": "Properties", "kind": 1024, - "children": [559, 560, 561, 562, 563] + "children": [560, 561, 562, 563, 564] } ], "sources": [ @@ -25390,7 +25449,7 @@ } }, { - "id": 544, + "id": 545, "name": "GenerateLinkResponse", "kind": 4194304, "kindString": "Type alias", @@ -25408,14 +25467,14 @@ { "type": "reflection", "declaration": { - "id": 545, + "id": 546, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 546, + "id": 547, "name": "data", "kind": 1024, "kindString": "Property", @@ -25430,14 +25489,14 @@ "type": { "type": "reflection", "declaration": { - "id": 547, + "id": 548, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 548, + "id": 549, "name": "properties", "kind": 1024, "kindString": "Property", @@ -25451,12 +25510,12 @@ ], "type": { "type": "reference", - "id": 557, + "id": 558, "name": "GenerateLinkProperties" } }, { - "id": 549, + "id": 550, "name": "user", "kind": 1024, "kindString": "Property", @@ -25470,7 +25529,7 @@ ], "type": { "type": "reference", - "id": 384, + "id": 385, "name": "User" } } @@ -25479,7 +25538,7 @@ { "title": "Properties", "kind": 1024, - "children": [548, 549] + "children": [549, 550] } ], "sources": [ @@ -25493,7 +25552,7 @@ } }, { - "id": 550, + "id": 551, "name": "error", "kind": 1024, "kindString": "Property", @@ -25515,7 +25574,7 @@ { "title": "Properties", "kind": 1024, - "children": [546, 550] + "children": [547, 551] } ], "sources": [ @@ -25530,14 +25589,14 @@ { "type": "reflection", "declaration": { - "id": 551, + "id": 552, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 552, + "id": 553, "name": "data", "kind": 1024, "kindString": "Property", @@ -25552,14 +25611,14 @@ "type": { "type": "reflection", "declaration": { - "id": 553, + "id": 554, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 554, + "id": 555, "name": "properties", "kind": 1024, "kindString": "Property", @@ -25577,7 +25636,7 @@ } }, { - "id": 555, + "id": 556, "name": "user", "kind": 1024, "kindString": "Property", @@ -25599,7 +25658,7 @@ { "title": "Properties", "kind": 1024, - "children": [554, 555] + "children": [555, 556] } ], "sources": [ @@ -25613,7 +25672,7 @@ } }, { - "id": 556, + "id": 557, "name": "error", "kind": 1024, "kindString": "Property", @@ -25627,7 +25686,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -25636,7 +25695,7 @@ { "title": "Properties", "kind": 1024, - "children": [552, 556] + "children": [553, 557] } ], "sources": [ @@ -25652,7 +25711,7 @@ } }, { - "id": 564, + "id": 565, "name": "GenerateLinkType", "kind": 4194304, "kindString": "Type alias", @@ -25695,7 +25754,7 @@ } }, { - "id": 529, + "id": 530, "name": "GenerateRecoveryLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -25710,14 +25769,14 @@ "type": { "type": "reflection", "declaration": { - "id": 530, + "id": 531, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 532, + "id": 533, "name": "email", "kind": 1024, "kindString": "Property", @@ -25738,7 +25797,7 @@ } }, { - "id": 533, + "id": 534, "name": "options", "kind": 1024, "kindString": "Property", @@ -25757,7 +25816,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -25771,7 +25830,7 @@ } }, { - "id": 531, + "id": 532, "name": "type", "kind": 1024, "kindString": "Property", @@ -25793,7 +25852,7 @@ { "title": "Properties", "kind": 1024, - "children": [532, 533, 531] + "children": [533, 534, 532] } ], "sources": [ @@ -25807,7 +25866,7 @@ } }, { - "id": 518, + "id": 519, "name": "GenerateSignupLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -25822,14 +25881,14 @@ "type": { "type": "reflection", "declaration": { - "id": 519, + "id": 520, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 521, + "id": 522, "name": "email", "kind": 1024, "kindString": "Property", @@ -25847,7 +25906,7 @@ } }, { - "id": 523, + "id": 524, "name": "options", "kind": 1024, "kindString": "Property", @@ -25866,7 +25925,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -25889,7 +25948,7 @@ } }, { - "id": 522, + "id": 523, "name": "password", "kind": 1024, "kindString": "Property", @@ -25907,7 +25966,7 @@ } }, { - "id": 520, + "id": 521, "name": "type", "kind": 1024, "kindString": "Property", @@ -25929,7 +25988,7 @@ { "title": "Properties", "kind": 1024, - "children": [521, 523, 522, 520] + "children": [522, 524, 523, 521] } ], "sources": [ @@ -25943,7 +26002,7 @@ } }, { - "id": 288, + "id": 289, "name": "GoTrueClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -25958,14 +26017,14 @@ "type": { "type": "reflection", "declaration": { - "id": 289, + "id": 290, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 297, + "id": 298, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -25985,7 +26044,7 @@ } }, { - "id": 296, + "id": 297, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -26005,7 +26064,7 @@ } }, { - "id": 300, + "id": 301, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -26025,7 +26084,7 @@ } }, { - "id": 291, + "id": 292, "name": "headers", "kind": 1024, "kindString": "Property", @@ -26042,7 +26101,7 @@ "type": { "type": "reflection", "declaration": { - "id": 292, + "id": 293, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -26055,14 +26114,14 @@ } ], "indexSignature": { - "id": 293, + "id": 294, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 294, + "id": 295, "name": "key", "kind": 32768, "flags": {}, @@ -26081,7 +26140,7 @@ } }, { - "id": 298, + "id": 299, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -26101,7 +26160,7 @@ } }, { - "id": 299, + "id": 300, "name": "storage", "kind": 1024, "kindString": "Property", @@ -26117,10 +26176,10 @@ ], "type": { "type": "reference", - "id": 706, + "id": 707, "name": "SupportedStorage", "dereferenced": { - "id": 706, + "id": 707, "name": "SupportedStorage", "kind": 4194304, "kindString": "Type alias", @@ -26128,7 +26187,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 903, + "line": 899, "character": 12 } ], @@ -26173,7 +26232,7 @@ } }, { - "id": 295, + "id": 296, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -26193,7 +26252,7 @@ } }, { - "id": 290, + "id": 291, "name": "url", "kind": 1024, "kindString": "Property", @@ -26217,7 +26276,7 @@ { "title": "Properties", "kind": 1024, - "children": [297, 296, 300, 291, 298, 299, 295, 290] + "children": [298, 297, 301, 292, 299, 300, 296, 291] } ], "sources": [ @@ -26231,7 +26290,7 @@ } }, { - "id": 707, + "id": 708, "name": "InitializeResult", "kind": 4194304, "kindString": "Type alias", @@ -26239,21 +26298,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 905, + "line": 901, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 708, + "id": 709, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 709, + "id": 710, "name": "error", "kind": 1024, "kindString": "Property", @@ -26261,7 +26320,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 905, + "line": 901, "character": 33 } ], @@ -26270,7 +26329,7 @@ "types": [ { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" }, { @@ -26285,13 +26344,13 @@ { "title": "Properties", "kind": 1024, - "children": [709] + "children": [710] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 905, + "line": 901, "character": 31 } ] @@ -26299,7 +26358,7 @@ } }, { - "id": 581, + "id": 582, "name": "MFAChallengeAndVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -26314,14 +26373,14 @@ "type": { "type": "reflection", "declaration": { - "id": 582, + "id": 583, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 584, + "id": 585, "name": "code", "kind": 1024, "kindString": "Property", @@ -26342,7 +26401,7 @@ } }, { - "id": 583, + "id": 584, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -26367,7 +26426,7 @@ { "title": "Properties", "kind": 1024, - "children": [584, 583] + "children": [585, 584] } ], "sources": [ @@ -26381,7 +26440,7 @@ } }, { - "id": 578, + "id": 579, "name": "MFAChallengeParams", "kind": 4194304, "kindString": "Type alias", @@ -26396,14 +26455,14 @@ "type": { "type": "reflection", "declaration": { - "id": 579, + "id": 580, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 580, + "id": 581, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -26428,7 +26487,7 @@ { "title": "Properties", "kind": 1024, - "children": [580] + "children": [581] } ], "sources": [ @@ -26442,7 +26501,7 @@ } }, { - "id": 565, + "id": 566, "name": "MFAEnrollParams", "kind": 4194304, "kindString": "Type alias", @@ -26457,14 +26516,14 @@ "type": { "type": "reflection", "declaration": { - "id": 566, + "id": 567, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 567, + "id": 568, "name": "factorType", "kind": 1024, "kindString": "Property", @@ -26485,7 +26544,7 @@ } }, { - "id": 569, + "id": 570, "name": "friendlyName", "kind": 1024, "kindString": "Property", @@ -26508,7 +26567,7 @@ } }, { - "id": 568, + "id": 569, "name": "issuer", "kind": 1024, "kindString": "Property", @@ -26535,7 +26594,7 @@ { "title": "Properties", "kind": 1024, - "children": [567, 569, 568] + "children": [568, 570, 569] } ], "sources": [ @@ -26549,7 +26608,7 @@ } }, { - "id": 570, + "id": 571, "name": "MFAUnenrollParams", "kind": 4194304, "kindString": "Type alias", @@ -26564,14 +26623,14 @@ "type": { "type": "reflection", "declaration": { - "id": 571, + "id": 572, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 572, + "id": 573, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -26596,7 +26655,7 @@ { "title": "Properties", "kind": 1024, - "children": [572] + "children": [573] } ], "sources": [ @@ -26610,7 +26669,7 @@ } }, { - "id": 573, + "id": 574, "name": "MFAVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -26625,14 +26684,14 @@ "type": { "type": "reflection", "declaration": { - "id": 574, + "id": 575, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 576, + "id": 577, "name": "challengeId", "kind": 1024, "kindString": "Property", @@ -26653,7 +26712,7 @@ } }, { - "id": 577, + "id": 578, "name": "code", "kind": 1024, "kindString": "Property", @@ -26674,7 +26733,7 @@ } }, { - "id": 575, + "id": 576, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -26699,7 +26758,7 @@ { "title": "Properties", "kind": 1024, - "children": [576, 577, 575] + "children": [577, 578, 576] } ], "sources": [ @@ -26713,7 +26772,7 @@ } }, { - "id": 506, + "id": 507, "name": "MobileOtpType", "kind": 4194304, "kindString": "Type alias", @@ -26740,7 +26799,7 @@ } }, { - "id": 314, + "id": 315, "name": "OAuthResponse", "kind": 4194304, "kindString": "Type alias", @@ -26758,14 +26817,14 @@ { "type": "reflection", "declaration": { - "id": 315, + "id": 316, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 316, + "id": 317, "name": "data", "kind": 1024, "kindString": "Property", @@ -26780,14 +26839,14 @@ "type": { "type": "reflection", "declaration": { - "id": 317, + "id": 318, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 318, + "id": 319, "name": "provider", "kind": 1024, "kindString": "Property", @@ -26801,12 +26860,12 @@ ], "type": { "type": "reference", - "id": 285, + "id": 286, "name": "Provider" } }, { - "id": 319, + "id": 320, "name": "url", "kind": 1024, "kindString": "Property", @@ -26828,7 +26887,7 @@ { "title": "Properties", "kind": 1024, - "children": [318, 319] + "children": [319, 320] } ], "sources": [ @@ -26842,7 +26901,7 @@ } }, { - "id": 320, + "id": 321, "name": "error", "kind": 1024, "kindString": "Property", @@ -26864,7 +26923,7 @@ { "title": "Properties", "kind": 1024, - "children": [316, 320] + "children": [317, 321] } ], "sources": [ @@ -26879,14 +26938,14 @@ { "type": "reflection", "declaration": { - "id": 321, + "id": 322, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 322, + "id": 323, "name": "data", "kind": 1024, "kindString": "Property", @@ -26901,14 +26960,14 @@ "type": { "type": "reflection", "declaration": { - "id": 323, + "id": 324, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 324, + "id": 325, "name": "provider", "kind": 1024, "kindString": "Property", @@ -26922,12 +26981,12 @@ ], "type": { "type": "reference", - "id": 285, + "id": 286, "name": "Provider" } }, { - "id": 325, + "id": 326, "name": "url", "kind": 1024, "kindString": "Property", @@ -26949,7 +27008,7 @@ { "title": "Properties", "kind": 1024, - "children": [324, 325] + "children": [325, 326] } ], "sources": [ @@ -26963,7 +27022,7 @@ } }, { - "id": 326, + "id": 327, "name": "error", "kind": 1024, "kindString": "Property", @@ -26977,7 +27036,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -26986,7 +27045,7 @@ { "title": "Properties", "kind": 1024, - "children": [322, 326] + "children": [323, 327] } ], "sources": [ @@ -27002,7 +27061,7 @@ } }, { - "id": 717, + "id": 725, "name": "PageParams", "kind": 4194304, "kindString": "Type alias", @@ -27010,21 +27069,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 917, + "line": 920, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 718, + "id": 726, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 719, + "id": 727, "name": "page", "kind": 1024, "kindString": "Property", @@ -27037,7 +27096,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 919, + "line": 922, "character": 2 } ], @@ -27047,7 +27106,7 @@ } }, { - "id": 720, + "id": 728, "name": "perPage", "kind": 1024, "kindString": "Property", @@ -27060,7 +27119,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 921, + "line": 924, "character": 2 } ], @@ -27074,13 +27133,13 @@ { "title": "Properties", "kind": 1024, - "children": [719, 720] + "children": [727, 728] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 917, + "line": 920, "character": 25 } ] @@ -27088,7 +27147,133 @@ } }, { - "id": 285, + "id": 718, + "name": "Pagination", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 913, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 719, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 721, + "name": "lastPage", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 916, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 720, + "name": "nextPage", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 915, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 722, + "name": "total", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 917, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [721, 720, 722] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 913, + "character": 25 + } + ], + "indexSignature": { + "id": 723, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 724, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + } + } + }, + { + "id": 286, "name": "Provider", "kind": 4194304, "kindString": "Type alias", @@ -27174,7 +27359,7 @@ } }, { - "id": 327, + "id": 328, "name": "SSOResponse", "kind": 4194304, "kindString": "Type alias", @@ -27192,14 +27377,14 @@ { "type": "reflection", "declaration": { - "id": 328, + "id": 329, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 329, + "id": 330, "name": "data", "kind": 1024, "kindString": "Property", @@ -27214,14 +27399,14 @@ "type": { "type": "reflection", "declaration": { - "id": 330, + "id": 331, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 331, + "id": 332, "name": "url", "kind": 1024, "kindString": "Property", @@ -27246,7 +27431,7 @@ { "title": "Properties", "kind": 1024, - "children": [331] + "children": [332] } ], "sources": [ @@ -27260,7 +27445,7 @@ } }, { - "id": 332, + "id": 333, "name": "error", "kind": 1024, "kindString": "Property", @@ -27282,7 +27467,7 @@ { "title": "Properties", "kind": 1024, - "children": [329, 332] + "children": [330, 333] } ], "sources": [ @@ -27297,14 +27482,14 @@ { "type": "reflection", "declaration": { - "id": 333, + "id": 334, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 334, + "id": 335, "name": "data", "kind": 1024, "kindString": "Property", @@ -27322,7 +27507,7 @@ } }, { - "id": 335, + "id": 336, "name": "error", "kind": 1024, "kindString": "Property", @@ -27336,7 +27521,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -27345,7 +27530,7 @@ { "title": "Properties", "kind": 1024, - "children": [334, 335] + "children": [335, 336] } ], "sources": [ @@ -27361,7 +27546,7 @@ } }, { - "id": 478, + "id": 479, "name": "SignInWithOAuthCredentials", "kind": 4194304, "kindString": "Type alias", @@ -27376,14 +27561,14 @@ "type": { "type": "reflection", "declaration": { - "id": 479, + "id": 480, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 481, + "id": 482, "name": "options", "kind": 1024, "kindString": "Property", @@ -27400,14 +27585,14 @@ "type": { "type": "reflection", "declaration": { - "id": 482, + "id": 483, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 485, + "id": 486, "name": "queryParams", "kind": 1024, "kindString": "Property", @@ -27427,7 +27612,7 @@ "type": { "type": "reflection", "declaration": { - "id": 486, + "id": 487, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -27440,14 +27625,14 @@ } ], "indexSignature": { - "id": 487, + "id": 488, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 488, + "id": 489, "name": "key", "kind": 32768, "flags": {}, @@ -27466,7 +27651,7 @@ } }, { - "id": 483, + "id": 484, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -27489,7 +27674,7 @@ } }, { - "id": 484, + "id": 485, "name": "scopes", "kind": 1024, "kindString": "Property", @@ -27516,7 +27701,7 @@ { "title": "Properties", "kind": 1024, - "children": [485, 483, 484] + "children": [486, 484, 485] } ], "sources": [ @@ -27530,7 +27715,7 @@ } }, { - "id": 480, + "id": 481, "name": "provider", "kind": 1024, "kindString": "Property", @@ -27547,10 +27732,10 @@ ], "type": { "type": "reference", - "id": 285, + "id": 286, "name": "Provider", "dereferenced": { - "id": 285, + "id": 286, "name": "Provider", "kind": 4194304, "kindString": "Type alias", @@ -27642,7 +27827,7 @@ { "title": "Properties", "kind": 1024, - "children": [481, 480] + "children": [482, 481] } ], "sources": [ @@ -27656,7 +27841,7 @@ } }, { - "id": 447, + "id": 448, "name": "SignInWithPasswordCredentials", "kind": 4194304, "kindString": "Type alias", @@ -27674,14 +27859,14 @@ { "type": "reflection", "declaration": { - "id": 448, + "id": 449, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 449, + "id": 450, "name": "email", "kind": 1024, "kindString": "Property", @@ -27702,7 +27887,7 @@ } }, { - "id": 451, + "id": 452, "name": "options", "kind": 1024, "kindString": "Property", @@ -27719,14 +27904,14 @@ "type": { "type": "reflection", "declaration": { - "id": 452, + "id": 453, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 454, + "id": 455, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -27749,7 +27934,7 @@ } }, { - "id": 453, + "id": 454, "name": "data", "kind": 1024, "kindString": "Property", @@ -27777,7 +27962,7 @@ { "title": "Properties", "kind": 1024, - "children": [454, 453] + "children": [455, 454] } ], "sources": [ @@ -27791,7 +27976,7 @@ } }, { - "id": 450, + "id": 451, "name": "password", "kind": 1024, "kindString": "Property", @@ -27816,7 +28001,7 @@ { "title": "Properties", "kind": 1024, - "children": [449, 451, 450] + "children": [450, 452, 451] } ], "sources": [ @@ -27831,14 +28016,14 @@ { "type": "reflection", "declaration": { - "id": 455, + "id": 456, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 458, + "id": 459, "name": "options", "kind": 1024, "kindString": "Property", @@ -27855,14 +28040,14 @@ "type": { "type": "reflection", "declaration": { - "id": 459, + "id": 460, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 461, + "id": 462, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -27885,7 +28070,7 @@ } }, { - "id": 460, + "id": 461, "name": "data", "kind": 1024, "kindString": "Property", @@ -27913,7 +28098,7 @@ { "title": "Properties", "kind": 1024, - "children": [461, 460] + "children": [462, 461] } ], "sources": [ @@ -27927,7 +28112,7 @@ } }, { - "id": 457, + "id": 458, "name": "password", "kind": 1024, "kindString": "Property", @@ -27948,7 +28133,7 @@ } }, { - "id": 456, + "id": 457, "name": "phone", "kind": 1024, "kindString": "Property", @@ -27973,7 +28158,7 @@ { "title": "Properties", "kind": 1024, - "children": [458, 457, 456] + "children": [459, 458, 457] } ], "sources": [ @@ -27989,7 +28174,7 @@ } }, { - "id": 462, + "id": 463, "name": "SignInWithPasswordlessCredentials", "kind": 4194304, "kindString": "Type alias", @@ -28007,14 +28192,14 @@ { "type": "reflection", "declaration": { - "id": 463, + "id": 464, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 464, + "id": 465, "name": "email", "kind": 1024, "kindString": "Property", @@ -28035,7 +28220,7 @@ } }, { - "id": 465, + "id": 466, "name": "options", "kind": 1024, "kindString": "Property", @@ -28052,14 +28237,14 @@ "type": { "type": "reflection", "declaration": { - "id": 466, + "id": 467, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 470, + "id": 471, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -28082,7 +28267,7 @@ } }, { - "id": 469, + "id": 470, "name": "data", "kind": 1024, "kindString": "Property", @@ -28106,7 +28291,7 @@ } }, { - "id": 467, + "id": 468, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -28129,7 +28314,7 @@ } }, { - "id": 468, + "id": 469, "name": "shouldCreateUser", "kind": 1024, "kindString": "Property", @@ -28156,7 +28341,7 @@ { "title": "Properties", "kind": 1024, - "children": [470, 469, 467, 468] + "children": [471, 470, 468, 469] } ], "sources": [ @@ -28174,7 +28359,7 @@ { "title": "Properties", "kind": 1024, - "children": [464, 465] + "children": [465, 466] } ], "sources": [ @@ -28189,14 +28374,14 @@ { "type": "reflection", "declaration": { - "id": 471, + "id": 472, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 473, + "id": 474, "name": "options", "kind": 1024, "kindString": "Property", @@ -28213,14 +28398,14 @@ "type": { "type": "reflection", "declaration": { - "id": 474, + "id": 475, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 477, + "id": 478, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -28243,7 +28428,7 @@ } }, { - "id": 476, + "id": 477, "name": "data", "kind": 1024, "kindString": "Property", @@ -28267,7 +28452,7 @@ } }, { - "id": 475, + "id": 476, "name": "shouldCreateUser", "kind": 1024, "kindString": "Property", @@ -28294,7 +28479,7 @@ { "title": "Properties", "kind": 1024, - "children": [477, 476, 475] + "children": [478, 477, 476] } ], "sources": [ @@ -28308,7 +28493,7 @@ } }, { - "id": 472, + "id": 473, "name": "phone", "kind": 1024, "kindString": "Property", @@ -28333,7 +28518,7 @@ { "title": "Properties", "kind": 1024, - "children": [473, 472] + "children": [474, 473] } ], "sources": [ @@ -28349,7 +28534,7 @@ } }, { - "id": 508, + "id": 509, "name": "SignInWithSSO", "kind": 4194304, "kindString": "Type alias", @@ -28367,14 +28552,14 @@ { "type": "reflection", "declaration": { - "id": 509, + "id": 510, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 510, + "id": 511, "name": "options", "kind": 1024, "kindString": "Property", @@ -28391,14 +28576,14 @@ "type": { "type": "reflection", "declaration": { - "id": 511, + "id": 512, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 513, + "id": 514, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -28421,7 +28606,7 @@ } }, { - "id": 512, + "id": 513, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -28448,7 +28633,7 @@ { "title": "Properties", "kind": 1024, - "children": [513, 512] + "children": [514, 513] } ], "sources": [ @@ -28466,7 +28651,7 @@ { "title": "Properties", "kind": 1024, - "children": [510] + "children": [511] } ], "sources": [ @@ -28484,14 +28669,14 @@ { "type": "reflection", "declaration": { - "id": 514, + "id": 515, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 515, + "id": 516, "name": "providerId", "kind": 1024, "kindString": "Property", @@ -28516,7 +28701,7 @@ { "title": "Properties", "kind": 1024, - "children": [515] + "children": [516] } ], "sources": [ @@ -28531,14 +28716,14 @@ { "type": "reflection", "declaration": { - "id": 516, + "id": 517, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 517, + "id": 518, "name": "domain", "kind": 1024, "kindString": "Property", @@ -28563,7 +28748,7 @@ { "title": "Properties", "kind": 1024, - "children": [517] + "children": [518] } ], "sources": [ @@ -28581,7 +28766,7 @@ } }, { - "id": 431, + "id": 432, "name": "SignUpWithPasswordCredentials", "kind": 4194304, "kindString": "Type alias", @@ -28599,14 +28784,14 @@ { "type": "reflection", "declaration": { - "id": 432, + "id": 433, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 433, + "id": 434, "name": "email", "kind": 1024, "kindString": "Property", @@ -28627,7 +28812,7 @@ } }, { - "id": 435, + "id": 436, "name": "options", "kind": 1024, "kindString": "Property", @@ -28644,14 +28829,14 @@ "type": { "type": "reflection", "declaration": { - "id": 436, + "id": 437, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 439, + "id": 440, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -28674,7 +28859,7 @@ } }, { - "id": 438, + "id": 439, "name": "data", "kind": 1024, "kindString": "Property", @@ -28698,7 +28883,7 @@ } }, { - "id": 437, + "id": 438, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -28725,7 +28910,7 @@ { "title": "Properties", "kind": 1024, - "children": [439, 438, 437] + "children": [440, 439, 438] } ], "sources": [ @@ -28739,7 +28924,7 @@ } }, { - "id": 434, + "id": 435, "name": "password", "kind": 1024, "kindString": "Property", @@ -28764,7 +28949,7 @@ { "title": "Properties", "kind": 1024, - "children": [433, 435, 434] + "children": [434, 436, 435] } ], "sources": [ @@ -28779,14 +28964,14 @@ { "type": "reflection", "declaration": { - "id": 440, + "id": 441, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 443, + "id": 444, "name": "options", "kind": 1024, "kindString": "Property", @@ -28803,14 +28988,14 @@ "type": { "type": "reflection", "declaration": { - "id": 444, + "id": 445, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 446, + "id": 447, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -28833,7 +29018,7 @@ } }, { - "id": 445, + "id": 446, "name": "data", "kind": 1024, "kindString": "Property", @@ -28861,7 +29046,7 @@ { "title": "Properties", "kind": 1024, - "children": [446, 445] + "children": [447, 446] } ], "sources": [ @@ -28875,7 +29060,7 @@ } }, { - "id": 442, + "id": 443, "name": "password", "kind": 1024, "kindString": "Property", @@ -28896,7 +29081,7 @@ } }, { - "id": 441, + "id": 442, "name": "phone", "kind": 1024, "kindString": "Property", @@ -28921,7 +29106,7 @@ { "title": "Properties", "kind": 1024, - "children": [443, 442, 441] + "children": [444, 443, 442] } ], "sources": [ @@ -28937,7 +29122,7 @@ } }, { - "id": 706, + "id": 707, "name": "SupportedStorage", "kind": 4194304, "kindString": "Type alias", @@ -28945,7 +29130,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 903, + "line": 899, "character": 12 } ], @@ -28988,7 +29173,7 @@ } }, { - "id": 336, + "id": 337, "name": "UserResponse", "kind": 4194304, "kindString": "Type alias", @@ -29006,14 +29191,14 @@ { "type": "reflection", "declaration": { - "id": 337, + "id": 338, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 338, + "id": 339, "name": "data", "kind": 1024, "kindString": "Property", @@ -29028,14 +29213,14 @@ "type": { "type": "reflection", "declaration": { - "id": 339, + "id": 340, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 340, + "id": 341, "name": "user", "kind": 1024, "kindString": "Property", @@ -29049,7 +29234,7 @@ ], "type": { "type": "reference", - "id": 384, + "id": 385, "name": "User" } } @@ -29058,7 +29243,7 @@ { "title": "Properties", "kind": 1024, - "children": [340] + "children": [341] } ], "sources": [ @@ -29072,7 +29257,7 @@ } }, { - "id": 341, + "id": 342, "name": "error", "kind": 1024, "kindString": "Property", @@ -29094,7 +29279,7 @@ { "title": "Properties", "kind": 1024, - "children": [338, 341] + "children": [339, 342] } ], "sources": [ @@ -29109,14 +29294,14 @@ { "type": "reflection", "declaration": { - "id": 342, + "id": 343, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 343, + "id": 344, "name": "data", "kind": 1024, "kindString": "Property", @@ -29131,14 +29316,14 @@ "type": { "type": "reflection", "declaration": { - "id": 344, + "id": 345, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 345, + "id": 346, "name": "user", "kind": 1024, "kindString": "Property", @@ -29160,7 +29345,7 @@ { "title": "Properties", "kind": 1024, - "children": [345] + "children": [346] } ], "sources": [ @@ -29174,7 +29359,7 @@ } }, { - "id": 346, + "id": 347, "name": "error", "kind": 1024, "kindString": "Property", @@ -29188,7 +29373,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -29197,7 +29382,7 @@ { "title": "Properties", "kind": 1024, - "children": [343, 346] + "children": [344, 347] } ], "sources": [ @@ -29213,7 +29398,7 @@ } }, { - "id": 489, + "id": 490, "name": "VerifyOtpParams", "kind": 4194304, "kindString": "Type alias", @@ -29229,14 +29414,14 @@ "type": "union", "types": [ { - "id": 490, + "id": 491, "name": "VerifyMobileOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 494, + "id": 495, "name": "options", "kind": 1024, "kindString": "Property", @@ -29253,14 +29438,14 @@ "type": { "type": "reflection", "declaration": { - "id": 495, + "id": 496, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 497, + "id": 498, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -29289,7 +29474,7 @@ } }, { - "id": 496, + "id": 497, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -29316,14 +29501,14 @@ { "title": "Properties", "kind": 1024, - "children": [497, 496] + "children": [498, 497] } ] } } }, { - "id": 491, + "id": 492, "name": "phone", "kind": 1024, "kindString": "Property", @@ -29344,7 +29529,7 @@ } }, { - "id": 492, + "id": 493, "name": "token", "kind": 1024, "kindString": "Property", @@ -29365,7 +29550,7 @@ } }, { - "id": 493, + "id": 494, "name": "type", "kind": 1024, "kindString": "Property", @@ -29382,10 +29567,10 @@ ], "type": { "type": "reference", - "id": 506, + "id": 507, "name": "MobileOtpType", "dereferenced": { - "id": 506, + "id": 507, "name": "MobileOtpType", "kind": 4194304, "kindString": "Type alias", @@ -29418,7 +29603,7 @@ { "title": "Properties", "kind": 1024, - "children": [494, 491, 492, 493] + "children": [495, 492, 493, 494] } ], "sources": [ @@ -29430,14 +29615,14 @@ ] }, { - "id": 498, + "id": 499, "name": "VerifyEmailOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 499, + "id": 500, "name": "email", "kind": 1024, "kindString": "Property", @@ -29458,7 +29643,7 @@ } }, { - "id": 502, + "id": 503, "name": "options", "kind": 1024, "kindString": "Property", @@ -29475,14 +29660,14 @@ "type": { "type": "reflection", "declaration": { - "id": 503, + "id": 504, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 505, + "id": 506, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -29505,7 +29690,7 @@ } }, { - "id": 504, + "id": 505, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -29532,14 +29717,14 @@ { "title": "Properties", "kind": 1024, - "children": [505, 504] + "children": [506, 505] } ] } } }, { - "id": 500, + "id": 501, "name": "token", "kind": 1024, "kindString": "Property", @@ -29560,7 +29745,7 @@ } }, { - "id": 501, + "id": 502, "name": "type", "kind": 1024, "kindString": "Property", @@ -29577,10 +29762,10 @@ ], "type": { "type": "reference", - "id": 507, + "id": 508, "name": "EmailOtpType", "dereferenced": { - "id": 507, + "id": 508, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -29625,7 +29810,7 @@ { "title": "Properties", "kind": 1024, - "children": [499, 502, 500, 501] + "children": [500, 503, 501, 502] } ], "sources": [ @@ -29640,7 +29825,7 @@ } }, { - "id": 724, + "id": 732, "name": "isAuthApiError", "kind": 64, "kindString": "Function", @@ -29654,14 +29839,14 @@ ], "signatures": [ { - "id": 725, + "id": 733, "name": "isAuthApiError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 726, + "id": 734, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -29678,7 +29863,7 @@ "asserts": false, "targetType": { "type": "reference", - "id": 732, + "id": 740, "name": "AuthApiError" } } @@ -29686,7 +29871,7 @@ ] }, { - "id": 721, + "id": 729, "name": "isAuthError", "kind": 64, "kindString": "Function", @@ -29700,14 +29885,14 @@ ], "signatures": [ { - "id": 722, + "id": 730, "name": "isAuthError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 723, + "id": 731, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -29724,7 +29909,7 @@ "asserts": false, "targetType": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -29736,28 +29921,28 @@ { "title": "Classes", "kind": 128, - "children": [732, 727, 792, 779, 817, 767, 745, 752, 1, 75] + "children": [740, 735, 800, 787, 825, 775, 753, 760, 1, 76] }, { "title": "Interfaces", "kind": 256, "children": [ - 356, 411, 370, 540, 699, 654, 347, 421, 429, 384, 377, 406, 359, 381, 498, 490 + 357, 412, 371, 541, 700, 655, 348, 422, 430, 385, 378, 407, 360, 382, 499, 491 ] }, { "title": "Type Aliases", "kind": 4194304, "children": [ - 287, 286, 683, 674, 696, 687, 622, 598, 643, 632, 613, 585, 301, 642, 710, 507, 534, - 524, 543, 557, 544, 564, 529, 518, 288, 707, 581, 578, 565, 570, 573, 506, 314, 717, - 285, 327, 478, 447, 462, 508, 431, 706, 336, 489 + 288, 287, 684, 675, 697, 688, 623, 599, 644, 633, 614, 586, 302, 643, 711, 508, 535, + 525, 544, 558, 545, 565, 530, 519, 289, 708, 582, 579, 566, 571, 574, 507, 315, 725, + 718, 286, 328, 479, 448, 463, 509, 432, 707, 337, 490 ] }, { "title": "Functions", "kind": 64, - "children": [724, 721] + "children": [732, 729] } ], "sources": [ @@ -45126,7 +45311,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 218, + "line": 228, "character": 2 } ], @@ -45440,7 +45625,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 198, + "line": 208, "character": 2 } ], @@ -45534,7 +45719,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 162, + "line": 165, "character": 2 } ], @@ -45545,6 +45730,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Returns all created channels" + }, "type": { "type": "array", "elementType": { @@ -45565,7 +45753,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 214, + "line": 224, "character": 2 } ], @@ -45595,7 +45783,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 191, + "line": 201, "character": 2 } ], @@ -45663,7 +45851,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 236, + "line": 246, "character": 2 } ], @@ -45849,7 +46037,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 177, + "line": 187, "character": 2 } ], @@ -45860,6 +46048,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes all channels" + }, "type": { "type": "reference", "typeArguments": [ @@ -45888,7 +46079,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 166, + "line": 173, "character": 2 } ], @@ -45899,6 +46090,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes a single channel" + }, "parameters": [ { "id": 354, @@ -45906,6 +46100,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "A RealtimeChannel instance\n" + }, "type": { "type": "reference", "id": 55, @@ -45975,7 +46172,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 263, + "line": 273, "character": 2 } ], @@ -48029,7 +48226,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 218, + "line": 228, "character": 2 } ], @@ -48343,7 +48540,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 198, + "line": 208, "character": 2 } ], @@ -48437,7 +48634,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 162, + "line": 165, "character": 2 } ], @@ -48448,6 +48645,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Returns all created channels" + }, "type": { "type": "array", "elementType": { @@ -48468,7 +48668,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 214, + "line": 224, "character": 2 } ], @@ -48498,7 +48698,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 191, + "line": 201, "character": 2 } ], @@ -48566,7 +48766,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 236, + "line": 246, "character": 2 } ], @@ -48752,7 +48952,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 177, + "line": 187, "character": 2 } ], @@ -48763,6 +48963,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes all channels" + }, "type": { "type": "reference", "typeArguments": [ @@ -48791,7 +48994,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 166, + "line": 173, "character": 2 } ], @@ -48802,6 +49005,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes a single channel" + }, "parameters": [ { "id": 354, @@ -48809,6 +49015,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "A RealtimeChannel instance\n" + }, "type": { "type": "reference", "id": 55, @@ -48876,7 +49085,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 263, + "line": 273, "character": 2 } ], @@ -49012,7 +49221,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 315, + "line": 327, "character": 2 } ], @@ -49024,7 +49233,7 @@ "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Listen to messages." + "shortText": "Creates an event handler that listens to changes" }, "parameters": [ { @@ -49033,6 +49242,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Realtime feature (broadcast, presence, or postgres_changes)" + }, "type": { "type": "literal", "value": "broadcast" @@ -49044,6 +49256,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Pre-defined and custom values specific to the Realtime feature" + }, "type": { "type": "reflection", "declaration": { @@ -49059,10 +49274,13 @@ "kind": 1024, "kindString": "Property", "flags": {}, + "comment": { + "shortText": "Event to listen to. If listening to postgres_changes type\nthen this value is one of INSERT, UPDATE, DELETE, *" + }, "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 317, + "line": 329, "character": 14 } ], @@ -49088,6 +49306,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Function to be invoked when event handler is triggered\n" + }, "type": { "type": "reflection", "declaration": { @@ -49128,7 +49349,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 320, + "line": 332, "character": 6 } ], @@ -49146,7 +49367,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 319, + "line": 331, "character": 6 } ], @@ -49248,7 +49469,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 326, + "line": 338, "character": 14 } ], @@ -49347,7 +49568,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 331, + "line": 343, "character": 14 } ], @@ -49460,7 +49681,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 336, + "line": 348, "character": 14 } ], @@ -50638,7 +50859,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 367, + "line": 379, "character": 2 } ], @@ -50674,7 +50895,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 368, + "line": 380, "character": 15 } ], @@ -51025,7 +51246,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 407, + "line": 419, "character": 2 } ], @@ -51170,7 +51391,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 394, + "line": 406, "character": 2 } ], @@ -52275,7 +52496,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 218, + "line": 228, "character": 2 } ], @@ -52589,7 +52810,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 198, + "line": 208, "character": 2 } ], @@ -52683,7 +52904,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 162, + "line": 165, "character": 2 } ], @@ -52694,6 +52915,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Returns all created channels" + }, "type": { "type": "array", "elementType": { @@ -52714,7 +52938,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 214, + "line": 224, "character": 2 } ], @@ -52744,7 +52968,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 191, + "line": 201, "character": 2 } ], @@ -52812,7 +53036,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 236, + "line": 246, "character": 2 } ], @@ -52998,7 +53222,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 177, + "line": 187, "character": 2 } ], @@ -53009,6 +53233,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes all channels" + }, "type": { "type": "reference", "typeArguments": [ @@ -53037,7 +53264,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 166, + "line": 173, "character": 2 } ], @@ -53048,6 +53275,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes a single channel" + }, "parameters": [ { "id": 354, @@ -53055,6 +53285,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "A RealtimeChannel instance\n" + }, "type": { "type": "reference", "id": 55, @@ -54383,7 +54616,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 315, + "line": 327, "character": 2 } ], @@ -54395,7 +54628,7 @@ "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Listen to messages." + "shortText": "Creates an event handler that listens to changes" }, "parameters": [ { @@ -54404,6 +54637,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Realtime feature (broadcast, presence, or postgres_changes)" + }, "type": { "type": "literal", "value": "broadcast" @@ -54415,6 +54651,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Pre-defined and custom values specific to the Realtime feature" + }, "type": { "type": "reflection", "declaration": { @@ -54430,10 +54669,13 @@ "kind": 1024, "kindString": "Property", "flags": {}, + "comment": { + "shortText": "Event to listen to. If listening to postgres_changes type\nthen this value is one of INSERT, UPDATE, DELETE, *" + }, "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 317, + "line": 329, "character": 14 } ], @@ -54459,6 +54701,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Function to be invoked when event handler is triggered\n" + }, "type": { "type": "reflection", "declaration": { @@ -54499,7 +54744,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 320, + "line": 332, "character": 6 } ], @@ -54517,7 +54762,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 319, + "line": 331, "character": 6 } ], @@ -54619,7 +54864,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 326, + "line": 338, "character": 14 } ], @@ -54718,7 +54963,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 331, + "line": 343, "character": 14 } ], @@ -54831,7 +55076,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 336, + "line": 348, "character": 14 } ], @@ -56009,7 +56254,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 367, + "line": 379, "character": 2 } ], @@ -56045,7 +56290,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 368, + "line": 380, "character": 15 } ], @@ -56396,7 +56641,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 407, + "line": 419, "character": 2 } ], @@ -56541,7 +56786,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 394, + "line": 406, "character": 2 } ], @@ -56655,7 +56900,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 263, + "line": 273, "character": 2 } ], @@ -58091,7 +58336,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 218, + "line": 228, "character": 2 } ], @@ -58407,7 +58652,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 198, + "line": 208, "character": 2 } ], @@ -58501,7 +58746,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 162, + "line": 165, "character": 2 } ], @@ -58512,6 +58757,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Returns all created channels" + }, "type": { "type": "array", "elementType": { @@ -58532,7 +58780,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 214, + "line": 224, "character": 2 } ], @@ -58562,7 +58810,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 191, + "line": 201, "character": 2 } ], @@ -58630,7 +58878,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 236, + "line": 246, "character": 2 } ], @@ -58818,7 +59066,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 177, + "line": 187, "character": 2 } ], @@ -58829,6 +59077,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes all channels" + }, "type": { "type": "reference", "typeArguments": [ @@ -58857,7 +59108,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 166, + "line": 173, "character": 2 } ], @@ -58868,6 +59119,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes a single channel" + }, "parameters": [ { "id": 354, @@ -58875,6 +59129,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "A RealtimeChannel instance\n" + }, "type": { "type": "reference", "id": 55, @@ -58908,7 +59165,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 263, + "line": 273, "character": 2 } ], @@ -60585,7 +60842,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 218, + "line": 228, "character": 2 } ], @@ -60899,7 +61156,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 198, + "line": 208, "character": 2 } ], @@ -60993,7 +61250,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 162, + "line": 165, "character": 2 } ], @@ -61004,6 +61261,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Returns all created channels" + }, "type": { "type": "array", "elementType": { @@ -61024,7 +61284,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 214, + "line": 224, "character": 2 } ], @@ -61054,7 +61314,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 191, + "line": 201, "character": 2 } ], @@ -61122,7 +61382,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 236, + "line": 246, "character": 2 } ], @@ -61308,7 +61568,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 177, + "line": 187, "character": 2 } ], @@ -61319,6 +61579,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes all channels" + }, "type": { "type": "reference", "typeArguments": [ @@ -61347,7 +61610,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 166, + "line": 173, "character": 2 } ], @@ -61358,6 +61621,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes a single channel" + }, "parameters": [ { "id": 354, @@ -61365,6 +61631,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "A RealtimeChannel instance\n" + }, "type": { "type": "reference", "id": 55, @@ -61398,7 +61667,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 263, + "line": 273, "character": 2 } ], @@ -61536,7 +61805,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 315, + "line": 327, "character": 2 } ], @@ -61548,7 +61817,7 @@ "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Listen to messages." + "shortText": "Creates an event handler that listens to changes" }, "parameters": [ { @@ -61557,6 +61826,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Realtime feature (broadcast, presence, or postgres_changes)" + }, "type": { "type": "literal", "value": "broadcast" @@ -61568,6 +61840,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Pre-defined and custom values specific to the Realtime feature" + }, "type": { "type": "reflection", "declaration": { @@ -61583,10 +61858,13 @@ "kind": 1024, "kindString": "Property", "flags": {}, + "comment": { + "shortText": "Event to listen to. If listening to postgres_changes type\nthen this value is one of INSERT, UPDATE, DELETE, *" + }, "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 317, + "line": 329, "character": 14 } ], @@ -61612,6 +61890,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Function to be invoked when event handler is triggered\n" + }, "type": { "type": "reflection", "declaration": { @@ -61652,7 +61933,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 320, + "line": 332, "character": 6 } ], @@ -61670,7 +61951,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 319, + "line": 331, "character": 6 } ], @@ -61772,7 +62053,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 326, + "line": 338, "character": 14 } ], @@ -61871,7 +62152,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 331, + "line": 343, "character": 14 } ], @@ -61984,7 +62265,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 336, + "line": 348, "character": 14 } ], @@ -63162,7 +63443,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 367, + "line": 379, "character": 2 } ], @@ -63198,7 +63479,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 368, + "line": 380, "character": 15 } ], @@ -63549,7 +63830,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 407, + "line": 419, "character": 2 } ], @@ -63694,7 +63975,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 394, + "line": 406, "character": 2 } ], @@ -65244,7 +65525,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 218, + "line": 228, "character": 2 } ], @@ -65558,7 +65839,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 198, + "line": 208, "character": 2 } ], @@ -65652,7 +65933,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 162, + "line": 165, "character": 2 } ], @@ -65663,6 +65944,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Returns all created channels" + }, "type": { "type": "array", "elementType": { @@ -65683,7 +65967,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 214, + "line": 224, "character": 2 } ], @@ -65713,7 +65997,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 191, + "line": 201, "character": 2 } ], @@ -65781,7 +66065,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 236, + "line": 246, "character": 2 } ], @@ -65967,7 +66251,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 177, + "line": 187, "character": 2 } ], @@ -65978,6 +66262,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes all channels" + }, "type": { "type": "reference", "typeArguments": [ @@ -66006,7 +66293,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 166, + "line": 173, "character": 2 } ], @@ -66017,6 +66304,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes a single channel" + }, "parameters": [ { "id": 354, @@ -66024,6 +66314,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "A RealtimeChannel instance\n" + }, "type": { "type": "reference", "id": 55, @@ -66057,7 +66350,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 263, + "line": 273, "character": 2 } ], @@ -67731,7 +68024,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 218, + "line": 228, "character": 2 } ], @@ -68045,7 +68338,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 198, + "line": 208, "character": 2 } ], @@ -68139,7 +68432,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 162, + "line": 165, "character": 2 } ], @@ -68150,6 +68443,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Returns all created channels" + }, "type": { "type": "array", "elementType": { @@ -68170,7 +68466,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 214, + "line": 224, "character": 2 } ], @@ -68200,7 +68496,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 191, + "line": 201, "character": 2 } ], @@ -68268,7 +68564,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 236, + "line": 246, "character": 2 } ], @@ -68454,7 +68750,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 177, + "line": 187, "character": 2 } ], @@ -68465,6 +68761,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes all channels" + }, "type": { "type": "reference", "typeArguments": [ @@ -68493,7 +68792,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 166, + "line": 173, "character": 2 } ], @@ -68504,6 +68803,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes a single channel" + }, "parameters": [ { "id": 354, @@ -68511,6 +68813,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "A RealtimeChannel instance\n" + }, "type": { "type": "reference", "id": 55, @@ -68544,7 +68849,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 263, + "line": 273, "character": 2 } ], @@ -68680,7 +68985,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 315, + "line": 327, "character": 2 } ], @@ -68692,7 +68997,7 @@ "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Listen to messages." + "shortText": "Creates an event handler that listens to changes" }, "parameters": [ { @@ -68701,6 +69006,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Realtime feature (broadcast, presence, or postgres_changes)" + }, "type": { "type": "literal", "value": "broadcast" @@ -68712,6 +69020,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Pre-defined and custom values specific to the Realtime feature" + }, "type": { "type": "reflection", "declaration": { @@ -68727,10 +69038,13 @@ "kind": 1024, "kindString": "Property", "flags": {}, + "comment": { + "shortText": "Event to listen to. If listening to postgres_changes type\nthen this value is one of INSERT, UPDATE, DELETE, *" + }, "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 317, + "line": 329, "character": 14 } ], @@ -68756,6 +69070,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Function to be invoked when event handler is triggered\n" + }, "type": { "type": "reflection", "declaration": { @@ -68796,7 +69113,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 320, + "line": 332, "character": 6 } ], @@ -68814,7 +69131,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 319, + "line": 331, "character": 6 } ], @@ -68916,7 +69233,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 326, + "line": 338, "character": 14 } ], @@ -69015,7 +69332,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 331, + "line": 343, "character": 14 } ], @@ -69128,7 +69445,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 336, + "line": 348, "character": 14 } ], @@ -70306,7 +70623,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 367, + "line": 379, "character": 2 } ], @@ -70342,7 +70659,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 368, + "line": 380, "character": 15 } ], @@ -70693,7 +71010,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 407, + "line": 419, "character": 2 } ], @@ -70838,7 +71155,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 394, + "line": 406, "character": 2 } ], diff --git a/spec/enrichments/tsdoc_v2/gotrue.json b/spec/enrichments/tsdoc_v2/gotrue.json index 6cf1e94f730..c30c7fb0373 100644 --- a/spec/enrichments/tsdoc_v2/gotrue.json +++ b/spec/enrichments/tsdoc_v2/gotrue.json @@ -7,14 +7,14 @@ "originalName": "", "children": [ { - "id": 732, + "id": 740, "name": "AuthApiError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 733, + "id": 741, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -28,14 +28,14 @@ ], "signatures": [ { - "id": 734, + "id": 742, "name": "new AuthApiError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 735, + "id": 743, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -46,7 +46,7 @@ } }, { - "id": 736, + "id": 744, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -59,24 +59,24 @@ ], "type": { "type": "reference", - "id": 732, + "id": 740, "name": "AuthApiError" }, "overwrites": { "type": "reference", - "id": 729, + "id": 737, "name": "AuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 728, + "id": 736, "name": "AuthError.constructor" } }, { - "id": 737, + "id": 745, "name": "status", "kind": 1024, "kindString": "Property", @@ -94,7 +94,7 @@ } }, { - "id": 738, + "id": 746, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -108,7 +108,7 @@ ], "signatures": [ { - "id": 739, + "id": 747, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -116,14 +116,14 @@ "type": { "type": "reflection", "declaration": { - "id": 740, + "id": 748, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 742, + "id": 750, "name": "message", "kind": 1024, "kindString": "Property", @@ -142,7 +142,7 @@ "defaultValue": "..." }, { - "id": 741, + "id": 749, "name": "name", "kind": 1024, "kindString": "Property", @@ -161,7 +161,7 @@ "defaultValue": "..." }, { - "id": 743, + "id": 751, "name": "status", "kind": 1024, "kindString": "Property", @@ -184,7 +184,7 @@ { "title": "Properties", "kind": 1024, - "children": [742, 741, 743] + "children": [750, 749, 751] } ] } @@ -197,17 +197,17 @@ { "title": "Constructors", "kind": 512, - "children": [733] + "children": [741] }, { "title": "Properties", "kind": 1024, - "children": [737] + "children": [745] }, { "title": "Methods", "kind": 2048, - "children": [738] + "children": [746] } ], "sources": [ @@ -220,20 +220,20 @@ "extendedTypes": [ { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } ] }, { - "id": 727, + "id": 735, "name": "AuthError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 728, + "id": 736, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -247,14 +247,14 @@ ], "signatures": [ { - "id": 729, + "id": 737, "name": "new AuthError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 730, + "id": 738, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -267,7 +267,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" }, "overwrites": { @@ -286,7 +286,7 @@ { "title": "Constructors", "kind": 512, - "children": [728] + "children": [736] } ], "sources": [ @@ -307,30 +307,30 @@ "extendedBy": [ { "type": "reference", - "id": 732, + "id": 740, "name": "AuthApiError" }, { "type": "reference", - "id": 745, + "id": 753, "name": "AuthUnknownError" }, { "type": "reference", - "id": 752, + "id": 760, "name": "CustomAuthError" } ] }, { - "id": 792, + "id": 800, "name": "AuthImplicitGrantRedirectError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 793, + "id": 801, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -344,14 +344,14 @@ ], "signatures": [ { - "id": 794, + "id": 802, "name": "new AuthImplicitGrantRedirectError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 795, + "id": 803, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -362,7 +362,7 @@ } }, { - "id": 796, + "id": 804, "name": "details", "kind": 32768, "kindString": "Parameter", @@ -377,14 +377,14 @@ { "type": "reflection", "declaration": { - "id": 797, + "id": 805, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 799, + "id": 807, "name": "code", "kind": 1024, "kindString": "Property", @@ -402,7 +402,7 @@ } }, { - "id": 798, + "id": 806, "name": "error", "kind": 1024, "kindString": "Property", @@ -424,7 +424,7 @@ { "title": "Properties", "kind": 1024, - "children": [799, 798] + "children": [807, 806] } ] } @@ -436,24 +436,24 @@ ], "type": { "type": "reference", - "id": 792, + "id": 800, "name": "AuthImplicitGrantRedirectError" }, "overwrites": { "type": "reference", - "id": 754, + "id": 762, "name": "CustomAuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 753, + "id": 761, "name": "CustomAuthError.constructor" } }, { - "id": 800, + "id": 808, "name": "details", "kind": 1024, "kindString": "Property", @@ -475,14 +475,14 @@ { "type": "reflection", "declaration": { - "id": 801, + "id": 809, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 803, + "id": 811, "name": "code", "kind": 1024, "kindString": "Property", @@ -500,7 +500,7 @@ } }, { - "id": 802, + "id": 810, "name": "error", "kind": 1024, "kindString": "Property", @@ -522,7 +522,7 @@ { "title": "Properties", "kind": 1024, - "children": [803, 802] + "children": [811, 810] } ] } @@ -531,588 +531,6 @@ }, "defaultValue": "null" }, - { - "id": 814, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 47, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 758, - "name": "CustomAuthError.name" - } - }, - { - "id": 815, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 48, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "id": 759, - "name": "CustomAuthError.status" - } - }, - { - "id": 804, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 83, - "character": 2 - } - ], - "signatures": [ - { - "id": 805, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 806, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 810, - "name": "details", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 88, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 811, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 813, - "name": "code", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 77, - "character": 28 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 812, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 77, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [813, 812] - } - ] - } - } - ] - }, - "defaultValue": "..." - }, - { - "id": 808, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 86, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 807, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 85, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 809, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 87, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [810, 808, 807, 809] - } - ] - } - }, - "overwrites": { - "type": "reference", - "id": 761, - "name": "CustomAuthError.toJSON" - } - } - ], - "overwrites": { - "type": "reference", - "id": 760, - "name": "CustomAuthError.toJSON" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [793] - }, - { - "title": "Properties", - "kind": 1024, - "children": [800, 814, 815] - }, - { - "title": "Methods", - "kind": 2048, - "children": [804] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 76, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 752, - "name": "CustomAuthError" - } - ] - }, - { - "id": 779, - "name": "AuthInvalidCredentialsError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 780, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 71, - "character": 2 - } - ], - "signatures": [ - { - "id": 781, - "name": "new AuthInvalidCredentialsError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 782, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 779, - "name": "AuthInvalidCredentialsError" - }, - "overwrites": { - "type": "reference", - "id": 754, - "name": "CustomAuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 753, - "name": "CustomAuthError.constructor" - } - }, - { - "id": 783, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 47, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 758, - "name": "CustomAuthError.name" - } - }, - { - "id": 784, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 48, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "id": 759, - "name": "CustomAuthError.status" - } - }, - { - "id": 785, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 55, - "character": 2 - } - ], - "signatures": [ - { - "id": 786, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 787, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 789, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 58, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 788, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 57, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 790, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 59, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [789, 788, 790] - } - ] - } - }, - "inheritedFrom": { - "type": "reference", - "id": 761, - "name": "CustomAuthError.toJSON" - } - } - ], - "inheritedFrom": { - "type": "reference", - "id": 760, - "name": "CustomAuthError.toJSON" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [780] - }, - { - "title": "Properties", - "kind": 1024, - "children": [783, 784] - }, - { - "title": "Methods", - "kind": 2048, - "children": [785] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 70, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 752, - "name": "CustomAuthError" - } - ] - }, - { - "id": 817, - "name": "AuthRetryableFetchError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 818, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 94, - "character": 2 - } - ], - "signatures": [ - { - "id": 819, - "name": "new AuthRetryableFetchError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 820, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 821, - "name": "status", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "id": 817, - "name": "AuthRetryableFetchError" - }, - "overwrites": { - "type": "reference", - "id": 754, - "name": "CustomAuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 753, - "name": "CustomAuthError.constructor" - } - }, { "id": 822, "name": "name", @@ -1132,7 +550,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 758, + "id": 766, "name": "CustomAuthError.name" } }, @@ -1155,12 +573,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 759, + "id": 767, "name": "CustomAuthError.status" } }, { - "id": 824, + "id": 812, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -1168,13 +586,13 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 55, + "line": 83, "character": 2 } ], "signatures": [ { - "id": 825, + "id": 813, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -1182,14 +600,93 @@ "type": { "type": "reflection", "declaration": { - "id": 826, + "id": 814, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 828, + "id": 818, + "name": "details", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 88, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reflection", + "declaration": { + "id": 819, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 821, + "name": "code", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 77, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 820, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 77, + "character": 13 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [821, 820] + } + ] + } + } + ] + }, + "defaultValue": "..." + }, + { + "id": 816, "name": "message", "kind": 1024, "kindString": "Property", @@ -1197,7 +694,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 58, + "line": 86, "character": 6 } ], @@ -1208,7 +705,7 @@ "defaultValue": "..." }, { - "id": 827, + "id": 815, "name": "name", "kind": 1024, "kindString": "Property", @@ -1216,7 +713,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 57, + "line": 85, "character": 6 } ], @@ -1227,7 +724,7 @@ "defaultValue": "..." }, { - "id": 829, + "id": 817, "name": "status", "kind": 1024, "kindString": "Property", @@ -1235,7 +732,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 59, + "line": 87, "character": 6 } ], @@ -1250,21 +747,21 @@ { "title": "Properties", "kind": 1024, - "children": [828, 827, 829] + "children": [818, 816, 815, 817] } ] } }, - "inheritedFrom": { + "overwrites": { "type": "reference", - "id": 761, + "id": 769, "name": "CustomAuthError.toJSON" } } ], - "inheritedFrom": { + "overwrites": { "type": "reference", - "id": 760, + "id": 768, "name": "CustomAuthError.toJSON" } } @@ -1273,43 +770,43 @@ { "title": "Constructors", "kind": 512, - "children": [818] + "children": [801] }, { "title": "Properties", "kind": 1024, - "children": [822, 823] + "children": [808, 822, 823] }, { "title": "Methods", "kind": 2048, - "children": [824] + "children": [812] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 93, + "line": 76, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 752, + "id": 760, "name": "CustomAuthError" } ] }, { - "id": 767, - "name": "AuthSessionMissingError", + "id": 787, + "name": "AuthInvalidCredentialsError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 768, + "id": 788, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -1317,37 +814,50 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 65, + "line": 71, "character": 2 } ], "signatures": [ { - "id": 769, - "name": "new AuthSessionMissingError", + "id": 789, + "name": "new AuthInvalidCredentialsError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, + "parameters": [ + { + "id": 790, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], "type": { "type": "reference", - "id": 767, - "name": "AuthSessionMissingError" + "id": 787, + "name": "AuthInvalidCredentialsError" }, "overwrites": { "type": "reference", - "id": 754, + "id": 762, "name": "CustomAuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 753, + "id": 761, "name": "CustomAuthError.constructor" } }, { - "id": 770, + "id": 791, "name": "name", "kind": 1024, "kindString": "Property", @@ -1365,12 +875,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 758, + "id": 766, "name": "CustomAuthError.name" } }, { - "id": 771, + "id": 792, "name": "status", "kind": 1024, "kindString": "Property", @@ -1388,12 +898,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 759, + "id": 767, "name": "CustomAuthError.status" } }, { - "id": 772, + "id": 793, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -1407,7 +917,7 @@ ], "signatures": [ { - "id": 773, + "id": 794, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -1415,14 +925,14 @@ "type": { "type": "reflection", "declaration": { - "id": 774, + "id": 795, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 776, + "id": 797, "name": "message", "kind": 1024, "kindString": "Property", @@ -1441,7 +951,7 @@ "defaultValue": "..." }, { - "id": 775, + "id": 796, "name": "name", "kind": 1024, "kindString": "Property", @@ -1460,7 +970,7 @@ "defaultValue": "..." }, { - "id": 777, + "id": 798, "name": "status", "kind": 1024, "kindString": "Property", @@ -1483,21 +993,21 @@ { "title": "Properties", "kind": 1024, - "children": [776, 775, 777] + "children": [797, 796, 798] } ] } }, "inheritedFrom": { "type": "reference", - "id": 761, + "id": 769, "name": "CustomAuthError.toJSON" } } ], "inheritedFrom": { "type": "reference", - "id": 760, + "id": 768, "name": "CustomAuthError.toJSON" } } @@ -1506,17 +1016,507 @@ { "title": "Constructors", "kind": 512, - "children": [768] + "children": [788] }, { "title": "Properties", "kind": 1024, - "children": [770, 771] + "children": [791, 792] }, { "title": "Methods", "kind": 2048, - "children": [772] + "children": [793] + } + ], + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 70, + "character": 13 + } + ], + "extendedTypes": [ + { + "type": "reference", + "id": 760, + "name": "CustomAuthError" + } + ] + }, + { + "id": 825, + "name": "AuthRetryableFetchError", + "kind": 128, + "kindString": "Class", + "flags": {}, + "children": [ + { + "id": 826, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 94, + "character": 2 + } + ], + "signatures": [ + { + "id": 827, + "name": "new AuthRetryableFetchError", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 828, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 829, + "name": "status", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "id": 825, + "name": "AuthRetryableFetchError" + }, + "overwrites": { + "type": "reference", + "id": 762, + "name": "CustomAuthError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "id": 761, + "name": "CustomAuthError.constructor" + } + }, + { + "id": 830, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 47, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "id": 766, + "name": "CustomAuthError.name" + } + }, + { + "id": 831, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 48, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "id": 767, + "name": "CustomAuthError.status" + } + }, + { + "id": 832, + "name": "toJSON", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 55, + "character": 2 + } + ], + "signatures": [ + { + "id": 833, + "name": "toJSON", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 834, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 836, + "name": "message", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 58, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 835, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 57, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 837, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 59, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [836, 835, 837] + } + ] + } + }, + "inheritedFrom": { + "type": "reference", + "id": 769, + "name": "CustomAuthError.toJSON" + } + } + ], + "inheritedFrom": { + "type": "reference", + "id": 768, + "name": "CustomAuthError.toJSON" + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [826] + }, + { + "title": "Properties", + "kind": 1024, + "children": [830, 831] + }, + { + "title": "Methods", + "kind": 2048, + "children": [832] + } + ], + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 93, + "character": 13 + } + ], + "extendedTypes": [ + { + "type": "reference", + "id": 760, + "name": "CustomAuthError" + } + ] + }, + { + "id": 775, + "name": "AuthSessionMissingError", + "kind": 128, + "kindString": "Class", + "flags": {}, + "children": [ + { + "id": 776, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 65, + "character": 2 + } + ], + "signatures": [ + { + "id": 777, + "name": "new AuthSessionMissingError", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "type": { + "type": "reference", + "id": 775, + "name": "AuthSessionMissingError" + }, + "overwrites": { + "type": "reference", + "id": 762, + "name": "CustomAuthError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "id": 761, + "name": "CustomAuthError.constructor" + } + }, + { + "id": 778, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 47, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "id": 766, + "name": "CustomAuthError.name" + } + }, + { + "id": 779, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 48, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "id": 767, + "name": "CustomAuthError.status" + } + }, + { + "id": 780, + "name": "toJSON", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 55, + "character": 2 + } + ], + "signatures": [ + { + "id": 781, + "name": "toJSON", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 782, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 784, + "name": "message", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 58, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 783, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 57, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 785, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 59, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [784, 783, 785] + } + ] + } + }, + "inheritedFrom": { + "type": "reference", + "id": 769, + "name": "CustomAuthError.toJSON" + } + } + ], + "inheritedFrom": { + "type": "reference", + "id": 768, + "name": "CustomAuthError.toJSON" + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [776] + }, + { + "title": "Properties", + "kind": 1024, + "children": [778, 779] + }, + { + "title": "Methods", + "kind": 2048, + "children": [780] } ], "sources": [ @@ -1529,20 +1529,20 @@ "extendedTypes": [ { "type": "reference", - "id": 752, + "id": 760, "name": "CustomAuthError" } ] }, { - "id": 745, + "id": 753, "name": "AuthUnknownError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 746, + "id": 754, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -1556,14 +1556,14 @@ ], "signatures": [ { - "id": 747, + "id": 755, "name": "new AuthUnknownError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 748, + "id": 756, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -1574,7 +1574,7 @@ } }, { - "id": 749, + "id": 757, "name": "originalError", "kind": 32768, "kindString": "Parameter", @@ -1587,24 +1587,24 @@ ], "type": { "type": "reference", - "id": 745, + "id": 753, "name": "AuthUnknownError" }, "overwrites": { "type": "reference", - "id": 729, + "id": 737, "name": "AuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 728, + "id": 736, "name": "AuthError.constructor" } }, { - "id": 750, + "id": 758, "name": "originalError", "kind": 1024, "kindString": "Property", @@ -1626,12 +1626,12 @@ { "title": "Constructors", "kind": 512, - "children": [746] + "children": [754] }, { "title": "Properties", "kind": 1024, - "children": [750] + "children": [758] } ], "sources": [ @@ -1644,20 +1644,20 @@ "extendedTypes": [ { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } ] }, { - "id": 752, + "id": 760, "name": "CustomAuthError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 753, + "id": 761, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -1671,14 +1671,14 @@ ], "signatures": [ { - "id": 754, + "id": 762, "name": "new CustomAuthError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 755, + "id": 763, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -1689,7 +1689,7 @@ } }, { - "id": 756, + "id": 764, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -1700,7 +1700,7 @@ } }, { - "id": 757, + "id": 765, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -1713,24 +1713,24 @@ ], "type": { "type": "reference", - "id": 752, + "id": 760, "name": "CustomAuthError" }, "overwrites": { "type": "reference", - "id": 729, + "id": 737, "name": "AuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 728, + "id": 736, "name": "AuthError.constructor" } }, { - "id": 758, + "id": 766, "name": "name", "kind": 1024, "kindString": "Property", @@ -1752,7 +1752,7 @@ } }, { - "id": 759, + "id": 767, "name": "status", "kind": 1024, "kindString": "Property", @@ -1770,7 +1770,7 @@ } }, { - "id": 760, + "id": 768, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -1784,7 +1784,7 @@ ], "signatures": [ { - "id": 761, + "id": 769, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -1792,14 +1792,14 @@ "type": { "type": "reflection", "declaration": { - "id": 762, + "id": 770, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 764, + "id": 772, "name": "message", "kind": 1024, "kindString": "Property", @@ -1818,7 +1818,7 @@ "defaultValue": "..." }, { - "id": 763, + "id": 771, "name": "name", "kind": 1024, "kindString": "Property", @@ -1837,7 +1837,7 @@ "defaultValue": "..." }, { - "id": 765, + "id": 773, "name": "status", "kind": 1024, "kindString": "Property", @@ -1860,7 +1860,7 @@ { "title": "Properties", "kind": 1024, - "children": [764, 763, 765] + "children": [772, 771, 773] } ] } @@ -1873,17 +1873,17 @@ { "title": "Constructors", "kind": 512, - "children": [753] + "children": [761] }, { "title": "Properties", "kind": 1024, - "children": [758, 759] + "children": [766, 767] }, { "title": "Methods", "kind": 2048, - "children": [760] + "children": [768] } ], "sources": [ @@ -1896,29 +1896,29 @@ "extendedTypes": [ { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } ], "extendedBy": [ { "type": "reference", - "id": 767, + "id": 775, "name": "AuthSessionMissingError" }, { "type": "reference", - "id": 779, + "id": 787, "name": "AuthInvalidCredentialsError" }, { "type": "reference", - "id": 792, + "id": 800, "name": "AuthImplicitGrantRedirectError" }, { "type": "reference", - "id": 817, + "id": 825, "name": "AuthRetryableFetchError" } ] @@ -1939,7 +1939,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 28, + "line": 35, "character": 2 } ], @@ -1977,7 +1977,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 37, + "line": 44, "character": 4 } ], @@ -2067,7 +2067,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 34, + "line": 41, "character": 4 } ], @@ -2114,7 +2114,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 33, + "line": 40, "character": 4 } ], @@ -2155,13 +2155,13 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 20, + "line": 27, "character": 2 } ], "type": { "type": "reference", - "id": 699, + "id": 700, "name": "GoTrueAdminMFAApi" } }, @@ -2174,7 +2174,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 139, + "line": 146, "character": 8 } ], @@ -2197,7 +2197,7 @@ "flags": {}, "type": { "type": "reference", - "id": 411, + "id": 412, "name": "AdminUserAttributes" } } @@ -2207,7 +2207,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -2219,7 +2219,7 @@ ] }, { - "id": 66, + "id": 67, "name": "deleteUser", "kind": 2048, "kindString": "Method", @@ -2227,13 +2227,13 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 234, + "line": 260, "character": 8 } ], "signatures": [ { - "id": 67, + "id": 68, "name": "deleteUser", "kind": 4096, "kindString": "Call signature", @@ -2243,7 +2243,7 @@ }, "parameters": [ { - "id": 68, + "id": 69, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -2262,7 +2262,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -2282,7 +2282,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 105, + "line": 112, "character": 8 } ], @@ -2305,7 +2305,7 @@ "flags": {}, "type": { "type": "reference", - "id": 543, + "id": 544, "name": "GenerateLinkParams" } } @@ -2315,7 +2315,7 @@ "typeArguments": [ { "type": "reference", - "id": 544, + "id": 545, "name": "GenerateLinkResponse" } ], @@ -2327,7 +2327,7 @@ ] }, { - "id": 59, + "id": 60, "name": "getUserById", "kind": 2048, "kindString": "Method", @@ -2335,13 +2335,13 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 189, + "line": 215, "character": 8 } ], "signatures": [ { - "id": 60, + "id": 61, "name": "getUserById", "kind": 4096, "kindString": "Call signature", @@ -2351,7 +2351,7 @@ }, "parameters": [ { - "id": 61, + "id": 62, "name": "uid", "kind": 32768, "kindString": "Parameter", @@ -2370,7 +2370,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -2390,7 +2390,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 75, + "line": 82, "character": 8 } ], @@ -2448,7 +2448,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 79, + "line": 86, "character": 6 } ], @@ -2471,7 +2471,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 78, + "line": 85, "character": 6 } ], @@ -2498,7 +2498,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -2518,7 +2518,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 161, + "line": 168, "character": 8 } ], @@ -2543,11 +2543,11 @@ "isOptional": true }, "comment": { - "shortText": "An object which supports `page` and `per_page` as numbers, to alter the paginated results.\n" + "shortText": "An object which supports `page` and `perPage` as numbers, to alter the paginated results.\n" }, "type": { "type": "reference", - "id": 717, + "id": 725, "name": "PageParams" } } @@ -2576,54 +2576,82 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 15 + "line": 171, + "character": 8 } ], "type": { - "type": "reflection", - "declaration": { - "id": 51, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 52, - "name": "users", - "kind": 1024, - "kindString": "Property", + "type": "intersection", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 51, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", "flags": {}, - "sources": [ + "children": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 23 + "id": 53, + "name": "aud", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueAdminApi.ts", + "line": 171, + "character": 31 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 52, + "name": "users", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueAdminApi.ts", + "line": 171, + "character": 16 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 385, + "name": "User" + } + } } ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 384, - "name": "User" + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [53, 52] } - } + ] } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [52] - } - ] - } + }, + { + "type": "reference", + "id": 718, + "name": "Pagination" + } + ] } }, { - "id": 53, + "id": 54, "name": "error", "kind": 1024, "kindString": "Property", @@ -2631,8 +2659,8 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 40 + "line": 171, + "character": 59 } ], "type": { @@ -2645,7 +2673,7 @@ { "title": "Properties", "kind": 1024, - "children": [50, 53] + "children": [50, 54] } ] } @@ -2653,14 +2681,14 @@ { "type": "reflection", "declaration": { - "id": 54, + "id": 55, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 55, + "id": 56, "name": "data", "kind": 1024, "kindString": "Property", @@ -2668,21 +2696,21 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 58 + "line": 172, + "character": 8 } ], "type": { "type": "reflection", "declaration": { - "id": 56, + "id": 57, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 57, + "id": 58, "name": "users", "kind": 1024, "kindString": "Property", @@ -2690,8 +2718,8 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 66 + "line": 172, + "character": 16 } ], "type": { @@ -2703,14 +2731,14 @@ { "title": "Properties", "kind": 1024, - "children": [57] + "children": [58] } ] } } }, { - "id": 58, + "id": 59, "name": "error", "kind": 1024, "kindString": "Property", @@ -2718,13 +2746,13 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 79 + "line": 172, + "character": 29 } ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -2733,7 +2761,7 @@ { "title": "Properties", "kind": 1024, - "children": [55, 58] + "children": [56, 59] } ] } @@ -2757,7 +2785,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 52, + "line": 59, "character": 8 } ], @@ -2808,7 +2836,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 52, + "line": 59, "character": 40 } ], @@ -2826,7 +2854,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 52, + "line": 59, "character": 52 } ], @@ -2839,7 +2867,7 @@ }, { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } ] @@ -2864,7 +2892,7 @@ ] }, { - "id": 62, + "id": 63, "name": "updateUserById", "kind": 2048, "kindString": "Method", @@ -2872,13 +2900,13 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 211, + "line": 237, "character": 8 } ], "signatures": [ { - "id": 63, + "id": 64, "name": "updateUserById", "kind": 4096, "kindString": "Call signature", @@ -2888,7 +2916,7 @@ }, "parameters": [ { - "id": 64, + "id": 65, "name": "uid", "kind": 32768, "kindString": "Parameter", @@ -2899,7 +2927,7 @@ } }, { - "id": 65, + "id": 66, "name": "attributes", "kind": 32768, "kindString": "Parameter", @@ -2909,7 +2937,7 @@ }, "type": { "type": "reference", - "id": 411, + "id": 412, "name": "AdminUserAttributes" } } @@ -2919,7 +2947,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -2945,26 +2973,26 @@ { "title": "Methods", "kind": 2048, - "children": [43, 66, 40, 59, 33, 46, 27, 62] + "children": [43, 67, 40, 60, 33, 46, 27, 63] } ], "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 18, + "line": 25, "character": 21 } ] }, { - "id": 75, + "id": 76, "name": "GoTrueClient", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 76, + "id": 77, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -2978,7 +3006,7 @@ ], "signatures": [ { - "id": 77, + "id": 78, "name": "new GoTrueClient", "kind": 16384, "kindString": "Constructor signature", @@ -2988,28 +3016,28 @@ }, "parameters": [ { - "id": 78, + "id": 79, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 288, + "id": 289, "name": "GoTrueClientOptions" } } ], "type": { "type": "reference", - "id": 75, + "id": 76, "name": "default" } } ] }, { - "id": 79, + "id": 80, "name": "admin", "kind": 1024, "kindString": "Property", @@ -3031,7 +3059,7 @@ } }, { - "id": 80, + "id": 81, "name": "mfa", "kind": 1024, "kindString": "Property", @@ -3048,12 +3076,12 @@ ], "type": { "type": "reference", - "id": 654, + "id": 655, "name": "GoTrueMFAApi" } }, { - "id": 124, + "id": 125, "name": "getSession", "kind": 2048, "kindString": "Method", @@ -3061,13 +3089,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 487, + "line": 501, "character": 8 } ], "signatures": [ { - "id": 125, + "id": 126, "name": "getSession", "kind": 4096, "kindString": "Call signature", @@ -3084,14 +3112,14 @@ { "type": "reflection", "declaration": { - "id": 126, + "id": 127, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 127, + "id": 128, "name": "data", "kind": 1024, "kindString": "Property", @@ -3099,21 +3127,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 489, + "line": 503, "character": 8 } ], "type": { "type": "reflection", "declaration": { - "id": 128, + "id": 129, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 129, + "id": 130, "name": "session", "kind": 1024, "kindString": "Property", @@ -3121,13 +3149,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 490, + "line": 504, "character": 10 } ], "type": { "type": "reference", - "id": 347, + "id": 348, "name": "Session" } } @@ -3136,14 +3164,14 @@ { "title": "Properties", "kind": 1024, - "children": [129] + "children": [130] } ] } } }, { - "id": 130, + "id": 131, "name": "error", "kind": 1024, "kindString": "Property", @@ -3151,7 +3179,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 492, + "line": 506, "character": 8 } ], @@ -3165,7 +3193,7 @@ { "title": "Properties", "kind": 1024, - "children": [127, 130] + "children": [128, 131] } ] } @@ -3173,14 +3201,14 @@ { "type": "reflection", "declaration": { - "id": 131, + "id": 132, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 132, + "id": 133, "name": "data", "kind": 1024, "kindString": "Property", @@ -3188,21 +3216,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 495, + "line": 509, "character": 8 } ], "type": { "type": "reflection", "declaration": { - "id": 133, + "id": 134, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 134, + "id": 135, "name": "session", "kind": 1024, "kindString": "Property", @@ -3210,7 +3238,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 496, + "line": 510, "character": 10 } ], @@ -3224,14 +3252,14 @@ { "title": "Properties", "kind": 1024, - "children": [134] + "children": [135] } ] } } }, { - "id": 135, + "id": 136, "name": "error", "kind": 1024, "kindString": "Property", @@ -3239,13 +3267,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 498, + "line": 512, "character": 8 } ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -3254,7 +3282,7 @@ { "title": "Properties", "kind": 1024, - "children": [132, 135] + "children": [133, 136] } ] } @@ -3262,14 +3290,14 @@ { "type": "reflection", "declaration": { - "id": 136, + "id": 137, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 137, + "id": 138, "name": "data", "kind": 1024, "kindString": "Property", @@ -3277,21 +3305,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 501, + "line": 515, "character": 8 } ], "type": { "type": "reflection", "declaration": { - "id": 138, + "id": 139, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 139, + "id": 140, "name": "session", "kind": 1024, "kindString": "Property", @@ -3299,7 +3327,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 502, + "line": 516, "character": 10 } ], @@ -3313,14 +3341,14 @@ { "title": "Properties", "kind": 1024, - "children": [139] + "children": [140] } ] } } }, { - "id": 140, + "id": 141, "name": "error", "kind": 1024, "kindString": "Property", @@ -3328,7 +3356,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 504, + "line": 518, "character": 8 } ], @@ -3342,7 +3370,7 @@ { "title": "Properties", "kind": 1024, - "children": [137, 140] + "children": [138, 141] } ] } @@ -3358,7 +3386,7 @@ ] }, { - "id": 141, + "id": 142, "name": "getUser", "kind": 2048, "kindString": "Method", @@ -3366,13 +3394,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 550, + "line": 564, "character": 8 } ], "signatures": [ { - "id": 142, + "id": 143, "name": "getUser", "kind": 4096, "kindString": "Call signature", @@ -3382,7 +3410,7 @@ }, "parameters": [ { - "id": 143, + "id": 144, "name": "jwt", "kind": 32768, "kindString": "Parameter", @@ -3403,7 +3431,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -3415,7 +3443,7 @@ ] }, { - "id": 102, + "id": 103, "name": "initialize", "kind": 2048, "kindString": "Method", @@ -3429,7 +3457,7 @@ ], "signatures": [ { - "id": 103, + "id": 104, "name": "initialize", "kind": 4096, "kindString": "Call signature", @@ -3442,7 +3470,7 @@ "typeArguments": [ { "type": "reference", - "id": 707, + "id": 708, "name": "InitializeResult" } ], @@ -3454,7 +3482,7 @@ ] }, { - "id": 185, + "id": 186, "name": "onAuthStateChange", "kind": 2048, "kindString": "Method", @@ -3462,13 +3490,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 834, + "line": 848, "character": 2 } ], "signatures": [ { - "id": 186, + "id": 187, "name": "onAuthStateChange", "kind": 4096, "kindString": "Call signature", @@ -3478,7 +3506,7 @@ }, "parameters": [ { - "id": 187, + "id": 188, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -3489,33 +3517,33 @@ "type": { "type": "reflection", "declaration": { - "id": 188, + "id": 189, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 189, + "id": 190, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 190, + "id": 191, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 287, + "id": 288, "name": "AuthChangeEvent" } }, { - "id": 191, + "id": 192, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -3529,7 +3557,7 @@ }, { "type": "reference", - "id": 347, + "id": 348, "name": "Session" } ] @@ -3549,14 +3577,14 @@ "type": { "type": "reflection", "declaration": { - "id": 192, + "id": 193, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 193, + "id": 194, "name": "data", "kind": 1024, "kindString": "Property", @@ -3564,21 +3592,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 835, + "line": 849, "character": 4 } ], "type": { "type": "reflection", "declaration": { - "id": 194, + "id": 195, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 195, + "id": 196, "name": "subscription", "kind": 1024, "kindString": "Property", @@ -3586,13 +3614,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 835, + "line": 849, "character": 12 } ], "type": { "type": "reference", - "id": 421, + "id": 422, "name": "Subscription" } } @@ -3601,7 +3629,7 @@ { "title": "Properties", "kind": 1024, - "children": [195] + "children": [196] } ] } @@ -3612,7 +3640,7 @@ { "title": "Properties", "kind": 1024, - "children": [193] + "children": [194] } ] } @@ -3621,7 +3649,7 @@ ] }, { - "id": 160, + "id": 161, "name": "refreshSession", "kind": 2048, "kindString": "Method", @@ -3629,13 +3657,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 689, + "line": 703, "character": 8 } ], "signatures": [ { - "id": 161, + "id": 162, "name": "refreshSession", "kind": 4096, "kindString": "Call signature", @@ -3645,7 +3673,7 @@ }, "parameters": [ { - "id": 162, + "id": 163, "name": "currentSession", "kind": 32768, "kindString": "Parameter", @@ -3658,14 +3686,14 @@ "type": { "type": "reflection", "declaration": { - "id": 163, + "id": 164, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 164, + "id": 165, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -3673,7 +3701,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 689, + "line": 703, "character": 42 } ], @@ -3687,7 +3715,7 @@ { "title": "Properties", "kind": 1024, - "children": [164] + "children": [165] } ] } @@ -3699,7 +3727,7 @@ "typeArguments": [ { "type": "reference", - "id": 301, + "id": 302, "name": "AuthResponse" } ], @@ -3711,7 +3739,7 @@ ] }, { - "id": 196, + "id": 197, "name": "resetPasswordForEmail", "kind": 2048, "kindString": "Method", @@ -3719,13 +3747,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 857, + "line": 871, "character": 8 } ], "signatures": [ { - "id": 197, + "id": 198, "name": "resetPasswordForEmail", "kind": 4096, "kindString": "Call signature", @@ -3735,7 +3763,7 @@ }, "parameters": [ { - "id": 198, + "id": 199, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -3749,7 +3777,7 @@ } }, { - "id": 199, + "id": 200, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -3757,14 +3785,14 @@ "type": { "type": "reflection", "declaration": { - "id": 200, + "id": 201, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 202, + "id": 203, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -3777,7 +3805,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 861, + "line": 875, "character": 6 } ], @@ -3787,7 +3815,7 @@ } }, { - "id": 201, + "id": 202, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -3800,7 +3828,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 860, + "line": 874, "character": 6 } ], @@ -3814,7 +3842,7 @@ { "title": "Properties", "kind": 1024, - "children": [202, 201] + "children": [203, 202] } ] } @@ -3831,14 +3859,14 @@ { "type": "reflection", "declaration": { - "id": 203, + "id": 204, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 204, + "id": 205, "name": "data", "kind": 1024, "kindString": "Property", @@ -3846,14 +3874,14 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 865, + "line": 879, "character": 8 } ], "type": { "type": "reflection", "declaration": { - "id": 205, + "id": 206, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3862,7 +3890,7 @@ } }, { - "id": 206, + "id": 207, "name": "error", "kind": 1024, "kindString": "Property", @@ -3870,7 +3898,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 866, + "line": 880, "character": 8 } ], @@ -3884,7 +3912,7 @@ { "title": "Properties", "kind": 1024, - "children": [204, 206] + "children": [205, 207] } ] } @@ -3892,14 +3920,14 @@ { "type": "reflection", "declaration": { - "id": 207, + "id": 208, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 208, + "id": 209, "name": "data", "kind": 1024, "kindString": "Property", @@ -3907,7 +3935,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 868, + "line": 882, "character": 8 } ], @@ -3917,7 +3945,7 @@ } }, { - "id": 209, + "id": 210, "name": "error", "kind": 1024, "kindString": "Property", @@ -3925,13 +3953,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 868, + "line": 882, "character": 20 } ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -3940,7 +3968,7 @@ { "title": "Properties", "kind": 1024, - "children": [208, 209] + "children": [209, 210] } ] } @@ -3956,7 +3984,7 @@ ] }, { - "id": 154, + "id": 155, "name": "setSession", "kind": 2048, "kindString": "Method", @@ -3964,13 +3992,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 626, + "line": 640, "character": 8 } ], "signatures": [ { - "id": 155, + "id": 156, "name": "setSession", "kind": 4096, "kindString": "Call signature", @@ -3980,7 +4008,7 @@ }, "parameters": [ { - "id": 156, + "id": 157, "name": "currentSession", "kind": 32768, "kindString": "Parameter", @@ -3991,14 +4019,14 @@ "type": { "type": "reflection", "declaration": { - "id": 157, + "id": 158, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 158, + "id": 159, "name": "access_token", "kind": 1024, "kindString": "Property", @@ -4006,7 +4034,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 627, + "line": 641, "character": 4 } ], @@ -4016,7 +4044,7 @@ } }, { - "id": 159, + "id": 160, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -4024,7 +4052,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 628, + "line": 642, "character": 4 } ], @@ -4038,7 +4066,7 @@ { "title": "Properties", "kind": 1024, - "children": [158, 159] + "children": [159, 160] } ] } @@ -4050,7 +4078,7 @@ "typeArguments": [ { "type": "reference", - "id": 301, + "id": 302, "name": "AuthResponse" } ], @@ -4062,7 +4090,7 @@ ] }, { - "id": 112, + "id": 113, "name": "signInWithOAuth", "kind": 2048, "kindString": "Method", @@ -4070,13 +4098,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 340, + "line": 349, "character": 8 } ], "signatures": [ { - "id": 113, + "id": 114, "name": "signInWithOAuth", "kind": 4096, "kindString": "Call signature", @@ -4086,14 +4114,14 @@ }, "parameters": [ { - "id": 114, + "id": 115, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 478, + "id": 479, "name": "SignInWithOAuthCredentials" } } @@ -4103,7 +4131,7 @@ "typeArguments": [ { "type": "reference", - "id": 314, + "id": 315, "name": "OAuthResponse" } ], @@ -4115,7 +4143,7 @@ ] }, { - "id": 115, + "id": 116, "name": "signInWithOtp", "kind": 2048, "kindString": "Method", @@ -4123,30 +4151,31 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 355, + "line": 369, "character": 8 } ], "signatures": [ { - "id": 116, + "id": 117, "name": "signInWithOtp", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Log in a user using magiclink or a one-time password (OTP).\nIf the `{{ .ConfirmationURL }}` variable is specified in the email template, a magiclink will be sent.\nIf the `{{ .Token }}` variable is specified in the email template, an OTP will be sent.\nIf you're using phone sign-ins, only an OTP will be sent. You won't be able to send a magiclink for phone sign-ins." + "shortText": "Log in a user using magiclink or a one-time password (OTP).", + "text": "If the `{{ .ConfirmationURL }}` variable is specified in the email template, a magiclink will be sent.\nIf the `{{ .Token }}` variable is specified in the email template, an OTP will be sent.\nIf you're using phone sign-ins, only an OTP will be sent. You won't be able to send a magiclink for phone sign-ins.\n\nBe aware that you may get back an error message that will not distinguish\nbetween the cases where the account does not exist or, that the account\ncan only be accessed via social login.\n" }, "parameters": [ { - "id": 117, + "id": 118, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 462, + "id": 463, "name": "SignInWithPasswordlessCredentials" } } @@ -4156,7 +4185,7 @@ "typeArguments": [ { "type": "reference", - "id": 301, + "id": 302, "name": "AuthResponse" } ], @@ -4168,7 +4197,7 @@ ] }, { - "id": 109, + "id": 110, "name": "signInWithPassword", "kind": 2048, "kindString": "Method", @@ -4176,30 +4205,31 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 288, + "line": 297, "character": 8 } ], "signatures": [ { - "id": 110, + "id": 111, "name": "signInWithPassword", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Log in an existing user with an email and password or phone and password." + "shortText": "Log in an existing user with an email and password or phone and password.", + "text": "Be aware that you may get back an error message that will not distingish\nbetween the cases where the account does not exist or that the\nemail/phone and password combination is wrong or that the account can only\nbe accessed via social login.\n" }, "parameters": [ { - "id": 111, + "id": 112, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 447, + "id": 448, "name": "SignInWithPasswordCredentials" } } @@ -4209,7 +4239,7 @@ "typeArguments": [ { "type": "reference", - "id": 301, + "id": 302, "name": "AuthResponse" } ], @@ -4221,7 +4251,7 @@ ] }, { - "id": 121, + "id": 122, "name": "signInWithSSO", "kind": 2048, "kindString": "Method", @@ -4229,13 +4259,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 458, + "line": 472, "character": 8 } ], "signatures": [ { - "id": 122, + "id": 123, "name": "signInWithSSO", "kind": 4096, "kindString": "Call signature", @@ -4252,14 +4282,14 @@ }, "parameters": [ { - "id": 123, + "id": 124, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 508, + "id": 509, "name": "SignInWithSSO" } } @@ -4269,7 +4299,7 @@ "typeArguments": [ { "type": "reference", - "id": 327, + "id": 328, "name": "SSOResponse" } ], @@ -4281,7 +4311,7 @@ ] }, { - "id": 181, + "id": 182, "name": "signOut", "kind": 2048, "kindString": "Method", @@ -4289,13 +4319,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 809, + "line": 823, "character": 8 } ], "signatures": [ { - "id": 182, + "id": 183, "name": "signOut", "kind": 4096, "kindString": "Call signature", @@ -4310,14 +4340,14 @@ { "type": "reflection", "declaration": { - "id": 183, + "id": 184, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 184, + "id": 185, "name": "error", "kind": 1024, "kindString": "Property", @@ -4325,7 +4355,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 809, + "line": 823, "character": 29 } ], @@ -4338,7 +4368,7 @@ }, { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } ] @@ -4349,7 +4379,7 @@ { "title": "Properties", "kind": 1024, - "children": [184] + "children": [185] } ] } @@ -4363,7 +4393,7 @@ ] }, { - "id": 106, + "id": 107, "name": "signUp", "kind": 2048, "kindString": "Method", @@ -4371,31 +4401,32 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 225, + "line": 229, "character": 8 } ], "signatures": [ { - "id": 107, + "id": 108, "name": "signUp", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { "shortText": "Creates a new user.", + "text": "Be aware that if a user account exists in the system you may get back an\nerror message that attempts to hide this information from the user.\n", "returns": "A logged-in session if the server has \"autoconfirm\" ON" }, "parameters": [ { - "id": 108, + "id": 109, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 431, + "id": 432, "name": "SignUpWithPasswordCredentials" } } @@ -4405,7 +4436,7 @@ "typeArguments": [ { "type": "reference", - "id": 301, + "id": 302, "name": "AuthResponse" } ], @@ -4417,7 +4448,7 @@ ] }, { - "id": 144, + "id": 145, "name": "updateUser", "kind": 2048, "kindString": "Method", @@ -4425,13 +4456,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 579, + "line": 593, "character": 8 } ], "signatures": [ { - "id": 145, + "id": 146, "name": "updateUser", "kind": 4096, "kindString": "Call signature", @@ -4441,14 +4472,14 @@ }, "parameters": [ { - "id": 146, + "id": 147, "name": "attributes", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 406, + "id": 407, "name": "UserAttributes" } } @@ -4458,7 +4489,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -4470,7 +4501,7 @@ ] }, { - "id": 118, + "id": 119, "name": "verifyOtp", "kind": 2048, "kindString": "Method", @@ -4478,13 +4509,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 399, + "line": 413, "character": 8 } ], "signatures": [ { - "id": 119, + "id": 120, "name": "verifyOtp", "kind": 4096, "kindString": "Call signature", @@ -4494,14 +4525,14 @@ }, "parameters": [ { - "id": 120, + "id": 121, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 489, + "id": 490, "name": "VerifyOtpParams" } } @@ -4511,7 +4542,7 @@ "typeArguments": [ { "type": "reference", - "id": 301, + "id": 302, "name": "AuthResponse" } ], @@ -4527,17 +4558,17 @@ { "title": "Constructors", "kind": 512, - "children": [76] + "children": [77] }, { "title": "Properties", "kind": 1024, - "children": [79, 80] + "children": [80, 81] }, { "title": "Methods", "kind": 2048, - "children": [124, 141, 102, 185, 160, 196, 154, 112, 115, 109, 121, 181, 106, 144, 118] + "children": [125, 142, 103, 186, 161, 197, 155, 113, 116, 110, 122, 182, 107, 145, 119] } ], "sources": [ @@ -4549,7 +4580,7 @@ ] }, { - "id": 356, + "id": 357, "name": "AMREntry", "kind": 256, "kindString": "Interface", @@ -4566,7 +4597,7 @@ }, "children": [ { - "id": 357, + "id": 358, "name": "method", "kind": 1024, "kindString": "Property", @@ -4587,7 +4618,7 @@ } }, { - "id": 358, + "id": 359, "name": "timestamp", "kind": 1024, "kindString": "Property", @@ -4612,7 +4643,7 @@ { "title": "Properties", "kind": 1024, - "children": [357, 358] + "children": [358, 359] } ], "sources": [ @@ -4624,14 +4655,14 @@ ] }, { - "id": 411, + "id": 412, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 413, + "id": 414, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -4655,7 +4686,7 @@ } }, { - "id": 416, + "id": 417, "name": "ban_duration", "kind": 1024, "kindString": "Property", @@ -4679,7 +4710,7 @@ } }, { - "id": 420, + "id": 421, "name": "data", "kind": 1024, "kindString": "Property", @@ -4703,12 +4734,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 410, + "id": 411, "name": "UserAttributes.data" } }, { - "id": 417, + "id": 418, "name": "email", "kind": 1024, "kindString": "Property", @@ -4731,12 +4762,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 407, + "id": 408, "name": "UserAttributes.email" } }, { - "id": 414, + "id": 415, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -4760,7 +4791,7 @@ } }, { - "id": 419, + "id": 420, "name": "password", "kind": 1024, "kindString": "Property", @@ -4783,12 +4814,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 409, + "id": 410, "name": "UserAttributes.password" } }, { - "id": 418, + "id": 419, "name": "phone", "kind": 1024, "kindString": "Property", @@ -4811,12 +4842,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 408, + "id": 409, "name": "UserAttributes.phone" } }, { - "id": 415, + "id": 416, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -4840,7 +4871,7 @@ } }, { - "id": 412, + "id": 413, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -4868,7 +4899,7 @@ { "title": "Properties", "kind": 1024, - "children": [413, 416, 420, 417, 414, 419, 418, 415, 412] + "children": [414, 417, 421, 418, 415, 420, 419, 416, 413] } ], "sources": [ @@ -4881,13 +4912,13 @@ "extendedTypes": [ { "type": "reference", - "id": 406, + "id": 407, "name": "UserAttributes" } ] }, { - "id": 370, + "id": 371, "name": "Factor", "kind": 256, "kindString": "Interface", @@ -4911,7 +4942,7 @@ }, "children": [ { - "id": 375, + "id": 376, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -4929,7 +4960,7 @@ } }, { - "id": 373, + "id": 374, "name": "factor_type", "kind": 1024, "kindString": "Property", @@ -4950,7 +4981,7 @@ } }, { - "id": 372, + "id": 373, "name": "friendly_name", "kind": 1024, "kindString": "Property", @@ -4973,7 +5004,7 @@ } }, { - "id": 371, + "id": 372, "name": "id", "kind": 1024, "kindString": "Property", @@ -4994,7 +5025,7 @@ } }, { - "id": 374, + "id": 375, "name": "status", "kind": 1024, "kindString": "Property", @@ -5024,7 +5055,7 @@ } }, { - "id": 376, + "id": 377, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -5046,7 +5077,7 @@ { "title": "Properties", "kind": 1024, - "children": [375, 373, 372, 371, 374, 376] + "children": [376, 374, 373, 372, 375, 377] } ], "sources": [ @@ -5058,14 +5089,14 @@ ] }, { - "id": 540, + "id": 541, "name": "GenerateLinkOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 541, + "id": 542, "name": "data", "kind": 1024, "kindString": "Property", @@ -5089,7 +5120,7 @@ } }, { - "id": 542, + "id": 543, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -5116,7 +5147,7 @@ { "title": "Properties", "kind": 1024, - "children": [541, 542] + "children": [542, 543] } ], "sources": [ @@ -5128,7 +5159,7 @@ ] }, { - "id": 699, + "id": 700, "name": "GoTrueAdminMFAApi", "kind": 256, "kindString": "Interface", @@ -5144,14 +5175,14 @@ }, "children": [ { - "id": 703, + "id": 704, "name": "deleteFactor", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 704, + "id": 705, "name": "deleteFactor", "kind": 4096, "kindString": "Call signature", @@ -5171,14 +5202,14 @@ }, "parameters": [ { - "id": 705, + "id": 706, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 683, + "id": 684, "name": "AuthMFAAdminDeleteFactorParams" } } @@ -5188,7 +5219,7 @@ "typeArguments": [ { "type": "reference", - "id": 674, + "id": 675, "name": "AuthMFAAdminDeleteFactorResponse" } ], @@ -5200,14 +5231,14 @@ ] }, { - "id": 700, + "id": 701, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 701, + "id": 702, "name": "listFactors", "kind": 4096, "kindString": "Call signature", @@ -5217,14 +5248,14 @@ }, "parameters": [ { - "id": 702, + "id": 703, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 696, + "id": 697, "name": "AuthMFAAdminListFactorsParams" } } @@ -5234,7 +5265,7 @@ "typeArguments": [ { "type": "reference", - "id": 687, + "id": 688, "name": "AuthMFAAdminListFactorsResponse" } ], @@ -5250,19 +5281,19 @@ { "title": "Methods", "kind": 2048, - "children": [703, 700] + "children": [704, 701] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 876, + "line": 872, "character": 17 } ] }, { - "id": 654, + "id": 655, "name": "GoTrueMFAApi", "kind": 256, "kindString": "Interface", @@ -5272,14 +5303,14 @@ }, "children": [ { - "id": 658, + "id": 659, "name": "challenge", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 659, + "id": 660, "name": "challenge", "kind": 4096, "kindString": "Call signature", @@ -5289,14 +5320,14 @@ }, "parameters": [ { - "id": 660, + "id": 661, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 578, + "id": 579, "name": "MFAChallengeParams" } } @@ -5306,7 +5337,7 @@ "typeArguments": [ { "type": "reference", - "id": 622, + "id": 623, "name": "AuthMFAChallengeResponse" } ], @@ -5318,14 +5349,14 @@ ] }, { - "id": 667, + "id": 668, "name": "challengeAndVerify", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 668, + "id": 669, "name": "challengeAndVerify", "kind": 4096, "kindString": "Call signature", @@ -5335,14 +5366,14 @@ }, "parameters": [ { - "id": 669, + "id": 670, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 581, + "id": 582, "name": "MFAChallengeAndVerifyParams" } } @@ -5352,7 +5383,7 @@ "typeArguments": [ { "type": "reference", - "id": 585, + "id": 586, "name": "AuthMFAVerifyResponse" } ], @@ -5364,14 +5395,14 @@ ] }, { - "id": 655, + "id": 656, "name": "enroll", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 656, + "id": 657, "name": "enroll", "kind": 4096, "kindString": "Call signature", @@ -5382,14 +5413,14 @@ }, "parameters": [ { - "id": 657, + "id": 658, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 565, + "id": 566, "name": "MFAEnrollParams" } } @@ -5399,7 +5430,7 @@ "typeArguments": [ { "type": "reference", - "id": 598, + "id": 599, "name": "AuthMFAEnrollResponse" } ], @@ -5411,14 +5442,14 @@ ] }, { - "id": 672, + "id": 673, "name": "getAuthenticatorAssuranceLevel", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 673, + "id": 674, "name": "getAuthenticatorAssuranceLevel", "kind": 4096, "kindString": "Call signature", @@ -5432,7 +5463,7 @@ "typeArguments": [ { "type": "reference", - "id": 643, + "id": 644, "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse" } ], @@ -5444,20 +5475,20 @@ ] }, { - "id": 670, + "id": 671, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 671, + "id": 672, "name": "listFactors", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Returns the list of MFA factors enabled for this user. For most use cases\nyou should consider using {@link\nGoTrueMFAApi#getAuthenticatorAssuranceLevel}. This uses a cached version\nof the factors and avoids incurring a network call. If you need to update\nthis list, call {@link GoTrueClient#getUser} first.", + "shortText": "Returns the list of MFA factors enabled for this user.", "tags": [ { "tag": "see", @@ -5478,7 +5509,7 @@ "typeArguments": [ { "type": "reference", - "id": 632, + "id": 633, "name": "AuthMFAListFactorsResponse" } ], @@ -5490,14 +5521,14 @@ ] }, { - "id": 664, + "id": 665, "name": "unenroll", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 665, + "id": 666, "name": "unenroll", "kind": 4096, "kindString": "Call signature", @@ -5507,14 +5538,14 @@ }, "parameters": [ { - "id": 666, + "id": 667, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 570, + "id": 571, "name": "MFAUnenrollParams" } } @@ -5524,7 +5555,7 @@ "typeArguments": [ { "type": "reference", - "id": 613, + "id": 614, "name": "AuthMFAUnenrollResponse" } ], @@ -5536,14 +5567,14 @@ ] }, { - "id": 661, + "id": 662, "name": "verify", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 662, + "id": 663, "name": "verify", "kind": 4096, "kindString": "Call signature", @@ -5553,14 +5584,14 @@ }, "parameters": [ { - "id": 663, + "id": 664, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 573, + "id": 574, "name": "MFAVerifyParams" } } @@ -5570,7 +5601,7 @@ "typeArguments": [ { "type": "reference", - "id": 585, + "id": 586, "name": "AuthMFAVerifyResponse" } ], @@ -5586,7 +5617,7 @@ { "title": "Methods", "kind": 2048, - "children": [658, 667, 655, 672, 670, 664, 661] + "children": [659, 668, 656, 673, 671, 665, 662] } ], "sources": [ @@ -5598,14 +5629,14 @@ ] }, { - "id": 347, + "id": 348, "name": "Session", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 350, + "id": 351, "name": "access_token", "kind": 1024, "kindString": "Property", @@ -5626,7 +5657,7 @@ } }, { - "id": 353, + "id": 354, "name": "expires_at", "kind": 1024, "kindString": "Property", @@ -5649,7 +5680,7 @@ } }, { - "id": 352, + "id": 353, "name": "expires_in", "kind": 1024, "kindString": "Property", @@ -5670,7 +5701,7 @@ } }, { - "id": 349, + "id": 350, "name": "provider_refresh_token", "kind": 1024, "kindString": "Property", @@ -5702,7 +5733,7 @@ } }, { - "id": 348, + "id": 349, "name": "provider_token", "kind": 1024, "kindString": "Property", @@ -5734,7 +5765,7 @@ } }, { - "id": 351, + "id": 352, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -5755,7 +5786,7 @@ } }, { - "id": 354, + "id": 355, "name": "token_type", "kind": 1024, "kindString": "Property", @@ -5773,7 +5804,7 @@ } }, { - "id": 355, + "id": 356, "name": "user", "kind": 1024, "kindString": "Property", @@ -5787,7 +5818,7 @@ ], "type": { "type": "reference", - "id": 384, + "id": 385, "name": "User" } } @@ -5796,7 +5827,7 @@ { "title": "Properties", "kind": 1024, - "children": [350, 353, 352, 349, 348, 351, 354, 355] + "children": [351, 354, 353, 350, 349, 352, 355, 356] } ], "sources": [ @@ -5808,14 +5839,14 @@ ] }, { - "id": 421, + "id": 422, "name": "Subscription", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 422, + "id": 423, "name": "id", "kind": 1024, "kindString": "Property", @@ -5836,7 +5867,7 @@ } }, { - "id": 423, + "id": 424, "name": "callback", "kind": 2048, "kindString": "Method", @@ -5850,7 +5881,7 @@ ], "signatures": [ { - "id": 424, + "id": 425, "name": "callback", "kind": 4096, "kindString": "Call signature", @@ -5860,19 +5891,19 @@ }, "parameters": [ { - "id": 425, + "id": 426, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 287, + "id": 288, "name": "AuthChangeEvent" } }, { - "id": 426, + "id": 427, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -5886,7 +5917,7 @@ }, { "type": "reference", - "id": 347, + "id": 348, "name": "Session" } ] @@ -5901,7 +5932,7 @@ ] }, { - "id": 427, + "id": 428, "name": "unsubscribe", "kind": 2048, "kindString": "Method", @@ -5915,7 +5946,7 @@ ], "signatures": [ { - "id": 428, + "id": 429, "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", @@ -5935,12 +5966,12 @@ { "title": "Properties", "kind": 1024, - "children": [422] + "children": [423] }, { "title": "Methods", "kind": 2048, - "children": [423, 427] + "children": [424, 428] } ], "sources": [ @@ -5952,14 +5983,14 @@ ] }, { - "id": 429, + "id": 430, "name": "UpdatableFactorAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 430, + "id": 431, "name": "friendlyName", "kind": 1024, "kindString": "Property", @@ -5981,7 +6012,7 @@ { "title": "Properties", "kind": 1024, - "children": [430] + "children": [431] } ], "sources": [ @@ -5993,14 +6024,14 @@ ] }, { - "id": 384, + "id": 385, "name": "User", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 394, + "id": 395, "name": "action_link", "kind": 1024, "kindString": "Property", @@ -6020,7 +6051,7 @@ } }, { - "id": 386, + "id": 387, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -6034,12 +6065,12 @@ ], "type": { "type": "reference", - "id": 377, + "id": 378, "name": "UserAppMetadata" } }, { - "id": 388, + "id": 389, "name": "aud", "kind": 1024, "kindString": "Property", @@ -6057,7 +6088,7 @@ } }, { - "id": 389, + "id": 390, "name": "confirmation_sent_at", "kind": 1024, "kindString": "Property", @@ -6077,7 +6108,7 @@ } }, { - "id": 398, + "id": 399, "name": "confirmed_at", "kind": 1024, "kindString": "Property", @@ -6097,7 +6128,7 @@ } }, { - "id": 397, + "id": 398, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -6115,7 +6146,7 @@ } }, { - "id": 395, + "id": 396, "name": "email", "kind": 1024, "kindString": "Property", @@ -6135,7 +6166,7 @@ } }, { - "id": 391, + "id": 392, "name": "email_change_sent_at", "kind": 1024, "kindString": "Property", @@ -6155,7 +6186,7 @@ } }, { - "id": 399, + "id": 400, "name": "email_confirmed_at", "kind": 1024, "kindString": "Property", @@ -6175,7 +6206,7 @@ } }, { - "id": 405, + "id": 406, "name": "factors", "kind": 1024, "kindString": "Property", @@ -6193,13 +6224,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 370, + "id": 371, "name": "Factor" } } }, { - "id": 385, + "id": 386, "name": "id", "kind": 1024, "kindString": "Property", @@ -6217,7 +6248,7 @@ } }, { - "id": 404, + "id": 405, "name": "identities", "kind": 1024, "kindString": "Property", @@ -6235,13 +6266,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 359, + "id": 360, "name": "UserIdentity" } } }, { - "id": 393, + "id": 394, "name": "invited_at", "kind": 1024, "kindString": "Property", @@ -6261,7 +6292,7 @@ } }, { - "id": 401, + "id": 402, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", @@ -6281,7 +6312,7 @@ } }, { - "id": 392, + "id": 393, "name": "new_email", "kind": 1024, "kindString": "Property", @@ -6301,7 +6332,7 @@ } }, { - "id": 396, + "id": 397, "name": "phone", "kind": 1024, "kindString": "Property", @@ -6321,7 +6352,7 @@ } }, { - "id": 400, + "id": 401, "name": "phone_confirmed_at", "kind": 1024, "kindString": "Property", @@ -6341,7 +6372,7 @@ } }, { - "id": 390, + "id": 391, "name": "recovery_sent_at", "kind": 1024, "kindString": "Property", @@ -6361,7 +6392,7 @@ } }, { - "id": 402, + "id": 403, "name": "role", "kind": 1024, "kindString": "Property", @@ -6381,7 +6412,7 @@ } }, { - "id": 403, + "id": 404, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -6401,7 +6432,7 @@ } }, { - "id": 387, + "id": 388, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -6415,7 +6446,7 @@ ], "type": { "type": "reference", - "id": 381, + "id": 382, "name": "UserMetadata" } } @@ -6425,8 +6456,8 @@ "title": "Properties", "kind": 1024, "children": [ - 394, 386, 388, 389, 398, 397, 395, 391, 399, 405, 385, 404, 393, 401, 392, 396, 400, - 390, 402, 403, 387 + 395, 387, 389, 390, 399, 398, 396, 392, 400, 406, 386, 405, 394, 402, 393, 397, 401, + 391, 403, 404, 388 ] } ], @@ -6439,14 +6470,14 @@ ] }, { - "id": 377, + "id": 378, "name": "UserAppMetadata", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 378, + "id": 379, "name": "provider", "kind": 1024, "kindString": "Property", @@ -6470,7 +6501,7 @@ { "title": "Properties", "kind": 1024, - "children": [378] + "children": [379] } ], "sources": [ @@ -6481,14 +6512,14 @@ } ], "indexSignature": { - "id": 379, + "id": 380, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 380, + "id": 381, "name": "key", "kind": 32768, "flags": {}, @@ -6505,14 +6536,14 @@ } }, { - "id": 406, + "id": 407, "name": "UserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 410, + "id": 411, "name": "data", "kind": 1024, "kindString": "Property", @@ -6536,7 +6567,7 @@ } }, { - "id": 407, + "id": 408, "name": "email", "kind": 1024, "kindString": "Property", @@ -6559,7 +6590,7 @@ } }, { - "id": 409, + "id": 410, "name": "password", "kind": 1024, "kindString": "Property", @@ -6582,7 +6613,7 @@ } }, { - "id": 408, + "id": 409, "name": "phone", "kind": 1024, "kindString": "Property", @@ -6609,7 +6640,7 @@ { "title": "Properties", "kind": 1024, - "children": [410, 407, 409, 408] + "children": [411, 408, 410, 409] } ], "sources": [ @@ -6622,20 +6653,20 @@ "extendedBy": [ { "type": "reference", - "id": 411, + "id": 412, "name": "AdminUserAttributes" } ] }, { - "id": 359, + "id": 360, "name": "UserIdentity", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 367, + "id": 368, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -6653,7 +6684,7 @@ } }, { - "id": 360, + "id": 361, "name": "id", "kind": 1024, "kindString": "Property", @@ -6671,7 +6702,7 @@ } }, { - "id": 362, + "id": 363, "name": "identity_data", "kind": 1024, "kindString": "Property", @@ -6686,20 +6717,20 @@ "type": { "type": "reflection", "declaration": { - "id": 363, + "id": 364, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 364, + "id": 365, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 365, + "id": 366, "name": "key", "kind": 32768, "flags": {}, @@ -6718,7 +6749,7 @@ } }, { - "id": 368, + "id": 369, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", @@ -6736,7 +6767,7 @@ } }, { - "id": 366, + "id": 367, "name": "provider", "kind": 1024, "kindString": "Property", @@ -6754,7 +6785,7 @@ } }, { - "id": 369, + "id": 370, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -6774,7 +6805,7 @@ } }, { - "id": 361, + "id": 362, "name": "user_id", "kind": 1024, "kindString": "Property", @@ -6796,7 +6827,7 @@ { "title": "Properties", "kind": 1024, - "children": [367, 360, 362, 368, 366, 369, 361] + "children": [368, 361, 363, 369, 367, 370, 362] } ], "sources": [ @@ -6808,7 +6839,7 @@ ] }, { - "id": 381, + "id": 382, "name": "UserMetadata", "kind": 256, "kindString": "Interface", @@ -6821,14 +6852,14 @@ } ], "indexSignature": { - "id": 382, + "id": 383, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 383, + "id": 384, "name": "key", "kind": 32768, "flags": {}, @@ -6845,14 +6876,14 @@ } }, { - "id": 498, + "id": 499, "name": "VerifyEmailOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 499, + "id": 500, "name": "email", "kind": 1024, "kindString": "Property", @@ -6873,7 +6904,7 @@ } }, { - "id": 502, + "id": 503, "name": "options", "kind": 1024, "kindString": "Property", @@ -6890,14 +6921,14 @@ "type": { "type": "reflection", "declaration": { - "id": 503, + "id": 504, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 505, + "id": 506, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -6920,7 +6951,7 @@ } }, { - "id": 504, + "id": 505, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -6947,14 +6978,14 @@ { "title": "Properties", "kind": 1024, - "children": [505, 504] + "children": [506, 505] } ] } } }, { - "id": 500, + "id": 501, "name": "token", "kind": 1024, "kindString": "Property", @@ -6975,7 +7006,7 @@ } }, { - "id": 501, + "id": 502, "name": "type", "kind": 1024, "kindString": "Property", @@ -6992,7 +7023,7 @@ ], "type": { "type": "reference", - "id": 507, + "id": 508, "name": "EmailOtpType" } } @@ -7001,7 +7032,7 @@ { "title": "Properties", "kind": 1024, - "children": [499, 502, 500, 501] + "children": [500, 503, 501, 502] } ], "sources": [ @@ -7013,14 +7044,14 @@ ] }, { - "id": 490, + "id": 491, "name": "VerifyMobileOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 494, + "id": 495, "name": "options", "kind": 1024, "kindString": "Property", @@ -7037,14 +7068,14 @@ "type": { "type": "reflection", "declaration": { - "id": 495, + "id": 496, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 497, + "id": 498, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -7073,7 +7104,7 @@ } }, { - "id": 496, + "id": 497, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -7100,14 +7131,14 @@ { "title": "Properties", "kind": 1024, - "children": [497, 496] + "children": [498, 497] } ] } } }, { - "id": 491, + "id": 492, "name": "phone", "kind": 1024, "kindString": "Property", @@ -7128,7 +7159,7 @@ } }, { - "id": 492, + "id": 493, "name": "token", "kind": 1024, "kindString": "Property", @@ -7149,7 +7180,7 @@ } }, { - "id": 493, + "id": 494, "name": "type", "kind": 1024, "kindString": "Property", @@ -7166,7 +7197,7 @@ ], "type": { "type": "reference", - "id": 506, + "id": 507, "name": "MobileOtpType" } } @@ -7175,7 +7206,7 @@ { "title": "Properties", "kind": 1024, - "children": [494, 491, 492, 493] + "children": [495, 492, 493, 494] } ], "sources": [ @@ -7187,7 +7218,7 @@ ] }, { - "id": 287, + "id": 288, "name": "AuthChangeEvent", "kind": 4194304, "kindString": "Type alias", @@ -7228,14 +7259,14 @@ }, { "type": "reference", - "id": 286, + "id": 287, "name": "AuthChangeEventMFA" } ] } }, { - "id": 286, + "id": 287, "name": "AuthChangeEventMFA", "kind": 4194304, "kindString": "Type alias", @@ -7253,7 +7284,7 @@ } }, { - "id": 683, + "id": 684, "name": "AuthMFAAdminDeleteFactorParams", "kind": 4194304, "kindString": "Type alias", @@ -7269,21 +7300,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 842, + "line": 838, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 684, + "id": 685, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 685, + "id": 686, "name": "id", "kind": 1024, "kindString": "Property", @@ -7294,7 +7325,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 844, + "line": 840, "character": 2 } ], @@ -7304,7 +7335,7 @@ } }, { - "id": 686, + "id": 687, "name": "userId", "kind": 1024, "kindString": "Property", @@ -7315,7 +7346,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 847, + "line": 843, "character": 2 } ], @@ -7329,13 +7360,13 @@ { "title": "Properties", "kind": 1024, - "children": [685, 686] + "children": [686, 687] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 842, + "line": 838, "character": 45 } ] @@ -7343,7 +7374,7 @@ } }, { - "id": 674, + "id": 675, "name": "AuthMFAAdminDeleteFactorResponse", "kind": 4194304, "kindString": "Type alias", @@ -7359,7 +7390,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 829, + "line": 825, "character": 12 } ], @@ -7369,14 +7400,14 @@ { "type": "reflection", "declaration": { - "id": 675, + "id": 676, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 676, + "id": 677, "name": "data", "kind": 1024, "kindString": "Property", @@ -7384,21 +7415,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 831, + "line": 827, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 677, + "id": 678, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 678, + "id": 679, "name": "id", "kind": 1024, "kindString": "Property", @@ -7409,7 +7440,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 833, + "line": 829, "character": 8 } ], @@ -7423,13 +7454,13 @@ { "title": "Properties", "kind": 1024, - "children": [678] + "children": [679] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 831, + "line": 827, "character": 12 } ] @@ -7437,7 +7468,7 @@ } }, { - "id": 679, + "id": 680, "name": "error", "kind": 1024, "kindString": "Property", @@ -7445,7 +7476,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 835, + "line": 831, "character": 6 } ], @@ -7459,13 +7490,13 @@ { "title": "Properties", "kind": 1024, - "children": [676, 679] + "children": [677, 680] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 830, + "line": 826, "character": 4 } ] @@ -7474,14 +7505,14 @@ { "type": "reflection", "declaration": { - "id": 680, + "id": 681, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 681, + "id": 682, "name": "data", "kind": 1024, "kindString": "Property", @@ -7489,7 +7520,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 837, + "line": 833, "character": 6 } ], @@ -7499,7 +7530,7 @@ } }, { - "id": 682, + "id": 683, "name": "error", "kind": 1024, "kindString": "Property", @@ -7507,13 +7538,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 837, + "line": 833, "character": 18 } ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -7522,13 +7553,13 @@ { "title": "Properties", "kind": 1024, - "children": [681, 682] + "children": [682, 683] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 837, + "line": 833, "character": 4 } ] @@ -7538,7 +7569,7 @@ } }, { - "id": 696, + "id": 697, "name": "AuthMFAAdminListFactorsParams", "kind": 4194304, "kindString": "Type alias", @@ -7554,21 +7585,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 862, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 697, + "id": 698, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 698, + "id": 699, "name": "userId", "kind": 1024, "kindString": "Property", @@ -7579,7 +7610,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 868, + "line": 864, "character": 2 } ], @@ -7593,13 +7624,13 @@ { "title": "Properties", "kind": 1024, - "children": [698] + "children": [699] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 862, "character": 44 } ] @@ -7607,7 +7638,7 @@ } }, { - "id": 687, + "id": 688, "name": "AuthMFAAdminListFactorsResponse", "kind": 4194304, "kindString": "Type alias", @@ -7623,7 +7654,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 853, + "line": 849, "character": 12 } ], @@ -7633,18 +7664,83 @@ { "type": "reflection", "declaration": { - "id": 688, + "id": 689, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 689, + "id": 690, "name": "data", "kind": 1024, "kindString": "Property", "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 851, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 691, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 692, + "name": "factors", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "All factors attached to the user." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 853, + "character": 8 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 371, + "name": "Factor" + } + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [692] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 851, + "character": 12 + } + ] + } + } + }, + { + "id": 693, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", @@ -7652,71 +7748,6 @@ "character": 6 } ], - "type": { - "type": "reflection", - "declaration": { - "id": 690, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 691, - "name": "factors", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "All factors attached to the user." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 857, - "character": 8 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 370, - "name": "Factor" - } - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [691] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 855, - "character": 12 - } - ] - } - } - }, - { - "id": 692, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 859, - "character": 6 - } - ], "type": { "type": "literal", "value": null @@ -7727,13 +7758,13 @@ { "title": "Properties", "kind": 1024, - "children": [689, 692] + "children": [690, 693] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 854, + "line": 850, "character": 4 } ] @@ -7742,14 +7773,14 @@ { "type": "reflection", "declaration": { - "id": 693, + "id": 694, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 694, + "id": 695, "name": "data", "kind": 1024, "kindString": "Property", @@ -7757,7 +7788,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 861, + "line": 857, "character": 6 } ], @@ -7767,7 +7798,7 @@ } }, { - "id": 695, + "id": 696, "name": "error", "kind": 1024, "kindString": "Property", @@ -7775,13 +7806,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 861, + "line": 857, "character": 18 } ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -7790,13 +7821,13 @@ { "title": "Properties", "kind": 1024, - "children": [694, 695] + "children": [695, 696] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 861, + "line": 857, "character": 4 } ] @@ -7806,7 +7837,7 @@ } }, { - "id": 622, + "id": 623, "name": "AuthMFAChallengeResponse", "kind": 4194304, "kindString": "Type alias", @@ -7824,14 +7855,14 @@ { "type": "reflection", "declaration": { - "id": 623, + "id": 624, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 624, + "id": 625, "name": "data", "kind": 1024, "kindString": "Property", @@ -7846,14 +7877,14 @@ "type": { "type": "reflection", "declaration": { - "id": 625, + "id": 626, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 627, + "id": 628, "name": "expires_at", "kind": 1024, "kindString": "Property", @@ -7874,7 +7905,7 @@ } }, { - "id": 626, + "id": 627, "name": "id", "kind": 1024, "kindString": "Property", @@ -7899,7 +7930,7 @@ { "title": "Properties", "kind": 1024, - "children": [627, 626] + "children": [628, 627] } ], "sources": [ @@ -7913,7 +7944,7 @@ } }, { - "id": 628, + "id": 629, "name": "error", "kind": 1024, "kindString": "Property", @@ -7935,7 +7966,7 @@ { "title": "Properties", "kind": 1024, - "children": [624, 628] + "children": [625, 629] } ], "sources": [ @@ -7950,14 +7981,14 @@ { "type": "reflection", "declaration": { - "id": 629, + "id": 630, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 630, + "id": 631, "name": "data", "kind": 1024, "kindString": "Property", @@ -7975,7 +8006,7 @@ } }, { - "id": 631, + "id": 632, "name": "error", "kind": 1024, "kindString": "Property", @@ -7989,7 +8020,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -7998,7 +8029,7 @@ { "title": "Properties", "kind": 1024, - "children": [630, 631] + "children": [631, 632] } ], "sources": [ @@ -8014,7 +8045,7 @@ } }, { - "id": 598, + "id": 599, "name": "AuthMFAEnrollResponse", "kind": 4194304, "kindString": "Type alias", @@ -8032,14 +8063,14 @@ { "type": "reflection", "declaration": { - "id": 599, + "id": 600, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 600, + "id": 601, "name": "data", "kind": 1024, "kindString": "Property", @@ -8054,14 +8085,14 @@ "type": { "type": "reflection", "declaration": { - "id": 601, + "id": 602, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 602, + "id": 603, "name": "id", "kind": 1024, "kindString": "Property", @@ -8082,7 +8113,7 @@ } }, { - "id": 604, + "id": 605, "name": "totp", "kind": 1024, "kindString": "Property", @@ -8100,14 +8131,14 @@ "type": { "type": "reflection", "declaration": { - "id": 605, + "id": 606, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 606, + "id": 607, "name": "qr_code", "kind": 1024, "kindString": "Property", @@ -8128,7 +8159,7 @@ } }, { - "id": 607, + "id": 608, "name": "secret", "kind": 1024, "kindString": "Property", @@ -8149,7 +8180,7 @@ } }, { - "id": 608, + "id": 609, "name": "uri", "kind": 1024, "kindString": "Property", @@ -8174,7 +8205,7 @@ { "title": "Properties", "kind": 1024, - "children": [606, 607, 608] + "children": [607, 608, 609] } ], "sources": [ @@ -8188,7 +8219,7 @@ } }, { - "id": 603, + "id": 604, "name": "type", "kind": 1024, "kindString": "Property", @@ -8213,7 +8244,7 @@ { "title": "Properties", "kind": 1024, - "children": [602, 604, 603] + "children": [603, 605, 604] } ], "sources": [ @@ -8227,7 +8258,7 @@ } }, { - "id": 609, + "id": 610, "name": "error", "kind": 1024, "kindString": "Property", @@ -8249,7 +8280,7 @@ { "title": "Properties", "kind": 1024, - "children": [600, 609] + "children": [601, 610] } ], "sources": [ @@ -8264,14 +8295,14 @@ { "type": "reflection", "declaration": { - "id": 610, + "id": 611, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 611, + "id": 612, "name": "data", "kind": 1024, "kindString": "Property", @@ -8289,7 +8320,7 @@ } }, { - "id": 612, + "id": 613, "name": "error", "kind": 1024, "kindString": "Property", @@ -8303,7 +8334,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -8312,7 +8343,7 @@ { "title": "Properties", "kind": 1024, - "children": [611, 612] + "children": [612, 613] } ], "sources": [ @@ -8328,7 +8359,7 @@ } }, { - "id": 643, + "id": 644, "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse", "kind": 4194304, "kindString": "Type alias", @@ -8346,14 +8377,14 @@ { "type": "reflection", "declaration": { - "id": 644, + "id": 645, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 645, + "id": 646, "name": "data", "kind": 1024, "kindString": "Property", @@ -8368,14 +8399,14 @@ "type": { "type": "reflection", "declaration": { - "id": 646, + "id": 647, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 649, + "id": 650, "name": "currentAuthenticationMethods", "kind": 1024, "kindString": "Property", @@ -8394,13 +8425,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 356, + "id": 357, "name": "AMREntry" } } }, { - "id": 647, + "id": 648, "name": "currentLevel", "kind": 1024, "kindString": "Property", @@ -8420,7 +8451,7 @@ "types": [ { "type": "reference", - "id": 642, + "id": 643, "name": "AuthenticatorAssuranceLevels" }, { @@ -8431,7 +8462,7 @@ } }, { - "id": 648, + "id": 649, "name": "nextLevel", "kind": 1024, "kindString": "Property", @@ -8457,7 +8488,7 @@ "types": [ { "type": "reference", - "id": 642, + "id": 643, "name": "AuthenticatorAssuranceLevels" }, { @@ -8472,7 +8503,7 @@ { "title": "Properties", "kind": 1024, - "children": [649, 647, 648] + "children": [650, 648, 649] } ], "sources": [ @@ -8486,7 +8517,7 @@ } }, { - "id": 650, + "id": 651, "name": "error", "kind": 1024, "kindString": "Property", @@ -8508,7 +8539,7 @@ { "title": "Properties", "kind": 1024, - "children": [645, 650] + "children": [646, 651] } ], "sources": [ @@ -8523,14 +8554,14 @@ { "type": "reflection", "declaration": { - "id": 651, + "id": 652, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 652, + "id": 653, "name": "data", "kind": 1024, "kindString": "Property", @@ -8548,7 +8579,7 @@ } }, { - "id": 653, + "id": 654, "name": "error", "kind": 1024, "kindString": "Property", @@ -8562,7 +8593,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -8571,7 +8602,7 @@ { "title": "Properties", "kind": 1024, - "children": [652, 653] + "children": [653, 654] } ], "sources": [ @@ -8587,7 +8618,7 @@ } }, { - "id": 632, + "id": 633, "name": "AuthMFAListFactorsResponse", "kind": 4194304, "kindString": "Type alias", @@ -8605,14 +8636,14 @@ { "type": "reflection", "declaration": { - "id": 633, + "id": 634, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 634, + "id": 635, "name": "data", "kind": 1024, "kindString": "Property", @@ -8627,14 +8658,14 @@ "type": { "type": "reflection", "declaration": { - "id": 635, + "id": 636, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 636, + "id": 637, "name": "all", "kind": 1024, "kindString": "Property", @@ -8653,13 +8684,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 370, + "id": 371, "name": "Factor" } } }, { - "id": 637, + "id": 638, "name": "totp", "kind": 1024, "kindString": "Property", @@ -8678,7 +8709,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 370, + "id": 371, "name": "Factor" } } @@ -8688,7 +8719,7 @@ { "title": "Properties", "kind": 1024, - "children": [636, 637] + "children": [637, 638] } ], "sources": [ @@ -8702,7 +8733,7 @@ } }, { - "id": 638, + "id": 639, "name": "error", "kind": 1024, "kindString": "Property", @@ -8724,7 +8755,7 @@ { "title": "Properties", "kind": 1024, - "children": [634, 638] + "children": [635, 639] } ], "sources": [ @@ -8739,14 +8770,14 @@ { "type": "reflection", "declaration": { - "id": 639, + "id": 640, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 640, + "id": 641, "name": "data", "kind": 1024, "kindString": "Property", @@ -8764,7 +8795,7 @@ } }, { - "id": 641, + "id": 642, "name": "error", "kind": 1024, "kindString": "Property", @@ -8778,7 +8809,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -8787,7 +8818,7 @@ { "title": "Properties", "kind": 1024, - "children": [640, 641] + "children": [641, 642] } ], "sources": [ @@ -8803,7 +8834,7 @@ } }, { - "id": 613, + "id": 614, "name": "AuthMFAUnenrollResponse", "kind": 4194304, "kindString": "Type alias", @@ -8821,14 +8852,14 @@ { "type": "reflection", "declaration": { - "id": 614, + "id": 615, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 615, + "id": 616, "name": "data", "kind": 1024, "kindString": "Property", @@ -8843,14 +8874,14 @@ "type": { "type": "reflection", "declaration": { - "id": 616, + "id": 617, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 617, + "id": 618, "name": "id", "kind": 1024, "kindString": "Property", @@ -8875,7 +8906,7 @@ { "title": "Properties", "kind": 1024, - "children": [617] + "children": [618] } ], "sources": [ @@ -8889,7 +8920,7 @@ } }, { - "id": 618, + "id": 619, "name": "error", "kind": 1024, "kindString": "Property", @@ -8911,7 +8942,7 @@ { "title": "Properties", "kind": 1024, - "children": [615, 618] + "children": [616, 619] } ], "sources": [ @@ -8926,14 +8957,14 @@ { "type": "reflection", "declaration": { - "id": 619, + "id": 620, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 620, + "id": 621, "name": "data", "kind": 1024, "kindString": "Property", @@ -8951,7 +8982,7 @@ } }, { - "id": 621, + "id": 622, "name": "error", "kind": 1024, "kindString": "Property", @@ -8965,7 +8996,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -8974,7 +9005,7 @@ { "title": "Properties", "kind": 1024, - "children": [620, 621] + "children": [621, 622] } ], "sources": [ @@ -8990,7 +9021,7 @@ } }, { - "id": 585, + "id": 586, "name": "AuthMFAVerifyResponse", "kind": 4194304, "kindString": "Type alias", @@ -9008,14 +9039,14 @@ { "type": "reflection", "declaration": { - "id": 586, + "id": 587, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 587, + "id": 588, "name": "data", "kind": 1024, "kindString": "Property", @@ -9030,14 +9061,14 @@ "type": { "type": "reflection", "declaration": { - "id": 588, + "id": 589, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 589, + "id": 590, "name": "access_token", "kind": 1024, "kindString": "Property", @@ -9058,7 +9089,7 @@ } }, { - "id": 591, + "id": 592, "name": "expires_in", "kind": 1024, "kindString": "Property", @@ -9079,7 +9110,7 @@ } }, { - "id": 592, + "id": 593, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -9100,7 +9131,7 @@ } }, { - "id": 590, + "id": 591, "name": "token_type", "kind": 1024, "kindString": "Property", @@ -9121,7 +9152,7 @@ } }, { - "id": 593, + "id": 594, "name": "user", "kind": 1024, "kindString": "Property", @@ -9138,7 +9169,7 @@ ], "type": { "type": "reference", - "id": 384, + "id": 385, "name": "User" } } @@ -9147,7 +9178,7 @@ { "title": "Properties", "kind": 1024, - "children": [589, 591, 592, 590, 593] + "children": [590, 592, 593, 591, 594] } ], "sources": [ @@ -9161,7 +9192,7 @@ } }, { - "id": 594, + "id": 595, "name": "error", "kind": 1024, "kindString": "Property", @@ -9183,7 +9214,7 @@ { "title": "Properties", "kind": 1024, - "children": [587, 594] + "children": [588, 595] } ], "sources": [ @@ -9198,14 +9229,14 @@ { "type": "reflection", "declaration": { - "id": 595, + "id": 596, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 596, + "id": 597, "name": "data", "kind": 1024, "kindString": "Property", @@ -9223,7 +9254,7 @@ } }, { - "id": 597, + "id": 598, "name": "error", "kind": 1024, "kindString": "Property", @@ -9237,7 +9268,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -9246,7 +9277,7 @@ { "title": "Properties", "kind": 1024, - "children": [596, 597] + "children": [597, 598] } ], "sources": [ @@ -9262,7 +9293,7 @@ } }, { - "id": 301, + "id": 302, "name": "AuthResponse", "kind": 4194304, "kindString": "Type alias", @@ -9280,14 +9311,14 @@ { "type": "reflection", "declaration": { - "id": 302, + "id": 303, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 303, + "id": 304, "name": "data", "kind": 1024, "kindString": "Property", @@ -9302,14 +9333,14 @@ "type": { "type": "reflection", "declaration": { - "id": 304, + "id": 305, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 306, + "id": 307, "name": "session", "kind": 1024, "kindString": "Property", @@ -9326,7 +9357,7 @@ "types": [ { "type": "reference", - "id": 347, + "id": 348, "name": "Session" }, { @@ -9337,7 +9368,7 @@ } }, { - "id": 305, + "id": 306, "name": "user", "kind": 1024, "kindString": "Property", @@ -9354,7 +9385,7 @@ "types": [ { "type": "reference", - "id": 384, + "id": 385, "name": "User" }, { @@ -9369,7 +9400,7 @@ { "title": "Properties", "kind": 1024, - "children": [306, 305] + "children": [307, 306] } ], "sources": [ @@ -9383,7 +9414,7 @@ } }, { - "id": 307, + "id": 308, "name": "error", "kind": 1024, "kindString": "Property", @@ -9405,7 +9436,7 @@ { "title": "Properties", "kind": 1024, - "children": [303, 307] + "children": [304, 308] } ], "sources": [ @@ -9420,14 +9451,14 @@ { "type": "reflection", "declaration": { - "id": 308, + "id": 309, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 309, + "id": 310, "name": "data", "kind": 1024, "kindString": "Property", @@ -9442,14 +9473,14 @@ "type": { "type": "reflection", "declaration": { - "id": 310, + "id": 311, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 312, + "id": 313, "name": "session", "kind": 1024, "kindString": "Property", @@ -9467,7 +9498,7 @@ } }, { - "id": 311, + "id": 312, "name": "user", "kind": 1024, "kindString": "Property", @@ -9489,7 +9520,7 @@ { "title": "Properties", "kind": 1024, - "children": [312, 311] + "children": [313, 312] } ], "sources": [ @@ -9503,7 +9534,7 @@ } }, { - "id": 313, + "id": 314, "name": "error", "kind": 1024, "kindString": "Property", @@ -9517,7 +9548,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -9526,7 +9557,7 @@ { "title": "Properties", "kind": 1024, - "children": [309, 313] + "children": [310, 314] } ], "sources": [ @@ -9542,7 +9573,7 @@ } }, { - "id": 642, + "id": 643, "name": "AuthenticatorAssuranceLevels", "kind": 4194304, "kindString": "Type alias", @@ -9569,7 +9600,7 @@ } }, { - "id": 710, + "id": 711, "name": "CallRefreshTokenResult", "kind": 4194304, "kindString": "Type alias", @@ -9577,7 +9608,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 907, + "line": 903, "character": 12 } ], @@ -9587,14 +9618,77 @@ { "type": "reflection", "declaration": { - "id": 711, + "id": 712, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ + { + "id": 714, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 906, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + }, { "id": 713, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 905, + "character": 6 + } + ], + "type": { + "type": "reference", + "id": 348, + "name": "Session" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [714, 713] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 904, + "character": 4 + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 715, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 717, "name": "error", "kind": 1024, "kindString": "Property", @@ -9607,12 +9701,13 @@ } ], "type": { - "type": "literal", - "value": null + "type": "reference", + "id": 735, + "name": "AuthError" } }, { - "id": 712, + "id": 716, "name": "session", "kind": 1024, "kindString": "Property", @@ -9625,9 +9720,8 @@ } ], "type": { - "type": "reference", - "id": 347, - "name": "Session" + "type": "literal", + "value": null } } ], @@ -9635,7 +9729,7 @@ { "title": "Properties", "kind": 1024, - "children": [713, 712] + "children": [717, 716] } ], "sources": [ @@ -9646,75 +9740,12 @@ } ] } - }, - { - "type": "reflection", - "declaration": { - "id": 714, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 716, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 914, - "character": 6 - } - ], - "type": { - "type": "reference", - "id": 727, - "name": "AuthError" - } - }, - { - "id": 715, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 913, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [716, 715] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 912, - "character": 4 - } - ] - } } ] } }, { - "id": 507, + "id": 508, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -9753,7 +9784,7 @@ } }, { - "id": 534, + "id": 535, "name": "GenerateEmailChangeLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -9768,14 +9799,14 @@ "type": { "type": "reflection", "declaration": { - "id": 535, + "id": 536, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 537, + "id": 538, "name": "email", "kind": 1024, "kindString": "Property", @@ -9796,7 +9827,7 @@ } }, { - "id": 538, + "id": 539, "name": "newEmail", "kind": 1024, "kindString": "Property", @@ -9817,7 +9848,7 @@ } }, { - "id": 539, + "id": 540, "name": "options", "kind": 1024, "kindString": "Property", @@ -9836,7 +9867,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -9850,7 +9881,7 @@ } }, { - "id": 536, + "id": 537, "name": "type", "kind": 1024, "kindString": "Property", @@ -9881,7 +9912,7 @@ { "title": "Properties", "kind": 1024, - "children": [537, 538, 539, 536] + "children": [538, 539, 540, 537] } ], "sources": [ @@ -9895,7 +9926,7 @@ } }, { - "id": 524, + "id": 525, "name": "GenerateInviteOrMagiclinkParams", "kind": 4194304, "kindString": "Type alias", @@ -9910,14 +9941,14 @@ "type": { "type": "reflection", "declaration": { - "id": 525, + "id": 526, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 527, + "id": 528, "name": "email", "kind": 1024, "kindString": "Property", @@ -9938,7 +9969,7 @@ } }, { - "id": 528, + "id": 529, "name": "options", "kind": 1024, "kindString": "Property", @@ -9957,7 +9988,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -9980,7 +10011,7 @@ } }, { - "id": 526, + "id": 527, "name": "type", "kind": 1024, "kindString": "Property", @@ -10011,7 +10042,7 @@ { "title": "Properties", "kind": 1024, - "children": [527, 528, 526] + "children": [528, 529, 527] } ], "sources": [ @@ -10025,7 +10056,7 @@ } }, { - "id": 543, + "id": 544, "name": "GenerateLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -10042,29 +10073,29 @@ "types": [ { "type": "reference", - "id": 518, + "id": 519, "name": "GenerateSignupLinkParams" }, { "type": "reference", - "id": 524, + "id": 525, "name": "GenerateInviteOrMagiclinkParams" }, { "type": "reference", - "id": 529, + "id": 530, "name": "GenerateRecoveryLinkParams" }, { "type": "reference", - "id": 534, + "id": 535, "name": "GenerateEmailChangeLinkParams" } ] } }, { - "id": 557, + "id": 558, "name": "GenerateLinkProperties", "kind": 4194304, "kindString": "Type alias", @@ -10082,14 +10113,14 @@ "type": { "type": "reflection", "declaration": { - "id": 558, + "id": 559, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 559, + "id": 560, "name": "action_link", "kind": 1024, "kindString": "Property", @@ -10110,7 +10141,7 @@ } }, { - "id": 560, + "id": 561, "name": "email_otp", "kind": 1024, "kindString": "Property", @@ -10131,7 +10162,7 @@ } }, { - "id": 561, + "id": 562, "name": "hashed_token", "kind": 1024, "kindString": "Property", @@ -10152,7 +10183,7 @@ } }, { - "id": 562, + "id": 563, "name": "redirect_to", "kind": 1024, "kindString": "Property", @@ -10173,7 +10204,7 @@ } }, { - "id": 563, + "id": 564, "name": "verification_type", "kind": 1024, "kindString": "Property", @@ -10190,7 +10221,7 @@ ], "type": { "type": "reference", - "id": 564, + "id": 565, "name": "GenerateLinkType" } } @@ -10199,7 +10230,7 @@ { "title": "Properties", "kind": 1024, - "children": [559, 560, 561, 562, 563] + "children": [560, 561, 562, 563, 564] } ], "sources": [ @@ -10213,7 +10244,7 @@ } }, { - "id": 544, + "id": 545, "name": "GenerateLinkResponse", "kind": 4194304, "kindString": "Type alias", @@ -10231,14 +10262,14 @@ { "type": "reflection", "declaration": { - "id": 545, + "id": 546, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 546, + "id": 547, "name": "data", "kind": 1024, "kindString": "Property", @@ -10253,14 +10284,14 @@ "type": { "type": "reflection", "declaration": { - "id": 547, + "id": 548, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 548, + "id": 549, "name": "properties", "kind": 1024, "kindString": "Property", @@ -10274,12 +10305,12 @@ ], "type": { "type": "reference", - "id": 557, + "id": 558, "name": "GenerateLinkProperties" } }, { - "id": 549, + "id": 550, "name": "user", "kind": 1024, "kindString": "Property", @@ -10293,7 +10324,7 @@ ], "type": { "type": "reference", - "id": 384, + "id": 385, "name": "User" } } @@ -10302,7 +10333,7 @@ { "title": "Properties", "kind": 1024, - "children": [548, 549] + "children": [549, 550] } ], "sources": [ @@ -10316,7 +10347,7 @@ } }, { - "id": 550, + "id": 551, "name": "error", "kind": 1024, "kindString": "Property", @@ -10338,7 +10369,7 @@ { "title": "Properties", "kind": 1024, - "children": [546, 550] + "children": [547, 551] } ], "sources": [ @@ -10353,14 +10384,14 @@ { "type": "reflection", "declaration": { - "id": 551, + "id": 552, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 552, + "id": 553, "name": "data", "kind": 1024, "kindString": "Property", @@ -10375,14 +10406,14 @@ "type": { "type": "reflection", "declaration": { - "id": 553, + "id": 554, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 554, + "id": 555, "name": "properties", "kind": 1024, "kindString": "Property", @@ -10400,7 +10431,7 @@ } }, { - "id": 555, + "id": 556, "name": "user", "kind": 1024, "kindString": "Property", @@ -10422,7 +10453,7 @@ { "title": "Properties", "kind": 1024, - "children": [554, 555] + "children": [555, 556] } ], "sources": [ @@ -10436,7 +10467,7 @@ } }, { - "id": 556, + "id": 557, "name": "error", "kind": 1024, "kindString": "Property", @@ -10450,7 +10481,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -10459,7 +10490,7 @@ { "title": "Properties", "kind": 1024, - "children": [552, 556] + "children": [553, 557] } ], "sources": [ @@ -10475,7 +10506,7 @@ } }, { - "id": 564, + "id": 565, "name": "GenerateLinkType", "kind": 4194304, "kindString": "Type alias", @@ -10518,7 +10549,7 @@ } }, { - "id": 529, + "id": 530, "name": "GenerateRecoveryLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -10533,14 +10564,14 @@ "type": { "type": "reflection", "declaration": { - "id": 530, + "id": 531, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 532, + "id": 533, "name": "email", "kind": 1024, "kindString": "Property", @@ -10561,7 +10592,7 @@ } }, { - "id": 533, + "id": 534, "name": "options", "kind": 1024, "kindString": "Property", @@ -10580,7 +10611,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -10594,7 +10625,7 @@ } }, { - "id": 531, + "id": 532, "name": "type", "kind": 1024, "kindString": "Property", @@ -10616,7 +10647,7 @@ { "title": "Properties", "kind": 1024, - "children": [532, 533, 531] + "children": [533, 534, 532] } ], "sources": [ @@ -10630,7 +10661,7 @@ } }, { - "id": 518, + "id": 519, "name": "GenerateSignupLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -10645,14 +10676,14 @@ "type": { "type": "reflection", "declaration": { - "id": 519, + "id": 520, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 521, + "id": 522, "name": "email", "kind": 1024, "kindString": "Property", @@ -10670,7 +10701,7 @@ } }, { - "id": 523, + "id": 524, "name": "options", "kind": 1024, "kindString": "Property", @@ -10689,7 +10720,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -10712,7 +10743,7 @@ } }, { - "id": 522, + "id": 523, "name": "password", "kind": 1024, "kindString": "Property", @@ -10730,7 +10761,7 @@ } }, { - "id": 520, + "id": 521, "name": "type", "kind": 1024, "kindString": "Property", @@ -10752,7 +10783,7 @@ { "title": "Properties", "kind": 1024, - "children": [521, 523, 522, 520] + "children": [522, 524, 523, 521] } ], "sources": [ @@ -10766,7 +10797,7 @@ } }, { - "id": 288, + "id": 289, "name": "GoTrueClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -10781,14 +10812,14 @@ "type": { "type": "reflection", "declaration": { - "id": 289, + "id": 290, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 297, + "id": 298, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -10808,7 +10839,7 @@ } }, { - "id": 296, + "id": 297, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -10828,7 +10859,7 @@ } }, { - "id": 300, + "id": 301, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -10848,7 +10879,7 @@ } }, { - "id": 291, + "id": 292, "name": "headers", "kind": 1024, "kindString": "Property", @@ -10865,7 +10896,7 @@ "type": { "type": "reflection", "declaration": { - "id": 292, + "id": 293, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -10878,14 +10909,14 @@ } ], "indexSignature": { - "id": 293, + "id": 294, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 294, + "id": 295, "name": "key", "kind": 32768, "flags": {}, @@ -10904,7 +10935,7 @@ } }, { - "id": 298, + "id": 299, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -10924,7 +10955,7 @@ } }, { - "id": 299, + "id": 300, "name": "storage", "kind": 1024, "kindString": "Property", @@ -10940,12 +10971,12 @@ ], "type": { "type": "reference", - "id": 706, + "id": 707, "name": "SupportedStorage" } }, { - "id": 295, + "id": 296, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -10965,7 +10996,7 @@ } }, { - "id": 290, + "id": 291, "name": "url", "kind": 1024, "kindString": "Property", @@ -10989,7 +11020,7 @@ { "title": "Properties", "kind": 1024, - "children": [297, 296, 300, 291, 298, 299, 295, 290] + "children": [298, 297, 301, 292, 299, 300, 296, 291] } ], "sources": [ @@ -11003,7 +11034,7 @@ } }, { - "id": 707, + "id": 708, "name": "InitializeResult", "kind": 4194304, "kindString": "Type alias", @@ -11011,21 +11042,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 905, + "line": 901, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 708, + "id": 709, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 709, + "id": 710, "name": "error", "kind": 1024, "kindString": "Property", @@ -11033,7 +11064,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 905, + "line": 901, "character": 33 } ], @@ -11042,7 +11073,7 @@ "types": [ { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" }, { @@ -11057,13 +11088,13 @@ { "title": "Properties", "kind": 1024, - "children": [709] + "children": [710] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 905, + "line": 901, "character": 31 } ] @@ -11071,7 +11102,7 @@ } }, { - "id": 581, + "id": 582, "name": "MFAChallengeAndVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -11086,14 +11117,14 @@ "type": { "type": "reflection", "declaration": { - "id": 582, + "id": 583, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 584, + "id": 585, "name": "code", "kind": 1024, "kindString": "Property", @@ -11114,7 +11145,7 @@ } }, { - "id": 583, + "id": 584, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -11139,7 +11170,7 @@ { "title": "Properties", "kind": 1024, - "children": [584, 583] + "children": [585, 584] } ], "sources": [ @@ -11153,7 +11184,7 @@ } }, { - "id": 578, + "id": 579, "name": "MFAChallengeParams", "kind": 4194304, "kindString": "Type alias", @@ -11168,14 +11199,14 @@ "type": { "type": "reflection", "declaration": { - "id": 579, + "id": 580, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 580, + "id": 581, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -11200,7 +11231,7 @@ { "title": "Properties", "kind": 1024, - "children": [580] + "children": [581] } ], "sources": [ @@ -11214,7 +11245,7 @@ } }, { - "id": 565, + "id": 566, "name": "MFAEnrollParams", "kind": 4194304, "kindString": "Type alias", @@ -11229,14 +11260,14 @@ "type": { "type": "reflection", "declaration": { - "id": 566, + "id": 567, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 567, + "id": 568, "name": "factorType", "kind": 1024, "kindString": "Property", @@ -11257,7 +11288,7 @@ } }, { - "id": 569, + "id": 570, "name": "friendlyName", "kind": 1024, "kindString": "Property", @@ -11280,7 +11311,7 @@ } }, { - "id": 568, + "id": 569, "name": "issuer", "kind": 1024, "kindString": "Property", @@ -11307,7 +11338,7 @@ { "title": "Properties", "kind": 1024, - "children": [567, 569, 568] + "children": [568, 570, 569] } ], "sources": [ @@ -11321,7 +11352,7 @@ } }, { - "id": 570, + "id": 571, "name": "MFAUnenrollParams", "kind": 4194304, "kindString": "Type alias", @@ -11336,14 +11367,14 @@ "type": { "type": "reflection", "declaration": { - "id": 571, + "id": 572, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 572, + "id": 573, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -11368,7 +11399,7 @@ { "title": "Properties", "kind": 1024, - "children": [572] + "children": [573] } ], "sources": [ @@ -11382,7 +11413,7 @@ } }, { - "id": 573, + "id": 574, "name": "MFAVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -11397,14 +11428,14 @@ "type": { "type": "reflection", "declaration": { - "id": 574, + "id": 575, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 576, + "id": 577, "name": "challengeId", "kind": 1024, "kindString": "Property", @@ -11425,7 +11456,7 @@ } }, { - "id": 577, + "id": 578, "name": "code", "kind": 1024, "kindString": "Property", @@ -11446,7 +11477,7 @@ } }, { - "id": 575, + "id": 576, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -11471,7 +11502,7 @@ { "title": "Properties", "kind": 1024, - "children": [576, 577, 575] + "children": [577, 578, 576] } ], "sources": [ @@ -11485,7 +11516,7 @@ } }, { - "id": 506, + "id": 507, "name": "MobileOtpType", "kind": 4194304, "kindString": "Type alias", @@ -11512,7 +11543,7 @@ } }, { - "id": 314, + "id": 315, "name": "OAuthResponse", "kind": 4194304, "kindString": "Type alias", @@ -11530,14 +11561,14 @@ { "type": "reflection", "declaration": { - "id": 315, + "id": 316, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 316, + "id": 317, "name": "data", "kind": 1024, "kindString": "Property", @@ -11552,14 +11583,14 @@ "type": { "type": "reflection", "declaration": { - "id": 317, + "id": 318, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 318, + "id": 319, "name": "provider", "kind": 1024, "kindString": "Property", @@ -11573,12 +11604,12 @@ ], "type": { "type": "reference", - "id": 285, + "id": 286, "name": "Provider" } }, { - "id": 319, + "id": 320, "name": "url", "kind": 1024, "kindString": "Property", @@ -11600,7 +11631,7 @@ { "title": "Properties", "kind": 1024, - "children": [318, 319] + "children": [319, 320] } ], "sources": [ @@ -11614,7 +11645,7 @@ } }, { - "id": 320, + "id": 321, "name": "error", "kind": 1024, "kindString": "Property", @@ -11636,7 +11667,7 @@ { "title": "Properties", "kind": 1024, - "children": [316, 320] + "children": [317, 321] } ], "sources": [ @@ -11651,14 +11682,14 @@ { "type": "reflection", "declaration": { - "id": 321, + "id": 322, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 322, + "id": 323, "name": "data", "kind": 1024, "kindString": "Property", @@ -11673,14 +11704,14 @@ "type": { "type": "reflection", "declaration": { - "id": 323, + "id": 324, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 324, + "id": 325, "name": "provider", "kind": 1024, "kindString": "Property", @@ -11694,12 +11725,12 @@ ], "type": { "type": "reference", - "id": 285, + "id": 286, "name": "Provider" } }, { - "id": 325, + "id": 326, "name": "url", "kind": 1024, "kindString": "Property", @@ -11721,7 +11752,7 @@ { "title": "Properties", "kind": 1024, - "children": [324, 325] + "children": [325, 326] } ], "sources": [ @@ -11735,7 +11766,7 @@ } }, { - "id": 326, + "id": 327, "name": "error", "kind": 1024, "kindString": "Property", @@ -11749,7 +11780,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -11758,7 +11789,7 @@ { "title": "Properties", "kind": 1024, - "children": [322, 326] + "children": [323, 327] } ], "sources": [ @@ -11774,7 +11805,7 @@ } }, { - "id": 717, + "id": 725, "name": "PageParams", "kind": 4194304, "kindString": "Type alias", @@ -11782,21 +11813,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 917, + "line": 920, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 718, + "id": 726, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 719, + "id": 727, "name": "page", "kind": 1024, "kindString": "Property", @@ -11809,7 +11840,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 919, + "line": 922, "character": 2 } ], @@ -11819,7 +11850,7 @@ } }, { - "id": 720, + "id": 728, "name": "perPage", "kind": 1024, "kindString": "Property", @@ -11832,7 +11863,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 921, + "line": 924, "character": 2 } ], @@ -11846,13 +11877,13 @@ { "title": "Properties", "kind": 1024, - "children": [719, 720] + "children": [727, 728] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 917, + "line": 920, "character": 25 } ] @@ -11860,7 +11891,133 @@ } }, { - "id": 285, + "id": 718, + "name": "Pagination", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 913, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 719, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 721, + "name": "lastPage", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 916, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 720, + "name": "nextPage", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 915, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 722, + "name": "total", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 917, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [721, 720, 722] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 913, + "character": 25 + } + ], + "indexSignature": { + "id": 723, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 724, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + } + } + }, + { + "id": 286, "name": "Provider", "kind": 4194304, "kindString": "Type alias", @@ -11946,7 +12103,7 @@ } }, { - "id": 327, + "id": 328, "name": "SSOResponse", "kind": 4194304, "kindString": "Type alias", @@ -11964,14 +12121,14 @@ { "type": "reflection", "declaration": { - "id": 328, + "id": 329, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 329, + "id": 330, "name": "data", "kind": 1024, "kindString": "Property", @@ -11986,14 +12143,14 @@ "type": { "type": "reflection", "declaration": { - "id": 330, + "id": 331, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 331, + "id": 332, "name": "url", "kind": 1024, "kindString": "Property", @@ -12018,7 +12175,7 @@ { "title": "Properties", "kind": 1024, - "children": [331] + "children": [332] } ], "sources": [ @@ -12032,7 +12189,7 @@ } }, { - "id": 332, + "id": 333, "name": "error", "kind": 1024, "kindString": "Property", @@ -12054,7 +12211,7 @@ { "title": "Properties", "kind": 1024, - "children": [329, 332] + "children": [330, 333] } ], "sources": [ @@ -12069,14 +12226,14 @@ { "type": "reflection", "declaration": { - "id": 333, + "id": 334, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 334, + "id": 335, "name": "data", "kind": 1024, "kindString": "Property", @@ -12094,7 +12251,7 @@ } }, { - "id": 335, + "id": 336, "name": "error", "kind": 1024, "kindString": "Property", @@ -12108,7 +12265,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -12117,7 +12274,7 @@ { "title": "Properties", "kind": 1024, - "children": [334, 335] + "children": [335, 336] } ], "sources": [ @@ -12133,7 +12290,7 @@ } }, { - "id": 478, + "id": 479, "name": "SignInWithOAuthCredentials", "kind": 4194304, "kindString": "Type alias", @@ -12148,14 +12305,14 @@ "type": { "type": "reflection", "declaration": { - "id": 479, + "id": 480, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 481, + "id": 482, "name": "options", "kind": 1024, "kindString": "Property", @@ -12172,14 +12329,14 @@ "type": { "type": "reflection", "declaration": { - "id": 482, + "id": 483, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 485, + "id": 486, "name": "queryParams", "kind": 1024, "kindString": "Property", @@ -12199,7 +12356,7 @@ "type": { "type": "reflection", "declaration": { - "id": 486, + "id": 487, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -12212,14 +12369,14 @@ } ], "indexSignature": { - "id": 487, + "id": 488, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 488, + "id": 489, "name": "key", "kind": 32768, "flags": {}, @@ -12238,7 +12395,7 @@ } }, { - "id": 483, + "id": 484, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -12261,7 +12418,7 @@ } }, { - "id": 484, + "id": 485, "name": "scopes", "kind": 1024, "kindString": "Property", @@ -12288,7 +12445,7 @@ { "title": "Properties", "kind": 1024, - "children": [485, 483, 484] + "children": [486, 484, 485] } ], "sources": [ @@ -12302,7 +12459,7 @@ } }, { - "id": 480, + "id": 481, "name": "provider", "kind": 1024, "kindString": "Property", @@ -12319,7 +12476,7 @@ ], "type": { "type": "reference", - "id": 285, + "id": 286, "name": "Provider" } } @@ -12328,7 +12485,7 @@ { "title": "Properties", "kind": 1024, - "children": [481, 480] + "children": [482, 481] } ], "sources": [ @@ -12342,7 +12499,7 @@ } }, { - "id": 447, + "id": 448, "name": "SignInWithPasswordCredentials", "kind": 4194304, "kindString": "Type alias", @@ -12360,14 +12517,14 @@ { "type": "reflection", "declaration": { - "id": 448, + "id": 449, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 449, + "id": 450, "name": "email", "kind": 1024, "kindString": "Property", @@ -12388,7 +12545,7 @@ } }, { - "id": 451, + "id": 452, "name": "options", "kind": 1024, "kindString": "Property", @@ -12405,14 +12562,14 @@ "type": { "type": "reflection", "declaration": { - "id": 452, + "id": 453, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 454, + "id": 455, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -12435,7 +12592,7 @@ } }, { - "id": 453, + "id": 454, "name": "data", "kind": 1024, "kindString": "Property", @@ -12463,7 +12620,7 @@ { "title": "Properties", "kind": 1024, - "children": [454, 453] + "children": [455, 454] } ], "sources": [ @@ -12477,7 +12634,7 @@ } }, { - "id": 450, + "id": 451, "name": "password", "kind": 1024, "kindString": "Property", @@ -12502,7 +12659,7 @@ { "title": "Properties", "kind": 1024, - "children": [449, 451, 450] + "children": [450, 452, 451] } ], "sources": [ @@ -12517,14 +12674,14 @@ { "type": "reflection", "declaration": { - "id": 455, + "id": 456, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 458, + "id": 459, "name": "options", "kind": 1024, "kindString": "Property", @@ -12541,14 +12698,14 @@ "type": { "type": "reflection", "declaration": { - "id": 459, + "id": 460, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 461, + "id": 462, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -12571,7 +12728,7 @@ } }, { - "id": 460, + "id": 461, "name": "data", "kind": 1024, "kindString": "Property", @@ -12599,7 +12756,7 @@ { "title": "Properties", "kind": 1024, - "children": [461, 460] + "children": [462, 461] } ], "sources": [ @@ -12613,7 +12770,7 @@ } }, { - "id": 457, + "id": 458, "name": "password", "kind": 1024, "kindString": "Property", @@ -12634,7 +12791,7 @@ } }, { - "id": 456, + "id": 457, "name": "phone", "kind": 1024, "kindString": "Property", @@ -12659,7 +12816,7 @@ { "title": "Properties", "kind": 1024, - "children": [458, 457, 456] + "children": [459, 458, 457] } ], "sources": [ @@ -12675,7 +12832,7 @@ } }, { - "id": 462, + "id": 463, "name": "SignInWithPasswordlessCredentials", "kind": 4194304, "kindString": "Type alias", @@ -12693,14 +12850,14 @@ { "type": "reflection", "declaration": { - "id": 463, + "id": 464, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 464, + "id": 465, "name": "email", "kind": 1024, "kindString": "Property", @@ -12721,7 +12878,7 @@ } }, { - "id": 465, + "id": 466, "name": "options", "kind": 1024, "kindString": "Property", @@ -12738,14 +12895,14 @@ "type": { "type": "reflection", "declaration": { - "id": 466, + "id": 467, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 470, + "id": 471, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -12768,7 +12925,7 @@ } }, { - "id": 469, + "id": 470, "name": "data", "kind": 1024, "kindString": "Property", @@ -12792,7 +12949,7 @@ } }, { - "id": 467, + "id": 468, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -12815,7 +12972,7 @@ } }, { - "id": 468, + "id": 469, "name": "shouldCreateUser", "kind": 1024, "kindString": "Property", @@ -12842,7 +12999,7 @@ { "title": "Properties", "kind": 1024, - "children": [470, 469, 467, 468] + "children": [471, 470, 468, 469] } ], "sources": [ @@ -12860,7 +13017,7 @@ { "title": "Properties", "kind": 1024, - "children": [464, 465] + "children": [465, 466] } ], "sources": [ @@ -12875,14 +13032,14 @@ { "type": "reflection", "declaration": { - "id": 471, + "id": 472, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 473, + "id": 474, "name": "options", "kind": 1024, "kindString": "Property", @@ -12899,14 +13056,14 @@ "type": { "type": "reflection", "declaration": { - "id": 474, + "id": 475, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 477, + "id": 478, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -12929,7 +13086,7 @@ } }, { - "id": 476, + "id": 477, "name": "data", "kind": 1024, "kindString": "Property", @@ -12953,7 +13110,7 @@ } }, { - "id": 475, + "id": 476, "name": "shouldCreateUser", "kind": 1024, "kindString": "Property", @@ -12980,7 +13137,7 @@ { "title": "Properties", "kind": 1024, - "children": [477, 476, 475] + "children": [478, 477, 476] } ], "sources": [ @@ -12994,7 +13151,7 @@ } }, { - "id": 472, + "id": 473, "name": "phone", "kind": 1024, "kindString": "Property", @@ -13019,7 +13176,7 @@ { "title": "Properties", "kind": 1024, - "children": [473, 472] + "children": [474, 473] } ], "sources": [ @@ -13035,7 +13192,7 @@ } }, { - "id": 508, + "id": 509, "name": "SignInWithSSO", "kind": 4194304, "kindString": "Type alias", @@ -13053,14 +13210,14 @@ { "type": "reflection", "declaration": { - "id": 509, + "id": 510, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 510, + "id": 511, "name": "options", "kind": 1024, "kindString": "Property", @@ -13077,14 +13234,14 @@ "type": { "type": "reflection", "declaration": { - "id": 511, + "id": 512, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 513, + "id": 514, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -13107,7 +13264,7 @@ } }, { - "id": 512, + "id": 513, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -13134,7 +13291,7 @@ { "title": "Properties", "kind": 1024, - "children": [513, 512] + "children": [514, 513] } ], "sources": [ @@ -13152,7 +13309,7 @@ { "title": "Properties", "kind": 1024, - "children": [510] + "children": [511] } ], "sources": [ @@ -13170,14 +13327,14 @@ { "type": "reflection", "declaration": { - "id": 514, + "id": 515, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 515, + "id": 516, "name": "providerId", "kind": 1024, "kindString": "Property", @@ -13202,7 +13359,7 @@ { "title": "Properties", "kind": 1024, - "children": [515] + "children": [516] } ], "sources": [ @@ -13217,14 +13374,14 @@ { "type": "reflection", "declaration": { - "id": 516, + "id": 517, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 517, + "id": 518, "name": "domain", "kind": 1024, "kindString": "Property", @@ -13249,7 +13406,7 @@ { "title": "Properties", "kind": 1024, - "children": [517] + "children": [518] } ], "sources": [ @@ -13267,7 +13424,7 @@ } }, { - "id": 431, + "id": 432, "name": "SignUpWithPasswordCredentials", "kind": 4194304, "kindString": "Type alias", @@ -13285,14 +13442,14 @@ { "type": "reflection", "declaration": { - "id": 432, + "id": 433, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 433, + "id": 434, "name": "email", "kind": 1024, "kindString": "Property", @@ -13313,7 +13470,7 @@ } }, { - "id": 435, + "id": 436, "name": "options", "kind": 1024, "kindString": "Property", @@ -13330,14 +13487,14 @@ "type": { "type": "reflection", "declaration": { - "id": 436, + "id": 437, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 439, + "id": 440, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -13360,7 +13517,7 @@ } }, { - "id": 438, + "id": 439, "name": "data", "kind": 1024, "kindString": "Property", @@ -13384,7 +13541,7 @@ } }, { - "id": 437, + "id": 438, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -13411,7 +13568,7 @@ { "title": "Properties", "kind": 1024, - "children": [439, 438, 437] + "children": [440, 439, 438] } ], "sources": [ @@ -13425,7 +13582,7 @@ } }, { - "id": 434, + "id": 435, "name": "password", "kind": 1024, "kindString": "Property", @@ -13450,7 +13607,7 @@ { "title": "Properties", "kind": 1024, - "children": [433, 435, 434] + "children": [434, 436, 435] } ], "sources": [ @@ -13465,14 +13622,14 @@ { "type": "reflection", "declaration": { - "id": 440, + "id": 441, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 443, + "id": 444, "name": "options", "kind": 1024, "kindString": "Property", @@ -13489,14 +13646,14 @@ "type": { "type": "reflection", "declaration": { - "id": 444, + "id": 445, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 446, + "id": 447, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -13519,7 +13676,7 @@ } }, { - "id": 445, + "id": 446, "name": "data", "kind": 1024, "kindString": "Property", @@ -13547,7 +13704,7 @@ { "title": "Properties", "kind": 1024, - "children": [446, 445] + "children": [447, 446] } ], "sources": [ @@ -13561,7 +13718,7 @@ } }, { - "id": 442, + "id": 443, "name": "password", "kind": 1024, "kindString": "Property", @@ -13582,7 +13739,7 @@ } }, { - "id": 441, + "id": 442, "name": "phone", "kind": 1024, "kindString": "Property", @@ -13607,7 +13764,7 @@ { "title": "Properties", "kind": 1024, - "children": [443, 442, 441] + "children": [444, 443, 442] } ], "sources": [ @@ -13623,7 +13780,7 @@ } }, { - "id": 706, + "id": 707, "name": "SupportedStorage", "kind": 4194304, "kindString": "Type alias", @@ -13631,7 +13788,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 903, + "line": 899, "character": 12 } ], @@ -13674,7 +13831,7 @@ } }, { - "id": 336, + "id": 337, "name": "UserResponse", "kind": 4194304, "kindString": "Type alias", @@ -13692,14 +13849,14 @@ { "type": "reflection", "declaration": { - "id": 337, + "id": 338, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 338, + "id": 339, "name": "data", "kind": 1024, "kindString": "Property", @@ -13714,14 +13871,14 @@ "type": { "type": "reflection", "declaration": { - "id": 339, + "id": 340, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 340, + "id": 341, "name": "user", "kind": 1024, "kindString": "Property", @@ -13735,7 +13892,7 @@ ], "type": { "type": "reference", - "id": 384, + "id": 385, "name": "User" } } @@ -13744,7 +13901,7 @@ { "title": "Properties", "kind": 1024, - "children": [340] + "children": [341] } ], "sources": [ @@ -13758,7 +13915,7 @@ } }, { - "id": 341, + "id": 342, "name": "error", "kind": 1024, "kindString": "Property", @@ -13780,7 +13937,7 @@ { "title": "Properties", "kind": 1024, - "children": [338, 341] + "children": [339, 342] } ], "sources": [ @@ -13795,14 +13952,14 @@ { "type": "reflection", "declaration": { - "id": 342, + "id": 343, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 343, + "id": 344, "name": "data", "kind": 1024, "kindString": "Property", @@ -13817,14 +13974,14 @@ "type": { "type": "reflection", "declaration": { - "id": 344, + "id": 345, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 345, + "id": 346, "name": "user", "kind": 1024, "kindString": "Property", @@ -13846,7 +14003,7 @@ { "title": "Properties", "kind": 1024, - "children": [345] + "children": [346] } ], "sources": [ @@ -13860,7 +14017,7 @@ } }, { - "id": 346, + "id": 347, "name": "error", "kind": 1024, "kindString": "Property", @@ -13874,7 +14031,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -13883,7 +14040,7 @@ { "title": "Properties", "kind": 1024, - "children": [343, 346] + "children": [344, 347] } ], "sources": [ @@ -13899,7 +14056,7 @@ } }, { - "id": 489, + "id": 490, "name": "VerifyOtpParams", "kind": 4194304, "kindString": "Type alias", @@ -13916,19 +14073,19 @@ "types": [ { "type": "reference", - "id": 490, + "id": 491, "name": "VerifyMobileOtpParams" }, { "type": "reference", - "id": 498, + "id": 499, "name": "VerifyEmailOtpParams" } ] } }, { - "id": 724, + "id": 732, "name": "isAuthApiError", "kind": 64, "kindString": "Function", @@ -13942,14 +14099,14 @@ ], "signatures": [ { - "id": 725, + "id": 733, "name": "isAuthApiError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 726, + "id": 734, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -13966,7 +14123,7 @@ "asserts": false, "targetType": { "type": "reference", - "id": 732, + "id": 740, "name": "AuthApiError" } } @@ -13974,7 +14131,7 @@ ] }, { - "id": 721, + "id": 729, "name": "isAuthError", "kind": 64, "kindString": "Function", @@ -13988,14 +14145,14 @@ ], "signatures": [ { - "id": 722, + "id": 730, "name": "isAuthError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 723, + "id": 731, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -14012,7 +14169,7 @@ "asserts": false, "targetType": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -14024,26 +14181,26 @@ { "title": "Classes", "kind": 128, - "children": [732, 727, 792, 779, 817, 767, 745, 752, 1, 75] + "children": [740, 735, 800, 787, 825, 775, 753, 760, 1, 76] }, { "title": "Interfaces", "kind": 256, - "children": [356, 411, 370, 540, 699, 654, 347, 421, 429, 384, 377, 406, 359, 381, 498, 490] + "children": [357, 412, 371, 541, 700, 655, 348, 422, 430, 385, 378, 407, 360, 382, 499, 491] }, { "title": "Type Aliases", "kind": 4194304, "children": [ - 287, 286, 683, 674, 696, 687, 622, 598, 643, 632, 613, 585, 301, 642, 710, 507, 534, 524, - 543, 557, 544, 564, 529, 518, 288, 707, 581, 578, 565, 570, 573, 506, 314, 717, 285, 327, - 478, 447, 462, 508, 431, 706, 336, 489 + 288, 287, 684, 675, 697, 688, 623, 599, 644, 633, 614, 586, 302, 643, 711, 508, 535, 525, + 544, 558, 545, 565, 530, 519, 289, 708, 582, 579, 566, 571, 574, 507, 315, 725, 718, 286, + 328, 479, 448, 463, 509, 432, 707, 337, 490 ] }, { "title": "Functions", "kind": 64, - "children": [724, 721] + "children": [732, 729] } ], "sources": [ diff --git a/spec/enrichments/tsdoc_v2/gotrue_dereferenced.json b/spec/enrichments/tsdoc_v2/gotrue_dereferenced.json index ec733c758d5..671bcdb77c5 100644 --- a/spec/enrichments/tsdoc_v2/gotrue_dereferenced.json +++ b/spec/enrichments/tsdoc_v2/gotrue_dereferenced.json @@ -7,14 +7,14 @@ "originalName": "", "children": [ { - "id": 732, + "id": 740, "name": "AuthApiError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 733, + "id": 741, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -28,14 +28,14 @@ ], "signatures": [ { - "id": 734, + "id": 742, "name": "new AuthApiError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 735, + "id": 743, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -46,7 +46,7 @@ } }, { - "id": 736, + "id": 744, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -59,24 +59,24 @@ ], "type": { "type": "reference", - "id": 732, + "id": 740, "name": "AuthApiError" }, "overwrites": { "type": "reference", - "id": 729, + "id": 737, "name": "AuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 728, + "id": 736, "name": "AuthError.constructor" } }, { - "id": 737, + "id": 745, "name": "status", "kind": 1024, "kindString": "Property", @@ -94,7 +94,7 @@ } }, { - "id": 738, + "id": 746, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -108,7 +108,7 @@ ], "signatures": [ { - "id": 739, + "id": 747, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -116,14 +116,14 @@ "type": { "type": "reflection", "declaration": { - "id": 740, + "id": 748, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 742, + "id": 750, "name": "message", "kind": 1024, "kindString": "Property", @@ -142,7 +142,7 @@ "defaultValue": "..." }, { - "id": 741, + "id": 749, "name": "name", "kind": 1024, "kindString": "Property", @@ -161,7 +161,7 @@ "defaultValue": "..." }, { - "id": 743, + "id": 751, "name": "status", "kind": 1024, "kindString": "Property", @@ -184,7 +184,7 @@ { "title": "Properties", "kind": 1024, - "children": [742, 741, 743] + "children": [750, 749, 751] } ] } @@ -197,17 +197,17 @@ { "title": "Constructors", "kind": 512, - "children": [733] + "children": [741] }, { "title": "Properties", "kind": 1024, - "children": [737] + "children": [745] }, { "title": "Methods", "kind": 2048, - "children": [738] + "children": [746] } ], "sources": [ @@ -220,20 +220,20 @@ "extendedTypes": [ { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } ] }, { - "id": 727, + "id": 735, "name": "AuthError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 728, + "id": 736, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -247,14 +247,14 @@ ], "signatures": [ { - "id": 729, + "id": 737, "name": "new AuthError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 730, + "id": 738, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -267,7 +267,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" }, "overwrites": { @@ -286,7 +286,7 @@ { "title": "Constructors", "kind": 512, - "children": [728] + "children": [736] } ], "sources": [ @@ -307,30 +307,30 @@ "extendedBy": [ { "type": "reference", - "id": 732, + "id": 740, "name": "AuthApiError" }, { "type": "reference", - "id": 745, + "id": 753, "name": "AuthUnknownError" }, { "type": "reference", - "id": 752, + "id": 760, "name": "CustomAuthError" } ] }, { - "id": 792, + "id": 800, "name": "AuthImplicitGrantRedirectError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 793, + "id": 801, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -344,14 +344,14 @@ ], "signatures": [ { - "id": 794, + "id": 802, "name": "new AuthImplicitGrantRedirectError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 795, + "id": 803, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -362,7 +362,7 @@ } }, { - "id": 796, + "id": 804, "name": "details", "kind": 32768, "kindString": "Parameter", @@ -377,14 +377,14 @@ { "type": "reflection", "declaration": { - "id": 797, + "id": 805, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 799, + "id": 807, "name": "code", "kind": 1024, "kindString": "Property", @@ -402,7 +402,7 @@ } }, { - "id": 798, + "id": 806, "name": "error", "kind": 1024, "kindString": "Property", @@ -424,7 +424,7 @@ { "title": "Properties", "kind": 1024, - "children": [799, 798] + "children": [807, 806] } ] } @@ -436,24 +436,24 @@ ], "type": { "type": "reference", - "id": 792, + "id": 800, "name": "AuthImplicitGrantRedirectError" }, "overwrites": { "type": "reference", - "id": 754, + "id": 762, "name": "CustomAuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 753, + "id": 761, "name": "CustomAuthError.constructor" } }, { - "id": 800, + "id": 808, "name": "details", "kind": 1024, "kindString": "Property", @@ -475,14 +475,14 @@ { "type": "reflection", "declaration": { - "id": 801, + "id": 809, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 803, + "id": 811, "name": "code", "kind": 1024, "kindString": "Property", @@ -500,7 +500,7 @@ } }, { - "id": 802, + "id": 810, "name": "error", "kind": 1024, "kindString": "Property", @@ -522,7 +522,7 @@ { "title": "Properties", "kind": 1024, - "children": [803, 802] + "children": [811, 810] } ] } @@ -531,588 +531,6 @@ }, "defaultValue": "null" }, - { - "id": 814, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 47, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 758, - "name": "CustomAuthError.name" - } - }, - { - "id": 815, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 48, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "id": 759, - "name": "CustomAuthError.status" - } - }, - { - "id": 804, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 83, - "character": 2 - } - ], - "signatures": [ - { - "id": 805, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 806, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 810, - "name": "details", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 88, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 811, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 813, - "name": "code", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 77, - "character": 28 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 812, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 77, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [813, 812] - } - ] - } - } - ] - }, - "defaultValue": "..." - }, - { - "id": 808, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 86, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 807, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 85, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 809, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 87, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [810, 808, 807, 809] - } - ] - } - }, - "overwrites": { - "type": "reference", - "id": 761, - "name": "CustomAuthError.toJSON" - } - } - ], - "overwrites": { - "type": "reference", - "id": 760, - "name": "CustomAuthError.toJSON" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [793] - }, - { - "title": "Properties", - "kind": 1024, - "children": [800, 814, 815] - }, - { - "title": "Methods", - "kind": 2048, - "children": [804] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 76, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 752, - "name": "CustomAuthError" - } - ] - }, - { - "id": 779, - "name": "AuthInvalidCredentialsError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 780, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 71, - "character": 2 - } - ], - "signatures": [ - { - "id": 781, - "name": "new AuthInvalidCredentialsError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 782, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 779, - "name": "AuthInvalidCredentialsError" - }, - "overwrites": { - "type": "reference", - "id": 754, - "name": "CustomAuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 753, - "name": "CustomAuthError.constructor" - } - }, - { - "id": 783, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 47, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 758, - "name": "CustomAuthError.name" - } - }, - { - "id": 784, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 48, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "id": 759, - "name": "CustomAuthError.status" - } - }, - { - "id": 785, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 55, - "character": 2 - } - ], - "signatures": [ - { - "id": 786, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 787, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 789, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 58, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 788, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 57, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 790, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 59, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [789, 788, 790] - } - ] - } - }, - "inheritedFrom": { - "type": "reference", - "id": 761, - "name": "CustomAuthError.toJSON" - } - } - ], - "inheritedFrom": { - "type": "reference", - "id": 760, - "name": "CustomAuthError.toJSON" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [780] - }, - { - "title": "Properties", - "kind": 1024, - "children": [783, 784] - }, - { - "title": "Methods", - "kind": 2048, - "children": [785] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 70, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 752, - "name": "CustomAuthError" - } - ] - }, - { - "id": 817, - "name": "AuthRetryableFetchError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 818, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 94, - "character": 2 - } - ], - "signatures": [ - { - "id": 819, - "name": "new AuthRetryableFetchError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 820, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 821, - "name": "status", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "id": 817, - "name": "AuthRetryableFetchError" - }, - "overwrites": { - "type": "reference", - "id": 754, - "name": "CustomAuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 753, - "name": "CustomAuthError.constructor" - } - }, { "id": 822, "name": "name", @@ -1132,7 +550,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 758, + "id": 766, "name": "CustomAuthError.name" } }, @@ -1155,12 +573,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 759, + "id": 767, "name": "CustomAuthError.status" } }, { - "id": 824, + "id": 812, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -1168,13 +586,13 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 55, + "line": 83, "character": 2 } ], "signatures": [ { - "id": 825, + "id": 813, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -1182,14 +600,93 @@ "type": { "type": "reflection", "declaration": { - "id": 826, + "id": 814, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 828, + "id": 818, + "name": "details", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 88, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reflection", + "declaration": { + "id": 819, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 821, + "name": "code", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 77, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 820, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 77, + "character": 13 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [821, 820] + } + ] + } + } + ] + }, + "defaultValue": "..." + }, + { + "id": 816, "name": "message", "kind": 1024, "kindString": "Property", @@ -1197,7 +694,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 58, + "line": 86, "character": 6 } ], @@ -1208,7 +705,7 @@ "defaultValue": "..." }, { - "id": 827, + "id": 815, "name": "name", "kind": 1024, "kindString": "Property", @@ -1216,7 +713,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 57, + "line": 85, "character": 6 } ], @@ -1227,7 +724,7 @@ "defaultValue": "..." }, { - "id": 829, + "id": 817, "name": "status", "kind": 1024, "kindString": "Property", @@ -1235,7 +732,7 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 59, + "line": 87, "character": 6 } ], @@ -1250,21 +747,21 @@ { "title": "Properties", "kind": 1024, - "children": [828, 827, 829] + "children": [818, 816, 815, 817] } ] } }, - "inheritedFrom": { + "overwrites": { "type": "reference", - "id": 761, + "id": 769, "name": "CustomAuthError.toJSON" } } ], - "inheritedFrom": { + "overwrites": { "type": "reference", - "id": 760, + "id": 768, "name": "CustomAuthError.toJSON" } } @@ -1273,43 +770,43 @@ { "title": "Constructors", "kind": 512, - "children": [818] + "children": [801] }, { "title": "Properties", "kind": 1024, - "children": [822, 823] + "children": [808, 822, 823] }, { "title": "Methods", "kind": 2048, - "children": [824] + "children": [812] } ], "sources": [ { "fileName": "src/lib/errors.ts", - "line": 93, + "line": 76, "character": 13 } ], "extendedTypes": [ { "type": "reference", - "id": 752, + "id": 760, "name": "CustomAuthError" } ] }, { - "id": 767, - "name": "AuthSessionMissingError", + "id": 787, + "name": "AuthInvalidCredentialsError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 768, + "id": 788, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -1317,37 +814,50 @@ "sources": [ { "fileName": "src/lib/errors.ts", - "line": 65, + "line": 71, "character": 2 } ], "signatures": [ { - "id": 769, - "name": "new AuthSessionMissingError", + "id": 789, + "name": "new AuthInvalidCredentialsError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, + "parameters": [ + { + "id": 790, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], "type": { "type": "reference", - "id": 767, - "name": "AuthSessionMissingError" + "id": 787, + "name": "AuthInvalidCredentialsError" }, "overwrites": { "type": "reference", - "id": 754, + "id": 762, "name": "CustomAuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 753, + "id": 761, "name": "CustomAuthError.constructor" } }, { - "id": 770, + "id": 791, "name": "name", "kind": 1024, "kindString": "Property", @@ -1365,12 +875,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 758, + "id": 766, "name": "CustomAuthError.name" } }, { - "id": 771, + "id": 792, "name": "status", "kind": 1024, "kindString": "Property", @@ -1388,12 +898,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 759, + "id": 767, "name": "CustomAuthError.status" } }, { - "id": 772, + "id": 793, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -1407,7 +917,7 @@ ], "signatures": [ { - "id": 773, + "id": 794, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -1415,14 +925,14 @@ "type": { "type": "reflection", "declaration": { - "id": 774, + "id": 795, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 776, + "id": 797, "name": "message", "kind": 1024, "kindString": "Property", @@ -1441,7 +951,7 @@ "defaultValue": "..." }, { - "id": 775, + "id": 796, "name": "name", "kind": 1024, "kindString": "Property", @@ -1460,7 +970,7 @@ "defaultValue": "..." }, { - "id": 777, + "id": 798, "name": "status", "kind": 1024, "kindString": "Property", @@ -1483,21 +993,21 @@ { "title": "Properties", "kind": 1024, - "children": [776, 775, 777] + "children": [797, 796, 798] } ] } }, "inheritedFrom": { "type": "reference", - "id": 761, + "id": 769, "name": "CustomAuthError.toJSON" } } ], "inheritedFrom": { "type": "reference", - "id": 760, + "id": 768, "name": "CustomAuthError.toJSON" } } @@ -1506,17 +1016,507 @@ { "title": "Constructors", "kind": 512, - "children": [768] + "children": [788] }, { "title": "Properties", "kind": 1024, - "children": [770, 771] + "children": [791, 792] }, { "title": "Methods", "kind": 2048, - "children": [772] + "children": [793] + } + ], + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 70, + "character": 13 + } + ], + "extendedTypes": [ + { + "type": "reference", + "id": 760, + "name": "CustomAuthError" + } + ] + }, + { + "id": 825, + "name": "AuthRetryableFetchError", + "kind": 128, + "kindString": "Class", + "flags": {}, + "children": [ + { + "id": 826, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 94, + "character": 2 + } + ], + "signatures": [ + { + "id": 827, + "name": "new AuthRetryableFetchError", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 828, + "name": "message", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 829, + "name": "status", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "id": 825, + "name": "AuthRetryableFetchError" + }, + "overwrites": { + "type": "reference", + "id": 762, + "name": "CustomAuthError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "id": 761, + "name": "CustomAuthError.constructor" + } + }, + { + "id": 830, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 47, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "id": 766, + "name": "CustomAuthError.name" + } + }, + { + "id": 831, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 48, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "id": 767, + "name": "CustomAuthError.status" + } + }, + { + "id": 832, + "name": "toJSON", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 55, + "character": 2 + } + ], + "signatures": [ + { + "id": 833, + "name": "toJSON", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 834, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 836, + "name": "message", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 58, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 835, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 57, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 837, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 59, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [836, 835, 837] + } + ] + } + }, + "inheritedFrom": { + "type": "reference", + "id": 769, + "name": "CustomAuthError.toJSON" + } + } + ], + "inheritedFrom": { + "type": "reference", + "id": 768, + "name": "CustomAuthError.toJSON" + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [826] + }, + { + "title": "Properties", + "kind": 1024, + "children": [830, 831] + }, + { + "title": "Methods", + "kind": 2048, + "children": [832] + } + ], + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 93, + "character": 13 + } + ], + "extendedTypes": [ + { + "type": "reference", + "id": 760, + "name": "CustomAuthError" + } + ] + }, + { + "id": 775, + "name": "AuthSessionMissingError", + "kind": 128, + "kindString": "Class", + "flags": {}, + "children": [ + { + "id": 776, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 65, + "character": 2 + } + ], + "signatures": [ + { + "id": 777, + "name": "new AuthSessionMissingError", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "type": { + "type": "reference", + "id": 775, + "name": "AuthSessionMissingError" + }, + "overwrites": { + "type": "reference", + "id": 762, + "name": "CustomAuthError.constructor" + } + } + ], + "overwrites": { + "type": "reference", + "id": 761, + "name": "CustomAuthError.constructor" + } + }, + { + "id": 778, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 47, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "id": 766, + "name": "CustomAuthError.name" + } + }, + { + "id": 779, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 48, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "id": 767, + "name": "CustomAuthError.status" + } + }, + { + "id": 780, + "name": "toJSON", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 55, + "character": 2 + } + ], + "signatures": [ + { + "id": 781, + "name": "toJSON", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 782, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 784, + "name": "message", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 58, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 783, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 57, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 785, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/errors.ts", + "line": 59, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [784, 783, 785] + } + ] + } + }, + "inheritedFrom": { + "type": "reference", + "id": 769, + "name": "CustomAuthError.toJSON" + } + } + ], + "inheritedFrom": { + "type": "reference", + "id": 768, + "name": "CustomAuthError.toJSON" + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [776] + }, + { + "title": "Properties", + "kind": 1024, + "children": [778, 779] + }, + { + "title": "Methods", + "kind": 2048, + "children": [780] } ], "sources": [ @@ -1529,20 +1529,20 @@ "extendedTypes": [ { "type": "reference", - "id": 752, + "id": 760, "name": "CustomAuthError" } ] }, { - "id": 745, + "id": 753, "name": "AuthUnknownError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 746, + "id": 754, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -1556,14 +1556,14 @@ ], "signatures": [ { - "id": 747, + "id": 755, "name": "new AuthUnknownError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 748, + "id": 756, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -1574,7 +1574,7 @@ } }, { - "id": 749, + "id": 757, "name": "originalError", "kind": 32768, "kindString": "Parameter", @@ -1587,24 +1587,24 @@ ], "type": { "type": "reference", - "id": 745, + "id": 753, "name": "AuthUnknownError" }, "overwrites": { "type": "reference", - "id": 729, + "id": 737, "name": "AuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 728, + "id": 736, "name": "AuthError.constructor" } }, { - "id": 750, + "id": 758, "name": "originalError", "kind": 1024, "kindString": "Property", @@ -1626,12 +1626,12 @@ { "title": "Constructors", "kind": 512, - "children": [746] + "children": [754] }, { "title": "Properties", "kind": 1024, - "children": [750] + "children": [758] } ], "sources": [ @@ -1644,20 +1644,20 @@ "extendedTypes": [ { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } ] }, { - "id": 752, + "id": 760, "name": "CustomAuthError", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 753, + "id": 761, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -1671,14 +1671,14 @@ ], "signatures": [ { - "id": 754, + "id": 762, "name": "new CustomAuthError", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 755, + "id": 763, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -1689,7 +1689,7 @@ } }, { - "id": 756, + "id": 764, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -1700,7 +1700,7 @@ } }, { - "id": 757, + "id": 765, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -1713,24 +1713,24 @@ ], "type": { "type": "reference", - "id": 752, + "id": 760, "name": "CustomAuthError" }, "overwrites": { "type": "reference", - "id": 729, + "id": 737, "name": "AuthError.constructor" } } ], "overwrites": { "type": "reference", - "id": 728, + "id": 736, "name": "AuthError.constructor" } }, { - "id": 758, + "id": 766, "name": "name", "kind": 1024, "kindString": "Property", @@ -1752,7 +1752,7 @@ } }, { - "id": 759, + "id": 767, "name": "status", "kind": 1024, "kindString": "Property", @@ -1770,7 +1770,7 @@ } }, { - "id": 760, + "id": 768, "name": "toJSON", "kind": 2048, "kindString": "Method", @@ -1784,7 +1784,7 @@ ], "signatures": [ { - "id": 761, + "id": 769, "name": "toJSON", "kind": 4096, "kindString": "Call signature", @@ -1792,14 +1792,14 @@ "type": { "type": "reflection", "declaration": { - "id": 762, + "id": 770, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 764, + "id": 772, "name": "message", "kind": 1024, "kindString": "Property", @@ -1818,7 +1818,7 @@ "defaultValue": "..." }, { - "id": 763, + "id": 771, "name": "name", "kind": 1024, "kindString": "Property", @@ -1837,7 +1837,7 @@ "defaultValue": "..." }, { - "id": 765, + "id": 773, "name": "status", "kind": 1024, "kindString": "Property", @@ -1860,7 +1860,7 @@ { "title": "Properties", "kind": 1024, - "children": [764, 763, 765] + "children": [772, 771, 773] } ] } @@ -1873,17 +1873,17 @@ { "title": "Constructors", "kind": 512, - "children": [753] + "children": [761] }, { "title": "Properties", "kind": 1024, - "children": [758, 759] + "children": [766, 767] }, { "title": "Methods", "kind": 2048, - "children": [760] + "children": [768] } ], "sources": [ @@ -1896,29 +1896,29 @@ "extendedTypes": [ { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } ], "extendedBy": [ { "type": "reference", - "id": 767, + "id": 775, "name": "AuthSessionMissingError" }, { "type": "reference", - "id": 779, + "id": 787, "name": "AuthInvalidCredentialsError" }, { "type": "reference", - "id": 792, + "id": 800, "name": "AuthImplicitGrantRedirectError" }, { "type": "reference", - "id": 817, + "id": 825, "name": "AuthRetryableFetchError" } ] @@ -1939,7 +1939,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 28, + "line": 35, "character": 2 } ], @@ -1977,7 +1977,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 37, + "line": 44, "character": 4 } ], @@ -2067,7 +2067,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 34, + "line": 41, "character": 4 } ], @@ -2114,7 +2114,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 33, + "line": 40, "character": 4 } ], @@ -2155,16 +2155,16 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 20, + "line": 27, "character": 2 } ], "type": { "type": "reference", - "id": 699, + "id": 700, "name": "GoTrueAdminMFAApi", "dereferenced": { - "id": 699, + "id": 700, "name": "GoTrueAdminMFAApi", "kind": 256, "kindString": "Interface", @@ -2180,14 +2180,14 @@ }, "children": [ { - "id": 703, + "id": 704, "name": "deleteFactor", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 704, + "id": 705, "name": "deleteFactor", "kind": 4096, "kindString": "Call signature", @@ -2207,17 +2207,17 @@ }, "parameters": [ { - "id": 705, + "id": 706, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 683, + "id": 684, "name": "AuthMFAAdminDeleteFactorParams", "dereferenced": { - "id": 683, + "id": 684, "name": "AuthMFAAdminDeleteFactorParams", "kind": 4194304, "kindString": "Type alias", @@ -2233,21 +2233,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 842, + "line": 838, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 684, + "id": 685, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 685, + "id": 686, "name": "id", "kind": 1024, "kindString": "Property", @@ -2258,7 +2258,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 844, + "line": 840, "character": 2 } ], @@ -2268,7 +2268,7 @@ } }, { - "id": 686, + "id": 687, "name": "userId", "kind": 1024, "kindString": "Property", @@ -2279,7 +2279,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 847, + "line": 843, "character": 2 } ], @@ -2293,13 +2293,13 @@ { "title": "Properties", "kind": 1024, - "children": [685, 686] + "children": [686, 687] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 842, + "line": 838, "character": 45 } ] @@ -2314,7 +2314,7 @@ "typeArguments": [ { "type": "reference", - "id": 674, + "id": 675, "name": "AuthMFAAdminDeleteFactorResponse" } ], @@ -2326,14 +2326,14 @@ ] }, { - "id": 700, + "id": 701, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 701, + "id": 702, "name": "listFactors", "kind": 4096, "kindString": "Call signature", @@ -2343,17 +2343,17 @@ }, "parameters": [ { - "id": 702, + "id": 703, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 696, + "id": 697, "name": "AuthMFAAdminListFactorsParams", "dereferenced": { - "id": 696, + "id": 697, "name": "AuthMFAAdminListFactorsParams", "kind": 4194304, "kindString": "Type alias", @@ -2369,21 +2369,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 862, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 697, + "id": 698, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 698, + "id": 699, "name": "userId", "kind": 1024, "kindString": "Property", @@ -2394,7 +2394,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 868, + "line": 864, "character": 2 } ], @@ -2408,13 +2408,13 @@ { "title": "Properties", "kind": 1024, - "children": [698] + "children": [699] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 862, "character": 44 } ] @@ -2429,7 +2429,7 @@ "typeArguments": [ { "type": "reference", - "id": 687, + "id": 688, "name": "AuthMFAAdminListFactorsResponse" } ], @@ -2445,13 +2445,13 @@ { "title": "Methods", "kind": 2048, - "children": [703, 700] + "children": [704, 701] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 876, + "line": 872, "character": 17 } ] @@ -2467,7 +2467,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 139, + "line": 146, "character": 8 } ], @@ -2490,17 +2490,17 @@ "flags": {}, "type": { "type": "reference", - "id": 411, + "id": 412, "name": "AdminUserAttributes", "dereferenced": { - "id": 411, + "id": 412, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 413, + "id": 414, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -2524,7 +2524,7 @@ } }, { - "id": 416, + "id": 417, "name": "ban_duration", "kind": 1024, "kindString": "Property", @@ -2548,7 +2548,7 @@ } }, { - "id": 420, + "id": 421, "name": "data", "kind": 1024, "kindString": "Property", @@ -2572,12 +2572,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 410, + "id": 411, "name": "UserAttributes.data" } }, { - "id": 417, + "id": 418, "name": "email", "kind": 1024, "kindString": "Property", @@ -2600,12 +2600,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 407, + "id": 408, "name": "UserAttributes.email" } }, { - "id": 414, + "id": 415, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -2629,7 +2629,7 @@ } }, { - "id": 419, + "id": 420, "name": "password", "kind": 1024, "kindString": "Property", @@ -2652,12 +2652,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 409, + "id": 410, "name": "UserAttributes.password" } }, { - "id": 418, + "id": 419, "name": "phone", "kind": 1024, "kindString": "Property", @@ -2680,12 +2680,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 408, + "id": 409, "name": "UserAttributes.phone" } }, { - "id": 415, + "id": 416, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -2709,7 +2709,7 @@ } }, { - "id": 412, + "id": 413, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -2737,7 +2737,7 @@ { "title": "Properties", "kind": 1024, - "children": [413, 416, 420, 417, 414, 419, 418, 415, 412] + "children": [414, 417, 421, 418, 415, 420, 419, 416, 413] } ], "sources": [ @@ -2750,7 +2750,7 @@ "extendedTypes": [ { "type": "reference", - "id": 406, + "id": 407, "name": "UserAttributes" } ] @@ -2763,7 +2763,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -2775,7 +2775,7 @@ ] }, { - "id": 66, + "id": 67, "name": "deleteUser", "kind": 2048, "kindString": "Method", @@ -2783,13 +2783,13 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 234, + "line": 260, "character": 8 } ], "signatures": [ { - "id": 67, + "id": 68, "name": "deleteUser", "kind": 4096, "kindString": "Call signature", @@ -2799,7 +2799,7 @@ }, "parameters": [ { - "id": 68, + "id": 69, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -2818,7 +2818,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -2838,7 +2838,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 105, + "line": 112, "character": 8 } ], @@ -2861,10 +2861,10 @@ "flags": {}, "type": { "type": "reference", - "id": 543, + "id": 544, "name": "GenerateLinkParams", "dereferenced": { - "id": 543, + "id": 544, "name": "GenerateLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -2880,7 +2880,7 @@ "type": "union", "types": [ { - "id": 518, + "id": 519, "name": "GenerateSignupLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -2895,14 +2895,14 @@ "type": { "type": "reflection", "declaration": { - "id": 519, + "id": 520, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 521, + "id": 522, "name": "email", "kind": 1024, "kindString": "Property", @@ -2920,7 +2920,7 @@ } }, { - "id": 523, + "id": 524, "name": "options", "kind": 1024, "kindString": "Property", @@ -2939,7 +2939,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -2962,7 +2962,7 @@ } }, { - "id": 522, + "id": 523, "name": "password", "kind": 1024, "kindString": "Property", @@ -2980,7 +2980,7 @@ } }, { - "id": 520, + "id": 521, "name": "type", "kind": 1024, "kindString": "Property", @@ -3002,7 +3002,7 @@ { "title": "Properties", "kind": 1024, - "children": [521, 523, 522, 520] + "children": [522, 524, 523, 521] } ], "sources": [ @@ -3016,7 +3016,7 @@ } }, { - "id": 524, + "id": 525, "name": "GenerateInviteOrMagiclinkParams", "kind": 4194304, "kindString": "Type alias", @@ -3031,14 +3031,14 @@ "type": { "type": "reflection", "declaration": { - "id": 525, + "id": 526, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 527, + "id": 528, "name": "email", "kind": 1024, "kindString": "Property", @@ -3059,7 +3059,7 @@ } }, { - "id": 528, + "id": 529, "name": "options", "kind": 1024, "kindString": "Property", @@ -3078,7 +3078,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -3101,7 +3101,7 @@ } }, { - "id": 526, + "id": 527, "name": "type", "kind": 1024, "kindString": "Property", @@ -3132,7 +3132,7 @@ { "title": "Properties", "kind": 1024, - "children": [527, 528, 526] + "children": [528, 529, 527] } ], "sources": [ @@ -3146,7 +3146,7 @@ } }, { - "id": 529, + "id": 530, "name": "GenerateRecoveryLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -3161,14 +3161,14 @@ "type": { "type": "reflection", "declaration": { - "id": 530, + "id": 531, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 532, + "id": 533, "name": "email", "kind": 1024, "kindString": "Property", @@ -3189,7 +3189,7 @@ } }, { - "id": 533, + "id": 534, "name": "options", "kind": 1024, "kindString": "Property", @@ -3208,7 +3208,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -3222,7 +3222,7 @@ } }, { - "id": 531, + "id": 532, "name": "type", "kind": 1024, "kindString": "Property", @@ -3244,7 +3244,7 @@ { "title": "Properties", "kind": 1024, - "children": [532, 533, 531] + "children": [533, 534, 532] } ], "sources": [ @@ -3258,7 +3258,7 @@ } }, { - "id": 534, + "id": 535, "name": "GenerateEmailChangeLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -3273,14 +3273,14 @@ "type": { "type": "reflection", "declaration": { - "id": 535, + "id": 536, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 537, + "id": 538, "name": "email", "kind": 1024, "kindString": "Property", @@ -3301,7 +3301,7 @@ } }, { - "id": 538, + "id": 539, "name": "newEmail", "kind": 1024, "kindString": "Property", @@ -3322,7 +3322,7 @@ } }, { - "id": 539, + "id": 540, "name": "options", "kind": 1024, "kindString": "Property", @@ -3341,7 +3341,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -3355,7 +3355,7 @@ } }, { - "id": 536, + "id": 537, "name": "type", "kind": 1024, "kindString": "Property", @@ -3386,7 +3386,7 @@ { "title": "Properties", "kind": 1024, - "children": [537, 538, 539, 536] + "children": [538, 539, 540, 537] } ], "sources": [ @@ -3410,7 +3410,7 @@ "typeArguments": [ { "type": "reference", - "id": 544, + "id": 545, "name": "GenerateLinkResponse" } ], @@ -3422,7 +3422,7 @@ ] }, { - "id": 59, + "id": 60, "name": "getUserById", "kind": 2048, "kindString": "Method", @@ -3430,13 +3430,13 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 189, + "line": 215, "character": 8 } ], "signatures": [ { - "id": 60, + "id": 61, "name": "getUserById", "kind": 4096, "kindString": "Call signature", @@ -3446,7 +3446,7 @@ }, "parameters": [ { - "id": 61, + "id": 62, "name": "uid", "kind": 32768, "kindString": "Parameter", @@ -3465,7 +3465,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -3485,7 +3485,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 75, + "line": 82, "character": 8 } ], @@ -3543,7 +3543,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 79, + "line": 86, "character": 6 } ], @@ -3566,7 +3566,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 78, + "line": 85, "character": 6 } ], @@ -3593,7 +3593,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -3613,7 +3613,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 161, + "line": 168, "character": 8 } ], @@ -3638,14 +3638,14 @@ "isOptional": true }, "comment": { - "shortText": "An object which supports `page` and `per_page` as numbers, to alter the paginated results.\n" + "shortText": "An object which supports `page` and `perPage` as numbers, to alter the paginated results.\n" }, "type": { "type": "reference", - "id": 717, + "id": 725, "name": "PageParams", "dereferenced": { - "id": 717, + "id": 725, "name": "PageParams", "kind": 4194304, "kindString": "Type alias", @@ -3653,21 +3653,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 917, + "line": 920, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 718, + "id": 726, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 719, + "id": 727, "name": "page", "kind": 1024, "kindString": "Property", @@ -3680,7 +3680,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 919, + "line": 922, "character": 2 } ], @@ -3690,7 +3690,7 @@ } }, { - "id": 720, + "id": 728, "name": "perPage", "kind": 1024, "kindString": "Property", @@ -3703,7 +3703,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 921, + "line": 924, "character": 2 } ], @@ -3717,13 +3717,13 @@ { "title": "Properties", "kind": 1024, - "children": [719, 720] + "children": [727, 728] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 917, + "line": 920, "character": 25 } ] @@ -3757,54 +3757,82 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 15 + "line": 171, + "character": 8 } ], "type": { - "type": "reflection", - "declaration": { - "id": 51, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 52, - "name": "users", - "kind": 1024, - "kindString": "Property", + "type": "intersection", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 51, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", "flags": {}, - "sources": [ + "children": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 23 + "id": 53, + "name": "aud", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueAdminApi.ts", + "line": 171, + "character": 31 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 52, + "name": "users", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueAdminApi.ts", + "line": 171, + "character": 16 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 385, + "name": "User" + } + } } ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 384, - "name": "User" + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [53, 52] } - } + ] } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [52] - } - ] - } + }, + { + "type": "reference", + "id": 718, + "name": "Pagination" + } + ] } }, { - "id": 53, + "id": 54, "name": "error", "kind": 1024, "kindString": "Property", @@ -3812,8 +3840,8 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 40 + "line": 171, + "character": 59 } ], "type": { @@ -3826,7 +3854,7 @@ { "title": "Properties", "kind": 1024, - "children": [50, 53] + "children": [50, 54] } ] } @@ -3834,14 +3862,14 @@ { "type": "reflection", "declaration": { - "id": 54, + "id": 55, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 55, + "id": 56, "name": "data", "kind": 1024, "kindString": "Property", @@ -3849,21 +3877,21 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 58 + "line": 172, + "character": 8 } ], "type": { "type": "reflection", "declaration": { - "id": 56, + "id": 57, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 57, + "id": 58, "name": "users", "kind": 1024, "kindString": "Property", @@ -3871,8 +3899,8 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 66 + "line": 172, + "character": 16 } ], "type": { @@ -3884,14 +3912,14 @@ { "title": "Properties", "kind": 1024, - "children": [57] + "children": [58] } ] } } }, { - "id": 58, + "id": 59, "name": "error", "kind": 1024, "kindString": "Property", @@ -3899,13 +3927,13 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 79 + "line": 172, + "character": 29 } ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -3914,7 +3942,7 @@ { "title": "Properties", "kind": 1024, - "children": [55, 58] + "children": [56, 59] } ] } @@ -3938,7 +3966,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 52, + "line": 59, "character": 8 } ], @@ -3989,7 +4017,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 52, + "line": 59, "character": 40 } ], @@ -4007,7 +4035,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 52, + "line": 59, "character": 52 } ], @@ -4020,7 +4048,7 @@ }, { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } ] @@ -4045,7 +4073,7 @@ ] }, { - "id": 62, + "id": 63, "name": "updateUserById", "kind": 2048, "kindString": "Method", @@ -4053,13 +4081,13 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 211, + "line": 237, "character": 8 } ], "signatures": [ { - "id": 63, + "id": 64, "name": "updateUserById", "kind": 4096, "kindString": "Call signature", @@ -4069,7 +4097,7 @@ }, "parameters": [ { - "id": 64, + "id": 65, "name": "uid", "kind": 32768, "kindString": "Parameter", @@ -4080,7 +4108,7 @@ } }, { - "id": 65, + "id": 66, "name": "attributes", "kind": 32768, "kindString": "Parameter", @@ -4090,17 +4118,17 @@ }, "type": { "type": "reference", - "id": 411, + "id": 412, "name": "AdminUserAttributes", "dereferenced": { - "id": 411, + "id": 412, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 413, + "id": 414, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -4124,7 +4152,7 @@ } }, { - "id": 416, + "id": 417, "name": "ban_duration", "kind": 1024, "kindString": "Property", @@ -4148,7 +4176,7 @@ } }, { - "id": 420, + "id": 421, "name": "data", "kind": 1024, "kindString": "Property", @@ -4172,12 +4200,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 410, + "id": 411, "name": "UserAttributes.data" } }, { - "id": 417, + "id": 418, "name": "email", "kind": 1024, "kindString": "Property", @@ -4200,12 +4228,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 407, + "id": 408, "name": "UserAttributes.email" } }, { - "id": 414, + "id": 415, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -4229,7 +4257,7 @@ } }, { - "id": 419, + "id": 420, "name": "password", "kind": 1024, "kindString": "Property", @@ -4252,12 +4280,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 409, + "id": 410, "name": "UserAttributes.password" } }, { - "id": 418, + "id": 419, "name": "phone", "kind": 1024, "kindString": "Property", @@ -4280,12 +4308,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 408, + "id": 409, "name": "UserAttributes.phone" } }, { - "id": 415, + "id": 416, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -4309,7 +4337,7 @@ } }, { - "id": 412, + "id": 413, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -4337,7 +4365,7 @@ { "title": "Properties", "kind": 1024, - "children": [413, 416, 420, 417, 414, 419, 418, 415, 412] + "children": [414, 417, 421, 418, 415, 420, 419, 416, 413] } ], "sources": [ @@ -4350,7 +4378,7 @@ "extendedTypes": [ { "type": "reference", - "id": 406, + "id": 407, "name": "UserAttributes" } ] @@ -4363,7 +4391,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -4389,26 +4417,26 @@ { "title": "Methods", "kind": 2048, - "children": [43, 66, 40, 59, 33, 46, 27, 62] + "children": [43, 67, 40, 60, 33, 46, 27, 63] } ], "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 18, + "line": 25, "character": 21 } ] }, { - "id": 75, + "id": 76, "name": "GoTrueClient", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 76, + "id": 77, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -4422,7 +4450,7 @@ ], "signatures": [ { - "id": 77, + "id": 78, "name": "new GoTrueClient", "kind": 16384, "kindString": "Constructor signature", @@ -4432,17 +4460,17 @@ }, "parameters": [ { - "id": 78, + "id": 79, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 288, + "id": 289, "name": "GoTrueClientOptions", "dereferenced": { - "id": 288, + "id": 289, "name": "GoTrueClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -4457,14 +4485,14 @@ "type": { "type": "reflection", "declaration": { - "id": 289, + "id": 290, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 297, + "id": 298, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -4484,7 +4512,7 @@ } }, { - "id": 296, + "id": 297, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -4504,7 +4532,7 @@ } }, { - "id": 300, + "id": 301, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -4524,7 +4552,7 @@ } }, { - "id": 291, + "id": 292, "name": "headers", "kind": 1024, "kindString": "Property", @@ -4541,7 +4569,7 @@ "type": { "type": "reflection", "declaration": { - "id": 292, + "id": 293, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4554,14 +4582,14 @@ } ], "indexSignature": { - "id": 293, + "id": 294, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 294, + "id": 295, "name": "key", "kind": 32768, "flags": {}, @@ -4580,7 +4608,7 @@ } }, { - "id": 298, + "id": 299, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -4600,7 +4628,7 @@ } }, { - "id": 299, + "id": 300, "name": "storage", "kind": 1024, "kindString": "Property", @@ -4616,10 +4644,10 @@ ], "type": { "type": "reference", - "id": 706, + "id": 707, "name": "SupportedStorage", "dereferenced": { - "id": 706, + "id": 707, "name": "SupportedStorage", "kind": 4194304, "kindString": "Type alias", @@ -4627,7 +4655,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 903, + "line": 899, "character": 12 } ], @@ -4672,7 +4700,7 @@ } }, { - "id": 295, + "id": 296, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -4692,7 +4720,7 @@ } }, { - "id": 290, + "id": 291, "name": "url", "kind": 1024, "kindString": "Property", @@ -4716,7 +4744,7 @@ { "title": "Properties", "kind": 1024, - "children": [297, 296, 300, 291, 298, 299, 295, 290] + "children": [298, 297, 301, 292, 299, 300, 296, 291] } ], "sources": [ @@ -4734,14 +4762,14 @@ ], "type": { "type": "reference", - "id": 75, + "id": 76, "name": "default" } } ] }, { - "id": 79, + "id": 80, "name": "admin", "kind": 1024, "kindString": "Property", @@ -4776,7 +4804,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 28, + "line": 35, "character": 2 } ], @@ -4814,7 +4842,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 37, + "line": 44, "character": 4 } ], @@ -4904,7 +4932,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 34, + "line": 41, "character": 4 } ], @@ -4951,7 +4979,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 33, + "line": 40, "character": 4 } ], @@ -4992,16 +5020,16 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 20, + "line": 27, "character": 2 } ], "type": { "type": "reference", - "id": 699, + "id": 700, "name": "GoTrueAdminMFAApi", "dereferenced": { - "id": 699, + "id": 700, "name": "GoTrueAdminMFAApi", "kind": 256, "kindString": "Interface", @@ -5017,14 +5045,14 @@ }, "children": [ { - "id": 703, + "id": 704, "name": "deleteFactor", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 704, + "id": 705, "name": "deleteFactor", "kind": 4096, "kindString": "Call signature", @@ -5044,17 +5072,17 @@ }, "parameters": [ { - "id": 705, + "id": 706, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 683, + "id": 684, "name": "AuthMFAAdminDeleteFactorParams", "dereferenced": { - "id": 683, + "id": 684, "name": "AuthMFAAdminDeleteFactorParams", "kind": 4194304, "kindString": "Type alias", @@ -5070,21 +5098,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 842, + "line": 838, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 684, + "id": 685, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 685, + "id": 686, "name": "id", "kind": 1024, "kindString": "Property", @@ -5095,7 +5123,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 844, + "line": 840, "character": 2 } ], @@ -5105,7 +5133,7 @@ } }, { - "id": 686, + "id": 687, "name": "userId", "kind": 1024, "kindString": "Property", @@ -5116,7 +5144,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 847, + "line": 843, "character": 2 } ], @@ -5130,13 +5158,13 @@ { "title": "Properties", "kind": 1024, - "children": [685, 686] + "children": [686, 687] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 842, + "line": 838, "character": 45 } ] @@ -5151,7 +5179,7 @@ "typeArguments": [ { "type": "reference", - "id": 674, + "id": 675, "name": "AuthMFAAdminDeleteFactorResponse" } ], @@ -5163,14 +5191,14 @@ ] }, { - "id": 700, + "id": 701, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 701, + "id": 702, "name": "listFactors", "kind": 4096, "kindString": "Call signature", @@ -5180,17 +5208,17 @@ }, "parameters": [ { - "id": 702, + "id": 703, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 696, + "id": 697, "name": "AuthMFAAdminListFactorsParams", "dereferenced": { - "id": 696, + "id": 697, "name": "AuthMFAAdminListFactorsParams", "kind": 4194304, "kindString": "Type alias", @@ -5206,21 +5234,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 862, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 697, + "id": 698, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 698, + "id": 699, "name": "userId", "kind": 1024, "kindString": "Property", @@ -5231,7 +5259,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 868, + "line": 864, "character": 2 } ], @@ -5245,13 +5273,13 @@ { "title": "Properties", "kind": 1024, - "children": [698] + "children": [699] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 862, "character": 44 } ] @@ -5266,7 +5294,7 @@ "typeArguments": [ { "type": "reference", - "id": 687, + "id": 688, "name": "AuthMFAAdminListFactorsResponse" } ], @@ -5282,13 +5310,13 @@ { "title": "Methods", "kind": 2048, - "children": [703, 700] + "children": [704, 701] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 876, + "line": 872, "character": 17 } ] @@ -5304,7 +5332,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 139, + "line": 146, "character": 8 } ], @@ -5327,17 +5355,17 @@ "flags": {}, "type": { "type": "reference", - "id": 411, + "id": 412, "name": "AdminUserAttributes", "dereferenced": { - "id": 411, + "id": 412, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 413, + "id": 414, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -5361,7 +5389,7 @@ } }, { - "id": 416, + "id": 417, "name": "ban_duration", "kind": 1024, "kindString": "Property", @@ -5385,7 +5413,7 @@ } }, { - "id": 420, + "id": 421, "name": "data", "kind": 1024, "kindString": "Property", @@ -5409,12 +5437,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 410, + "id": 411, "name": "UserAttributes.data" } }, { - "id": 417, + "id": 418, "name": "email", "kind": 1024, "kindString": "Property", @@ -5437,12 +5465,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 407, + "id": 408, "name": "UserAttributes.email" } }, { - "id": 414, + "id": 415, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -5466,7 +5494,7 @@ } }, { - "id": 419, + "id": 420, "name": "password", "kind": 1024, "kindString": "Property", @@ -5489,12 +5517,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 409, + "id": 410, "name": "UserAttributes.password" } }, { - "id": 418, + "id": 419, "name": "phone", "kind": 1024, "kindString": "Property", @@ -5517,12 +5545,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 408, + "id": 409, "name": "UserAttributes.phone" } }, { - "id": 415, + "id": 416, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -5546,7 +5574,7 @@ } }, { - "id": 412, + "id": 413, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -5574,7 +5602,7 @@ { "title": "Properties", "kind": 1024, - "children": [413, 416, 420, 417, 414, 419, 418, 415, 412] + "children": [414, 417, 421, 418, 415, 420, 419, 416, 413] } ], "sources": [ @@ -5587,7 +5615,7 @@ "extendedTypes": [ { "type": "reference", - "id": 406, + "id": 407, "name": "UserAttributes" } ] @@ -5600,7 +5628,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -5612,7 +5640,7 @@ ] }, { - "id": 66, + "id": 67, "name": "deleteUser", "kind": 2048, "kindString": "Method", @@ -5620,13 +5648,13 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 234, + "line": 260, "character": 8 } ], "signatures": [ { - "id": 67, + "id": 68, "name": "deleteUser", "kind": 4096, "kindString": "Call signature", @@ -5636,7 +5664,7 @@ }, "parameters": [ { - "id": 68, + "id": 69, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -5655,7 +5683,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -5675,7 +5703,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 105, + "line": 112, "character": 8 } ], @@ -5698,10 +5726,10 @@ "flags": {}, "type": { "type": "reference", - "id": 543, + "id": 544, "name": "GenerateLinkParams", "dereferenced": { - "id": 543, + "id": 544, "name": "GenerateLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -5717,7 +5745,7 @@ "type": "union", "types": [ { - "id": 518, + "id": 519, "name": "GenerateSignupLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -5732,14 +5760,14 @@ "type": { "type": "reflection", "declaration": { - "id": 519, + "id": 520, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 521, + "id": 522, "name": "email", "kind": 1024, "kindString": "Property", @@ -5757,7 +5785,7 @@ } }, { - "id": 523, + "id": 524, "name": "options", "kind": 1024, "kindString": "Property", @@ -5776,7 +5804,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -5799,7 +5827,7 @@ } }, { - "id": 522, + "id": 523, "name": "password", "kind": 1024, "kindString": "Property", @@ -5817,7 +5845,7 @@ } }, { - "id": 520, + "id": 521, "name": "type", "kind": 1024, "kindString": "Property", @@ -5839,7 +5867,7 @@ { "title": "Properties", "kind": 1024, - "children": [521, 523, 522, 520] + "children": [522, 524, 523, 521] } ], "sources": [ @@ -5853,7 +5881,7 @@ } }, { - "id": 524, + "id": 525, "name": "GenerateInviteOrMagiclinkParams", "kind": 4194304, "kindString": "Type alias", @@ -5868,14 +5896,14 @@ "type": { "type": "reflection", "declaration": { - "id": 525, + "id": 526, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 527, + "id": 528, "name": "email", "kind": 1024, "kindString": "Property", @@ -5896,7 +5924,7 @@ } }, { - "id": 528, + "id": 529, "name": "options", "kind": 1024, "kindString": "Property", @@ -5915,7 +5943,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -5938,7 +5966,7 @@ } }, { - "id": 526, + "id": 527, "name": "type", "kind": 1024, "kindString": "Property", @@ -5969,7 +5997,7 @@ { "title": "Properties", "kind": 1024, - "children": [527, 528, 526] + "children": [528, 529, 527] } ], "sources": [ @@ -5983,7 +6011,7 @@ } }, { - "id": 529, + "id": 530, "name": "GenerateRecoveryLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -5998,14 +6026,14 @@ "type": { "type": "reflection", "declaration": { - "id": 530, + "id": 531, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 532, + "id": 533, "name": "email", "kind": 1024, "kindString": "Property", @@ -6026,7 +6054,7 @@ } }, { - "id": 533, + "id": 534, "name": "options", "kind": 1024, "kindString": "Property", @@ -6045,7 +6073,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -6059,7 +6087,7 @@ } }, { - "id": 531, + "id": 532, "name": "type", "kind": 1024, "kindString": "Property", @@ -6081,7 +6109,7 @@ { "title": "Properties", "kind": 1024, - "children": [532, 533, 531] + "children": [533, 534, 532] } ], "sources": [ @@ -6095,7 +6123,7 @@ } }, { - "id": 534, + "id": 535, "name": "GenerateEmailChangeLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -6110,14 +6138,14 @@ "type": { "type": "reflection", "declaration": { - "id": 535, + "id": 536, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 537, + "id": 538, "name": "email", "kind": 1024, "kindString": "Property", @@ -6138,7 +6166,7 @@ } }, { - "id": 538, + "id": 539, "name": "newEmail", "kind": 1024, "kindString": "Property", @@ -6159,7 +6187,7 @@ } }, { - "id": 539, + "id": 540, "name": "options", "kind": 1024, "kindString": "Property", @@ -6178,7 +6206,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -6192,7 +6220,7 @@ } }, { - "id": 536, + "id": 537, "name": "type", "kind": 1024, "kindString": "Property", @@ -6223,7 +6251,7 @@ { "title": "Properties", "kind": 1024, - "children": [537, 538, 539, 536] + "children": [538, 539, 540, 537] } ], "sources": [ @@ -6247,7 +6275,7 @@ "typeArguments": [ { "type": "reference", - "id": 544, + "id": 545, "name": "GenerateLinkResponse" } ], @@ -6259,7 +6287,7 @@ ] }, { - "id": 59, + "id": 60, "name": "getUserById", "kind": 2048, "kindString": "Method", @@ -6267,13 +6295,13 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 189, + "line": 215, "character": 8 } ], "signatures": [ { - "id": 60, + "id": 61, "name": "getUserById", "kind": 4096, "kindString": "Call signature", @@ -6283,7 +6311,7 @@ }, "parameters": [ { - "id": 61, + "id": 62, "name": "uid", "kind": 32768, "kindString": "Parameter", @@ -6302,7 +6330,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -6322,7 +6350,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 75, + "line": 82, "character": 8 } ], @@ -6380,7 +6408,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 79, + "line": 86, "character": 6 } ], @@ -6403,7 +6431,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 78, + "line": 85, "character": 6 } ], @@ -6430,7 +6458,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -6450,7 +6478,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 161, + "line": 168, "character": 8 } ], @@ -6475,14 +6503,14 @@ "isOptional": true }, "comment": { - "shortText": "An object which supports `page` and `per_page` as numbers, to alter the paginated results.\n" + "shortText": "An object which supports `page` and `perPage` as numbers, to alter the paginated results.\n" }, "type": { "type": "reference", - "id": 717, + "id": 725, "name": "PageParams", "dereferenced": { - "id": 717, + "id": 725, "name": "PageParams", "kind": 4194304, "kindString": "Type alias", @@ -6490,21 +6518,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 917, + "line": 920, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 718, + "id": 726, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 719, + "id": 727, "name": "page", "kind": 1024, "kindString": "Property", @@ -6517,7 +6545,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 919, + "line": 922, "character": 2 } ], @@ -6527,7 +6555,7 @@ } }, { - "id": 720, + "id": 728, "name": "perPage", "kind": 1024, "kindString": "Property", @@ -6540,7 +6568,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 921, + "line": 924, "character": 2 } ], @@ -6554,13 +6582,13 @@ { "title": "Properties", "kind": 1024, - "children": [719, 720] + "children": [727, 728] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 917, + "line": 920, "character": 25 } ] @@ -6594,54 +6622,82 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 15 + "line": 171, + "character": 8 } ], "type": { - "type": "reflection", - "declaration": { - "id": 51, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 52, - "name": "users", - "kind": 1024, - "kindString": "Property", + "type": "intersection", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 51, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", "flags": {}, - "sources": [ + "children": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 23 + "id": 53, + "name": "aud", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueAdminApi.ts", + "line": 171, + "character": 31 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 52, + "name": "users", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueAdminApi.ts", + "line": 171, + "character": 16 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 385, + "name": "User" + } + } } ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 384, - "name": "User" + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [53, 52] } - } + ] } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [52] - } - ] - } + }, + { + "type": "reference", + "id": 718, + "name": "Pagination" + } + ] } }, { - "id": 53, + "id": 54, "name": "error", "kind": 1024, "kindString": "Property", @@ -6649,8 +6705,8 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 40 + "line": 171, + "character": 59 } ], "type": { @@ -6663,7 +6719,7 @@ { "title": "Properties", "kind": 1024, - "children": [50, 53] + "children": [50, 54] } ] } @@ -6671,14 +6727,14 @@ { "type": "reflection", "declaration": { - "id": 54, + "id": 55, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 55, + "id": 56, "name": "data", "kind": 1024, "kindString": "Property", @@ -6686,21 +6742,21 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 58 + "line": 172, + "character": 8 } ], "type": { "type": "reflection", "declaration": { - "id": 56, + "id": 57, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 57, + "id": 58, "name": "users", "kind": 1024, "kindString": "Property", @@ -6708,8 +6764,8 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 66 + "line": 172, + "character": 16 } ], "type": { @@ -6721,14 +6777,14 @@ { "title": "Properties", "kind": 1024, - "children": [57] + "children": [58] } ] } } }, { - "id": 58, + "id": 59, "name": "error", "kind": 1024, "kindString": "Property", @@ -6736,13 +6792,13 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 163, - "character": 79 + "line": 172, + "character": 29 } ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -6751,7 +6807,7 @@ { "title": "Properties", "kind": 1024, - "children": [55, 58] + "children": [56, 59] } ] } @@ -6775,7 +6831,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 52, + "line": 59, "character": 8 } ], @@ -6826,7 +6882,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 52, + "line": 59, "character": 40 } ], @@ -6844,7 +6900,7 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 52, + "line": 59, "character": 52 } ], @@ -6857,7 +6913,7 @@ }, { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } ] @@ -6882,7 +6938,7 @@ ] }, { - "id": 62, + "id": 63, "name": "updateUserById", "kind": 2048, "kindString": "Method", @@ -6890,13 +6946,13 @@ "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 211, + "line": 237, "character": 8 } ], "signatures": [ { - "id": 63, + "id": 64, "name": "updateUserById", "kind": 4096, "kindString": "Call signature", @@ -6906,7 +6962,7 @@ }, "parameters": [ { - "id": 64, + "id": 65, "name": "uid", "kind": 32768, "kindString": "Parameter", @@ -6917,7 +6973,7 @@ } }, { - "id": 65, + "id": 66, "name": "attributes", "kind": 32768, "kindString": "Parameter", @@ -6927,17 +6983,17 @@ }, "type": { "type": "reference", - "id": 411, + "id": 412, "name": "AdminUserAttributes", "dereferenced": { - "id": 411, + "id": 412, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 413, + "id": 414, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -6961,7 +7017,7 @@ } }, { - "id": 416, + "id": 417, "name": "ban_duration", "kind": 1024, "kindString": "Property", @@ -6985,7 +7041,7 @@ } }, { - "id": 420, + "id": 421, "name": "data", "kind": 1024, "kindString": "Property", @@ -7009,12 +7065,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 410, + "id": 411, "name": "UserAttributes.data" } }, { - "id": 417, + "id": 418, "name": "email", "kind": 1024, "kindString": "Property", @@ -7037,12 +7093,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 407, + "id": 408, "name": "UserAttributes.email" } }, { - "id": 414, + "id": 415, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -7066,7 +7122,7 @@ } }, { - "id": 419, + "id": 420, "name": "password", "kind": 1024, "kindString": "Property", @@ -7089,12 +7145,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 409, + "id": 410, "name": "UserAttributes.password" } }, { - "id": 418, + "id": 419, "name": "phone", "kind": 1024, "kindString": "Property", @@ -7117,12 +7173,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 408, + "id": 409, "name": "UserAttributes.phone" } }, { - "id": 415, + "id": 416, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -7146,7 +7202,7 @@ } }, { - "id": 412, + "id": 413, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -7174,7 +7230,7 @@ { "title": "Properties", "kind": 1024, - "children": [413, 416, 420, 417, 414, 419, 418, 415, 412] + "children": [414, 417, 421, 418, 415, 420, 419, 416, 413] } ], "sources": [ @@ -7187,7 +7243,7 @@ "extendedTypes": [ { "type": "reference", - "id": 406, + "id": 407, "name": "UserAttributes" } ] @@ -7200,7 +7256,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -7226,13 +7282,13 @@ { "title": "Methods", "kind": 2048, - "children": [43, 66, 40, 59, 33, 46, 27, 62] + "children": [43, 67, 40, 60, 33, 46, 27, 63] } ], "sources": [ { "fileName": "src/GoTrueAdminApi.ts", - "line": 18, + "line": 25, "character": 21 } ] @@ -7240,7 +7296,7 @@ } }, { - "id": 80, + "id": 81, "name": "mfa", "kind": 1024, "kindString": "Property", @@ -7257,10 +7313,10 @@ ], "type": { "type": "reference", - "id": 654, + "id": 655, "name": "GoTrueMFAApi", "dereferenced": { - "id": 654, + "id": 655, "name": "GoTrueMFAApi", "kind": 256, "kindString": "Interface", @@ -7270,14 +7326,14 @@ }, "children": [ { - "id": 658, + "id": 659, "name": "challenge", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 659, + "id": 660, "name": "challenge", "kind": 4096, "kindString": "Call signature", @@ -7287,17 +7343,17 @@ }, "parameters": [ { - "id": 660, + "id": 661, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 578, + "id": 579, "name": "MFAChallengeParams", "dereferenced": { - "id": 578, + "id": 579, "name": "MFAChallengeParams", "kind": 4194304, "kindString": "Type alias", @@ -7312,14 +7368,14 @@ "type": { "type": "reflection", "declaration": { - "id": 579, + "id": 580, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 580, + "id": 581, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -7344,7 +7400,7 @@ { "title": "Properties", "kind": 1024, - "children": [580] + "children": [581] } ], "sources": [ @@ -7365,7 +7421,7 @@ "typeArguments": [ { "type": "reference", - "id": 622, + "id": 623, "name": "AuthMFAChallengeResponse" } ], @@ -7377,14 +7433,14 @@ ] }, { - "id": 667, + "id": 668, "name": "challengeAndVerify", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 668, + "id": 669, "name": "challengeAndVerify", "kind": 4096, "kindString": "Call signature", @@ -7394,17 +7450,17 @@ }, "parameters": [ { - "id": 669, + "id": 670, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 581, + "id": 582, "name": "MFAChallengeAndVerifyParams", "dereferenced": { - "id": 581, + "id": 582, "name": "MFAChallengeAndVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -7419,14 +7475,14 @@ "type": { "type": "reflection", "declaration": { - "id": 582, + "id": 583, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 584, + "id": 585, "name": "code", "kind": 1024, "kindString": "Property", @@ -7447,7 +7503,7 @@ } }, { - "id": 583, + "id": 584, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -7472,7 +7528,7 @@ { "title": "Properties", "kind": 1024, - "children": [584, 583] + "children": [585, 584] } ], "sources": [ @@ -7493,7 +7549,7 @@ "typeArguments": [ { "type": "reference", - "id": 585, + "id": 586, "name": "AuthMFAVerifyResponse" } ], @@ -7505,14 +7561,14 @@ ] }, { - "id": 655, + "id": 656, "name": "enroll", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 656, + "id": 657, "name": "enroll", "kind": 4096, "kindString": "Call signature", @@ -7523,17 +7579,17 @@ }, "parameters": [ { - "id": 657, + "id": 658, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 565, + "id": 566, "name": "MFAEnrollParams", "dereferenced": { - "id": 565, + "id": 566, "name": "MFAEnrollParams", "kind": 4194304, "kindString": "Type alias", @@ -7548,14 +7604,14 @@ "type": { "type": "reflection", "declaration": { - "id": 566, + "id": 567, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 567, + "id": 568, "name": "factorType", "kind": 1024, "kindString": "Property", @@ -7576,7 +7632,7 @@ } }, { - "id": 569, + "id": 570, "name": "friendlyName", "kind": 1024, "kindString": "Property", @@ -7599,7 +7655,7 @@ } }, { - "id": 568, + "id": 569, "name": "issuer", "kind": 1024, "kindString": "Property", @@ -7626,7 +7682,7 @@ { "title": "Properties", "kind": 1024, - "children": [567, 569, 568] + "children": [568, 570, 569] } ], "sources": [ @@ -7647,7 +7703,7 @@ "typeArguments": [ { "type": "reference", - "id": 598, + "id": 599, "name": "AuthMFAEnrollResponse" } ], @@ -7659,14 +7715,14 @@ ] }, { - "id": 672, + "id": 673, "name": "getAuthenticatorAssuranceLevel", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 673, + "id": 674, "name": "getAuthenticatorAssuranceLevel", "kind": 4096, "kindString": "Call signature", @@ -7680,7 +7736,7 @@ "typeArguments": [ { "type": "reference", - "id": 643, + "id": 644, "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse" } ], @@ -7692,20 +7748,20 @@ ] }, { - "id": 670, + "id": 671, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 671, + "id": 672, "name": "listFactors", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Returns the list of MFA factors enabled for this user. For most use cases\nyou should consider using {@link\nGoTrueMFAApi#getAuthenticatorAssuranceLevel}. This uses a cached version\nof the factors and avoids incurring a network call. If you need to update\nthis list, call {@link GoTrueClient#getUser} first.", + "shortText": "Returns the list of MFA factors enabled for this user.", "tags": [ { "tag": "see", @@ -7726,7 +7782,7 @@ "typeArguments": [ { "type": "reference", - "id": 632, + "id": 633, "name": "AuthMFAListFactorsResponse" } ], @@ -7738,14 +7794,14 @@ ] }, { - "id": 664, + "id": 665, "name": "unenroll", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 665, + "id": 666, "name": "unenroll", "kind": 4096, "kindString": "Call signature", @@ -7755,17 +7811,17 @@ }, "parameters": [ { - "id": 666, + "id": 667, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 570, + "id": 571, "name": "MFAUnenrollParams", "dereferenced": { - "id": 570, + "id": 571, "name": "MFAUnenrollParams", "kind": 4194304, "kindString": "Type alias", @@ -7780,14 +7836,14 @@ "type": { "type": "reflection", "declaration": { - "id": 571, + "id": 572, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 572, + "id": 573, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -7812,7 +7868,7 @@ { "title": "Properties", "kind": 1024, - "children": [572] + "children": [573] } ], "sources": [ @@ -7833,7 +7889,7 @@ "typeArguments": [ { "type": "reference", - "id": 613, + "id": 614, "name": "AuthMFAUnenrollResponse" } ], @@ -7845,14 +7901,14 @@ ] }, { - "id": 661, + "id": 662, "name": "verify", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 662, + "id": 663, "name": "verify", "kind": 4096, "kindString": "Call signature", @@ -7862,17 +7918,17 @@ }, "parameters": [ { - "id": 663, + "id": 664, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 573, + "id": 574, "name": "MFAVerifyParams", "dereferenced": { - "id": 573, + "id": 574, "name": "MFAVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -7887,14 +7943,14 @@ "type": { "type": "reflection", "declaration": { - "id": 574, + "id": 575, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 576, + "id": 577, "name": "challengeId", "kind": 1024, "kindString": "Property", @@ -7915,7 +7971,7 @@ } }, { - "id": 577, + "id": 578, "name": "code", "kind": 1024, "kindString": "Property", @@ -7936,7 +7992,7 @@ } }, { - "id": 575, + "id": 576, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -7961,7 +8017,7 @@ { "title": "Properties", "kind": 1024, - "children": [576, 577, 575] + "children": [577, 578, 576] } ], "sources": [ @@ -7982,7 +8038,7 @@ "typeArguments": [ { "type": "reference", - "id": 585, + "id": 586, "name": "AuthMFAVerifyResponse" } ], @@ -7998,7 +8054,7 @@ { "title": "Methods", "kind": 2048, - "children": [658, 667, 655, 672, 670, 664, 661] + "children": [659, 668, 656, 673, 671, 665, 662] } ], "sources": [ @@ -8012,7 +8068,7 @@ } }, { - "id": 124, + "id": 125, "name": "getSession", "kind": 2048, "kindString": "Method", @@ -8020,13 +8076,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 487, + "line": 501, "character": 8 } ], "signatures": [ { - "id": 125, + "id": 126, "name": "getSession", "kind": 4096, "kindString": "Call signature", @@ -8043,14 +8099,14 @@ { "type": "reflection", "declaration": { - "id": 126, + "id": 127, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 127, + "id": 128, "name": "data", "kind": 1024, "kindString": "Property", @@ -8058,21 +8114,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 489, + "line": 503, "character": 8 } ], "type": { "type": "reflection", "declaration": { - "id": 128, + "id": 129, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 129, + "id": 130, "name": "session", "kind": 1024, "kindString": "Property", @@ -8080,13 +8136,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 490, + "line": 504, "character": 10 } ], "type": { "type": "reference", - "id": 347, + "id": 348, "name": "Session" } } @@ -8095,14 +8151,14 @@ { "title": "Properties", "kind": 1024, - "children": [129] + "children": [130] } ] } } }, { - "id": 130, + "id": 131, "name": "error", "kind": 1024, "kindString": "Property", @@ -8110,7 +8166,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 492, + "line": 506, "character": 8 } ], @@ -8124,7 +8180,7 @@ { "title": "Properties", "kind": 1024, - "children": [127, 130] + "children": [128, 131] } ] } @@ -8132,14 +8188,14 @@ { "type": "reflection", "declaration": { - "id": 131, + "id": 132, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 132, + "id": 133, "name": "data", "kind": 1024, "kindString": "Property", @@ -8147,21 +8203,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 495, + "line": 509, "character": 8 } ], "type": { "type": "reflection", "declaration": { - "id": 133, + "id": 134, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 134, + "id": 135, "name": "session", "kind": 1024, "kindString": "Property", @@ -8169,7 +8225,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 496, + "line": 510, "character": 10 } ], @@ -8183,14 +8239,14 @@ { "title": "Properties", "kind": 1024, - "children": [134] + "children": [135] } ] } } }, { - "id": 135, + "id": 136, "name": "error", "kind": 1024, "kindString": "Property", @@ -8198,13 +8254,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 498, + "line": 512, "character": 8 } ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -8213,7 +8269,7 @@ { "title": "Properties", "kind": 1024, - "children": [132, 135] + "children": [133, 136] } ] } @@ -8221,14 +8277,14 @@ { "type": "reflection", "declaration": { - "id": 136, + "id": 137, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 137, + "id": 138, "name": "data", "kind": 1024, "kindString": "Property", @@ -8236,21 +8292,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 501, + "line": 515, "character": 8 } ], "type": { "type": "reflection", "declaration": { - "id": 138, + "id": 139, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 139, + "id": 140, "name": "session", "kind": 1024, "kindString": "Property", @@ -8258,7 +8314,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 502, + "line": 516, "character": 10 } ], @@ -8272,14 +8328,14 @@ { "title": "Properties", "kind": 1024, - "children": [139] + "children": [140] } ] } } }, { - "id": 140, + "id": 141, "name": "error", "kind": 1024, "kindString": "Property", @@ -8287,7 +8343,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 504, + "line": 518, "character": 8 } ], @@ -8301,7 +8357,7 @@ { "title": "Properties", "kind": 1024, - "children": [137, 140] + "children": [138, 141] } ] } @@ -8317,7 +8373,7 @@ ] }, { - "id": 141, + "id": 142, "name": "getUser", "kind": 2048, "kindString": "Method", @@ -8325,13 +8381,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 550, + "line": 564, "character": 8 } ], "signatures": [ { - "id": 142, + "id": 143, "name": "getUser", "kind": 4096, "kindString": "Call signature", @@ -8341,7 +8397,7 @@ }, "parameters": [ { - "id": 143, + "id": 144, "name": "jwt", "kind": 32768, "kindString": "Parameter", @@ -8362,7 +8418,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -8374,7 +8430,7 @@ ] }, { - "id": 102, + "id": 103, "name": "initialize", "kind": 2048, "kindString": "Method", @@ -8388,7 +8444,7 @@ ], "signatures": [ { - "id": 103, + "id": 104, "name": "initialize", "kind": 4096, "kindString": "Call signature", @@ -8401,7 +8457,7 @@ "typeArguments": [ { "type": "reference", - "id": 707, + "id": 708, "name": "InitializeResult" } ], @@ -8413,7 +8469,7 @@ ] }, { - "id": 185, + "id": 186, "name": "onAuthStateChange", "kind": 2048, "kindString": "Method", @@ -8421,13 +8477,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 834, + "line": 848, "character": 2 } ], "signatures": [ { - "id": 186, + "id": 187, "name": "onAuthStateChange", "kind": 4096, "kindString": "Call signature", @@ -8437,7 +8493,7 @@ }, "parameters": [ { - "id": 187, + "id": 188, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -8448,33 +8504,33 @@ "type": { "type": "reflection", "declaration": { - "id": 188, + "id": 189, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 189, + "id": 190, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 190, + "id": 191, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 287, + "id": 288, "name": "AuthChangeEvent" } }, { - "id": 191, + "id": 192, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -8488,7 +8544,7 @@ }, { "type": "reference", - "id": 347, + "id": 348, "name": "Session" } ] @@ -8508,14 +8564,14 @@ "type": { "type": "reflection", "declaration": { - "id": 192, + "id": 193, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 193, + "id": 194, "name": "data", "kind": 1024, "kindString": "Property", @@ -8523,21 +8579,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 835, + "line": 849, "character": 4 } ], "type": { "type": "reflection", "declaration": { - "id": 194, + "id": 195, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 195, + "id": 196, "name": "subscription", "kind": 1024, "kindString": "Property", @@ -8545,23 +8601,23 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 835, + "line": 849, "character": 12 } ], "type": { "type": "reference", - "id": 421, + "id": 422, "name": "Subscription", "dereferenced": { - "id": 421, + "id": 422, "name": "Subscription", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 422, + "id": 423, "name": "id", "kind": 1024, "kindString": "Property", @@ -8582,7 +8638,7 @@ } }, { - "id": 423, + "id": 424, "name": "callback", "kind": 2048, "kindString": "Method", @@ -8596,7 +8652,7 @@ ], "signatures": [ { - "id": 424, + "id": 425, "name": "callback", "kind": 4096, "kindString": "Call signature", @@ -8606,17 +8662,17 @@ }, "parameters": [ { - "id": 425, + "id": 426, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 287, + "id": 288, "name": "AuthChangeEvent", "dereferenced": { - "id": 287, + "id": 288, "name": "AuthChangeEvent", "kind": 4194304, "kindString": "Type alias", @@ -8656,7 +8712,7 @@ "value": "USER_DELETED" }, { - "id": 286, + "id": 287, "name": "AuthChangeEventMFA", "kind": 4194304, "kindString": "Type alias", @@ -8679,7 +8735,7 @@ } }, { - "id": 426, + "id": 427, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -8693,7 +8749,7 @@ }, { "type": "reference", - "id": 347, + "id": 348, "name": "Session" } ] @@ -8708,7 +8764,7 @@ ] }, { - "id": 427, + "id": 428, "name": "unsubscribe", "kind": 2048, "kindString": "Method", @@ -8722,7 +8778,7 @@ ], "signatures": [ { - "id": 428, + "id": 429, "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", @@ -8742,12 +8798,12 @@ { "title": "Properties", "kind": 1024, - "children": [422] + "children": [423] }, { "title": "Methods", "kind": 2048, - "children": [423, 427] + "children": [424, 428] } ], "sources": [ @@ -8765,7 +8821,7 @@ { "title": "Properties", "kind": 1024, - "children": [195] + "children": [196] } ] } @@ -8776,7 +8832,7 @@ { "title": "Properties", "kind": 1024, - "children": [193] + "children": [194] } ] } @@ -8785,7 +8841,7 @@ ] }, { - "id": 160, + "id": 161, "name": "refreshSession", "kind": 2048, "kindString": "Method", @@ -8793,13 +8849,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 689, + "line": 703, "character": 8 } ], "signatures": [ { - "id": 161, + "id": 162, "name": "refreshSession", "kind": 4096, "kindString": "Call signature", @@ -8809,7 +8865,7 @@ }, "parameters": [ { - "id": 162, + "id": 163, "name": "currentSession", "kind": 32768, "kindString": "Parameter", @@ -8822,14 +8878,14 @@ "type": { "type": "reflection", "declaration": { - "id": 163, + "id": 164, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 164, + "id": 165, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -8837,7 +8893,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 689, + "line": 703, "character": 42 } ], @@ -8851,7 +8907,7 @@ { "title": "Properties", "kind": 1024, - "children": [164] + "children": [165] } ] } @@ -8863,7 +8919,7 @@ "typeArguments": [ { "type": "reference", - "id": 301, + "id": 302, "name": "AuthResponse" } ], @@ -8875,7 +8931,7 @@ ] }, { - "id": 196, + "id": 197, "name": "resetPasswordForEmail", "kind": 2048, "kindString": "Method", @@ -8883,13 +8939,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 857, + "line": 871, "character": 8 } ], "signatures": [ { - "id": 197, + "id": 198, "name": "resetPasswordForEmail", "kind": 4096, "kindString": "Call signature", @@ -8899,7 +8955,7 @@ }, "parameters": [ { - "id": 198, + "id": 199, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -8913,7 +8969,7 @@ } }, { - "id": 199, + "id": 200, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -8921,14 +8977,14 @@ "type": { "type": "reflection", "declaration": { - "id": 200, + "id": 201, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 202, + "id": 203, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -8941,7 +8997,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 861, + "line": 875, "character": 6 } ], @@ -8951,7 +9007,7 @@ } }, { - "id": 201, + "id": 202, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -8964,7 +9020,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 860, + "line": 874, "character": 6 } ], @@ -8978,7 +9034,7 @@ { "title": "Properties", "kind": 1024, - "children": [202, 201] + "children": [203, 202] } ] } @@ -8995,14 +9051,14 @@ { "type": "reflection", "declaration": { - "id": 203, + "id": 204, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 204, + "id": 205, "name": "data", "kind": 1024, "kindString": "Property", @@ -9010,14 +9066,14 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 865, + "line": 879, "character": 8 } ], "type": { "type": "reflection", "declaration": { - "id": 205, + "id": 206, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9026,7 +9082,7 @@ } }, { - "id": 206, + "id": 207, "name": "error", "kind": 1024, "kindString": "Property", @@ -9034,7 +9090,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 866, + "line": 880, "character": 8 } ], @@ -9048,7 +9104,7 @@ { "title": "Properties", "kind": 1024, - "children": [204, 206] + "children": [205, 207] } ] } @@ -9056,14 +9112,14 @@ { "type": "reflection", "declaration": { - "id": 207, + "id": 208, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 208, + "id": 209, "name": "data", "kind": 1024, "kindString": "Property", @@ -9071,7 +9127,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 868, + "line": 882, "character": 8 } ], @@ -9081,7 +9137,7 @@ } }, { - "id": 209, + "id": 210, "name": "error", "kind": 1024, "kindString": "Property", @@ -9089,13 +9145,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 868, + "line": 882, "character": 20 } ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -9104,7 +9160,7 @@ { "title": "Properties", "kind": 1024, - "children": [208, 209] + "children": [209, 210] } ] } @@ -9120,7 +9176,7 @@ ] }, { - "id": 154, + "id": 155, "name": "setSession", "kind": 2048, "kindString": "Method", @@ -9128,13 +9184,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 626, + "line": 640, "character": 8 } ], "signatures": [ { - "id": 155, + "id": 156, "name": "setSession", "kind": 4096, "kindString": "Call signature", @@ -9144,7 +9200,7 @@ }, "parameters": [ { - "id": 156, + "id": 157, "name": "currentSession", "kind": 32768, "kindString": "Parameter", @@ -9155,14 +9211,14 @@ "type": { "type": "reflection", "declaration": { - "id": 157, + "id": 158, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 158, + "id": 159, "name": "access_token", "kind": 1024, "kindString": "Property", @@ -9170,7 +9226,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 627, + "line": 641, "character": 4 } ], @@ -9180,7 +9236,7 @@ } }, { - "id": 159, + "id": 160, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -9188,7 +9244,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 628, + "line": 642, "character": 4 } ], @@ -9202,7 +9258,7 @@ { "title": "Properties", "kind": 1024, - "children": [158, 159] + "children": [159, 160] } ] } @@ -9214,7 +9270,7 @@ "typeArguments": [ { "type": "reference", - "id": 301, + "id": 302, "name": "AuthResponse" } ], @@ -9226,7 +9282,7 @@ ] }, { - "id": 112, + "id": 113, "name": "signInWithOAuth", "kind": 2048, "kindString": "Method", @@ -9234,13 +9290,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 340, + "line": 349, "character": 8 } ], "signatures": [ { - "id": 113, + "id": 114, "name": "signInWithOAuth", "kind": 4096, "kindString": "Call signature", @@ -9250,17 +9306,17 @@ }, "parameters": [ { - "id": 114, + "id": 115, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 478, + "id": 479, "name": "SignInWithOAuthCredentials", "dereferenced": { - "id": 478, + "id": 479, "name": "SignInWithOAuthCredentials", "kind": 4194304, "kindString": "Type alias", @@ -9275,14 +9331,14 @@ "type": { "type": "reflection", "declaration": { - "id": 479, + "id": 480, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 481, + "id": 482, "name": "options", "kind": 1024, "kindString": "Property", @@ -9299,14 +9355,14 @@ "type": { "type": "reflection", "declaration": { - "id": 482, + "id": 483, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 485, + "id": 486, "name": "queryParams", "kind": 1024, "kindString": "Property", @@ -9326,7 +9382,7 @@ "type": { "type": "reflection", "declaration": { - "id": 486, + "id": 487, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9339,14 +9395,14 @@ } ], "indexSignature": { - "id": 487, + "id": 488, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 488, + "id": 489, "name": "key", "kind": 32768, "flags": {}, @@ -9365,7 +9421,7 @@ } }, { - "id": 483, + "id": 484, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -9388,7 +9444,7 @@ } }, { - "id": 484, + "id": 485, "name": "scopes", "kind": 1024, "kindString": "Property", @@ -9415,7 +9471,7 @@ { "title": "Properties", "kind": 1024, - "children": [485, 483, 484] + "children": [486, 484, 485] } ], "sources": [ @@ -9429,7 +9485,7 @@ } }, { - "id": 480, + "id": 481, "name": "provider", "kind": 1024, "kindString": "Property", @@ -9446,10 +9502,10 @@ ], "type": { "type": "reference", - "id": 285, + "id": 286, "name": "Provider", "dereferenced": { - "id": 285, + "id": 286, "name": "Provider", "kind": 4194304, "kindString": "Type alias", @@ -9541,7 +9597,7 @@ { "title": "Properties", "kind": 1024, - "children": [481, 480] + "children": [482, 481] } ], "sources": [ @@ -9562,7 +9618,7 @@ "typeArguments": [ { "type": "reference", - "id": 314, + "id": 315, "name": "OAuthResponse" } ], @@ -9574,7 +9630,7 @@ ] }, { - "id": 115, + "id": 116, "name": "signInWithOtp", "kind": 2048, "kindString": "Method", @@ -9582,33 +9638,34 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 355, + "line": 369, "character": 8 } ], "signatures": [ { - "id": 116, + "id": 117, "name": "signInWithOtp", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Log in a user using magiclink or a one-time password (OTP).\nIf the `{{ .ConfirmationURL }}` variable is specified in the email template, a magiclink will be sent.\nIf the `{{ .Token }}` variable is specified in the email template, an OTP will be sent.\nIf you're using phone sign-ins, only an OTP will be sent. You won't be able to send a magiclink for phone sign-ins." + "shortText": "Log in a user using magiclink or a one-time password (OTP).", + "text": "If the `{{ .ConfirmationURL }}` variable is specified in the email template, a magiclink will be sent.\nIf the `{{ .Token }}` variable is specified in the email template, an OTP will be sent.\nIf you're using phone sign-ins, only an OTP will be sent. You won't be able to send a magiclink for phone sign-ins.\n\nBe aware that you may get back an error message that will not distinguish\nbetween the cases where the account does not exist or, that the account\ncan only be accessed via social login.\n" }, "parameters": [ { - "id": 117, + "id": 118, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 462, + "id": 463, "name": "SignInWithPasswordlessCredentials", "dereferenced": { - "id": 462, + "id": 463, "name": "SignInWithPasswordlessCredentials", "kind": 4194304, "kindString": "Type alias", @@ -9626,14 +9683,14 @@ { "type": "reflection", "declaration": { - "id": 463, + "id": 464, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 464, + "id": 465, "name": "email", "kind": 1024, "kindString": "Property", @@ -9654,7 +9711,7 @@ } }, { - "id": 465, + "id": 466, "name": "options", "kind": 1024, "kindString": "Property", @@ -9671,14 +9728,14 @@ "type": { "type": "reflection", "declaration": { - "id": 466, + "id": 467, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 470, + "id": 471, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -9701,7 +9758,7 @@ } }, { - "id": 469, + "id": 470, "name": "data", "kind": 1024, "kindString": "Property", @@ -9725,7 +9782,7 @@ } }, { - "id": 467, + "id": 468, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -9748,7 +9805,7 @@ } }, { - "id": 468, + "id": 469, "name": "shouldCreateUser", "kind": 1024, "kindString": "Property", @@ -9775,7 +9832,7 @@ { "title": "Properties", "kind": 1024, - "children": [470, 469, 467, 468] + "children": [471, 470, 468, 469] } ], "sources": [ @@ -9793,7 +9850,7 @@ { "title": "Properties", "kind": 1024, - "children": [464, 465] + "children": [465, 466] } ], "sources": [ @@ -9808,14 +9865,14 @@ { "type": "reflection", "declaration": { - "id": 471, + "id": 472, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 473, + "id": 474, "name": "options", "kind": 1024, "kindString": "Property", @@ -9832,14 +9889,14 @@ "type": { "type": "reflection", "declaration": { - "id": 474, + "id": 475, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 477, + "id": 478, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -9862,7 +9919,7 @@ } }, { - "id": 476, + "id": 477, "name": "data", "kind": 1024, "kindString": "Property", @@ -9886,7 +9943,7 @@ } }, { - "id": 475, + "id": 476, "name": "shouldCreateUser", "kind": 1024, "kindString": "Property", @@ -9913,7 +9970,7 @@ { "title": "Properties", "kind": 1024, - "children": [477, 476, 475] + "children": [478, 477, 476] } ], "sources": [ @@ -9927,7 +9984,7 @@ } }, { - "id": 472, + "id": 473, "name": "phone", "kind": 1024, "kindString": "Property", @@ -9952,7 +10009,7 @@ { "title": "Properties", "kind": 1024, - "children": [473, 472] + "children": [474, 473] } ], "sources": [ @@ -9975,7 +10032,7 @@ "typeArguments": [ { "type": "reference", - "id": 301, + "id": 302, "name": "AuthResponse" } ], @@ -9987,7 +10044,7 @@ ] }, { - "id": 109, + "id": 110, "name": "signInWithPassword", "kind": 2048, "kindString": "Method", @@ -9995,33 +10052,34 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 288, + "line": 297, "character": 8 } ], "signatures": [ { - "id": 110, + "id": 111, "name": "signInWithPassword", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Log in an existing user with an email and password or phone and password." + "shortText": "Log in an existing user with an email and password or phone and password.", + "text": "Be aware that you may get back an error message that will not distingish\nbetween the cases where the account does not exist or that the\nemail/phone and password combination is wrong or that the account can only\nbe accessed via social login.\n" }, "parameters": [ { - "id": 111, + "id": 112, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 447, + "id": 448, "name": "SignInWithPasswordCredentials", "dereferenced": { - "id": 447, + "id": 448, "name": "SignInWithPasswordCredentials", "kind": 4194304, "kindString": "Type alias", @@ -10039,14 +10097,14 @@ { "type": "reflection", "declaration": { - "id": 448, + "id": 449, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 449, + "id": 450, "name": "email", "kind": 1024, "kindString": "Property", @@ -10067,7 +10125,7 @@ } }, { - "id": 451, + "id": 452, "name": "options", "kind": 1024, "kindString": "Property", @@ -10084,14 +10142,14 @@ "type": { "type": "reflection", "declaration": { - "id": 452, + "id": 453, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 454, + "id": 455, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -10114,7 +10172,7 @@ } }, { - "id": 453, + "id": 454, "name": "data", "kind": 1024, "kindString": "Property", @@ -10142,7 +10200,7 @@ { "title": "Properties", "kind": 1024, - "children": [454, 453] + "children": [455, 454] } ], "sources": [ @@ -10156,7 +10214,7 @@ } }, { - "id": 450, + "id": 451, "name": "password", "kind": 1024, "kindString": "Property", @@ -10181,7 +10239,7 @@ { "title": "Properties", "kind": 1024, - "children": [449, 451, 450] + "children": [450, 452, 451] } ], "sources": [ @@ -10196,14 +10254,14 @@ { "type": "reflection", "declaration": { - "id": 455, + "id": 456, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 458, + "id": 459, "name": "options", "kind": 1024, "kindString": "Property", @@ -10220,14 +10278,14 @@ "type": { "type": "reflection", "declaration": { - "id": 459, + "id": 460, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 461, + "id": 462, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -10250,7 +10308,7 @@ } }, { - "id": 460, + "id": 461, "name": "data", "kind": 1024, "kindString": "Property", @@ -10278,7 +10336,7 @@ { "title": "Properties", "kind": 1024, - "children": [461, 460] + "children": [462, 461] } ], "sources": [ @@ -10292,7 +10350,7 @@ } }, { - "id": 457, + "id": 458, "name": "password", "kind": 1024, "kindString": "Property", @@ -10313,7 +10371,7 @@ } }, { - "id": 456, + "id": 457, "name": "phone", "kind": 1024, "kindString": "Property", @@ -10338,7 +10396,7 @@ { "title": "Properties", "kind": 1024, - "children": [458, 457, 456] + "children": [459, 458, 457] } ], "sources": [ @@ -10361,7 +10419,7 @@ "typeArguments": [ { "type": "reference", - "id": 301, + "id": 302, "name": "AuthResponse" } ], @@ -10373,7 +10431,7 @@ ] }, { - "id": 121, + "id": 122, "name": "signInWithSSO", "kind": 2048, "kindString": "Method", @@ -10381,13 +10439,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 458, + "line": 472, "character": 8 } ], "signatures": [ { - "id": 122, + "id": 123, "name": "signInWithSSO", "kind": 4096, "kindString": "Call signature", @@ -10404,17 +10462,17 @@ }, "parameters": [ { - "id": 123, + "id": 124, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 508, + "id": 509, "name": "SignInWithSSO", "dereferenced": { - "id": 508, + "id": 509, "name": "SignInWithSSO", "kind": 4194304, "kindString": "Type alias", @@ -10432,14 +10490,14 @@ { "type": "reflection", "declaration": { - "id": 509, + "id": 510, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 510, + "id": 511, "name": "options", "kind": 1024, "kindString": "Property", @@ -10456,14 +10514,14 @@ "type": { "type": "reflection", "declaration": { - "id": 511, + "id": 512, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 513, + "id": 514, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -10486,7 +10544,7 @@ } }, { - "id": 512, + "id": 513, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -10513,7 +10571,7 @@ { "title": "Properties", "kind": 1024, - "children": [513, 512] + "children": [514, 513] } ], "sources": [ @@ -10531,7 +10589,7 @@ { "title": "Properties", "kind": 1024, - "children": [510] + "children": [511] } ], "sources": [ @@ -10549,14 +10607,14 @@ { "type": "reflection", "declaration": { - "id": 514, + "id": 515, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 515, + "id": 516, "name": "providerId", "kind": 1024, "kindString": "Property", @@ -10581,7 +10639,7 @@ { "title": "Properties", "kind": 1024, - "children": [515] + "children": [516] } ], "sources": [ @@ -10596,14 +10654,14 @@ { "type": "reflection", "declaration": { - "id": 516, + "id": 517, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 517, + "id": 518, "name": "domain", "kind": 1024, "kindString": "Property", @@ -10628,7 +10686,7 @@ { "title": "Properties", "kind": 1024, - "children": [517] + "children": [518] } ], "sources": [ @@ -10653,7 +10711,7 @@ "typeArguments": [ { "type": "reference", - "id": 327, + "id": 328, "name": "SSOResponse" } ], @@ -10665,7 +10723,7 @@ ] }, { - "id": 181, + "id": 182, "name": "signOut", "kind": 2048, "kindString": "Method", @@ -10673,13 +10731,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 809, + "line": 823, "character": 8 } ], "signatures": [ { - "id": 182, + "id": 183, "name": "signOut", "kind": 4096, "kindString": "Call signature", @@ -10694,14 +10752,14 @@ { "type": "reflection", "declaration": { - "id": 183, + "id": 184, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 184, + "id": 185, "name": "error", "kind": 1024, "kindString": "Property", @@ -10709,7 +10767,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 809, + "line": 823, "character": 29 } ], @@ -10722,7 +10780,7 @@ }, { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } ] @@ -10733,7 +10791,7 @@ { "title": "Properties", "kind": 1024, - "children": [184] + "children": [185] } ] } @@ -10747,7 +10805,7 @@ ] }, { - "id": 106, + "id": 107, "name": "signUp", "kind": 2048, "kindString": "Method", @@ -10755,34 +10813,35 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 225, + "line": 229, "character": 8 } ], "signatures": [ { - "id": 107, + "id": 108, "name": "signUp", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { "shortText": "Creates a new user.", + "text": "Be aware that if a user account exists in the system you may get back an\nerror message that attempts to hide this information from the user.\n", "returns": "A logged-in session if the server has \"autoconfirm\" ON" }, "parameters": [ { - "id": 108, + "id": 109, "name": "credentials", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 431, + "id": 432, "name": "SignUpWithPasswordCredentials", "dereferenced": { - "id": 431, + "id": 432, "name": "SignUpWithPasswordCredentials", "kind": 4194304, "kindString": "Type alias", @@ -10800,14 +10859,14 @@ { "type": "reflection", "declaration": { - "id": 432, + "id": 433, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 433, + "id": 434, "name": "email", "kind": 1024, "kindString": "Property", @@ -10828,7 +10887,7 @@ } }, { - "id": 435, + "id": 436, "name": "options", "kind": 1024, "kindString": "Property", @@ -10845,14 +10904,14 @@ "type": { "type": "reflection", "declaration": { - "id": 436, + "id": 437, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 439, + "id": 440, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -10875,7 +10934,7 @@ } }, { - "id": 438, + "id": 439, "name": "data", "kind": 1024, "kindString": "Property", @@ -10899,7 +10958,7 @@ } }, { - "id": 437, + "id": 438, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -10926,7 +10985,7 @@ { "title": "Properties", "kind": 1024, - "children": [439, 438, 437] + "children": [440, 439, 438] } ], "sources": [ @@ -10940,7 +10999,7 @@ } }, { - "id": 434, + "id": 435, "name": "password", "kind": 1024, "kindString": "Property", @@ -10965,7 +11024,7 @@ { "title": "Properties", "kind": 1024, - "children": [433, 435, 434] + "children": [434, 436, 435] } ], "sources": [ @@ -10980,14 +11039,14 @@ { "type": "reflection", "declaration": { - "id": 440, + "id": 441, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 443, + "id": 444, "name": "options", "kind": 1024, "kindString": "Property", @@ -11004,14 +11063,14 @@ "type": { "type": "reflection", "declaration": { - "id": 444, + "id": 445, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 446, + "id": 447, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -11034,7 +11093,7 @@ } }, { - "id": 445, + "id": 446, "name": "data", "kind": 1024, "kindString": "Property", @@ -11062,7 +11121,7 @@ { "title": "Properties", "kind": 1024, - "children": [446, 445] + "children": [447, 446] } ], "sources": [ @@ -11076,7 +11135,7 @@ } }, { - "id": 442, + "id": 443, "name": "password", "kind": 1024, "kindString": "Property", @@ -11097,7 +11156,7 @@ } }, { - "id": 441, + "id": 442, "name": "phone", "kind": 1024, "kindString": "Property", @@ -11122,7 +11181,7 @@ { "title": "Properties", "kind": 1024, - "children": [443, 442, 441] + "children": [444, 443, 442] } ], "sources": [ @@ -11145,7 +11204,7 @@ "typeArguments": [ { "type": "reference", - "id": 301, + "id": 302, "name": "AuthResponse" } ], @@ -11157,7 +11216,7 @@ ] }, { - "id": 144, + "id": 145, "name": "updateUser", "kind": 2048, "kindString": "Method", @@ -11165,13 +11224,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 579, + "line": 593, "character": 8 } ], "signatures": [ { - "id": 145, + "id": 146, "name": "updateUser", "kind": 4096, "kindString": "Call signature", @@ -11181,24 +11240,24 @@ }, "parameters": [ { - "id": 146, + "id": 147, "name": "attributes", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 406, + "id": 407, "name": "UserAttributes", "dereferenced": { - "id": 406, + "id": 407, "name": "UserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 410, + "id": 411, "name": "data", "kind": 1024, "kindString": "Property", @@ -11222,7 +11281,7 @@ } }, { - "id": 407, + "id": 408, "name": "email", "kind": 1024, "kindString": "Property", @@ -11245,7 +11304,7 @@ } }, { - "id": 409, + "id": 410, "name": "password", "kind": 1024, "kindString": "Property", @@ -11268,7 +11327,7 @@ } }, { - "id": 408, + "id": 409, "name": "phone", "kind": 1024, "kindString": "Property", @@ -11295,7 +11354,7 @@ { "title": "Properties", "kind": 1024, - "children": [410, 407, 409, 408] + "children": [411, 408, 410, 409] } ], "sources": [ @@ -11308,7 +11367,7 @@ "extendedBy": [ { "type": "reference", - "id": 411, + "id": 412, "name": "AdminUserAttributes" } ] @@ -11321,7 +11380,7 @@ "typeArguments": [ { "type": "reference", - "id": 336, + "id": 337, "name": "UserResponse" } ], @@ -11333,7 +11392,7 @@ ] }, { - "id": 118, + "id": 119, "name": "verifyOtp", "kind": 2048, "kindString": "Method", @@ -11341,13 +11400,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 399, + "line": 413, "character": 8 } ], "signatures": [ { - "id": 119, + "id": 120, "name": "verifyOtp", "kind": 4096, "kindString": "Call signature", @@ -11357,17 +11416,17 @@ }, "parameters": [ { - "id": 120, + "id": 121, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 489, + "id": 490, "name": "VerifyOtpParams", "dereferenced": { - "id": 489, + "id": 490, "name": "VerifyOtpParams", "kind": 4194304, "kindString": "Type alias", @@ -11383,14 +11442,14 @@ "type": "union", "types": [ { - "id": 490, + "id": 491, "name": "VerifyMobileOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 494, + "id": 495, "name": "options", "kind": 1024, "kindString": "Property", @@ -11407,14 +11466,14 @@ "type": { "type": "reflection", "declaration": { - "id": 495, + "id": 496, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 497, + "id": 498, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -11443,7 +11502,7 @@ } }, { - "id": 496, + "id": 497, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -11470,14 +11529,14 @@ { "title": "Properties", "kind": 1024, - "children": [497, 496] + "children": [498, 497] } ] } } }, { - "id": 491, + "id": 492, "name": "phone", "kind": 1024, "kindString": "Property", @@ -11498,7 +11557,7 @@ } }, { - "id": 492, + "id": 493, "name": "token", "kind": 1024, "kindString": "Property", @@ -11519,7 +11578,7 @@ } }, { - "id": 493, + "id": 494, "name": "type", "kind": 1024, "kindString": "Property", @@ -11536,10 +11595,10 @@ ], "type": { "type": "reference", - "id": 506, + "id": 507, "name": "MobileOtpType", "dereferenced": { - "id": 506, + "id": 507, "name": "MobileOtpType", "kind": 4194304, "kindString": "Type alias", @@ -11572,7 +11631,7 @@ { "title": "Properties", "kind": 1024, - "children": [494, 491, 492, 493] + "children": [495, 492, 493, 494] } ], "sources": [ @@ -11584,14 +11643,14 @@ ] }, { - "id": 498, + "id": 499, "name": "VerifyEmailOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 499, + "id": 500, "name": "email", "kind": 1024, "kindString": "Property", @@ -11612,7 +11671,7 @@ } }, { - "id": 502, + "id": 503, "name": "options", "kind": 1024, "kindString": "Property", @@ -11629,14 +11688,14 @@ "type": { "type": "reflection", "declaration": { - "id": 503, + "id": 504, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 505, + "id": 506, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -11659,7 +11718,7 @@ } }, { - "id": 504, + "id": 505, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -11686,14 +11745,14 @@ { "title": "Properties", "kind": 1024, - "children": [505, 504] + "children": [506, 505] } ] } } }, { - "id": 500, + "id": 501, "name": "token", "kind": 1024, "kindString": "Property", @@ -11714,7 +11773,7 @@ } }, { - "id": 501, + "id": 502, "name": "type", "kind": 1024, "kindString": "Property", @@ -11731,10 +11790,10 @@ ], "type": { "type": "reference", - "id": 507, + "id": 508, "name": "EmailOtpType", "dereferenced": { - "id": 507, + "id": 508, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -11779,7 +11838,7 @@ { "title": "Properties", "kind": 1024, - "children": [499, 502, 500, 501] + "children": [500, 503, 501, 502] } ], "sources": [ @@ -11801,7 +11860,7 @@ "typeArguments": [ { "type": "reference", - "id": 301, + "id": 302, "name": "AuthResponse" } ], @@ -11817,17 +11876,17 @@ { "title": "Constructors", "kind": 512, - "children": [76] + "children": [77] }, { "title": "Properties", "kind": 1024, - "children": [79, 80] + "children": [80, 81] }, { "title": "Methods", "kind": 2048, - "children": [124, 141, 102, 185, 160, 196, 154, 112, 115, 109, 121, 181, 106, 144, 118] + "children": [125, 142, 103, 186, 161, 197, 155, 113, 116, 110, 122, 182, 107, 145, 119] } ], "sources": [ @@ -11839,7 +11898,7 @@ ] }, { - "id": 356, + "id": 357, "name": "AMREntry", "kind": 256, "kindString": "Interface", @@ -11856,7 +11915,7 @@ }, "children": [ { - "id": 357, + "id": 358, "name": "method", "kind": 1024, "kindString": "Property", @@ -11877,7 +11936,7 @@ } }, { - "id": 358, + "id": 359, "name": "timestamp", "kind": 1024, "kindString": "Property", @@ -11902,7 +11961,7 @@ { "title": "Properties", "kind": 1024, - "children": [357, 358] + "children": [358, 359] } ], "sources": [ @@ -11914,14 +11973,14 @@ ] }, { - "id": 411, + "id": 412, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 413, + "id": 414, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -11945,7 +12004,7 @@ } }, { - "id": 416, + "id": 417, "name": "ban_duration", "kind": 1024, "kindString": "Property", @@ -11969,7 +12028,7 @@ } }, { - "id": 420, + "id": 421, "name": "data", "kind": 1024, "kindString": "Property", @@ -11993,12 +12052,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 410, + "id": 411, "name": "UserAttributes.data" } }, { - "id": 417, + "id": 418, "name": "email", "kind": 1024, "kindString": "Property", @@ -12021,12 +12080,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 407, + "id": 408, "name": "UserAttributes.email" } }, { - "id": 414, + "id": 415, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -12050,7 +12109,7 @@ } }, { - "id": 419, + "id": 420, "name": "password", "kind": 1024, "kindString": "Property", @@ -12073,12 +12132,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 409, + "id": 410, "name": "UserAttributes.password" } }, { - "id": 418, + "id": 419, "name": "phone", "kind": 1024, "kindString": "Property", @@ -12101,12 +12160,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 408, + "id": 409, "name": "UserAttributes.phone" } }, { - "id": 415, + "id": 416, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -12130,7 +12189,7 @@ } }, { - "id": 412, + "id": 413, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -12158,7 +12217,7 @@ { "title": "Properties", "kind": 1024, - "children": [413, 416, 420, 417, 414, 419, 418, 415, 412] + "children": [414, 417, 421, 418, 415, 420, 419, 416, 413] } ], "sources": [ @@ -12171,13 +12230,13 @@ "extendedTypes": [ { "type": "reference", - "id": 406, + "id": 407, "name": "UserAttributes" } ] }, { - "id": 370, + "id": 371, "name": "Factor", "kind": 256, "kindString": "Interface", @@ -12201,7 +12260,7 @@ }, "children": [ { - "id": 375, + "id": 376, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -12219,7 +12278,7 @@ } }, { - "id": 373, + "id": 374, "name": "factor_type", "kind": 1024, "kindString": "Property", @@ -12240,7 +12299,7 @@ } }, { - "id": 372, + "id": 373, "name": "friendly_name", "kind": 1024, "kindString": "Property", @@ -12263,7 +12322,7 @@ } }, { - "id": 371, + "id": 372, "name": "id", "kind": 1024, "kindString": "Property", @@ -12284,7 +12343,7 @@ } }, { - "id": 374, + "id": 375, "name": "status", "kind": 1024, "kindString": "Property", @@ -12314,7 +12373,7 @@ } }, { - "id": 376, + "id": 377, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -12336,7 +12395,7 @@ { "title": "Properties", "kind": 1024, - "children": [375, 373, 372, 371, 374, 376] + "children": [376, 374, 373, 372, 375, 377] } ], "sources": [ @@ -12348,14 +12407,14 @@ ] }, { - "id": 540, + "id": 541, "name": "GenerateLinkOptions", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 541, + "id": 542, "name": "data", "kind": 1024, "kindString": "Property", @@ -12379,7 +12438,7 @@ } }, { - "id": 542, + "id": 543, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -12406,7 +12465,7 @@ { "title": "Properties", "kind": 1024, - "children": [541, 542] + "children": [542, 543] } ], "sources": [ @@ -12418,7 +12477,7 @@ ] }, { - "id": 699, + "id": 700, "name": "GoTrueAdminMFAApi", "kind": 256, "kindString": "Interface", @@ -12434,14 +12493,14 @@ }, "children": [ { - "id": 703, + "id": 704, "name": "deleteFactor", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 704, + "id": 705, "name": "deleteFactor", "kind": 4096, "kindString": "Call signature", @@ -12461,17 +12520,17 @@ }, "parameters": [ { - "id": 705, + "id": 706, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 683, + "id": 684, "name": "AuthMFAAdminDeleteFactorParams", "dereferenced": { - "id": 683, + "id": 684, "name": "AuthMFAAdminDeleteFactorParams", "kind": 4194304, "kindString": "Type alias", @@ -12487,21 +12546,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 842, + "line": 838, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 684, + "id": 685, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 685, + "id": 686, "name": "id", "kind": 1024, "kindString": "Property", @@ -12512,7 +12571,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 844, + "line": 840, "character": 2 } ], @@ -12522,7 +12581,7 @@ } }, { - "id": 686, + "id": 687, "name": "userId", "kind": 1024, "kindString": "Property", @@ -12533,7 +12592,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 847, + "line": 843, "character": 2 } ], @@ -12547,13 +12606,13 @@ { "title": "Properties", "kind": 1024, - "children": [685, 686] + "children": [686, 687] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 842, + "line": 838, "character": 45 } ] @@ -12568,7 +12627,7 @@ "typeArguments": [ { "type": "reference", - "id": 674, + "id": 675, "name": "AuthMFAAdminDeleteFactorResponse" } ], @@ -12580,14 +12639,14 @@ ] }, { - "id": 700, + "id": 701, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 701, + "id": 702, "name": "listFactors", "kind": 4096, "kindString": "Call signature", @@ -12597,17 +12656,17 @@ }, "parameters": [ { - "id": 702, + "id": 703, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 696, + "id": 697, "name": "AuthMFAAdminListFactorsParams", "dereferenced": { - "id": 696, + "id": 697, "name": "AuthMFAAdminListFactorsParams", "kind": 4194304, "kindString": "Type alias", @@ -12623,21 +12682,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 862, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 697, + "id": 698, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 698, + "id": 699, "name": "userId", "kind": 1024, "kindString": "Property", @@ -12648,7 +12707,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 868, + "line": 864, "character": 2 } ], @@ -12662,13 +12721,13 @@ { "title": "Properties", "kind": 1024, - "children": [698] + "children": [699] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 862, "character": 44 } ] @@ -12683,7 +12742,7 @@ "typeArguments": [ { "type": "reference", - "id": 687, + "id": 688, "name": "AuthMFAAdminListFactorsResponse" } ], @@ -12699,19 +12758,19 @@ { "title": "Methods", "kind": 2048, - "children": [703, 700] + "children": [704, 701] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 876, + "line": 872, "character": 17 } ] }, { - "id": 654, + "id": 655, "name": "GoTrueMFAApi", "kind": 256, "kindString": "Interface", @@ -12721,14 +12780,14 @@ }, "children": [ { - "id": 658, + "id": 659, "name": "challenge", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 659, + "id": 660, "name": "challenge", "kind": 4096, "kindString": "Call signature", @@ -12738,17 +12797,17 @@ }, "parameters": [ { - "id": 660, + "id": 661, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 578, + "id": 579, "name": "MFAChallengeParams", "dereferenced": { - "id": 578, + "id": 579, "name": "MFAChallengeParams", "kind": 4194304, "kindString": "Type alias", @@ -12763,14 +12822,14 @@ "type": { "type": "reflection", "declaration": { - "id": 579, + "id": 580, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 580, + "id": 581, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -12795,7 +12854,7 @@ { "title": "Properties", "kind": 1024, - "children": [580] + "children": [581] } ], "sources": [ @@ -12816,7 +12875,7 @@ "typeArguments": [ { "type": "reference", - "id": 622, + "id": 623, "name": "AuthMFAChallengeResponse" } ], @@ -12828,14 +12887,14 @@ ] }, { - "id": 667, + "id": 668, "name": "challengeAndVerify", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 668, + "id": 669, "name": "challengeAndVerify", "kind": 4096, "kindString": "Call signature", @@ -12845,17 +12904,17 @@ }, "parameters": [ { - "id": 669, + "id": 670, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 581, + "id": 582, "name": "MFAChallengeAndVerifyParams", "dereferenced": { - "id": 581, + "id": 582, "name": "MFAChallengeAndVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -12870,14 +12929,14 @@ "type": { "type": "reflection", "declaration": { - "id": 582, + "id": 583, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 584, + "id": 585, "name": "code", "kind": 1024, "kindString": "Property", @@ -12898,7 +12957,7 @@ } }, { - "id": 583, + "id": 584, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -12923,7 +12982,7 @@ { "title": "Properties", "kind": 1024, - "children": [584, 583] + "children": [585, 584] } ], "sources": [ @@ -12944,7 +13003,7 @@ "typeArguments": [ { "type": "reference", - "id": 585, + "id": 586, "name": "AuthMFAVerifyResponse" } ], @@ -12956,14 +13015,14 @@ ] }, { - "id": 655, + "id": 656, "name": "enroll", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 656, + "id": 657, "name": "enroll", "kind": 4096, "kindString": "Call signature", @@ -12974,17 +13033,17 @@ }, "parameters": [ { - "id": 657, + "id": 658, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 565, + "id": 566, "name": "MFAEnrollParams", "dereferenced": { - "id": 565, + "id": 566, "name": "MFAEnrollParams", "kind": 4194304, "kindString": "Type alias", @@ -12999,14 +13058,14 @@ "type": { "type": "reflection", "declaration": { - "id": 566, + "id": 567, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 567, + "id": 568, "name": "factorType", "kind": 1024, "kindString": "Property", @@ -13027,7 +13086,7 @@ } }, { - "id": 569, + "id": 570, "name": "friendlyName", "kind": 1024, "kindString": "Property", @@ -13050,7 +13109,7 @@ } }, { - "id": 568, + "id": 569, "name": "issuer", "kind": 1024, "kindString": "Property", @@ -13077,7 +13136,7 @@ { "title": "Properties", "kind": 1024, - "children": [567, 569, 568] + "children": [568, 570, 569] } ], "sources": [ @@ -13098,7 +13157,7 @@ "typeArguments": [ { "type": "reference", - "id": 598, + "id": 599, "name": "AuthMFAEnrollResponse" } ], @@ -13110,14 +13169,14 @@ ] }, { - "id": 672, + "id": 673, "name": "getAuthenticatorAssuranceLevel", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 673, + "id": 674, "name": "getAuthenticatorAssuranceLevel", "kind": 4096, "kindString": "Call signature", @@ -13131,7 +13190,7 @@ "typeArguments": [ { "type": "reference", - "id": 643, + "id": 644, "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse" } ], @@ -13143,20 +13202,20 @@ ] }, { - "id": 670, + "id": 671, "name": "listFactors", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 671, + "id": 672, "name": "listFactors", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Returns the list of MFA factors enabled for this user. For most use cases\nyou should consider using {@link\nGoTrueMFAApi#getAuthenticatorAssuranceLevel}. This uses a cached version\nof the factors and avoids incurring a network call. If you need to update\nthis list, call {@link GoTrueClient#getUser} first.", + "shortText": "Returns the list of MFA factors enabled for this user.", "tags": [ { "tag": "see", @@ -13177,7 +13236,7 @@ "typeArguments": [ { "type": "reference", - "id": 632, + "id": 633, "name": "AuthMFAListFactorsResponse" } ], @@ -13189,14 +13248,14 @@ ] }, { - "id": 664, + "id": 665, "name": "unenroll", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 665, + "id": 666, "name": "unenroll", "kind": 4096, "kindString": "Call signature", @@ -13206,17 +13265,17 @@ }, "parameters": [ { - "id": 666, + "id": 667, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 570, + "id": 571, "name": "MFAUnenrollParams", "dereferenced": { - "id": 570, + "id": 571, "name": "MFAUnenrollParams", "kind": 4194304, "kindString": "Type alias", @@ -13231,14 +13290,14 @@ "type": { "type": "reflection", "declaration": { - "id": 571, + "id": 572, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 572, + "id": 573, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -13263,7 +13322,7 @@ { "title": "Properties", "kind": 1024, - "children": [572] + "children": [573] } ], "sources": [ @@ -13284,7 +13343,7 @@ "typeArguments": [ { "type": "reference", - "id": 613, + "id": 614, "name": "AuthMFAUnenrollResponse" } ], @@ -13296,14 +13355,14 @@ ] }, { - "id": 661, + "id": 662, "name": "verify", "kind": 2048, "kindString": "Method", "flags": {}, "signatures": [ { - "id": 662, + "id": 663, "name": "verify", "kind": 4096, "kindString": "Call signature", @@ -13313,17 +13372,17 @@ }, "parameters": [ { - "id": 663, + "id": 664, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 573, + "id": 574, "name": "MFAVerifyParams", "dereferenced": { - "id": 573, + "id": 574, "name": "MFAVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -13338,14 +13397,14 @@ "type": { "type": "reflection", "declaration": { - "id": 574, + "id": 575, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 576, + "id": 577, "name": "challengeId", "kind": 1024, "kindString": "Property", @@ -13366,7 +13425,7 @@ } }, { - "id": 577, + "id": 578, "name": "code", "kind": 1024, "kindString": "Property", @@ -13387,7 +13446,7 @@ } }, { - "id": 575, + "id": 576, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -13412,7 +13471,7 @@ { "title": "Properties", "kind": 1024, - "children": [576, 577, 575] + "children": [577, 578, 576] } ], "sources": [ @@ -13433,7 +13492,7 @@ "typeArguments": [ { "type": "reference", - "id": 585, + "id": 586, "name": "AuthMFAVerifyResponse" } ], @@ -13449,7 +13508,7 @@ { "title": "Methods", "kind": 2048, - "children": [658, 667, 655, 672, 670, 664, 661] + "children": [659, 668, 656, 673, 671, 665, 662] } ], "sources": [ @@ -13461,14 +13520,14 @@ ] }, { - "id": 347, + "id": 348, "name": "Session", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 350, + "id": 351, "name": "access_token", "kind": 1024, "kindString": "Property", @@ -13489,7 +13548,7 @@ } }, { - "id": 353, + "id": 354, "name": "expires_at", "kind": 1024, "kindString": "Property", @@ -13512,7 +13571,7 @@ } }, { - "id": 352, + "id": 353, "name": "expires_in", "kind": 1024, "kindString": "Property", @@ -13533,7 +13592,7 @@ } }, { - "id": 349, + "id": 350, "name": "provider_refresh_token", "kind": 1024, "kindString": "Property", @@ -13565,7 +13624,7 @@ } }, { - "id": 348, + "id": 349, "name": "provider_token", "kind": 1024, "kindString": "Property", @@ -13597,7 +13656,7 @@ } }, { - "id": 351, + "id": 352, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -13618,7 +13677,7 @@ } }, { - "id": 354, + "id": 355, "name": "token_type", "kind": 1024, "kindString": "Property", @@ -13636,7 +13695,7 @@ } }, { - "id": 355, + "id": 356, "name": "user", "kind": 1024, "kindString": "Property", @@ -13650,17 +13709,17 @@ ], "type": { "type": "reference", - "id": 384, + "id": 385, "name": "User", "dereferenced": { - "id": 384, + "id": 385, "name": "User", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 394, + "id": 395, "name": "action_link", "kind": 1024, "kindString": "Property", @@ -13680,7 +13739,7 @@ } }, { - "id": 386, + "id": 387, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -13694,17 +13753,17 @@ ], "type": { "type": "reference", - "id": 377, + "id": 378, "name": "UserAppMetadata", "dereferenced": { - "id": 377, + "id": 378, "name": "UserAppMetadata", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 378, + "id": 379, "name": "provider", "kind": 1024, "kindString": "Property", @@ -13728,7 +13787,7 @@ { "title": "Properties", "kind": 1024, - "children": [378] + "children": [379] } ], "sources": [ @@ -13739,14 +13798,14 @@ } ], "indexSignature": { - "id": 379, + "id": 380, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 380, + "id": 381, "name": "key", "kind": 32768, "flags": {}, @@ -13765,7 +13824,7 @@ } }, { - "id": 388, + "id": 389, "name": "aud", "kind": 1024, "kindString": "Property", @@ -13783,7 +13842,7 @@ } }, { - "id": 389, + "id": 390, "name": "confirmation_sent_at", "kind": 1024, "kindString": "Property", @@ -13803,7 +13862,7 @@ } }, { - "id": 398, + "id": 399, "name": "confirmed_at", "kind": 1024, "kindString": "Property", @@ -13823,7 +13882,7 @@ } }, { - "id": 397, + "id": 398, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -13841,7 +13900,7 @@ } }, { - "id": 395, + "id": 396, "name": "email", "kind": 1024, "kindString": "Property", @@ -13861,7 +13920,7 @@ } }, { - "id": 391, + "id": 392, "name": "email_change_sent_at", "kind": 1024, "kindString": "Property", @@ -13881,7 +13940,7 @@ } }, { - "id": 399, + "id": 400, "name": "email_confirmed_at", "kind": 1024, "kindString": "Property", @@ -13901,7 +13960,7 @@ } }, { - "id": 405, + "id": 406, "name": "factors", "kind": 1024, "kindString": "Property", @@ -13919,13 +13978,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 370, + "id": 371, "name": "Factor" } } }, { - "id": 385, + "id": 386, "name": "id", "kind": 1024, "kindString": "Property", @@ -13943,7 +14002,7 @@ } }, { - "id": 404, + "id": 405, "name": "identities", "kind": 1024, "kindString": "Property", @@ -13961,13 +14020,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 359, + "id": 360, "name": "UserIdentity" } } }, { - "id": 393, + "id": 394, "name": "invited_at", "kind": 1024, "kindString": "Property", @@ -13987,7 +14046,7 @@ } }, { - "id": 401, + "id": 402, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", @@ -14007,7 +14066,7 @@ } }, { - "id": 392, + "id": 393, "name": "new_email", "kind": 1024, "kindString": "Property", @@ -14027,7 +14086,7 @@ } }, { - "id": 396, + "id": 397, "name": "phone", "kind": 1024, "kindString": "Property", @@ -14047,7 +14106,7 @@ } }, { - "id": 400, + "id": 401, "name": "phone_confirmed_at", "kind": 1024, "kindString": "Property", @@ -14067,7 +14126,7 @@ } }, { - "id": 390, + "id": 391, "name": "recovery_sent_at", "kind": 1024, "kindString": "Property", @@ -14087,7 +14146,7 @@ } }, { - "id": 402, + "id": 403, "name": "role", "kind": 1024, "kindString": "Property", @@ -14107,7 +14166,7 @@ } }, { - "id": 403, + "id": 404, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -14127,7 +14186,7 @@ } }, { - "id": 387, + "id": 388, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -14141,10 +14200,10 @@ ], "type": { "type": "reference", - "id": 381, + "id": 382, "name": "UserMetadata", "dereferenced": { - "id": 381, + "id": 382, "name": "UserMetadata", "kind": 256, "kindString": "Interface", @@ -14157,14 +14216,14 @@ } ], "indexSignature": { - "id": 382, + "id": 383, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 383, + "id": 384, "name": "key", "kind": 32768, "flags": {}, @@ -14188,8 +14247,8 @@ "title": "Properties", "kind": 1024, "children": [ - 394, 386, 388, 389, 398, 397, 395, 391, 399, 405, 385, 404, 393, 401, 392, 396, - 400, 390, 402, 403, 387 + 395, 387, 389, 390, 399, 398, 396, 392, 400, 406, 386, 405, 394, 402, 393, 397, + 401, 391, 403, 404, 388 ] } ], @@ -14208,7 +14267,7 @@ { "title": "Properties", "kind": 1024, - "children": [350, 353, 352, 349, 348, 351, 354, 355] + "children": [351, 354, 353, 350, 349, 352, 355, 356] } ], "sources": [ @@ -14220,14 +14279,14 @@ ] }, { - "id": 421, + "id": 422, "name": "Subscription", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 422, + "id": 423, "name": "id", "kind": 1024, "kindString": "Property", @@ -14248,7 +14307,7 @@ } }, { - "id": 423, + "id": 424, "name": "callback", "kind": 2048, "kindString": "Method", @@ -14262,7 +14321,7 @@ ], "signatures": [ { - "id": 424, + "id": 425, "name": "callback", "kind": 4096, "kindString": "Call signature", @@ -14272,17 +14331,17 @@ }, "parameters": [ { - "id": 425, + "id": 426, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 287, + "id": 288, "name": "AuthChangeEvent", "dereferenced": { - "id": 287, + "id": 288, "name": "AuthChangeEvent", "kind": 4194304, "kindString": "Type alias", @@ -14322,7 +14381,7 @@ "value": "USER_DELETED" }, { - "id": 286, + "id": 287, "name": "AuthChangeEventMFA", "kind": 4194304, "kindString": "Type alias", @@ -14345,7 +14404,7 @@ } }, { - "id": 426, + "id": 427, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -14359,7 +14418,7 @@ }, { "type": "reference", - "id": 347, + "id": 348, "name": "Session" } ] @@ -14374,7 +14433,7 @@ ] }, { - "id": 427, + "id": 428, "name": "unsubscribe", "kind": 2048, "kindString": "Method", @@ -14388,7 +14447,7 @@ ], "signatures": [ { - "id": 428, + "id": 429, "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", @@ -14408,12 +14467,12 @@ { "title": "Properties", "kind": 1024, - "children": [422] + "children": [423] }, { "title": "Methods", "kind": 2048, - "children": [423, 427] + "children": [424, 428] } ], "sources": [ @@ -14425,14 +14484,14 @@ ] }, { - "id": 429, + "id": 430, "name": "UpdatableFactorAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 430, + "id": 431, "name": "friendlyName", "kind": 1024, "kindString": "Property", @@ -14454,7 +14513,7 @@ { "title": "Properties", "kind": 1024, - "children": [430] + "children": [431] } ], "sources": [ @@ -14466,14 +14525,14 @@ ] }, { - "id": 384, + "id": 385, "name": "User", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 394, + "id": 395, "name": "action_link", "kind": 1024, "kindString": "Property", @@ -14493,7 +14552,7 @@ } }, { - "id": 386, + "id": 387, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -14507,17 +14566,17 @@ ], "type": { "type": "reference", - "id": 377, + "id": 378, "name": "UserAppMetadata", "dereferenced": { - "id": 377, + "id": 378, "name": "UserAppMetadata", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 378, + "id": 379, "name": "provider", "kind": 1024, "kindString": "Property", @@ -14541,7 +14600,7 @@ { "title": "Properties", "kind": 1024, - "children": [378] + "children": [379] } ], "sources": [ @@ -14552,14 +14611,14 @@ } ], "indexSignature": { - "id": 379, + "id": 380, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 380, + "id": 381, "name": "key", "kind": 32768, "flags": {}, @@ -14578,7 +14637,7 @@ } }, { - "id": 388, + "id": 389, "name": "aud", "kind": 1024, "kindString": "Property", @@ -14596,7 +14655,7 @@ } }, { - "id": 389, + "id": 390, "name": "confirmation_sent_at", "kind": 1024, "kindString": "Property", @@ -14616,7 +14675,7 @@ } }, { - "id": 398, + "id": 399, "name": "confirmed_at", "kind": 1024, "kindString": "Property", @@ -14636,7 +14695,7 @@ } }, { - "id": 397, + "id": 398, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -14654,7 +14713,7 @@ } }, { - "id": 395, + "id": 396, "name": "email", "kind": 1024, "kindString": "Property", @@ -14674,7 +14733,7 @@ } }, { - "id": 391, + "id": 392, "name": "email_change_sent_at", "kind": 1024, "kindString": "Property", @@ -14694,7 +14753,7 @@ } }, { - "id": 399, + "id": 400, "name": "email_confirmed_at", "kind": 1024, "kindString": "Property", @@ -14714,7 +14773,7 @@ } }, { - "id": 405, + "id": 406, "name": "factors", "kind": 1024, "kindString": "Property", @@ -14732,13 +14791,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 370, + "id": 371, "name": "Factor" } } }, { - "id": 385, + "id": 386, "name": "id", "kind": 1024, "kindString": "Property", @@ -14756,7 +14815,7 @@ } }, { - "id": 404, + "id": 405, "name": "identities", "kind": 1024, "kindString": "Property", @@ -14774,13 +14833,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 359, + "id": 360, "name": "UserIdentity" } } }, { - "id": 393, + "id": 394, "name": "invited_at", "kind": 1024, "kindString": "Property", @@ -14800,7 +14859,7 @@ } }, { - "id": 401, + "id": 402, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", @@ -14820,7 +14879,7 @@ } }, { - "id": 392, + "id": 393, "name": "new_email", "kind": 1024, "kindString": "Property", @@ -14840,7 +14899,7 @@ } }, { - "id": 396, + "id": 397, "name": "phone", "kind": 1024, "kindString": "Property", @@ -14860,7 +14919,7 @@ } }, { - "id": 400, + "id": 401, "name": "phone_confirmed_at", "kind": 1024, "kindString": "Property", @@ -14880,7 +14939,7 @@ } }, { - "id": 390, + "id": 391, "name": "recovery_sent_at", "kind": 1024, "kindString": "Property", @@ -14900,7 +14959,7 @@ } }, { - "id": 402, + "id": 403, "name": "role", "kind": 1024, "kindString": "Property", @@ -14920,7 +14979,7 @@ } }, { - "id": 403, + "id": 404, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -14940,7 +14999,7 @@ } }, { - "id": 387, + "id": 388, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -14954,10 +15013,10 @@ ], "type": { "type": "reference", - "id": 381, + "id": 382, "name": "UserMetadata", "dereferenced": { - "id": 381, + "id": 382, "name": "UserMetadata", "kind": 256, "kindString": "Interface", @@ -14970,14 +15029,14 @@ } ], "indexSignature": { - "id": 382, + "id": 383, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 383, + "id": 384, "name": "key", "kind": 32768, "flags": {}, @@ -15001,8 +15060,8 @@ "title": "Properties", "kind": 1024, "children": [ - 394, 386, 388, 389, 398, 397, 395, 391, 399, 405, 385, 404, 393, 401, 392, 396, 400, - 390, 402, 403, 387 + 395, 387, 389, 390, 399, 398, 396, 392, 400, 406, 386, 405, 394, 402, 393, 397, 401, + 391, 403, 404, 388 ] } ], @@ -15015,14 +15074,14 @@ ] }, { - "id": 377, + "id": 378, "name": "UserAppMetadata", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 378, + "id": 379, "name": "provider", "kind": 1024, "kindString": "Property", @@ -15046,7 +15105,7 @@ { "title": "Properties", "kind": 1024, - "children": [378] + "children": [379] } ], "sources": [ @@ -15057,14 +15116,14 @@ } ], "indexSignature": { - "id": 379, + "id": 380, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 380, + "id": 381, "name": "key", "kind": 32768, "flags": {}, @@ -15081,14 +15140,14 @@ } }, { - "id": 406, + "id": 407, "name": "UserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 410, + "id": 411, "name": "data", "kind": 1024, "kindString": "Property", @@ -15112,7 +15171,7 @@ } }, { - "id": 407, + "id": 408, "name": "email", "kind": 1024, "kindString": "Property", @@ -15135,7 +15194,7 @@ } }, { - "id": 409, + "id": 410, "name": "password", "kind": 1024, "kindString": "Property", @@ -15158,7 +15217,7 @@ } }, { - "id": 408, + "id": 409, "name": "phone", "kind": 1024, "kindString": "Property", @@ -15185,7 +15244,7 @@ { "title": "Properties", "kind": 1024, - "children": [410, 407, 409, 408] + "children": [411, 408, 410, 409] } ], "sources": [ @@ -15198,20 +15257,20 @@ "extendedBy": [ { "type": "reference", - "id": 411, + "id": 412, "name": "AdminUserAttributes" } ] }, { - "id": 359, + "id": 360, "name": "UserIdentity", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 367, + "id": 368, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -15229,7 +15288,7 @@ } }, { - "id": 360, + "id": 361, "name": "id", "kind": 1024, "kindString": "Property", @@ -15247,7 +15306,7 @@ } }, { - "id": 362, + "id": 363, "name": "identity_data", "kind": 1024, "kindString": "Property", @@ -15262,20 +15321,20 @@ "type": { "type": "reflection", "declaration": { - "id": 363, + "id": 364, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 364, + "id": 365, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 365, + "id": 366, "name": "key", "kind": 32768, "flags": {}, @@ -15294,7 +15353,7 @@ } }, { - "id": 368, + "id": 369, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", @@ -15312,7 +15371,7 @@ } }, { - "id": 366, + "id": 367, "name": "provider", "kind": 1024, "kindString": "Property", @@ -15330,7 +15389,7 @@ } }, { - "id": 369, + "id": 370, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -15350,7 +15409,7 @@ } }, { - "id": 361, + "id": 362, "name": "user_id", "kind": 1024, "kindString": "Property", @@ -15372,7 +15431,7 @@ { "title": "Properties", "kind": 1024, - "children": [367, 360, 362, 368, 366, 369, 361] + "children": [368, 361, 363, 369, 367, 370, 362] } ], "sources": [ @@ -15384,7 +15443,7 @@ ] }, { - "id": 381, + "id": 382, "name": "UserMetadata", "kind": 256, "kindString": "Interface", @@ -15397,14 +15456,14 @@ } ], "indexSignature": { - "id": 382, + "id": 383, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 383, + "id": 384, "name": "key", "kind": 32768, "flags": {}, @@ -15421,14 +15480,14 @@ } }, { - "id": 498, + "id": 499, "name": "VerifyEmailOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 499, + "id": 500, "name": "email", "kind": 1024, "kindString": "Property", @@ -15449,7 +15508,7 @@ } }, { - "id": 502, + "id": 503, "name": "options", "kind": 1024, "kindString": "Property", @@ -15466,14 +15525,14 @@ "type": { "type": "reflection", "declaration": { - "id": 503, + "id": 504, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 505, + "id": 506, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -15496,7 +15555,7 @@ } }, { - "id": 504, + "id": 505, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -15523,14 +15582,14 @@ { "title": "Properties", "kind": 1024, - "children": [505, 504] + "children": [506, 505] } ] } } }, { - "id": 500, + "id": 501, "name": "token", "kind": 1024, "kindString": "Property", @@ -15551,7 +15610,7 @@ } }, { - "id": 501, + "id": 502, "name": "type", "kind": 1024, "kindString": "Property", @@ -15568,10 +15627,10 @@ ], "type": { "type": "reference", - "id": 507, + "id": 508, "name": "EmailOtpType", "dereferenced": { - "id": 507, + "id": 508, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -15616,7 +15675,7 @@ { "title": "Properties", "kind": 1024, - "children": [499, 502, 500, 501] + "children": [500, 503, 501, 502] } ], "sources": [ @@ -15628,14 +15687,14 @@ ] }, { - "id": 490, + "id": 491, "name": "VerifyMobileOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 494, + "id": 495, "name": "options", "kind": 1024, "kindString": "Property", @@ -15652,14 +15711,14 @@ "type": { "type": "reflection", "declaration": { - "id": 495, + "id": 496, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 497, + "id": 498, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -15688,7 +15747,7 @@ } }, { - "id": 496, + "id": 497, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -15715,14 +15774,14 @@ { "title": "Properties", "kind": 1024, - "children": [497, 496] + "children": [498, 497] } ] } } }, { - "id": 491, + "id": 492, "name": "phone", "kind": 1024, "kindString": "Property", @@ -15743,7 +15802,7 @@ } }, { - "id": 492, + "id": 493, "name": "token", "kind": 1024, "kindString": "Property", @@ -15764,7 +15823,7 @@ } }, { - "id": 493, + "id": 494, "name": "type", "kind": 1024, "kindString": "Property", @@ -15781,10 +15840,10 @@ ], "type": { "type": "reference", - "id": 506, + "id": 507, "name": "MobileOtpType", "dereferenced": { - "id": 506, + "id": 507, "name": "MobileOtpType", "kind": 4194304, "kindString": "Type alias", @@ -15817,7 +15876,7 @@ { "title": "Properties", "kind": 1024, - "children": [494, 491, 492, 493] + "children": [495, 492, 493, 494] } ], "sources": [ @@ -15829,7 +15888,7 @@ ] }, { - "id": 287, + "id": 288, "name": "AuthChangeEvent", "kind": 4194304, "kindString": "Type alias", @@ -15869,7 +15928,7 @@ "value": "USER_DELETED" }, { - "id": 286, + "id": 287, "name": "AuthChangeEventMFA", "kind": 4194304, "kindString": "Type alias", @@ -15890,7 +15949,7 @@ } }, { - "id": 286, + "id": 287, "name": "AuthChangeEventMFA", "kind": 4194304, "kindString": "Type alias", @@ -15908,7 +15967,7 @@ } }, { - "id": 683, + "id": 684, "name": "AuthMFAAdminDeleteFactorParams", "kind": 4194304, "kindString": "Type alias", @@ -15924,21 +15983,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 842, + "line": 838, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 684, + "id": 685, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 685, + "id": 686, "name": "id", "kind": 1024, "kindString": "Property", @@ -15949,7 +16008,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 844, + "line": 840, "character": 2 } ], @@ -15959,7 +16018,7 @@ } }, { - "id": 686, + "id": 687, "name": "userId", "kind": 1024, "kindString": "Property", @@ -15970,7 +16029,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 847, + "line": 843, "character": 2 } ], @@ -15984,13 +16043,13 @@ { "title": "Properties", "kind": 1024, - "children": [685, 686] + "children": [686, 687] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 842, + "line": 838, "character": 45 } ] @@ -15998,7 +16057,7 @@ } }, { - "id": 674, + "id": 675, "name": "AuthMFAAdminDeleteFactorResponse", "kind": 4194304, "kindString": "Type alias", @@ -16014,7 +16073,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 829, + "line": 825, "character": 12 } ], @@ -16024,14 +16083,14 @@ { "type": "reflection", "declaration": { - "id": 675, + "id": 676, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 676, + "id": 677, "name": "data", "kind": 1024, "kindString": "Property", @@ -16039,21 +16098,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 831, + "line": 827, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 677, + "id": 678, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 678, + "id": 679, "name": "id", "kind": 1024, "kindString": "Property", @@ -16064,7 +16123,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 833, + "line": 829, "character": 8 } ], @@ -16078,13 +16137,13 @@ { "title": "Properties", "kind": 1024, - "children": [678] + "children": [679] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 831, + "line": 827, "character": 12 } ] @@ -16092,7 +16151,7 @@ } }, { - "id": 679, + "id": 680, "name": "error", "kind": 1024, "kindString": "Property", @@ -16100,7 +16159,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 835, + "line": 831, "character": 6 } ], @@ -16114,13 +16173,13 @@ { "title": "Properties", "kind": 1024, - "children": [676, 679] + "children": [677, 680] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 830, + "line": 826, "character": 4 } ] @@ -16129,14 +16188,14 @@ { "type": "reflection", "declaration": { - "id": 680, + "id": 681, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 681, + "id": 682, "name": "data", "kind": 1024, "kindString": "Property", @@ -16144,7 +16203,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 837, + "line": 833, "character": 6 } ], @@ -16154,7 +16213,7 @@ } }, { - "id": 682, + "id": 683, "name": "error", "kind": 1024, "kindString": "Property", @@ -16162,13 +16221,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 837, + "line": 833, "character": 18 } ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -16177,13 +16236,13 @@ { "title": "Properties", "kind": 1024, - "children": [681, 682] + "children": [682, 683] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 837, + "line": 833, "character": 4 } ] @@ -16193,7 +16252,7 @@ } }, { - "id": 696, + "id": 697, "name": "AuthMFAAdminListFactorsParams", "kind": 4194304, "kindString": "Type alias", @@ -16209,21 +16268,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 862, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 697, + "id": 698, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 698, + "id": 699, "name": "userId", "kind": 1024, "kindString": "Property", @@ -16234,7 +16293,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 868, + "line": 864, "character": 2 } ], @@ -16248,13 +16307,13 @@ { "title": "Properties", "kind": 1024, - "children": [698] + "children": [699] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 866, + "line": 862, "character": 44 } ] @@ -16262,7 +16321,7 @@ } }, { - "id": 687, + "id": 688, "name": "AuthMFAAdminListFactorsResponse", "kind": 4194304, "kindString": "Type alias", @@ -16278,7 +16337,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 853, + "line": 849, "character": 12 } ], @@ -16288,18 +16347,83 @@ { "type": "reflection", "declaration": { - "id": 688, + "id": 689, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 689, + "id": 690, "name": "data", "kind": 1024, "kindString": "Property", "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 851, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 691, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 692, + "name": "factors", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "comment": { + "shortText": "All factors attached to the user." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 853, + "character": 8 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 371, + "name": "Factor" + } + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [692] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 851, + "character": 12 + } + ] + } + } + }, + { + "id": 693, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", @@ -16307,71 +16431,6 @@ "character": 6 } ], - "type": { - "type": "reflection", - "declaration": { - "id": 690, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 691, - "name": "factors", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "All factors attached to the user." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 857, - "character": 8 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 370, - "name": "Factor" - } - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [691] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 855, - "character": 12 - } - ] - } - } - }, - { - "id": 692, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 859, - "character": 6 - } - ], "type": { "type": "literal", "value": null @@ -16382,13 +16441,13 @@ { "title": "Properties", "kind": 1024, - "children": [689, 692] + "children": [690, 693] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 854, + "line": 850, "character": 4 } ] @@ -16397,14 +16456,14 @@ { "type": "reflection", "declaration": { - "id": 693, + "id": 694, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 694, + "id": 695, "name": "data", "kind": 1024, "kindString": "Property", @@ -16412,7 +16471,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 861, + "line": 857, "character": 6 } ], @@ -16422,7 +16481,7 @@ } }, { - "id": 695, + "id": 696, "name": "error", "kind": 1024, "kindString": "Property", @@ -16430,13 +16489,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 861, + "line": 857, "character": 18 } ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -16445,13 +16504,13 @@ { "title": "Properties", "kind": 1024, - "children": [694, 695] + "children": [695, 696] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 861, + "line": 857, "character": 4 } ] @@ -16461,7 +16520,7 @@ } }, { - "id": 622, + "id": 623, "name": "AuthMFAChallengeResponse", "kind": 4194304, "kindString": "Type alias", @@ -16479,14 +16538,14 @@ { "type": "reflection", "declaration": { - "id": 623, + "id": 624, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 624, + "id": 625, "name": "data", "kind": 1024, "kindString": "Property", @@ -16501,14 +16560,14 @@ "type": { "type": "reflection", "declaration": { - "id": 625, + "id": 626, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 627, + "id": 628, "name": "expires_at", "kind": 1024, "kindString": "Property", @@ -16529,7 +16588,7 @@ } }, { - "id": 626, + "id": 627, "name": "id", "kind": 1024, "kindString": "Property", @@ -16554,7 +16613,7 @@ { "title": "Properties", "kind": 1024, - "children": [627, 626] + "children": [628, 627] } ], "sources": [ @@ -16568,7 +16627,7 @@ } }, { - "id": 628, + "id": 629, "name": "error", "kind": 1024, "kindString": "Property", @@ -16590,7 +16649,7 @@ { "title": "Properties", "kind": 1024, - "children": [624, 628] + "children": [625, 629] } ], "sources": [ @@ -16605,14 +16664,14 @@ { "type": "reflection", "declaration": { - "id": 629, + "id": 630, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 630, + "id": 631, "name": "data", "kind": 1024, "kindString": "Property", @@ -16630,7 +16689,7 @@ } }, { - "id": 631, + "id": 632, "name": "error", "kind": 1024, "kindString": "Property", @@ -16644,7 +16703,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -16653,7 +16712,7 @@ { "title": "Properties", "kind": 1024, - "children": [630, 631] + "children": [631, 632] } ], "sources": [ @@ -16669,7 +16728,7 @@ } }, { - "id": 598, + "id": 599, "name": "AuthMFAEnrollResponse", "kind": 4194304, "kindString": "Type alias", @@ -16687,14 +16746,14 @@ { "type": "reflection", "declaration": { - "id": 599, + "id": 600, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 600, + "id": 601, "name": "data", "kind": 1024, "kindString": "Property", @@ -16709,14 +16768,14 @@ "type": { "type": "reflection", "declaration": { - "id": 601, + "id": 602, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 602, + "id": 603, "name": "id", "kind": 1024, "kindString": "Property", @@ -16737,7 +16796,7 @@ } }, { - "id": 604, + "id": 605, "name": "totp", "kind": 1024, "kindString": "Property", @@ -16755,14 +16814,14 @@ "type": { "type": "reflection", "declaration": { - "id": 605, + "id": 606, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 606, + "id": 607, "name": "qr_code", "kind": 1024, "kindString": "Property", @@ -16783,7 +16842,7 @@ } }, { - "id": 607, + "id": 608, "name": "secret", "kind": 1024, "kindString": "Property", @@ -16804,7 +16863,7 @@ } }, { - "id": 608, + "id": 609, "name": "uri", "kind": 1024, "kindString": "Property", @@ -16829,7 +16888,7 @@ { "title": "Properties", "kind": 1024, - "children": [606, 607, 608] + "children": [607, 608, 609] } ], "sources": [ @@ -16843,7 +16902,7 @@ } }, { - "id": 603, + "id": 604, "name": "type", "kind": 1024, "kindString": "Property", @@ -16868,7 +16927,7 @@ { "title": "Properties", "kind": 1024, - "children": [602, 604, 603] + "children": [603, 605, 604] } ], "sources": [ @@ -16882,7 +16941,7 @@ } }, { - "id": 609, + "id": 610, "name": "error", "kind": 1024, "kindString": "Property", @@ -16904,7 +16963,7 @@ { "title": "Properties", "kind": 1024, - "children": [600, 609] + "children": [601, 610] } ], "sources": [ @@ -16919,14 +16978,14 @@ { "type": "reflection", "declaration": { - "id": 610, + "id": 611, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 611, + "id": 612, "name": "data", "kind": 1024, "kindString": "Property", @@ -16944,7 +17003,7 @@ } }, { - "id": 612, + "id": 613, "name": "error", "kind": 1024, "kindString": "Property", @@ -16958,7 +17017,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -16967,7 +17026,7 @@ { "title": "Properties", "kind": 1024, - "children": [611, 612] + "children": [612, 613] } ], "sources": [ @@ -16983,7 +17042,7 @@ } }, { - "id": 643, + "id": 644, "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse", "kind": 4194304, "kindString": "Type alias", @@ -17001,14 +17060,14 @@ { "type": "reflection", "declaration": { - "id": 644, + "id": 645, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 645, + "id": 646, "name": "data", "kind": 1024, "kindString": "Property", @@ -17023,14 +17082,14 @@ "type": { "type": "reflection", "declaration": { - "id": 646, + "id": 647, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 649, + "id": 650, "name": "currentAuthenticationMethods", "kind": 1024, "kindString": "Property", @@ -17049,13 +17108,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 356, + "id": 357, "name": "AMREntry" } } }, { - "id": 647, + "id": 648, "name": "currentLevel", "kind": 1024, "kindString": "Property", @@ -17075,7 +17134,7 @@ "types": [ { "type": "reference", - "id": 642, + "id": 643, "name": "AuthenticatorAssuranceLevels" }, { @@ -17086,7 +17145,7 @@ } }, { - "id": 648, + "id": 649, "name": "nextLevel", "kind": 1024, "kindString": "Property", @@ -17112,7 +17171,7 @@ "types": [ { "type": "reference", - "id": 642, + "id": 643, "name": "AuthenticatorAssuranceLevels" }, { @@ -17127,7 +17186,7 @@ { "title": "Properties", "kind": 1024, - "children": [649, 647, 648] + "children": [650, 648, 649] } ], "sources": [ @@ -17141,7 +17200,7 @@ } }, { - "id": 650, + "id": 651, "name": "error", "kind": 1024, "kindString": "Property", @@ -17163,7 +17222,7 @@ { "title": "Properties", "kind": 1024, - "children": [645, 650] + "children": [646, 651] } ], "sources": [ @@ -17178,14 +17237,14 @@ { "type": "reflection", "declaration": { - "id": 651, + "id": 652, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 652, + "id": 653, "name": "data", "kind": 1024, "kindString": "Property", @@ -17203,7 +17262,7 @@ } }, { - "id": 653, + "id": 654, "name": "error", "kind": 1024, "kindString": "Property", @@ -17217,7 +17276,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -17226,7 +17285,7 @@ { "title": "Properties", "kind": 1024, - "children": [652, 653] + "children": [653, 654] } ], "sources": [ @@ -17242,7 +17301,7 @@ } }, { - "id": 632, + "id": 633, "name": "AuthMFAListFactorsResponse", "kind": 4194304, "kindString": "Type alias", @@ -17260,14 +17319,14 @@ { "type": "reflection", "declaration": { - "id": 633, + "id": 634, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 634, + "id": 635, "name": "data", "kind": 1024, "kindString": "Property", @@ -17282,14 +17341,14 @@ "type": { "type": "reflection", "declaration": { - "id": 635, + "id": 636, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 636, + "id": 637, "name": "all", "kind": 1024, "kindString": "Property", @@ -17308,13 +17367,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 370, + "id": 371, "name": "Factor" } } }, { - "id": 637, + "id": 638, "name": "totp", "kind": 1024, "kindString": "Property", @@ -17333,7 +17392,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 370, + "id": 371, "name": "Factor" } } @@ -17343,7 +17402,7 @@ { "title": "Properties", "kind": 1024, - "children": [636, 637] + "children": [637, 638] } ], "sources": [ @@ -17357,7 +17416,7 @@ } }, { - "id": 638, + "id": 639, "name": "error", "kind": 1024, "kindString": "Property", @@ -17379,7 +17438,7 @@ { "title": "Properties", "kind": 1024, - "children": [634, 638] + "children": [635, 639] } ], "sources": [ @@ -17394,14 +17453,14 @@ { "type": "reflection", "declaration": { - "id": 639, + "id": 640, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 640, + "id": 641, "name": "data", "kind": 1024, "kindString": "Property", @@ -17419,7 +17478,7 @@ } }, { - "id": 641, + "id": 642, "name": "error", "kind": 1024, "kindString": "Property", @@ -17433,7 +17492,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -17442,7 +17501,7 @@ { "title": "Properties", "kind": 1024, - "children": [640, 641] + "children": [641, 642] } ], "sources": [ @@ -17458,7 +17517,7 @@ } }, { - "id": 613, + "id": 614, "name": "AuthMFAUnenrollResponse", "kind": 4194304, "kindString": "Type alias", @@ -17476,14 +17535,14 @@ { "type": "reflection", "declaration": { - "id": 614, + "id": 615, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 615, + "id": 616, "name": "data", "kind": 1024, "kindString": "Property", @@ -17498,14 +17557,14 @@ "type": { "type": "reflection", "declaration": { - "id": 616, + "id": 617, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 617, + "id": 618, "name": "id", "kind": 1024, "kindString": "Property", @@ -17530,7 +17589,7 @@ { "title": "Properties", "kind": 1024, - "children": [617] + "children": [618] } ], "sources": [ @@ -17544,7 +17603,7 @@ } }, { - "id": 618, + "id": 619, "name": "error", "kind": 1024, "kindString": "Property", @@ -17566,7 +17625,7 @@ { "title": "Properties", "kind": 1024, - "children": [615, 618] + "children": [616, 619] } ], "sources": [ @@ -17581,14 +17640,14 @@ { "type": "reflection", "declaration": { - "id": 619, + "id": 620, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 620, + "id": 621, "name": "data", "kind": 1024, "kindString": "Property", @@ -17606,7 +17665,7 @@ } }, { - "id": 621, + "id": 622, "name": "error", "kind": 1024, "kindString": "Property", @@ -17620,7 +17679,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -17629,7 +17688,7 @@ { "title": "Properties", "kind": 1024, - "children": [620, 621] + "children": [621, 622] } ], "sources": [ @@ -17645,7 +17704,7 @@ } }, { - "id": 585, + "id": 586, "name": "AuthMFAVerifyResponse", "kind": 4194304, "kindString": "Type alias", @@ -17663,14 +17722,14 @@ { "type": "reflection", "declaration": { - "id": 586, + "id": 587, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 587, + "id": 588, "name": "data", "kind": 1024, "kindString": "Property", @@ -17685,14 +17744,14 @@ "type": { "type": "reflection", "declaration": { - "id": 588, + "id": 589, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 589, + "id": 590, "name": "access_token", "kind": 1024, "kindString": "Property", @@ -17713,7 +17772,7 @@ } }, { - "id": 591, + "id": 592, "name": "expires_in", "kind": 1024, "kindString": "Property", @@ -17734,7 +17793,7 @@ } }, { - "id": 592, + "id": 593, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -17755,7 +17814,7 @@ } }, { - "id": 590, + "id": 591, "name": "token_type", "kind": 1024, "kindString": "Property", @@ -17776,7 +17835,7 @@ } }, { - "id": 593, + "id": 594, "name": "user", "kind": 1024, "kindString": "Property", @@ -17793,7 +17852,7 @@ ], "type": { "type": "reference", - "id": 384, + "id": 385, "name": "User" } } @@ -17802,7 +17861,7 @@ { "title": "Properties", "kind": 1024, - "children": [589, 591, 592, 590, 593] + "children": [590, 592, 593, 591, 594] } ], "sources": [ @@ -17816,7 +17875,7 @@ } }, { - "id": 594, + "id": 595, "name": "error", "kind": 1024, "kindString": "Property", @@ -17838,7 +17897,7 @@ { "title": "Properties", "kind": 1024, - "children": [587, 594] + "children": [588, 595] } ], "sources": [ @@ -17853,14 +17912,14 @@ { "type": "reflection", "declaration": { - "id": 595, + "id": 596, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 596, + "id": 597, "name": "data", "kind": 1024, "kindString": "Property", @@ -17878,7 +17937,7 @@ } }, { - "id": 597, + "id": 598, "name": "error", "kind": 1024, "kindString": "Property", @@ -17892,7 +17951,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -17901,7 +17960,7 @@ { "title": "Properties", "kind": 1024, - "children": [596, 597] + "children": [597, 598] } ], "sources": [ @@ -17917,7 +17976,7 @@ } }, { - "id": 301, + "id": 302, "name": "AuthResponse", "kind": 4194304, "kindString": "Type alias", @@ -17935,14 +17994,14 @@ { "type": "reflection", "declaration": { - "id": 302, + "id": 303, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 303, + "id": 304, "name": "data", "kind": 1024, "kindString": "Property", @@ -17957,14 +18016,14 @@ "type": { "type": "reflection", "declaration": { - "id": 304, + "id": 305, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 306, + "id": 307, "name": "session", "kind": 1024, "kindString": "Property", @@ -17981,7 +18040,7 @@ "types": [ { "type": "reference", - "id": 347, + "id": 348, "name": "Session" }, { @@ -17992,7 +18051,7 @@ } }, { - "id": 305, + "id": 306, "name": "user", "kind": 1024, "kindString": "Property", @@ -18009,7 +18068,7 @@ "types": [ { "type": "reference", - "id": 384, + "id": 385, "name": "User" }, { @@ -18024,7 +18083,7 @@ { "title": "Properties", "kind": 1024, - "children": [306, 305] + "children": [307, 306] } ], "sources": [ @@ -18038,7 +18097,7 @@ } }, { - "id": 307, + "id": 308, "name": "error", "kind": 1024, "kindString": "Property", @@ -18060,7 +18119,7 @@ { "title": "Properties", "kind": 1024, - "children": [303, 307] + "children": [304, 308] } ], "sources": [ @@ -18075,14 +18134,14 @@ { "type": "reflection", "declaration": { - "id": 308, + "id": 309, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 309, + "id": 310, "name": "data", "kind": 1024, "kindString": "Property", @@ -18097,14 +18156,14 @@ "type": { "type": "reflection", "declaration": { - "id": 310, + "id": 311, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 312, + "id": 313, "name": "session", "kind": 1024, "kindString": "Property", @@ -18122,7 +18181,7 @@ } }, { - "id": 311, + "id": 312, "name": "user", "kind": 1024, "kindString": "Property", @@ -18144,7 +18203,7 @@ { "title": "Properties", "kind": 1024, - "children": [312, 311] + "children": [313, 312] } ], "sources": [ @@ -18158,7 +18217,7 @@ } }, { - "id": 313, + "id": 314, "name": "error", "kind": 1024, "kindString": "Property", @@ -18172,7 +18231,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -18181,7 +18240,7 @@ { "title": "Properties", "kind": 1024, - "children": [309, 313] + "children": [310, 314] } ], "sources": [ @@ -18197,7 +18256,7 @@ } }, { - "id": 642, + "id": 643, "name": "AuthenticatorAssuranceLevels", "kind": 4194304, "kindString": "Type alias", @@ -18224,7 +18283,7 @@ } }, { - "id": 710, + "id": 711, "name": "CallRefreshTokenResult", "kind": 4194304, "kindString": "Type alias", @@ -18232,7 +18291,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 907, + "line": 903, "character": 12 } ], @@ -18242,14 +18301,77 @@ { "type": "reflection", "declaration": { - "id": 711, + "id": 712, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ + { + "id": 714, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 906, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + }, { "id": 713, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 905, + "character": 6 + } + ], + "type": { + "type": "reference", + "id": 348, + "name": "Session" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [714, 713] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 904, + "character": 4 + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 715, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 717, "name": "error", "kind": 1024, "kindString": "Property", @@ -18262,12 +18384,13 @@ } ], "type": { - "type": "literal", - "value": null + "type": "reference", + "id": 735, + "name": "AuthError" } }, { - "id": 712, + "id": 716, "name": "session", "kind": 1024, "kindString": "Property", @@ -18280,9 +18403,8 @@ } ], "type": { - "type": "reference", - "id": 347, - "name": "Session" + "type": "literal", + "value": null } } ], @@ -18290,7 +18412,7 @@ { "title": "Properties", "kind": 1024, - "children": [713, 712] + "children": [717, 716] } ], "sources": [ @@ -18301,75 +18423,12 @@ } ] } - }, - { - "type": "reflection", - "declaration": { - "id": 714, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 716, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 914, - "character": 6 - } - ], - "type": { - "type": "reference", - "id": 727, - "name": "AuthError" - } - }, - { - "id": 715, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 913, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [716, 715] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 912, - "character": 4 - } - ] - } } ] } }, { - "id": 507, + "id": 508, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -18408,7 +18467,7 @@ } }, { - "id": 534, + "id": 535, "name": "GenerateEmailChangeLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -18423,14 +18482,14 @@ "type": { "type": "reflection", "declaration": { - "id": 535, + "id": 536, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 537, + "id": 538, "name": "email", "kind": 1024, "kindString": "Property", @@ -18451,7 +18510,7 @@ } }, { - "id": 538, + "id": 539, "name": "newEmail", "kind": 1024, "kindString": "Property", @@ -18472,7 +18531,7 @@ } }, { - "id": 539, + "id": 540, "name": "options", "kind": 1024, "kindString": "Property", @@ -18491,7 +18550,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -18505,7 +18564,7 @@ } }, { - "id": 536, + "id": 537, "name": "type", "kind": 1024, "kindString": "Property", @@ -18536,7 +18595,7 @@ { "title": "Properties", "kind": 1024, - "children": [537, 538, 539, 536] + "children": [538, 539, 540, 537] } ], "sources": [ @@ -18550,7 +18609,7 @@ } }, { - "id": 524, + "id": 525, "name": "GenerateInviteOrMagiclinkParams", "kind": 4194304, "kindString": "Type alias", @@ -18565,14 +18624,14 @@ "type": { "type": "reflection", "declaration": { - "id": 525, + "id": 526, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 527, + "id": 528, "name": "email", "kind": 1024, "kindString": "Property", @@ -18593,7 +18652,7 @@ } }, { - "id": 528, + "id": 529, "name": "options", "kind": 1024, "kindString": "Property", @@ -18612,7 +18671,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -18635,7 +18694,7 @@ } }, { - "id": 526, + "id": 527, "name": "type", "kind": 1024, "kindString": "Property", @@ -18666,7 +18725,7 @@ { "title": "Properties", "kind": 1024, - "children": [527, 528, 526] + "children": [528, 529, 527] } ], "sources": [ @@ -18680,7 +18739,7 @@ } }, { - "id": 543, + "id": 544, "name": "GenerateLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -18696,7 +18755,7 @@ "type": "union", "types": [ { - "id": 518, + "id": 519, "name": "GenerateSignupLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -18711,14 +18770,14 @@ "type": { "type": "reflection", "declaration": { - "id": 519, + "id": 520, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 521, + "id": 522, "name": "email", "kind": 1024, "kindString": "Property", @@ -18736,7 +18795,7 @@ } }, { - "id": 523, + "id": 524, "name": "options", "kind": 1024, "kindString": "Property", @@ -18755,7 +18814,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -18778,7 +18837,7 @@ } }, { - "id": 522, + "id": 523, "name": "password", "kind": 1024, "kindString": "Property", @@ -18796,7 +18855,7 @@ } }, { - "id": 520, + "id": 521, "name": "type", "kind": 1024, "kindString": "Property", @@ -18818,7 +18877,7 @@ { "title": "Properties", "kind": 1024, - "children": [521, 523, 522, 520] + "children": [522, 524, 523, 521] } ], "sources": [ @@ -18832,7 +18891,7 @@ } }, { - "id": 524, + "id": 525, "name": "GenerateInviteOrMagiclinkParams", "kind": 4194304, "kindString": "Type alias", @@ -18847,14 +18906,14 @@ "type": { "type": "reflection", "declaration": { - "id": 525, + "id": 526, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 527, + "id": 528, "name": "email", "kind": 1024, "kindString": "Property", @@ -18875,7 +18934,7 @@ } }, { - "id": 528, + "id": 529, "name": "options", "kind": 1024, "kindString": "Property", @@ -18894,7 +18953,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -18917,7 +18976,7 @@ } }, { - "id": 526, + "id": 527, "name": "type", "kind": 1024, "kindString": "Property", @@ -18948,7 +19007,7 @@ { "title": "Properties", "kind": 1024, - "children": [527, 528, 526] + "children": [528, 529, 527] } ], "sources": [ @@ -18962,7 +19021,7 @@ } }, { - "id": 529, + "id": 530, "name": "GenerateRecoveryLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -18977,14 +19036,14 @@ "type": { "type": "reflection", "declaration": { - "id": 530, + "id": 531, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 532, + "id": 533, "name": "email", "kind": 1024, "kindString": "Property", @@ -19005,7 +19064,7 @@ } }, { - "id": 533, + "id": 534, "name": "options", "kind": 1024, "kindString": "Property", @@ -19024,7 +19083,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -19038,7 +19097,7 @@ } }, { - "id": 531, + "id": 532, "name": "type", "kind": 1024, "kindString": "Property", @@ -19060,7 +19119,7 @@ { "title": "Properties", "kind": 1024, - "children": [532, 533, 531] + "children": [533, 534, 532] } ], "sources": [ @@ -19074,7 +19133,7 @@ } }, { - "id": 534, + "id": 535, "name": "GenerateEmailChangeLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -19089,14 +19148,14 @@ "type": { "type": "reflection", "declaration": { - "id": 535, + "id": 536, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 537, + "id": 538, "name": "email", "kind": 1024, "kindString": "Property", @@ -19117,7 +19176,7 @@ } }, { - "id": 538, + "id": 539, "name": "newEmail", "kind": 1024, "kindString": "Property", @@ -19138,7 +19197,7 @@ } }, { - "id": 539, + "id": 540, "name": "options", "kind": 1024, "kindString": "Property", @@ -19157,7 +19216,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -19171,7 +19230,7 @@ } }, { - "id": 536, + "id": 537, "name": "type", "kind": 1024, "kindString": "Property", @@ -19202,7 +19261,7 @@ { "title": "Properties", "kind": 1024, - "children": [537, 538, 539, 536] + "children": [538, 539, 540, 537] } ], "sources": [ @@ -19219,7 +19278,7 @@ } }, { - "id": 557, + "id": 558, "name": "GenerateLinkProperties", "kind": 4194304, "kindString": "Type alias", @@ -19237,14 +19296,14 @@ "type": { "type": "reflection", "declaration": { - "id": 558, + "id": 559, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 559, + "id": 560, "name": "action_link", "kind": 1024, "kindString": "Property", @@ -19265,7 +19324,7 @@ } }, { - "id": 560, + "id": 561, "name": "email_otp", "kind": 1024, "kindString": "Property", @@ -19286,7 +19345,7 @@ } }, { - "id": 561, + "id": 562, "name": "hashed_token", "kind": 1024, "kindString": "Property", @@ -19307,7 +19366,7 @@ } }, { - "id": 562, + "id": 563, "name": "redirect_to", "kind": 1024, "kindString": "Property", @@ -19328,7 +19387,7 @@ } }, { - "id": 563, + "id": 564, "name": "verification_type", "kind": 1024, "kindString": "Property", @@ -19345,10 +19404,10 @@ ], "type": { "type": "reference", - "id": 564, + "id": 565, "name": "GenerateLinkType", "dereferenced": { - "id": 564, + "id": 565, "name": "GenerateLinkType", "kind": 4194304, "kindString": "Type alias", @@ -19397,7 +19456,7 @@ { "title": "Properties", "kind": 1024, - "children": [559, 560, 561, 562, 563] + "children": [560, 561, 562, 563, 564] } ], "sources": [ @@ -19411,7 +19470,7 @@ } }, { - "id": 544, + "id": 545, "name": "GenerateLinkResponse", "kind": 4194304, "kindString": "Type alias", @@ -19429,14 +19488,14 @@ { "type": "reflection", "declaration": { - "id": 545, + "id": 546, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 546, + "id": 547, "name": "data", "kind": 1024, "kindString": "Property", @@ -19451,14 +19510,14 @@ "type": { "type": "reflection", "declaration": { - "id": 547, + "id": 548, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 548, + "id": 549, "name": "properties", "kind": 1024, "kindString": "Property", @@ -19472,12 +19531,12 @@ ], "type": { "type": "reference", - "id": 557, + "id": 558, "name": "GenerateLinkProperties" } }, { - "id": 549, + "id": 550, "name": "user", "kind": 1024, "kindString": "Property", @@ -19491,7 +19550,7 @@ ], "type": { "type": "reference", - "id": 384, + "id": 385, "name": "User" } } @@ -19500,7 +19559,7 @@ { "title": "Properties", "kind": 1024, - "children": [548, 549] + "children": [549, 550] } ], "sources": [ @@ -19514,7 +19573,7 @@ } }, { - "id": 550, + "id": 551, "name": "error", "kind": 1024, "kindString": "Property", @@ -19536,7 +19595,7 @@ { "title": "Properties", "kind": 1024, - "children": [546, 550] + "children": [547, 551] } ], "sources": [ @@ -19551,14 +19610,14 @@ { "type": "reflection", "declaration": { - "id": 551, + "id": 552, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 552, + "id": 553, "name": "data", "kind": 1024, "kindString": "Property", @@ -19573,14 +19632,14 @@ "type": { "type": "reflection", "declaration": { - "id": 553, + "id": 554, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 554, + "id": 555, "name": "properties", "kind": 1024, "kindString": "Property", @@ -19598,7 +19657,7 @@ } }, { - "id": 555, + "id": 556, "name": "user", "kind": 1024, "kindString": "Property", @@ -19620,7 +19679,7 @@ { "title": "Properties", "kind": 1024, - "children": [554, 555] + "children": [555, 556] } ], "sources": [ @@ -19634,7 +19693,7 @@ } }, { - "id": 556, + "id": 557, "name": "error", "kind": 1024, "kindString": "Property", @@ -19648,7 +19707,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -19657,7 +19716,7 @@ { "title": "Properties", "kind": 1024, - "children": [552, 556] + "children": [553, 557] } ], "sources": [ @@ -19673,7 +19732,7 @@ } }, { - "id": 564, + "id": 565, "name": "GenerateLinkType", "kind": 4194304, "kindString": "Type alias", @@ -19716,7 +19775,7 @@ } }, { - "id": 529, + "id": 530, "name": "GenerateRecoveryLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -19731,14 +19790,14 @@ "type": { "type": "reflection", "declaration": { - "id": 530, + "id": 531, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 532, + "id": 533, "name": "email", "kind": 1024, "kindString": "Property", @@ -19759,7 +19818,7 @@ } }, { - "id": 533, + "id": 534, "name": "options", "kind": 1024, "kindString": "Property", @@ -19778,7 +19837,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -19792,7 +19851,7 @@ } }, { - "id": 531, + "id": 532, "name": "type", "kind": 1024, "kindString": "Property", @@ -19814,7 +19873,7 @@ { "title": "Properties", "kind": 1024, - "children": [532, 533, 531] + "children": [533, 534, 532] } ], "sources": [ @@ -19828,7 +19887,7 @@ } }, { - "id": 518, + "id": 519, "name": "GenerateSignupLinkParams", "kind": 4194304, "kindString": "Type alias", @@ -19843,14 +19902,14 @@ "type": { "type": "reflection", "declaration": { - "id": 519, + "id": 520, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 521, + "id": 522, "name": "email", "kind": 1024, "kindString": "Property", @@ -19868,7 +19927,7 @@ } }, { - "id": 523, + "id": 524, "name": "options", "kind": 1024, "kindString": "Property", @@ -19887,7 +19946,7 @@ "typeArguments": [ { "type": "reference", - "id": 540, + "id": 541, "name": "GenerateLinkOptions" }, { @@ -19910,7 +19969,7 @@ } }, { - "id": 522, + "id": 523, "name": "password", "kind": 1024, "kindString": "Property", @@ -19928,7 +19987,7 @@ } }, { - "id": 520, + "id": 521, "name": "type", "kind": 1024, "kindString": "Property", @@ -19950,7 +20009,7 @@ { "title": "Properties", "kind": 1024, - "children": [521, 523, 522, 520] + "children": [522, 524, 523, 521] } ], "sources": [ @@ -19964,7 +20023,7 @@ } }, { - "id": 288, + "id": 289, "name": "GoTrueClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -19979,14 +20038,14 @@ "type": { "type": "reflection", "declaration": { - "id": 289, + "id": 290, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 297, + "id": 298, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -20006,7 +20065,7 @@ } }, { - "id": 296, + "id": 297, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -20026,7 +20085,7 @@ } }, { - "id": 300, + "id": 301, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -20046,7 +20105,7 @@ } }, { - "id": 291, + "id": 292, "name": "headers", "kind": 1024, "kindString": "Property", @@ -20063,7 +20122,7 @@ "type": { "type": "reflection", "declaration": { - "id": 292, + "id": 293, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -20076,14 +20135,14 @@ } ], "indexSignature": { - "id": 293, + "id": 294, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 294, + "id": 295, "name": "key", "kind": 32768, "flags": {}, @@ -20102,7 +20161,7 @@ } }, { - "id": 298, + "id": 299, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -20122,7 +20181,7 @@ } }, { - "id": 299, + "id": 300, "name": "storage", "kind": 1024, "kindString": "Property", @@ -20138,10 +20197,10 @@ ], "type": { "type": "reference", - "id": 706, + "id": 707, "name": "SupportedStorage", "dereferenced": { - "id": 706, + "id": 707, "name": "SupportedStorage", "kind": 4194304, "kindString": "Type alias", @@ -20149,7 +20208,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 903, + "line": 899, "character": 12 } ], @@ -20194,7 +20253,7 @@ } }, { - "id": 295, + "id": 296, "name": "storageKey", "kind": 1024, "kindString": "Property", @@ -20214,7 +20273,7 @@ } }, { - "id": 290, + "id": 291, "name": "url", "kind": 1024, "kindString": "Property", @@ -20238,7 +20297,7 @@ { "title": "Properties", "kind": 1024, - "children": [297, 296, 300, 291, 298, 299, 295, 290] + "children": [298, 297, 301, 292, 299, 300, 296, 291] } ], "sources": [ @@ -20252,7 +20311,7 @@ } }, { - "id": 707, + "id": 708, "name": "InitializeResult", "kind": 4194304, "kindString": "Type alias", @@ -20260,21 +20319,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 905, + "line": 901, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 708, + "id": 709, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 709, + "id": 710, "name": "error", "kind": 1024, "kindString": "Property", @@ -20282,7 +20341,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 905, + "line": 901, "character": 33 } ], @@ -20291,7 +20350,7 @@ "types": [ { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" }, { @@ -20306,13 +20365,13 @@ { "title": "Properties", "kind": 1024, - "children": [709] + "children": [710] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 905, + "line": 901, "character": 31 } ] @@ -20320,7 +20379,7 @@ } }, { - "id": 581, + "id": 582, "name": "MFAChallengeAndVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -20335,14 +20394,14 @@ "type": { "type": "reflection", "declaration": { - "id": 582, + "id": 583, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 584, + "id": 585, "name": "code", "kind": 1024, "kindString": "Property", @@ -20363,7 +20422,7 @@ } }, { - "id": 583, + "id": 584, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -20388,7 +20447,7 @@ { "title": "Properties", "kind": 1024, - "children": [584, 583] + "children": [585, 584] } ], "sources": [ @@ -20402,7 +20461,7 @@ } }, { - "id": 578, + "id": 579, "name": "MFAChallengeParams", "kind": 4194304, "kindString": "Type alias", @@ -20417,14 +20476,14 @@ "type": { "type": "reflection", "declaration": { - "id": 579, + "id": 580, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 580, + "id": 581, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -20449,7 +20508,7 @@ { "title": "Properties", "kind": 1024, - "children": [580] + "children": [581] } ], "sources": [ @@ -20463,7 +20522,7 @@ } }, { - "id": 565, + "id": 566, "name": "MFAEnrollParams", "kind": 4194304, "kindString": "Type alias", @@ -20478,14 +20537,14 @@ "type": { "type": "reflection", "declaration": { - "id": 566, + "id": 567, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 567, + "id": 568, "name": "factorType", "kind": 1024, "kindString": "Property", @@ -20506,7 +20565,7 @@ } }, { - "id": 569, + "id": 570, "name": "friendlyName", "kind": 1024, "kindString": "Property", @@ -20529,7 +20588,7 @@ } }, { - "id": 568, + "id": 569, "name": "issuer", "kind": 1024, "kindString": "Property", @@ -20556,7 +20615,7 @@ { "title": "Properties", "kind": 1024, - "children": [567, 569, 568] + "children": [568, 570, 569] } ], "sources": [ @@ -20570,7 +20629,7 @@ } }, { - "id": 570, + "id": 571, "name": "MFAUnenrollParams", "kind": 4194304, "kindString": "Type alias", @@ -20585,14 +20644,14 @@ "type": { "type": "reflection", "declaration": { - "id": 571, + "id": 572, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 572, + "id": 573, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -20617,7 +20676,7 @@ { "title": "Properties", "kind": 1024, - "children": [572] + "children": [573] } ], "sources": [ @@ -20631,7 +20690,7 @@ } }, { - "id": 573, + "id": 574, "name": "MFAVerifyParams", "kind": 4194304, "kindString": "Type alias", @@ -20646,14 +20705,14 @@ "type": { "type": "reflection", "declaration": { - "id": 574, + "id": 575, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 576, + "id": 577, "name": "challengeId", "kind": 1024, "kindString": "Property", @@ -20674,7 +20733,7 @@ } }, { - "id": 577, + "id": 578, "name": "code", "kind": 1024, "kindString": "Property", @@ -20695,7 +20754,7 @@ } }, { - "id": 575, + "id": 576, "name": "factorId", "kind": 1024, "kindString": "Property", @@ -20720,7 +20779,7 @@ { "title": "Properties", "kind": 1024, - "children": [576, 577, 575] + "children": [577, 578, 576] } ], "sources": [ @@ -20734,7 +20793,7 @@ } }, { - "id": 506, + "id": 507, "name": "MobileOtpType", "kind": 4194304, "kindString": "Type alias", @@ -20761,7 +20820,7 @@ } }, { - "id": 314, + "id": 315, "name": "OAuthResponse", "kind": 4194304, "kindString": "Type alias", @@ -20779,14 +20838,14 @@ { "type": "reflection", "declaration": { - "id": 315, + "id": 316, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 316, + "id": 317, "name": "data", "kind": 1024, "kindString": "Property", @@ -20801,14 +20860,14 @@ "type": { "type": "reflection", "declaration": { - "id": 317, + "id": 318, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 318, + "id": 319, "name": "provider", "kind": 1024, "kindString": "Property", @@ -20822,12 +20881,12 @@ ], "type": { "type": "reference", - "id": 285, + "id": 286, "name": "Provider" } }, { - "id": 319, + "id": 320, "name": "url", "kind": 1024, "kindString": "Property", @@ -20849,7 +20908,7 @@ { "title": "Properties", "kind": 1024, - "children": [318, 319] + "children": [319, 320] } ], "sources": [ @@ -20863,7 +20922,7 @@ } }, { - "id": 320, + "id": 321, "name": "error", "kind": 1024, "kindString": "Property", @@ -20885,7 +20944,7 @@ { "title": "Properties", "kind": 1024, - "children": [316, 320] + "children": [317, 321] } ], "sources": [ @@ -20900,14 +20959,14 @@ { "type": "reflection", "declaration": { - "id": 321, + "id": 322, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 322, + "id": 323, "name": "data", "kind": 1024, "kindString": "Property", @@ -20922,14 +20981,14 @@ "type": { "type": "reflection", "declaration": { - "id": 323, + "id": 324, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 324, + "id": 325, "name": "provider", "kind": 1024, "kindString": "Property", @@ -20943,12 +21002,12 @@ ], "type": { "type": "reference", - "id": 285, + "id": 286, "name": "Provider" } }, { - "id": 325, + "id": 326, "name": "url", "kind": 1024, "kindString": "Property", @@ -20970,7 +21029,7 @@ { "title": "Properties", "kind": 1024, - "children": [324, 325] + "children": [325, 326] } ], "sources": [ @@ -20984,7 +21043,7 @@ } }, { - "id": 326, + "id": 327, "name": "error", "kind": 1024, "kindString": "Property", @@ -20998,7 +21057,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -21007,7 +21066,7 @@ { "title": "Properties", "kind": 1024, - "children": [322, 326] + "children": [323, 327] } ], "sources": [ @@ -21023,7 +21082,7 @@ } }, { - "id": 717, + "id": 725, "name": "PageParams", "kind": 4194304, "kindString": "Type alias", @@ -21031,21 +21090,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 917, + "line": 920, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 718, + "id": 726, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 719, + "id": 727, "name": "page", "kind": 1024, "kindString": "Property", @@ -21058,7 +21117,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 919, + "line": 922, "character": 2 } ], @@ -21068,7 +21127,7 @@ } }, { - "id": 720, + "id": 728, "name": "perPage", "kind": 1024, "kindString": "Property", @@ -21081,7 +21140,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 921, + "line": 924, "character": 2 } ], @@ -21095,13 +21154,13 @@ { "title": "Properties", "kind": 1024, - "children": [719, 720] + "children": [727, 728] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 917, + "line": 920, "character": 25 } ] @@ -21109,7 +21168,133 @@ } }, { - "id": 285, + "id": 718, + "name": "Pagination", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 913, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 719, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 721, + "name": "lastPage", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 916, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 720, + "name": "nextPage", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 915, + "character": 2 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 722, + "name": "total", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 917, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [721, 720, 722] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 913, + "character": 25 + } + ], + "indexSignature": { + "id": 723, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 724, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + } + } + }, + { + "id": 286, "name": "Provider", "kind": 4194304, "kindString": "Type alias", @@ -21195,7 +21380,7 @@ } }, { - "id": 327, + "id": 328, "name": "SSOResponse", "kind": 4194304, "kindString": "Type alias", @@ -21213,14 +21398,14 @@ { "type": "reflection", "declaration": { - "id": 328, + "id": 329, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 329, + "id": 330, "name": "data", "kind": 1024, "kindString": "Property", @@ -21235,14 +21420,14 @@ "type": { "type": "reflection", "declaration": { - "id": 330, + "id": 331, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 331, + "id": 332, "name": "url", "kind": 1024, "kindString": "Property", @@ -21267,7 +21452,7 @@ { "title": "Properties", "kind": 1024, - "children": [331] + "children": [332] } ], "sources": [ @@ -21281,7 +21466,7 @@ } }, { - "id": 332, + "id": 333, "name": "error", "kind": 1024, "kindString": "Property", @@ -21303,7 +21488,7 @@ { "title": "Properties", "kind": 1024, - "children": [329, 332] + "children": [330, 333] } ], "sources": [ @@ -21318,14 +21503,14 @@ { "type": "reflection", "declaration": { - "id": 333, + "id": 334, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 334, + "id": 335, "name": "data", "kind": 1024, "kindString": "Property", @@ -21343,7 +21528,7 @@ } }, { - "id": 335, + "id": 336, "name": "error", "kind": 1024, "kindString": "Property", @@ -21357,7 +21542,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -21366,7 +21551,7 @@ { "title": "Properties", "kind": 1024, - "children": [334, 335] + "children": [335, 336] } ], "sources": [ @@ -21382,7 +21567,7 @@ } }, { - "id": 478, + "id": 479, "name": "SignInWithOAuthCredentials", "kind": 4194304, "kindString": "Type alias", @@ -21397,14 +21582,14 @@ "type": { "type": "reflection", "declaration": { - "id": 479, + "id": 480, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 481, + "id": 482, "name": "options", "kind": 1024, "kindString": "Property", @@ -21421,14 +21606,14 @@ "type": { "type": "reflection", "declaration": { - "id": 482, + "id": 483, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 485, + "id": 486, "name": "queryParams", "kind": 1024, "kindString": "Property", @@ -21448,7 +21633,7 @@ "type": { "type": "reflection", "declaration": { - "id": 486, + "id": 487, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -21461,14 +21646,14 @@ } ], "indexSignature": { - "id": 487, + "id": 488, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 488, + "id": 489, "name": "key", "kind": 32768, "flags": {}, @@ -21487,7 +21672,7 @@ } }, { - "id": 483, + "id": 484, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -21510,7 +21695,7 @@ } }, { - "id": 484, + "id": 485, "name": "scopes", "kind": 1024, "kindString": "Property", @@ -21537,7 +21722,7 @@ { "title": "Properties", "kind": 1024, - "children": [485, 483, 484] + "children": [486, 484, 485] } ], "sources": [ @@ -21551,7 +21736,7 @@ } }, { - "id": 480, + "id": 481, "name": "provider", "kind": 1024, "kindString": "Property", @@ -21568,10 +21753,10 @@ ], "type": { "type": "reference", - "id": 285, + "id": 286, "name": "Provider", "dereferenced": { - "id": 285, + "id": 286, "name": "Provider", "kind": 4194304, "kindString": "Type alias", @@ -21663,7 +21848,7 @@ { "title": "Properties", "kind": 1024, - "children": [481, 480] + "children": [482, 481] } ], "sources": [ @@ -21677,7 +21862,7 @@ } }, { - "id": 447, + "id": 448, "name": "SignInWithPasswordCredentials", "kind": 4194304, "kindString": "Type alias", @@ -21695,14 +21880,14 @@ { "type": "reflection", "declaration": { - "id": 448, + "id": 449, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 449, + "id": 450, "name": "email", "kind": 1024, "kindString": "Property", @@ -21723,7 +21908,7 @@ } }, { - "id": 451, + "id": 452, "name": "options", "kind": 1024, "kindString": "Property", @@ -21740,14 +21925,14 @@ "type": { "type": "reflection", "declaration": { - "id": 452, + "id": 453, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 454, + "id": 455, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -21770,7 +21955,7 @@ } }, { - "id": 453, + "id": 454, "name": "data", "kind": 1024, "kindString": "Property", @@ -21798,7 +21983,7 @@ { "title": "Properties", "kind": 1024, - "children": [454, 453] + "children": [455, 454] } ], "sources": [ @@ -21812,7 +21997,7 @@ } }, { - "id": 450, + "id": 451, "name": "password", "kind": 1024, "kindString": "Property", @@ -21837,7 +22022,7 @@ { "title": "Properties", "kind": 1024, - "children": [449, 451, 450] + "children": [450, 452, 451] } ], "sources": [ @@ -21852,14 +22037,14 @@ { "type": "reflection", "declaration": { - "id": 455, + "id": 456, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 458, + "id": 459, "name": "options", "kind": 1024, "kindString": "Property", @@ -21876,14 +22061,14 @@ "type": { "type": "reflection", "declaration": { - "id": 459, + "id": 460, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 461, + "id": 462, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -21906,7 +22091,7 @@ } }, { - "id": 460, + "id": 461, "name": "data", "kind": 1024, "kindString": "Property", @@ -21934,7 +22119,7 @@ { "title": "Properties", "kind": 1024, - "children": [461, 460] + "children": [462, 461] } ], "sources": [ @@ -21948,7 +22133,7 @@ } }, { - "id": 457, + "id": 458, "name": "password", "kind": 1024, "kindString": "Property", @@ -21969,7 +22154,7 @@ } }, { - "id": 456, + "id": 457, "name": "phone", "kind": 1024, "kindString": "Property", @@ -21994,7 +22179,7 @@ { "title": "Properties", "kind": 1024, - "children": [458, 457, 456] + "children": [459, 458, 457] } ], "sources": [ @@ -22010,7 +22195,7 @@ } }, { - "id": 462, + "id": 463, "name": "SignInWithPasswordlessCredentials", "kind": 4194304, "kindString": "Type alias", @@ -22028,14 +22213,14 @@ { "type": "reflection", "declaration": { - "id": 463, + "id": 464, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 464, + "id": 465, "name": "email", "kind": 1024, "kindString": "Property", @@ -22056,7 +22241,7 @@ } }, { - "id": 465, + "id": 466, "name": "options", "kind": 1024, "kindString": "Property", @@ -22073,14 +22258,14 @@ "type": { "type": "reflection", "declaration": { - "id": 466, + "id": 467, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 470, + "id": 471, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -22103,7 +22288,7 @@ } }, { - "id": 469, + "id": 470, "name": "data", "kind": 1024, "kindString": "Property", @@ -22127,7 +22312,7 @@ } }, { - "id": 467, + "id": 468, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -22150,7 +22335,7 @@ } }, { - "id": 468, + "id": 469, "name": "shouldCreateUser", "kind": 1024, "kindString": "Property", @@ -22177,7 +22362,7 @@ { "title": "Properties", "kind": 1024, - "children": [470, 469, 467, 468] + "children": [471, 470, 468, 469] } ], "sources": [ @@ -22195,7 +22380,7 @@ { "title": "Properties", "kind": 1024, - "children": [464, 465] + "children": [465, 466] } ], "sources": [ @@ -22210,14 +22395,14 @@ { "type": "reflection", "declaration": { - "id": 471, + "id": 472, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 473, + "id": 474, "name": "options", "kind": 1024, "kindString": "Property", @@ -22234,14 +22419,14 @@ "type": { "type": "reflection", "declaration": { - "id": 474, + "id": 475, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 477, + "id": 478, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -22264,7 +22449,7 @@ } }, { - "id": 476, + "id": 477, "name": "data", "kind": 1024, "kindString": "Property", @@ -22288,7 +22473,7 @@ } }, { - "id": 475, + "id": 476, "name": "shouldCreateUser", "kind": 1024, "kindString": "Property", @@ -22315,7 +22500,7 @@ { "title": "Properties", "kind": 1024, - "children": [477, 476, 475] + "children": [478, 477, 476] } ], "sources": [ @@ -22329,7 +22514,7 @@ } }, { - "id": 472, + "id": 473, "name": "phone", "kind": 1024, "kindString": "Property", @@ -22354,7 +22539,7 @@ { "title": "Properties", "kind": 1024, - "children": [473, 472] + "children": [474, 473] } ], "sources": [ @@ -22370,7 +22555,7 @@ } }, { - "id": 508, + "id": 509, "name": "SignInWithSSO", "kind": 4194304, "kindString": "Type alias", @@ -22388,14 +22573,14 @@ { "type": "reflection", "declaration": { - "id": 509, + "id": 510, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 510, + "id": 511, "name": "options", "kind": 1024, "kindString": "Property", @@ -22412,14 +22597,14 @@ "type": { "type": "reflection", "declaration": { - "id": 511, + "id": 512, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 513, + "id": 514, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -22442,7 +22627,7 @@ } }, { - "id": 512, + "id": 513, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -22469,7 +22654,7 @@ { "title": "Properties", "kind": 1024, - "children": [513, 512] + "children": [514, 513] } ], "sources": [ @@ -22487,7 +22672,7 @@ { "title": "Properties", "kind": 1024, - "children": [510] + "children": [511] } ], "sources": [ @@ -22505,14 +22690,14 @@ { "type": "reflection", "declaration": { - "id": 514, + "id": 515, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 515, + "id": 516, "name": "providerId", "kind": 1024, "kindString": "Property", @@ -22537,7 +22722,7 @@ { "title": "Properties", "kind": 1024, - "children": [515] + "children": [516] } ], "sources": [ @@ -22552,14 +22737,14 @@ { "type": "reflection", "declaration": { - "id": 516, + "id": 517, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 517, + "id": 518, "name": "domain", "kind": 1024, "kindString": "Property", @@ -22584,7 +22769,7 @@ { "title": "Properties", "kind": 1024, - "children": [517] + "children": [518] } ], "sources": [ @@ -22602,7 +22787,7 @@ } }, { - "id": 431, + "id": 432, "name": "SignUpWithPasswordCredentials", "kind": 4194304, "kindString": "Type alias", @@ -22620,14 +22805,14 @@ { "type": "reflection", "declaration": { - "id": 432, + "id": 433, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 433, + "id": 434, "name": "email", "kind": 1024, "kindString": "Property", @@ -22648,7 +22833,7 @@ } }, { - "id": 435, + "id": 436, "name": "options", "kind": 1024, "kindString": "Property", @@ -22665,14 +22850,14 @@ "type": { "type": "reflection", "declaration": { - "id": 436, + "id": 437, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 439, + "id": 440, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -22695,7 +22880,7 @@ } }, { - "id": 438, + "id": 439, "name": "data", "kind": 1024, "kindString": "Property", @@ -22719,7 +22904,7 @@ } }, { - "id": 437, + "id": 438, "name": "emailRedirectTo", "kind": 1024, "kindString": "Property", @@ -22746,7 +22931,7 @@ { "title": "Properties", "kind": 1024, - "children": [439, 438, 437] + "children": [440, 439, 438] } ], "sources": [ @@ -22760,7 +22945,7 @@ } }, { - "id": 434, + "id": 435, "name": "password", "kind": 1024, "kindString": "Property", @@ -22785,7 +22970,7 @@ { "title": "Properties", "kind": 1024, - "children": [433, 435, 434] + "children": [434, 436, 435] } ], "sources": [ @@ -22800,14 +22985,14 @@ { "type": "reflection", "declaration": { - "id": 440, + "id": 441, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 443, + "id": 444, "name": "options", "kind": 1024, "kindString": "Property", @@ -22824,14 +23009,14 @@ "type": { "type": "reflection", "declaration": { - "id": 444, + "id": 445, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 446, + "id": 447, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -22854,7 +23039,7 @@ } }, { - "id": 445, + "id": 446, "name": "data", "kind": 1024, "kindString": "Property", @@ -22882,7 +23067,7 @@ { "title": "Properties", "kind": 1024, - "children": [446, 445] + "children": [447, 446] } ], "sources": [ @@ -22896,7 +23081,7 @@ } }, { - "id": 442, + "id": 443, "name": "password", "kind": 1024, "kindString": "Property", @@ -22917,7 +23102,7 @@ } }, { - "id": 441, + "id": 442, "name": "phone", "kind": 1024, "kindString": "Property", @@ -22942,7 +23127,7 @@ { "title": "Properties", "kind": 1024, - "children": [443, 442, 441] + "children": [444, 443, 442] } ], "sources": [ @@ -22958,7 +23143,7 @@ } }, { - "id": 706, + "id": 707, "name": "SupportedStorage", "kind": 4194304, "kindString": "Type alias", @@ -22966,7 +23151,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 903, + "line": 899, "character": 12 } ], @@ -23009,7 +23194,7 @@ } }, { - "id": 336, + "id": 337, "name": "UserResponse", "kind": 4194304, "kindString": "Type alias", @@ -23027,14 +23212,14 @@ { "type": "reflection", "declaration": { - "id": 337, + "id": 338, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 338, + "id": 339, "name": "data", "kind": 1024, "kindString": "Property", @@ -23049,14 +23234,14 @@ "type": { "type": "reflection", "declaration": { - "id": 339, + "id": 340, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 340, + "id": 341, "name": "user", "kind": 1024, "kindString": "Property", @@ -23070,7 +23255,7 @@ ], "type": { "type": "reference", - "id": 384, + "id": 385, "name": "User" } } @@ -23079,7 +23264,7 @@ { "title": "Properties", "kind": 1024, - "children": [340] + "children": [341] } ], "sources": [ @@ -23093,7 +23278,7 @@ } }, { - "id": 341, + "id": 342, "name": "error", "kind": 1024, "kindString": "Property", @@ -23115,7 +23300,7 @@ { "title": "Properties", "kind": 1024, - "children": [338, 341] + "children": [339, 342] } ], "sources": [ @@ -23130,14 +23315,14 @@ { "type": "reflection", "declaration": { - "id": 342, + "id": 343, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 343, + "id": 344, "name": "data", "kind": 1024, "kindString": "Property", @@ -23152,14 +23337,14 @@ "type": { "type": "reflection", "declaration": { - "id": 344, + "id": 345, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 345, + "id": 346, "name": "user", "kind": 1024, "kindString": "Property", @@ -23181,7 +23366,7 @@ { "title": "Properties", "kind": 1024, - "children": [345] + "children": [346] } ], "sources": [ @@ -23195,7 +23380,7 @@ } }, { - "id": 346, + "id": 347, "name": "error", "kind": 1024, "kindString": "Property", @@ -23209,7 +23394,7 @@ ], "type": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -23218,7 +23403,7 @@ { "title": "Properties", "kind": 1024, - "children": [343, 346] + "children": [344, 347] } ], "sources": [ @@ -23234,7 +23419,7 @@ } }, { - "id": 489, + "id": 490, "name": "VerifyOtpParams", "kind": 4194304, "kindString": "Type alias", @@ -23250,14 +23435,14 @@ "type": "union", "types": [ { - "id": 490, + "id": 491, "name": "VerifyMobileOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 494, + "id": 495, "name": "options", "kind": 1024, "kindString": "Property", @@ -23274,14 +23459,14 @@ "type": { "type": "reflection", "declaration": { - "id": 495, + "id": 496, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 497, + "id": 498, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -23310,7 +23495,7 @@ } }, { - "id": 496, + "id": 497, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -23337,14 +23522,14 @@ { "title": "Properties", "kind": 1024, - "children": [497, 496] + "children": [498, 497] } ] } } }, { - "id": 491, + "id": 492, "name": "phone", "kind": 1024, "kindString": "Property", @@ -23365,7 +23550,7 @@ } }, { - "id": 492, + "id": 493, "name": "token", "kind": 1024, "kindString": "Property", @@ -23386,7 +23571,7 @@ } }, { - "id": 493, + "id": 494, "name": "type", "kind": 1024, "kindString": "Property", @@ -23403,10 +23588,10 @@ ], "type": { "type": "reference", - "id": 506, + "id": 507, "name": "MobileOtpType", "dereferenced": { - "id": 506, + "id": 507, "name": "MobileOtpType", "kind": 4194304, "kindString": "Type alias", @@ -23439,7 +23624,7 @@ { "title": "Properties", "kind": 1024, - "children": [494, 491, 492, 493] + "children": [495, 492, 493, 494] } ], "sources": [ @@ -23451,14 +23636,14 @@ ] }, { - "id": 498, + "id": 499, "name": "VerifyEmailOtpParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 499, + "id": 500, "name": "email", "kind": 1024, "kindString": "Property", @@ -23479,7 +23664,7 @@ } }, { - "id": 502, + "id": 503, "name": "options", "kind": 1024, "kindString": "Property", @@ -23496,14 +23681,14 @@ "type": { "type": "reflection", "declaration": { - "id": 503, + "id": 504, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 505, + "id": 506, "name": "captchaToken", "kind": 1024, "kindString": "Property", @@ -23526,7 +23711,7 @@ } }, { - "id": 504, + "id": 505, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -23553,14 +23738,14 @@ { "title": "Properties", "kind": 1024, - "children": [505, 504] + "children": [506, 505] } ] } } }, { - "id": 500, + "id": 501, "name": "token", "kind": 1024, "kindString": "Property", @@ -23581,7 +23766,7 @@ } }, { - "id": 501, + "id": 502, "name": "type", "kind": 1024, "kindString": "Property", @@ -23598,10 +23783,10 @@ ], "type": { "type": "reference", - "id": 507, + "id": 508, "name": "EmailOtpType", "dereferenced": { - "id": 507, + "id": 508, "name": "EmailOtpType", "kind": 4194304, "kindString": "Type alias", @@ -23646,7 +23831,7 @@ { "title": "Properties", "kind": 1024, - "children": [499, 502, 500, 501] + "children": [500, 503, 501, 502] } ], "sources": [ @@ -23661,7 +23846,7 @@ } }, { - "id": 724, + "id": 732, "name": "isAuthApiError", "kind": 64, "kindString": "Function", @@ -23675,14 +23860,14 @@ ], "signatures": [ { - "id": 725, + "id": 733, "name": "isAuthApiError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 726, + "id": 734, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -23699,7 +23884,7 @@ "asserts": false, "targetType": { "type": "reference", - "id": 732, + "id": 740, "name": "AuthApiError" } } @@ -23707,7 +23892,7 @@ ] }, { - "id": 721, + "id": 729, "name": "isAuthError", "kind": 64, "kindString": "Function", @@ -23721,14 +23906,14 @@ ], "signatures": [ { - "id": 722, + "id": 730, "name": "isAuthError", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 723, + "id": 731, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -23745,7 +23930,7 @@ "asserts": false, "targetType": { "type": "reference", - "id": 727, + "id": 735, "name": "AuthError" } } @@ -23757,26 +23942,26 @@ { "title": "Classes", "kind": 128, - "children": [732, 727, 792, 779, 817, 767, 745, 752, 1, 75] + "children": [740, 735, 800, 787, 825, 775, 753, 760, 1, 76] }, { "title": "Interfaces", "kind": 256, - "children": [356, 411, 370, 540, 699, 654, 347, 421, 429, 384, 377, 406, 359, 381, 498, 490] + "children": [357, 412, 371, 541, 700, 655, 348, 422, 430, 385, 378, 407, 360, 382, 499, 491] }, { "title": "Type Aliases", "kind": 4194304, "children": [ - 287, 286, 683, 674, 696, 687, 622, 598, 643, 632, 613, 585, 301, 642, 710, 507, 534, 524, - 543, 557, 544, 564, 529, 518, 288, 707, 581, 578, 565, 570, 573, 506, 314, 717, 285, 327, - 478, 447, 462, 508, 431, 706, 336, 489 + 288, 287, 684, 675, 697, 688, 623, 599, 644, 633, 614, 586, 302, 643, 711, 508, 535, 525, + 544, 558, 545, 565, 530, 519, 289, 708, 582, 579, 566, 571, 574, 507, 315, 725, 718, 286, + 328, 479, 448, 463, 509, 432, 707, 337, 490 ] }, { "title": "Functions", "kind": 64, - "children": [724, 721] + "children": [732, 729] } ], "sources": [ diff --git a/spec/enrichments/tsdoc_v2/realtime.json b/spec/enrichments/tsdoc_v2/realtime.json index 79913e6a85a..f948bb53cd4 100644 --- a/spec/enrichments/tsdoc_v2/realtime.json +++ b/spec/enrichments/tsdoc_v2/realtime.json @@ -809,7 +809,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 315, + "line": 327, "character": 2 } ], @@ -821,7 +821,7 @@ "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Listen to messages." + "shortText": "Creates an event handler that listens to changes" }, "parameters": [ { @@ -830,6 +830,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Realtime feature (broadcast, presence, or postgres_changes)" + }, "type": { "type": "literal", "value": "broadcast" @@ -841,6 +844,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Pre-defined and custom values specific to the Realtime feature" + }, "type": { "type": "reflection", "declaration": { @@ -856,10 +862,13 @@ "kind": 1024, "kindString": "Property", "flags": {}, + "comment": { + "shortText": "Event to listen to. If listening to postgres_changes type\nthen this value is one of INSERT, UPDATE, DELETE, *" + }, "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 317, + "line": 329, "character": 14 } ], @@ -885,6 +894,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Function to be invoked when event handler is triggered\n" + }, "type": { "type": "reflection", "declaration": { @@ -925,7 +937,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 320, + "line": 332, "character": 6 } ], @@ -943,7 +955,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 319, + "line": 331, "character": 6 } ], @@ -1045,7 +1057,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 326, + "line": 338, "character": 14 } ], @@ -1144,7 +1156,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 331, + "line": 343, "character": 14 } ], @@ -1257,7 +1269,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 336, + "line": 348, "character": 14 } ], @@ -1911,7 +1923,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 367, + "line": 379, "character": 2 } ], @@ -1947,7 +1959,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 368, + "line": 380, "character": 15 } ], @@ -2298,7 +2310,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 407, + "line": 419, "character": 2 } ], @@ -2443,7 +2455,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 394, + "line": 406, "character": 2 } ], @@ -3246,7 +3258,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 218, + "line": 228, "character": 2 } ], @@ -3330,7 +3342,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 198, + "line": 208, "character": 2 } ], @@ -3424,7 +3436,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 162, + "line": 165, "character": 2 } ], @@ -3435,6 +3447,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Returns all created channels" + }, "type": { "type": "array", "elementType": { @@ -3455,7 +3470,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 214, + "line": 224, "character": 2 } ], @@ -3485,7 +3500,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 191, + "line": 201, "character": 2 } ], @@ -3553,7 +3568,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 236, + "line": 246, "character": 2 } ], @@ -3607,7 +3622,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 177, + "line": 187, "character": 2 } ], @@ -3618,6 +3633,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes all channels" + }, "type": { "type": "reference", "typeArguments": [ @@ -3646,7 +3664,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 166, + "line": 173, "character": 2 } ], @@ -3657,6 +3675,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes a single channel" + }, "parameters": [ { "id": 354, @@ -3664,6 +3685,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "A RealtimeChannel instance\n" + }, "type": { "type": "reference", "id": 55, @@ -3696,7 +3720,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 263, + "line": 273, "character": 2 } ], diff --git a/spec/enrichments/tsdoc_v2/realtime_dereferenced.json b/spec/enrichments/tsdoc_v2/realtime_dereferenced.json index abd1c674f4b..c9508c3551f 100644 --- a/spec/enrichments/tsdoc_v2/realtime_dereferenced.json +++ b/spec/enrichments/tsdoc_v2/realtime_dereferenced.json @@ -1680,7 +1680,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 218, + "line": 228, "character": 2 } ], @@ -1994,7 +1994,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 198, + "line": 208, "character": 2 } ], @@ -2088,7 +2088,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 162, + "line": 165, "character": 2 } ], @@ -2099,6 +2099,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Returns all created channels" + }, "type": { "type": "array", "elementType": { @@ -2119,7 +2122,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 214, + "line": 224, "character": 2 } ], @@ -2149,7 +2152,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 191, + "line": 201, "character": 2 } ], @@ -2217,7 +2220,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 236, + "line": 246, "character": 2 } ], @@ -2403,7 +2406,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 177, + "line": 187, "character": 2 } ], @@ -2414,6 +2417,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes all channels" + }, "type": { "type": "reference", "typeArguments": [ @@ -2442,7 +2448,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 166, + "line": 173, "character": 2 } ], @@ -2453,6 +2459,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes a single channel" + }, "parameters": [ { "id": 354, @@ -2460,6 +2469,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "A RealtimeChannel instance\n" + }, "type": { "type": "reference", "id": 55, @@ -2527,7 +2539,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 263, + "line": 273, "character": 2 } ], @@ -4581,7 +4593,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 218, + "line": 228, "character": 2 } ], @@ -4895,7 +4907,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 198, + "line": 208, "character": 2 } ], @@ -4989,7 +5001,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 162, + "line": 165, "character": 2 } ], @@ -5000,6 +5012,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Returns all created channels" + }, "type": { "type": "array", "elementType": { @@ -5020,7 +5035,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 214, + "line": 224, "character": 2 } ], @@ -5050,7 +5065,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 191, + "line": 201, "character": 2 } ], @@ -5118,7 +5133,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 236, + "line": 246, "character": 2 } ], @@ -5304,7 +5319,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 177, + "line": 187, "character": 2 } ], @@ -5315,6 +5330,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes all channels" + }, "type": { "type": "reference", "typeArguments": [ @@ -5343,7 +5361,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 166, + "line": 173, "character": 2 } ], @@ -5354,6 +5372,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes a single channel" + }, "parameters": [ { "id": 354, @@ -5361,6 +5382,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "A RealtimeChannel instance\n" + }, "type": { "type": "reference", "id": 55, @@ -5428,7 +5452,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 263, + "line": 273, "character": 2 } ], @@ -5564,7 +5588,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 315, + "line": 327, "character": 2 } ], @@ -5576,7 +5600,7 @@ "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Listen to messages." + "shortText": "Creates an event handler that listens to changes" }, "parameters": [ { @@ -5585,6 +5609,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Realtime feature (broadcast, presence, or postgres_changes)" + }, "type": { "type": "literal", "value": "broadcast" @@ -5596,6 +5623,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Pre-defined and custom values specific to the Realtime feature" + }, "type": { "type": "reflection", "declaration": { @@ -5611,10 +5641,13 @@ "kind": 1024, "kindString": "Property", "flags": {}, + "comment": { + "shortText": "Event to listen to. If listening to postgres_changes type\nthen this value is one of INSERT, UPDATE, DELETE, *" + }, "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 317, + "line": 329, "character": 14 } ], @@ -5640,6 +5673,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Function to be invoked when event handler is triggered\n" + }, "type": { "type": "reflection", "declaration": { @@ -5680,7 +5716,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 320, + "line": 332, "character": 6 } ], @@ -5698,7 +5734,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 319, + "line": 331, "character": 6 } ], @@ -5800,7 +5836,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 326, + "line": 338, "character": 14 } ], @@ -5899,7 +5935,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 331, + "line": 343, "character": 14 } ], @@ -6012,7 +6048,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 336, + "line": 348, "character": 14 } ], @@ -7190,7 +7226,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 367, + "line": 379, "character": 2 } ], @@ -7226,7 +7262,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 368, + "line": 380, "character": 15 } ], @@ -7577,7 +7613,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 407, + "line": 419, "character": 2 } ], @@ -7722,7 +7758,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 394, + "line": 406, "character": 2 } ], @@ -8827,7 +8863,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 218, + "line": 228, "character": 2 } ], @@ -9141,7 +9177,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 198, + "line": 208, "character": 2 } ], @@ -9235,7 +9271,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 162, + "line": 165, "character": 2 } ], @@ -9246,6 +9282,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Returns all created channels" + }, "type": { "type": "array", "elementType": { @@ -9266,7 +9305,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 214, + "line": 224, "character": 2 } ], @@ -9296,7 +9335,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 191, + "line": 201, "character": 2 } ], @@ -9364,7 +9403,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 236, + "line": 246, "character": 2 } ], @@ -9550,7 +9589,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 177, + "line": 187, "character": 2 } ], @@ -9561,6 +9600,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes all channels" + }, "type": { "type": "reference", "typeArguments": [ @@ -9589,7 +9631,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 166, + "line": 173, "character": 2 } ], @@ -9600,6 +9642,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes a single channel" + }, "parameters": [ { "id": 354, @@ -9607,6 +9652,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "A RealtimeChannel instance\n" + }, "type": { "type": "reference", "id": 55, @@ -10933,7 +10981,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 315, + "line": 327, "character": 2 } ], @@ -10945,7 +10993,7 @@ "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Listen to messages." + "shortText": "Creates an event handler that listens to changes" }, "parameters": [ { @@ -10954,6 +11002,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Realtime feature (broadcast, presence, or postgres_changes)" + }, "type": { "type": "literal", "value": "broadcast" @@ -10965,6 +11016,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Pre-defined and custom values specific to the Realtime feature" + }, "type": { "type": "reflection", "declaration": { @@ -10980,10 +11034,13 @@ "kind": 1024, "kindString": "Property", "flags": {}, + "comment": { + "shortText": "Event to listen to. If listening to postgres_changes type\nthen this value is one of INSERT, UPDATE, DELETE, *" + }, "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 317, + "line": 329, "character": 14 } ], @@ -11009,6 +11066,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Function to be invoked when event handler is triggered\n" + }, "type": { "type": "reflection", "declaration": { @@ -11049,7 +11109,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 320, + "line": 332, "character": 6 } ], @@ -11067,7 +11127,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 319, + "line": 331, "character": 6 } ], @@ -11169,7 +11229,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 326, + "line": 338, "character": 14 } ], @@ -11268,7 +11328,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 331, + "line": 343, "character": 14 } ], @@ -11381,7 +11441,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 336, + "line": 348, "character": 14 } ], @@ -12559,7 +12619,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 367, + "line": 379, "character": 2 } ], @@ -12595,7 +12655,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 368, + "line": 380, "character": 15 } ], @@ -12946,7 +13006,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 407, + "line": 419, "character": 2 } ], @@ -13091,7 +13151,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 394, + "line": 406, "character": 2 } ], @@ -13205,7 +13265,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 263, + "line": 273, "character": 2 } ], @@ -14641,7 +14701,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 218, + "line": 228, "character": 2 } ], @@ -14955,7 +15015,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 198, + "line": 208, "character": 2 } ], @@ -15049,7 +15109,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 162, + "line": 165, "character": 2 } ], @@ -15060,6 +15120,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Returns all created channels" + }, "type": { "type": "array", "elementType": { @@ -15080,7 +15143,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 214, + "line": 224, "character": 2 } ], @@ -15110,7 +15173,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 191, + "line": 201, "character": 2 } ], @@ -15178,7 +15241,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 236, + "line": 246, "character": 2 } ], @@ -15364,7 +15427,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 177, + "line": 187, "character": 2 } ], @@ -15375,6 +15438,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes all channels" + }, "type": { "type": "reference", "typeArguments": [ @@ -15403,7 +15469,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 166, + "line": 173, "character": 2 } ], @@ -15414,6 +15480,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes a single channel" + }, "parameters": [ { "id": 354, @@ -15421,6 +15490,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "A RealtimeChannel instance\n" + }, "type": { "type": "reference", "id": 55, @@ -15454,7 +15526,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 263, + "line": 273, "character": 2 } ], @@ -17128,7 +17200,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 218, + "line": 228, "character": 2 } ], @@ -17442,7 +17514,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 198, + "line": 208, "character": 2 } ], @@ -17536,7 +17608,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 162, + "line": 165, "character": 2 } ], @@ -17547,6 +17619,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Returns all created channels" + }, "type": { "type": "array", "elementType": { @@ -17567,7 +17642,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 214, + "line": 224, "character": 2 } ], @@ -17597,7 +17672,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 191, + "line": 201, "character": 2 } ], @@ -17665,7 +17740,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 236, + "line": 246, "character": 2 } ], @@ -17851,7 +17926,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 177, + "line": 187, "character": 2 } ], @@ -17862,6 +17937,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes all channels" + }, "type": { "type": "reference", "typeArguments": [ @@ -17890,7 +17968,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 166, + "line": 173, "character": 2 } ], @@ -17901,6 +17979,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes a single channel" + }, "parameters": [ { "id": 354, @@ -17908,6 +17989,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "A RealtimeChannel instance\n" + }, "type": { "type": "reference", "id": 55, @@ -17941,7 +18025,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 263, + "line": 273, "character": 2 } ], @@ -18079,7 +18163,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 315, + "line": 327, "character": 2 } ], @@ -18091,7 +18175,7 @@ "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Listen to messages." + "shortText": "Creates an event handler that listens to changes" }, "parameters": [ { @@ -18100,6 +18184,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Realtime feature (broadcast, presence, or postgres_changes)" + }, "type": { "type": "literal", "value": "broadcast" @@ -18111,6 +18198,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Pre-defined and custom values specific to the Realtime feature" + }, "type": { "type": "reflection", "declaration": { @@ -18126,10 +18216,13 @@ "kind": 1024, "kindString": "Property", "flags": {}, + "comment": { + "shortText": "Event to listen to. If listening to postgres_changes type\nthen this value is one of INSERT, UPDATE, DELETE, *" + }, "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 317, + "line": 329, "character": 14 } ], @@ -18155,6 +18248,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Function to be invoked when event handler is triggered\n" + }, "type": { "type": "reflection", "declaration": { @@ -18195,7 +18291,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 320, + "line": 332, "character": 6 } ], @@ -18213,7 +18309,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 319, + "line": 331, "character": 6 } ], @@ -18315,7 +18411,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 326, + "line": 338, "character": 14 } ], @@ -18414,7 +18510,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 331, + "line": 343, "character": 14 } ], @@ -18527,7 +18623,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 336, + "line": 348, "character": 14 } ], @@ -19705,7 +19801,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 367, + "line": 379, "character": 2 } ], @@ -19741,7 +19837,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 368, + "line": 380, "character": 15 } ], @@ -20092,7 +20188,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 407, + "line": 419, "character": 2 } ], @@ -20237,7 +20333,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 394, + "line": 406, "character": 2 } ], @@ -21786,7 +21882,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 218, + "line": 228, "character": 2 } ], @@ -22100,7 +22196,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 198, + "line": 208, "character": 2 } ], @@ -22194,7 +22290,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 162, + "line": 165, "character": 2 } ], @@ -22205,6 +22301,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Returns all created channels" + }, "type": { "type": "array", "elementType": { @@ -22225,7 +22324,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 214, + "line": 224, "character": 2 } ], @@ -22255,7 +22354,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 191, + "line": 201, "character": 2 } ], @@ -22323,7 +22422,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 236, + "line": 246, "character": 2 } ], @@ -22509,7 +22608,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 177, + "line": 187, "character": 2 } ], @@ -22520,6 +22619,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes all channels" + }, "type": { "type": "reference", "typeArguments": [ @@ -22548,7 +22650,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 166, + "line": 173, "character": 2 } ], @@ -22559,6 +22661,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes a single channel" + }, "parameters": [ { "id": 354, @@ -22566,6 +22671,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "A RealtimeChannel instance\n" + }, "type": { "type": "reference", "id": 55, @@ -22599,7 +22707,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 263, + "line": 273, "character": 2 } ], @@ -24273,7 +24381,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 218, + "line": 228, "character": 2 } ], @@ -24587,7 +24695,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 198, + "line": 208, "character": 2 } ], @@ -24681,7 +24789,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 162, + "line": 165, "character": 2 } ], @@ -24692,6 +24800,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Returns all created channels" + }, "type": { "type": "array", "elementType": { @@ -24712,7 +24823,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 214, + "line": 224, "character": 2 } ], @@ -24742,7 +24853,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 191, + "line": 201, "character": 2 } ], @@ -24810,7 +24921,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 236, + "line": 246, "character": 2 } ], @@ -24996,7 +25107,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 177, + "line": 187, "character": 2 } ], @@ -25007,6 +25118,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes all channels" + }, "type": { "type": "reference", "typeArguments": [ @@ -25035,7 +25149,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 166, + "line": 173, "character": 2 } ], @@ -25046,6 +25160,9 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Unsubscribes and removes a single channel" + }, "parameters": [ { "id": 354, @@ -25053,6 +25170,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "A RealtimeChannel instance\n" + }, "type": { "type": "reference", "id": 55, @@ -25086,7 +25206,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 263, + "line": 273, "character": 2 } ], @@ -25222,7 +25342,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 315, + "line": 327, "character": 2 } ], @@ -25234,7 +25354,7 @@ "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Listen to messages." + "shortText": "Creates an event handler that listens to changes" }, "parameters": [ { @@ -25243,6 +25363,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Realtime feature (broadcast, presence, or postgres_changes)" + }, "type": { "type": "literal", "value": "broadcast" @@ -25254,6 +25377,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Pre-defined and custom values specific to the Realtime feature" + }, "type": { "type": "reflection", "declaration": { @@ -25269,10 +25395,13 @@ "kind": 1024, "kindString": "Property", "flags": {}, + "comment": { + "shortText": "Event to listen to. If listening to postgres_changes type\nthen this value is one of INSERT, UPDATE, DELETE, *" + }, "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 317, + "line": 329, "character": 14 } ], @@ -25298,6 +25427,9 @@ "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "Function to be invoked when event handler is triggered\n" + }, "type": { "type": "reflection", "declaration": { @@ -25338,7 +25470,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 320, + "line": 332, "character": 6 } ], @@ -25356,7 +25488,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 319, + "line": 331, "character": 6 } ], @@ -25458,7 +25590,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 326, + "line": 338, "character": 14 } ], @@ -25557,7 +25689,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 331, + "line": 343, "character": 14 } ], @@ -25670,7 +25802,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 336, + "line": 348, "character": 14 } ], @@ -26848,7 +26980,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 367, + "line": 379, "character": 2 } ], @@ -26884,7 +27016,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 368, + "line": 380, "character": 15 } ], @@ -27235,7 +27367,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 407, + "line": 419, "character": 2 } ], @@ -27380,7 +27512,7 @@ "sources": [ { "fileName": "RealtimeChannel.ts", - "line": 394, + "line": 406, "character": 2 } ], diff --git a/spec/enrichments/tsdoc_v2/supabase.json b/spec/enrichments/tsdoc_v2/supabase.json index 598143907ff..99f570bd1f4 100644 --- a/spec/enrichments/tsdoc_v2/supabase.json +++ b/spec/enrichments/tsdoc_v2/supabase.json @@ -3594,7 +3594,7 @@ "isOptional": true }, "comment": { - "shortText": "Automatically refreshes the token for logged in users." + "shortText": "Automatically refreshes the token for logged-in users. Defaults to true." }, "sources": [ { @@ -3617,7 +3617,7 @@ "isOptional": true }, "comment": { - "shortText": "Detect a session from the URL. Used for OAuth login callbacks." + "shortText": "Detect a session from the URL. Used for OAuth login callbacks. Defaults to true." }, "sources": [ { @@ -3640,7 +3640,7 @@ "isOptional": true }, "comment": { - "shortText": "Whether to persist a logged in session to storage." + "shortText": "Whether to persist a logged-in session to storage. Defaults to true." }, "sources": [ { @@ -3663,7 +3663,7 @@ "isOptional": true }, "comment": { - "shortText": "A storage provider. Used to store the logged in session." + "shortText": "A storage provider. Used to store the logged-in session." }, "sources": [ { @@ -3694,7 +3694,7 @@ "isOptional": true }, "comment": { - "shortText": "Optional key name used for storing tokens in local storage" + "shortText": "Optional key name used for storing tokens in local storage." }, "sources": [ { @@ -3735,7 +3735,7 @@ "isOptional": true }, "comment": { - "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to 'public'." + "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to `public`." }, "sources": [ { diff --git a/spec/enrichments/tsdoc_v2/supabase_dereferenced.json b/spec/enrichments/tsdoc_v2/supabase_dereferenced.json index 5aadce1d49c..f4888f0a434 100644 --- a/spec/enrichments/tsdoc_v2/supabase_dereferenced.json +++ b/spec/enrichments/tsdoc_v2/supabase_dereferenced.json @@ -283,7 +283,7 @@ "isOptional": true }, "comment": { - "shortText": "Automatically refreshes the token for logged in users." + "shortText": "Automatically refreshes the token for logged-in users. Defaults to true." }, "sources": [ { @@ -306,7 +306,7 @@ "isOptional": true }, "comment": { - "shortText": "Detect a session from the URL. Used for OAuth login callbacks." + "shortText": "Detect a session from the URL. Used for OAuth login callbacks. Defaults to true." }, "sources": [ { @@ -329,7 +329,7 @@ "isOptional": true }, "comment": { - "shortText": "Whether to persist a logged in session to storage." + "shortText": "Whether to persist a logged-in session to storage. Defaults to true." }, "sources": [ { @@ -352,7 +352,7 @@ "isOptional": true }, "comment": { - "shortText": "A storage provider. Used to store the logged in session." + "shortText": "A storage provider. Used to store the logged-in session." }, "sources": [ { @@ -383,7 +383,7 @@ "isOptional": true }, "comment": { - "shortText": "Optional key name used for storing tokens in local storage" + "shortText": "Optional key name used for storing tokens in local storage." }, "sources": [ { @@ -424,7 +424,7 @@ "isOptional": true }, "comment": { - "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to 'public'." + "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to `public`." }, "sources": [ { @@ -2598,7 +2598,7 @@ "isOptional": true }, "comment": { - "shortText": "Automatically refreshes the token for logged in users." + "shortText": "Automatically refreshes the token for logged-in users. Defaults to true." }, "sources": [ { @@ -2621,7 +2621,7 @@ "isOptional": true }, "comment": { - "shortText": "Detect a session from the URL. Used for OAuth login callbacks." + "shortText": "Detect a session from the URL. Used for OAuth login callbacks. Defaults to true." }, "sources": [ { @@ -2644,7 +2644,7 @@ "isOptional": true }, "comment": { - "shortText": "Whether to persist a logged in session to storage." + "shortText": "Whether to persist a logged-in session to storage. Defaults to true." }, "sources": [ { @@ -2667,7 +2667,7 @@ "isOptional": true }, "comment": { - "shortText": "A storage provider. Used to store the logged in session." + "shortText": "A storage provider. Used to store the logged-in session." }, "sources": [ { @@ -2698,7 +2698,7 @@ "isOptional": true }, "comment": { - "shortText": "Optional key name used for storing tokens in local storage" + "shortText": "Optional key name used for storing tokens in local storage." }, "sources": [ { @@ -2739,7 +2739,7 @@ "isOptional": true }, "comment": { - "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to 'public'." + "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to `public`." }, "sources": [ { @@ -3702,7 +3702,7 @@ "isOptional": true }, "comment": { - "shortText": "Automatically refreshes the token for logged in users." + "shortText": "Automatically refreshes the token for logged-in users. Defaults to true." }, "sources": [ { @@ -3725,7 +3725,7 @@ "isOptional": true }, "comment": { - "shortText": "Detect a session from the URL. Used for OAuth login callbacks." + "shortText": "Detect a session from the URL. Used for OAuth login callbacks. Defaults to true." }, "sources": [ { @@ -3748,7 +3748,7 @@ "isOptional": true }, "comment": { - "shortText": "Whether to persist a logged in session to storage." + "shortText": "Whether to persist a logged-in session to storage. Defaults to true." }, "sources": [ { @@ -3771,7 +3771,7 @@ "isOptional": true }, "comment": { - "shortText": "A storage provider. Used to store the logged in session." + "shortText": "A storage provider. Used to store the logged-in session." }, "sources": [ { @@ -3802,7 +3802,7 @@ "isOptional": true }, "comment": { - "shortText": "Optional key name used for storing tokens in local storage" + "shortText": "Optional key name used for storing tokens in local storage." }, "sources": [ { @@ -3843,7 +3843,7 @@ "isOptional": true }, "comment": { - "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to 'public'." + "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to `public`." }, "sources": [ { @@ -4151,7 +4151,7 @@ "isOptional": true }, "comment": { - "shortText": "Automatically refreshes the token for logged in users." + "shortText": "Automatically refreshes the token for logged-in users. Defaults to true." }, "sources": [ { @@ -4174,7 +4174,7 @@ "isOptional": true }, "comment": { - "shortText": "Detect a session from the URL. Used for OAuth login callbacks." + "shortText": "Detect a session from the URL. Used for OAuth login callbacks. Defaults to true." }, "sources": [ { @@ -4197,7 +4197,7 @@ "isOptional": true }, "comment": { - "shortText": "Whether to persist a logged in session to storage." + "shortText": "Whether to persist a logged-in session to storage. Defaults to true." }, "sources": [ { @@ -4220,7 +4220,7 @@ "isOptional": true }, "comment": { - "shortText": "A storage provider. Used to store the logged in session." + "shortText": "A storage provider. Used to store the logged-in session." }, "sources": [ { @@ -4251,7 +4251,7 @@ "isOptional": true }, "comment": { - "shortText": "Optional key name used for storing tokens in local storage" + "shortText": "Optional key name used for storing tokens in local storage." }, "sources": [ { @@ -4292,7 +4292,7 @@ "isOptional": true }, "comment": { - "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to 'public'." + "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to `public`." }, "sources": [ { @@ -5531,7 +5531,7 @@ "isOptional": true }, "comment": { - "shortText": "Automatically refreshes the token for logged in users." + "shortText": "Automatically refreshes the token for logged-in users. Defaults to true." }, "sources": [ { @@ -5554,7 +5554,7 @@ "isOptional": true }, "comment": { - "shortText": "Detect a session from the URL. Used for OAuth login callbacks." + "shortText": "Detect a session from the URL. Used for OAuth login callbacks. Defaults to true." }, "sources": [ { @@ -5577,7 +5577,7 @@ "isOptional": true }, "comment": { - "shortText": "Whether to persist a logged in session to storage." + "shortText": "Whether to persist a logged-in session to storage. Defaults to true." }, "sources": [ { @@ -5600,7 +5600,7 @@ "isOptional": true }, "comment": { - "shortText": "A storage provider. Used to store the logged in session." + "shortText": "A storage provider. Used to store the logged-in session." }, "sources": [ { @@ -5631,7 +5631,7 @@ "isOptional": true }, "comment": { - "shortText": "Optional key name used for storing tokens in local storage" + "shortText": "Optional key name used for storing tokens in local storage." }, "sources": [ { @@ -5672,7 +5672,7 @@ "isOptional": true }, "comment": { - "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to 'public'." + "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to `public`." }, "sources": [ { diff --git a/spec/gotrue_v1_config.yaml b/spec/gotrue_v1_config.yaml index b65c43344eb..fd7e88431b2 100644 --- a/spec/gotrue_v1_config.yaml +++ b/spec/gotrue_v1_config.yaml @@ -11,11 +11,9 @@ info: title: 'GoTrue' # {string} A readable name. source: 'https://github.com/supabase/gotrue' # {string} Where developers can find the source code. bugs: 'https://github.com/supabase/gotrue/issues' # {string} Where developers can file bugs. - spec: 'https://github.com/supabase/supabase/blob/master/web/spec/cli_config_001.yml' # {string} Where developers can find this spec (to link directly in the docs). + spec: 'https://github.com/supabase/supabase/blob/master/spec/gotrue_v1_config.yaml' # {string} Where developers can find this spec (to link directly in the docs). description: | - A `config.toml` file is generated after running `supabase init`. - - This file is located in the `supabase` folder under `supabase/config.toml`. + A `config.toml` file is generated after running `supabase init`. This file is located in the `supabase` folder under `supabase/config.toml`. tags: - id: general title: General @@ -30,3 +28,52 @@ parameters: # default: '5432' description: | A string used to distinguish different Supabase projects on the same host. Defaults to the working directory name when running `supabase init`. + - id: 'GOTRUE_EXTERNAL_GITHUB' # {string} A unique identifier for this param. + title: 'auth.external.github' # {string} Any name. + tags: ['general'] # {string[]} These tags are useful for grouping parameters + required: true + # default: '5432' + description: | + Describes whether the Github provider is enabled or not. + - id: 'GOTRUE_SITE_URL' # {string} A unique identifier for this param. + title: 'auth.site_url' # {string} Any name. + tags: ['general'] # {string[]} These tags are useful for grouping parameters + required: true + description: | + The base URL of your website. Used as an allow-list for redirects and for constructing URLs used in emails. + - id: 'GOTRUE_URI_ALLOW_LIST' # {string} A unique identifier for this param. + title: 'auth.additional_redirect_urls' # {string} Any name. + tags: ['general'] # {string[]} These tags are useful for grouping parameters + required: true + description: | + A list of *exact* URLs that auth providers are permitted to redirect to post authentication. + - id: 'GOTRUE_JWT_EXP' # {string} A unique identifier for this param. + title: 'auth.jwt_expiry' # {string} Any name. + tags: ['general'] # {string[]} These tags are useful for grouping parameters + required: true + description: | + How long tokens are valid for, in seconds. Defaults to 3600 (1 hour), maximum 604,800 seconds (one week). + - id: 'GOTRUE_DISABLE_SIGNUP' # {string} A unique identifier for this param. + title: 'auth.enable_signup' # {string} Any name. + tags: ['general'] # {string[]} These tags are useful for grouping parameters + required: true + description: | + Allow/disallow new user signups to your project. + - id: 'GOTRUE_EXTERNAL_EMAIL_ENABLED' # {string} A unique identifier for this param. + title: 'auth.email.enable_signup' # {string} Any name. + tags: ['general', 'email'] # {string[]} These tags are useful for grouping parameters + required: true + description: | + Allow/disallow new user signups via email to your project. + - id: 'GOTRUE_MAILER_SECURE_EMAIL_CHANGE_ENABLED' # {string} A unique identifier for this param. + title: 'auth.email.double_confirm_changes' # {string} Any name. + tags: ['general', 'email'] # {string[]} These tags are useful for grouping parameters + required: true + description: | + If enabled, a user will be required to confirm any email change on both the old, and new email addresses. If disabled, only the new email is required to confirm. + - id: 'GOTRUE_MAILER_AUTOCONFIRM' # {string} A unique identifier for this param. + title: 'auth.email.enable_confirmations' # {string} Any name. + tags: ['general', 'email'] # {string[]} These tags are useful for grouping parameters + required: true + description: | + If enabled, users need to confirm their email address before signing in. diff --git a/spec/supabase_js_v2.yml b/spec/supabase_js_v2.yml index a542b2e5109..7e220e2dc23 100644 --- a/spec/supabase_js_v2.yml +++ b/spec/supabase_js_v2.yml @@ -404,7 +404,7 @@ functions: const { data, error } = supabase.auth.setSession({ access_token, refresh_token - ) + }) ``` - id: refresh-session title: 'refreshSession()' @@ -643,7 +643,7 @@ functions: - Defaults to return 50 users per page. examples: - id: get-a-full-list-of-users - name: Get a full list of users + name: Get a page of users isSpotlight: true code: | ```js @@ -1062,7 +1062,7 @@ functions: If you're in a situation where your tables are **NOT** directly related, but instead are joined by a _join table_, you can still use the `select()` method to query the related data. The join table needs - to have the foreign keys as part of its composite primary key. + to have the foreign keys as part of its composite primary key. hideCodeBlock: true - id: query-the-same-foreign-table-multiple-times name: Query the same foreign table multiple times @@ -1564,7 +1564,7 @@ functions: ```ts const { data, error } = await supabase .from('users') - .upsert({ id: 42, handle: 'saoirse', display_name: 'Saoirse' }) + .upsert({ id: 42, handle: 'saoirse', display_name: 'Saoirse' }, { onConflict: 'handle' }) .select() ``` data: diff --git a/spec/transforms/api_v0_openapi_deparsed.json b/spec/transforms/api_v0_openapi_deparsed.json index ab82667dca0..d419c89de77 100644 --- a/spec/transforms/api_v0_openapi_deparsed.json +++ b/spec/transforms/api_v0_openapi_deparsed.json @@ -872,318 +872,6 @@ ] } }, - "/v1/projects/{ref}/secrets": { - "get": { - "operationId": "getSecrets", - "summary": "List all secrets", - "description": "Returns all secrets you've previously added to the specified project.", - "parameters": [ - { - "name": "ref", - "required": true, - "in": "path", - "description": "Project ref", - "schema": { - "minLength": 20, - "maxLength": 20, - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "required": ["name", "value"] - } - } - } - } - }, - "403": { - "description": "" - }, - "500": { - "description": "Failed to retrieve project's secrets" - } - }, - "tags": ["secrets"], - "security": [ - { - "apiKeyHeader": [], - "apiKeyParam": [] - }, - { - "bearer": [] - } - ] - }, - "post": { - "operationId": "createSecrets", - "summary": "Bulk create secrets", - "description": "Creates multiple secrets and adds them to the specified project.", - "parameters": [ - { - "name": "ref", - "required": true, - "in": "path", - "description": "Project ref", - "schema": { - "minLength": 20, - "maxLength": 20, - "type": "string" - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string", - "pattern": "/^(?!SUPABASE_).*/" - } - }, - "required": ["name", "value"] - } - } - } - } - }, - "responses": { - "201": { - "description": "" - }, - "403": { - "description": "" - }, - "500": { - "description": "Failed to create project's secrets" - } - }, - "tags": ["secrets"], - "security": [ - { - "apiKeyHeader": [], - "apiKeyParam": [] - }, - { - "bearer": [] - } - ] - }, - "delete": { - "operationId": "deleteSecrets", - "summary": "Bulk delete secrets", - "description": "Deletes all secrets with the given names from the specified project", - "parameters": [ - { - "name": "ref", - "required": true, - "in": "path", - "description": "Project ref", - "schema": { - "minLength": 20, - "maxLength": 20, - "type": "string" - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "403": { - "description": "" - }, - "500": { - "description": "Failed to delete secrets with given names" - } - }, - "tags": ["secrets"], - "security": [ - { - "apiKeyHeader": [], - "apiKeyParam": [] - }, - { - "bearer": [] - } - ] - } - }, - "/v1/projects/{ref}/postgrest": { - "get": { - "operationId": "getPostgRESTConfig", - "summary": "Gets project's postgrest config", - "parameters": [ - { - "name": "ref", - "required": true, - "in": "path", - "description": "Project ref", - "schema": { - "minLength": 20, - "maxLength": 20, - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "max_rows": { - "type": "integer" - }, - "db_schema": { - "type": "string" - }, - "db_extra_search_path": { - "type": "string" - } - }, - "required": ["max_rows", "db_schema", "db_extra_search_path"] - } - } - } - }, - "403": { - "description": "" - }, - "500": { - "description": "Failed to retrieve project's postgrest config" - } - }, - "tags": ["services"], - "security": [ - { - "bearer": [] - } - ] - }, - "patch": { - "operationId": "updatePostgRESTConfig", - "summary": "Updates project's postgrest config", - "parameters": [ - { - "name": "ref", - "required": true, - "in": "path", - "description": "Project ref", - "schema": { - "minLength": 20, - "maxLength": 20, - "type": "string" - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "max_rows": { - "type": "integer", - "minimum": 0, - "maximum": 1000000 - }, - "db_extra_search_path": { - "type": "string" - }, - "db_schema": { - "type": "string" - } - } - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "max_rows": { - "type": "integer" - }, - "db_schema": { - "type": "string" - }, - "db_extra_search_path": { - "type": "string" - } - }, - "required": ["max_rows", "db_schema", "db_extra_search_path"] - } - } - } - }, - "403": { - "description": "" - }, - "500": { - "description": "Failed to update project's postgrest config" - } - }, - "tags": ["services"], - "security": [ - { - "bearer": [] - } - ] - } - }, "/v1/projects/{ref}/custom-hostname": { "get": { "operationId": "getCustomHostnameConfig", @@ -1482,181 +1170,6 @@ ] } }, - "/v1/projects/{ref}/pgsodium": { - "get": { - "operationId": "getConfig", - "summary": "Gets project's pgsodium config", - "parameters": [ - { - "name": "ref", - "required": true, - "in": "path", - "description": "Project ref", - "schema": { - "minLength": 20, - "maxLength": 20, - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "root_key": { - "type": "string" - } - }, - "required": ["root_key"] - } - } - } - }, - "403": { - "description": "" - }, - "500": { - "description": "Failed to retrieve project's pgsodium config" - } - }, - "tags": ["pgsodium (beta)"], - "security": [ - { - "bearer": [] - } - ] - }, - "put": { - "operationId": "updateConfig", - "summary": "Updates project's pgsodium config. Updating the root_key can cause all data encrypted with the older key to become inaccessible.", - "parameters": [ - { - "name": "ref", - "required": true, - "in": "path", - "description": "Project ref", - "schema": { - "minLength": 20, - "maxLength": 20, - "type": "string" - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "root_key": { - "type": "string" - } - }, - "required": ["root_key"] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "root_key": { - "type": "string" - } - }, - "required": ["root_key"] - } - } - } - }, - "403": { - "description": "" - }, - "500": { - "description": "Failed to update project's pgsodium config" - } - }, - "tags": ["pgsodium (beta)"], - "security": [ - { - "bearer": [] - } - ] - } - }, - "/v1/projects/{ref}/types/typescript": { - "get": { - "operationId": "getTypescriptTypes", - "summary": "Generate TypeScript types", - "description": "Returns the TypeScript types of your schema for use with supabase-js.", - "parameters": [ - { - "name": "included_schemas", - "required": false, - "in": "query", - "schema": { - "default": "public", - "type": "string" - } - }, - { - "name": "ref", - "required": true, - "in": "path", - "description": "Project ref", - "schema": { - "minLength": 20, - "maxLength": 20, - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "types": { - "type": "string" - } - }, - "required": ["types"] - } - } - } - }, - "403": { - "description": "" - }, - "500": { - "description": "Failed to generate TypeScript types" - } - }, - "tags": ["projects"], - "security": [ - { - "apiKeyHeader": [], - "apiKeyParam": [] - }, - { - "bearer": [] - } - ] - } - }, "/v1/projects/{ref}/network-bans/retrieve": { "post": { "operationId": "getNetworkBans", @@ -1915,6 +1428,629 @@ ] } }, + "/v1/projects/{ref}/pgsodium": { + "get": { + "operationId": "getConfig", + "summary": "Gets project's pgsodium config", + "parameters": [ + { + "name": "ref", + "required": true, + "in": "path", + "description": "Project ref", + "schema": { + "minLength": 20, + "maxLength": 20, + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "root_key": { + "type": "string" + } + }, + "required": ["root_key"] + } + } + } + }, + "403": { + "description": "" + }, + "500": { + "description": "Failed to retrieve project's pgsodium config" + } + }, + "tags": ["pgsodium (beta)"], + "security": [ + { + "bearer": [] + } + ] + }, + "put": { + "operationId": "updateConfig", + "summary": "Updates project's pgsodium config. Updating the root_key can cause all data encrypted with the older key to become inaccessible.", + "parameters": [ + { + "name": "ref", + "required": true, + "in": "path", + "description": "Project ref", + "schema": { + "minLength": 20, + "maxLength": 20, + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "root_key": { + "type": "string" + } + }, + "required": ["root_key"] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "root_key": { + "type": "string" + } + }, + "required": ["root_key"] + } + } + } + }, + "403": { + "description": "" + }, + "500": { + "description": "Failed to update project's pgsodium config" + } + }, + "tags": ["pgsodium (beta)"], + "security": [ + { + "bearer": [] + } + ] + } + }, + "/v1/projects/{ref}/postgrest": { + "get": { + "operationId": "getPostgRESTConfig", + "summary": "Gets project's postgrest config", + "parameters": [ + { + "name": "ref", + "required": true, + "in": "path", + "description": "Project ref", + "schema": { + "minLength": 20, + "maxLength": 20, + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "max_rows": { + "type": "integer" + }, + "db_schema": { + "type": "string" + }, + "db_extra_search_path": { + "type": "string" + } + }, + "required": ["max_rows", "db_schema", "db_extra_search_path"] + } + } + } + }, + "403": { + "description": "" + }, + "500": { + "description": "Failed to retrieve project's postgrest config" + } + }, + "tags": ["services"], + "security": [ + { + "bearer": [] + } + ] + }, + "patch": { + "operationId": "updatePostgRESTConfig", + "summary": "Updates project's postgrest config", + "parameters": [ + { + "name": "ref", + "required": true, + "in": "path", + "description": "Project ref", + "schema": { + "minLength": 20, + "maxLength": 20, + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "max_rows": { + "type": "integer", + "minimum": 0, + "maximum": 1000000 + }, + "db_extra_search_path": { + "type": "string" + }, + "db_schema": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "max_rows": { + "type": "integer" + }, + "db_schema": { + "type": "string" + }, + "db_extra_search_path": { + "type": "string" + } + }, + "required": ["max_rows", "db_schema", "db_extra_search_path"] + } + } + } + }, + "403": { + "description": "" + }, + "500": { + "description": "Failed to update project's postgrest config" + } + }, + "tags": ["services"], + "security": [ + { + "bearer": [] + } + ] + } + }, + "/v1/projects/{ref}/secrets": { + "get": { + "operationId": "getSecrets", + "summary": "List all secrets", + "description": "Returns all secrets you've previously added to the specified project.", + "parameters": [ + { + "name": "ref", + "required": true, + "in": "path", + "description": "Project ref", + "schema": { + "minLength": 20, + "maxLength": 20, + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": ["name", "value"] + } + } + } + } + }, + "403": { + "description": "" + }, + "500": { + "description": "Failed to retrieve project's secrets" + } + }, + "tags": ["secrets"], + "security": [ + { + "apiKeyHeader": [], + "apiKeyParam": [] + }, + { + "bearer": [] + } + ] + }, + "post": { + "operationId": "createSecrets", + "summary": "Bulk create secrets", + "description": "Creates multiple secrets and adds them to the specified project.", + "parameters": [ + { + "name": "ref", + "required": true, + "in": "path", + "description": "Project ref", + "schema": { + "minLength": 20, + "maxLength": 20, + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string", + "pattern": "/^(?!SUPABASE_).*/" + } + }, + "required": ["name", "value"] + } + } + } + } + }, + "responses": { + "201": { + "description": "" + }, + "403": { + "description": "" + }, + "500": { + "description": "Failed to create project's secrets" + } + }, + "tags": ["secrets"], + "security": [ + { + "apiKeyHeader": [], + "apiKeyParam": [] + }, + { + "bearer": [] + } + ] + }, + "delete": { + "operationId": "deleteSecrets", + "summary": "Bulk delete secrets", + "description": "Deletes all secrets with the given names from the specified project", + "parameters": [ + { + "name": "ref", + "required": true, + "in": "path", + "description": "Project ref", + "schema": { + "minLength": 20, + "maxLength": 20, + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "403": { + "description": "" + }, + "500": { + "description": "Failed to delete secrets with given names" + } + }, + "tags": ["secrets"], + "security": [ + { + "apiKeyHeader": [], + "apiKeyParam": [] + }, + { + "bearer": [] + } + ] + } + }, + "/v1/projects/{ref}/ssl-enforcement": { + "get": { + "operationId": "getSslEnforcementConfig", + "summary": "Get project's SSL enforcement configuration.", + "parameters": [ + { + "name": "ref", + "required": true, + "in": "path", + "description": "Project ref", + "schema": { + "minLength": 20, + "maxLength": 20, + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "currentConfig": { + "type": "object", + "properties": { + "database": { + "type": "boolean" + } + }, + "required": ["database"] + }, + "appliedSuccessfully": { + "type": "boolean" + } + }, + "required": ["currentConfig", "appliedSuccessfully"] + } + } + } + }, + "403": { + "description": "" + }, + "500": { + "description": "Failed to retrieve project's SSL enforcement config" + } + }, + "tags": ["ssl enforcement (beta)"], + "security": [ + { + "bearer": [] + } + ] + }, + "put": { + "operationId": "updateSslEnforcementConfig", + "summary": "Update project's SSL enforcement configuration.", + "parameters": [ + { + "name": "ref", + "required": true, + "in": "path", + "description": "Project ref", + "schema": { + "minLength": 20, + "maxLength": 20, + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "requestedConfig": { + "type": "object", + "properties": { + "database": { + "type": "boolean" + } + }, + "required": ["database"] + } + }, + "required": ["requestedConfig"] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "currentConfig": { + "type": "object", + "properties": { + "database": { + "type": "boolean" + } + }, + "required": ["database"] + }, + "appliedSuccessfully": { + "type": "boolean" + } + }, + "required": ["currentConfig", "appliedSuccessfully"] + } + } + } + }, + "403": { + "description": "" + }, + "500": { + "description": "Failed to update project's SSL enforcement configuration." + } + }, + "tags": ["ssl enforcement (beta)"], + "security": [ + { + "bearer": [] + } + ] + } + }, + "/v1/projects/{ref}/types/typescript": { + "get": { + "operationId": "getTypescriptTypes", + "summary": "Generate TypeScript types", + "description": "Returns the TypeScript types of your schema for use with supabase-js.", + "parameters": [ + { + "name": "included_schemas", + "required": false, + "in": "query", + "schema": { + "default": "public", + "type": "string" + } + }, + { + "name": "ref", + "required": true, + "in": "path", + "description": "Project ref", + "schema": { + "minLength": 20, + "maxLength": 20, + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "types": { + "type": "string" + } + }, + "required": ["types"] + } + } + } + }, + "403": { + "description": "" + }, + "500": { + "description": "Failed to generate TypeScript types" + } + }, + "tags": ["projects"], + "security": [ + { + "apiKeyHeader": [], + "apiKeyParam": [] + }, + { + "bearer": [] + } + ] + } + }, "/v1/projects/{ref}/vanity-subdomain": { "get": { "operationId": "getVanitySubdomainConfig", @@ -2369,62 +2505,6 @@ } } }, - "SecretResponse": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "required": ["name", "value"] - }, - "CreateSecretBody": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string", - "pattern": "/^(?!SUPABASE_).*/" - } - }, - "required": ["name", "value"] - }, - "PostgrestConfigResponse": { - "type": "object", - "properties": { - "max_rows": { - "type": "integer" - }, - "db_schema": { - "type": "string" - }, - "db_extra_search_path": { - "type": "string" - } - }, - "required": ["max_rows", "db_schema", "db_extra_search_path"] - }, - "UpdatePostgrestConfigBody": { - "type": "object", - "properties": { - "max_rows": { - "type": "integer", - "minimum": 0, - "maximum": 1000000 - }, - "db_extra_search_path": { - "type": "string" - }, - "db_schema": { - "type": "string" - } - } - }, "UpdateCustomHostnameResponse": { "type": "object", "properties": { @@ -2456,33 +2536,6 @@ }, "required": ["custom_hostname"] }, - "PgsodiumConfigResponse": { - "type": "object", - "properties": { - "root_key": { - "type": "string" - } - }, - "required": ["root_key"] - }, - "UpdatePgsodiumConfigBody": { - "type": "object", - "properties": { - "root_key": { - "type": "string" - } - }, - "required": ["root_key"] - }, - "TypescriptResponse": { - "type": "object", - "properties": { - "types": { - "type": "string" - } - }, - "required": ["types"] - }, "NetworkBanResponse": { "type": "object", "properties": { @@ -2545,6 +2598,131 @@ }, "required": ["entitlement", "config", "status"] }, + "PgsodiumConfigResponse": { + "type": "object", + "properties": { + "root_key": { + "type": "string" + } + }, + "required": ["root_key"] + }, + "UpdatePgsodiumConfigBody": { + "type": "object", + "properties": { + "root_key": { + "type": "string" + } + }, + "required": ["root_key"] + }, + "PostgrestConfigResponse": { + "type": "object", + "properties": { + "max_rows": { + "type": "integer" + }, + "db_schema": { + "type": "string" + }, + "db_extra_search_path": { + "type": "string" + } + }, + "required": ["max_rows", "db_schema", "db_extra_search_path"] + }, + "UpdatePostgrestConfigBody": { + "type": "object", + "properties": { + "max_rows": { + "type": "integer", + "minimum": 0, + "maximum": 1000000 + }, + "db_extra_search_path": { + "type": "string" + }, + "db_schema": { + "type": "string" + } + } + }, + "SecretResponse": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": ["name", "value"] + }, + "CreateSecretBody": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string", + "pattern": "/^(?!SUPABASE_).*/" + } + }, + "required": ["name", "value"] + }, + "SslEnforcements": { + "type": "object", + "properties": { + "database": { + "type": "boolean" + } + }, + "required": ["database"] + }, + "SslEnforcementResponse": { + "type": "object", + "properties": { + "currentConfig": { + "type": "object", + "properties": { + "database": { + "type": "boolean" + } + }, + "required": ["database"] + }, + "appliedSuccessfully": { + "type": "boolean" + } + }, + "required": ["currentConfig", "appliedSuccessfully"] + }, + "SslEnforcementRequest": { + "type": "object", + "properties": { + "requestedConfig": { + "type": "object", + "properties": { + "database": { + "type": "boolean" + } + }, + "required": ["database"] + } + }, + "required": ["requestedConfig"] + }, + "TypescriptResponse": { + "type": "object", + "properties": { + "types": { + "type": "string" + } + }, + "required": ["types"] + }, "VanitySubdomainConfigResponse": { "type": "object", "properties": { diff --git a/studio/components/grid/components/header/Header.tsx b/studio/components/grid/components/header/Header.tsx index 4ad75e4eaef..1b3e8ae89bc 100644 --- a/studio/components/grid/components/header/Header.tsx +++ b/studio/components/grid/components/header/Header.tsx @@ -40,7 +40,10 @@ const Header: FC = ({ sorts, filters, onAddColumn, onAddRow, header onAddRow={onAddRow} /> )} -
{headerActions}
+
+ + {headerActions} +
) } @@ -74,7 +77,6 @@ const DefaultHeader: FC = ({ sorts, filters, onAddColumn, on return (
-
diff --git a/studio/components/interfaces/App/PortalToast.tsx b/studio/components/interfaces/App/PortalToast.tsx index 347320ff009..de8d70b2e01 100644 --- a/studio/components/interfaces/App/PortalToast.tsx +++ b/studio/components/interfaces/App/PortalToast.tsx @@ -42,7 +42,15 @@ const PortalToast = () => (
{t.type !== 'loading' && (
-
diff --git a/studio/components/interfaces/Auth/Policies/PolicyEditor/index.tsx b/studio/components/interfaces/Auth/Policies/PolicyEditor/index.tsx index b6859a061a3..a5e39deebad 100644 --- a/studio/components/interfaces/Auth/Policies/PolicyEditor/index.tsx +++ b/studio/components/interfaces/Auth/Policies/PolicyEditor/index.tsx @@ -37,7 +37,7 @@ const PolicyEditor: FC = ({ return (
-
+
= ({ returnUrl, onCancel }) => {
- -
diff --git a/studio/components/interfaces/Billing/PlanSelection/PlanSelection.tsx b/studio/components/interfaces/Billing/PlanSelection/PlanSelection.tsx index 3495972be9f..c2c52459e0e 100644 --- a/studio/components/interfaces/Billing/PlanSelection/PlanSelection.tsx +++ b/studio/components/interfaces/Billing/PlanSelection/PlanSelection.tsx @@ -15,6 +15,9 @@ interface Props { const PlanSelection: FC = ({ visible, tiers, currentPlan, onSelectPlan }) => { const formattedTiers = formatTierOptions(tiers) + // [Kevin] TODO Remove after team plan is generally available + const gridCols = formattedTiers.length === 3 ? 'gap-8 xl:grid-cols-3' : 'gap-4 xl:grid-cols-4' + return ( = ({ visible, tiers, currentPlan, onSelectPlan }) enterFrom="transform opacity-0 -translate-x-10" enterTo="transform opacity-100 translate-x-0" > -
-

Change your project's subscription

- {/* FE will make a call to fetch all plans first at the page level */} -
+
+

Change your project's subscription

+
-
+
{ } // Fix the order of plans here - return tiers - .filter((tier: any) => tier.id === STRIPE_PRODUCT_IDS.FREE) - .concat(tiers.filter((tier: any) => tier.id === STRIPE_PRODUCT_IDS.PRO)) - .concat([enterpriseOption]) + return ( + tiers + .filter((tier: any) => tier.id === STRIPE_PRODUCT_IDS.FREE) + .concat(tiers.filter((tier: any) => tier.id === STRIPE_PRODUCT_IDS.PRO)) + .concat(tiers.filter((tier: any) => tier.id === STRIPE_PRODUCT_IDS.TEAM)) + .concat([enterpriseOption]) + // Team plan might not be enabled yet, make sure to filter out null/undefined + .filter(Boolean) + ) } diff --git a/studio/components/interfaces/Billing/PlanSelection/Plans/PlanCTAButton.tsx b/studio/components/interfaces/Billing/PlanSelection/Plans/PlanCTAButton.tsx index 369105dbce8..05dbf005a53 100644 --- a/studio/components/interfaces/Billing/PlanSelection/Plans/PlanCTAButton.tsx +++ b/studio/components/interfaces/Billing/PlanSelection/Plans/PlanCTAButton.tsx @@ -16,10 +16,18 @@ interface Props { const PlanCTAButton: FC = ({ plan, currentPlan, onSelectPlan }) => { const projectUpdateDisabled = useFlag('disableProjectCreationAndUpdate') - const getButtonType = (plan: any) => { - if (plan.name === 'Enterprise' || plan.id === STRIPE_PRODUCT_IDS.FREE) { + const getButtonType = (plan: any, currentPlan: any) => { + if (['Enterprise', 'Free tier'].includes(plan.name)) { + // Enterprise/Free are always default + return 'default' + } else if (currentPlan.prod_id === STRIPE_PRODUCT_IDS.FREE) { + // If the current plan is free, other plans are primary + return 'primary' + } else if (currentPlan.prod_id === STRIPE_PRODUCT_IDS.TEAM && plan.name !== 'Team tier') { + // Non-free plans are default (pro), when team tier is selected return 'default' } + return 'primary' } @@ -37,6 +45,8 @@ const PlanCTAButton: FC = ({ plan, currentPlan, onSelectPlan }) => { if (plan.id === STRIPE_PRODUCT_IDS.PRO) { if (currentPlan.prod_id === STRIPE_PRODUCT_IDS.FREE) { return 'Upgrade to Pro' + } else if (currentPlan.prod_id === STRIPE_PRODUCT_IDS.TEAM) { + return 'Downgrade to Pro' } else if ( currentPlan.prod_id === STRIPE_PRODUCT_IDS.PRO || currentPlan.prod_id === STRIPE_PRODUCT_IDS.PAYG @@ -46,6 +56,20 @@ const PlanCTAButton: FC = ({ plan, currentPlan, onSelectPlan }) => { return 'Contact sales' } } + + if (plan.id === STRIPE_PRODUCT_IDS.TEAM) { + if (currentPlan.prod_id === STRIPE_PRODUCT_IDS.TEAM) { + return 'Edit plan configuration' + } else if ( + [STRIPE_PRODUCT_IDS.FREE, STRIPE_PRODUCT_IDS.PRO, STRIPE_PRODUCT_IDS.PAYG].includes( + currentPlan.prod_id + ) + ) { + return 'Upgrade to Team' + } else { + return 'Contact sales' + } + } } if (!currentPlan) @@ -57,7 +81,7 @@ const PlanCTAButton: FC = ({ plan, currentPlan, onSelectPlan }) => {
) - const type = getButtonType(plan) + const type = getButtonType(plan, currentPlan) const ctaText = getButtonText(plan, currentPlan) const disabled = plan.id === STRIPE_PRODUCT_IDS.FREE && currentPlan.prod_id === STRIPE_PRODUCT_IDS.FREE diff --git a/studio/components/interfaces/Billing/PlanSelection/Plans/Plans.Constants.ts b/studio/components/interfaces/Billing/PlanSelection/Plans/Plans.Constants.ts index 28b917a56ec..1e8b6f8e918 100644 --- a/studio/components/interfaces/Billing/PlanSelection/Plans/Plans.Constants.ts +++ b/studio/components/interfaces/Billing/PlanSelection/Plans/Plans.Constants.ts @@ -34,7 +34,7 @@ export const PRICING_META = { href: '#', from: true, priceMonthly: 25, - warning: '+ additional use', + warning: '+ any additional usage', description: 'For production applications with the option to scale.', features: [ '8GB database & 100GB file storage', @@ -52,10 +52,34 @@ export const PRICING_META = { ], scale: 'Additional fees apply for usage and storage beyond the limits above.', shutdown: '', - preface: 'Everything below included in the base plan', + preface: 'Everything in the base plan, plus', additional: 'Need more? Turn off your spend cap to Pay As You Grow ', cta: 'Get Started', }, + [STRIPE_PRODUCT_IDS.TEAM]: { + name: 'Team', + href: '#', + from: true, + priceMonthly: 599, + warning: '+ usage', + description: 'For collaborative teams with different permissions and access.', + features: [ + 'Usage-based pricing', + '100,000 monthly active users included', + 'Organization member roles (ABAC)', + 'Standardised Security Questionnaire', + 'SOC2', + 'SSO for Supabase Dashboard', + 'Priority email support & SLAs', + '1 XS compute instance', + '14 day backups', + '28 day log retention', + ], + scale: '', + shutdown: '', + additional: '', + cta: 'Get Started', + }, Enterprise: { name: 'Enterprise', href: '/contact/enterprise', diff --git a/studio/components/interfaces/Billing/PlanSelection/Plans/Plans.tsx b/studio/components/interfaces/Billing/PlanSelection/Plans/Plans.tsx index caf3f42a7d1..a08e0b5b14c 100644 --- a/studio/components/interfaces/Billing/PlanSelection/Plans/Plans.tsx +++ b/studio/components/interfaces/Billing/PlanSelection/Plans/Plans.tsx @@ -6,17 +6,11 @@ import { StripeProduct } from 'components/interfaces/Billing' import PlanCTAButton from './PlanCTAButton' import { PRICING_META } from './Plans.Constants' -interface Props { - plans: any[] - currentPlan?: StripeProduct - onSelectPlan: (plan: any) => void -} - const AnimatedGradientBackground = () => (
) @@ -34,6 +28,12 @@ const CurrentSubscriptionBanner = () => (
) +interface Props { + plans: any[] + currentPlan?: StripeProduct + onSelectPlan: (plan: any) => void +} + /** * JSX below for the mapped plans is also very similar to www/pages/pricing * TO DO: move to use shared components for these @@ -44,6 +44,7 @@ const CurrentSubscriptionBanner = () => ( const Plans: FC = ({ plans, currentPlan, onSelectPlan }) => { return ( <> + {/* Existing available plans */} {plans.map((plan) => { const isCurrentPlan = plan.id === currentPlan?.prod_id || @@ -59,7 +60,7 @@ const Plans: FC = ({ plans, currentPlan, onSelectPlan }) => { )}
{isCurrentPlan && } -
+
= ({ plans, currentPlan, onSelectPlan }) => {
{PRICING_META[plan.id].priceMonthly !== undefined ? ( <> -
+
{PRICING_META[plan.id].from && ( - From + From )} -
- ${PRICING_META[plan.id].priceMonthly} - /mo -
+ ${PRICING_META[plan.id].priceMonthly} + /mo
) : ( Contact Us )} -
+
{PRICING_META[plan.id].warning && (
{PRICING_META[plan.id].warning} @@ -106,26 +105,30 @@ const Plans: FC = ({ plans, currentPlan, onSelectPlan }) => { 'flex-1 flex-col justify-between', 'space-y-6 border-t dark:border-scale-400', 'bg-scale-100 dark:bg-scale-300', - 'hidden h-full px-8 py-6 lg:flex', + 'hidden h-full px-6 py-6 lg:flex', ].join(' ')} > - {PRICING_META[plan.id].preface && ( -

{PRICING_META[plan.id].preface}

- )} -
    - {PRICING_META[plan.id].features.map((feature) => ( -
  • -
  • - ))} -
+
+ {PRICING_META[plan.id].preface && ( +

{PRICING_META[plan.id].preface}

+ )} +
    + {PRICING_META[plan.id].features.map((feature) => ( +
  • +
    +
    +

    + {feature} +

    +
  • + ))} +
+
{PRICING_META[plan.id].additional && ( diff --git a/studio/components/interfaces/Billing/TeamUpgrade.tsx b/studio/components/interfaces/Billing/TeamUpgrade.tsx new file mode 100644 index 00000000000..7cc18e7847a --- /dev/null +++ b/studio/components/interfaces/Billing/TeamUpgrade.tsx @@ -0,0 +1,348 @@ +import { FC, useEffect, useRef, useState } from 'react' +import { Transition } from '@headlessui/react' +import { useRouter } from 'next/router' + +import { useStore, useFlag } from 'hooks' +import { post, patch } from 'lib/common/fetch' +import { API_URL, PROJECT_STATUS } from 'lib/constants' +import { getURL } from 'lib/helpers' +import Divider from 'components/ui/Divider' +import { + PaymentSummaryPanel, + ComputeSizeSelection, + PITRDurationSelection, + CustomDomainSelection, + StripeSubscription, + AddNewPaymentMethodModal, +} from './' +import { STRIPE_PRODUCT_IDS } from 'lib/constants' +import UpdateSuccess from './UpdateSuccess' +import { PaymentMethod, SubscriptionPreview } from './Billing.types' +import { formSubscriptionUpdatePayload, getCurrentAddons } from './Billing.utils' +import { SubscriptionAddon } from './AddOns/AddOns.types' +import { + formatComputeSizes, + formatCustomDomainOptions, + formatPITROptions, +} from './AddOns/AddOns.utils' +import BackButton from 'components/ui/BackButton' +import SupportPlan from './AddOns/SupportPlan' +import HCaptcha from '@hcaptcha/react-hcaptcha' + +// Do not allow compute size changes for af-south-1 + +interface Props { + products: { tiers: any[]; addons: SubscriptionAddon[] } + paymentMethods?: PaymentMethod[] + currentSubscription: StripeSubscription + isLoadingPaymentMethods: boolean + onSelectBack: () => void +} + +const TeamUpgrade: FC = ({ + products, + paymentMethods, + currentSubscription, + isLoadingPaymentMethods, + onSelectBack, +}) => { + const { app, ui } = useStore() + const router = useRouter() + const isCustomDomainsEnabled = useFlag('customDomains') + const isPITRSelfServeEnabled = useFlag('pitrSelfServe') + + const [captchaToken, setCaptchaToken] = useState(null) + const captchaRef = useRef(null) + + const { addons } = products + const computeSizes = formatComputeSizes(addons) + const pitrDurationOptions = formatPITROptions(addons) + const customDomainOptions = formatCustomDomainOptions(addons) + const currentAddons = getCurrentAddons(currentSubscription, addons) + + const projectId = ui.selectedProject?.id ?? -1 + const projectRef = ui.selectedProject?.ref + const projectRegion = ui.selectedProject?.region ?? '' + + const [isRefreshingPreview, setIsRefreshingPreview] = useState(false) + const [isSubmitting, setIsSubmitting] = useState(false) + const [isSuccessful, setIsSuccessful] = useState(false) + const [showAddPaymentMethodModal, setShowAddPaymentMethodModal] = useState(false) + + // [Joshen TODO] Ideally we just have a state to hold all the add ons selection, rather than individual + // Even better if we can just use the
component to handle all of these. Mainly to reduce the amount + // of unnecessary state management on this complex page. + const [selectedComputeSize, setSelectedComputeSize] = useState( + currentAddons.computeSize + ) + const [selectedPITRDuration, setSelectedPITRDuration] = useState( + currentAddons.pitrDuration + ) + const [selectedCustomDomainOption, setSelectedCustomDomainOption] = useState( + currentAddons.customDomains + ) + + // [Joshen TODO] Future - We may need to also include any add ons outside of + // compute size, pitr, custom domain and support plan, although we dont have any now + const nonChangeableAddons = [currentAddons.supportPlan].filter( + (x) => x !== undefined + ) as SubscriptionAddon[] + + // [Joshen] Scaffolded here + const selectedAddons = { + computeSize: selectedComputeSize, + pitrDuration: selectedPITRDuration, + customDomains: selectedCustomDomainOption, + } + + const [selectedPaymentMethodId, setSelectedPaymentMethodId] = useState('') + const [subscriptionPreview, setSubscriptionPreview] = useState() + + const selectedTier = products?.tiers.find((tier: any) => tier.id === STRIPE_PRODUCT_IDS.TEAM) + + const isManagingTeamSubscription = currentSubscription.tier.prod_id === STRIPE_PRODUCT_IDS.TEAM + + const isChangingComputeSize = currentAddons.computeSize?.id !== selectedAddons.computeSize.id + + useEffect(() => { + if (!isLoadingPaymentMethods && paymentMethods && paymentMethods.length > 0) { + setSelectedPaymentMethodId(paymentMethods[0].id) + } + }, [isLoadingPaymentMethods, paymentMethods]) + + useEffect(() => { + getSubscriptionPreview() + }, [selectedComputeSize, selectedPITRDuration, selectedCustomDomainOption]) + + const getSubscriptionPreview = async () => { + const payload = formSubscriptionUpdatePayload( + currentSubscription, + selectedTier, + selectedAddons, + nonChangeableAddons, + selectedPaymentMethodId, + projectRegion + ) + + setIsRefreshingPreview(true) + const preview = await post(`${API_URL}/projects/${projectRef}/subscription/preview`, payload) + if (preview.error) { + ui.setNotification({ + category: 'error', + message: `Failed to fetch subscription preview: ${preview.error.message}`, + }) + } + setSubscriptionPreview(preview) + setIsRefreshingPreview(false) + } + + const resetCaptcha = () => { + setCaptchaToken(null) + captchaRef.current?.resetCaptcha() + } + + const beforeConfirmPayment = async (): Promise => { + setIsSubmitting(true) + let token = captchaToken + + try { + if (!token) { + const captchaResponse = await captchaRef.current?.execute({ async: true }) + token = captchaResponse?.response ?? null + setCaptchaToken(token) + } + } catch (error) { + setIsSubmitting(false) + return false + } + + setIsSubmitting(false) + return true + } + + const teamTierEnabled = useFlag('teamTier') + + const onConfirmPayment = async () => { + if (!teamTierEnabled) { + return ui.setNotification({ + category: 'error', + message: 'Team Plan is not enabled yet.', + }) + } + const payload = formSubscriptionUpdatePayload( + currentSubscription, + selectedTier, + selectedAddons, + nonChangeableAddons, + selectedPaymentMethodId, + projectRegion + ) + const res = await patch(`${API_URL}/projects/${projectRef}/subscription`, payload) + resetCaptcha() + + if (res?.error) { + ui.setNotification({ + category: 'error', + message: `Failed to update subscription: ${res?.error?.message}`, + }) + } else { + if (isChangingComputeSize) { + app.onProjectStatusUpdated(projectId, PROJECT_STATUS.RESTORING) + ui.setNotification({ + category: 'success', + message: + 'Your project has been updated and is currently restarting to update its instance size', + duration: 8000, + }) + router.push(`/project/${projectRef}`) + } else { + setIsSuccessful(true) + } + } + setIsSubmitting(false) + } + + if (!isSubmitting && isSuccessful) { + return ( + + ) + } + + return ( + <> + +
+
+
+ onSelectBack()} /> +

Change your project's subscription

+
+ +
+
+ {!isManagingTeamSubscription ? ( + <> +

+ Welcome to Team +

+

+ Your new subscription will begin immediately after payment +

+ + ) : ( + <> +

+ Managing your Team plan +

+ + )} +
+ + {projectRegion !== 'af-south-1' && ( + <> + {currentAddons.supportPlan !== undefined && ( + <> + + + + )} + {isCustomDomainsEnabled && customDomainOptions.length > 0 && ( + <> + + + + )} + {isPITRSelfServeEnabled && pitrDurationOptions.length > 0 && ( + <> + + + + )} + + + + )} +
+
+
+
+ { + setShowAddPaymentMethodModal(true) + }} + beforeConfirmPayment={beforeConfirmPayment} + onConfirmPayment={onConfirmPayment} + isSubmitting={isSubmitting} + captcha={ + { + setCaptchaToken(token) + }} + onExpire={() => { + setCaptchaToken(null) + }} + /> + } + /> +
+
+ + setShowAddPaymentMethodModal(false)} + /> + + ) +} + +export default TeamUpgrade diff --git a/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsx b/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsx new file mode 100644 index 00000000000..dbe8fe10c83 --- /dev/null +++ b/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsx @@ -0,0 +1,294 @@ +import Link from 'next/link' +import { isEmpty } from 'lodash' +import { useState } from 'react' +import { useRouter } from 'next/router' +import { observer } from 'mobx-react-lite' +import { Button, Form, Input, IconArrowLeft, IconExternalLink, IconEdit, IconTrash } from 'ui' +import { PermissionAction } from '@supabase/shared-types/out/constants' + +import { checkPermissions, useParams, useStore } from 'hooks' +import { + FormPanel, + FormActions, + FormSection, + FormsContainer, + FormSectionLabel, + FormSectionContent, +} from 'components/ui/Forms' +import { useFDWCreateMutation } from 'data/fdw/fdw-create-mutation' + +import InputField from './InputField' +import { WRAPPERS } from './Wrappers.constants' +import WrapperTableEditor from './WrapperTableEditor' +import { makeValidateRequired } from './Wrappers.utils' +import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' + +const CreateWrapper = () => { + const formId = 'create-wrapper-form' + const router = useRouter() + const { ui } = useStore() + const { ref, type } = useParams() + const { project } = useProjectContext() + const { mutateAsync: createFDW } = useFDWCreateMutation() + + const [newTables, setNewTables] = useState([]) + const [isEditingTable, setIsEditingTable] = useState(false) + const [selectedTableToEdit, setSelectedTableToEdit] = useState() + const [formErrors, setFormErrors] = useState<{ [k: string]: string }>({}) + + const canCreateWrapper = checkPermissions(PermissionAction.TENANT_SQL_ADMIN_WRITE, 'extensions') + + const wrapperMeta = WRAPPERS.find((wrapper) => wrapper.name === type) + const initialValues = + wrapperMeta !== undefined + ? { + wrapper_name: '', + server_name: '', + ...Object.fromEntries( + wrapperMeta.server.options.map((option) => [option.name, option.defaultValue ?? '']) + ), + } + : {} + + if (wrapperMeta === undefined) { + return ( +
+
+

Unsupported wrapper type

+

+ The wrapper type {type} not supported by the dashboard. Head back to create a different + wrapper. +

+
+ + + + + +
+ ) + } + + const onUpdateTable = (values: any) => { + setNewTables((prev) => { + // if the new values have tableIndex, we are editing an existing table + if (values.tableIndex !== undefined) { + const tableIndex = values.tableIndex + const newTables = [...prev] + delete values.tableIndex + newTables[tableIndex] = values + return newTables + } + return [...prev, values] + }) + setIsEditingTable(false) + setSelectedTableToEdit(undefined) + } + + const onSubmit = async (values: any, { setSubmitting }: any) => { + const validate = makeValidateRequired(wrapperMeta.server.options) + const errors: any = validate(values) + + const { wrapper_name } = values + if (wrapper_name.length === 0) errors.name = 'Please provide a name for your wrapper' + if (newTables.length === 0) errors.tables = 'Please add at least one table' + if (!isEmpty(errors)) return setFormErrors(errors) + + setSubmitting(true) + try { + await createFDW({ + projectRef: project?.ref, + connectionString: project?.connectionString, + wrapperMeta, + formState: { ...values, server_name: `${wrapper_name}_server` }, + tables: newTables, + }) + ui.setNotification({ + category: 'success', + message: `Successfully created ${wrapperMeta.label} foreign data wrapper`, + }) + setNewTables([]) + router.push(`/project/${ref}/database/wrappers`) + } catch (error: any) { + ui.setNotification({ + error, + category: 'error', + message: `Failed to create ${wrapperMeta.label} foreign data wrapper: ${error.message}`, + }) + } finally { + setSubmitting(false) + } + } + + return ( + +
+
+ +

Create a {wrapperMeta?.label} Wrapper

+ +
+ + + {({ isSubmitting, handleReset, values, initialValues }: any) => { + const hasChanges = JSON.stringify(values) !== JSON.stringify(initialValues) + return ( + + +
+ } + > + Wrapper Configuration}> + + 0 ? ( + <> + Your wrapper's server name will be{' '} + {values.wrapper_name}_server + + ) : ( + '' + ) + } + /> + + + {wrapperMeta.label} Configuration} + > + + {wrapperMeta.server.options.map((option) => ( + + ))} + + + +

Foreign Tables

+

+ You can query your data from these foreign tables after the wrapper is + created +

+ + } + > + + {newTables.length === 0 ? ( +
+ +
+ ) : ( +
+ {newTables.map((table, i) => ( +
+
+

+ {table.schema_name}.{table.table_name} +

+

+ {wrapperMeta.tables[table.index].label}: {table.columns.join(', ')} +

+
+
+
+
+ ))} +
+ )} + {newTables.length > 0 && ( +
+ +
+ )} + {newTables.length === 0 && formErrors.tables && ( +

{formErrors.tables}

+ )} +
+
+ + ) + }} +
+
+ + { + setSelectedTableToEdit(undefined) + setIsEditingTable(false) + }} + onSave={onUpdateTable} + initialData={selectedTableToEdit} + /> + + ) +} + +export default observer(CreateWrapper) diff --git a/studio/components/interfaces/Database/Wrappers/EditWrapper.tsx b/studio/components/interfaces/Database/Wrappers/EditWrapper.tsx new file mode 100644 index 00000000000..2286ec04c7f --- /dev/null +++ b/studio/components/interfaces/Database/Wrappers/EditWrapper.tsx @@ -0,0 +1,392 @@ +import Link from 'next/link' +import { isEmpty } from 'lodash' +import { useEffect, useState } from 'react' +import { useRouter } from 'next/router' +import { observer } from 'mobx-react-lite' +import { + Button, + Form, + Input, + IconArrowLeft, + IconExternalLink, + IconEdit, + IconTrash, + IconLoader, +} from 'ui' +import { PermissionAction } from '@supabase/shared-types/out/constants' + +import { VaultSecret } from 'types' +import { checkPermissions, useImmutableValue, useParams, useStore } from 'hooks' +import { useFDWsQuery } from 'data/fdw/fdws-query' +import { useFDWUpdateMutation } from 'data/fdw/fdw-update-mutation' + +import InputField from './InputField' +import { WRAPPERS } from './Wrappers.constants' +import WrapperTableEditor from './WrapperTableEditor' +import { + formatWrapperTables, + makeValidateRequired, + convertKVStringArrayToJson, +} from './Wrappers.utils' +import Loading from 'components/ui/Loading' +import { + FormPanel, + FormActions, + FormSection, + FormSectionLabel, + FormSectionContent, + FormsContainer, +} from 'components/ui/Forms' +import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' + +const EditWrapper = () => { + const formId = 'edit-wrapper-form' + const router = useRouter() + const { ui, vault } = useStore() + const { ref, id } = useParams() + const { project } = useProjectContext() + + const { data, isLoading } = useFDWsQuery({ + projectRef: project?.ref, + connectionString: project?.connectionString, + }) + + const wrappers = data?.result ?? [] + const foundWrapper = wrappers.find((w) => Number(w.id) === Number(id)) + // this call to useImmutableValue should be removed if the redirect after update is also removed + const wrapper = useImmutableValue(foundWrapper) + + const wrapperMeta = WRAPPERS.find((w) => w.handlerName === wrapper?.handler) + + const { mutateAsync: updateFDW, isLoading: isSaving } = useFDWUpdateMutation() + + const [wrapperTables, setWrapperTables] = useState([]) + const [isEditingTable, setIsEditingTable] = useState(false) + const [selectedTableToEdit, setSelectedTableToEdit] = useState() + const [formErrors, setFormErrors] = useState<{ [k: string]: string }>({}) + + const canCreateWrapper = checkPermissions(PermissionAction.TENANT_SQL_ADMIN_WRITE, 'extensions') + + const initialValues = + wrapperMeta !== undefined + ? { + wrapper_name: wrapper?.name, + server_name: wrapper?.server_name, + ...convertKVStringArrayToJson(wrapper?.server_options ?? []), + } + : {} + + useEffect(() => { + if (wrapper?.id) { + setWrapperTables(formatWrapperTables(wrapper?.tables ?? [])) + } + }, [wrapper?.id]) + + if (isLoading) { + return ( +
+ +
+ ) + } + + if (wrapper === undefined || wrapperMeta === undefined) { + if (isSaving) { + return ( +
+
+ +

Updating wrapper

+
+
+ ) + } else { + return ( +
+
+

Unknown wrapper

+

+ The wrapper ID {id} cannot be found in your project. Head back to select another + wrapper. +

+
+ + + + + +
+ ) + } + } + + const onUpdateTable = (values: any) => { + setWrapperTables((prev) => { + // if the new values have tableIndex, we are editing an existing table + if (values.tableIndex !== undefined) { + const tableIndex = values.tableIndex + const wrapperTables = [...prev] + delete values.tableIndex + wrapperTables[tableIndex] = values + return wrapperTables + } + return [...prev, values] + }) + setIsEditingTable(false) + setSelectedTableToEdit(undefined) + } + + const onSubmit = async (values: any, { setSubmitting }: any) => { + const validate = makeValidateRequired(wrapperMeta.server.options) + const errors: any = validate(values) + + const { wrapper_name } = values + if (wrapper_name.length === 0) errors.name = 'Please provide a name for your wrapper' + if (wrapperTables.length === 0) errors.tables = 'Please add at least one table' + if (!isEmpty(errors)) return setFormErrors(errors) + + setSubmitting(true) + try { + await updateFDW({ + projectRef: project?.ref, + connectionString: project?.connectionString, + wrapper, + wrapperMeta, + formState: { ...values, server_name: `${wrapper_name}_server` }, + tables: wrapperTables, + }) + + ui.setNotification({ + category: 'success', + message: `Successfully updated ${wrapperMeta.label} foreign data wrapper`, + }) + setWrapperTables([]) + router.push(`/project/${ref}/database/wrappers`) + } catch (error: any) { + ui.setNotification({ + error, + category: 'error', + message: `Failed to create ${wrapperMeta.label} foreign data wrapper: ${error.message}`, + }) + } finally { + setSubmitting(false) + } + } + + return ( + +
+
+ +

Edit wrapper: {wrapper.name}

+ +
+ +
+ {({ isSubmitting, handleReset, values, initialValues, resetForm }: any) => { + const [loadingSecrets, setLoadingSecrets] = useState(false) + + const initialTables = formatWrapperTables(wrapper?.tables ?? []) + const hasFormChanges = JSON.stringify(values) !== JSON.stringify(initialValues) + const hasTableChanges = JSON.stringify(initialTables) !== JSON.stringify(wrapperTables) + const hasChanges = hasFormChanges || hasTableChanges + + const encryptedOptions = wrapperMeta.server.options.filter((option) => option.encrypted) + + useEffect(() => { + const fetchEncryptedValues = async () => { + setLoadingSecrets(true) + const res = await Promise.all( + encryptedOptions.map(async (option) => { + const [secret] = vault.listSecrets( + (secret: VaultSecret) => secret.name === `${wrapper.name}_${option.name}` + ) + if (secret !== undefined) { + const value = await vault.fetchSecretValue(secret.id) + return { [option.name]: value } + } else { + return { [option.name]: '' } + } + }) + ) + const secretValues = res.reduce((a: any, b: any) => { + const [key] = Object.keys(b) + return { ...a, [key]: b[key] } + }, {}) + + resetForm({ + values: { ...values, ...secretValues }, + initialValues: { ...initialValues, ...secretValues }, + }) + setLoadingSecrets(false) + } + + if (encryptedOptions.length > 0) fetchEncryptedValues() + }, []) + + return ( + + { + handleReset() + setWrapperTables(initialTables) + }} + helper={ + !canCreateWrapper + ? 'You need additional permissions to create a foreign data wrapper' + : undefined + } + /> +
+ } + > + Wrapper Configuration}> + + + Your wrapper's server name will be updated to{' '} + {values.wrapper_name}_server + + ) : ( + <> + Your wrapper's server name is{' '} + {values.wrapper_name}_server + + ) + } + /> + + + {wrapperMeta.label} Configuration} + > + + {wrapperMeta.server.options.map((option) => ( + + ))} + + + +

Foreign Tables

+

+ You can query your data from these foreign tables after the wrapper is + created +

+ + } + > + + {wrapperTables.length === 0 ? ( +
+ +
+ ) : ( +
+ {wrapperTables.map((table, i) => ( +
+
+

+ {table.schema_name}.{table.table_name} +

+

+ {wrapperMeta.tables[table.index].label}: {table.columns.join(', ')} +

+
+
+
+
+ ))} +
+ )} + {wrapperTables.length > 0 && ( +
+ +
+ )} + {wrapperTables.length === 0 && formErrors.tables && ( +

{formErrors.tables}

+ )} +
+
+ + ) + }} + +
+ + { + setSelectedTableToEdit(undefined) + setIsEditingTable(false) + }} + onSave={onUpdateTable} + initialData={selectedTableToEdit} + /> + + ) +} + +export default observer(EditWrapper) diff --git a/studio/components/interfaces/Database/Wrappers/InputField.tsx b/studio/components/interfaces/Database/Wrappers/InputField.tsx new file mode 100644 index 00000000000..a3839cc8fad --- /dev/null +++ b/studio/components/interfaces/Database/Wrappers/InputField.tsx @@ -0,0 +1,94 @@ +import Link from 'next/link' +import { FC, useState } from 'react' +import { Button, Input, IconHelpCircle, IconEye, IconEyeOff, IconLoader } from 'ui' +import { ServerOption } from './Wrappers.types' + +interface Props { + option: ServerOption + loading: boolean + error: any +} + +const InputField: FC = ({ option, loading, error }) => { + const [showHidden, setShowHidden] = useState(!option.hidden) + if (option.isTextArea) { + return ( +
+ +

{option.label}

+ {option.urlHelper !== undefined && ( + + + + + + )} +
+ } + value={loading ? 'Fetching value from Vault...' : undefined} + defaultValue={option.defaultValue ?? ''} + required={option.required ?? false} + /> +
+ ) + } else { + return ( + +

{option.label}

+ {option.urlHelper !== undefined && ( + + + + + + )} +
+ } + defaultValue={option.defaultValue ?? ''} + error={error} + value={loading ? 'Fetching value from Vault...' : undefined} + type={!option.hidden || loading ? 'text' : showHidden ? 'text' : 'password'} + disabled={loading} + actions={ + loading ? ( +
+
+ ) : option.hidden ? ( +
+
+ ) : null + } + /> + ) + } +} + +export default InputField diff --git a/studio/components/interfaces/Database/Wrappers/WrapperRow.tsx b/studio/components/interfaces/Database/Wrappers/WrapperRow.tsx index 23dbc7b96ca..35b7efbed34 100644 --- a/studio/components/interfaces/Database/Wrappers/WrapperRow.tsx +++ b/studio/components/interfaces/Database/Wrappers/WrapperRow.tsx @@ -1,218 +1,50 @@ import Link from 'next/link' import Image from 'next/image' -import { isEmpty } from 'lodash' -import { FC, useState } from 'react' -import { - Collapsible, - Input, - IconCheck, - IconChevronUp, - Button, - IconEdit, - IconTrash, - IconEye, - IconEyeOff, - IconCheckCircle, - IconExternalLink, - IconLoader, - IconHelpCircle, -} from 'ui' +import { FC } from 'react' +import { Collapsible, IconChevronUp, Button, IconExternalLink, IconTrash, IconEdit } from 'ui' +import { partition } from 'lodash' -import { useStore } from 'hooks' -import { ServerOption, Wrapper } from './Wrappers.types' -import { makeValidateRequired } from './Wrappers.utils' -import { useFDWCreateMutation } from 'data/fdw/fdw-create-mutation' +import { useParams, useStore } from 'hooks' +import { WrapperMeta } from './Wrappers.types' +import { FDW } from 'data/fdw/fdws-query' import { useFDWDeleteMutation } from 'data/fdw/fdw-delete-mutation' import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' -import WrapperTableEditor from './WrapperTableEditor' -import InformationBox from 'components/ui/InformationBox' import { confirmAlert } from 'components/to-be-cleaned/ModalsDeprecated/ConfirmModal' interface Props { - wrapper: Wrapper - isLoading: boolean - isEnabled: boolean + wrappers: FDW[] + wrapperMeta: WrapperMeta isOpen: boolean onOpen: (wrapper: string) => void } -const InputField: FC<{ - option: ServerOption - value: any - error: any - onChange: (e: any) => void -}> = ({ option, value, error, onChange }) => { - const [showHidden, setShowHidden] = useState(!option.hidden) - - if (option.isTextArea) { - return ( -
- -

{option.label}

- {option.urlHelper !== undefined && ( - - - - - - )} -
- } - defaultValue={option.defaultValue ?? ''} - required={option.required ?? false} - value={value} - onChange={onChange} - error={error} - className="input-mono" - rows={6} - /> -
- ) - } else { - return ( - -

{option.label}

- {option.urlHelper !== undefined && ( - - - - - - )} -
- } - defaultValue={option.defaultValue ?? ''} - required={option.required ?? false} - value={value} - onChange={onChange} - error={error} - className="input-mono" - type={!option.hidden ? 'text' : showHidden ? 'text' : 'password'} - actions={ - option.hidden ? ( -
-
- ) : null - } - /> - ) - } -} - -const WrapperRow: FC = ({ wrapper, isLoading, isEnabled, isOpen, onOpen }) => { - const getInitialFormState = () => - Object.fromEntries( - wrapper.server.options.map((option) => [option.name, option.defaultValue ?? '']) - ) - +const WrapperRow: FC = ({ wrappers = [], wrapperMeta, isOpen, onOpen }) => { const { ui } = useStore() + const { ref } = useParams() const { project } = useProjectContext() - const { mutateAsync: createFDW } = useFDWCreateMutation() const { mutateAsync: deleteFDW } = useFDWDeleteMutation() - const [isSubmitting, setIsSubmitting] = useState(false) - const [isEditingTable, setIsEditingTable] = useState(false) - const [selectedTableToEdit, setSelectedTableToEdit] = useState() - - const [newTables, setNewTables] = useState([]) - const [formState, setFormState] = useState(getInitialFormState) - const [formErrors, setFormErrors] = useState<{ [k: string]: string }>({}) - - // [Joshen TODO] Fix this logic - const noChanges = false - // const noChanges = JSON.stringify(getInitialFormState()) === JSON.stringify(formState) - - const onUpdateTable = (values: any) => { - setNewTables((prev) => { - // if the new values have tableIndex, we are editing an existing table - if (values.tableIndex !== undefined) { - const tableIndex = values.tableIndex - const newTables = [...prev] - delete values.tableIndex - newTables[tableIndex] = values - return newTables - } - return [...prev, values] - }) - setIsEditingTable(false) - setSelectedTableToEdit(undefined) - } - - const onSaveWrapper = async () => { - const validate = makeValidateRequired(wrapper.server.options) - const errors: any = validate(formState) - if (newTables.length === 0) errors.tables = 'Please add at least one table' - - if (!isEmpty(errors)) { - setFormErrors(errors) - return - } - - setIsSubmitting(true) - try { - await createFDW({ - projectRef: project?.ref, - connectionString: project?.connectionString, - wrapper, - formState, - newTables, - }) - ui.setNotification({ - category: 'success', - message: `Successfully created ${wrapper.label} foreign data wrapper`, - }) - setNewTables([]) - setFormState(getInitialFormState) - } catch (error: any) { - ui.setNotification({ - error, - category: 'error', - message: `Failed to create ${wrapper.label} foreign data wrapper: ${error.message}`, - }) - } finally { - setIsSubmitting(false) - } - } - - const onDeleteWrapper = () => { + const onDeleteWrapper = (wrapper: any) => { confirmAlert({ - title: `Confirm to disable ${wrapper.label} wrapper`, - message: `Are you sure you want to disable the ${wrapper.label} wrapper? This will also remove all tables created with this wrapper.`, + title: `Confirm to disable ${wrapper.name}`, + message: `Are you sure you want to disable the ${wrapper.name} wrapper? This will also remove all tables created with this wrapper.`, onAsyncConfirm: async () => { try { await deleteFDW({ projectRef: project?.ref, connectionString: project?.connectionString, wrapper, + wrapperMeta, + }) + ui.setNotification({ + category: 'success', + message: `Successfully disabled ${wrapper.name} foreign data wrapper`, }) } catch (error: any) { ui.setNotification({ error, category: 'error', - message: `Disabling ${wrapper.name} failed: ${error.message}`, + message: `Failed to disable ${wrapper.name}: ${error.message}`, }) } }, @@ -223,7 +55,7 @@ const WrapperRow: FC = ({ wrapper, isLoading, isEnabled, isOpen, onOpen } <> onOpen(wrapper.name)} + onOpenChange={() => onOpen(wrapperMeta.name)} className={[ 'bg-scale-100 dark:bg-scale-300 ', 'hover:bg-scale-200 dark:hover:bg-scale-500', @@ -231,11 +63,11 @@ const WrapperRow: FC = ({ wrapper, isLoading, isEnabled, isOpen, onOpen } 'border-scale-300', 'dark:border-scale-500 hover:border-scale-500', 'dark:hover:border-scale-700 data-open:border-scale-700', - 'data-open:pb-px col-span-12 mx-auto', + 'col-span-12 mx-auto', '-space-y-px overflow-hidden', 'transition border shadow hover:z-50', - 'first:rounded-tl first:rounded-tr', - 'last:rounded-bl last:rounded-br', + 'first:rounded-tl first:rounded-tr first:!border-t', + 'last:rounded-bl last:rounded-br last:border-t-0', ].join(' ')} > @@ -250,185 +82,102 @@ const WrapperRow: FC = ({ wrapper, isLoading, isEnabled, isOpen, onOpen } width={14} /> {`${wrapper.name} - {wrapper.label} + {wrapperMeta.label}
- {isLoading ? ( -
- -
- ) : isEnabled ? ( -
- - - - Enabled -
- ) : ( -
- Disabled -
- )} +
+ {wrappers.length} wrapper{wrappers.length > 1 ? 's' : ''} +
- {!isLoading && ( - <> - {isEnabled ? ( - -
-
- - } - title={`${wrapper.label} foreign data wrapper is currently enabled`} - description="If you'd like to edit this wrapper, you'll need to disable the wrapper first and create it again with any updated configuration." - /> -
-
- - - + +
- - ) : ( - -
-
- {wrapper.server.options.map((option) => ( - { - setFormState((prev) => ({ ...prev, [option.name]: e.target.value })) - setFormErrors((prev) => ({ ...prev, [option.name]: '' })) - }} - /> - ))} -
-
-
-

Foreign Tables

- -
-
-
- {newTables.length === 0 && ( -
-

- Add foreign tables to query from after the wrapper is enabled -

-
- )} - {newTables.map((table, i) => ( -
-
-

- {table.schema_name}.{table.table_name} -

-

- {wrapper.tables[table.index].label}: {table.columns.join(', ')} -

-
-
-
-
- ))} - {newTables.length === 0 && formErrors.tables && ( -

{formErrors.tables}

- )} -
-
- - - - - -
- - -
-
-
-
-
-
- )} - - )} + ) + })} +
+ - { - setSelectedTableToEdit(undefined) - setIsEditingTable(false) - }} - onSave={onUpdateTable} - initialData={selectedTableToEdit} - /> ) } diff --git a/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts b/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts index 3a6eb87fc81..cbb51c09408 100644 --- a/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts +++ b/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts @@ -1,6 +1,6 @@ -import { Wrapper } from './Wrappers.types' +import { WrapperMeta } from './Wrappers.types' -export const WRAPPERS: Wrapper[] = [ +export const WRAPPERS: WrapperMeta[] = [ { name: 'stripe_wrapper', handlerName: 'stripe_fdw_handler', @@ -10,7 +10,6 @@ export const WRAPPERS: Wrapper[] = [ label: 'Stripe', docsUrl: 'https://supabase.com/docs/guides/database/wrappers/stripe', server: { - name: 'stripe_server', options: [ { name: 'api_key_id', @@ -205,13 +204,13 @@ export const WRAPPERS: Wrapper[] = [ editable: false, required: true, }, - { - name: 'rowid_column', - label: 'Row ID Column', - defaultValue: 'id', - editable: true, - required: true, - }, + // { + // name: 'rowid_column', + // label: 'Row ID Column', + // defaultValue: 'id', + // editable: true, + // required: true, + // }, ], }, { @@ -350,13 +349,13 @@ export const WRAPPERS: Wrapper[] = [ editable: false, required: true, }, - { - name: 'rowid_column', - label: 'Row ID Column', - defaultValue: 'id', - editable: true, - required: true, - }, + // { + // name: 'rowid_column', + // label: 'Row ID Column', + // defaultValue: 'id', + // editable: true, + // required: true, + // }, ], }, { @@ -395,13 +394,13 @@ export const WRAPPERS: Wrapper[] = [ editable: false, required: true, }, - { - name: 'rowid_column', - label: 'Row ID Column', - defaultValue: 'id', - editable: true, - required: true, - }, + // { + // name: 'rowid_column', + // label: 'Row ID Column', + // defaultValue: 'id', + // editable: true, + // required: true, + // }, ], }, ], @@ -415,7 +414,6 @@ export const WRAPPERS: Wrapper[] = [ label: 'Firebase', docsUrl: 'https://supabase.com/docs/guides/database/wrappers/firebase', server: { - name: 'firebase_server', options: [ { name: 'project_id', diff --git a/studio/components/interfaces/Database/Wrappers/Wrappers.tsx b/studio/components/interfaces/Database/Wrappers/Wrappers.tsx index fca661e3993..d05146b786d 100644 --- a/studio/components/interfaces/Database/Wrappers/Wrappers.tsx +++ b/studio/components/interfaces/Database/Wrappers/Wrappers.tsx @@ -2,33 +2,32 @@ import Link from 'next/link' import { useState } from 'react' import { Button, IconExternalLink } from 'ui' import { observer } from 'mobx-react-lite' -import * as Tooltip from '@radix-ui/react-tooltip' -import { PermissionAction } from '@supabase/shared-types/out/constants' -import { checkPermissions, useParams, useStore } from 'hooks' +import { useStore } from 'hooks' import { useFDWsQuery } from 'data/fdw/fdws-query' import { WRAPPERS } from './Wrappers.constants' import WrapperRow from './WrapperRow' import ShimmeringLoader from 'components/ui/ShimmeringLoader' +import WrappersDropdown from './WrappersDropdown' +import WrappersDisabledState from './WrappersDisabledState' import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' +import { groupBy } from 'lodash' const Wrappers = () => { - const { ref } = useParams() - const { ui, meta } = useStore() + const { meta } = useStore() const { project } = useProjectContext() const { data, isLoading } = useFDWsQuery({ projectRef: project?.ref, connectionString: project?.connectionString, }) - const enabledWrapperNamesSet = new Set(data?.result.map((fdw) => fdw.name)) - const [open, setOpen] = useState('') - const [isEnabling, setIsEnabling] = useState(false) + + const wrappers = data?.result ?? [] + const groupedWrappers = groupBy(wrappers, 'handler') const wrappersExtension = meta.extensions.byId('wrappers') const vaultExtension = meta.extensions.byId('supabase_vault') const isLoadingExtensions = meta.extensions.isLoading - const isNotAvailable = wrappersExtension === undefined || vaultExtension === undefined const isWrappersEnabled = wrappersExtension !== undefined && @@ -36,48 +35,6 @@ const Wrappers = () => { vaultExtension !== undefined && vaultExtension?.installed_version !== null - const canToggleWrappers = checkPermissions(PermissionAction.TENANT_SQL_ADMIN_WRITE, 'extensions') - - const onEnableWrappers = async () => { - if (wrappersExtension === undefined || vaultExtension === undefined) return - setIsEnabling(true) - - const requiredExtensions = await Promise.all([ - await meta.extensions.create({ - schema: wrappersExtension.schema ?? 'extensions', - name: wrappersExtension.name, - version: wrappersExtension.default_version, - cascade: true, - }), - await meta.extensions.create({ - schema: vaultExtension.schema ?? 'vault', - name: vaultExtension.name, - version: vaultExtension.default_version, - cascade: true, - }), - ]) - const errors = requiredExtensions.filter( - (res) => res.error && !res.error.message.includes('already exists') - ) - - if (errors.length > 0) { - ui.setNotification({ - error: errors, - category: 'error', - message: `Failed to enable Wrappers for your project: ${errors - .map((x) => x.message) - .join(', ')}`, - }) - } else { - ui.setNotification({ - category: 'success', - message: 'Wrappers is now enabled for your project!', - }) - } - - setIsEnabling(false) - } - return (
@@ -87,158 +44,63 @@ const Wrappers = () => { Query your data warehouse directly from your database, or third-party APIs using SQL.
- {/* [Joshen TODO] For when we support multiple instances per wrapper */} - {/*
- - {WRAPPERS.map((wrapper, idx) => ( - <> - - } - onClick={() => {}} - > - {wrapper.label} - - {idx !== WRAPPERS.length - 1 && } - - ))} - - } - > - - -
*/} +
+ + + + + + {isWrappersEnabled && } +
- {isLoadingExtensions ? ( -
+ {isLoadingExtensions || isLoading ? ( +
) : isWrappersEnabled ? (
- {WRAPPERS.map((wrapper, i) => { - return ( - { - if (open !== wrapperName) setOpen(wrapperName) - else setOpen('') - }} - /> - ) - })} + {wrappers.length === 0 ? ( +
+

No wrappers created yet

+ +
+ ) : ( + <> + {/* [Joshen] This probably needs to change anyways so dont get too stuck with this */} + {WRAPPERS.map((wrapper, i) => { + const createdWrappers = groupedWrappers[wrapper.handlerName] ?? [] + if (createdWrappers.length > 0) { + return ( + { + if (open !== wrapperName) setOpen(wrapperName) + else setOpen('') + }} + /> + ) + } else { + return null + } + })} + + )}
) : ( -
-
-
-
-

Supabase Wrappers

-

- Supabase Wrappers is a framework for building Postgres Foreign Data Wrappers (FDW) - which connect Postgres to external systems. Query your data warehouse or - third-party APIs directly from your database. -

-
- {isNotAvailable ? ( -
-
-
-

- Wrappers is not available for this project yet. -

-

- Do reach out to us if you're interested! -

-
- -
- -
- ) : ( -
- - - - - - - - - - {!canToggleWrappers && ( - - -
- - You need additional permissions to enable Wrappers for this project - -
-
- )} -
-
- )} -
-
-
+ )}
) diff --git a/studio/components/interfaces/Database/Wrappers/Wrappers.types.ts b/studio/components/interfaces/Database/Wrappers/Wrappers.types.ts index 25ac12d203b..c0da532e9f1 100644 --- a/studio/components/interfaces/Database/Wrappers/Wrappers.types.ts +++ b/studio/components/interfaces/Database/Wrappers/Wrappers.types.ts @@ -1,4 +1,4 @@ -export type Wrapper = { +export type WrapperMeta = { name: string handlerName: string validatorName: string @@ -22,7 +22,6 @@ export type ServerOption = { } export type Server = { - name: string options: ServerOption[] } diff --git a/studio/components/interfaces/Database/Wrappers/Wrappers.utils.ts b/studio/components/interfaces/Database/Wrappers/Wrappers.utils.ts index 19b48c207f1..97545babb4f 100644 --- a/studio/components/interfaces/Database/Wrappers/Wrappers.utils.ts +++ b/studio/components/interfaces/Database/Wrappers/Wrappers.utils.ts @@ -19,3 +19,24 @@ export const makeValidateRequired = return errors } + +export const formatWrapperTables = (tables: any[]) => { + return tables.map((table, index: number) => { + const object = table.options.find((option: string) => option.startsWith('object=')) + const objectValue = object !== undefined ? object.split('=')[1] : undefined + + return { + index, + columns: table.columns.map((column: any) => column.name), + is_new_schema: false, + object: objectValue, + schema: table.schema, + schema_name: table.schema, + table_name: table.name, + } + }) +} + +export const convertKVStringArrayToJson = (values: string[]) => { + return Object.fromEntries(values.map((value) => value.split('='))) +} diff --git a/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsx b/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsx new file mode 100644 index 00000000000..54e4fa6a8b1 --- /dev/null +++ b/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsx @@ -0,0 +1,156 @@ +import Link from 'next/link' +import { useState } from 'react' +import { Button, IconExternalLink } from 'ui' +import { observer } from 'mobx-react-lite' +import * as Tooltip from '@radix-ui/react-tooltip' +import { PermissionAction } from '@supabase/shared-types/out/constants' + +import { checkPermissions, useParams, useStore } from 'hooks' + +const WrappersDisabledState = () => { + const { ui, meta } = useStore() + const { ref } = useParams() + const wrappersExtension = meta.extensions.byId('wrappers') + const vaultExtension = meta.extensions.byId('supabase_vault') + const isNotAvailable = wrappersExtension === undefined || vaultExtension === undefined + + const [isEnabling, setIsEnabling] = useState(false) + const canToggleWrappers = checkPermissions(PermissionAction.TENANT_SQL_ADMIN_WRITE, 'extensions') + + const onEnableWrappers = async () => { + if (wrappersExtension === undefined || vaultExtension === undefined) return + setIsEnabling(true) + + const requiredExtensions = await Promise.all([ + await meta.extensions.create({ + schema: wrappersExtension.schema ?? 'extensions', + name: wrappersExtension.name, + version: wrappersExtension.default_version, + cascade: true, + }), + await meta.extensions.create({ + schema: vaultExtension.schema ?? 'vault', + name: vaultExtension.name, + version: vaultExtension.default_version, + cascade: true, + }), + ]) + const errors = requiredExtensions.filter( + (res) => res.error && !res.error.message.includes('already exists') + ) + + if (errors.length > 0) { + ui.setNotification({ + error: errors, + category: 'error', + message: `Failed to enable Wrappers for your project: ${errors + .map((x) => x.message) + .join(', ')}`, + }) + } else { + ui.setNotification({ + category: 'success', + message: 'Wrappers is now enabled for your project!', + }) + } + + setIsEnabling(false) + } + + return ( +
+
+
+
+

Supabase Wrappers

+

+ Supabase Wrappers is a framework for building Postgres Foreign Data Wrappers (FDW) + which connect Postgres to external systems. Query your data warehouse or third-party + APIs directly from your database. +

+
+ {isNotAvailable ? ( +
+
+
+

+ Wrappers is not available for this project yet. +

+

+ Do reach out to us if you're interested! +

+
+ +
+ +
+ ) : ( +
+ + + + + + + + + + {!canToggleWrappers && ( + + +
+ + You need additional permissions to enable Wrappers for this project + +
+
+ )} +
+
+ )} +
+
+
+ ) +} + +export default observer(WrappersDisabledState) diff --git a/studio/components/interfaces/Database/Wrappers/WrappersDropdown.tsx b/studio/components/interfaces/Database/Wrappers/WrappersDropdown.tsx new file mode 100644 index 00000000000..b74c9a9fffb --- /dev/null +++ b/studio/components/interfaces/Database/Wrappers/WrappersDropdown.tsx @@ -0,0 +1,59 @@ +import Link from 'next/link' +import Image from 'next/image' +import { FC, Fragment } from 'react' +import { observer } from 'mobx-react-lite' +import { Button, Dropdown, IconPlus } from 'ui' + +import { useParams } from 'hooks' +import { WRAPPERS } from './Wrappers.constants' + +interface Props { + buttonText?: string + align?: 'center' | 'end' +} + +const WrapperDropdown: FC = ({ buttonText = 'Add wrapper', align = 'end' }) => { + const { ref } = useParams() + + return ( + + {WRAPPERS.map((wrapper, idx) => ( + + + + + } + > + {wrapper.label} + + + + {idx !== WRAPPERS.length - 1 && } + + ))} + + } + > + + + ) +} + +export default observer(WrapperDropdown) diff --git a/studio/components/interfaces/Database/index.ts b/studio/components/interfaces/Database/index.ts index b294434c18e..d866b7d8c8c 100644 --- a/studio/components/interfaces/Database/index.ts +++ b/studio/components/interfaces/Database/index.ts @@ -7,6 +7,8 @@ import RolesSettings from './Roles/RolesSettings' import Extensions from './Extensions/Extensions' import Wrappers from './Wrappers/Wrappers' +import CreateWrapper from './Wrappers/CreateWrapper' +import EditWrapper from './Wrappers/EditWrapper' import PublicationsList from './Publications/PublicationsList' import PublicationsTables from './Publications/PublicationsTables' @@ -28,6 +30,8 @@ export { RolesSettings, Extensions, Wrappers, + CreateWrapper, + EditWrapper, PublicationsList, PublicationsTables, BackupsList, diff --git a/studio/components/interfaces/Organization/BillingSettings/BillingEmail.tsx b/studio/components/interfaces/Organization/BillingSettings/BillingEmail.tsx index 052285ce1fa..b9b25b40ede 100644 --- a/studio/components/interfaces/Organization/BillingSettings/BillingEmail.tsx +++ b/studio/components/interfaces/Organization/BillingSettings/BillingEmail.tsx @@ -1,21 +1,19 @@ -import { useContext, useEffect } from 'react' +import { useEffect } from 'react' import { Form, Input } from 'ui' import { PermissionAction } from '@supabase/shared-types/out/constants' -import { useStore, checkPermissions } from 'hooks' +import { useStore, checkPermissions, useParams } from 'hooks' import { API_URL } from 'lib/constants' import { patch } from 'lib/common/fetch' - import { FormActions, FormPanel, FormSection, FormSectionContent } from 'components/ui/Forms' -import { PageContext } from 'pages/org/[slug]/settings' - const BillingEmail = () => { - const { ui } = useStore() - const PageState: any = useContext(PageContext) + const { app, ui } = useStore() + const { slug } = useParams() + const { name, billing_email } = ui.selectedOrganization ?? {} const formId = 'org-billing-email' const initialValues = { - billing_email: PageState.organization?.billing_email ?? '', + billing_email: billing_email ?? '', } const canUpdateOrganization = checkPermissions(PermissionAction.UPDATE, 'organizations') @@ -30,9 +28,9 @@ const BillingEmail = () => { } setSubmitting(true) - const response = await patch(`${API_URL}/organizations/${PageState.organization.slug}`, { + const response = await patch(`${API_URL}/organizations/${slug}`, { ...values, - name: PageState.organization.name, + name, }) if (response.error) { ui.setNotification({ @@ -46,7 +44,7 @@ const BillingEmail = () => { initialValues: { billing_email }, }) - PageState.onOrgUpdated(response) + app.onOrgUpdated(response) ui.setNotification({ category: 'success', message: 'Successfully saved settings', @@ -66,9 +64,9 @@ const BillingEmail = () => { const hasChanges = JSON.stringify(values) !== JSON.stringify(initialValues) useEffect(() => { - const values = { billing_email: PageState.organization?.billing_email ?? '' } + const values = { billing_email: billing_email ?? '' } resetForm({ values, initialValues: values }) - }, [PageState.organization.slug]) + }, [slug]) return ( { + const { app, ui } = useStore() + const { slug } = useParams() -const BillingSettings: FC = ({ organization, projects = [] }) => { - const { ui } = useStore() - const { slug } = organization + const organization = ui.selectedOrganization + const projects = app.projects.list((x: Project) => x.organization_id == organization?.id) || [] const [customer, setCustomer] = useState(null) const [isLoadingCustomer, setIsLoadingCustomer] = useState(false) @@ -122,4 +122,4 @@ const BillingSettings: FC = ({ organization, projects = [] }) => { ) } -export default BillingSettings +export default observer(BillingSettings) diff --git a/studio/components/interfaces/Organization/BillingSettings/PaymentMethods.tsx b/studio/components/interfaces/Organization/BillingSettings/PaymentMethods.tsx index f5675c7620b..fd357010b70 100644 --- a/studio/components/interfaces/Organization/BillingSettings/PaymentMethods.tsx +++ b/studio/components/interfaces/Organization/BillingSettings/PaymentMethods.tsx @@ -14,7 +14,7 @@ import { import * as Tooltip from '@radix-ui/react-tooltip' import { PermissionAction } from '@supabase/shared-types/out/constants' -import { checkPermissions, useStore, useFlag } from 'hooks' +import { checkPermissions, useStore } from 'hooks' import { delete_, patch } from 'lib/common/fetch' import { getURL } from 'lib/helpers' import { API_URL } from 'lib/constants' @@ -39,7 +39,6 @@ const PaymentMethods: FC = ({ }) => { const { ui } = useStore() const orgSlug = ui.selectedOrganization?.slug ?? '' - const isOwner = ui.selectedOrganization?.is_owner const [selectedMethodForDefault, setSelectedMethodForDefault] = useState() const [selectedMethodToDelete, setSelectedMethodToDelete] = useState() @@ -244,7 +243,7 @@ const PaymentMethods: FC = ({ setShowAddPaymentMethodModal(false)} /> diff --git a/studio/components/interfaces/Organization/BillingSettings/ProjectsSummary.tsx b/studio/components/interfaces/Organization/BillingSettings/ProjectsSummary.tsx index 6c9ca17208d..0b2216bcb55 100644 --- a/studio/components/interfaces/Organization/BillingSettings/ProjectsSummary.tsx +++ b/studio/components/interfaces/Organization/BillingSettings/ProjectsSummary.tsx @@ -48,8 +48,8 @@ const ProjectSummary: FC = ({ project }) => { diff --git a/studio/components/interfaces/Organization/GeneralSettings/DeleteOrganizationButton.tsx b/studio/components/interfaces/Organization/GeneralSettings/DeleteOrganizationButton.tsx index 81f7a5608f8..156ae81d3c6 100644 --- a/studio/components/interfaces/Organization/GeneralSettings/DeleteOrganizationButton.tsx +++ b/studio/components/interfaces/Organization/GeneralSettings/DeleteOrganizationButton.tsx @@ -7,14 +7,12 @@ import { PermissionAction } from '@supabase/shared-types/out/constants' import { useStore, checkPermissions } from 'hooks' import { delete_ } from 'lib/common/fetch' import { API_URL } from 'lib/constants' -import { PageContext } from 'pages/org/[slug]/settings' const DeleteOrganizationButton = observer(() => { - const PageState: any = useContext(PageContext) const router = useRouter() - const { ui } = useStore() + const { app, ui } = useStore() - const { slug: orgSlug, name: orgName } = PageState.organization + const { slug: orgSlug, name: orgName } = ui.selectedOrganization || {} const [isOpen, setIsOpen] = useState(false) const [value, setValue] = useState('') @@ -49,7 +47,7 @@ const DeleteOrganizationButton = observer(() => { }) setSubmitting(false) } else { - PageState.onOrgDeleted(PageState.organization) + app.onOrgDeleted(ui.selectedOrganization) setSubmitting(false) router.push('/') ui.setNotification({ @@ -62,7 +60,7 @@ const DeleteOrganizationButton = observer(() => { return ( <>
-
diff --git a/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsx b/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsx index f87ab5c6be4..5910d5043d6 100644 --- a/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsx +++ b/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsx @@ -1,9 +1,9 @@ -import { useContext, useEffect } from 'react' +import { useEffect } from 'react' import { observer } from 'mobx-react-lite' import { Form, Input } from 'ui' import { PermissionAction } from '@supabase/shared-types/out/constants' -import { useStore, checkPermissions } from 'hooks' +import { useStore, checkPermissions, useParams } from 'hooks' import { API_URL } from 'lib/constants' import { patch } from 'lib/common/fetch' @@ -16,14 +16,12 @@ import { FormSectionLabel, } from 'components/ui/Forms' -import { PageContext } from 'pages/org/[slug]/settings' - -const GeneralSettings = observer(() => { - const { ui } = useStore() - const PageState: any = useContext(PageContext) +const GeneralSettings = () => { + const { app, ui } = useStore() + const { slug } = useParams() const formId = 'org-general-settings' - const initialValues = { name: PageState.organization.name } + const initialValues = { name: ui.selectedOrganization?.name ?? '' } const canUpdateOrganization = checkPermissions(PermissionAction.UPDATE, 'organizations') const canDeleteOrganization = checkPermissions(PermissionAction.UPDATE, 'organizations') @@ -37,9 +35,9 @@ const GeneralSettings = observer(() => { setSubmitting(true) - const response = await patch(`${API_URL}/organizations/${PageState.organization.slug}`, { + const response = await patch(`${API_URL}/organizations/${slug}`, { ...values, - billing_email: PageState.organization?.billing_email ?? '', + billing_email: ui.selectedOrganization?.billing_email ?? '', }) if (response.error) { @@ -54,7 +52,7 @@ const GeneralSettings = observer(() => { initialValues: { name }, }) - PageState.onOrgUpdated(response) + app.onOrgUpdated(response) ui.setNotification({ category: 'success', message: 'Successfully saved settings', @@ -70,9 +68,9 @@ const GeneralSettings = observer(() => { const hasChanges = JSON.stringify(values) !== JSON.stringify(initialValues) useEffect(() => { - const values = { name: PageState.organization.name } + const values = { name: ui.selectedOrganization?.name ?? '' } resetForm({ values, initialValues: values }) - }, [PageState.organization.slug]) + }, [ui.selectedOrganization?.slug]) return ( { {canDeleteOrganization && }
) -}) +} -export default GeneralSettings +export default observer(GeneralSettings) diff --git a/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx b/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx index 4bf0b1ede75..a7b6931b604 100644 --- a/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx +++ b/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx @@ -1,4 +1,4 @@ -import { FC, useState, useEffect } from 'react' +import { useState, useEffect } from 'react' import { Button, Loading, IconFileText, IconDownload, IconChevronLeft, IconChevronRight } from 'ui' import { PermissionAction } from '@supabase/shared-types/out/constants' @@ -10,15 +10,9 @@ import NoPermission from 'components/ui/NoPermission' const PAGE_LIMIT = 10 -/** - * Eventually deprecate this - as we move on to show invoices by project on the organization billing page - */ +// Refactor: Split invoices by projects so it's easier for users to identify -interface Props { - organization: any -} - -const InvoicesSettings: FC = ({ organization }) => { +const InvoicesSettings = () => { const { ui } = useStore() const [loading, setLoading] = useState(false) @@ -26,7 +20,7 @@ const InvoicesSettings: FC = ({ organization }) => { const [count, setCount] = useState(0) const [invoices, setInvoices] = useState([]) - const { stripe_customer_id } = organization + const { stripe_customer_id } = ui.selectedOrganization ?? {} const offset = (page - 1) * PAGE_LIMIT const canReadInvoices = checkPermissions(PermissionAction.READ, 'invoices') diff --git a/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx b/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx index 326e1de0ae2..9a01bc28c8f 100644 --- a/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx +++ b/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx @@ -1,16 +1,15 @@ import * as Tooltip from '@radix-ui/react-tooltip' import { PermissionAction } from '@supabase/shared-types/out/constants' import { observer } from 'mobx-react-lite' -import { FC, useContext, useState } from 'react' +import { FC, useState } from 'react' import { Button, Dropdown, IconMoreHorizontal, IconTrash } from 'ui' import { confirmAlert } from 'components/to-be-cleaned/ModalsDeprecated/ConfirmModal' -import { checkPermissions, useOrganizationDetail, useStore } from 'hooks' +import { checkPermissions, useOrganizationDetail, useParams, useStore } from 'hooks' import { delete_, post } from 'lib/common/fetch' import { API_URL } from 'lib/constants' import { Member, Role } from 'types' -import { PageContext } from 'pages/org/[slug]/settings' import { isInviteExpired } from '../Organization.utils' import { getRolesManagementPermissions } from './TeamSettings.utils' @@ -21,12 +20,10 @@ interface Props { } const MemberActions: FC = ({ members, member, roles }) => { - const PageState: any = useContext(PageContext) - const { id, slug, name: orgName } = PageState.organization + const { ui } = useStore() + const { slug } = useParams() const { rolesRemovable } = getRolesManagementPermissions(roles) - - const { app, ui } = useStore() - const { mutateOrgMembers } = useOrganizationDetail(ui.selectedOrganization?.slug || '') + const { mutateOrgMembers } = useOrganizationDetail(slug || '') const [loading, setLoading] = useState(false) @@ -72,35 +69,6 @@ const MemberActions: FC = ({ members, member, roles }) => { }) } - // [Joshen] This will be deprecated after ABAC is fully rolled out - const handleTransferOwnership = async () => { - setLoading(true) - - const response = await post(`${API_URL}/organizations/${slug}/transfer`, { - org_id: id, - member_id: member.id, - }) - if (response.error) { - ui.setNotification({ - category: 'error', - message: `Failed to transfer ownership: ${response.error.message}`, - }) - setLoading(false) - } else { - const updatedMembers = members.map((m: any) => { - if (m.is_owner) return { ...m, is_owner: false } - if (m.id === member.id) return { ...m, is_owner: true } - else return { ...m } - }) - - mutateOrgMembers(updatedMembers) - - ui.setNotification({ category: 'success', message: 'Successfully transferred organization' }) - } - - app.organizations.load() - } - async function handleResendInvite(member: Member) { setLoading(true) diff --git a/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx b/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx index 42fab599ac0..69422a941d9 100644 --- a/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx +++ b/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx @@ -1,11 +1,11 @@ import Image from 'next/image' import * as Tooltip from '@radix-ui/react-tooltip' -import { useState, useContext, Fragment } from 'react' +import { useState, FC, Fragment } from 'react' import { observer } from 'mobx-react-lite' -import { Badge, Button, Loading, Listbox, IconUser, Modal } from 'ui' +import { Badge, Button, Loading, Listbox, IconUser, Modal, IconAlertCircle } from 'ui' import { Member, Role } from 'types' -import { useStore, useOrganizationDetail } from 'hooks' +import { useStore, useOrganizationDetail, useParams } from 'hooks' import { patch } from 'lib/common/fetch' import { API_URL } from 'lib/constants' import { isInviteExpired, getUserDisplayName } from '../Organization.utils' @@ -13,7 +13,6 @@ import { isInviteExpired, getUserDisplayName } from '../Organization.utils' import Table from 'components/to-be-cleaned/Table' import MemberActions from './MemberActions' import RolesHelperModal from './RolesHelperModal/RolesHelperModal' -import { PageContext } from 'pages/org/[slug]/settings' import { getRolesManagementPermissions } from './TeamSettings.utils' interface SelectedMember extends Member { @@ -21,20 +20,42 @@ interface SelectedMember extends Member { newRoleId: number } -const MembersView = () => { - const PageState: any = useContext(PageContext) - const { roles }: { roles: Role[] } = PageState - const { rolesAddable, rolesRemovable } = getRolesManagementPermissions(roles) +interface Props { + roles: Role[] + members: Member[] + searchString: string +} +const MembersView: FC = ({ searchString, roles, members }) => { const { ui } = useStore() - const slug = ui.selectedOrganization?.slug || '' + const { slug } = useParams() - const { mutateOrgMembers } = useOrganizationDetail(slug) + const user = ui.profile + + const { mutateOrgMembers } = useOrganizationDetail(slug ?? '') + const { rolesAddable, rolesRemovable } = getRolesManagementPermissions(roles) const [loading, setLoading] = useState(false) const [selectedMember, setSelectedMember] = useState() const [userRoleChangeModalVisible, setUserRoleChangeModalVisible] = useState(false) + if (!members) return
+ + const filteredMembers = ( + !searchString + ? members + : members.filter((x: any) => { + if (x.invited_at) { + return x.primary_email.includes(searchString) + } + if (x.id || x.gotrue_id) { + return x.username.includes(searchString) || x.primary_email.includes(searchString) + } + }) + ) + .slice() + .sort((a: any, b: any) => a.username.localeCompare(b.username)) + const getRoleNameById = (id: number | undefined) => { if (!roles) return id return roles.find((x: any) => x.id === id)?.name @@ -55,7 +76,7 @@ const MembersView = () => { message: `Failed to update role for ${getUserDisplayName(selectedMember)}`, }) } else { - const updatedMembers = PageState.members.map((member: Member) => { + const updatedMembers = members.map((member: Member) => { if (member.gotrue_id === selectedMember.gotrue_id) { return { ...member, role_ids: [newRoleId] } } else { @@ -76,7 +97,7 @@ const MembersView = () => { return ( <>
- + User, @@ -88,10 +109,10 @@ const MembersView = () => { , ]} body={[ - PageState.filteredMembers.map((x: Member, i: number) => { + ...filteredMembers.map((x: Member, i: number) => { const [memberRoleId] = x.role_ids ?? [] const role = (roles || []).find((role) => role.id === memberRoleId) - const memberIsUser = x.primary_email == PageState.user.primary_email + const memberIsUser = x.primary_email == user?.primary_email const memberIsPendingInvite = !!x.invited_id const canRemoveRole = rolesRemovable.includes(memberRoleId) const disableRoleEdit = !canRemoveRole || memberIsUser || memberIsPendingInvite @@ -216,22 +237,38 @@ const MembersView = () => { {!memberIsUser && ( - + )} ) }), + ...(searchString.length > 0 && filteredMembers.length === 0 + ? [ + + +
+ +

+ No users matched the search query "{searchString}" +

+
+
+
, + ] + : []),

- {PageState.membersFilterString ? `${PageState.filteredMembers.length} of ` : ''} - {PageState.members.length || '0'}{' '} - {PageState.members.length == 1 ? 'user' : 'users'} + {searchString ? `${filteredMembers.length} of ` : ''} + {members.length || '0'} {members.length == 1 ? 'user' : 'users'}

, diff --git a/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.tsx b/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.tsx index c448c0334f3..6c322bf60f3 100644 --- a/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.tsx +++ b/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.tsx @@ -1,22 +1,35 @@ import { FC, Fragment, useState } from 'react' -import { IconCheck, IconHelpCircle, Modal } from 'ui' -import { useFlag } from 'hooks' +import { IconCheck, IconHelpCircle, IconInfo, Modal } from 'ui' import { PERMISSIONS_MAPPING } from './RolesHelperModal.constants' +import * as Tooltip from '@radix-ui/react-tooltip' interface Props {} const RolesHelperModal: FC = ({}) => { const [showModal, setShowModal] = useState(false) - const enableBillingOnlyReadOnlyRoles = useFlag('enableBillingOnlyReadOnlyRoles') - const permissionColumnClassName = [ - `${enableBillingOnlyReadOnlyRoles ? 'w-[40%]' : 'w-[49%]'}`, - 'text-sm pl-4 font-bold', - ].join(' ') - const roleColumnClassName = [ - `${enableBillingOnlyReadOnlyRoles ? 'w-[12%]' : 'w-[17%]'}`, - 'text-sm h-8 flex items-center justify-center border-l border-scale-600 font-bold', - ].join(' ') + const permissionColumnClassName = 'w-[40%] text-sm pl-4 font-bold' + const roleColumnClassName = + 'w-[12%] text-sm h-8 flex items-center justify-center border-l border-scale-600 font-bold' + + const accessTooltip = ( + + + + + + +
+ Only available in Team/Enterprise plan. +
+
+
+ ) return ( <> @@ -30,7 +43,7 @@ const RolesHelperModal: FC = ({}) => { closable hideFooter visible={showModal} - size={enableBillingOnlyReadOnlyRoles ? 'xxlarge' : 'xlarge'} + size={'xxlarge'} header="Permissions for each role" onCancel={() => setShowModal(!showModal)} > @@ -48,12 +61,8 @@ const RolesHelperModal: FC = ({}) => {
Owner
Adminstrator
Developer
- {enableBillingOnlyReadOnlyRoles && ( -
Read-only
- )} - {enableBillingOnlyReadOnlyRoles && ( -
Billing-only
- )} +
Read-only {accessTooltip}
+
Billing-only {accessTooltip}
@@ -77,20 +86,14 @@ const RolesHelperModal: FC = ({}) => {
{action.permissions.developer && }
- {enableBillingOnlyReadOnlyRoles && ( -
- {action.permissions.read_only && ( - - )} -
- )} - {enableBillingOnlyReadOnlyRoles && ( -
- {action.permissions.billing_only && ( - - )} -
- )} +
+ {action.permissions.read_only && } +
+
+ {action.permissions.billing_only && ( + + )} +
))} diff --git a/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx b/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx index 8cd64a7e5b8..e3df3e859c9 100644 --- a/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx +++ b/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx @@ -1,9 +1,9 @@ -import { useState, useContext } from 'react' +import { useState } from 'react' import { observer } from 'mobx-react-lite' import { Button, Input, IconSearch } from 'ui' import * as Tooltip from '@radix-ui/react-tooltip' -import { useStore } from 'hooks' +import { useStore, useFlag, useOrganizationRoles, useOrganizationDetail, useParams } from 'hooks' import { post } from 'lib/common/fetch' import { API_URL } from 'lib/constants' import InviteMemberButton from './InviteMemberButton' @@ -11,26 +11,24 @@ import MembersView from './MembersView' import { getRolesManagementPermissions, hasMultipleOwners } from './TeamSettings.utils' import { confirmAlert } from 'components/to-be-cleaned/ModalsDeprecated/ConfirmModal' -import { PageContext } from 'pages/org/[slug]/settings' - -const TeamSettings = observer(() => { - const PageState: any = useContext(PageContext) - const { user, members, roles } = PageState - const { rolesAddable } = getRolesManagementPermissions(roles) - +const TeamSettings = () => { const { ui } = useStore() - const slug = ui.selectedOrganization?.slug ?? '' + const { slug } = useParams() + + const user = ui.profile const isOwner = ui.selectedOrganization?.is_owner + const { members } = useOrganizationDetail(slug || '') + const { roles } = useOrganizationRoles(slug) + + const { rolesAddable } = getRolesManagementPermissions(roles) + const [isLeaving, setIsLeaving] = useState(false) + const [searchString, setSearchString] = useState('') + const canAddMembers = rolesAddable.length > 0 - const canLeave = !isOwner || (isOwner && hasMultipleOwners(members, roles)) - function onFilterMemberChange(e: any) { - PageState.membersFilterString = e.target.value - } - const leaveTeam = async () => { setIsLeaving(true) try { @@ -63,14 +61,14 @@ const TeamSettings = observer(() => { } size="small" - value={PageState.membersFilterString} - onChange={onFilterMemberChange} + value={searchString} + onChange={(e: any) => setSearchString(e.target.value)} name="email" id="email" placeholder="Filter members" />
- {canAddMembers && ( + {canAddMembers && user !== undefined && (
{
- +
) -}) +} -export default TeamSettings +export default observer(TeamSettings) diff --git a/studio/components/interfaces/Settings/Logs/Logs.constants.ts b/studio/components/interfaces/Settings/Logs/Logs.constants.ts index b3daf72b8de..1ca035dd57f 100644 --- a/studio/components/interfaces/Settings/Logs/Logs.constants.ts +++ b/studio/components/interfaces/Settings/Logs/Logs.constants.ts @@ -1,6 +1,8 @@ import dayjs from 'dayjs' import { DatetimeHelper, FilterTableSet, LogTemplate } from '.' +export const LOGS_EXPLORER_DOCS_URL = "https://supabase.com/docs/guides/platform/logs#querying-with-the-logs-explorer" + export const LOGS_LARGE_DATE_RANGE_DAYS_THRESHOLD = 4 export const TEMPLATES: LogTemplate[] = [ @@ -631,5 +633,6 @@ export const TIER_QUERY_LIMITS: { FREE: { text: '1 day', value: 1, unit: 'day', promptUpgrade: true }, PRO: { text: '7 days', value: 7, unit: 'day', promptUpgrade: true }, PAYG: { text: '90 days', value: 90, unit: 'day', promptUpgrade: false }, + TEAM: { text: '90 days', value: 90, unit: 'day', promptUpgrade: false }, ENTERPRISE: { text: '90 days', value: 90, unit: 'day', promptUpgrade: false }, } diff --git a/studio/components/interfaces/Settings/Logs/Logs.utils.ts b/studio/components/interfaces/Settings/Logs/Logs.utils.ts index c989eba5d64..d039b002740 100644 --- a/studio/components/interfaces/Settings/Logs/Logs.utils.ts +++ b/studio/components/interfaces/Settings/Logs/Logs.utils.ts @@ -173,16 +173,22 @@ export const genSingleLogQuery = (table: LogsTableName, id: string) => */ export const maybeShowUpgradePrompt = ( from: string | null | undefined, - tierKey?: StripeSubscription['tier']["key"] + tierKey?: StripeSubscription['tier']['key'] ) => { const day = Math.abs(dayjs().diff(dayjs(from), 'day')) - return (day > 1 && tierKey === 'FREE') || (day > 7 && tierKey === 'PRO') || day > 90 && tierKey === 'ENTERPRISE' + return ( + (day > 1 && tierKey === 'FREE') || + (day > 7 && tierKey === 'PRO') || + (day > 28 && tierKey === 'TEAM') || + (day > 90 && tierKey === 'ENTERPRISE') + ) } export const genCountQuery = (table: LogsTableName, filters: Filters): string => { const where = _genWhereStatement(table, filters) - return `SELECT count(*) as count FROM ${table} ${where}`} + return `SELECT count(*) as count FROM ${table} ${where}` +} /** calculates how much the chart start datetime should be offset given the current datetime filter params */ export const calcChartStart = (params: Partial): [Dayjs, string] => { @@ -224,10 +230,11 @@ SELECT FROM ${table} t cross join unnest(t.metadata) as metadata - ${where + ${ + where ? where + ` and t.timestamp > '${startOffset.toISOString()}'` : `where t.timestamp > '${startOffset.toISOString()}'` - } + } GROUP BY timestamp ORDER BY diff --git a/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx b/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx index d29400e1a1b..d2b6cfb387c 100644 --- a/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx +++ b/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx @@ -6,6 +6,7 @@ import { EXPLORER_DATEPICKER_HELPERS, LogsTableName, LogsWarning, + LOGS_EXPLORER_DOCS_URL, LOGS_SOURCE_DESCRIPTION, LogTemplate, } from '.' @@ -13,6 +14,7 @@ import DatePickers from './Logs.DatePickers' import Link from 'next/link' import React from 'react' import { checkPermissions, useStore } from 'hooks' +import { IconBookOpen } from '@supabase/ui' interface Props { templates?: LogTemplate[] @@ -130,6 +132,11 @@ const LogsQueryPanel: React.FC = ({
+ + + diff --git a/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx b/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx index efc906ed4c6..f6351377d9d 100644 --- a/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx +++ b/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx @@ -3,6 +3,7 @@ import { Button, Modal } from 'ui' import { TIER_QUERY_LIMITS } from '.' import Link from 'next/link' import { useRouter } from 'next/router' +import { useFlag } from 'hooks' interface Props { show: boolean @@ -13,6 +14,8 @@ const UpgradePrompt: React.FC = ({ show, setShowUpgradePrompt }) => { const router = useRouter() const { ref } = router.query + const teamTierEnabled = useFlag('teamTier') + return ( = ({ show, setShowUpgradePrompt }) => {

Pro

{TIER_QUERY_LIMITS.PRO.text}

+ {teamTierEnabled && ( +
+

Team

+

{TIER_QUERY_LIMITS.TEAM.text}

+
+ )}

Enterprise

{TIER_QUERY_LIMITS.ENTERPRISE.text}

diff --git a/studio/components/interfaces/Settings/ProjectUsageBars/ProjectUsageBars.tsx b/studio/components/interfaces/Settings/ProjectUsageBars/ProjectUsageBars.tsx index cd06e465b3d..a282bae88e9 100644 --- a/studio/components/interfaces/Settings/ProjectUsageBars/ProjectUsageBars.tsx +++ b/studio/components/interfaces/Settings/ProjectUsageBars/ProjectUsageBars.tsx @@ -23,6 +23,7 @@ const ProjectUsage: FC = ({ projectRef }) => { const projectHasNoLimits = subscriptionTier === PRICING_TIER_PRODUCT_IDS.PAYG || + subscriptionTier === PRICING_TIER_PRODUCT_IDS.TEAM || subscriptionTier === PRICING_TIER_PRODUCT_IDS.ENTERPRISE const showUsageExceedMessage = subscriptionTier !== undefined && !projectHasNoLimits @@ -31,6 +32,7 @@ const ProjectUsage: FC = ({ projectRef }) => { [PRICING_TIER_PRODUCT_IDS.FREE]: 'Free', [PRICING_TIER_PRODUCT_IDS.PRO]: 'Pro', [PRICING_TIER_PRODUCT_IDS.PAYG]: 'Pro', + [PRICING_TIER_PRODUCT_IDS.TEAM]: 'Team', [PRICING_TIER_PRODUCT_IDS.ENTERPRISE]: 'Enterprise', } diff --git a/studio/components/interfaces/Settings/ProjectUsageBars/ProjectUsageMinimal.tsx b/studio/components/interfaces/Settings/ProjectUsageBars/ProjectUsageMinimal.tsx index b541753edb0..aba20873737 100644 --- a/studio/components/interfaces/Settings/ProjectUsageBars/ProjectUsageMinimal.tsx +++ b/studio/components/interfaces/Settings/ProjectUsageBars/ProjectUsageMinimal.tsx @@ -20,7 +20,8 @@ const ProjectUsageMinimal: FC = ({ projectRef, filter if ( subscription?.tier?.supabase_prod_id === PRICING_TIER_PRODUCT_IDS.PAYG || - subscription?.tier.supabase_prod_id === PRICING_TIER_PRODUCT_IDS.ENTERPRISE + subscription?.tier.supabase_prod_id === PRICING_TIER_PRODUCT_IDS.ENTERPRISE || + subscription?.tier.supabase_prod_id === PRICING_TIER_PRODUCT_IDS.TEAM ) { return <> } diff --git a/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeySelector.tsx b/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeySelector.tsx index ab630a29074..ed7ff29132d 100644 --- a/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeySelector.tsx +++ b/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeySelector.tsx @@ -48,11 +48,7 @@ const EncryptionKeySelector: FC = ({ {keys.length > 0 && } {keys.map((key) => ( - +

{key.name || 'No name provided'}

diff --git a/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeysManagement.tsx b/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeysManagement.tsx index 423cfcb3775..876805da8a1 100644 --- a/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeysManagement.tsx +++ b/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeysManagement.tsx @@ -1,6 +1,6 @@ import dayjs from 'dayjs' +import Link from 'next/link' import { observer } from 'mobx-react-lite' -import * as Tooltip from '@radix-ui/react-tooltip' import { FC, Fragment, useEffect, useState } from 'react' import { Alert, @@ -15,6 +15,7 @@ import { IconKey, IconLoader, IconX, + IconExternalLink, } from 'ui' import { useParams, useStore } from 'hooks' import Divider from 'components/ui/Divider' @@ -134,9 +135,18 @@ const EncryptionKeysManagement: FC = ({}) => {

- +
+ + + + + + +
{/* Table of keys */} @@ -153,7 +163,7 @@ const EncryptionKeysManagement: FC = ({}) => {
-
+

= ({}) => { ID: {key.id}

-
- {key.name === 'default_vault_key' && Default} -

Added on {dayjs(key.created).format('MMM D, YYYY')}

- - -
{idx !== keys.length - 1 && } @@ -208,7 +195,7 @@ const EncryptionKeysManagement: FC = ({}) => { {searchValue.length === 0 ? (

No encryption keys added yet

-

+

Encryption keys are created by the pgsodium extension and can be used to encrypt your columns and secrets

diff --git a/studio/components/interfaces/Settings/Vault/Secrets/AddNewSecretModal.tsx b/studio/components/interfaces/Settings/Vault/Secrets/AddNewSecretModal.tsx index 9bd0d3a7f8a..363b18bbaa6 100644 --- a/studio/components/interfaces/Settings/Vault/Secrets/AddNewSecretModal.tsx +++ b/studio/components/interfaces/Settings/Vault/Secrets/AddNewSecretModal.tsx @@ -16,12 +16,11 @@ const AddNewSecretModal: FC = ({ visible, onClose }) => { const [selectedKeyId, setSelectedKeyId] = useState() const keys = vault.listKeys() - const defaultKey = keys.find((key) => key.name === 'default_vault_key') || keys[0] useEffect(() => { if (visible) { setShowSecretValue(false) - setSelectedKeyId(defaultKey?.id) + setSelectedKeyId(keys[0]?.id ?? 'create-new') } }, [visible]) @@ -38,7 +37,7 @@ const AddNewSecretModal: FC = ({ visible, onClose }) => { setSubmitting(true) let encryptionKeyId = selectedKeyId - if (values.keyId === 'create-new') { + if (selectedKeyId === 'create-new') { const addKeyRes = await vault.addKey(values.keyName || undefined) if (addKeyRes.error) { return ui.setNotification({ @@ -127,18 +126,18 @@ const AddNewSecretModal: FC = ({ visible, onClose }) => { /> } - url="asd" + url="https://supabase.com/docs/guides/database/vault" urlLabel="Vault documentation" title="What is a key?" description={

- Every secret in the Vault is encrypted with a key. The Vault comes with a - default value for this key which is sufficient for simple purposes. + Keys are used to encrypt data inside your database, and every secret in + the Vault is encrypted with a key.

- However, you may also use a custom key for more advanced use cases, such - as having different secrets visible to different users + You may create different keys for different purposes, such as one for + encrypting user data, and another for application data.

} diff --git a/studio/components/interfaces/Settings/Vault/Secrets/EditSecretModal.tsx b/studio/components/interfaces/Settings/Vault/Secrets/EditSecretModal.tsx index d089a2f4a33..f958330b5d2 100644 --- a/studio/components/interfaces/Settings/Vault/Secrets/EditSecretModal.tsx +++ b/studio/components/interfaces/Settings/Vault/Secrets/EditSecretModal.tsx @@ -161,7 +161,7 @@ const EditSecretModal: FC = ({ selectedSecret, onClose }) => {
-
- +
+ + + + + + +
{/* Table of secrets */} diff --git a/studio/components/interfaces/Support/SupportForm.tsx b/studio/components/interfaces/Support/SupportForm.tsx index f0dbaf22e0a..5b910242968 100644 --- a/studio/components/interfaces/Support/SupportForm.tsx +++ b/studio/components/interfaces/Support/SupportForm.tsx @@ -59,6 +59,7 @@ const SupportForm: FC = ({ setSentCategory }) => { [PRICING_TIER_PRODUCT_IDS.FREE]: 'Free', [PRICING_TIER_PRODUCT_IDS.PRO]: 'Pro', [PRICING_TIER_PRODUCT_IDS.PAYG]: 'Pro', + [PRICING_TIER_PRODUCT_IDS.TEAM]: 'Team', [PRICING_TIER_PRODUCT_IDS.ENTERPRISE]: 'Enterprise', } diff --git a/studio/components/layouts/AccountLayout/AccountLayout.tsx b/studio/components/layouts/AccountLayout/AccountLayout.tsx index 76cfacfab2e..10ddf248e05 100644 --- a/studio/components/layouts/AccountLayout/AccountLayout.tsx +++ b/studio/components/layouts/AccountLayout/AccountLayout.tsx @@ -37,7 +37,7 @@ const AccountLayout: FC = ({ children, title, breadcrumbs }) => { isActive: router.pathname.startsWith('/org/') && ui.selectedOrganization?.slug === organization.slug, label: organization.name, - href: `/org/${organization.slug}/settings`, + href: `/org/${organization.slug}/general`, key: organization.slug, })) .sort((a, b) => a.label.localeCompare(b.label)) diff --git a/studio/components/layouts/DatabaseLayout/DatabaseLayout.tsx b/studio/components/layouts/DatabaseLayout/DatabaseLayout.tsx index a157fa2ce78..8c9165684ba 100644 --- a/studio/components/layouts/DatabaseLayout/DatabaseLayout.tsx +++ b/studio/components/layouts/DatabaseLayout/DatabaseLayout.tsx @@ -14,7 +14,7 @@ interface Props { } const DatabaseLayout: FC = ({ title, children }) => { - const { meta, ui, backups } = useStore() + const { meta, ui, vault, backups } = useStore() const { isInitialized, isLoading, error } = meta.tables const project = ui.selectedProject @@ -35,6 +35,7 @@ const DatabaseLayout: FC = ({ title, children }) => { meta.publications.load() backups.load() + vault.load() } }, [ui.selectedProject?.ref]) diff --git a/studio/components/layouts/OrganizationLayout.tsx b/studio/components/layouts/OrganizationLayout.tsx new file mode 100644 index 00000000000..0b323386d03 --- /dev/null +++ b/studio/components/layouts/OrganizationLayout.tsx @@ -0,0 +1,23 @@ +import { useStore } from 'hooks' +import { observer } from 'mobx-react-lite' +import { FC, ReactNode } from 'react' +import { AccountLayout } from './' + +interface Props { + children: ReactNode +} + +const OrganizationLayout: FC = ({ children }) => { + const { ui } = useStore() + + return ( + + {children} + + ) +} + +export default observer(OrganizationLayout) diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx index e2ced0a184f..7a747d206d3 100644 --- a/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx +++ b/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx @@ -23,7 +23,8 @@ const LayoutHeader = ({ customHeaderComponents, breadcrumbs = [], headerBorder = const resourcesExceededLimits = getResourcesExceededLimits(usage) const projectHasNoLimits = ui.selectedProject?.subscription_tier === PRICING_TIER_PRODUCT_IDS.PAYG || - ui.selectedProject?.subscription_tier === PRICING_TIER_PRODUCT_IDS.ENTERPRISE + ui.selectedProject?.subscription_tier === PRICING_TIER_PRODUCT_IDS.ENTERPRISE || + ui.selectedProject?.subscription_tier === PRICING_TIER_PRODUCT_IDS.TEAM const showOverUsageBadge = selectedProject?.subscription_tier !== undefined && !projectHasNoLimits && diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/OrgDropdown.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/OrgDropdown.tsx index 852ba2367c6..40eb7e50fc7 100644 --- a/studio/components/layouts/ProjectLayout/LayoutHeader/OrgDropdown.tsx +++ b/studio/components/layouts/ProjectLayout/LayoutHeader/OrgDropdown.tsx @@ -40,7 +40,7 @@ const OrgDropdown = () => { } router.push({ - pathname: `/org/[slug]/settings`, + pathname: `/org/[slug]/general`, query: { slug }, hash: router.asPath.split('#')[1]?.toLowerCase(), }) diff --git a/studio/components/layouts/ReportsLayout/ReportsLayout.tsx b/studio/components/layouts/ReportsLayout/ReportsLayout.tsx index 3de10ebade9..6baddb56a35 100644 --- a/studio/components/layouts/ReportsLayout/ReportsLayout.tsx +++ b/studio/components/layouts/ReportsLayout/ReportsLayout.tsx @@ -12,9 +12,9 @@ interface ReportsLayoutProps { const ReportsLayout = ({ title, children }: PropsWithChildren) => { const { ui } = useStore() - const project = ui.selectedProject - const router = useRouter() + + const project = ui.selectedProject const page = router.pathname.split('/')[4] || '' return ( diff --git a/studio/components/layouts/index.ts b/studio/components/layouts/index.ts index d0a687bffbf..7c64f282032 100644 --- a/studio/components/layouts/index.ts +++ b/studio/components/layouts/index.ts @@ -15,6 +15,8 @@ import { WizardLayoutWithoutAuth } from './WizardLayout' import VercelIntegrationLayout from './VercelIntegrationLayout' import BillingLayout from './BillingLayout' import LogsLayout from './LogsLayout/LogsLayout' +import ReportsLayout from './ReportsLayout/ReportsLayout' +import OrganizationLayout from './OrganizationLayout' export { ProjectLayoutWithAuth, @@ -34,6 +36,8 @@ export { VercelIntegrationLayout, BillingLayout, LogsLayout, + ReportsLayout, + OrganizationLayout, } export default ProjectLayout diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeader.js b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeader.tsx similarity index 83% rename from studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeader.js rename to studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeader.tsx index ad57ec629c1..e4ab9f3e40e 100644 --- a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeader.js +++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeader.tsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect, useCallback, useRef } from 'react' +import { FC, useState, useEffect, useCallback, useRef } from 'react' import { compact, debounce, isEqual } from 'lodash' import { Button, @@ -19,9 +19,9 @@ import { IconList, } from 'ui' import { useStorageStore } from 'localStores/storageExplorer/StorageExplorerStore' -import { STORAGE_VIEWS, STORAGE_SORT_BY, STORAGE_SORT_BY_ORDER } from '../Storage.constants.ts' +import { STORAGE_VIEWS, STORAGE_SORT_BY, STORAGE_SORT_BY_ORDER } from '../Storage.constants' -const HeaderPathEdit = ({ loading, breadcrumbs, togglePathEdit }) => { +const HeaderPathEdit = ({ loading, breadcrumbs, togglePathEdit }: any) => { return (
{ ) } -const HeaderBreadcrumbs = ({ loading, breadcrumbs, selectBreadcrumb }) => { +const HeaderBreadcrumbs = ({ loading, breadcrumbs, selectBreadcrumb }: any) => { // Max 5 crumbs, otherwise replace middle segment with ellipsis and only // have the first 2 and last 2 crumbs visible const ellipsis = '...' - const breadcrumbsWithIndexes = breadcrumbs.map((name, index) => { + const breadcrumbsWithIndexes = breadcrumbs.map((name: string, index: number) => { return { name, index } }) @@ -74,7 +74,7 @@ const HeaderBreadcrumbs = ({ loading, breadcrumbs, selectBreadcrumb }) => {
) : (
- {formattedBreadcrumbs.map((crumb, idx) => ( + {formattedBreadcrumbs.map((crumb: any, idx: number) => (
{idx !== 0 && }

{ ) } -const FileExplorerHeader = ({ - view = STORAGE_VIEWS.COLUMNS, - sortBy = STORAGE_SORT_BY.NAME, - sortByOrder = STORAGE_SORT_BY_ORDER.ASC, - loading = {}, - breadcrumbs = [], - backDisabled = false, - isSearching = false, +interface Props { + isSearching: boolean + itemSearchString: string + setIsSearching: (value: boolean) => void + setItemSearchString: (value: string) => void + onFilesUpload: (event: any, columnIndex: number) => void +} + +const FileExplorerHeader: FC = ({ itemSearchString = '', setItemSearchString = () => {}, - onSetPathByString = () => {}, - onChangeView = () => {}, - onChangeSortBy = () => {}, - onChangeSortByOrder = () => {}, - onToggleSearch = () => {}, onFilesUpload = () => {}, - onSelectBack = () => {}, - onSelectCreateFolder = () => {}, - onSelectBreadcrumb = () => {}, }) => { const debounceDuration = 300 - const [isEditingPath, setIsEditingPath] = useState(false) - const [isRefreshing, setIsRefreshing] = useState(false) const [pathString, setPathString] = useState('') const [searchString, setSearchString] = useState('') + const [loading, setLoading] = useState({ isLoading: false, message: '' }) - const uploadButtonRef = useRef(null) - const previousBreadcrumbs = useRef(null) + const [isEditingPath, setIsEditingPath] = useState(false) + const [isRefreshing, setIsRefreshing] = useState(false) + const [isSearching, setIsSearching] = useState(false) + + const uploadButtonRef: any = useRef(null) + const previousBreadcrumbs: any = useRef(null) const storageExplorerStore = useStorageStore() - const { refetchAllOpenedFolders } = storageExplorerStore + const { + view, + setView, + columns, + sortBy, + setSortBy, + sortByOrder, + setSortByOrder, + popColumn, + popColumnAtIndex, + popOpenedFolders, + fetchFoldersByPath, + refetchAllOpenedFolders, + addNewFolderPlaceholder, + clearOpenedFolders, + closeFilePreview, + } = storageExplorerStore + + const breadcrumbs = columns.map((column: any) => column.name) + const backDisabled = columns.length <= 1 useEffect(() => { if (itemSearchString) setSearchString(itemSearchString) @@ -137,11 +152,18 @@ const FileExplorerHeader = ({ }, [breadcrumbs]) const searchInputHandler = useCallback(debounce(setItemSearchString, debounceDuration), []) - const onSearchInputUpdate = (event) => { + const onSearchInputUpdate = (event: any) => { setSearchString(event.target.value) + // @ts-ignore searchInputHandler(event.target.value) } + const onSelectBack = () => { + popColumn() + popOpenedFolders() + closeFilePreview() + } + const onSelectUpload = () => { if (uploadButtonRef.current) { uploadButtonRef.current.click() @@ -155,11 +177,11 @@ const FileExplorerHeader = ({ if (isSearching) onCancelSearch() } - const onUpdatePathString = (event) => { + const onUpdatePathString = (event: any) => { setPathString(event.target.value) } - const navigateByPathString = (event) => { + const navigateByPathString = (event: any) => { if (event) { event.preventDefault() event.stopPropagation() @@ -168,6 +190,19 @@ const FileExplorerHeader = ({ onSetPathByString(compact(pathString.split('/'))) } + const onSetPathByString = async (paths: any[]) => { + if (paths.length === 0) { + popColumnAtIndex(0) + clearOpenedFolders() + closeFilePreview() + } else { + const pathString = paths.join('/') + setLoading({ isLoading: true, message: `Navigating to ${pathString}...` }) + await fetchFoldersByPath(paths) + setLoading({ isLoading: false, message: '' }) + } + } + const cancelSetPathString = () => { setIsEditingPath(false) } @@ -177,17 +212,19 @@ const FileExplorerHeader = ({ // Searching for column view requires much more thinking const toggleSearch = () => { setIsEditingPath(false) - onToggleSearch(true) + setIsSearching(true) } + const onCancelSearch = () => { setSearchString('') - onToggleSearch(false) + setIsSearching(false) + setItemSearchString('') } /** Methods for breadcrumbs */ - const selectBreadcrumb = (columnIndex) => { - onSelectBreadcrumb(columnIndex) + const selectBreadcrumb = (columnIndex: number) => { + popColumnAtIndex(columnIndex) } const refreshData = async () => { @@ -278,7 +315,7 @@ const FileExplorerHeader = ({ + Columns List , @@ -295,14 +332,14 @@ const FileExplorerHeader = ({ } type="text" disabled={breadcrumbs.length === 0} - onChange={onChangeView} + onChange={setView} > View as + Name Time created Time modified @@ -326,7 +363,7 @@ const FileExplorerHeader = ({ Ascending Descending @@ -352,6 +389,7 @@ const FileExplorerHeader = ({

+ {/* @ts-ignore */}
@@ -381,7 +419,7 @@ const FileExplorerHeader = ({ } actions={[ {}, - onSelectItemsDelete = () => {}, - onSelectItemsMove = () => {}, - onUnselectAllItems = () => {}, -}) => { +const FileExplorerHeaderSelection = () => { + const storageExplorerStore = useStorageStore() + const { + selectedItems, + downloadFile, + downloadSelectedFiles, + clearSelectedItems, + setSelectedItemsToDelete, + setSelectedItemsToMove, + } = storageExplorerStore + return (
@@ -34,7 +44,7 @@ const FileExplorerHeaderSelection = ({ icon={} type="primary" shadow={false} - onClick={onSelectItemsDelete} + onClick={() => setSelectedItemsToDelete(selectedItems)} > Delete @@ -42,7 +52,7 @@ const FileExplorerHeaderSelection = ({ icon={} type="primary" shadow={false} - onClick={onSelectItemsMove} + onClick={() => setSelectedItemsToMove(selectedItems)} > Move diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.js b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.js index efc6aa48d98..6712cc90e09 100644 --- a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.js +++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.js @@ -26,6 +26,7 @@ import { CONTEXT_MENU_KEYS, } from '../Storage.constants.ts' import { formatBytes } from 'lib/helpers' +import { useStorageStore } from 'localStores/storageExplorer/StorageExplorerStore' const RowIcon = ({ view, status, fileType, mimeType }) => { if (view === STORAGE_VIEWS.LIST && status === STORAGE_ROW_STATUS.LOADING) { @@ -85,6 +86,9 @@ const FileExplorerRow = ({ onSelectItemRename = () => {}, onSelectItemMove = () => {}, }) => { + const storageExplorerStore = useStorageStore() + const { downloadFolder } = storageExplorerStore + const itemWithColumnIndex = { ...item, columnIndex } const isSelected = find(selectedItems, item) !== undefined const isOpened = @@ -146,8 +150,22 @@ const FileExplorerRow = ({ ? [{ name: 'Delete', onClick: () => onSelectItemDelete(itemWithColumnIndex) }] : item.type === STORAGE_ROW_TYPES.FOLDER ? [ - { name: 'Rename', onClick: () => onSelectItemRename(itemWithColumnIndex) }, - { name: 'Delete', onClick: () => onSelectItemDelete(itemWithColumnIndex) }, + { + name: 'Rename', + icon: , + onClick: () => onSelectItemRename(itemWithColumnIndex), + }, + { + name: 'Download', + icon: , + onClick: () => downloadFolder(itemWithColumnIndex), + }, + { name: 'Separator' }, + { + name: 'Delete', + icon: , + onClick: () => onSelectItemDelete(itemWithColumnIndex), + }, ] : [ ...(!item.isCorrupted diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/FolderContextMenu.js b/studio/components/to-be-cleaned/Storage/StorageExplorer/FolderContextMenu.js index 01d6629c32c..72d6ae9951b 100644 --- a/studio/components/to-be-cleaned/Storage/StorageExplorer/FolderContextMenu.js +++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/FolderContextMenu.js @@ -1,10 +1,15 @@ +import { useStorageStore } from 'localStores/storageExplorer/StorageExplorerStore' import { Menu, Item } from 'react-contexify' import 'react-contexify/dist/ReactContexify.css' const FolderContextMenu = ({ id = '', onRenameFolder = () => {}, onDeleteFolder = () => {} }) => { + const storageExplorerStore = useStorageStore() + const { downloadFolder } = storageExplorerStore + return ( onRenameFolder(props.item)}>Rename + downloadFolder(props.item)}>Download onDeleteFolder(props.item)}>Delete ) diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.js b/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsx similarity index 90% rename from studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.js rename to studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsx index 38b05a2c691..49066467eae 100644 --- a/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.js +++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsx @@ -1,3 +1,4 @@ +import { isEmpty } from 'lodash' import { Button, IconX, @@ -11,13 +12,13 @@ import SVG from 'react-inlinesvg' import { formatBytes } from 'lib/helpers' import { Transition } from '@headlessui/react' import Link from 'next/link' +import { useStorageStore } from 'localStores/storageExplorer/StorageExplorerStore' -const PreviewFile = ({ mimeType, previewUrl }) => { +const PreviewFile = ({ mimeType, previewUrl }: { mimeType: string; previewUrl: string }) => { if (!mimeType || !previewUrl) { return ( code.replace(/svg/, 'svg class="mx-auto w-32 h-32 text-color-inherit opacity-75"') } @@ -36,7 +37,6 @@ const PreviewFile = ({ mimeType, previewUrl }) => {
code.replace(/svg/, 'svg class="mx-auto w-32 h-32 text-color-inherit opacity-75"') } @@ -80,7 +80,6 @@ const PreviewFile = ({ mimeType, previewUrl }) => { return ( code.replace(/svg/, 'svg class="mx-auto w-32 h-32 text-color-inherit opacity-75"') } @@ -88,14 +87,17 @@ const PreviewFile = ({ mimeType, previewUrl }) => { ) } -const PreviewPane = ({ - isOpen = false, - file = {}, - width = 400, - onCopyFileURL = () => {}, - onSelectFileDelete = () => {}, - onClosePreviewPane = () => {}, -}) => { +const PreviewPane = () => { + const storageExplorerStore = useStorageStore() + const { + selectedFilePreview: file, + copyFileURLToClipboard, + closeFilePreview, + setSelectedItemsToDelete, + } = storageExplorerStore + + const width = 450 + const isOpen = !isEmpty(file) const size = file.metadata ? formatBytes(file.metadata.size) : null const mimeType = file.metadata ? file.metadata.mimetype : null const createdAt = file.created_at ? new Date(file.created_at).toLocaleString() : 'Unknown' @@ -123,7 +125,7 @@ const PreviewPane = ({ className="cursor-pointer" size={14} strokeWidth={2} - onClick={onClosePreviewPane} + onClick={() => closeFilePreview()} />
@@ -182,7 +184,7 @@ const PreviewPane = ({ diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/StorageExplorer.js b/studio/components/to-be-cleaned/Storage/StorageExplorer/StorageExplorer.js index 831b5cfc906..23da2ae932e 100644 --- a/studio/components/to-be-cleaned/Storage/StorageExplorer/StorageExplorer.js +++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/StorageExplorer.js @@ -27,10 +27,7 @@ const StorageExplorer = observer(({ bucket }) => { clearSelectedItemsToDelete, openedFolders, pushOpenedFolderAtIndex, - clearOpenedFolders, - popColumn, popColumnAtIndex, - popOpenedFolders, popOpenedFoldersAtIndex, setSelectedItemToRename, selectedItemsToMove, @@ -38,9 +35,7 @@ const StorageExplorer = observer(({ bucket }) => { clearSelectedItemsToMove, view, setView, - sortBy, setSortBy, - sortByOrder, setSortByOrder, currentBucketName, copyFileURLToClipboard, @@ -51,27 +46,22 @@ const StorageExplorer = observer(({ bucket }) => { addNewFolder, fetchFolderContents, fetchMoreFolderContents, - fetchFoldersByPath, renameFolder, deleteFolder, uploadFiles, deleteFiles, downloadFile, - downloadSelectedFiles, renameFile, moveFiles, } = storageExplorerStore const storageExplorerRef = useRef(null) - const [loading, setLoading] = useState({ isLoading: false, message: '' }) // This state exists outside of the header because FileExplorerColumn needs to listen to these as well // I'm keeping them outside of the mobx store as I feel that the store should contain persistent data // Things like showing results from a search filter is "temporary", hence we use react state to manage - const [isSearching, setIsSearching] = useState(false) const [itemSearchString, setItemSearchString] = useState('') - const previewPaneWidth = 450 // Requires a fixed height to ensure that explorer is constrained to the viewport const fileExplorerHeight = window.innerHeight - 122 @@ -121,24 +111,12 @@ const StorageExplorer = observer(({ bucket }) => { const onSelectFolder = async (columnIndex, folder) => { closeFilePreview() + clearSelectedItems(columnIndex + 1) popOpenedFoldersAtIndex(columnIndex - 1) pushOpenedFolderAtIndex(folder, columnIndex) await fetchFolderContents(folder.id, folder.name, columnIndex) } - const onSetPathByString = async (paths) => { - if (paths.length === 0) { - popColumnAtIndex(0) - clearOpenedFolders() - closeFilePreview() - } else { - const pathString = paths.join('/') - setLoading({ isLoading: true, message: `Navigating to ${pathString}...` }) - await fetchFoldersByPath(paths) - setLoading({ isLoading: false, message: '' }) - } - } - /** Checkbox selection methods */ /** [Joshen] We'll only support checkbox selection for files ONLY */ @@ -152,9 +130,11 @@ const StorageExplorer = observer(({ bucket }) => { } const onSelectAllItemsInColumn = (columnIndex) => { - const columnFiles = columns[columnIndex].items.filter( - (item) => item.type === STORAGE_ROW_TYPES.FILE - ) + const columnFiles = columns[columnIndex].items + .filter((item) => item.type === STORAGE_ROW_TYPES.FILE) + .map((item) => { + return { ...item, columnIndex } + }) const columnFilesId = compact(columnFiles.map((item) => item.id)) const selectedItemsFromColumn = selectedItems.filter((item) => columnFilesId.includes(item.id)) @@ -183,10 +163,6 @@ const StorageExplorer = observer(({ bucket }) => { renameFolder(folder, newName, columnIndex) } - const onSelectItemsDelete = () => { - setSelectedItemsToDelete(selectedItems) - } - const onSelectItemDelete = (file) => { setSelectedItemsToDelete([file]) } @@ -195,18 +171,10 @@ const StorageExplorer = observer(({ bucket }) => { setSelectedItemToRename(file) } - const onSelectItemsMove = () => { - setSelectedItemsToMove(selectedItems) - } - const onSelectItemMove = (file) => { setSelectedItemsToMove([file]) } - const onSelectItemsDownload = async () => { - await downloadSelectedFiles() - } - const onCopyFileURL = async (file) => { await copyFileURLToClipboard(file) } @@ -250,17 +218,6 @@ const StorageExplorer = observer(({ bucket }) => { } /** Misc UI methods */ - - const onSelectBack = () => { - popColumn() - popOpenedFolders() - closeFilePreview() - } - - const onSelectBreadcrumb = (columnIndex) => { - popColumnAtIndex(columnIndex) - } - const onSelectColumnEmptySpace = (columnIndex) => { popColumnAtIndex(columnIndex) popOpenedFoldersAtIndex(columnIndex - 1) @@ -274,13 +231,6 @@ const StorageExplorer = observer(({ bucket }) => { const onChangeSortByOrder = (sortByOrder) => setSortByOrder(sortByOrder) - const onToggleSearch = (bool) => { - setIsSearching(bool) - if (bool === false) { - setItemSearchString('') - } - } - return (
{ > {selectedItems.length === 0 ? ( column.name)} - backDisabled={columns.length <= 1} - isSearching={isSearching} itemSearchString={itemSearchString} setItemSearchString={setItemSearchString} - onChangeView={onChangeView} - onChangeSortBy={onChangeSortBy} - onChangeSortByOrder={onChangeSortByOrder} - onToggleSearch={onToggleSearch} onFilesUpload={onFilesUpload} - onSelectBack={onSelectBack} - onSelectCreateFolder={onSelectCreateFolder} - onSetPathByString={onSetPathByString} - onSelectBreadcrumb={onSelectBreadcrumb} /> ) : ( - + )}
{ fetchMoreFolderContents(index, column, itemSearchString) } /> - +
0} diff --git a/studio/components/ui/OveragesBanner/OveragesBanner.tsx b/studio/components/ui/OveragesBanner/OveragesBanner.tsx index d12517d9ad8..56430ff1155 100644 --- a/studio/components/ui/OveragesBanner/OveragesBanner.tsx +++ b/studio/components/ui/OveragesBanner/OveragesBanner.tsx @@ -30,7 +30,8 @@ const OveragesBanner: FC = ({ tier, minimal }) => { error || (!isApproachingUsageLimits && !isOverUsageLimits) || tier === PRICING_TIER_PRODUCT_IDS.PAYG || - tier === PRICING_TIER_PRODUCT_IDS.ENTERPRISE + tier === PRICING_TIER_PRODUCT_IDS.ENTERPRISE || + tier === PRICING_TIER_PRODUCT_IDS.TEAM ) { return <> } diff --git a/studio/data/__templates/README.md b/studio/data/__templates/README.md new file mode 100644 index 00000000000..05a0cabfb4f --- /dev/null +++ b/studio/data/__templates/README.md @@ -0,0 +1,49 @@ +# Templates for Tanstack Query queries & mutations + +## Usage + +1. Duplicate the files in the \_\_templates directory you need depending on your use case. +2. Rename the files to match your resource name. +3. Update the `resource` variables to match your resource name. Usually find and replace works great here if you use case sensitive search (`resource` then `Resource`) +4. Implement your `queryFn` function. + +Referencing the other files in the `data` directory is a good way to see how to use the library. + +### SQL queries and mutations + +The dashboard often needs to query the users database directly. There are already some reusable hooks for this in `data/sql`. Reference the `data/fdw` directory for an example of how to use them. + +Note that the query key of the `useExecuteSqlQuery` hook will be automatically filled with an md5 hash of the SQL query, unless you provide a name for the query. + +## Files + +### `resources-query.ts` + +For queries that return a list of results. + +> :warning: Should only be used for simple lists, as it does not include any pagination. `useInfiniteQuery` should be used instead. + +### `resource-query.ts` + +For getting a single item based on parameter(s). `id` is used in this example but can be updated to whatever is needed. + +### `resource-update-mutation.ts` + +For updating a resource. This can easily be adapted to work for create, delete, or any verb that is needed. You may need to modify the `invalidateQueries` section depending on your use case. For example removing: + +```ts +queryClient.invalidateQueries(resourceKeys.resource(projectRef, id)) +``` + +if you are creating a new resource. + +### `keys.ts` + +Standardized keys for use with `useQuery` and `invalidateQueries`. This is not required but is a good way to keep things consistent. + +## Learning Resources + +- [Tanstack Query Docs](https://tanstack.com/query/v4/docs/react/overview) +- [TkDodo's Blog Posts](https://tanstack.com/query/v4/docs/react/community/tkdodos-blog) + +The blog posts in particular are very helpful for learning best practices and how to use the library effectively. diff --git a/studio/data/__templates/keys.ts b/studio/data/__templates/keys.ts new file mode 100644 index 00000000000..fa363702862 --- /dev/null +++ b/studio/data/__templates/keys.ts @@ -0,0 +1,5 @@ +export const resourceKeys = { + list: (projectRef: string | undefined) => ['projects', projectRef, 'resources'] as const, + resource: (projectRef: string | undefined, id: string | undefined) => + ['projects', projectRef, 'resources', id] as const, +} diff --git a/studio/data/__templates/resource-query.ts b/studio/data/__templates/resource-query.ts new file mode 100644 index 00000000000..4c91e063b3a --- /dev/null +++ b/studio/data/__templates/resource-query.ts @@ -0,0 +1,60 @@ +import { useQuery, useQueryClient, UseQueryOptions } from '@tanstack/react-query' +import { get } from 'lib/common/fetch' +import { API_URL } from 'lib/constants' +import { useCallback } from 'react' +import { resourceKeys } from './keys' + +export type ResourceVariables = { + projectRef?: string + id?: string +} + +export type ResourceResponse = { + id: string +} + +export async function getResource({ projectRef, id }: ResourceVariables, signal?: AbortSignal) { + if (!projectRef) { + throw new Error('projectRef is required') + } + if (!id) { + throw new Error('id is required') + } + + const response = await get(`${API_URL}/projects/${projectRef}/resources/${id}`, { + signal, + }) + if (response.error) { + throw response.error + } + + return response as ResourceResponse +} + +export type ResourceData = Awaited> +export type ResourceError = unknown + +export const useResourceQuery = ( + { projectRef, id }: ResourceVariables, + { enabled = true, ...options }: UseQueryOptions = {} +) => + useQuery( + resourceKeys.resource(projectRef, id), + ({ signal }) => getResource({ projectRef, id }, signal), + { + enabled: enabled && typeof projectRef !== 'undefined' && typeof id !== 'undefined', + ...options, + } + ) + +export const useResourcePrefetch = ({ projectRef, id }: ResourceVariables) => { + const client = useQueryClient() + + return useCallback(() => { + if (projectRef && id) { + client.prefetchQuery(resourceKeys.resource(projectRef, id), ({ signal }) => + getResource({ projectRef, id }, signal) + ) + } + }, [projectRef]) +} diff --git a/studio/data/__templates/resource-update-mutation.ts b/studio/data/__templates/resource-update-mutation.ts new file mode 100644 index 00000000000..b1d6d2ba099 --- /dev/null +++ b/studio/data/__templates/resource-update-mutation.ts @@ -0,0 +1,50 @@ +import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query' +import { patch } from 'lib/common/fetch' +import { API_URL } from 'lib/constants' +import { resourceKeys } from './keys' + +export type ResourceUpdateVariables = { + projectRef: string + id: string + updatedParam: string +} + +export async function updateResource({ projectRef, id, updatedParam }: ResourceUpdateVariables) { + const response = await patch(`${API_URL}/projects/${projectRef}/resources/${id}`, { + updated_param: updatedParam, + }) + if (response.error) { + throw response.error + } + + return response +} + +type ResourceUpdateData = Awaited> + +export const useResourceUpdateMutation = ({ + onSuccess, + ...options +}: Omit< + UseMutationOptions, + 'mutationFn' +> = {}) => { + const queryClient = useQueryClient() + + return useMutation( + (vars) => updateResource(vars), + { + async onSuccess(data, variables, context) { + const { projectRef, id } = variables + + await Promise.all([ + queryClient.invalidateQueries(resourceKeys.list(projectRef)), + queryClient.invalidateQueries(resourceKeys.resource(projectRef, id)), + ]) + + await onSuccess?.(data, variables, context) + }, + ...options, + } + ) +} diff --git a/studio/data/__templates/resources-query.ts b/studio/data/__templates/resources-query.ts new file mode 100644 index 00000000000..9ff95df37f7 --- /dev/null +++ b/studio/data/__templates/resources-query.ts @@ -0,0 +1,53 @@ +import { useQuery, useQueryClient, UseQueryOptions } from '@tanstack/react-query' +import { get } from 'lib/common/fetch' +import { API_URL } from 'lib/constants' +import { useCallback } from 'react' +import { resourceKeys } from './keys' + +export type ResourcesVariables = { + projectRef?: string +} + +export type ResourcesResponse = { + id: string +} + +export async function getResources({ projectRef }: ResourcesVariables, signal?: AbortSignal) { + if (!projectRef) { + throw new Error('projectRef is required') + } + + const response = await get(`${API_URL}/projects/${projectRef}/resources`, { + signal, + }) + if (response.error) { + throw response.error + } + + return response as ResourcesResponse[] +} + +export type ResourcesData = Awaited> +export type ResourcesError = unknown + +export const useResourcesQuery = ( + { projectRef }: ResourcesVariables, + { enabled = true, ...options }: UseQueryOptions = {} +) => + useQuery( + resourceKeys.list(projectRef), + ({ signal }) => getResources({ projectRef }, signal), + { enabled: enabled && typeof projectRef !== 'undefined', ...options } + ) + +export const useResourcesPrefetch = ({ projectRef }: ResourcesVariables) => { + const client = useQueryClient() + + return useCallback(() => { + if (projectRef) { + client.prefetchQuery(resourceKeys.list(projectRef), ({ signal }) => + getResources({ projectRef }, signal) + ) + } + }, [projectRef]) +} diff --git a/studio/data/fdw/fdw-create-mutation.ts b/studio/data/fdw/fdw-create-mutation.ts index f42a81f2d4d..5ebd1fb6893 100644 --- a/studio/data/fdw/fdw-create-mutation.ts +++ b/studio/data/fdw/fdw-create-mutation.ts @@ -1,40 +1,44 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query' -import { AvailableColumn, Wrapper } from 'components/interfaces/Database/Wrappers/Wrappers.types' +import { + AvailableColumn, + WrapperMeta, +} from 'components/interfaces/Database/Wrappers/Wrappers.types' import { executeSql } from 'data/sql/execute-sql-query' import { sqlKeys } from 'data/sql/keys' +import { wrapWithTransaction } from 'data/sql/utils/transaction' import { useStore } from 'hooks' export type FDWCreateVariables = { projectRef?: string connectionString?: string - wrapper: Wrapper + wrapperMeta: WrapperMeta formState: { [k: string]: string } - newTables: any[] + tables: any[] } -export function getFDWCreateSql({ - wrapper, +export function getCreateFDWSql({ + wrapperMeta, formState, - newTables, -}: Pick) { - const newSchemasSql = newTables + tables, +}: Pick) { + const newSchemasSql = tables .filter((table) => table.is_new_schema) .map((table) => /* SQL */ `create schema if not exists ${table.schema_name};`) .join('\n') const createWrapperSql = /* SQL */ ` - create foreign data wrapper ${wrapper.name} - handler ${wrapper.handlerName} - validator ${wrapper.validatorName}; + create foreign data wrapper ${formState.wrapper_name} + handler ${wrapperMeta.handlerName} + validator ${wrapperMeta.validatorName}; ` - const encryptedOptions = wrapper.server.options.filter((option) => option.encrypted) - const unencryptedOptions = wrapper.server.options.filter((option) => !option.encrypted) + const encryptedOptions = wrapperMeta.server.options.filter((option) => option.encrypted) + const unencryptedOptions = wrapperMeta.server.options.filter((option) => !option.encrypted) const createEncryptedKeysSqlArray = encryptedOptions.map((option) => { - const key = `${wrapper.name}_${option.name}` + const key = `${formState.wrapper_name}_${option.name}` // Escape single quotes in postgresql by doubling them up const value = (formState[option.name] || '').replace(/'/g, "''") @@ -67,13 +71,13 @@ export function getFDWCreateSql({ ${encryptedOptions .map( (option) => - /* SQL */ `select id into v_${option.name} from pgsodium.valid_key where name = '${wrapper.name}_${option.name}' limit 1;` + /* SQL */ `select id into v_${option.name} from pgsodium.valid_key where name = '${formState.wrapper_name}_${option.name}' limit 1;` ) .join('\n')} execute format( - E'create server ${wrapper.server.name}\\n' - ' foreign data wrapper ${wrapper.name}\\n' + E'create server ${formState.server_name}\\n' + ' foreign data wrapper ${formState.wrapper_name}\\n' ' options (\\n' ' ${optionsSqlArray}\\n' ' );', @@ -82,9 +86,9 @@ export function getFDWCreateSql({ end $$; ` - const createTablesSql = newTables + const createTablesSql = tables .map((newTable) => { - const table = wrapper.tables[newTable.index] + const table = wrapperMeta.tables[newTable.index] const columns: AvailableColumn[] = newTable.columns .map((name: string) => table.availableColumns.find((c) => c.name === name)) @@ -94,7 +98,7 @@ export function getFDWCreateSql({ create foreign table ${newTable.schema_name}.${newTable.table_name} ( ${columns.map((column) => `${column.name} ${column.type}`).join(',\n ')} ) - server ${wrapper.server.name} + server ${formState.server_name} options ( ${Object.entries(newTable) .filter( @@ -112,8 +116,6 @@ export function getFDWCreateSql({ .join('\n\n') const sql = /* SQL */ ` - begin; - ${newSchemasSql} ${createWrapperSql} @@ -123,8 +125,6 @@ export function getFDWCreateSql({ ${createServerSql} ${createTablesSql} - - commit; ` return sql @@ -133,11 +133,11 @@ export function getFDWCreateSql({ export async function createFDW({ projectRef, connectionString, - wrapper, + wrapperMeta, formState, - newTables, + tables, }: FDWCreateVariables) { - const sql = getFDWCreateSql({ wrapper, formState, newTables }) + const sql = wrapWithTransaction(getCreateFDWSql({ wrapperMeta, formState, tables })) const { result } = await executeSql({ projectRef, connectionString, sql }) @@ -158,7 +158,7 @@ export const useFDWCreateMutation = ({ const { projectRef } = variables await Promise.all([ - queryClient.invalidateQueries(sqlKeys.query(projectRef, ['fdws'])), + queryClient.invalidateQueries(sqlKeys.query(projectRef, ['fdws']), { refetchType: 'all' }), vault.load(), ]) diff --git a/studio/data/fdw/fdw-delete-mutation.ts b/studio/data/fdw/fdw-delete-mutation.ts index 8ecc603a853..d3183fa1fe7 100644 --- a/studio/data/fdw/fdw-delete-mutation.ts +++ b/studio/data/fdw/fdw-delete-mutation.ts @@ -1,17 +1,23 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query' -import { Wrapper } from 'components/interfaces/Database/Wrappers/Wrappers.types' +import { WrapperMeta } from 'components/interfaces/Database/Wrappers/Wrappers.types' import { executeSql } from 'data/sql/execute-sql-query' import { sqlKeys } from 'data/sql/keys' +import { wrapWithTransaction } from 'data/sql/utils/transaction' import { useStore } from 'hooks' +import { FDW } from './fdws-query' export type FDWDeleteVariables = { projectRef?: string connectionString?: string - wrapper: Wrapper + wrapper: FDW + wrapperMeta: WrapperMeta } -export const getDeleteFDWSql = ({ wrapper }: Pick) => { - const encryptedOptions = wrapper.server.options.filter((option) => option.encrypted) +export const getDeleteFDWSql = ({ + wrapper, + wrapperMeta, +}: Pick) => { + const encryptedOptions = wrapperMeta.server.options.filter((option) => option.encrypted) const deleteEncryptedSecretsSqlArray = encryptedOptions.map((option) => { const key = `${wrapper.name}_${option.name}` @@ -26,24 +32,25 @@ export const getDeleteFDWSql = ({ wrapper }: Pick const deleteEncryptedSecretsSql = deleteEncryptedSecretsSqlArray.join('\n') const sql = /* SQL */ ` - begin; - drop foreign data wrapper if exists ${wrapper.name} cascade; ${deleteEncryptedSecretsSql} - - commit; ` return sql } -export async function deleteFDW({ projectRef, connectionString, wrapper }: FDWDeleteVariables) { +export async function deleteFDW({ + projectRef, + connectionString, + wrapper, + wrapperMeta, +}: FDWDeleteVariables) { if (!projectRef) { throw new Error('projectRef is required') } - const sql = getDeleteFDWSql({ wrapper }) + const sql = wrapWithTransaction(getDeleteFDWSql({ wrapper, wrapperMeta })) const { result } = await executeSql({ projectRef, connectionString, sql }) diff --git a/studio/data/fdw/fdw-update-mutation.ts b/studio/data/fdw/fdw-update-mutation.ts new file mode 100644 index 00000000000..8e7df030945 --- /dev/null +++ b/studio/data/fdw/fdw-update-mutation.ts @@ -0,0 +1,81 @@ +import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query' +import { WrapperMeta } from 'components/interfaces/Database/Wrappers/Wrappers.types' +import { executeSql } from 'data/sql/execute-sql-query' +import { sqlKeys } from 'data/sql/keys' +import { wrapWithTransaction } from 'data/sql/utils/transaction' +import { useStore } from 'hooks' +import { getCreateFDWSql } from './fdw-create-mutation' +import { getDeleteFDWSql } from './fdw-delete-mutation' +import { FDW } from './fdws-query' + +export type FDWUpdateVariables = { + projectRef?: string + connectionString?: string + wrapper: FDW + wrapperMeta: WrapperMeta + formState: { + [k: string]: string + } + tables: any[] +} + +export const getUpdateFDWSql = ({ + wrapper, + wrapperMeta, + formState, + tables, +}: Pick) => { + const deleteWrapperSql = getDeleteFDWSql({ wrapper, wrapperMeta }) + const createWrapperSql = getCreateFDWSql({ wrapperMeta, formState, tables }) + + const sql = /* SQL */ ` + ${deleteWrapperSql} + + ${createWrapperSql} + ` + + return sql +} + +export async function updateFDW({ + projectRef, + connectionString, + wrapper, + wrapperMeta, + formState, + tables, +}: FDWUpdateVariables) { + if (!projectRef) { + throw new Error('projectRef is required') + } + + const sql = wrapWithTransaction(getUpdateFDWSql({ wrapper, wrapperMeta, formState, tables })) + + const { result } = await executeSql({ projectRef, connectionString, sql }) + + return result +} + +type FDWUpdateData = Awaited> + +export const useFDWUpdateMutation = ({ + onSuccess, + ...options +}: Omit, 'mutationFn'> = {}) => { + const queryClient = useQueryClient() + const { vault } = useStore() + + return useMutation((vars) => updateFDW(vars), { + async onSuccess(data, variables, context) { + const { projectRef } = variables + + await Promise.all([ + queryClient.invalidateQueries(sqlKeys.query(projectRef, ['fdws'])), + vault.load(), + ]) + + await onSuccess?.(data, variables, context) + }, + ...options, + }) +} diff --git a/studio/data/fdw/fdws-query.ts b/studio/data/fdw/fdws-query.ts index c2ba531dcd4..0208805de29 100644 --- a/studio/data/fdw/fdws-query.ts +++ b/studio/data/fdw/fdws-query.ts @@ -5,11 +5,15 @@ export const getFDWsSql = () => { const sql = /* SQL */ ` select s.oid as "id", - s.srvname as "name", + w.fdwname as "name", + s.srvname as "server_name", + s.srvoptions as "server_options", + c.proname as "handler", ( select jsonb_agg( jsonb_build_object( - 'id', c.oid, + 'id', c.oid::bigint, + 'schema', relnamespace::regnamespace::text, 'name', c.relname, 'columns', ( select jsonb_agg( @@ -20,13 +24,17 @@ export const getFDWsSql = () => { ) from pg_catalog.pg_attribute a where a.attrelid = c.oid and a.attnum > 0 and not a.attisdropped - ) + ), + 'options', t.ftoptions ) ) from pg_catalog.pg_class c + join pg_catalog.pg_foreign_table t on c.oid = t.ftrelid where c.oid = any (select t.ftrelid from pg_catalog.pg_foreign_table t where t.ftserver = s.oid) ) as "tables" - from pg_catalog.pg_foreign_server s; + from pg_catalog.pg_foreign_server s + join pg_catalog.pg_foreign_data_wrapper w on s.srvfdw = w.oid + join pg_catalog.pg_proc c on w.fdwhandler = c.oid; ` return sql @@ -40,12 +48,17 @@ export type FDWColumn = { export type FDWTable = { id: string name: string + schema: string columns: FDWColumn[] + options: string[] } export type FDW = { - id: string + id: number name: string + handler: string + server_name: string + server_options: string[] tables: FDWTable[] } diff --git a/studio/data/sql/utils/transaction.ts b/studio/data/sql/utils/transaction.ts new file mode 100644 index 00000000000..36fa24b2571 --- /dev/null +++ b/studio/data/sql/utils/transaction.ts @@ -0,0 +1,9 @@ +export function wrapWithTransaction(sql: string) { + return /* SQL */ ` + begin; + + ${sql} + + commit; + ` +} diff --git a/studio/hooks/index.ts b/studio/hooks/index.ts index 53628ed64e5..587af606a57 100644 --- a/studio/hooks/index.ts +++ b/studio/hooks/index.ts @@ -1,6 +1,7 @@ export * from './misc/useStore' export * from './misc/withAuth' export * from './misc/useOptimisticSqlSnippetCreate' +export * from './misc/useImmutableValue' export * from './misc/useNotifications' export * from './misc/usePlatformStatus' export * from './misc/useParams' diff --git a/studio/hooks/misc/useImmutableValue.tsx b/studio/hooks/misc/useImmutableValue.tsx new file mode 100644 index 00000000000..433e0099fef --- /dev/null +++ b/studio/hooks/misc/useImmutableValue.tsx @@ -0,0 +1,14 @@ +import { useRef } from 'react' + +/** + * Once a non-undefined value is passed, it will never change. + */ +export function useImmutableValue(value: T | undefined): T | undefined { + const ref = useRef(value) + + if (!ref.current && value) { + ref.current = value + } + + return ref.current +} diff --git a/studio/hooks/queries/index.ts b/studio/hooks/queries/index.ts index b93e9618493..4582c19b2fb 100644 --- a/studio/hooks/queries/index.ts +++ b/studio/hooks/queries/index.ts @@ -7,6 +7,5 @@ export * from './useProfile' export * from './useProjectAuthConfig' export * from './useProjectSettings' export * from './useProjectSubscription' -export * from './useSubscriptionStats' export * from './useProjectUsage' export * from './useProjectPostgrestConfig' diff --git a/studio/hooks/queries/useSubscriptionStats.ts b/studio/hooks/queries/useSubscriptionStats.ts deleted file mode 100644 index e109b160077..00000000000 --- a/studio/hooks/queries/useSubscriptionStats.ts +++ /dev/null @@ -1,29 +0,0 @@ -import useSWR, { mutate } from 'swr' -import { get } from 'lib/common/fetch' -import { API_URL } from 'lib/constants' - -export interface SubscriptionStats { - total_paid_projects: number - total_free_projects: number - total_active_free_projects: number - total_paused_free_projects: number - total_pro_projects: number - total_payg_projects: number -} - -export function useSubscriptionStats() { - const url = `${API_URL}/profile/subscriptions` - const { data, error } = useSWR(url, get) - const anyError = data?.error || error - - return { - total_paid_projects: data?.total_paid_projects ?? 0, - total_free_projects: data?.total_free_projects ?? 0, - total_active_free_projects: data?.total_active_free_projects ?? 0, - total_paused_free_projects: data?.total_paused_free_projects ?? 0, - total_pro_projects: data?.total_pro_projects ?? 0, - total_payg_projects: data?.total_payg_projects ?? 0, - isLoading: !anyError && !data, - isError: !!anyError, - } -} diff --git a/studio/lib/constants/infrastructure.ts b/studio/lib/constants/infrastructure.ts index 827aac12039..5c4e675ec05 100644 --- a/studio/lib/constants/infrastructure.ts +++ b/studio/lib/constants/infrastructure.ts @@ -30,6 +30,7 @@ export const PRICING_TIER_PRODUCT_IDS = { FREE: 'tier_free', PRO: 'tier_pro', PAYG: 'tier_payg', + TEAM: 'tier_team', ENTERPRISE: 'tier_enterprise', } @@ -112,6 +113,7 @@ export const STRIPE_PRODUCT_IDS: { [x: string]: string } = { FREE: process?.env?.NEXT_PUBLIC_STRIPE_FREE_TIER_ID || 'prod_Ip4vqwv3EJ7Mi0', PRO: process?.env?.NEXT_PUBLIC_STRIPE_PRO_TIER_ID || 'prod_IsRLOp58Z7V4XN', PAYG: process?.env?.NEXT_PUBLIC_STRIPE_PAYG_TIER_ID || 'prod_JlTbw91xcM6NY4', + TEAM: process?.env?.NEXT_PUBLIC_STRIPE_TEAM_TIER_ID || 'prod_MeUrsWN6pj0oXM', } export const DEFAULT_MINIMUM_PASSWORD_STRENGTH = 4 diff --git a/studio/localStores/storageExplorer/StorageExplorerStore.js b/studio/localStores/storageExplorer/StorageExplorerStore.js index c51f28e87f1..5e11d3c234c 100644 --- a/studio/localStores/storageExplorer/StorageExplorerStore.js +++ b/studio/localStores/storageExplorer/StorageExplorerStore.js @@ -1,31 +1,20 @@ +import toast from 'react-hot-toast' import { createContext, useContext } from 'react' import { makeAutoObservable } from 'mobx' -import { - find, - compact, - isEqual, - isNull, - isNil, - isUndefined, - has, - some, - chunk, - get, - uniq, -} from 'lodash' -import toast from 'react-hot-toast' +import { find, compact, isEqual, isNil, has, some, chunk, get, uniq } from 'lodash' +import { BlobReader, BlobWriter, ZipWriter } from '@zip.js/zip.js' import { createClient } from '@supabase/supabase-js' -import { useStore } from 'hooks' +import { useStore } from 'hooks' +import { copyToClipboard } from 'lib/helpers' +import { IS_PLATFORM } from 'lib/constants' +import { PROJECT_ENDPOINT_PROTOCOL } from 'pages/api/constants' import { STORAGE_VIEWS, STORAGE_ROW_TYPES, STORAGE_ROW_STATUS, STORAGE_SORT_BY, } from 'components/to-be-cleaned/Storage/Storage.constants.ts' -import { copyToClipboard } from 'lib/helpers' -import { IS_PLATFORM } from 'lib/constants' -import { PROJECT_ENDPOINT_PROTOCOL } from 'pages/api/constants' /** * This is a preferred method rather than React Context and useStorageExplorerStore(). @@ -50,7 +39,6 @@ const LIMIT = 200 const OFFSET = 0 const DEFAULT_EXPIRY = 10 * 365 * 24 * 60 * 60 // in seconds, default to 1 year const PREVIEW_SIZE_LIMIT = 10000000 // 10MB -// const BATCH_SIZE = 10 const BATCH_SIZE = 2 const EMPTY_FOLDER_PLACEHOLDER_FILE_NAME = '.emptyFolderPlaceholder' const STORAGE_PROGRESS_INFO_TEXT = "Please do not close the browser until it's completed" @@ -288,8 +276,12 @@ class StorageExplorerStore { this.selectedItems = items } - clearSelectedItems = () => { - this.selectedItems = [] + clearSelectedItems = (columnIndex) => { + if (columnIndex !== undefined) { + this.selectedItems = this.selectedItems.filter((item) => item.columnIndex !== columnIndex) + } else { + this.selectedItems = [] + } } setSelectedItemsToDelete = (items) => { @@ -319,10 +311,8 @@ class StorageExplorerStore { addNewFolder = async (folderName, columnIndex) => { const autofix = false const formattedName = this.sanitizeNameForDuplicateInColumn(folderName, autofix, columnIndex) + if (formattedName === null) return - if (isNull(formattedName)) { - return - } /** * todo: move this to a util file, as renameFolder() uses same logic */ @@ -374,7 +364,7 @@ class StorageExplorerStore { const fetchedAt = get(cachedPreview, ['fetchedAt'], null) const expiresIn = get(cachedPreview, ['expiresIn'], null) - const existsInCache = !isNull(fetchedAt) && !isNull(expiresIn) + const existsInCache = fetchedAt !== null && expiresIn !== null const isExpired = existsInCache ? fetchedAt + expiresIn * 1000 < Date.now() : true if (!isExpired) { @@ -556,7 +546,10 @@ class StorageExplorerStore { // https://stackoverflow.com/a/53058574 getFilesDataTransferItems = async (items) => { - const toastId = toast.loading('Retrieving items to upload...') + const toastId = this.ui.setNotification({ + category: 'loading', + message: 'Retrieving items to upload...', + }) const files = [] const queue = [] for (const item of items) { @@ -566,7 +559,7 @@ class StorageExplorerStore { const entry = queue.shift() || {} if (entry.isFile) { const file = await this.getFile(entry) - if (!isUndefined(file)) { + if (file !== undefined) { file.path = entry.fullPath.slice(1) files.push(file) } @@ -637,9 +630,9 @@ class StorageExplorerStore { return file }) - const uploadedTopLevelFolders = [] this.uploadProgress = 0 - let numberOfFilesToUpload = formattedFilesToUpload.length + const uploadedTopLevelFolders = [] + const numberOfFilesToUpload = formattedFilesToUpload.length let numberOfFilesUploadedSuccess = 0 let numberOfFilesUploadedFail = 0 @@ -746,28 +739,34 @@ class StorageExplorerStore { if (numberOfFilesToUpload === 0) { toast.dismiss(toastId) } else if (numberOfFilesUploadedFail === numberOfFilesToUpload) { - toast.error( - `Failed to upload ${numberOfFilesToUpload} file${numberOfFilesToUpload > 1 ? 's' : ''}!`, - { id: toastId } - ) + this.ui.setNotification({ + id: toastId, + category: 'error', + message: `Failed to upload ${numberOfFilesToUpload} file${ + numberOfFilesToUpload > 1 ? 's' : '' + }!`, + }) } else if (numberOfFilesUploadedSuccess === numberOfFilesToUpload) { - toast.success( - `Successfully uploaded ${numberOfFilesToUpload} file${ + this.ui.setNotification({ + id: toastId, + category: 'success', + message: `Successfully uploaded ${numberOfFilesToUpload} file${ numberOfFilesToUpload > 1 ? 's' : '' }!`, - { id: toastId } - ) + }) } else { - toast.success( - `Successfully uploaded ${numberOfFilesUploadedSuccess} out of ${numberOfFilesToUpload} file${ + this.ui.setNotification({ + id: toastId, + category: 'success', + message: `Successfully uploaded ${numberOfFilesUploadedSuccess} out of ${numberOfFilesToUpload} file${ numberOfFilesToUpload > 1 ? 's' : '' }!`, - { id: toastId } - ) + }) } } catch (e) { - console.error(e) this.ui.setNotification({ + id: toastId, + error: e, message: 'Failed to upload files', category: 'error', }) @@ -943,33 +942,153 @@ class StorageExplorerStore { } } - downloadSelectedFiles = async () => { - const showIndividualToast = false - const toastId = toast.loading(`Retrieving ${this.selectedItems.length} files...`, { - autoClose: false, - hideProgressBar: true, + downloadFolder = async (folder) => { + let progress = 0 + const toastId = this.ui.setNotification({ + category: 'loading', + message: 'Retrieving files from folder...', }) - const res = await Promise.all( - this.selectedItems.map(async (item) => await this.downloadFile(item, showIndividualToast)) - ) - - const numberOfSuccessfullyDownloadedFiles = res.filter((x) => x === true).length - toast.success(`Downloaded ${numberOfSuccessfullyDownloadedFiles} files`, { + const files = await this.getAllItemsAlongFolder(folder) + this.ui.setNotification({ id: toastId, + category: 'loading', + message: `Downloading ${files.length} files...`, + description: STORAGE_PROGRESS_INFO_TEXT, + progress: 0, + }) + + const promises = files.map((file) => { + const fileMimeType = file.metadata?.mimetype ?? null + return () => { + return new Promise(async (resolve) => { + const { data, error } = await this.supabaseClient.storage + .from(this.selectedBucket.name) + .download(`${file.prefix}/${file.name}`) + + progress = progress + 1 / files.length + + if (!error) { + resolve({ + name: file.name, + prefix: file.prefix, + blob: new Blob([data], { type: fileMimeType }), + }) + } else { + resolve(false) + } + }) + } + }) + + const batchedPromises = chunk(promises, 10) + const downloadedFiles = await batchedPromises.reduce(async (previousPromise, nextBatch) => { + const previousResults = await previousPromise + const batchResults = await Promise.allSettled(nextBatch.map((batch) => batch())) + this.ui.setNotification({ + id: toastId, + category: 'loading', + message: `Downloading ${files.length} file${files.length > 1 ? 's' : ''}...`, + description: STORAGE_PROGRESS_INFO_TEXT, + progress: progress * 100, + }) + return (previousResults ?? []).concat(batchResults.map((x) => x.value).filter(Boolean)) + }, Promise.resolve()) + + const zipFileWriter = new BlobWriter('application/zip') + const zipWriter = new ZipWriter(zipFileWriter, { bufferedWrite: true }) + downloadedFiles.forEach((file) => { + zipWriter.add(`${file.prefix}/${file.name}`, new BlobReader(file.blob)) + }) + + const blobURL = URL.createObjectURL(await zipWriter.close()) + const link = document.createElement('a') + link.href = blobURL + link.setAttribute('download', `${folder.name}.zip`) + document.body.appendChild(link) + link.click() + link.parentNode.removeChild(link) + + this.ui.setNotification({ + id: toastId, + category: 'success', + message: `Successfully downloaded folder "${folder.name}"`, }) } - downloadFile = async (file, showToast = true) => { - let toastId + downloadSelectedFiles = async (files) => { + const lowestColumnIndex = Math.min(...files.map((file) => file.columnIndex)) + + const formattedFilesWithPrefix = files.map((file) => { + const { name, columnIndex } = file + const pathToFile = this.openedFolders + .slice(lowestColumnIndex, columnIndex) + .map((folder) => folder.name) + .join('/') + const formattedPathToFile = pathToFile.length > 0 ? `${pathToFile}/${name}` : name + return { ...file, formattedPathToFile } + }) + + let progress = 0 + const returnBlob = true + const showIndividualToast = false + const toastId = this.ui.setNotification({ + category: 'loading', + message: `Downloading ${files.length} files...`, + }) + + const promises = formattedFilesWithPrefix.map((file) => { + return () => { + return new Promise(async (resolve) => { + const data = await this.downloadFile(file, showIndividualToast, returnBlob) + progress = progress + 1 / formattedFilesWithPrefix.length + resolve({ ...data, name: file.formattedPathToFile }) + }) + } + }) + + const batchedPromises = chunk(promises, 10) + const downloadedFiles = await batchedPromises.reduce(async (previousPromise, nextBatch) => { + const previousResults = await previousPromise + const batchResults = await Promise.allSettled(nextBatch.map((batch) => batch())) + this.ui.setNotification({ + id: toastId, + category: 'loading', + message: `Downloading ${files.length} file${files.length > 1 ? 's' : ''}...`, + description: STORAGE_PROGRESS_INFO_TEXT, + progress: progress * 100, + }) + return (previousResults ?? []).concat(batchResults.map((x) => x.value).filter(Boolean)) + }, Promise.resolve()) + + const zipFileWriter = new BlobWriter('application/zip') + const zipWriter = new ZipWriter(zipFileWriter, { bufferedWrite: true }) + downloadedFiles.forEach((file) => { + zipWriter.add(file.name, new BlobReader(file.blob)) + }) + + const blobURL = URL.createObjectURL(await zipWriter.close()) + const link = document.createElement('a') + link.href = blobURL + link.setAttribute('download', `supabase-files.zip`) + document.body.appendChild(link) + link.click() + link.parentNode.removeChild(link) + + this.ui.setNotification({ + id: toastId, + category: 'success', + message: `Successfully downloaded ${downloadedFiles.length} files`, + }) + } + + downloadFile = async (file, showToast = true, returnBlob = false) => { const fileName = file.name const fileMimeType = get(file, ['metadata', 'mimetype'], null) - if (showToast) { - toastId = toast.loading(`Retrieving ${fileName}...`, { - autoClose: false, - }) - } + const toastId = showToast + ? this.ui.setNotification({ category: 'loading', message: `Retrieving ${fileName}...` }) + : undefined const pathToFile = this.openedFolders .slice(0, file.columnIndex) @@ -984,8 +1103,10 @@ class StorageExplorerStore { if (!error) { const blob = data const newBlob = new Blob([blob], { type: fileMimeType }) - const blobUrl = window.URL.createObjectURL(newBlob) + if (returnBlob) return { name: fileName, blob: newBlob } + + const blobUrl = window.URL.createObjectURL(newBlob) const link = document.createElement('a') link.href = blobUrl link.setAttribute('download', `${fileName}`) @@ -994,16 +1115,20 @@ class StorageExplorerStore { link.parentNode.removeChild(link) window.URL.revokeObjectURL(blob) if (toastId) { - toast.success(`Downloading ${fileName}`, { + this.ui.setNotification({ id: toastId, + category: 'success', + message: `Downloading ${fileName}`, }) } return true } else { - console.error('Failed to download:', fileName) if (toastId) { - toast.error(`Failed to download ${fileName}`, { + this.ui.setNotification({ + error, id: toastId, + category: 'error', + message: `Failed to download ${fileName}`, }) } return false @@ -1333,7 +1458,7 @@ class StorageExplorerStore { let formattedPathToFolder = '' const { name, columnIndex, prefix } = folder - if (isUndefined(prefix)) { + if (prefix === undefined) { const pathToFolder = this.openedFolders .slice(0, columnIndex) .map((folder) => folder.name) @@ -1361,8 +1486,8 @@ class StorageExplorerStore { } } - const subfolders = folderContents?.filter((item) => isNull(item.id)) ?? [] - const folderItems = folderContents?.filter((item) => !isNull(item.id)) ?? [] + const subfolders = folderContents?.filter((item) => item.id === null) ?? [] + const folderItems = folderContents?.filter((item) => item.id !== null) ?? [] folderItems.forEach((item) => items.push({ ...item, prefix: formattedPathToFolder })) diff --git a/studio/next.config.js b/studio/next.config.js index b5a58721745..2a78210b5b7 100644 --- a/studio/next.config.js +++ b/studio/next.config.js @@ -115,6 +115,11 @@ const nextConfig = { destination: '/project/:ref/logs/explorer', permanent: true, }, + { + source: '/org/:slug/settings', + destination: '/org/:slug/general', + permanent: true, + }, ] }, async headers() { diff --git a/studio/package.json b/studio/package.json index e35239fa471..c4792cb5292 100644 --- a/studio/package.json +++ b/studio/package.json @@ -30,8 +30,9 @@ "@supabase/react-data-grid": "^7.1.0-beta.7", "@supabase/shared-types": "^0.1.29", "@supabase/supabase-js": "^2.1.1", - "@tanstack/react-query": "^4.16.1", - "@tanstack/react-query-devtools": "^4.16.1", + "@tanstack/react-query": "^4.22.0", + "@tanstack/react-query-devtools": "^4.22.0", + "@zip.js/zip.js": "^2.6.61", "ajv": "^8.6.3", "analytics-node": "^3.5.0", "awesome-debounce-promise": "^2.1.0", diff --git a/studio/pages/api/props/org/[slug].tsx b/studio/pages/api/props/org/[slug].tsx index 3f56758edeb..f0b13bf1b61 100644 --- a/studio/pages/api/props/org/[slug].tsx +++ b/studio/pages/api/props/org/[slug].tsx @@ -1,6 +1,5 @@ import { NextApiRequest, NextApiResponse } from 'next' import apiWrapper from 'lib/api/apiWrapper' -import { Member } from 'types' export default (req: NextApiRequest, res: NextApiResponse) => apiWrapper(req, res, handler) @@ -27,6 +26,7 @@ const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => { total_paid_projects: 0, total_free_projects: 0, total_pro_projects: 0, + total_team_projects: 0, total_payg_projects: 0, }, } diff --git a/studio/pages/new/[slug].tsx b/studio/pages/new/[slug].tsx index 0578455f4f4..fb677f75a92 100644 --- a/studio/pages/new/[slug].tsx +++ b/studio/pages/new/[slug].tsx @@ -25,7 +25,6 @@ import { useStore, useFlag, withAuth, - useSubscriptionStats, checkPermissions, useFreeProjectLimitCheck, } from 'hooks' @@ -47,7 +46,6 @@ const Wizard: NextPageWithLayout = () => { const projectCreationDisabled = useFlag('disableProjectCreationAndUpdate') const kpsEnabled = useFlag('initWithKps') - const subscriptionStats = useSubscriptionStats() const { membersExceededLimit, isLoading: isLoadingFreeProjectLimitCheck } = useFreeProjectLimitCheck(slug as string) @@ -74,10 +72,7 @@ const Wizard: NextPageWithLayout = () => { const hasMembersExceedingFreeTierLimit = (membersExceededLimit || []).length > 0 const canCreateProject = - isAdmin && - !subscriptionStats.isError && - !subscriptionStats.isLoading && - (!isSelectFreeTier || (isSelectFreeTier && !hasMembersExceedingFreeTierLimit)) + isAdmin && (!isSelectFreeTier || (isSelectFreeTier && !hasMembersExceedingFreeTierLimit)) const canSubmit = projectName !== '' && @@ -204,7 +199,6 @@ const Wizard: NextPageWithLayout = () => { hideHeaderStyling loading={ !app.organizations.isInitialized || - subscriptionStats.isLoading || isLoadingFreeProjectLimitCheck } title={ diff --git a/studio/pages/org/[slug]/billing.tsx b/studio/pages/org/[slug]/billing.tsx new file mode 100644 index 00000000000..b8510f913f3 --- /dev/null +++ b/studio/pages/org/[slug]/billing.tsx @@ -0,0 +1,55 @@ +import { useRouter } from 'next/router' +import { observer } from 'mobx-react-lite' +import { Tabs } from 'ui' + +import { NextPageWithLayout } from 'types' +import { useParams, useStore } from 'hooks' +import Loading from 'components/ui/Loading' +import { OrganizationLayout } from 'components/layouts' +import { BillingSettings } from 'components/interfaces/Organization' + +const OrgBillingSettings: NextPageWithLayout = () => { + const { ui } = useStore() + const { slug } = useParams() + const router = useRouter() + + return ( + <> + {ui.selectedOrganization === undefined && (ui?.permissions ?? []).length === 0 ? ( + + ) : ( +
+
+
+

+ {ui.selectedOrganization?.name ?? 'Organization'} settings +

+
+ +
+ +
+ +
+
+ )} + + ) +} + +OrgBillingSettings.getLayout = (page) => {page} +export default observer(OrgBillingSettings) diff --git a/studio/pages/org/[slug]/general.tsx b/studio/pages/org/[slug]/general.tsx new file mode 100644 index 00000000000..43cd730e8a2 --- /dev/null +++ b/studio/pages/org/[slug]/general.tsx @@ -0,0 +1,55 @@ +import { useRouter } from 'next/router' +import { observer } from 'mobx-react-lite' +import { Tabs } from 'ui' + +import { NextPageWithLayout } from 'types' +import { useParams, useStore } from 'hooks' +import Loading from 'components/ui/Loading' +import { OrganizationLayout } from 'components/layouts' +import { GeneralSettings } from 'components/interfaces/Organization' + +const OrgGeneralSettings: NextPageWithLayout = () => { + const { ui } = useStore() + const { slug } = useParams() + const router = useRouter() + + return ( + <> + {ui.selectedOrganization === undefined && (ui?.permissions ?? []).length === 0 ? ( + + ) : ( +
+
+
+

+ {ui.selectedOrganization?.name ?? 'Organization'} settings +

+
+ +
+ +
+ +
+
+ )} + + ) +} + +OrgGeneralSettings.getLayout = (page) => {page} +export default observer(OrgGeneralSettings) diff --git a/studio/pages/org/[slug]/invoices.tsx b/studio/pages/org/[slug]/invoices.tsx new file mode 100644 index 00000000000..f6ee9ee7eae --- /dev/null +++ b/studio/pages/org/[slug]/invoices.tsx @@ -0,0 +1,55 @@ +import { useRouter } from 'next/router' +import { observer } from 'mobx-react-lite' +import { Tabs } from 'ui' + +import { NextPageWithLayout } from 'types' +import { useParams, useStore } from 'hooks' +import Loading from 'components/ui/Loading' +import { OrganizationLayout } from 'components/layouts' +import { InvoicesSettings } from 'components/interfaces/Organization' + +const OrgInvoices: NextPageWithLayout = () => { + const { ui } = useStore() + const { slug } = useParams() + const router = useRouter() + + return ( + <> + {ui.selectedOrganization === undefined && (ui?.permissions ?? []).length === 0 ? ( + + ) : ( +
+
+
+

+ {ui.selectedOrganization?.name ?? 'Organization'} settings +

+
+ +
+ +
+ +
+
+ )} + + ) +} + +OrgInvoices.getLayout = (page) => {page} +export default observer(OrgInvoices) diff --git a/studio/pages/org/[slug]/settings.tsx b/studio/pages/org/[slug]/settings.tsx deleted file mode 100644 index bf3c8afaf25..00000000000 --- a/studio/pages/org/[slug]/settings.tsx +++ /dev/null @@ -1,189 +0,0 @@ -import { Tabs } from 'ui' -import { observer, useLocalObservable } from 'mobx-react-lite' -import { useRouter } from 'next/router' -import { createContext, PropsWithChildren, useContext, useEffect, useState } from 'react' - -import { Member, NextPageWithLayout, Organization, Project, Role, User } from 'types' -import { - useFlag, - useOrganizationDetail, - useOrganizationRoles, - useStore, - withAuth, - useParams, -} from 'hooks' -import { AccountLayoutWithoutAuth } from 'components/layouts' -import { - GeneralSettings, - TeamSettings, - BillingSettings, - InvoicesSettings, -} from 'components/interfaces/Organization' - -export const PageContext = createContext(null) - -const OrgSettingsLayout = withAuth( - observer>(({ children }) => { - const { app, ui } = useStore() - const router = useRouter() - const { slug } = useParams() - - const { roles: allRoles } = useOrganizationRoles(slug) - const enableBillingOnlyReadOnly = useFlag('enableBillingOnlyReadOnlyRoles') - const roles = enableBillingOnlyReadOnly - ? allRoles - : (allRoles ?? []).filter((role) => - ['Owner', 'Administrator', 'Developer'].includes(role.name) - ) - - // [Refactor] Eventually move away from useLocalObservable - const PageState: any = useLocalObservable(() => ({ - user: {} as User, - organization: {} as Organization, - projects: [] as Project[], - members: [] as Member[], - roles: [] as Role[], - membersFilterString: '', - - get filteredMembers() { - const temp = !this.membersFilterString - ? this.members - : this.members.filter((x: any) => { - if (x.invited_at) { - return x.primary_email.includes(this.membersFilterString) - } - if (x.id || x.gotrue_id) { - return ( - x.username.includes(this.membersFilterString) || - x.primary_email.includes(this.membersFilterString) - ) - } - }) - return temp.slice().sort((a: any, b: any) => a.username.localeCompare(b.username)) - }, - initData(organization: Organization, user: User, projects: Project[], roles: Role[]) { - this.user = user - this.projects = projects - this.organization = organization - this.roles = roles - }, - onOrgUpdated(updatedOrg: any) { - app.onOrgUpdated(updatedOrg) - }, - onOrgDeleted() { - app.onOrgDeleted(this.organization) - }, - })) - - useEffect(() => { - // User added a new payment method - if (router.query.setup_intent && router.query.redirect_status) { - ui.setNotification({ - category: 'success', - message: 'Successfully added new payment method', - }) - } - }, [router.query]) - - useEffect(() => { - const user = ui.profile - const organization = ui.selectedOrganization - const projects = app.projects.list((x: Project) => x.organization_id == organization?.id) - PageState.initData(organization, user, projects, roles) - }, [ui.selectedOrganization, ui.profile, roles]) - - return ( - - {children} - - ) - }) -) - -const OrganizationSettings: NextPageWithLayout = () => { - const router = useRouter() - const { slug } = useParams() - const PageState: any = useContext(PageContext) - const { ui, app } = useStore() - const [selectedTab, setSelectedTab] = useState('GENERAL') - const { members, isError: isOrgDetailError } = useOrganizationDetail(slug || '') - const hash = router.asPath.split('#')[1]?.toUpperCase() - - useEffect(() => { - if (hash) { - setSelectedTab(hash) - } - }, [hash]) - - function handleChangeTab(id: string) { - if (!slug) { - // The user should not see this error as the page should - // be rerendered with the value of slug before they can click. - // It is just here in case they are the flash. - return ui.setNotification({ - category: 'error', - message: 'Could not navigate to organization settings, please try again or contact support', - }) - } - - setSelectedTab(id) - router.push({ - pathname: `/org/[slug]/settings`, - query: { slug }, - hash: id.toLowerCase(), - }) - } - - useEffect(() => { - if (!isOrgDetailError) { - PageState.members = members ?? [] - } - }, [members, isOrgDetailError]) - - if (!ui.selectedOrganization || !PageState.organization) return
- - const organization = ui.selectedOrganization - const projects = app.projects.list((x: Project) => x.organization_id == organization?.id) - - return ( -
-
-
-

{organization?.name || 'Organization'} settings

-
- -
- -
- {selectedTab == 'GENERAL' ? ( - - ) : selectedTab == 'TEAM' ? ( - - ) : selectedTab == 'BILLING' ? ( - - ) : selectedTab == 'INVOICES' ? ( - - ) : null} -
-
- ) -} - -OrganizationSettings.getLayout = (page) => {page} - -export default observer(OrganizationSettings) diff --git a/studio/pages/org/[slug]/team.tsx b/studio/pages/org/[slug]/team.tsx new file mode 100644 index 00000000000..f90d16a6486 --- /dev/null +++ b/studio/pages/org/[slug]/team.tsx @@ -0,0 +1,55 @@ +import { useRouter } from 'next/router' +import { observer } from 'mobx-react-lite' +import { Tabs } from 'ui' + +import { NextPageWithLayout } from 'types' +import { useParams, useStore } from 'hooks' +import Loading from 'components/ui/Loading' +import { OrganizationLayout } from 'components/layouts' +import { TeamSettings } from 'components/interfaces/Organization' + +const OrgTeamSettings: NextPageWithLayout = () => { + const { ui } = useStore() + const { slug } = useParams() + const router = useRouter() + + return ( + <> + {ui.selectedOrganization === undefined && (ui?.permissions ?? []).length === 0 ? ( + + ) : ( +
+
+
+

+ {ui.selectedOrganization?.name ?? 'Organization'} settings +

+
+ +
+ +
+ +
+
+ )} + + ) +} + +OrgTeamSettings.getLayout = (page) => {page} +export default observer(OrgTeamSettings) diff --git a/studio/pages/project/[ref]/database/wrappers/[id].tsx b/studio/pages/project/[ref]/database/wrappers/[id].tsx new file mode 100644 index 00000000000..a5abeb5df61 --- /dev/null +++ b/studio/pages/project/[ref]/database/wrappers/[id].tsx @@ -0,0 +1,21 @@ +import { observer } from 'mobx-react-lite' +import { PermissionAction } from '@supabase/shared-types/out/constants' + +import { NextPageWithLayout } from 'types' +import { checkPermissions } from 'hooks' +import { DatabaseLayout } from 'components/layouts' +import NoPermission from 'components/ui/NoPermission' +import { EditWrapper } from 'components/interfaces/Database' + +const DatabaseWrappersNew: NextPageWithLayout = () => { + const canReadWrappers = checkPermissions(PermissionAction.TENANT_SQL_ADMIN_READ, 'wrappers') + if (!canReadWrappers) { + return + } + + return +} + +DatabaseWrappersNew.getLayout = (page) => {page} + +export default observer(DatabaseWrappersNew) diff --git a/studio/pages/project/[ref]/database/wrappers.tsx b/studio/pages/project/[ref]/database/wrappers/index.tsx similarity index 100% rename from studio/pages/project/[ref]/database/wrappers.tsx rename to studio/pages/project/[ref]/database/wrappers/index.tsx diff --git a/studio/pages/project/[ref]/database/wrappers/new.tsx b/studio/pages/project/[ref]/database/wrappers/new.tsx new file mode 100644 index 00000000000..4db0245131f --- /dev/null +++ b/studio/pages/project/[ref]/database/wrappers/new.tsx @@ -0,0 +1,21 @@ +import { observer } from 'mobx-react-lite' +import { PermissionAction } from '@supabase/shared-types/out/constants' + +import { NextPageWithLayout } from 'types' +import { checkPermissions } from 'hooks' +import { DatabaseLayout } from 'components/layouts' +import NoPermission from 'components/ui/NoPermission' +import { CreateWrapper } from 'components/interfaces/Database' + +const DatabaseWrappersNew: NextPageWithLayout = () => { + const canReadWrappers = checkPermissions(PermissionAction.TENANT_SQL_ADMIN_READ, 'wrappers') + if (!canReadWrappers) { + return + } + + return +} + +DatabaseWrappersNew.getLayout = (page) => {page} + +export default observer(DatabaseWrappersNew) diff --git a/studio/pages/project/[ref]/logs/explorer/index.tsx b/studio/pages/project/[ref]/logs/explorer/index.tsx index f166123a6f8..52d7906b166 100644 --- a/studio/pages/project/[ref]/logs/explorer/index.tsx +++ b/studio/pages/project/[ref]/logs/explorer/index.tsx @@ -1,5 +1,4 @@ import dayjs from 'dayjs' -import toast from 'react-hot-toast' import { useEffect, useState } from 'react' import { useRouter } from 'next/router' import { observer } from 'mobx-react-lite' @@ -30,6 +29,8 @@ import LogsExplorerHeader from 'components/ui/Logs/LogsExplorerHeader' export const LogsExplorerPage: NextPageWithLayout = () => { const router = useRouter() + const { ui } = useStore() + const { ref, q, ite, its } = router.query const [editorId, setEditorId] = useState(uuidv4()) const [editorValue, setEditorValue] = useState('') @@ -221,12 +222,19 @@ export const LogsExplorerPage: NextPageWithLayout = () => { if (error) throw error setSubmitting(false) setSaveModalOpen(false) - toast.success(`Saved "${values.name}" log query`) + ui.setNotification({ + category: 'success', + message: `Saved "${values.name}" log query`, + }) } catch (error: any) { console.error(error) setSubmitting(false) setSaveModalOpen(false) - toast.error(error.message) + ui.setNotification({ + error, + category: 'error', + message: `Failed to save query: ${error.message}`, + }) } }} > diff --git a/studio/pages/project/[ref]/reports/api.tsx b/studio/pages/project/[ref]/reports/api.tsx index 1c6257d180b..48707940d5c 100644 --- a/studio/pages/project/[ref]/reports/api.tsx +++ b/studio/pages/project/[ref]/reports/api.tsx @@ -3,7 +3,7 @@ import { useRouter } from 'next/router' import { NextPageWithLayout } from 'types' import { Presets } from 'components/interfaces/Reports/Reports.types' -import ReportsLayout from 'components/layouts/ReportsLayout/ReportsLayout' +import ReportsLayout from 'components/layouts' import { PRESET_CONFIG } from 'components/interfaces/Reports/Reports.constants' import ReportWidget from 'components/interfaces/Reports/ReportWidget' import { hooksFactory, usePresetReport } from 'components/interfaces/Reports/Reports.utils' @@ -12,7 +12,7 @@ import { renderRequestsPathsTable, renderStatusCodesChart, renderBotScores, - renderUserAgents + renderUserAgents, } from 'components/interfaces/Reports/renderers/ApiRenderers' export const ApiReport: NextPageWithLayout = () => { diff --git a/studio/pages/project/[ref]/reports/auth.tsx b/studio/pages/project/[ref]/reports/auth.tsx index d57839ebf23..6a164a3e9f5 100644 --- a/studio/pages/project/[ref]/reports/auth.tsx +++ b/studio/pages/project/[ref]/reports/auth.tsx @@ -3,7 +3,7 @@ import { useRouter } from 'next/router' import { NextPageWithLayout } from 'types' import { Presets } from 'components/interfaces/Reports/Reports.types' -import ReportsLayout from 'components/layouts/ReportsLayout/ReportsLayout' +import ReportsLayout from 'components/layouts' import { hooksFactory, usePresetReport } from 'components/interfaces/Reports/Reports.utils' import { PRESET_CONFIG } from 'components/interfaces/Reports/Reports.constants' import ReportWidget from 'components/interfaces/Reports/ReportWidget' diff --git a/studio/pages/project/[ref]/settings/billing/update/index.tsx b/studio/pages/project/[ref]/settings/billing/update/index.tsx index 70859ccf8dd..608bda83c06 100644 --- a/studio/pages/project/[ref]/settings/billing/update/index.tsx +++ b/studio/pages/project/[ref]/settings/billing/update/index.tsx @@ -3,7 +3,7 @@ import { useRouter } from 'next/router' import { observer } from 'mobx-react-lite' import { Button, Modal } from 'ui' -import { useFreeProjectLimitCheck, useStore } from 'hooks' +import { useFlag, useFreeProjectLimitCheck, useStore } from 'hooks' import { get } from 'lib/common/fetch' import { API_URL, PRICING_TIER_PRODUCT_IDS, STRIPE_PRODUCT_IDS } from 'lib/constants' @@ -85,6 +85,8 @@ const BillingUpdate: NextPageWithLayout = () => { const onSelectPlan = (plan: any) => { if (plan.id === STRIPE_PRODUCT_IDS.PRO) { router.push(`/project/${projectRef}/settings/billing/update/pro`) + } else if (plan.id === STRIPE_PRODUCT_IDS.TEAM) { + router.push(`/project/${projectRef}/settings/billing/update/team`) } else if (plan.id === STRIPE_PRODUCT_IDS.FREE) { setSelectedPlan(plan) setShowConfirmDowngrade(true) @@ -109,12 +111,18 @@ const BillingUpdate: NextPageWithLayout = () => { ) } + const teamTierEnabled = useFlag('teamTier') + + const productTiers = (products?.tiers ?? []).filter( + (tier) => teamTierEnabled || tier.id !== STRIPE_PRODUCT_IDS.TEAM + ) + return ( <> -
+
diff --git a/studio/pages/project/[ref]/settings/billing/update/team.tsx b/studio/pages/project/[ref]/settings/billing/update/team.tsx new file mode 100644 index 00000000000..00590a7e98d --- /dev/null +++ b/studio/pages/project/[ref]/settings/billing/update/team.tsx @@ -0,0 +1,132 @@ +import { useState, useEffect } from 'react' +import { observer } from 'mobx-react-lite' +import { useRouter } from 'next/router' + +import { useStore, useFlag } from 'hooks' +import { get } from 'lib/common/fetch' +import { API_URL, PRICING_TIER_PRODUCT_IDS } from 'lib/constants' + +import { NextPageWithLayout } from 'types' +import { BillingLayout } from 'components/layouts' +import Connecting from 'components/ui/Loading/Loading' +import { StripeSubscription } from 'components/interfaces/Billing' +import { PaymentMethod } from 'components/interfaces/Billing/Billing.types' +import { SubscriptionAddon } from 'components/interfaces/Billing/AddOns/AddOns.types' +import TeamUpgrade from 'components/interfaces/Billing/TeamUpgrade' + +const BillingUpdateTeam: NextPageWithLayout = () => { + const { ui } = useStore() + const router = useRouter() + + const projectRef = ui.selectedProject?.ref + const orgSlug = ui.selectedOrganization?.slug + + const projectUpdateDisabled = useFlag('disableProjectCreationAndUpdate') + + const [subscription, setSubscription] = useState() + const [products, setProducts] = useState<{ tiers: any[]; addons: SubscriptionAddon[] }>() + const [paymentMethods, setPaymentMethods] = useState() + const [isLoadingPaymentMethods, setIsLoadingPaymentMethods] = useState(false) + + const isEnterprise = + subscription && subscription.tier.supabase_prod_id === PRICING_TIER_PRODUCT_IDS.ENTERPRISE + + useEffect(() => { + // User added a new payment method + if (router.query.setup_intent && router.query.redirect_status) { + ui.setNotification({ category: 'success', message: 'Successfully added new payment method' }) + } + }, []) + + useEffect(() => { + if (projectUpdateDisabled) { + router.push(`/project/${projectRef}/settings/billing/update`) + } else if (projectRef) { + getStripeProducts() + getSubscription() + } + }, [projectRef]) + + useEffect(() => { + if (orgSlug) { + getPaymentMethods() + } + }, [orgSlug]) + + useEffect(() => { + if (isEnterprise) { + router.push(`/project/${projectRef}/settings/billing/update/enterprise`) + } + }, [subscription]) + + const getStripeProducts = async () => { + try { + const products = await get(`${API_URL}/stripe/products`) + setProducts(products) + } catch (error: any) { + ui.setNotification({ + error, + category: 'error', + message: `Failed to get products: ${error.message}`, + }) + } + } + + const getPaymentMethods = async () => { + const orgSlug = ui.selectedOrganization?.slug ?? '' + try { + setIsLoadingPaymentMethods(true) + const { data: paymentMethods, error } = await get( + `${API_URL}/organizations/${orgSlug}/payments` + ) + if (error) throw error + setIsLoadingPaymentMethods(false) + setPaymentMethods(paymentMethods) + } catch (error: any) { + ui.setNotification({ + error, + category: 'error', + message: `Failed to get available payment methods: ${error.message}`, + }) + } + } + + const getSubscription = async () => { + try { + if (!ui.selectedProject?.subscription_id) { + throw new Error('Unable to get subscription ID of project') + } + + const subscription = await get(`${API_URL}/projects/${projectRef}/subscription`) + if (subscription.error) throw subscription.error + setSubscription(subscription) + } catch (error: any) { + ui.setNotification({ + error, + category: 'error', + message: `Failed to get subscription: ${error.message}`, + }) + } + } + + if (!products || !subscription || isEnterprise) + return ( +
+ +
+ ) + + return ( + router.push(`/project/${projectRef}/settings/billing/update`)} + /> + ) +} + +BillingUpdateTeam.getLayout = (page) => {page} + +export default observer(BillingUpdateTeam) diff --git a/studio/stores/RootStore.ts b/studio/stores/RootStore.ts index 6520c228b2e..3b42662f36d 100644 --- a/studio/stores/RootStore.ts +++ b/studio/stores/RootStore.ts @@ -83,7 +83,7 @@ export class RootStore implements IRootStore { // - project not found yet. projectStore is loading // - connectionString is not available. projectStore loaded const found = this.app.projects.find((x: Project) => x.ref === value) - if (!found || !found.connectionString) { + if (found?.connectionString === undefined) { this.app.projects.fetchDetail(value, (project) => { setProjectRefs(project) }) diff --git a/studio/stores/UiStore.ts b/studio/stores/UiStore.ts index d751e77b580..b9bbd8a9a4a 100644 --- a/studio/stores/UiStore.ts +++ b/studio/stores/UiStore.ts @@ -59,7 +59,8 @@ export default class UiStore implements IUiStore { const found = this.rootStore.app.projects.find( (x: Project) => x.ref === this.selectedProjectRef ) - return !!found?.connectionString ? found : undefined + // Self-hosted project details has connectionString set to empty string + return found?.connectionString !== undefined ? found : undefined } return undefined } diff --git a/studio/tests/pages/projects/LogsPreviewer.test.js b/studio/tests/pages/projects/LogsPreviewer.test.js index 0b8420e9c14..7d2f9e7ce45 100644 --- a/studio/tests/pages/projects/LogsPreviewer.test.js +++ b/studio/tests/pages/projects/LogsPreviewer.test.js @@ -421,7 +421,7 @@ test('filters accept filterOverride', async () => { }) }) -describe.each(['FREE', 'PRO', 'ENTERPRISE'])('upgrade modal for %s', (key) => { +describe.each(['FREE', 'PRO', 'TEAM', 'ENTERPRISE'])('upgrade modal for %s', (key) => { beforeEach(() => { useProjectSubscription.mockReturnValue({ subscription: { diff --git a/studio/tests/pages/projects/logs-query.test.js b/studio/tests/pages/projects/logs-query.test.js index 3ae3b637d34..8daa2301ca3 100644 --- a/studio/tests/pages/projects/logs-query.test.js +++ b/studio/tests/pages/projects/logs-query.test.js @@ -151,7 +151,7 @@ test('query warnings', async () => { await screen.findByText('1 warning') }) -describe.each(['FREE', 'PRO', 'ENTERPRISE'])('upgrade modal for %s', (key) => { +describe.each(['FREE', 'PRO', 'TEAM', 'ENTERPRISE'])('upgrade modal for %s', (key) => { beforeEach(() => { useProjectSubscription.mockReturnValue({ subscription: { diff --git a/tests/package-lock.json b/tests/package-lock.json index 16b0e91e8a7..ebc3dba5068 100644 --- a/tests/package-lock.json +++ b/tests/package-lock.json @@ -4009,13 +4009,10 @@ "dev": true }, "node_modules/json5": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", - "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, - "dependencies": { - "minimist": "^1.2.5" - }, "bin": { "json5": "lib/cli.js" }, @@ -4196,12 +4193,6 @@ "node": "*" } }, - "node_modules/minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true - }, "node_modules/mkdirp": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", @@ -8665,13 +8656,10 @@ "dev": true }, "json5": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", - "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", - "dev": true, - "requires": { - "minimist": "^1.2.5" - } + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true }, "kleur": { "version": "3.0.3", @@ -8807,12 +8795,6 @@ "brace-expansion": "^1.1.7" } }, - "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true - }, "mkdirp": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",